From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Old-style backquotes in cc-vars.el Date: Sat, 06 Oct 2007 18:27:00 -0400 Message-ID: References: <20071006163101.GA2565@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191709644 16421 80.91.229.12 (6 Oct 2007 22:27:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2007 22:27:24 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Peter Dyballa , Martin Stjernholm , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 07 00:27:18 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IeI7B-0007L8-4N for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2007 00:27:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IeI75-0002GM-Vt for ged-emacs-devel@m.gmane.org; Sat, 06 Oct 2007 18:27:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IeI72-0002Fw-Mg for emacs-devel@gnu.org; Sat, 06 Oct 2007 18:27:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IeI71-0002Fi-A8 for emacs-devel@gnu.org; Sat, 06 Oct 2007 18:27:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IeI71-0002Ff-59 for emacs-devel@gnu.org; Sat, 06 Oct 2007 18:27:07 -0400 Original-Received: from bas-flu-bbcs-dynip-209-209.vtx.ch ([83.228.209.209] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IeI6v-0000Ab-KM; Sat, 06 Oct 2007 18:27:02 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C90F8B40AF; Sat, 6 Oct 2007 18:27:00 -0400 (EDT) In-Reply-To: <20071006163101.GA2565@muc.de> (Alan Mackenzie's message of "Sat\, 6 Oct 2007 16\:31\:01 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80356 Archived-At: >> cc-vars uses a mix of old-style a new-style backquotes. > I don't think it does. The warning indicates that Emacs sees old-style backquotes, aqnd I'm pretty sure there are new style backquotes as well, so I'm pretty sure you're wrong. > He wouldn't knowingly have put in old-style BQs as late as 2001. Maybe he did it knowingly: he's using nested backquotes and IIRC they didn't always work correctly in older versions of Emacs when used with new-style backquotes. Actually IIRC the problem was with nested new-style commas (where the second would not be recognized as new-style) which indeed do appear in that code. > I'm not sure whether the rules for nested backquotes are clearly laid > out anywhere. The problem is not about nesting but about new-style vs old-style: the detailed rule about which is which is indeed only specified implicitly in the source code. > I think they're formally ambiguous (i.e., RTFS). I tried > replacing "`(` (radio" with both > "`( (` (radio" (explicitly putting in an "old-style" BQ) > , and > "`` (radio" (replacing the alleged "old-style" BQ with a > "new-style" one) > , but each of these generated results different from the original > (checked with macroexpand). You need to fix the ,(, part accordingly. > So would I. ;-( Thien-Thi might be a good start. > Who is the bytecomp expert, again? Could we possibly ask him about the > semantics of `(` (radio ? It's (\` (\` (radio > Possibly, the analysis in lread.c needs to be done more rigorously. I have no idea what that means. Stefan