From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: rampant region highlighting Date: Sun, 06 Apr 2008 18:37:52 -0400 Message-ID: <87ej9iobi7.fsf@stupidchicken.com> References: <87od8mocte.fsf@stupidchicken.com> <5ty77qhbjr.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207521718 30374 80.91.229.12 (6 Apr 2008 22:41:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2008 22:41:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 07 00:42:30 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JidZB-0003Ph-AQ for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2008 00:42:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JidYY-0003aa-9g for ged-emacs-devel@m.gmane.org; Sun, 06 Apr 2008 18:41:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JidYT-0003aB-KO for emacs-devel@gnu.org; Sun, 06 Apr 2008 18:41:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JidYS-0003Zi-9J for emacs-devel@gnu.org; Sun, 06 Apr 2008 18:41:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JidYS-0003Zf-4z for emacs-devel@gnu.org; Sun, 06 Apr 2008 18:41:40 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JidYP-0007W7-1k; Sun, 06 Apr 2008 18:41:37 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id EB89C4E255; Sun, 6 Apr 2008 18:37:52 -0400 (EDT) In-Reply-To: <5ty77qhbjr.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun, 06 Apr 2008 18:18:48 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94521 Archived-At: Glenn Morris writes: > If `(transient-mark-mode -1)' isn't enough to completely disable tmm, > then please tell we what is. I already have this from some time back: > > (defadvice set-mark-command (after no-bloody-t-m-m activate) > "Prevent consecutive marks activating bloody `transient-mark-mode'." > (if (eq transient-mark-mode 'lambda) > (setq transient-mark-mode nil))) > > (defadvice mouse-set-region-1 (after no-bloody-t-m-m activate) > "Prevent mouse commands activating bloody `transient-mark-mode'." > (if (eq transient-mark-mode 'only) > (setq transient-mark-mode nil))) This is a temporary transient-mark-mode (`only' mode) which is set by the mouse. This was recently changed to make the temporary mark less fragile, so that it persists for some commands instead of deactivating after the next command. As a result, there are some commands that now need to turn off the temporary tmm explicitly.