* `local-map' text property
@ 1995-12-17 15:55 Lars Magne Ingebrigtsen
1995-12-18 12:54 ` Per Abrahamsen
0 siblings, 1 reply; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1995-12-17 15:55 UTC (permalink / raw)
I just can't seem to get that to work:
(local-map (keymap (97 . gnus-article-prev-page)
(mouse-2 . gnus-article-prev-page)))
That's the text property, and it seems to have no effect when I tap
`a' over some text the has this property. (This is with Emacs
19.30.) Am I misunderstanding something here?
--
(domestic pets only, the antidote for overdose, milk.)
larsi@ifi.uio.no * Lars Ingebrigtsen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: `local-map' text property
1995-12-17 15:55 `local-map' text property Lars Magne Ingebrigtsen
@ 1995-12-18 12:54 ` Per Abrahamsen
0 siblings, 0 replies; 2+ messages in thread
From: Per Abrahamsen @ 1995-12-18 12:54 UTC (permalink / raw)
Cc: ding
>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@ifi.uio.no> writes:
LMI> I just can't seem to get that to work:
LMI> (local-map (keymap (97 . gnus-article-prev-page)
LMI> (mouse-2 . gnus-article-prev-page)))
Works for me when I test it as below. The second line doesn't do
anything useful though, as the local map property is activated by
point, not by the mouse location.
(defvar mymap (make-sparse-keymap))
(define-key mymap "a" "hello")
(put-text-property 1 7 'local-map mymap)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-12-18 12:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-12-17 15:55 `local-map' text property Lars Magne Ingebrigtsen
1995-12-18 12:54 ` Per Abrahamsen
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 NNTP newsgroup(s).