From: Miles Bader <miles.bader@necel.com>
To: emacs-devel@gnu.org
Cc: bug-cc-mode@gnu.org
Subject: movement bindings in c-mode
Date: Mon, 23 Jun 2008 17:37:39 +0900 [thread overview]
Message-ID: <buo7icgo8bw.fsf@dhapc248.dev.necel.com> (raw)
In c-mode, I notice that C-M-a is bound to `c-beginning-of-defun',
overriding the global binding to `beginning-of-defun'.
The generic `beginning-of-defun' function offers some additional
functionality (in particular, it sets the mark before jumping), and
seems to work just as well. We should generally try to avoid gratuitous
mode-specific rebinding of generic bindings that work properly.
I suppose this rebinding made sense in the past when the generic
mechanism was less capable, but does it make sense any more?
Any comments?
[A similar argument applies to other commands like c-end-of-defun]
Thanks,
-Miles
--
`There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.'
next reply other threads:[~2008-06-23 8:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-23 8:37 Miles Bader [this message]
2008-06-23 14:13 ` movement bindings in c-mode Alan Mackenzie
2008-06-23 13:57 ` Miles Bader
2008-06-23 14:09 ` Miles Bader
2008-06-23 17:05 ` Alan Mackenzie
2008-06-23 18:36 ` David Hansen
2008-06-23 18:40 ` Lennart Borgman (gmail)
2008-06-27 21:50 ` Alan Mackenzie
2008-06-27 21:49 ` Alan Mackenzie
2008-06-23 18:45 ` Stefan Monnier
2008-06-24 2:32 ` Miles Bader
2008-06-27 21:41 ` Alan Mackenzie
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=buo7icgo8bw.fsf@dhapc248.dev.necel.com \
--to=miles.bader@necel.com \
--cc=bug-cc-mode@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=miles@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).