From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: does org-mode modify input events? Date: Mon, 6 Jan 2014 19:32:41 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15aa61a296aa04ef568337 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Kb6-0003Yt-Ij for emacs-orgmode@gnu.org; Mon, 06 Jan 2014 19:32:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0Kb5-0001cq-Cm for emacs-orgmode@gnu.org; Mon, 06 Jan 2014 19:32:44 -0500 Received: from mail-pd0-x22a.google.com ([2607:f8b0:400e:c02::22a]:40865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Kb5-0001ck-4l for emacs-orgmode@gnu.org; Mon, 06 Jan 2014 19:32:43 -0500 Received: by mail-pd0-f170.google.com with SMTP id g10so18885033pdj.1 for ; Mon, 06 Jan 2014 16:32:41 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --047d7b15aa61a296aa04ef568337 Content-Type: text/plain; charset=ISO-8859-1 Hi all, In this post, I was looking at some ways to get right clicks to do something on org-links: http://kitchingroup.cheme.cmu.edu/blog/2013/10/21/Enabling-right-clicks-in-org-mode-links/ I noticed some odd behavior in that the last-input-event is mouse-2 whether I press mouse-1 or mouse-2 when clicking on a link. It is also interesting the event is of type mouse-2, and not down-mouse-2. Does anyone know if org-mode makes a mouse-1 click into a mouse-2 event somehow? Is that happening from this line (org-defkey org-mouse-map [mouse-2] 'org-open-at-mouse) in org.el? Does anyone know to get something like this from the click event that occurred on the link? (princ (read-event)) (S-down-mouse-1 (# 56725 (1 . 299) -322897656 nil 56725 (0 . 18) nil (1 . 11) (8 . 16))) that is shift-mouse-1 event. Thanks! John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu --047d7b15aa61a296aa04ef568337 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi all,

In this post,= I was looking at some ways to get right clicks to do something on org-link= s:
http://kitchingroup.cheme.cmu.edu/blog/20= 13/10/21/Enabling-right-clicks-in-org-mode-links/

I noticed some odd behavior in that the last-input-event is mouse= -2 whether I press mouse-1 or mouse-2 when clicking on a link. It is also i= nteresting the event is of type mouse-2, and not down-mouse-2.

Does anyone know if org-mode makes a mouse-1 click into a mouse-2 event som= ehow? Is that happening from this line

(org-defkey org-mouse-map [mo= use-2] 'org-open-at-mouse)

in org.el?

Does an= yone know to get something like this from the click event that occurred on = the link?

(princ (read-event))
(S-down-mouse-1 (#<window 34 on blog.org> 56725 (1 . 299) -322897656 nil 56725 (0 . 18) nil (1 .=
 11) (8 . 16)))

that is shift-mouse-1 event.

Thanks!

John<= br>
-----------------------------------
John Kitchin
Associate Pro= fessor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon= University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.e= du

--047d7b15aa61a296aa04ef568337--