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: Default Emacs keybindings (was: Re: Menu suggestion) Date: 29 Apr 2004 15:42:57 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083269440 19652 80.91.224.253 (29 Apr 2004 20:10:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Apr 2004 20:10:40 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Apr 29 22:10:28 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BJHrY-0003vL-00 for ; Thu, 29 Apr 2004 22:10:28 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BJHrX-00047g-00 for ; Thu, 29 Apr 2004 22:10:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BJHgu-0000hh-AK for emacs-devel@quimby.gnus.org; Thu, 29 Apr 2004 15:59:28 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BJHc3-0006rP-CW for emacs-devel@gnu.org; Thu, 29 Apr 2004 15:54:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BJHTk-0004Fr-TV for emacs-devel@gnu.org; Thu, 29 Apr 2004 15:46:24 -0400 Original-Received: from [206.47.199.165] (helo=simmts7-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BJHR0-0003OS-Fe; Thu, 29 Apr 2004 15:43:02 -0400 Original-Received: from empanada.local ([67.71.118.150]) by simmts7-srv.bellnexxia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040429194257.GZFV13427.simmts7-srv.bellnexxia.net@empanada.local>; Thu, 29 Apr 2004 15:42:57 -0400 Original-Received: by empanada.local (Postfix, from userid 502) id 6EC811604D7; Thu, 29 Apr 2004 15:42:58 -0400 (EDT) Original-To: David Kastrup In-Reply-To: Original-Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22379 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22379 > Also when explicitly marking a region with the mouse (dragging mouse-1 > or clicking mouse-3), temporary transient mark mode should be enabled: I had actually completely forgotten that I had already implemented it in my local hacks. What do people say about the following little patch? Stefan --- mouse.el 29 Apr 2004 12:26:26 -0400 1.245 +++ mouse.el 29 Apr 2004 15:27:48 -0400 @@ -617,6 +617,8 @@ (mouse-set-region-1))) (defun mouse-set-region-1 () + ;; Set transient-mark-mode for a little while. + (setq transient-mark-mode (or transient-mark-mode 'lambda)) (setq mouse-last-region-beg (region-beginning)) (setq mouse-last-region-end (region-end)) (setq mouse-last-region-tick (buffer-modified-tick)))