bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#32649: 27.0.50; up-list stops inside comment


From: Andreas Schwab
Subject: bug#32649: 27.0.50; up-list stops inside comment
Date: Sat, 08 Sep 2018 19:54:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

On Sep 08 2018, Andreas Röhler <address@hidden> wrote:

> On 07.09.2018 10:53, Andreas Schwab wrote:
>> On Sep 07 2018, Andreas Röhler <address@hidden> wrote:
>>
>>> On 07.09.2018 06:46, Leo Liu wrote:
>>>> On 2018-09-06 21:04 +0200, Andreas Röhler wrote:
>>>>> In scratch-buffer, cursor at "d" towards end of line 1
>>>>>
>>>>> (foo\n(a ;(b c d)
>>>>> e) bar)
>>>>>
>>>>> M-- M-x up-list --called with negative argument-- stops at opening
>>>>> paren inside comment.
>>>>
>>>> I am not following. What is the issue here?
>>>
>>> A list can't start resp. end inside a commented section.
>>
>> Sure it can.  Just because it's behind a comment char doesn't mean it's
>> not a list.
>>
>> Andreas.
>
> From Elisp Info
>
> 2.2 Comments
> ============
>
> A "comment" is text that is written in a program only for the sake of
> humans that read the program, and that has no effect on the meaning of
> the program.  [...] The Lisp reader discards comments; they do not
> become part of the Lisp objects which represent the program within the
> Lisp system.

The concept of a list is independent of any programming language, and
has nothing to do with the Lisp reader.  Moreover, you can run
eval-last-sexp also inside a comment.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





reply via email to

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