all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 38535@debbugs.gnu.org
Subject: bug#38535: 26.3; Optionally make recursive editing more noticeable
Date: Sun, 8 Dec 2019 10:30:56 -0800 (PST)	[thread overview]
Message-ID: <cd868bce-a882-47f3-98ff-ae2be9ba453f@default> (raw)

Enhancement suggestion.

Recursive editing is sometimes useful.  Its main disadvantage is that
you might not be aware that you've entered or exited a recursive edit.

Please consider adding something like what this code provides:

https://www.emacswiki.org/emacs/download/rec-edit.el

There are really two different features there.  Either could be provided
on its own by Emacs.  But `rec-edit.el' rolls them together in a minor
mode, `rec-edit-mode'.

1. You can use the same key, `C-M-c', to enter a recursive edit as to
   exit.  When already in a recursive edit, it exits or, if you use a
   prefix arg, it enters a new recursive edit.  In other words, it does
   this:
     (if (or (< (recursion-depth) 1)
             current-prefix-arg)
         (recursive-edit)
       (exit-recursive-edit))

2. It optionally highlights the mode-line indication, `[...]', to make
   clear that you're in a recursive edit, and to indicate the depth.
   Whether this highlighting is done is controlled by a Boolean user
   option.

Emacs generally discourages, or doesn't encourage, initiating a
recursive edit.  That's understandable.  But sometimes it's useful, and
a major reason it's discouraged is because it's easy for users to not
realize they're in a recursive edit, or not know how to exit.

This minor mode aims to mitigate those downsides.  And it's off by
default, so presumably a user of it wants to make use of recursive
editing but wants to be aware when doing that.

I think something like this would be helpful for Emacs to provide.

In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
 of 2019-08-29
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor `Microsoft Corp.', version 10.0.17763
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''





             reply	other threads:[~2019-12-08 18:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-08 18:30 Drew Adams [this message]
2019-12-08 22:50 ` bug#38535: 26.3; Optionally make recursive editing more noticeable Juri Linkov
2019-12-08 23:19   ` Drew Adams
2021-06-14 14:33     ` Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=cd868bce-a882-47f3-98ff-ae2be9ba453f@default \
    --to=drew.adams@oracle.com \
    --cc=38535@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.