* bug#55756: 26.3; Document customization of `delete-selection-mode' behavior in Emacs manual
@ 2022-06-01 19:35 Drew Adams
2022-06-02 5:11 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2022-06-01 19:35 UTC (permalink / raw)
To: 55756
Apparently (see bug #55692), starting with Emacs 29, some text is
getting added to (emacs) `Using Region' to describe the use of new
option `delete-selection-temporary-region', and that text touts the
option as the/a way to "tune the behavior" of `delete-selection-mode'.
Whether or not such text is added, the essential design of
`deletion-selection-mode' should be documented: how to customize its
behavior for individual commands. That's missing.
The existing doc describes the behavior only partially - it describes
only the default, replace-text behavior for, e.g.,
`self-insert-command'. Other commands have very different default
behavior. More importantly, any command can have any of the predefined
behaviors the mode provides, or even an arbitrary behavior.
You don't get any `delete-selection-mode' behavior at all for a command
unless it has property `delete-selection'. That's how essential this
design is to understanding and customizing the mode.
The mode does _not_ just replace selected text - even by default for
some commands.
Just put the kind of action you want on a command symbol as property
`delete-selection'. There are basic, predefined actions, and you can
define any other action you like.
The doc says nothing about this, yet it's general, elegant, and
easy-to-customize. `delete-selection-mode' doesn't have as its aim just
to replicate behavior that you might be used to outside Emacs. The doc
should make clear what it offers.
See also https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55692#32.
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.19044
Configured using:
`configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install 'CFLAGS=-O2 -static -g3''
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#55756: 26.3; Document customization of `delete-selection-mode' behavior in Emacs manual
2022-06-01 19:35 bug#55756: 26.3; Document customization of `delete-selection-mode' behavior in Emacs manual Drew Adams
@ 2022-06-02 5:11 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2022-06-02 5:11 UTC (permalink / raw)
To: 55756
tags 55756 notabug
tags 55756 wontfix
close 55756
thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-02 5:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-01 19:35 bug#55756: 26.3; Document customization of `delete-selection-mode' behavior in Emacs manual Drew Adams
2022-06-02 5:11 ` Eli Zaretskii
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).