From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#28337: 25.2; make clear(er) that `visual-line-mode' is not global Date: Sun, 3 Sep 2017 07:51:37 -0700 (PDT) Message-ID: <5c7d3ffd-b9ae-42f3-a5f5-135a1af6ed32@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1504450429 12839 195.159.176.226 (3 Sep 2017 14:53:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 3 Sep 2017 14:53:49 +0000 (UTC) To: 28337@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 03 16:53:33 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doWGv-0001gj-CF for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Sep 2017 16:53:13 +0200 Original-Received: from localhost ([::1]:50261 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doWH2-0007jD-E7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Sep 2017 10:53:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doWGp-0007hw-Ik for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 10:53:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doWGk-0000CS-M6 for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 10:53:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37814) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doWGk-0000CF-J6 for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 10:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1doWGk-0005Xm-A7 for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 10:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Sep 2017 14:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28337 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150445032821247 (code B ref -1); Sun, 03 Sep 2017 14:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Sep 2017 14:52:08 +0000 Original-Received: from localhost ([127.0.0.1]:46495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doWFs-0005Wd-9G for submit@debbugs.gnu.org; Sun, 03 Sep 2017 10:52:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doWFp-0005W9-TJ for submit@debbugs.gnu.org; Sun, 03 Sep 2017 10:52:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doWFf-00085n-T6 for submit@debbugs.gnu.org; Sun, 03 Sep 2017 10:52:00 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48382) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1doWFf-00085j-Q4 for submit@debbugs.gnu.org; Sun, 03 Sep 2017 10:51:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doWFa-0007W6-Su for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 10:51:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doWFW-0007wT-0C for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 10:51:50 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:27090) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1doWFV-0007sl-Nz for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 10:51:45 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v83Epfot017606 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 3 Sep 2017 14:51:41 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v83EpeOp026799 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 3 Sep 2017 14:51:41 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v83EpdOn005510 for ; Sun, 3 Sep 2017 14:51:40 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6774.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136538 Archived-At: 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=3D-O2 -static -g3''