* bug#28337: 25.2; make clear(er) that `visual-line-mode' is not global
@ 2017-09-03 14:51 Drew Adams
2017-09-03 15:21 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2017-09-03 14:51 UTC (permalink / raw)
To: 28337
It doesn't seem clear enough, from either the doc string or (emacs)
Visual Line Mode, that the mode is not global. There is some mention of
"the buffer", but that could easily be read as referring to the current
buffer in the context of a global minor mode.
It would help if the doc stated explicitly that the minor mode is local
to the current buffer. This might, in fact, be the case for other
(all?) non-global minor modes.
Originally global minor modes were relatively rare. I think this may no
longer be the case (in number they are likely still less common than
non-global ones, but perhaps not in frequency of use - dunno). The doc
for a global or globalized minor mode makes clear that the effect is
global. I'm not sure that the doc for a non-global one makes clear that
the effect is only for the current buffer.
Here is one possible case of confusion by a user. (Not sure there was
this confusion; it could be just not knowing about hooks.)
https://emacs.stackexchange.com/q/35263/105
In GNU Emacs 25.2.1 (x86_64-w64-mingw32)
of 2017-04-24 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 6.1.7601
Configured using:
'configure --without-dbus --without-compress-install 'CFLAGS=-O2
-static -g3''
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#28337: 25.2; make clear(er) that `visual-line-mode' is not global
2017-09-03 14:51 bug#28337: 25.2; make clear(er) that `visual-line-mode' is not global Drew Adams
@ 2017-09-03 15:21 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2017-09-03 15:21 UTC (permalink / raw)
To: Drew Adams; +Cc: 28337-done
> Date: Sun, 3 Sep 2017 07:51:37 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
>
> It would help if the doc stated explicitly that the minor mode is local
> to the current buffer.
Done, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-03 15:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-03 14:51 bug#28337: 25.2; make clear(er) that `visual-line-mode' is not global Drew Adams
2017-09-03 15:21 ` 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).