unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Spencer Baugh <sbaugh@janestreet.com>
To: 64518@debbugs.gnu.org
Subject: bug#64518: 29.0.92; outline-mode sexp movement commands don't follow outline structure
Date: Fri, 07 Jul 2023 12:21:14 -0400	[thread overview]
Message-ID: <ier8rbrpu9x.fsf@janestreet.com> (raw)


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





             reply	other threads:[~2023-07-07 16:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-07 16:21 Spencer Baugh [this message]
2023-07-07 18:19 ` bug#64518: 29.0.92; outline-mode sexp movement commands don't follow outline structure Eli Zaretskii
2023-09-07 21:32   ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ier8rbrpu9x.fsf@janestreet.com \
    --to=sbaugh@janestreet.com \
    --cc=64518@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).