From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kelly Dean Newsgroups: gmane.emacs.devel Subject: RE: [PATCH] Proposal to change cursor appearance to indicate region activation Date: Sat, 24 Jan 2015 03:06:45 +0000 Message-ID: References: <626fd015-a9c2-4d4b-ab8e-439db8bd03d3@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422069490 22177 80.91.229.3 (24 Jan 2015 03:18:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Jan 2015 03:18:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 24 04:18:06 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YErEb-0004yF-Qw for ged-emacs-devel@m.gmane.org; Sat, 24 Jan 2015 04:18:05 +0100 Original-Received: from localhost ([::1]:33903 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YErEb-0000aI-1k for ged-emacs-devel@m.gmane.org; Fri, 23 Jan 2015 22:18:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YErEO-0000aB-ER for emacs-devel@gnu.org; Fri, 23 Jan 2015 22:17:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YErEJ-00024O-Cc for emacs-devel@gnu.org; Fri, 23 Jan 2015 22:17:52 -0500 Original-Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:52890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YErEJ-00022Y-5a for emacs-devel@gnu.org; Fri, 23 Jan 2015 22:17:47 -0500 Original-Received: from mfilter38-d.gandi.net (mfilter38-d.gandi.net [217.70.178.169]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 4D3A6A80B1; Sat, 24 Jan 2015 04:17:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter38-d.gandi.net Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter38-d.gandi.net (mfilter38-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id LUttMpFeikcX; Sat, 24 Jan 2015 04:17:44 +0100 (CET) X-Originating-IP: 66.220.3.179 Original-Received: from localhost (gm179.geneticmail.com [66.220.3.179]) (Authenticated sender: kelly@prtime.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 36822A80B0; Sat, 24 Jan 2015 04:17:42 +0100 (CET) In-Reply-To: <626fd015-a9c2-4d4b-ab8e-439db8bd03d3@default> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4b98:c:538::195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181710 Archived-At: Drew Adams wrote: > Are you trying to find a good way to let users opt out of automatic cur= sor > changing for particular buffers, i.e., disable the global nature of the > mode for some buffers? I already found the right way before I even sent my patch. It's setq-loca= l on a defcustom, and a pair of one-line additions to de/activate-mark th= at are simply predicated on that variable. It couldn't possibly be any si= mpler. I just unwisely added a =E2=8C=9C-mode=E2=8C=9D suffix to the variable's = name, and made the functional mistake of setting it to t by default. I sh= ould have followed your advice about the default. ;-) > If so, is that really an important feature? > > I would think that needing to turn off the mode for a particular buffer > would be pretty rare, I have a couple buffer-local minor modes that need to do it, and I routin= ely have those modes active in some buffers but not in others. > and could be accommodated just by toggling the > (global) mode temporarily when in such a buffer. That won't work, since my modes that need to turn off dynamic-cursor need= to remain active (buffer-locally) even when I switch to another buffer, = and dynamic-cursor should remain active in that other buffer. Even if there were no need to enable/disable it buffer-locally, my origin= al patch is still the simplest implementation. Just drop the =E2=8C=9C-mo= de=E2=8C=9D suffix and change the default to nil.