From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#10872: bug#10875: 24.0.93; `where-is-internal' and command remapping Date: Sun, 1 May 2016 13:30:46 -0700 (PDT) Message-ID: References: <500CA4A40EBF4D9E8A9C18A4AD5F0737@us.oracle.com> <03BF7C8FBF2747F0BE37715153E239BF@us.oracle.com> <87wpnhkfrx.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1462134763 3915 80.91.229.3 (1 May 2016 20:32:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 May 2016 20:32:43 +0000 (UTC) Cc: 10872@debbugs.gnu.org, Chong Yidong , 10875@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 01 22:32:30 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1awy2X-0003yc-IP for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 May 2016 22:32:29 +0200 Original-Received: from localhost ([::1]:34237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awy2T-0006fQ-P6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 May 2016 16:32:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awy2K-0006SF-Ti for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 16:32:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awy29-0000zD-5G for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 16:32:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awy29-0000xR-1q for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 16:32:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1awy25-0000q0-JD for bug-gnu-emacs@gnu.org; Sun, 01 May 2016 16:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 May 2016 20:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10872 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 10872-submit@debbugs.gnu.org id=B10872.1462134665559 (code B ref 10872); Sun, 01 May 2016 20:32:01 +0000 Original-Received: (at 10872) by debbugs.gnu.org; 1 May 2016 20:31:05 +0000 Original-Received: from localhost ([127.0.0.1]:32852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awy1A-00008f-S8 for submit@debbugs.gnu.org; Sun, 01 May 2016 16:31:05 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:44255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awy18-0008SC-Ry; Sun, 01 May 2016 16:31:03 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u41KUuwi004746 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 1 May 2016 20:30:56 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u41KUtLp006595 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 1 May 2016 20:30:55 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u41KUnGT023835; Sun, 1 May 2016 20:30:51 GMT In-Reply-To: <87wpnhkfrx.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117547 Archived-At: > The optional 5th arg NO-REMAP alters how command remapping is handled: >=20 > - 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. >=20 > - 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. */) >=20 > 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.