GNU bug report logs - #64518
29.0.92; outline-mode sexp movement commands don't follow outline structure

Previous Next

Package: emacs;

Reported by: Spencer Baugh <sbaugh <at> janestreet.com>

Date: Fri, 7 Jul 2023 16:22:02 UTC

Severity: normal

Tags: wontfix

Found in version 29.0.92

Done: Stefan Kangas <stefankangas <at> gmail.com>

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 64518 in the body.
You can then email your comments to 64518 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#64518; Package emacs. (Fri, 07 Jul 2023 16:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Spencer Baugh <sbaugh <at> janestreet.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 07 Jul 2023 16:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Spencer Baugh <sbaugh <at> janestreet.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.92; outline-mode sexp movement commands don't follow outline
 structure
Date: Fri, 07 Jul 2023 12:21:14 -0400
This is more of a feature request.

Functions like C-M-f (forward-sexp) and C-M-SPC (mark-sexp) are supposed
to be configured by individual modes to behave in a way appropriate for
that mode.  But outline-mode does not do this.

For example, C-M-b/C-M-f ({backward,forward}-sexp) could behave like
outline-{backward,forward}-same-level, since that's analogous to how
they behave in Lisp.  C-M-SPC could behave like outline-mark-subtree.
C-M-u could back out of the current heading, up to the next level, lke
outline-up-heading.  And so on.

Since these are the standard Emacs structured editing commands, it would
be good for outline-mode to customize them to have the correct
"structured" behavior.  (Probably behind some defcustom, since this
would be a behavior change)

Right now they are much less useful than they could otherwise be...




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#64518; Package emacs. (Fri, 07 Jul 2023 18:20:01 GMT) Full text and rfc822 format available.

Message #8 received at 64518 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Spencer Baugh <sbaugh <at> janestreet.com>
Cc: 64518 <at> debbugs.gnu.org
Subject: Re: bug#64518: 29.0.92;
 outline-mode sexp movement commands don't follow outline structure
Date: Fri, 07 Jul 2023 21:19:39 +0300
> From: Spencer Baugh <sbaugh <at> janestreet.com>
> Date: Fri, 07 Jul 2023 12:21:14 -0400
> 
> 
> Functions like C-M-f (forward-sexp) and C-M-SPC (mark-sexp) are supposed
> to be configured by individual modes to behave in a way appropriate for
> that mode.  But outline-mode does not do this.

outline-mode is not a programming-language mode, so sexp-related
commands make no sense for it.  It is more related to text-mode.

Outline mode and its derivatives already have motion commands that
move in terms of headings and trees/subtrees.  I see no reason to
confuse users with some kind of artificial notion of "sexps" applied
to text.

So I think your feature request is a step in the wrong direction.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#64518; Package emacs. (Thu, 07 Sep 2023 21:33:02 GMT) Full text and rfc822 format available.

Message #11 received at 64518 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Spencer Baugh <sbaugh <at> janestreet.com>
Cc: 64518 <at> debbugs.gnu.org
Subject: Re: bug#64518: 29.0.92; outline-mode sexp movement commands don't
 follow outline structure
Date: Thu, 7 Sep 2023 14:32:42 -0700
tags 64518 + wontfix
close 64518
thanks

Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Spencer Baugh <sbaugh <at> janestreet.com>
>> Date: Fri, 07 Jul 2023 12:21:14 -0400
>>
>>
>> Functions like C-M-f (forward-sexp) and C-M-SPC (mark-sexp) are supposed
>> to be configured by individual modes to behave in a way appropriate for
>> that mode.  But outline-mode does not do this.
>
> outline-mode is not a programming-language mode, so sexp-related
> commands make no sense for it.  It is more related to text-mode.
>
> Outline mode and its derivatives already have motion commands that
> move in terms of headings and trees/subtrees.  I see no reason to
> confuse users with some kind of artificial notion of "sexps" applied
> to text.
>
> So I think your feature request is a step in the wrong direction.

I agree, and I'm therefore closing this as wontfix.  Sorry.




Added tag(s) wontfix. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 07 Sep 2023 21:33:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 64518 <at> debbugs.gnu.org and Spencer Baugh <sbaugh <at> janestreet.com> Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 07 Sep 2023 21:33:02 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. (Fri, 06 Oct 2023 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 217 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.