From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Juanma Barranquero <jmbarranquero@wke.es>, emacs-devel@gnu.org
Subject: Re: Suggestion: Mapping of M-g should be goto-line
Date: 26 Mar 2004 09:25:49 -0500 [thread overview]
Message-ID: <m13c7vu1yy.fsf-monnier+emacs@empanada.iro.umontreal.ca> (raw)
In-Reply-To: <m3zna3eqc6.fsf@kfs-l.imdomain.dk>
>> > Try
>> > M-x recursive-edit RET C-h k C-c C-c
>> > =>
>> > C-c C-c runs the command exit-recursive-edit
Exactly my point: yet another example of C-c C-c used for "I'm done editing,
now process it". In the context of recursive-edit, of course this should
not be `compile'.
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
(defvar done-editing-now-do-it-function 'compile)
(defun done-editing-now-do-it ()
"Do what needs to be done with what you've just finished editing."
(interactive)
(call-interactively done-editing-now-do-it-function))
(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.
In elisp-mode, I've rebound it to byte-compile-file.
I.e. this is not "a standard binding for `compile'", but "a formalization
of what C-c C-c is expected to do".
Stefan
next prev parent reply other threads:[~2004-03-26 14:25 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 [this message]
2004-03-27 0:07 ` Miles Bader
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=m13c7vu1yy.fsf-monnier+emacs@empanada.iro.umontreal.ca \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=jmbarranquero@wke.es \
/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.