From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: rampant region highlighting Date: Mon, 07 Apr 2008 11:22:18 -0400 Message-ID: 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 1207581778 11023 80.91.229.12 (7 Apr 2008 15:22:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Apr 2008 15:22:58 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 07 17:23:15 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 1JitBh-0008WD-7G for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2008 17:23:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JitB3-00065U-Uu for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2008 11:22:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JitB0-000652-EQ for emacs-devel@gnu.org; Mon, 07 Apr 2008 11:22:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JitB0-00064k-0z for emacs-devel@gnu.org; Mon, 07 Apr 2008 11:22:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JitAz-00064Z-Pm for emacs-devel@gnu.org; Mon, 07 Apr 2008 11:22:29 -0400 Original-Received: from 76-10-147-176.dsl.teksavvy.com ([76.10.147.176] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JitAz-0000R7-Ct for emacs-devel@gnu.org; Mon, 07 Apr 2008 11:22:29 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 6AF95B46F3; Mon, 7 Apr 2008 11:22:18 -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, 3) X-Greylist: delayed 1515 seconds by postgrey-1.27 at monty-python; Mon, 07 Apr 2008 11:22:29 EDT 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:94576 Archived-At: > 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))) I'm surprised: if you don't like transient-mark-mode, why didn't you write: (defadvice set-mark-command (after no-bloody-t-m-m activate) "Prevent consecutive marks activating bloody `transient-mark-mode'." (if transient-mark-mode (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 transient-mark-mode (setq transient-mark-mode nil))) Or even do away with the `if'? That would not suffer from the problem you're seeing. Stefan