From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ernest =?iso-8859-1?Q?Adrogu=E9?= Newsgroups: gmane.emacs.help Subject: Re: select text without moving the point in graphical interface Date: Tue, 10 Dec 2013 20:26:00 +0100 Message-ID: <20131210192600.GA379@doriath.local> References: <20131208190052.GA12293@doriath.local> <87zjobdoh9.fsf@web.de> <20131208225829.GA13146@doriath.local> <877gbdesh1.fsf@web.de> <20131210185855.GA32729@doriath.local> <87txegsenc.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1386703600 29473 80.91.229.3 (10 Dec 2013 19:26:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2013 19:26:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 10 20:26:43 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1VqSx7-0005iY-KK for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Dec 2013 20:26:41 +0100 Original-Received: from localhost ([::1]:51025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqSx7-00038v-4B for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Dec 2013 14:26:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqSwp-00037y-0S for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 14:26:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqSwg-0002pf-Hr for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 14:26:22 -0500 Original-Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:44110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqSwg-0002pZ-9s for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 14:26:14 -0500 Original-Received: by mail-wi0-f172.google.com with SMTP id en1so5960615wid.17 for ; Tue, 10 Dec 2013 11:26:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=XPYqh8vv9GEbMIBs30E8jDnhMgGS+oToGOdrHVxMhsI=; b=0H5txIuEHiFkv9VPU7t7VBuK53U9U59lyljcq6ViTydoe42Z9bEd/FCWMCaMnlTW51 pS4XpyxrJo+ISBGOQ1nhMvhGWzmipiFvcpt5nZyvFchzhk7dF8lR+4WRujUO7ngbvaQb xYOnQ9RrvuZyLKCrDWXsP6kqT3XZMbchzY306rmZ51Olrs1P3YoFLUIUqPtVZzhzvwsl v8Yrr9RF3MwaXcPgPyq+zjCegHVbJoqyXeLRZR1+0RfG/0TnAii0itENQg3VNTWLEqF1 rX50qOZauoQuGCFaXFQoHAI0s7k/AJ/LXvuqVYGjlndrFpTQPv9J1IjfjiRuRM8zDC+5 gWZQ== X-Received: by 10.194.57.243 with SMTP id l19mr22360377wjq.54.1386703573474; Tue, 10 Dec 2013 11:26:13 -0800 (PST) Original-Received: from doriath (3.Red-83-40-95.dynamicIP.rima-tde.net. [83.40.95.3]) by mx.google.com with ESMTPSA id fu1sm7752704wib.8.2013.12.10.11.26.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Dec 2013 11:26:12 -0800 (PST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87txegsenc.fsf@web.de> X-Operating-System: GNU/Linux (Debian jessie/sid) User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22c X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94932 Archived-At: 10-12-2013, 20:13 (+0100); Michael Heerdegen escriu: > Ernest Adrogu=E9 writes: >=20 > > I can't get this to work, because I don't have this `advice-add` > > function in my Emacs >=20 > Here's the same for the old defadvice: >=20 > --8<---------------cut here---------------start------------->8--- > (defadvice mouse-drag-region (around test activate) > (let ((opoint (with-selected-window > (posn-window (event-start (ad-get-arg 0))) > (point)))) > (prog1 ad-do-it > (run-with-idle-timer > 0 nil > (lambda (win pos) > (with-selected-window win > (deactivate-mark) > (goto-char pos))) > (selected-window) opoint)))) > --8<---------------cut here---------------end--------------->8--- >=20 > This let's you copy text with the mouse, but disallows to manipulate the > region with the mouse. Yes, this is definitely much better. I think I'm going to use it. Thank you! Regards.