From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.devel Subject: Re: emacs-24.0.92 and backquote Date: Sun, 11 Dec 2011 11:28:31 +0530 Message-ID: <81liqj7ipk.fsf@gmail.com> References: <4EE41387.8030309@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1323583135 23008 80.91.229.12 (11 Dec 2011 05:58:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Dec 2011 05:58:55 +0000 (UTC) Cc: "Nelson H. F. Beebe" , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 11 06:58:50 2011 Return-path: Envelope-to: ged-emacs-devel@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 1RZcR0-00080z-1L for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2011 06:58:50 +0100 Original-Received: from localhost ([::1]:47303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZcQz-0003WW-Mj for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2011 00:58:49 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZcQx-0003WR-81 for emacs-devel@gnu.org; Sun, 11 Dec 2011 00:58:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RZcQv-0002kR-Hh for emacs-devel@gnu.org; Sun, 11 Dec 2011 00:58:47 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:64873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZcQv-0002kL-AQ for emacs-devel@gnu.org; Sun, 11 Dec 2011 00:58:45 -0500 Original-Received: by iahk25 with SMTP id k25so7948010iah.0 for ; Sat, 10 Dec 2011 21:58:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=qTf/0TgxFv9/92hTf7OQGfLl05y9JM2jmbc1tV3/k48=; b=svFTXX6bLhuShohZllYqxQ1RccrGwsN9JwUUdZ2Q5qCQVkfqhDgbJuBnSqlmESQhS6 CuIxoB97QMKurFAFd2UAWo0KyJ3Zh7eAEj/MMcHWsRmrwzExU0GAUzSbcT9QawOkEcfX IbLXn4j2Syrn47O06nsgrmPbfbrsObrTcLsUk= Original-Received: by 10.42.136.137 with SMTP id u9mr4677728ict.50.1323583123436; Sat, 10 Dec 2011 21:58:43 -0800 (PST) Original-Received: from JAMBU-NETBOOK ([115.242.224.235]) by mx.google.com with ESMTPS id r18sm12047159ibh.4.2011.12.10.21.58.37 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 10 Dec 2011 21:58:42 -0800 (PST) In-Reply-To: <4EE41387.8030309@cs.ucla.edu> (Paul Eggert's message of "Sat, 10 Dec 2011 18:20:55 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146641 Archived-At: Paul Eggert writes: > On 12/10/11 16:00, Nelson H. F. Beebe wrote: >> Can any of you offer suggestions as to what is expected here, or have >> I possibly exposed a bug in the new emacs-24 code? > > In Emacs Lisp one used to write (` EXPR) rather than `EXPR. The > latter is the normal style in other Lisps, and was adopted by Emacs as > the "new-style backquotes" around Emacs 20, but the old style was > still supported for a while (and still is, to some extent). > Bug#6490 contains > more info about this. Old-style backquotes apparently stopped working > to some extent in Emacs 20 and were marked officially obsolete in > Emacs 22.1, and are scheduled to be removed in Emacs 25. > > The info about the old syntax was removed from the documentation in > March 2009 in bzr 95128 > . > Emacs 24 still accepts this old syntax, so perhaps it should still be > documented? Here's the text that was removed: > > In old Emacs versions, before version 19.29, @samp{`} used a > different syntax which required an extra level of parentheses > around the entire backquote construct. Likewise, each @samp{,} or > @samp{,@@} substitution required an extra level of parentheses > surrounding both the @samp{,} or @samp{,@@} and the following > expression. The old syntax required whitespace between the > @samp{`}, @samp{,} or @samp{,@@} and the following expression. > > This syntax is still accepted, for compatibility with old Emacs > versions, but support for it will be removed in the future. > > > Anyway, to get back to your example, it uses the syntax (`(EXPR)) that > was formerly invalid, but was silently accepted as if it were the > old-style (` (EXPR)), i.e., the new-style `(EXPR). I think support > for this invalid usage was removed around bzr 100605 > , dated > June of this year, and that's what is causing your problem. The NEWS has the following entry: ,---- Incompatible Lisp Changes in Emacs 24.1 | ** A backquote not followed by a space is now always treated as new-style. `---- Wondering what a "new-style" means! > The simplest fix for your example is to change it to use the old syntax: > > --- ltxmenu.el 2004-07-28 16:58:31.000000000 -0700 > +++ ltxmenu-fix.el 2011-12-10 18:16:56.652363670 -0800 > @@ -533,7 +533,7 @@ > ;;; of its components have been defined above. > > (setq internal-x-LaTeX-menu-of-menus > - (`("LaTeX main menu" ;this menu title is never displayed > + (` ("LaTeX main menu" ;this menu title is never displayed > (, internal-x-LaTeX-menu-startup) > (, internal-x-LaTeX-menu-accents) > (, internal-x-LaTeX-menu-insertion) > > But that will stop working in Emacs 25. > Instead, I'd change to the new syntax: > > --- ltxmenu.el 2004-07-28 16:58:31.000000000 -0700 > +++ ltxmenu-fix.el 2011-12-10 18:18:28.883204171 -0800 > @@ -533,22 +533,22 @@ > ;;; of its components have been defined above. > > (setq internal-x-LaTeX-menu-of-menus > - (`("LaTeX main menu" ;this menu title is never displayed > - (, internal-x-LaTeX-menu-startup) > - (, internal-x-LaTeX-menu-accents) > - (, internal-x-LaTeX-menu-insertion) > - (, internal-x-LaTeX-menu-begin-end) > - (, internal-x-LaTeX-menu-begin-end-1) > - (, internal-x-LaTeX-menu-begin-end-2) > - (, internal-x-LaTeX-menu-begin-end-3) > - (, internal-x-LaTeX-menu-begin-end-4) > - (, internal-x-LaTeX-menu-checking) > - (, internal-x-LaTeX-menu-comment) > - (, internal-x-LaTeX-menu-cross-reference) > - (, internal-x-LaTeX-menu-font) > - (, internal-x-LaTeX-menu-index) > - (, internal-x-LaTeX-menu-miscellaneous) > - ))) > + `("LaTeX main menu" ;this menu title is never displayed > + ,internal-x-LaTeX-menu-startup > + ,internal-x-LaTeX-menu-accents > + ,internal-x-LaTeX-menu-insertion > + ,internal-x-LaTeX-menu-begin-end > + ,internal-x-LaTeX-menu-begin-end-1 > + ,internal-x-LaTeX-menu-begin-end-2 > + ,internal-x-LaTeX-menu-begin-end-3 > + ,internal-x-LaTeX-menu-begin-end-4 > + ,internal-x-LaTeX-menu-checking > + ,internal-x-LaTeX-menu-comment > + ,internal-x-LaTeX-menu-cross-reference > + ,internal-x-LaTeX-menu-font > + ,internal-x-LaTeX-menu-index > + ,internal-x-LaTeX-menu-miscellaneous > + )) > > ;;; NB: All internal-x-LaTeX-xxx commands that are called from the > ;;; menus MUST call (interactive) (so commandp is true). > > > --