From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: [cvs] bug when using pc-selection-mode/transient-mark-mode Date: Mon, 23 Sep 2002 14:31:21 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200209231831.g8NIVLq30154@rum.cs.yale.edu> References: <200209222248.g8MMmKZ26653@rum.cs.yale.edu> <20020923011842.GA29226@gnu.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032806015 17449 127.0.0.1 (23 Sep 2002 18:33:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Sep 2002 18:33:35 +0000 (UTC) Cc: Stefan Monnier , Karl Chen , Richard Stallman , emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17tY1V-0004XJ-00 for ; Mon, 23 Sep 2002 20:33:33 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17tYhu-0007Vw-00 for ; Mon, 23 Sep 2002 21:17:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17tY1Y-0004qs-00; Mon, 23 Sep 2002 14:33:36 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17tXzR-0004fL-00 for emacs-devel@gnu.org; Mon, 23 Sep 2002 14:31:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17tXzP-0004f9-00 for emacs-devel@gnu.org; Mon, 23 Sep 2002 14:31:24 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17tXzN-0004ep-00; Mon, 23 Sep 2002 14:31:21 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g8NIVLq30154; Mon, 23 Sep 2002 14:31:21 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Miles Bader Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8126 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8126 > Is this too expensive a thing to take place in switch-to-buffer? You must mean `set-buffer' ? > > So maybe we should not make it buffer-local but instead make it hold > > a list of buffers whose mark should be deactivated. > > Currently we only use t or nil where t means "current-buffer". > > Doesn't that require all the places where deactivate-mark is set to be > changed (in a non-trivial way)? Yes, except that we can still accept t as a special value meaning `current-buffer', such that code that's not updated will not break Emacs (it will just make it behave as it does now, which isn't perfect but isn't terrible either). > Sounds very annoying for programmers... [and a maintainance headache] But since it can be made backward-compatible it's not such a big deal. And (as you noticed) deactivate-mark is rarely set explicitly anyway. Stefan