From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/4488 Path: main.gmane.org!not-for-mail From: Per Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: `local-map' text property Date: Mon, 18 Dec 1995 13:54:04 +0100 Message-ID: <199512181254.NAA09112@ssv4.dina.kvl.dk> References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035145230 29804 80.91.224.250 (20 Oct 2002 20:20:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:20:30 +0000 (UTC) Cc: ding@ifi.uio.no Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by miranova.com (8.6.11/8.6.9) with ESMTP id FAA17458 for ; Mon, 18 Dec 1995 05:48:34 -0800 Original-Received: from elc1.dina.kvl.dk (elc1.dina.kvl.dk [130.225.40.228]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id ; Mon, 18 Dec 1995 13:55:13 +0100 Original-Received: from ssv4.dina.kvl.dk (ssv4.dina.kvl.dk [130.225.40.223]) by elc1.dina.kvl.dk (8.6.12/8.6.4) with ESMTP id NAA15671; Mon, 18 Dec 1995 13:52:00 +0100 Original-Received: (abraham@localhost) by ssv4.dina.kvl.dk (8.6.12/8.6.4) id NAA09112; Mon, 18 Dec 1995 13:54:04 +0100 Original-To: Lars Magne Ingebrigtsen In-reply-to: Lars Magne Ingebrigtsen's message of 17 Dec 1995 16:55:44 +0100 Xref: main.gmane.org gmane.emacs.gnus.general:4488 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:4488 >>>>> "LMI" == Lars Magne Ingebrigtsen 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)