* does org-mode modify input events?
@ 2014-01-07 0:32 John Kitchin
2014-01-07 5:14 ` Nick Dokos
0 siblings, 1 reply; 2+ messages in thread
From: John Kitchin @ 2014-01-07 0:32 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]
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 (#<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
-----------------------------------
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
[-- Attachment #2: Type: text/html, Size: 1686 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: does org-mode modify input events?
2014-01-07 0:32 does org-mode modify input events? John Kitchin
@ 2014-01-07 5:14 ` Nick Dokos
0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2014-01-07 5:14 UTC (permalink / raw)
To: emacs-orgmode
John Kitchin <jkitchin@andrew.cmu.edu> writes:
> 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?
>
Check the doc strings of org-mouse-1-follows-link and
mouse-1-click-follows-link.
--
Nick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-07 5:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-07 0:32 does org-mode modify input events? John Kitchin
2014-01-07 5:14 ` Nick Dokos
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.