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#8935: 24.0.50; `substitute-command-keys' doc Date: Fri, 15 Jul 2011 12:18:44 -0700 Message-ID: References: <7A4E77E7DAE2436DA3DFE76693103500@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310757631 28521 80.91.229.12 (15 Jul 2011 19:20:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2011 19:20:31 +0000 (UTC) Cc: 8935@debbugs.gnu.org, 'Andreas Schwab' To: "'Lars Magne Ingebrigtsen'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 15 21:20:26 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qhnw1-0005eH-EG for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jul 2011 21:20:25 +0200 Original-Received: from localhost ([::1]:48664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhnw0-0003WV-C9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jul 2011 15:20:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhnvi-0003W1-1P for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2011 15:20:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qhnvg-00008H-Fa for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2011 15:20:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhnvg-00008C-6D for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2011 15:20:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qhnve-0005bU-UD; Fri, 15 Jul 2011 15:20:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2011 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8935 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 8935-submit@debbugs.gnu.org id=B8935.131075754521472 (code B ref 8935); Fri, 15 Jul 2011 19:20:02 +0000 Original-Received: (at 8935) by debbugs.gnu.org; 15 Jul 2011 19:19:05 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qhnui-0005aH-Nt for submit@debbugs.gnu.org; Fri, 15 Jul 2011 15:19:04 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qhnug-0005Zi-Ve for 8935@debbugs.gnu.org; Fri, 15 Jul 2011 15:19:03 -0400 Original-Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6FJItIS017573 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 15 Jul 2011 19:18:57 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6FJIrdI010630 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Jul 2011 19:18:54 GMT Original-Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6FJIm4g013353; Fri, 15 Jul 2011 14:18:48 -0500 Original-Received: from dradamslap1 (/10.159.40.132) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 15 Jul 2011 12:18:48 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcxDFKMARk58P/NMSEiHJUWBDgPWmgADFDwg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090208.4E2092A1.007F:SCFSTAT5015188, ss=1, re=-4.000, fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 15 Jul 2011 15:20:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49206 Archived-At: > > What is true is that \ by itself (not followed by [, =, > > etc.) does not _NEED_ to be escaped. But it is certainly true > > that \= escapes \, whether it needs to in any given context > > (e.g. \[) or not (e.g. \abc). If it escapes a \ that does not > > need escaping, the effect is a no-op. > > Uhm. Now I'm even more confused. > > "\=\e" will print as "\e"? Right? Right. > So it's not a noop, It's a no-op in the sense that it does nothing. Of course, it is still the case that, as the doc string says, the \= itself "is discarded". What remains is the \ that was escaped. Not sure what your confusion is. \= escapes the char that follows it. What does escaping mean in this context? Preventing \ from having any special behavior when it precedes =, [, etc. The point is that it is not the pair of characters \=, \[, etc. that is escaped. \ is the only char escaped: it is prevented from doing anything special; it just appears in the output as is. Because \ gets escaped, it has no special `substitute-command-keys' effect on what follows it, whatever that might be. > and the fix I applied was correct. Dunno what it was. What I described is a proper fix, IMO.