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 19:32:01 +0300 Message-ID: <83bnhzrnni.fsf@gnu.org> References: <87pp6ffk5h.fsf@kamala.i-did-not-set--mail-host-address--so-tickle-me> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1430843607 2539 80.91.229.3 (5 May 2015 16:33:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 May 2015 16:33:27 +0000 (UTC) Cc: 20508@debbugs.gnu.org To: pma Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 05 18:33:13 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 1YpfmS-0002zr-8D for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 May 2015 18:33:12 +0200 Original-Received: from localhost ([::1]:40617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpfmR-0005cS-68 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 May 2015 12:33:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpfmO-0005cN-76 for bug-gnu-emacs@gnu.org; Tue, 05 May 2015 12:33:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpfmJ-00017d-4h for bug-gnu-emacs@gnu.org; Tue, 05 May 2015 12:33:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpfmJ-00017W-1m for bug-gnu-emacs@gnu.org; Tue, 05 May 2015 12:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YpfmI-000606-Kn for bug-gnu-emacs@gnu.org; Tue, 05 May 2015 12:33:02 -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 16:33:02 +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.143084352722999 (code B ref 20508); Tue, 05 May 2015 16:33:02 +0000 Original-Received: (at 20508) by debbugs.gnu.org; 5 May 2015 16:32:07 +0000 Original-Received: from localhost ([127.0.0.1]:35508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpflN-0005yq-Im for submit@debbugs.gnu.org; Tue, 05 May 2015 12:32:06 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:43475) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpflK-0005yE-9J for 20508@debbugs.gnu.org; Tue, 05 May 2015 12:32:03 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NNV00J00XQ54300@mtaout25.012.net.il> for 20508@debbugs.gnu.org; Tue, 05 May 2015 19:27:41 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNV00HB0XQ5S710@mtaout25.012.net.il>; Tue, 05 May 2015 19:27:41 +0300 (IDT) In-reply-to: <87pp6ffk5h.fsf@kamala.i-did-not-set--mail-host-address--so-tickle-me> 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:102514 Archived-At: > From: pma > Date: Tue, 05 May 2015 11:28:26 +0200 > > > - emacs -Q > - insert this function: > (defun image-wipe-and-insert () > (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!")) > ;; :relief -20 > ;; :conversion laplace > :margin (0 . 0) > :pointer arrow))))))) > > - M-x image-wipe-and-insert > - Point mouse into top left corner > - results: > - change of pointer, but not to hourglass; > - no help-echo message. It's a cockpit error: you should use 'pointer', not ':pointer' in the first instance. IOW, this works for me (note the underlined part): (defun image-wipe-and-insert () (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!")) ;; ^^^^^^^ ;; :relief -20 ;; :conversion laplace :margin (0 . 0) :pointer arrow))))))) (Yes, it's confusing to have ':pointer' on the top level and 'pointer' inside the value for ':map'. But the manual correctly says 'pointer' in the latter case, so at least the documentation is consistent with the code.)