From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 22 04:13:19 2011 Received: (at submit) by debbugs.gnu.org; 22 Mar 2011 08:13:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1wiN-00035s-Gt for submit@debbugs.gnu.org; Tue, 22 Mar 2011 04:13:19 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1wiL-00035g-LS for submit@debbugs.gnu.org; Tue, 22 Mar 2011 04:13:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1wiE-000630-9e for submit@debbugs.gnu.org; Tue, 22 Mar 2011 04:13:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:51221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1wiE-00062o-6y for submit@debbugs.gnu.org; Tue, 22 Mar 2011 04:13:10 -0400 Received: from [140.186.70.92] (port=49222 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1wi9-0007u9-0W for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2011 04:13:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1wi2-00060S-SZ for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2011 04:13:04 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:50841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1wi2-00060D-Fh for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2011 04:12:58 -0400 Received: from [192.168.178.29] (brln-4d0c27e0.pool.mediaWays.net [77.12.39.224]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0M9L3K-1QADur08Ks-00Cv4g; Tue, 22 Mar 2011 09:12:55 +0100 Message-ID: <4D885B71.2090008@online.de> Date: Tue, 22 Mar 2011 09:18:57 +0100 From: =?ISO-8859-15?Q?Andreas_R=F6hler?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Subject: 24.0.50; sh-script.el took my key Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:QFiaSKJPFTQRFXFj/IyfWh7DRVJS9vPzyA1qt+QYVSZ fLxwiXkKneqfN/Yj0ysKeo2UhfM8f8lhpxL94xhJBA98ftBjfO ASruJzq+1vyqVh8dLtK5nNCUKXjjgGcMgtqTxMnQp3qWrb9amI a4C/yiM85L1DKwKDZKZq5tDDiTVfylme0OfLshsqEqiRfoWlVf miHQjJpwdcx6+N6JZYG4cHvl3GuQwyH7as7MBgE9bY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Hi, having defined "C-c (" onto some useful function here, when in Shell-script mode `sh-function` took it. Seems bad, as "C-c" should be a reserved key for users. Seeing the are some more issues of this kind at place. BTW simply commenting out these keys should be a good choice. Usually prefer to define keys myself. Thanks all Andreas ;;;;;;;;;;;;;;;;;;; C-c ( runs the command sh-function, which is an interactive compiled Lisp function in `sh-script.el'. It is bound to C-c (, . (sh-function &optional STR ARG) If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /home/dresden/emacs-20110321/etc/DEBUG. In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.6) of 2011-03-21 Windowing system distributor `The X.Org Foundation', version 11.0.10605000 configured using `configure '--without-makeinfo' 'CFLAGS=-g -O2 -fno-optimize-sibling-calls'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Shell-script Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f p r o g a r b u b i n / a n s t r i t s t t i f t M-> C-c ) C-c ( C-g M-x r r e p o e p o r t - e m a c s - b u Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Setting up indent for shell type bash setting up indent stuff Indentation variables are now local. Indentation setup for shell type bash Mark set Quit Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader emacsbug url-util url-parse auth-source eieio byte-opt bytecomp byte-compile assoc gnus-util time-date password-cache url-vars mm-util mail-prsvr skeleton vc-rcs regexp-opt sh-script executable tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 22 05:38:35 2011 Received: (at 8317) by debbugs.gnu.org; 22 Mar 2011 09:38:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1y2t-0004vy-B1 for submit@debbugs.gnu.org; Tue, 22 Mar 2011 05:38:35 -0400 Received: from mail-iw0-f172.google.com ([209.85.214.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1y2q-0004vm-MS for 8317@debbugs.gnu.org; Tue, 22 Mar 2011 05:38:33 -0400 Received: by iwl42 with SMTP id 42so7006040iwl.3 for <8317@debbugs.gnu.org>; Tue, 22 Mar 2011 02:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=+de2uUIt24tSLXIn1V79ptDeKW95+4X/4WldBeVBz58=; b=FQQqJddKMAOaMwdkgejfJ4c/V2r+eF8/7IVKTFe8Vxk+mtttk85CFdotWABDHwH2dM OKp4AsXzZ5eoh9fJeGTqhwUXg8L+XS29x5NEbh13a+4Zxh+ggIK69SSM6g8v36eL2zrT eCzryVJy+S6URnFFfGnWmg54BFYqnPAfwokSQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=VEr2OJFsXzfM3FVWMBSVmWNF6KLFHXyMaVQ5nM4PAvRrXYhLcQffvZXBQ8vn3yTL0/ W3/U4w7X1mSUhxuojRsSV1CfZTZwDhKBgK9ukLJiktiPiWbcOKFxOYMU++milQWCDIHa uGOvXlqVGAalU6sReMlzier+t7R/cHXsD/kpo= Received: by 10.231.213.93 with SMTP id gv29mr5337038ibb.37.1300786707117; Tue, 22 Mar 2011 02:38:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.206.137 with HTTP; Tue, 22 Mar 2011 02:38:07 -0700 (PDT) In-Reply-To: <4D885B71.2090008@online.de> References: <4D885B71.2090008@online.de> From: Deniz Dogan Date: Tue, 22 Mar 2011 10:38:07 +0100 Message-ID: Subject: Re: bug#8317: Subject: 24.0.50; sh-script.el took my key To: =?ISO-8859-1?Q?Andreas_R=F6hler?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 8317 Cc: 8317@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) 2011/3/22 Andreas R=F6hler : > Hi, > > having defined "C-c (" onto some useful function here, > when in Shell-script mode `sh-function` took it. > > Seems bad, as "C-c" should be a reserved key for users. > Only C-c bindings are reserved for users. --=20 Deniz Dogan From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 22 05:55:41 2011 Received: (at 8317) by debbugs.gnu.org; 22 Mar 2011 09:55:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1yJQ-0005JX-QN for submit@debbugs.gnu.org; Tue, 22 Mar 2011 05:55:41 -0400 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1yJO-0005JK-Cy for 8317@debbugs.gnu.org; Tue, 22 Mar 2011 05:55:39 -0400 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 425AB1800234; Tue, 22 Mar 2011 10:55:32 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 165511C0017D; Tue, 22 Mar 2011 10:55:32 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id mnp+2K07hdcD; Tue, 22 Mar 2011 10:55:31 +0100 (CET) Received: from hase (ppp-88-217-115-61.dynamic.mnet-online.de [88.217.115.61]) by mail.mnet-online.de (Postfix) with ESMTP; Tue, 22 Mar 2011 10:55:30 +0100 (CET) From: Andreas Schwab To: Andreas =?utf-8?Q?R=C3=B6hler?= Subject: Re: bug#8317: Subject: 24.0.50; sh-script.el took my key References: <4D885B71.2090008@online.de> X-Yow: I'm wearing PAMPERS!! Date: Tue, 22 Mar 2011 10:55:29 +0100 In-Reply-To: <4D885B71.2090008@online.de> ("Andreas =?utf-8?Q?R=C3=B6hler?= =?utf-8?Q?=22's?= message of "Tue, 22 Mar 2011 09:18:57 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8317 Cc: 8317@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Andreas R=C3=B6hler writes: > having defined "C-c (" onto some useful function here, > when in Shell-script mode `sh-function` took it. > > Seems bad, as "C-c" should be a reserved key for users. *Note (elisp) Major Mode Conventions:: * The key sequences bound in a major mode keymap should usually start with `C-c', followed by a control character, a digit, or `{', `}', `<', `>', `:' or `;'. The other punctuation characters are reserved for minor modes, and ordinary letters are reserved for users. So while C-c ( should not be bound by a major mode, it can still be bound by a minor mode, and you should move your binding to a letter. Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 22 06:12:20 2011 Received: (at 8317) by debbugs.gnu.org; 22 Mar 2011 10:12:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1yZY-0005fO-87 for submit@debbugs.gnu.org; Tue, 22 Mar 2011 06:12:20 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1yZV-0005fB-MG for 8317@debbugs.gnu.org; Tue, 22 Mar 2011 06:12:18 -0400 Received: from [192.168.178.29] (brln-4d0c27e0.pool.mediaWays.net [77.12.39.224]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0MGbuW-1QF7hu1Kj2-00DJE2; Tue, 22 Mar 2011 11:12:07 +0100 Message-ID: <4D887767.6050105@online.de> Date: Tue, 22 Mar 2011 11:18:15 +0100 From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Andreas Schwab Subject: Re: bug#8317: Subject: 24.0.50; sh-script.el took my key References: <4D885B71.2090008@online.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:1a8uLW27TH6mHb6ozYRhYKEsP04ncB5yX10Ou5AuGif zX7LSDmLFleA5Br5yPTXhcwSP6G6osu7/AjD0uJKyN9wOIHnd5 Se6KFXTdK9xoGDGeTNp2htikMaZuguhnCEWnsTGpLqK+cdoZOn QZHBJUCgxsmaYsiCvlAEQUIq4dA6f5Wqk+Uz7WExlEizeu400Q +66RnPxHzm7/TwIE49n8FuC+EoPZDnA5o31uTzXZ5E= X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: 8317 Cc: 8317@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) Am 22.03.2011 10:55, schrieb Andreas Schwab: > Andreas Röhler writes: > >> having defined "C-c (" onto some useful function here, >> when in Shell-script mode `sh-function` took it. >> >> Seems bad, as "C-c" should be a reserved key for users. > > *Note (elisp) Major Mode Conventions:: > > * The key sequences bound in a major mode keymap should usually > start with `C-c', followed by a control character, a digit, or `{', > `}', `<', `>', `:' or `;'. The other punctuation characters are > reserved for minor modes, and ordinary letters are reserved for > users. > > So while C-c ( should not be bound by a major mode, it can still be > bound by a minor mode, and you should move your binding to a letter. > > Andreas. > Thanks and sorry for the noise. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 22 09:04:23 2011 Received: (at 8317) by debbugs.gnu.org; 22 Mar 2011 13:04:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q21G2-000239-PA for submit@debbugs.gnu.org; Tue, 22 Mar 2011 09:04:23 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q21G1-00022x-8t for 8317@debbugs.gnu.org; Tue, 22 Mar 2011 09:04:21 -0400 Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p2MD4DTJ016446 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 22 Mar 2011 13:04:15 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p2MD4ChV024689 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Mar 2011 13:04:12 GMT Received: from abhmt019.oracle.com (abhmt019.oracle.com [141.146.116.28]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p2MD4BxU007814; Tue, 22 Mar 2011 08:04:11 -0500 Received: from dradamslap1 (/10.159.50.6) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 22 Mar 2011 06:04:11 -0700 From: "Drew Adams" To: "=?iso-8859-1?Q?'Andreas_R=F6hler'?=" , <8317@debbugs.gnu.org> References: <4D885B71.2090008@online.de> Subject: RE: bug#8317: Subject: 24.0.50; sh-script.el took my key Date: Tue, 22 Mar 2011 06:04:09 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4D885B71.2090008@online.de> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcvobGBNnQkciCscSZ2a5kh/fCFHqgAJMtTg X-Source-IP: acsmt358.oracle.com [141.146.40.158] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4D889E4D.007B,ss=1,fgs=0 X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 8317 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) > having defined "C-c (" onto some useful function here, > when in Shell-script mode `sh-function` took it. > Seems bad, as "C-c" should be a reserved key for users. See (elisp)Coding Conventions. The last section quoted here covers `C-c ('. Don't define `C-c LETTER' as a key in Lisp programs. Sequences consisting of `C-c' and a letter (either upper or lower case) are reserved for users; they are the *only* sequences reserved for users, so do not block them. Changing all the Emacs major modes to respect this convention was a lot of work; abandoning this convention would make that work go to waste, and inconvenience users. Please comply with it. ... * Sequences consisting of `C-c' followed by a control character or a digit are reserved for major modes. * Sequences consisting of `C-c' followed by `{', `}', `<', `>', `:' or `;' are also reserved for major modes. * Sequences consisting of `C-c' followed by any other punctuation character are allocated for minor modes. Using them in a major mode is not absolutely prohibited, but if you do that, the major mode binding may be shadowed from time to time by minor modes. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 22 09:25:06 2011 Received: (at 8317) by debbugs.gnu.org; 22 Mar 2011 13:25:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q21a5-0002Ww-4h for submit@debbugs.gnu.org; Tue, 22 Mar 2011 09:25:05 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q21Zz-0002WW-AY for 8317@debbugs.gnu.org; Tue, 22 Mar 2011 09:25:03 -0400 Received: from [192.168.178.29] (brln-4d0c27e0.pool.mediaWays.net [77.12.39.224]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0LdEVV-1PbjEX0jez-00iXcI; Tue, 22 Mar 2011 14:24:49 +0100 Message-ID: <4D88A493.4070302@online.de> Date: Tue, 22 Mar 2011 14:30:59 +0100 From: =?ISO-8859-1?Q?Andreas_R=F6hler?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Drew Adams Subject: Re: bug#8317: Subject: 24.0.50; sh-script.el took my key References: <4D885B71.2090008@online.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:3z6Oq03hk4Ygv8kEA/Fu/6Lc/sY8NMq/adYWsgkDyA6 RvWjbIJzXK3lnkg74hEEEKDkMpmRcQYEQbm6VKqrEUaBL+HGSQ ss9ChokP4f5hzzFjt5JDYgr0QVX8sTzhUQySqB0vuWccnRoq3r c3Xte5AB6WMF2g99prRrVVxNKVk+j995PrwC4C+mLK6yrr6PRP YoYXT1hJDP0eP7POgP+0/kZuOtTfdI2EtXnUQXo8/w= X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8317 Cc: 8317@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) Am 22.03.2011 14:04, schrieb Drew Adams: >> having defined "C-c (" onto some useful function here, >> when in Shell-script mode `sh-function` took it. >> Seems bad, as "C-c" should be a reserved key for users. > > See (elisp)Coding Conventions. > The last section quoted here covers `C-c ('. > > Don't define `C-c LETTER' as a key in Lisp programs. Sequences > consisting of `C-c' and a letter (either upper or lower case) are > reserved for users; they are the *only* sequences reserved for > users, so do not block them. > > Changing all the Emacs major modes to respect this convention was a > lot of work; abandoning this convention would make that work go to > waste, and inconvenience users. Please comply with it. > > ... > > * Sequences consisting of `C-c' followed by a control character or a > digit are reserved for major modes. > > * Sequences consisting of `C-c' followed by `{', `}', `<', `>', `:' > or `;' are also reserved for major modes. > > * Sequences consisting of `C-c' followed by any other punctuation > character are allocated for minor modes. Using them in a major > mode is not absolutely prohibited, but if you do that, the major > mode binding may be shadowed from time to time by minor modes. > > Yeah, thanks all, see it. BTW maybe have a look nonetheless at ar-parentized-atpt, ar-bracketed-atpt, ar-braced-atpt in thing-at-point-utils.el of https://code.launchpad.net/~a-roehler/python-mode/python-mode-components With `C-c (' for example I get the whole expression reported, copied, marked, where-ever in parent cursor is. These just-one-key tools save a lot of time here.... Andreas -- https://code.launchpad.net/s-x-emacs-werkstatt/ From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 25 03:22:35 2011 Received: (at control) by debbugs.gnu.org; 25 Mar 2011 07:22:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q31Lu-0002Lw-V5 for submit@debbugs.gnu.org; Fri, 25 Mar 2011 03:22:35 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q31Ls-0002Lh-Lo for control@debbugs.gnu.org; Fri, 25 Mar 2011 03:22:33 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Q31Ln-0002wY-BX for control@debbugs.gnu.org; Fri, 25 Mar 2011 03:22:27 -0400 Date: Fri, 25 Mar 2011 03:22:27 -0400 Message-Id: Subject: control message for bug 8317 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) close 8317 From unknown Fri Jun 20 07:11:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 22 Apr 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator