unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32649: 27.0.50; up-list stops inside comment
@ 2018-09-06 19:04 Andreas Röhler
  2018-09-07  4:46 ` Leo Liu
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Röhler @ 2018-09-06 19:04 UTC (permalink / raw)
  To: 32649

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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32649: 27.0.50; up-list stops inside comment
  2018-09-06 19:04 bug#32649: 27.0.50; up-list stops inside comment Andreas Röhler
@ 2018-09-07  4:46 ` Leo Liu
  2018-09-07  7:52   ` Andreas Röhler
  0 siblings, 1 reply; 8+ messages in thread
From: Leo Liu @ 2018-09-07  4:46 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 32649

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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32649: 27.0.50; up-list stops inside comment
  2018-09-07  4:46 ` Leo Liu
@ 2018-09-07  7:52   ` Andreas Röhler
  2018-09-07  8:53     ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Röhler @ 2018-09-07  7:52 UTC (permalink / raw)
  To: Leo Liu; +Cc: 32649

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.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32649: 27.0.50; up-list stops inside comment
  2018-09-07  7:52   ` Andreas Röhler
@ 2018-09-07  8:53     ` Andreas Schwab
  2018-09-08 17:15       ` Andreas Röhler
  2020-08-21 11:51       ` Stefan Kangas
  0 siblings, 2 replies; 8+ messages in thread
From: Andreas Schwab @ 2018-09-07  8:53 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Leo Liu, 32649

On Sep 07 2018, Andreas Röhler <andreas.roehler@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@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32649: 27.0.50; up-list stops inside comment
  2018-09-07  8:53     ` Andreas Schwab
@ 2018-09-08 17:15       ` Andreas Röhler
  2018-09-08 17:54         ` Andreas Schwab
  2020-08-21 11:51       ` Stefan Kangas
  1 sibling, 1 reply; 8+ messages in thread
From: Andreas Röhler @ 2018-09-08 17:15 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Leo Liu, 32649

On 07.09.2018 10:53, Andreas Schwab wrote:
> On Sep 07 2018, Andreas Röhler <andreas.roehler@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

> 






^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32649: 27.0.50; up-list stops inside comment
  2018-09-08 17:15       ` Andreas Röhler
@ 2018-09-08 17:54         ` Andreas Schwab
  2018-09-08 19:26           ` Andreas Röhler
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2018-09-08 17:54 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Leo Liu, 32649

On Sep 08 2018, Andreas Röhler <andreas.roehler@easy-emacs.de> wrote:

> On 07.09.2018 10:53, Andreas Schwab wrote:
>> On Sep 07 2018, Andreas Röhler <andreas.roehler@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@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32649: 27.0.50; up-list stops inside comment
  2018-09-08 17:54         ` Andreas Schwab
@ 2018-09-08 19:26           ` Andreas Röhler
  0 siblings, 0 replies; 8+ messages in thread
From: Andreas Röhler @ 2018-09-08 19:26 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Leo Liu, 32649

On 08.09.2018 19:54, Andreas Schwab wrote:
> On Sep 08 2018, Andreas Röhler <andreas.roehler@easy-emacs.de> wrote:
> 
>> On 07.09.2018 10:53, Andreas Schwab wrote:
>>> On Sep 07 2018, Andreas Röhler <andreas.roehler@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? ;)





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#32649: 27.0.50; up-list stops inside comment
  2018-09-07  8:53     ` Andreas Schwab
  2018-09-08 17:15       ` Andreas Röhler
@ 2020-08-21 11:51       ` Stefan Kangas
  1 sibling, 0 replies; 8+ messages in thread
From: Stefan Kangas @ 2020-08-21 11:51 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Leo Liu, 32649

tags 32649 + notabug wontfix
close 32649
thanks

Andreas Schwab <schwab@linux-m68k.org> writes:

> On Sep 07 2018, Andreas Röhler <andreas.roehler@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





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-08-21 11:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-06 19:04 bug#32649: 27.0.50; up-list stops inside comment Andreas Röhler
2018-09-07  4:46 ` Leo Liu
2018-09-07  7:52   ` Andreas Röhler
2018-09-07  8:53     ` Andreas Schwab
2018-09-08 17:15       ` Andreas Röhler
2018-09-08 17:54         ` Andreas Schwab
2018-09-08 19:26           ` Andreas Röhler
2020-08-21 11:51       ` Stefan Kangas

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