emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

eval-last-sexp / C-x C-e, and punctuation like `?’' [Was: Re: Change of


From: Garreau\, Alexandre
Subject: eval-last-sexp / C-x C-e, and punctuation like `?’' [Was: Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?)]
Date: Sat, 06 Oct 2018 17:40:53 +0200
User-agent: Gnus (5.13), GNU Emacs 25.1.1 (i686-pc-linux-gnu)

On 2018-10-04 at 20:03, Noam Postavsky wrote:
> On Fri, 2 Feb 2018 at 17:24, Noam Postavsky
> <address@hidden> wrote:
>>
>> In Emacs 26 and earlier the following is valid lisp code:
>>
>> (setq ’bar 42)
>> (setq foo ’bar)

I just noticed: in emacs 25, if evaluating `’bar' with `eval-last-sexp'
/ C-x C-e, this gives an error as it ignores the ?’ and eval only `bar',
the same way, if point is placed after the ?’, it tries to eval “setq”…

Maybe I do not know enough of elisp, but why that? are there other
punctuation characters triggering this behavior?  meanwhile, are they
all okay for the reader to put in symbols unescaped (except ? , ?\",
?\(, ?\), ?,, ?`, and maybe some others from ascii I forgot)?

Why does eval-last-sexps treat this differently than the reader?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]