unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Miles Bader <miles@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: `C-x n s' binding in org-mode
Date: Sun, 22 Jun 2008 08:05:38 -0400	[thread overview]
Message-ID: <jwvmyldwujr.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87abheudss.fsf@catnip.gol.com> (Miles Bader's message of "Sun, 22 Jun 2008 16:30:43 +0900")

> Org-mode adds a local binding to the `C-x n' keymap.
> This really confused me for a while because I global rebind `C-x n' to
> be something entirely different, so in org-mode, I ended up with a
> keymap containing _only_ the org-mode binding, erasing my personal
> binding.

> Anyway, this binding seemed pretty dodgy to me; what do others think?

The binding seems to make sense, although it's obviously not following
the major mode binding conventions.

Of course, org-mode should not bind "C-x n s" blindly, but should
instead use the same prefix as the one used by the "narrow submap".
But since (contrary to C-x and a few others) we do not have such an
explicit submap, it's pretty difficult.  I guess it could use where-is
on both narrow-to-region and widen and try to find the common
ancestor... Or we could simply define ctl-x-n-prefix, and then org-mode
could use where-is on that one.


        Stefan





  parent reply	other threads:[~2008-06-22 12:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-22  7:30 `C-x n s' binding in org-mode Miles Bader
2008-06-22  9:20 ` Bastien
2008-06-22  9:23 ` Lennart Borgman (gmail)
2008-06-22 12:05 ` Stefan Monnier [this message]
2008-06-22 12:15   ` Carsten Dominik
2008-06-22 12:39     ` Lennart Borgman (gmail)
2008-06-22 21:35     ` Stefan Monnier
2008-06-23  0:38       ` Miles Bader
2008-06-23  1:20         ` Stefan Monnier
2008-06-23 14:14     ` Richard M Stallman
2008-06-23 14:17       ` Miles Bader

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=jwvmyldwujr.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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).