From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: how to replace old-style backquotes Date: Mon, 27 Dec 2010 21:32:23 -0500 Organization: A noiseless patient Spider Message-ID: References: <877hf3og6k.fsf@notengoamigos.org> <87tyi7w0i2.fsf@member.fsf.org> <20101224140644.GA10586@shi.workgroup> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1293504033 3824 80.91.229.12 (28 Dec 2010 02:40:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 28 Dec 2010 02:40:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 28 03:40:29 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PXPUB-0007iV-19 for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Dec 2010 03:40:27 +0100 Original-Received: from localhost ([127.0.0.1]:44883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PXPUA-0007q1-Hm for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Dec 2010 21:40:26 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Injection-Info: mx01.eternal-september.org; posting-host="vVLY7BbminM2r0OBdDtBhQ"; logging-data="9784"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VrbMiBh0k1CLquRspmOgg" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:QatJ8BarqK9vmRWNKCvrkDox39U= sha1:heNQ2GFM+1Bprc7nE3WMgk4BWo0= Original-Xref: usenet.stanford.edu gnu.emacs.help:183693 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77924 Archived-At: >> "(` ...)" --> "`..." >> "(, ...)" --> ",..." >> "(,@ ...)" --> ",@..." > Hm, well, I think, yes. But don't complain at me if there is some > corner case where that simple rule is not correct. That's right. Another way to solve this is to use neither old- nor new-style and simply use explicit symbol names. I.e. add backslash before each comma and backquote: (` ...) --> (\` ...) (, ...) --> (\, ...) (,@ ...) --> (\,@ ...) >> Or is it more complex than that? E.g. does it matter how these are >> nested > Well, yes. Commas are only to be replaced in backquoted forms, but > since that's the only use anyway... Actually, while commas are usually only used within backquotes, the ` and , special syntax can also be used for other things than the backquote macro. Stefan