GNU bug report logs -
#32649
27.0.50; up-list stops inside comment
Previous Next
Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Date: Thu, 6 Sep 2018 19:01:02 UTC
Severity: wishlist
Tags: notabug, wontfix
Found in version 27.0.50
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32649 in the body.
You can then email your comments to 32649 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32649
; Package
emacs
.
(Thu, 06 Sep 2018 19:01:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Andreas Röhler <andreas.roehler <at> easy-emacs.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 06 Sep 2018 19:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Thanks,
Andreas,
GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5) of
2018-08-29
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32649
; Package
emacs
.
(Fri, 07 Sep 2018 04:47:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 32649 <at> debbugs.gnu.org (full text, mbox):
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?
up-list has always worked that way and it is a nice feature of emacs
that I use everybody.
Cheers,
Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32649
; Package
emacs
.
(Fri, 07 Sep 2018 07:49:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 32649 <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32649
; Package
emacs
.
(Fri, 07 Sep 2018 08:54:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 32649 <at> debbugs.gnu.org (full text, mbox):
On Sep 07 2018, Andreas Röhler <andreas.roehler <at> easy-emacs.de> 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.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32649
; Package
emacs
.
(Sat, 08 Sep 2018 17:12:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 32649 <at> debbugs.gnu.org (full text, mbox):
On 07.09.2018 10:53, Andreas Schwab wrote:
> On Sep 07 2018, Andreas Röhler <andreas.roehler <at> easy-emacs.de> 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.
;;;
BTW being in favor to remove all syntax-fiddling from plain text modes
and fundamental-mode alike. Setting syntax there must produce
inconsistency and unexpected behavior.
An example: try M-x backward-sexp RET from end of a text-mode buffer
with contents:
1) Asdf
2) Asdf
>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32649
; Package
emacs
.
(Sat, 08 Sep 2018 17:55:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 32649 <at> debbugs.gnu.org (full text, mbox):
On Sep 08 2018, Andreas Röhler <andreas.roehler <at> easy-emacs.de> wrote:
> On 07.09.2018 10:53, Andreas Schwab wrote:
>> On Sep 07 2018, Andreas Röhler <andreas.roehler <at> easy-emacs.de> 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, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32649
; Package
emacs
.
(Sat, 08 Sep 2018 19:23:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 32649 <at> debbugs.gnu.org (full text, mbox):
On 08.09.2018 19:54, Andreas Schwab wrote:
> On Sep 08 2018, Andreas Röhler <andreas.roehler <at> easy-emacs.de> wrote:
>
>> On 07.09.2018 10:53, Andreas Schwab wrote:
>>> On Sep 07 2018, Andreas Röhler <andreas.roehler <at> easy-emacs.de> 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.
Hmm, didn't expect that and don't believe it. We speak about lists in
emacs-lisp here, it is defined what a list is. They affect there meaning
of a program and therefor can't exist inside a comment.
Moreover, you can run
> eval-last-sexp also inside a comment.
>
Thanks, just another bug. As the info above tells contents of a comment
having no effect WRT meaning of a program, result of evaluation in this
case comes from the deepness of nothing? ;)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32649
; Package
emacs
.
(Fri, 21 Aug 2020 11:52:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 32649 <at> debbugs.gnu.org (full text, mbox):
tags 32649 + notabug wontfix
close 32649
thanks
Andreas Schwab <schwab <at> linux-m68k.org> writes:
> On Sep 07 2018, Andreas Röhler <andreas.roehler <at> easy-emacs.de> 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.
The request here is to make the navigational command `up-list' ignore
commented out text. From reading this thread, no one was very
enthusiastic about this proposal.
To the arguments presented by others for the correctness of this
behaviour, I can only add that the proposal would make the command
significantly less useful.
I'm therefore closing this as wontfix.
Best regards,
Stefan Kangas
Added tag(s) notabug and wontfix.
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Fri, 21 Aug 2020 11:52:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
32649 <at> debbugs.gnu.org and Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Fri, 21 Aug 2020 11:52:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 19 Sep 2020 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 219 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.