From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dominic =?iso-8859-1?q?J=E4nichen?= Newsgroups: gmane.emacs.devel Subject: activate region with S-mouse-1 Date: Fri, 28 Mar 2014 17:41:33 +0000 (UTC) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1396028725 7017 80.91.229.3 (28 Mar 2014 17:45:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2014 17:45:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 28 18:45:34 2014 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 1WTaqI-0005SK-Bf for ged-emacs-devel@m.gmane.org; Fri, 28 Mar 2014 18:45:22 +0100 Original-Received: from localhost ([::1]:35257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTaqI-0004Wk-0j for ged-emacs-devel@m.gmane.org; Fri, 28 Mar 2014 13:45:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTaq8-0004P7-L7 for emacs-devel@gnu.org; Fri, 28 Mar 2014 13:45:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTaq1-00083f-0N for emacs-devel@gnu.org; Fri, 28 Mar 2014 13:45:12 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:46825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTaq0-00081E-QX for emacs-devel@gnu.org; Fri, 28 Mar 2014 13:45:04 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WTapz-000592-8F for emacs-devel@gnu.org; Fri, 28 Mar 2014 18:45:03 +0100 Original-Received: from natoutside2.wlan.uni-koeln.de ([134.95.7.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Mar 2014 18:45:03 +0100 Original-Received: from d.newsgroups by natoutside2.wlan.uni-koeln.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Mar 2014 18:45:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: natoutside2.wlan.uni-koeln.de User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT 098a3bb /usr/portage/distfiles/egit-src/pan2) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:171084 Archived-At: I am using shift-select-mode and want to activate a region using S- mouse-1. I have and bound to "mouse-set-point". I either change "mouse-set-point" to contain (interactive "^e") or use cua- mode and (put 'mouse-set-point 'CUA 'move). I find that I can then extend existing regions with , but not activate one (ie. click on some spot to activate the region between that spot and the current mark). This issue exists since rev 107888 and is documented there: "Don't activate the region on shift if the binding is already shifted." That's fine for as translates to , but does not translate to . The only option is to bind , but this does not activate the region as it is already shifted. What is a proper fix, here? Modifying read_key_sequence to set "this- command-keys-shift-translated" to "t" if the command is bound to shifted mouse-events? Or using a specific handler for ? Dominic