unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Change default behavior of some commands that act on region?
@ 2021-05-21 20:58 Drew Adams
  2021-05-22  6:04 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 36+ messages in thread
From: Drew Adams @ 2021-05-21 20:58 UTC (permalink / raw)
  To: emacs-devel@gnu.org

This is a follow-up to this post to help-gnu-emacs@gnu.org:

  https://lists.gnu.org/archive/html/help-gnu-emacs/2021-05/msg00762.html

I hesitate to suggest changing default behavior, but
maybe this is worth considering.

There are some commands, such as `downcase-region',
that act on the region regardless of whether it's
active.  Because `transient-mark-mode' has been on by
default for quite a while now, and because there are
few such commands, users can wonder what's going on.

Or worse, they can sometimes not notice that anything
happened until much later, and then not understand
what caused the change (whatever it is).

Would it be too shocking to change the default
behavior of some such commands, so that they would
do something "safer"?

For example, when invoked interactively, if the
region is not active, and if `transient-mark-mode'
is turned on, such commands could do something like:

* be a no-op
* raise an error
* prompt for confirmation first

Those conditions are important: There'd be no change
when invoked from code, or when `transient-mark-mode'
is off.  Anyone who leaves that mode off would see no
change in behavior, and the same for existing Lisp code.




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

end of thread, other threads:[~2021-05-23 20:07 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-21 20:58 Change default behavior of some commands that act on region? Drew Adams
2021-05-22  6:04 ` Eli Zaretskii
2021-05-22  6:19   ` Clément Pit-Claudel
2021-05-22  6:36     ` Emanuel Berg via Emacs development discussions.
2021-05-22  7:00       ` Clément Pit-Claudel
2021-05-22  6:45     ` Eli Zaretskii
2021-05-22  7:00       ` Clément Pit-Claudel
2021-05-22  7:23         ` Eli Zaretskii
2021-05-23  0:23         ` [External] : " Drew Adams
2021-05-23  0:23   ` Drew Adams
2021-05-22 14:03 ` Stefan Monnier
2021-05-22 14:14   ` Eli Zaretskii
2021-05-22 14:33     ` Stefan Monnier
2021-05-23  0:25     ` [External] : " Drew Adams
2021-05-22 19:26   ` Drew Adams
2021-05-22 21:16     ` Stefan Monnier
2021-05-23  0:25       ` Drew Adams
2021-05-23  6:39     ` Eli Zaretskii
2021-05-23 14:27       ` Drew Adams
2021-05-23 15:13         ` Eli Zaretskii
2021-05-23 17:50           ` Drew Adams
2021-05-23 18:08             ` Eli Zaretskii
2021-05-23 19:22               ` Drew Adams
2021-05-23 19:42                 ` Eli Zaretskii
2021-05-23 20:07                   ` Drew Adams
2021-05-22 23:07   ` Tim Cross
2021-05-23  0:24     ` [External] : " Drew Adams
2021-05-23  0:55     ` Stefan Monnier
2021-05-23  1:37       ` [External] : " Drew Adams
2021-05-23  7:14         ` Eli Zaretskii
2021-05-23 14:28           ` Drew Adams
2021-05-23 15:12             ` Alan Mackenzie
2021-05-23 17:48               ` Drew Adams
2021-05-23 18:44               ` T.V Raman
2021-05-22 20:48 ` Juri Linkov
2021-05-23  0:24   ` [External] : " Drew Adams

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