From: Drew Adams <drew.adams@oracle.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 10872@debbugs.gnu.org, Chong Yidong <cyd@gnu.org>, 10875@debbugs.gnu.org
Subject: bug#10872: bug#10875: 24.0.93; `where-is-internal' and command remapping
Date: Sun, 1 May 2016 13:30:46 -0700 (PDT) [thread overview]
Message-ID: <d2973519-1096-4177-99fb-a89197daf89d@default> (raw)
In-Reply-To: <87wpnhkfrx.fsf@gnus.org>
> The optional 5th arg NO-REMAP alters how command remapping is handled:
>
> - If another command OTHER-COMMAND is remapped to DEFINITION, normally
> search for the bindings of OTHER-COMMAND and include them in the
> returned list. But if NO-REMAP is non-nil, include the vector
> [remap OTHER-COMMAND] in the returned list instead, without
> searching for those other bindings.
>
> - If DEFINITION is remapped to OTHER-COMMAND, normally return the
> bindings for OTHER-COMMAND. But if NO-REMAP is non-nil, return the
> bindings for DEFINITION instead, ignoring its remapping. */)
>
> I'm not sure I understand what you're saying about `where-is-internal'.
> Do you have a test case that displays that it's doing something other
> then what is documented?
Yes, that newer doc describes what I see, so there is apparently
no behavior bug, wrt that.
Note that this new doc says exactly the opposite of the doc
that I quoted when I filed the bug. That older doc says:
It also returns `nil' if COMMAND won't really be run because
it has been remapped to some other command.
And that is the case here: the remapped command `forward-char'
is not run because its keys have been remapped to `foobar'.
So according to the older doc it should return nil.
However, if NO-REMAP is non-`nil' `where-is-internal'
ignores remappings.
That presumably means that remappings (the previous sentence)
are ignored if NO-REMAP is non-nil. But it is nil in the
test case, so presumably remappings are not to be ignored
and the preceding sentence applies: nil should be returned.
The newer doc describes what I reported. So yes, this can
be closed now.
prev parent reply other threads:[~2016-05-01 20:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 18:16 bug#10875: 24.0.93; `where-is-internal' and command remapping Drew Adams
2012-03-10 15:29 ` Drew Adams
2012-04-22 23:00 ` Drew Adams
2012-07-21 21:59 ` Drew Adams
2016-04-28 13:46 ` bug#10872: " Lars Ingebrigtsen
2016-05-01 20:30 ` Drew Adams [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=d2973519-1096-4177-99fb-a89197daf89d@default \
--to=drew.adams@oracle.com \
--cc=10872@debbugs.gnu.org \
--cc=10875@debbugs.gnu.org \
--cc=cyd@gnu.org \
--cc=larsi@gnus.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 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.