unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: rms@gnu.org
Cc: wilde@sha-bang.de, schwab@suse.de, stefan@xsteve.at, emacs-devel@gnu.org
Subject: Re: Strange change in backquote expansion
Date: Tue, 21 Aug 2007 15:26:58 -0400	[thread overview]
Message-ID: <jwvy7g4k8il.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1INUza-0004bv-NB@fencepost.gnu.org> (Richard Stallman's message of "Tue\, 21 Aug 2007 10\:46\:02 -0400")

>> 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

  parent reply	other threads:[~2007-08-21 19:26 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-18 21:34 Strange change in backquote expansion Sascha Wilde
2007-08-19 15:52 ` Richard Stallman
2007-08-19 16:11   ` Andreas Schwab
2007-08-20 15:16     ` Richard Stallman
2007-08-20 16:36       ` Stefan Monnier
2007-08-21 14:46         ` Richard Stallman
2007-08-21 14:57           ` David Kastrup
2007-08-21 18:11             ` Glenn Morris
2007-08-22  3:15             ` Richard Stallman
2007-08-21 19:26           ` Stefan Monnier [this message]
2007-08-22  3:15             ` Richard Stallman
2007-08-22 16:10               ` Stefan Monnier
2007-08-19 16:19   ` Johan Bockgård
2007-08-20 15:16     ` Richard Stallman
2007-08-20  4:16 ` Stefan Monnier
2007-08-21 19:09 ` Stefan Monnier
2007-08-21 19:45   ` Andreas Schwab
2007-08-22 14:58     ` Stefan Monnier
2007-08-22 16:57       ` Andreas Schwab
2007-08-22 18:36         ` Stefan Monnier
2007-08-22 20:33   ` Sascha Wilde
2007-08-22 20:36     ` Stefan Monnier
2007-08-26  6:33 ` Michael Olson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvy7g4k8il.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    --cc=schwab@suse.de \
    --cc=stefan@xsteve.at \
    --cc=wilde@sha-bang.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).