emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: does org-mode modify input events?
Date: Mon, 6 Jan 2014 19:32:41 -0500	[thread overview]
Message-ID: <CAJ51ETp5X_C--MO1-vqDbQ=+WzgGrNpDCeMx+8vq_MMN_nAMVA@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2014-01-07  0:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-07  0:32 John Kitchin [this message]
2014-01-07  5:14 ` does org-mode modify input events? Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ51ETp5X_C--MO1-vqDbQ=+WzgGrNpDCeMx+8vq_MMN_nAMVA@mail.gmail.com' \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).