From: martin rudalics <rudalics@gmx.at>
To: Drew Adams <drew.adams@oracle.com>
Cc: 'emacs- devel' <emacs-devel@gnu.org>
Subject: Re: mouse click on an overlay, using overlay `keymap' property
Date: Tue, 18 Mar 2008 10:28:13 +0100 [thread overview]
Message-ID: <47DF8B2D.4080002@gmx.at> (raw)
In-Reply-To: <001701c887bc$693c2590$0600a8c0@us.oracle.com>
> If that's what's happening, how can foo be defined so that a first click on
> the displayed "xxxxxxxxx" calls bar?
How 'bout
(defun foo (beg end)
(interactive "r")
(let ((overlay (make-overlay beg end)))
(overlay-put
overlay 'display
(propertize "xxxxxxxxx" 'face 'font-lock-constant-face 'keymap foo-map))))
next prev parent reply other threads:[~2008-03-18 9:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-16 23:21 mouse click on an overlay, using overlay `keymap' property Drew Adams
2008-03-18 9:28 ` martin rudalics [this message]
2008-03-18 15:08 ` Drew Adams
2008-03-18 18:27 ` martin rudalics
2008-03-18 18:44 ` Drew Adams
2008-03-18 19:06 ` martin rudalics
2008-03-18 19:37 ` Drew Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47DF8B2D.4080002@gmx.at \
--to=rudalics@gmx.at \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@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 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.