From unknown Thu Jun 19 13:53:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#77429 <77429@debbugs.gnu.org> To: bug#77429 <77429@debbugs.gnu.org> Subject: Status: 31.0.50; Image map and display slice on mode/header/tab line Reply-To: bug#77429 <77429@debbugs.gnu.org> Date: Thu, 19 Jun 2025 20:53:09 +0000 retitle 77429 31.0.50; Image map and display slice on mode/header/tab line reassign 77429 emacs submitter 77429 David Ponce severity 77429 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 01 09:08:08 2025 Received: (at submit) by debbugs.gnu.org; 1 Apr 2025 13:08:08 +0000 Received: from localhost ([127.0.0.1]:47063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzbLb-0001TA-Jv for submit@debbugs.gnu.org; Tue, 01 Apr 2025 09:08:08 -0400 Received: from lists.gnu.org ([2001:470:142::17]:50972) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tzbLY-0001SF-30 for submit@debbugs.gnu.org; Tue, 01 Apr 2025 09:08:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tzbKl-0000FP-3N for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2025 09:07:22 -0400 Received: from smtp-71.smtpout.orange.fr ([80.12.242.71] helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtps (TLS1.2:RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tzbKa-0000Qb-Ci for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2025 09:07:10 -0400 Received: from [192.168.1.21] ([90.112.40.65]) by smtp.orange.fr with ESMTPA id zbKMtkKItZjv1zbKPtKDqu; Tue, 01 Apr 2025 15:06:53 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1743512813; bh=eSIPnYxsSaBd5HXGAbYcjWN+cwHjPXU7aPSZ5iiA4CM=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=qnaQzu9Okn6K5/AzdQ6yeQgs9oKC7smOw+Zc/jeJCk6HTNX5Gsh/o7jzWN8QBQ85d M9clEtjo20jklG5+I2IasjameOsFaGPz0aRtkypqIdfSda2RwPpkGoricFduzJTdQQ T/AmeapglpvaaXnu0LKtvRdz6icvSjezCs5AmtwzsvWhIIFEGqKdsWfXtK549c7MzV WKdfPWNzu9PV92xMKr+uCp9/rjBcMt6rxZCe0tXJeUurXN7b7bRSIr44tbo43UqNtB kcuz3csbksuZ4LkOahZlMxL2TYche6gqwXsf8d5pCRFds6/CxITZlYgT1nVA6knPyD obSc3Ugf/wh/g== X-ME-Helo: [192.168.1.21] X-ME-Auth: ZGFfdmlkQHdhbmFkb28uZnI= X-ME-Date: Tue, 01 Apr 2025 15:06:53 +0200 X-ME-IP: 90.112.40.65 Message-ID: <407e8e04-e8a1-478c-bad6-3a2b9ee127f1@orange.fr> Date: Tue, 1 Apr 2025 15:06:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: fr, en-US To: bug-gnu-emacs@gnu.org From: David Ponce Subject: 31.0.50; Image map and display slice on mode/header/tab line Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=80.12.242.71; envelope-from=da_vid@orange.fr; helo=smtp.smtpout.orange.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, I discovered an inconsistency in the interpretation of image map coordinates when the sliced image is displayed, depending on whether it's displayed in a buffer or in a mode, header or tab line. When the sliced image is displayed in a buffer, the image coordinates remain relative to the unclipped image, which looks correct to me. But, it is no longer the case when the image is displayed in a mode, header or tab line: then the image map coordinates become relative to the visible portion of the image, which renders the map unusable. The following code illustrates the problem: (require 'svg) (let* ((w 304) (h (frame-char-height)) (svg (svg-create w h))) (svg-rectangle svg 0 0 100 h :fill "red") (svg-rectangle svg 102 0 100 h :fill "green") (svg-rectangle svg 204 0 100 h :fill "blue") (let* ((img (svg-image svg :scale 1 :map `( ((rect . ((0 . 0) . (100 . ,h))) r (help-echo "RED" pointer hand)) ((rect . ((102 . 0) . (202 . ,h))) g (help-echo "GREEN" pointer hand)) ((rect . ((204 . 0) . (304 . ,h))) b (help-echo "BLUE" pointer hand)) ))) (full (propertize " " 'display img)) (cut (propertize " " 'display `((slice 102 0 202 1.0) ,img))) (both (concat cut " " full))) (setq header-line-format both) (insert both "\n"))) I'm reporting this inconsistency, at least to find out if it's a real bug or a limitation that needs to be addressed by the programmer. Thanks In GNU Emacs 31.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0) of 2025-03-31 Repository revision: 6f311883d246df87fa3ed9c24dbb39078e3fd69f Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12014000 System Description: Fedora Linux 40 (KDE Plasma) Configured using: 'configure --with-native-compilation=no' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB Important settings: value of $LC_TIME: fr_FR.utf8 value of $LANG: fr_FR.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 01 11:43:21 2025 Received: (at 77429) by debbugs.gnu.org; 1 Apr 2025 15:43:21 +0000 Received: from localhost ([127.0.0.1]:50290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzdlo-0000lI-Rq for submit@debbugs.gnu.org; Tue, 01 Apr 2025 11:43:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50562) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tzdlm-0000kS-QI for 77429@debbugs.gnu.org; Tue, 01 Apr 2025 11:43:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tzdlg-0008Lx-SK; Tue, 01 Apr 2025 11:43:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LCzL11Y/FtmP/5CBnrd0XCu3DlxE5AlfYGWqvmFppVk=; b=rYN7+/Jms096 X6BcmeuZuSVYz2h8fDM7kWVeFMX4TF4f3WMAVH43PatVhQdRppBolielk7ubNtYahfu0vK52jAPBb wHY6U/b5r/KwPLDWWJpJFvQq0QigJSP9O4m8ZAeUOlBVJMzaxm5ynGlQYRJ7zXDtYEUodj4v7bPQM NIfPmE6r2hm9b++s1YC4+X5qpmzuB8tvovZNYpiOdmdSpDCeM9/zqxjVfJosKqpAL0Z/J8EPj+X1J cBXDYUH+iNuppzUtDnSlqm+5kwWemymQHMw4zhjF8uKR9a1Vk0in96ZDuedB/B7jdW+Wa0Ex2WC9V IO11xmsPNruoaeAb5BDLKw==; Date: Tue, 01 Apr 2025 18:43:08 +0300 Message-Id: <867c433n1v.fsf@gnu.org> From: Eli Zaretskii To: David Ponce In-Reply-To: <407e8e04-e8a1-478c-bad6-3a2b9ee127f1@orange.fr> (bug-gnu-emacs@gnu.org) Subject: Re: bug#77429: 31.0.50; Image map and display slice on mode/header/tab line References: <407e8e04-e8a1-478c-bad6-3a2b9ee127f1@orange.fr> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77429 Cc: 77429@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 1 Apr 2025 15:06:49 +0200 > From: David Ponce via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > (require 'svg) > (let* ((w 304) > (h (frame-char-height)) > (svg (svg-create w h))) > (svg-rectangle svg 0 0 100 h :fill "red") > (svg-rectangle svg 102 0 100 h :fill "green") > (svg-rectangle svg 204 0 100 h :fill "blue") > (let* ((img (svg-image svg :scale 1 > :map > `( > ((rect . ((0 . 0) . (100 . ,h))) > r (help-echo "RED" pointer hand)) > ((rect . ((102 . 0) . (202 . ,h))) > g (help-echo "GREEN" pointer hand)) > ((rect . ((204 . 0) . (304 . ,h))) > b (help-echo "BLUE" pointer hand)) > ))) > (full (propertize " " 'display img)) > (cut (propertize " " 'display `((slice 102 0 202 1.0) ,img))) > (both (concat cut " " full))) > (setq header-line-format both) > (insert both "\n"))) > > I'm reporting this inconsistency, at least to find out if it's a real > bug or a limitation that needs to be addressed by the programmer. Bug. And a very old one. Should be fixed now on the master branch; please test. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 01 13:57:27 2025 Received: (at 77429) by debbugs.gnu.org; 1 Apr 2025 17:57:27 +0000 Received: from localhost ([127.0.0.1]:51039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzfra-0004Uv-Ac for submit@debbugs.gnu.org; Tue, 01 Apr 2025 13:57:27 -0400 Received: from smtp-76.smtpout.orange.fr ([80.12.242.76]:56269 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtps (TLS1.2:RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tzfrW-0004UG-8X for 77429@debbugs.gnu.org; Tue, 01 Apr 2025 13:57:23 -0400 Received: from [192.168.1.21] ([90.112.40.65]) by smtp.orange.fr with ESMTPA id zfrPt8kOdKYSDzfrStVIHl; Tue, 01 Apr 2025 19:57:20 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1743530240; bh=cs0vaI2Cpc9ovL/9YtM9/mTwZXy6/AzoMV2kce/pddI=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=XEyrU/y5DEkpRU2PWF6GzzSsRUS3p4iJD8z3NEP4w7EXAkWkkXGEfWlkzsY4/Qqxw RcmKevmIYGPgx0dEjPMFyp2iVUxvodVYvzIFPAPsCEJa3lOminAfzLzuqsIvfOmqSX a7CJMRi6QE3/NGmk2zeCIOdBisYLJDQNvXYChE6QLvuZHq1wd1hWO6OaUmu0pXzhET MX/fFVBqh4SEUGeJhAfdqxEDmkZPDxrzJ/f2VlpvHEaGaazaumtEGGOBH+4ASzeLKt QM67+a1iW3VoxE65Disrv+/uKzFR96KCXmEWXMCyDWXLJoWU2OXK0IKfhH3QsI1fyr b9o1fTxgHk80w== X-ME-Helo: [192.168.1.21] X-ME-Auth: ZGFfdmlkQHdhbmFkb28uZnI= X-ME-Date: Tue, 01 Apr 2025 19:57:20 +0200 X-ME-IP: 90.112.40.65 Message-ID: Date: Tue, 1 Apr 2025 19:57:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77429: 31.0.50; Image map and display slice on mode/header/tab line To: Eli Zaretskii References: <407e8e04-e8a1-478c-bad6-3a2b9ee127f1@orange.fr> <867c433n1v.fsf@gnu.org> Content-Language: fr, en-US From: David Ponce In-Reply-To: <867c433n1v.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77429 Cc: 77429@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2025-04-01 17:43, Eli Zaretskii wrote: >> Date: Tue, 1 Apr 2025 15:06:49 +0200 >> From: David Ponce via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> (require 'svg) >> (let* ((w 304) >> (h (frame-char-height)) >> (svg (svg-create w h))) >> (svg-rectangle svg 0 0 100 h :fill "red") >> (svg-rectangle svg 102 0 100 h :fill "green") >> (svg-rectangle svg 204 0 100 h :fill "blue") >> (let* ((img (svg-image svg :scale 1 >> :map >> `( >> ((rect . ((0 . 0) . (100 . ,h))) >> r (help-echo "RED" pointer hand)) >> ((rect . ((102 . 0) . (202 . ,h))) >> g (help-echo "GREEN" pointer hand)) >> ((rect . ((204 . 0) . (304 . ,h))) >> b (help-echo "BLUE" pointer hand)) >> ))) >> (full (propertize " " 'display img)) >> (cut (propertize " " 'display `((slice 102 0 202 1.0) ,img))) >> (both (concat cut " " full))) >> (setq header-line-format both) >> (insert both "\n"))) >> >> I'm reporting this inconsistency, at least to find out if it's a real >> bug or a limitation that needs to be addressed by the programmer. > > Bug. And a very old one. Should be fixed now on the master branch; > please test. It seems the bug is only partially fixed. The image map behaves as expected for the help-echo and pointer properties, but doesn't report the correct hot spot ID. The updated recipe below illustrates this: (require 'svg) (let* ((w 304) (h (frame-char-height)) (svg (svg-create w h)) (km (define-keymap " " (lambda () (interactive) (message "Red")) " " (lambda () (interactive) (message "Green")) " " (lambda () (interactive) (message "Blue"))))) (svg-rectangle svg 0 0 100 h :fill "red") (svg-rectangle svg 102 0 100 h :fill "green") (svg-rectangle svg 204 0 100 h :fill "blue") (let* ((img (svg-image svg :scale 1 :map `( ((rect . ((0 . 0) . (100 . ,h))) r (help-echo "RED" pointer hand)) ((rect . ((102 . 0) . (202 . ,h))) g (help-echo "GREEN" pointer hand)) ((rect . ((204 . 0) . (304 . ,h))) b (help-echo "BLUE" pointer hand)) ))) (full (propertize " " 'display img 'keymap km)) (cut (propertize " " 'display `((slice 102 0 202 1.0) ,img) 'keymap km)) (both (concat cut " " full))) (setq header-line-format both) (insert both "\n"))) Thanks! From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 01 14:53:17 2025 Received: (at 77429) by debbugs.gnu.org; 1 Apr 2025 18:53:17 +0000 Received: from localhost ([127.0.0.1]:51217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzgjc-0003XF-PD for submit@debbugs.gnu.org; Tue, 01 Apr 2025 14:53:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40966) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tzgja-0003WK-6J for 77429@debbugs.gnu.org; Tue, 01 Apr 2025 14:53:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tzgjU-0001Fe-1x; Tue, 01 Apr 2025 14:53:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=rtESK2sC/QE/f40OkgciIIRFv8H7qISOjMI5CP5SnKo=; b=dHxG+m2W3SJg 0tiIJbSqjSuRYjFBvJ2saJcdj5nu7y3/WgKAdsY8TQ4Qz9WrDyQAk2cu6mVaOfwYY4vu2u55O0m4x q48D2uVKv0k/XTeQjNwoDJ/0y6a9z11L+qKBzNE92yemdVT4ukuIDD6zagrOOfW2noQhoGVbGl8Ob ocoYGzxX40p4KaunizDICR0EfmuTmhtAzfMVhyGh2Ui8HO/z5THEwerPPTGBUhH+zKI9J4K6daeGv 87KRLsqyyOyqTsZQnEoiRJsAoALMJ6Zjszp1iq7e0DKX2cuyLaASuRTCMPfB54PV/sBBUccPHsDfB 5fcyhOcduYvya/6GPeafAw==; Date: Tue, 01 Apr 2025 21:53:03 +0300 Message-Id: <861pub3e9c.fsf@gnu.org> From: Eli Zaretskii To: David Ponce In-Reply-To: (message from David Ponce on Tue, 1 Apr 2025 19:57:14 +0200) Subject: Re: bug#77429: 31.0.50; Image map and display slice on mode/header/tab line References: <407e8e04-e8a1-478c-bad6-3a2b9ee127f1@orange.fr> <867c433n1v.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77429 Cc: 77429@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 1 Apr 2025 19:57:14 +0200 > Cc: 77429@debbugs.gnu.org > From: David Ponce > > It seems the bug is only partially fixed. The image map behaves as > expected for the help-echo and pointer properties, but doesn't report > the correct hot spot ID. The updated recipe below illustrates this: Sorry, I don't understand what that means. Would you please accompany the code with some minimal description of how to produce the wrong result (and explanation why you think it's wrong)? The previous example was already somewhat of a riddle, but at least with the wrong help-echo shown it was relatively easy to guess what was expected. This time I'm completely stomped: what is "hot spot ID" and how do I see it? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 01 15:31:49 2025 Received: (at 77429) by debbugs.gnu.org; 1 Apr 2025 19:31:49 +0000 Received: from localhost ([127.0.0.1]:51381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzhKu-0003Jd-QQ for submit@debbugs.gnu.org; Tue, 01 Apr 2025 15:31:49 -0400 Received: from smtp-77.smtpout.orange.fr ([80.12.242.77]:59763 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtps (TLS1.2:RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tzhKr-0003J2-Ni for 77429@debbugs.gnu.org; Tue, 01 Apr 2025 15:31:47 -0400 Received: from [192.168.1.21] ([90.112.40.65]) by smtp.orange.fr with ESMTPA id zhKlttAj2yvSyzhKptoNDL; Tue, 01 Apr 2025 21:31:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1743535904; bh=a1t/f6CAFE9RNXIqHFrJUyOVipiFw/7pD1Uc4ptsi28=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=aeiGE0JUDj07lOOKLfJNoeK0OM7t/RmZjvxvWXn1WFU0XNh4PqcswaAQoisrtaE5J jSA/UilSlU554o2YPRw7OUva56cQR/xFOfUHLadHnQU9xtTLtEbGCIB6EEPrp7fssV 1Gysyc1VfEbMJ/DhpNduFh36PbKQOVSJr1NcawiwGhdFfvh3/0y22CKokkNAo9ncEF bO1yrT3v01mDE6kVKGt9t5L8oIn9T/j1Oll8+zI2lduyhj/B5b/i2IpkngRiUiUV4w YBOYxZm/VIT1Ke3pIBeMfj2wjuNL8QwNA9XTItlR0AWCnaJhekcr3+lBqXaoOmbN25 ghTMM5qivB0LA== X-ME-Helo: [192.168.1.21] X-ME-Auth: ZGFfdmlkQHdhbmFkb28uZnI= X-ME-Date: Tue, 01 Apr 2025 21:31:44 +0200 X-ME-IP: 90.112.40.65 Message-ID: Date: Tue, 1 Apr 2025 21:31:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77429: 31.0.50; Image map and display slice on mode/header/tab line To: Eli Zaretskii References: <407e8e04-e8a1-478c-bad6-3a2b9ee127f1@orange.fr> <867c433n1v.fsf@gnu.org> <861pub3e9c.fsf@gnu.org> Content-Language: fr, en-US From: David Ponce In-Reply-To: <861pub3e9c.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77429 Cc: 77429@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2025-04-01 20:53, Eli Zaretskii wrote: >> Date: Tue, 1 Apr 2025 19:57:14 +0200 >> Cc: 77429@debbugs.gnu.org >> From: David Ponce >> >> It seems the bug is only partially fixed. The image map behaves as >> expected for the help-echo and pointer properties, but doesn't report >> the correct hot spot ID. The updated recipe below illustrates this: > > Sorry, I don't understand what that means. > > Would you please accompany the code with some minimal description of > how to produce the wrong result (and explanation why you think it's > wrong)? The previous example was already somewhat of a riddle, but at > least with the wrong help-echo shown it was relatively easy to guess > what was expected. This time I'm completely stomped: what is "hot > spot ID" and how do I see it? > > Thanks. Sorry for not being precise enough. The hot spot ID is documented in the Elisp manual: ‘:map MAP’ This associates an image map of “hot spots” with this image. An image map is an alist where each element has the format ‘(AREA ID PLIST)’. An AREA is specified as either a rectangle, a circle, or a polygon. [...] When you click the mouse when the mouse pointer is over a hot-spot, an event is composed by combining the ID of the hot-spot with the mouse event; for instance, ‘[area4 mouse-1]’ if the hot-spot's ID is ‘area4’. In my example, each colored rectangle RED, GREEN, BLUE corresponds to a `rect' hot spot with the respective IDs: r, g, b. And Each key is associated to a command that displays the color name of the rectangle you click on. So, when you click on the red rectangle you should see "Red" is the echo area, "Green" when you click on the green rectangle, and "Blue" when you click on the blue rectangle. But on the sliced image which is on the left side on the header line, showing a green and blue rectangle, a click on the green rectangle displays "Red" instead of "Green" and click on the blue rectangle displays "Green" instead of "Blue". This is the issue. Hope I am clear enough. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 02 09:13:57 2025 Received: (at 77429) by debbugs.gnu.org; 2 Apr 2025 13:13:57 +0000 Received: from localhost ([127.0.0.1]:56136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzxum-000198-DK for submit@debbugs.gnu.org; Wed, 02 Apr 2025 09:13:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38414) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tzxuj-00018S-FM for 77429@debbugs.gnu.org; Wed, 02 Apr 2025 09:13:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tzxud-0007fB-Jn; Wed, 02 Apr 2025 09:13:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=DD4vOg6vpSL3imcXBVeuvgDEZUCRu+o3vfm2WenVH5g=; b=cbuDd8mLHINf6W1foj5b uZGHeTM2+WkQoTkjiNPcMLU3n2HWbixdiSsxiGY5uzv3b5w1aUQaf9uQ2+Yc9UQRW1lI2N2tZD4gT seEBct2WdTADjuLYCxXyln48TOQphLlX+sW12bPZ2Xu7i9dBXpR5q1rL7WywFpoDN5G+N3eqr5rwx Ljn7xwxBSronwzaWslHigvPPayPnbe2zMyRf4azckV/V9zaYmKp6S03lOj4MxE4I7DCtfdmdgUwOX IDueE9MDgd2hkqcL9kVASUHOZeBTH/DKYHHFGLojQWIlzibRdDLztMRPF7wS8+kzj3GtynIaJ+WkH 3AiKOWgDPdbd9g==; Date: Wed, 02 Apr 2025 16:13:43 +0300 Message-Id: <86mscy1zaw.fsf@gnu.org> From: Eli Zaretskii To: David Ponce In-Reply-To: (message from David Ponce on Tue, 1 Apr 2025 21:31:39 +0200) Subject: Re: bug#77429: 31.0.50; Image map and display slice on mode/header/tab line References: <407e8e04-e8a1-478c-bad6-3a2b9ee127f1@orange.fr> <867c433n1v.fsf@gnu.org> <861pub3e9c.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77429 Cc: 77429@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 1 Apr 2025 21:31:39 +0200 > Cc: 77429@debbugs.gnu.org > From: David Ponce > > On 2025-04-01 20:53, Eli Zaretskii wrote: > >> Date: Tue, 1 Apr 2025 19:57:14 +0200 > >> Cc: 77429@debbugs.gnu.org > >> From: David Ponce > >> > >> It seems the bug is only partially fixed. The image map behaves as > >> expected for the help-echo and pointer properties, but doesn't report > >> the correct hot spot ID. The updated recipe below illustrates this: > > > > Sorry, I don't understand what that means. > > > > Would you please accompany the code with some minimal description of > > how to produce the wrong result (and explanation why you think it's > > wrong)? The previous example was already somewhat of a riddle, but at > > least with the wrong help-echo shown it was relatively easy to guess > > what was expected. This time I'm completely stomped: what is "hot > > spot ID" and how do I see it? > > > > Thanks. > > Sorry for not being precise enough. > > The hot spot ID is documented in the Elisp manual: > > ‘:map MAP’ > This associates an image map of “hot spots” with this image. > > An image map is an alist where each element has the format ‘(AREA > ID PLIST)’. An AREA is specified as either a rectangle, a circle, > or a polygon. > > [...] > > When you click the mouse when the mouse pointer is over a hot-spot, > an event is composed by combining the ID of the hot-spot with the > mouse event; for instance, ‘[area4 mouse-1]’ if the hot-spot's ID > is ‘area4’. > > In my example, each colored rectangle RED, GREEN, BLUE corresponds to > a `rect' hot spot with the respective IDs: r, g, b. And Each mouse-1> key is associated to a command that displays the color name > of the rectangle you click on. > > So, when you click on the red rectangle you should see "Red" is the > echo area, "Green" when you click on the green rectangle, and "Blue" > when you click on the blue rectangle. > > But on the sliced image which is on the left side on the header line, > showing a green and blue rectangle, a click on the green rectangle > displays "Red" instead of "Green" and click on the blue rectangle > displays "Green" instead of "Blue". This is the issue. > > Hope I am clear enough. Yes, thanks. Should be fixed now on the master branch. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 02 09:50:15 2025 Received: (at 77429) by debbugs.gnu.org; 2 Apr 2025 13:50:15 +0000 Received: from localhost ([127.0.0.1]:56188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzyTt-0004Lh-2b for submit@debbugs.gnu.org; Wed, 02 Apr 2025 09:50:14 -0400 Received: from smtp-80.smtpout.orange.fr ([80.12.242.80]:52473 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtps (TLS1.2:RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tzyTn-0004IW-UP for 77429@debbugs.gnu.org; Wed, 02 Apr 2025 09:50:10 -0400 Received: from [192.168.1.21] ([90.112.40.65]) by smtp.orange.fr with ESMTPA id zyThtvZOu4o0izyTktAuui; Wed, 02 Apr 2025 15:50:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1743601805; bh=fPb3pODG28wQdmMm5P6rc6iWOUpz9JEWTh2TkkBAqDA=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=buGrJxBJBV0o9ObEs3fhejIGHuuyhUM+4rFz/M0hbr0+vHE4IJyS67DrHW3JNqfoW aVLVLcxZbxb8KwrlFgBbpkeZiUUVa27xaRwkCtmpypDGc7gw0mGqWgcVrs9BrsAAx/ IN0ZqdAMGBTdxXZfPrCAAYPh9NaKCJ3yZnEQ7MmyT8K/LGawrScxahB2VTiAOR19kc WTY8s+l1BNRMVarfxIqT2BLnlSOTscfcRi1lVkYqIWH2DuldHKKt/66HGfrFZHEHFu HUaH3UEEM9zmNqrSwseDYBam9pDFdKPQqUP/+Dkf9zQ1cX29aWQR/sccs7ehRtyYXM SxypC2VlxRtXA== X-ME-Helo: [192.168.1.21] X-ME-Auth: ZGFfdmlkQHdhbmFkb28uZnI= X-ME-Date: Wed, 02 Apr 2025 15:50:05 +0200 X-ME-IP: 90.112.40.65 Message-ID: Date: Wed, 2 Apr 2025 15:50:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77429: 31.0.50; Image map and display slice on mode/header/tab line To: Eli Zaretskii References: <407e8e04-e8a1-478c-bad6-3a2b9ee127f1@orange.fr> <867c433n1v.fsf@gnu.org> <861pub3e9c.fsf@gnu.org> <86mscy1zaw.fsf@gnu.org> Content-Language: fr, en-US From: David Ponce In-Reply-To: <86mscy1zaw.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77429 Cc: 77429@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2025-04-02 15:13, Eli Zaretskii wrote: >> Date: Tue, 1 Apr 2025 21:31:39 +0200 >> Cc: 77429@debbugs.gnu.org >> From: David Ponce >> >> On 2025-04-01 20:53, Eli Zaretskii wrote: >>>> Date: Tue, 1 Apr 2025 19:57:14 +0200 >>>> Cc: 77429@debbugs.gnu.org >>>> From: David Ponce >>>> >>>> It seems the bug is only partially fixed. The image map behaves as >>>> expected for the help-echo and pointer properties, but doesn't report >>>> the correct hot spot ID. The updated recipe below illustrates this: >>> >>> Sorry, I don't understand what that means. >>> >>> Would you please accompany the code with some minimal description of >>> how to produce the wrong result (and explanation why you think it's >>> wrong)? The previous example was already somewhat of a riddle, but at >>> least with the wrong help-echo shown it was relatively easy to guess >>> what was expected. This time I'm completely stomped: what is "hot >>> spot ID" and how do I see it? >>> >>> Thanks. >> >> Sorry for not being precise enough. >> >> The hot spot ID is documented in the Elisp manual: >> >> ‘:map MAP’ >> This associates an image map of “hot spots” with this image. >> >> An image map is an alist where each element has the format ‘(AREA >> ID PLIST)’. An AREA is specified as either a rectangle, a circle, >> or a polygon. >> >> [...] >> >> When you click the mouse when the mouse pointer is over a hot-spot, >> an event is composed by combining the ID of the hot-spot with the >> mouse event; for instance, ‘[area4 mouse-1]’ if the hot-spot's ID >> is ‘area4’. >> >> In my example, each colored rectangle RED, GREEN, BLUE corresponds to >> a `rect' hot spot with the respective IDs: r, g, b. And Each > mouse-1> key is associated to a command that displays the color name >> of the rectangle you click on. >> >> So, when you click on the red rectangle you should see "Red" is the >> echo area, "Green" when you click on the green rectangle, and "Blue" >> when you click on the blue rectangle. >> >> But on the sliced image which is on the left side on the header line, >> showing a green and blue rectangle, a click on the green rectangle >> displays "Red" instead of "Green" and click on the blue rectangle >> displays "Green" instead of "Blue". This is the issue. >> >> Hope I am clear enough. > > Yes, thanks. Should be fixed now on the master branch. Yes, I confirm the bug is now fixed. From my side, you can close this report. Thank you very much! From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 02 10:02:09 2025 Received: (at 77429-done) by debbugs.gnu.org; 2 Apr 2025 14:02:09 +0000 Received: from localhost ([127.0.0.1]:58631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzyfR-0005qQ-0w for submit@debbugs.gnu.org; Wed, 02 Apr 2025 10:02:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58498) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tzyfN-0005pz-8y for 77429-done@debbugs.gnu.org; Wed, 02 Apr 2025 10:02:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tzyfG-0007jR-Ug; Wed, 02 Apr 2025 10:01:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=n9muvS9+FKbwamfQwdOni2izfPsXlM/69yRlFnpkvrI=; b=aDTwk5/beMzo 4mgES32/VLLVDyJJPzLuzV4unpr/z1TiVMLqtiqAaY6SzBEobXNGrFZ/HoYByKx8QiBGDk4e7u07O iUF5z+dItS8EkkWYiuozgY+eMrumFMB4V+i17g+lzT44W3qkNb2OoeK58lUyajeoFCRsRm/uPVHgy i+7k8oswyE15eT+HmTACctDWa2nrEjmZeNwNuaduYLjqoEw2f+DwL8mWO7VYSdZPiSlbfqfQnoVjM cSh6kq+UvBigtOpBduP21x/eE0gkPFj3px3cN34jLnH1fr7d3ntFqQzQeevO+ilF1tKxnmHB/bIyF BzhxfgA1qXjGCqmKTmPj3g==; Date: Wed, 02 Apr 2025 17:01:54 +0300 Message-Id: <86jz821x2l.fsf@gnu.org> From: Eli Zaretskii To: David Ponce In-Reply-To: (message from David Ponce on Wed, 2 Apr 2025 15:50:01 +0200) Subject: Re: bug#77429: 31.0.50; Image map and display slice on mode/header/tab line References: <407e8e04-e8a1-478c-bad6-3a2b9ee127f1@orange.fr> <867c433n1v.fsf@gnu.org> <861pub3e9c.fsf@gnu.org> <86mscy1zaw.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77429-done Cc: 77429-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Wed, 2 Apr 2025 15:50:01 +0200 > Cc: 77429@debbugs.gnu.org > From: David Ponce > > >> But on the sliced image which is on the left side on the header line, > >> showing a green and blue rectangle, a click on the green rectangle > >> displays "Red" instead of "Green" and click on the blue rectangle > >> displays "Green" instead of "Blue". This is the issue. > >> > >> Hope I am clear enough. > > > > Yes, thanks. Should be fixed now on the master branch. > > Yes, I confirm the bug is now fixed. > From my side, you can close this report. Done. From unknown Thu Jun 19 13:53:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 01 May 2025 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator