From unknown Sun Jun 22 07:44:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28337: 25.2; make clear(er) that `visual-line-mode' is not global 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: To: 28337@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150445032821247 (code B ref -1); Sun, 03 Sep 2017 14:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Sep 2017 14:52:08 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,URIBL_BLOCKED autolearn=disabled version=3.3.2 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 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 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 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 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 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 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 MIME-Version: 1.0 Message-ID: <5c7d3ffd-b9ae-42f3-a5f5-135a1af6ed32@default> Date: Sun, 3 Sep 2017 07:51:37 -0700 (PDT) From: Drew Adams X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6774.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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'' From unknown Sun Jun 22 07:44:41 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Drew Adams Subject: bug#28337: closed (Re: bug#28337: 25.2; make clear(er) that `visual-line-mode' is not global) Message-ID: References: <838thvyfi8.fsf@gnu.org> <5c7d3ffd-b9ae-42f3-a5f5-135a1af6ed32@default> X-Gnu-PR-Message: they-closed 28337 X-Gnu-PR-Package: emacs Reply-To: 28337@debbugs.gnu.org Date: Sun, 03 Sep 2017 15:22:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1504452122-31040-1" This is a multi-part message in MIME format... ------------=_1504452122-31040-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #28337: 25.2; make clear(er) that `visual-line-mode' is not global which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 28337@debbugs.gnu.org. --=20 28337: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28337 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1504452122-31040-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 28337-done) by debbugs.gnu.org; 3 Sep 2017 15:21:54 +0000 Received: from localhost ([127.0.0.1]:46544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doWig-00084M-29 for submit@debbugs.gnu.org; Sun, 03 Sep 2017 11:21:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doWid-000848-I0 for 28337-done@debbugs.gnu.org; Sun, 03 Sep 2017 11:21:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doWiT-0001jL-E3 for 28337-done@debbugs.gnu.org; Sun, 03 Sep 2017 11:21:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doWiT-0001jC-AN; Sun, 03 Sep 2017 11:21:41 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3600 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1doWiS-0001sp-OT; Sun, 03 Sep 2017 11:21:41 -0400 Date: Sun, 03 Sep 2017 18:21:35 +0300 Message-Id: <838thvyfi8.fsf@gnu.org> From: Eli Zaretskii To: Drew Adams In-reply-to: <5c7d3ffd-b9ae-42f3-a5f5-135a1af6ed32@default> (message from Drew Adams on Sun, 3 Sep 2017 07:51:37 -0700 (PDT)) Subject: Re: bug#28337: 25.2; make clear(er) that `visual-line-mode' is not global References: <5c7d3ffd-b9ae-42f3-a5f5-135a1af6ed32@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28337-done Cc: 28337-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 3 Sep 2017 07:51:37 -0700 (PDT) > From: Drew Adams > > It would help if the doc stated explicitly that the minor mode is local > to the current buffer. Done, thanks. ------------=_1504452122-31040-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Sep 2017 14:52:08 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,URIBL_BLOCKED autolearn=disabled version=3.3.2 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 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 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 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 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 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 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 MIME-Version: 1.0 Message-ID: <5c7d3ffd-b9ae-42f3-a5f5-135a1af6ed32@default> Date: Sun, 3 Sep 2017 07:51:37 -0700 (PDT) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 25.2; make clear(er) that `visual-line-mode' is not global X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6774.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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'' ------------=_1504452122-31040-1--