all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#48798: 26.3; `define-minor-mode': Message should name the current buffer where enabled/disabled
@ 2021-06-02 19:36 Drew Adams
  2021-06-02 20:59 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Drew Adams @ 2021-06-02 19:36 UTC (permalink / raw)
  To: 48798

A user can easily think s?he's in one window when another is actually
selected.  Or s?he can think that the buffer in the selected window is a
different one from what it actually is.

The confirmation/status message you get when you toggle a (local) minor
mode just tells you that the mode is enabled or disabled "in the current
buffer".  It should provide more help than that, naming the buffer.
That confirms what you expected or lets you know that you were wrong
about your expectation.

For example, when you use `C-x C-q', it's better to see "Read-Only mode
enabled in buffer `foobar'" than it is to see "Read-Only mode enabled in
current buffer".  Just that bit of information and reassurance can help.

Without bothering with a complete patch, I think this is the only code
change needed, in library `easy-mmode.el':

  (let ((local ,(if globalp "" " in current buffer")))

should be 

  (let ((local ,(if globalp
                    ""
                  '(format " in buffer `%s'" (current-buffer)))))

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.19041
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''






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

end of thread, other threads:[~2023-07-04 15:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-02 19:36 bug#48798: 26.3; `define-minor-mode': Message should name the current buffer where enabled/disabled Drew Adams
2021-06-02 20:59 ` Drew Adams
2021-06-03  8:06 ` Lars Ingebrigtsen
2021-07-01 11:45   ` Lars Ingebrigtsen
2021-07-01 14:16     ` bug#48798: [External] : " Drew Adams
2021-10-16 21:57 ` Drew Adams
2023-01-28 21:55   ` Drew Adams
2023-07-04 15:08     ` bug#33076: " Drew Adams
2023-07-04 15:25       ` Drew Adams

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.