From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20508: 24.4; image map properties not working as described Date: Tue, 05 May 2015 22:14:31 +0300 Message-ID: <83zj5irg4o.fsf@gnu.org> References: <87pp6ffk5h.fsf@kamala.i-did-not-set--mail-host-address--so-tickle-me> <83bnhzrnni.fsf@gnu.org> <20150505172753.GC18015@rdorte.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1430853325 6713 80.91.229.3 (5 May 2015 19:15:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 May 2015 19:15:25 +0000 (UTC) Cc: 20508@debbugs.gnu.org To: patrick mc allister Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 05 21:15:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YpiJF-0001VT-DT for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 May 2015 21:15:13 +0200 Original-Received: from localhost ([::1]:41279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpiJE-0005fS-HC for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 May 2015 15:15:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpiJA-0005fK-N6 for bug-gnu-emacs@gnu.org; Tue, 05 May 2015 15:15:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpiJ7-0002FA-73 for bug-gnu-emacs@gnu.org; Tue, 05 May 2015 15:15:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpiJ7-0002DN-4n for bug-gnu-emacs@gnu.org; Tue, 05 May 2015 15:15:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YpiJ6-0001RE-G2 for bug-gnu-emacs@gnu.org; Tue, 05 May 2015 15:15:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 May 2015 19:15:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20508 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20508-submit@debbugs.gnu.org id=B20508.14308532865487 (code B ref 20508); Tue, 05 May 2015 19:15:04 +0000 Original-Received: (at 20508) by debbugs.gnu.org; 5 May 2015 19:14:46 +0000 Original-Received: from localhost ([127.0.0.1]:35557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpiIn-0001QR-Jv for submit@debbugs.gnu.org; Tue, 05 May 2015 15:14:45 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:60685) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpiIk-0001QC-Q9 for 20508@debbugs.gnu.org; Tue, 05 May 2015 15:14:44 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NNW00H0058OM200@a-mtaout20.012.net.il> for 20508@debbugs.gnu.org; Tue, 05 May 2015 22:14:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNW00HJQ5G1K620@a-mtaout20.012.net.il>; Tue, 05 May 2015 22:14:26 +0300 (IDT) In-reply-to: <20150505172753.GC18015@rdorte.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102521 Archived-At: > Date: Tue, 5 May 2015 19:27:54 +0200 > From: patrick mc allister > Cc: 20508@debbugs.gnu.org > > Now, however, I have a follow-up problem (which kind-of nearly fits > the subject line): I was actually trying to get more than one of these > hotspots onto the image, something like this: > > (defun image-wipe-and-insert-two-maps () > (interactive) > (let () > (with-current-buffer (get-buffer-create "*an image area test buffer*") > (switch-to-buffer (current-buffer)) > (erase-buffer) > (insert-image (find-image '((:type png :file "/usr/share/emacs/24.4/etc/images/icons/hicolor/128x128/apps/emacs.png" > :map '( > ((rect . ((0 . 0) . (50 . 50))) anAreaID (pointer hourglass help-echo "You found an area!")) > ((rect . ((51 . 51) . (100 . 100))) aSecondAreaID (pointer hand help-echo "You found another area!"))) > ;; :relief -20 > ;; :conversion laplace > :margin (0 . 0) > :pointer arrow))))))) > > I thought this would be in accordance to the info node, where it says: > ``An image map is an alist where each element has the format `(AREA ID > PLIST)'." This variant works as you expect: (defun image-wipe-and-insert-two-maps () (interactive) (let () (with-current-buffer (get-buffer-create "*an image area test buffer*") (switch-to-buffer (current-buffer)) (erase-buffer) (insert-image (find-image '((:type png :file "/usr/share/emacs/24.4/etc/images/icons/hicolor/128x128/apps/emacs.png" :map (list ((rect . ((0 . 0) . (50 . 50))) anAreaID (pointer hourglass help-echo "You found an area!")) ((rect . ((51 . 51) . (100 . 100))) aSecondAreaID (pointer hand help-echo "You found another area!"))) ;; :relief -20 ;; :conversion laplace :margin (0 . 0) :pointer arrow))))))) (Figuring out why you need that explicit call to 'list' is left as an exercise ;-)