From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: extending mouse selection? Date: Sat, 04 Oct 2008 17:00:12 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223132458 32385 80.91.229.12 (4 Oct 2008 15:00:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Oct 2008 15:00:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Neal Becker Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 04 17:01:55 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Km8de-0008Oi-1I for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Oct 2008 17:01:46 +0200 Original-Received: from localhost ([127.0.0.1]:56774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Km8ca-0006lS-Qw for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Oct 2008 11:00:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Km8cH-0006k4-DS for help-gnu-emacs@gnu.org; Sat, 04 Oct 2008 11:00:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Km8cG-0006iT-8n for help-gnu-emacs@gnu.org; Sat, 04 Oct 2008 11:00:20 -0400 Original-Received: from [199.232.76.173] (port=49118 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Km8cF-0006iA-UR for help-gnu-emacs@gnu.org; Sat, 04 Oct 2008 11:00:19 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:36451) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Km8cF-0002zW-Gw for help-gnu-emacs@gnu.org; Sat, 04 Oct 2008 11:00:19 -0400 Original-Received: from thursday (kobz-590f281e.pool.einsundeins.de [89.15.40.30]) by dd18200.kasserver.com (Postfix) with ESMTP id 8CE2418095080; Sat, 4 Oct 2008 17:00:18 +0200 (CEST) In-Reply-To: (Neal Becker's message of "Fri\, 03 Oct 2008 17\:11\:37 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58350 Archived-At: Neal Becker wrote: > Should this work? Emacs doesn't necessarily follow such conventions. One could argue, however, that it should work at least in cua-mode. You could report it as a bug and see what happens. > Is there an alternative key binding? I don't know, but writing your own command is pretty straight-forward: (defun mouse-extend-region (event) (interactive "e") (let ((pos (posn-point (event-start event)))) (set-mark (if mark-active (if (< pos (region-beginning)) (region-end) (region-beginning)) (point))) (goto-char pos))) (global-set-key (kbd "") 'mouse-extend-region) (global-set-key (kbd "") nil) regards, Nikolaj Schumacher