From: Miles Bader <miles@gnu.org>
Cc: Juanma Barranquero <jmbarranquero@wke.es>,
emacs-devel@gnu.org, "Kim F. Storm" <storm@cua.dk>
Subject: Re: Suggestion: Mapping of M-g should be goto-line
Date: Fri, 26 Mar 2004 19:07:52 -0500 [thread overview]
Message-ID: <20040327000752.GC26429@fencepost> (raw)
In-Reply-To: <m13c7vu1yy.fsf-monnier+emacs@empanada.iro.umontreal.ca>
On Fri, Mar 26, 2004 at 09:25:49AM -0500, Stefan Monnier wrote:
> It seems people don't understand what I really want to say, so here's
> another take on it:
>
> 1 - let's create a new command
>
> (global-set-key "\C-c\C-c" 'done-editing-now-do-it)
>
> 2 - let's optimize it away:
>
> (global-set-key "\C-c\C-c" 'compile)
>
> Notice it's only an optimization that relies on the fact that the
> binding can trivially be overridden by local maps and on the fact that
> done-editing-now-do-it did not do anything more than call the
> done-editing-now-do-it-function function. The intention is still that
> major modes (or recursive-edit or minor-modes or whatever else shows up)
> should rebind it to something more appropriate if applicable.
I intensely dislike this sort of `ah modes can just rebind the key' way of
avoiding a level of indirection, because often I use different global
bindings that normal -- and in that case, with a variable used for
configuring things, everything works great, but if modes `override by
rebinding', then I end up having to have my own personal special cases for
every single mode that wants to do this.
A good example is `fill-paragraph-function': I _love_ this, because I use a
non-standard binding for `fill-paragaraph'; in the bad-old-days, when many
modes with paragraph-filling support would just rebind `M-q' (or whatever the
standard binding for fill-paragraph is -- I can't remember!), it was a
nightmare, but now that most instead just set fill-paragraph-function, I have
no problems at all, everything works swimmingly.
[I've always wished for a level of indirection _built into keymaps_ --
e.g. standard global bindings could be named, and then locally overridden by
name in modes.]
-Miles
--
Freedom's just another word, for nothing left to lose --Janis Joplin
next prev parent reply other threads:[~2004-03-27 0:07 UTC|newest]
Thread overview: 99+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-25 6:11 Suggestion: Mapping of M-g should be goto-line Jari Aalto+mail.emacs
2004-03-25 7:23 ` Eli Zaretskii
2004-03-25 9:10 ` John Wiegley
2004-03-25 15:06 ` Eric Hanchrow
2004-03-25 16:39 ` ams
2004-03-25 21:54 ` Stefan Monnier
2004-03-25 22:21 ` David Kastrup
2004-03-25 23:27 ` Stefan Monnier
2004-03-25 23:41 ` David Kastrup
2004-03-25 23:53 ` Stefan Monnier
2004-03-26 0:50 ` David Kastrup
2004-03-26 2:27 ` Stefan Monnier
2004-03-26 11:14 ` Kim F. Storm
2004-03-26 10:29 ` Juanma Barranquero
2004-03-26 12:38 ` Kim F. Storm
2004-03-26 13:36 ` Juanma Barranquero
2004-03-26 14:25 ` Stefan Monnier
2004-03-27 0:07 ` Miles Bader [this message]
2004-03-27 14:53 ` Juanma Barranquero
2004-04-01 1:53 ` Miles Bader
2004-03-28 1:36 ` Richard Stallman
2004-03-26 15:27 ` Per Abrahamsen
2004-03-26 17:49 ` Alan Mackenzie
2004-03-26 15:19 ` Per Abrahamsen
2004-03-26 16:40 ` David Kastrup
2004-04-01 14:25 ` Per Abrahamsen
2004-04-01 16:15 ` David Kastrup
2004-03-25 16:26 ` Stefan Monnier
2004-03-26 0:19 ` Kim F. Storm
2004-03-26 16:53 ` Alan Mackenzie
2004-03-25 9:46 ` Danilo Segan
2004-03-25 9:54 ` Lucas
2004-03-25 10:21 ` Juanma Barranquero
2004-03-25 10:32 ` Jari Aalto+mail.linux
2004-03-25 11:23 ` Danilo Segan
2004-03-25 11:34 ` Lucas
2004-03-25 14:22 ` Vinicius Jose Latorre
2004-03-25 11:55 ` Juanma Barranquero
2004-03-25 12:30 ` Danilo Segan
2004-03-25 13:43 ` David Kastrup
2004-03-25 14:34 ` Danilo Segan
2004-03-29 20:34 ` Ted Lemon
2004-03-25 13:53 ` Juanma Barranquero
2004-03-25 14:49 ` Danilo Segan
2004-03-25 15:14 ` Juanma Barranquero
2004-03-25 16:08 ` Kim F. Storm
2004-03-25 16:53 ` Stefan Monnier
2004-03-25 18:56 ` Per Abrahamsen
2004-03-25 19:39 ` David Kastrup
2004-03-25 12:25 ` Jari Aalto+mail.linux
2004-03-25 12:55 ` Danilo Segan
2004-03-25 14:16 ` Jari Aalto
2004-03-25 16:28 ` David Kastrup
2004-03-25 17:28 ` Alan Shutko
2004-03-25 12:27 ` David Kastrup
2004-03-25 13:47 ` Danilo Segan
2004-03-25 15:18 ` David Kastrup
2004-03-25 13:35 ` Kim F. Storm
2004-03-25 13:53 ` Danilo Segan
2004-03-25 21:09 ` Juri Linkov
2004-03-27 5:52 ` Richard Stallman
2004-03-27 16:30 ` Joachim Nilsson
2004-03-26 0:11 ` Jari Aalto+mail.linux
2004-03-26 14:31 ` David Kastrup
2004-03-26 15:13 ` Stefan Monnier
2004-03-26 21:31 ` Jari Aalto
2004-03-26 21:29 ` David Kastrup
2004-03-27 0:16 ` Miles Bader
2004-03-28 17:02 ` Jari Aalto+mail.emacs
2004-03-28 17:37 ` David Kastrup
2004-03-28 21:11 ` Miles Bader
2004-03-28 21:10 ` Miles Bader
2004-03-25 11:42 ` David Kastrup
2004-03-25 12:27 ` Jari Aalto+mail.emacs
2004-03-25 14:56 ` Joachim Nilsson
2004-03-25 18:03 ` David Kastrup
2004-03-25 19:10 ` Per Abrahamsen
2004-03-25 16:47 ` Kim F. Storm
2004-03-25 16:42 ` David Kastrup
2004-03-26 0:13 ` Kim F. Storm
2004-03-27 5:52 ` Richard Stallman
2004-03-27 8:14 ` Jérôme Marant
2004-03-27 11:00 ` David Kastrup
2004-03-27 13:50 ` Jérôme Marant
2004-03-27 10:46 ` David Kastrup
2004-03-28 4:25 ` Richard Stallman
2004-03-28 17:03 ` Kim F. Storm
2004-03-28 21:14 ` Miles Bader
2004-04-01 16:04 ` Per Abrahamsen
2004-04-01 17:35 ` David Kastrup
2004-03-27 16:17 ` Joachim Nilsson
2004-03-28 4:25 ` Richard Stallman
2004-03-28 13:32 ` Joachim Nilsson
2004-03-28 13:50 ` David Kastrup
2004-03-28 17:52 ` Robert J. Chassell
2004-03-28 17:29 ` Stefan Monnier
2004-03-28 21:18 ` Miles Bader
2004-03-29 20:56 ` Richard Stallman
2004-03-31 9:30 ` Kim F. Storm
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=20040327000752.GC26429@fencepost \
--to=miles@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=jmbarranquero@wke.es \
--cc=storm@cua.dk \
/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.