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: Strange change in backquote expansion Date: Tue, 21 Aug 2007 15:26:58 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187724498 28113 80.91.229.12 (21 Aug 2007 19:28:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2007 19:28:18 +0000 (UTC) Cc: wilde@sha-bang.de, schwab@suse.de, stefan@xsteve.at, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 21 21:28:12 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 1INZOc-0008Kl-Cm for ged-emacs-devel@m.gmane.org; Tue, 21 Aug 2007 21:28:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INZOb-00082w-Vz for ged-emacs-devel@m.gmane.org; Tue, 21 Aug 2007 15:28:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INZOX-00082U-IL for emacs-devel@gnu.org; Tue, 21 Aug 2007 15:28:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INZOW-00082A-9S for emacs-devel@gnu.org; Tue, 21 Aug 2007 15:28:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INZOW-000827-69 for emacs-devel@gnu.org; Tue, 21 Aug 2007 15:28:04 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INZOU-0002BV-Or; Tue, 21 Aug 2007 15:28:02 -0400 Original-Received: from ceviche.home (vpn-132-204-232-142.acd.umontreal.ca [132.204.232.142]) by chene.dit.umontreal.ca (8.13.7/8.13.7) with ESMTP id l7LJRxWN022393; Tue, 21 Aug 2007 15:28:00 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id CDF8A70039; Tue, 21 Aug 2007 15:26:58 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Tue\, 21 Aug 2007 10\:46\:02 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-NAI-Spam-Score: -2.5 X-NAI-Spam-Rules: 2 Rules triggered BAYES_00=-2.5, HAS_X_HELO=0 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:76910 Archived-At: >> Since 19.29 was 12 years ago, I think it is time to delete the >> documentation of that compatibility feature. Does anyone object? > I believe the old syntax is still used in some of the bundled > packages, not to mention the unbundled ones. > Can you arrange to issue a warning when reading code that uses the old > syntax? There could be a flag to control the warning, and for the moment > we could make only the byte compiler turn on the flag. That would make > it convenient if the warnings come thru the compiler warning mechanism. How 'bout the following: - add a new variable no-old-style-backquotes, with 2 values: t = treat all backquotes and commas as new style nil = behave like now (i.e. try to tell which is which) - add a new variable new-old-style-backquotes. When no-old-style-backquotes is t and we encounter an old-style backquote, remember the fact in this variable (could be just a boolean flag or a list of the affected sexps). I.e. this keeps track of the backquotes that used to be treated as old-style but have been instead treated as new-style. Then default no-old-style-backquotes to nil, but bind it to t in the byte-compiler (and at the end of byte-compilation of a file, check new-old-style-backquotes to see if there's been something fishy and warn about it if so). Stefan