From: "Andreas Röhler" <andreas.roehler@online.de>
To: Drew Adams <drew.adams@oracle.com>
Cc: 8317@debbugs.gnu.org
Subject: bug#8317: Subject: 24.0.50; sh-script.el took my key
Date: Tue, 22 Mar 2011 14:30:59 +0100 [thread overview]
Message-ID: <4D88A493.4070302@online.de> (raw)
In-Reply-To: <BB82E499CF194C7B927FA17D8521A924@us.oracle.com>
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/
prev parent reply other threads:[~2011-03-22 13:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-22 8:18 bug#8317: Subject: 24.0.50; sh-script.el took my key Andreas Röhler
2011-03-22 9:38 ` Deniz Dogan
2011-03-22 9:55 ` Andreas Schwab
2011-03-22 10:18 ` Andreas Röhler
2011-03-22 13:04 ` Drew Adams
2011-03-22 13:30 ` Andreas Röhler [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D88A493.4070302@online.de \
--to=andreas.roehler@online.de \
--cc=8317@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.