diff options
| author | Stefan Monnier | 2010-06-18 10:13:59 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-06-18 10:13:59 -0400 |
| commit | 894e369ddf48e191638b8e66ce732f24ff9abe2a (patch) | |
| tree | 0d14b38c2946f0067c856911bf4949b7e8091a88 /src/lread.c | |
| parent | 4a330052b4815cf833071aae5cb312f6f0f63613 (diff) | |
| parent | b1a03ef6bfba4296dddc3df1e8f9d54aba3e45e3 (diff) | |
| download | emacs-894e369ddf48e191638b8e66ce732f24ff9abe2a.tar.gz emacs-894e369ddf48e191638b8e66ce732f24ff9abe2a.zip | |
Merge from trunk
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c index 53f26faea36..95b5dcd45ed 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -2819,7 +2819,17 @@ read1 (readcharfun, pch, first_in_list) | |||
| 2819 | } | 2819 | } |
| 2820 | 2820 | ||
| 2821 | case '`': | 2821 | case '`': |
| 2822 | if (first_in_list) | 2822 | /* Transition from old-style to new-style: |
| 2823 | If we see "(`" it used to mean old-style, which usually works | ||
| 2824 | fine because ` should almost never appear in such a position | ||
| 2825 | for new-style. But occasionally we need "(`" to mean new | ||
| 2826 | style, so we try to distinguish the two by the fact that we | ||
| 2827 | can either write "( `foo" or "(` foo", where the first | ||
| 2828 | intends to use new-style whereas the second intends to use | ||
| 2829 | old-style. For Emacs-25, we should completely remove this | ||
| 2830 | first_in_list exception (old-style can still be obtained via | ||
| 2831 | "(\`" anyway). */ | ||
| 2832 | if (first_in_list && (c = READCHAR, UNREAD (c), c == ' ')) | ||
| 2823 | { | 2833 | { |
| 2824 | Vold_style_backquotes = Qt; | 2834 | Vold_style_backquotes = Qt; |
| 2825 | goto default_label; | 2835 | goto default_label; |