From unknown Sun Jun 22 00:35:27 2025 X-Loop: don@donarmstrong.com Subject: bug#1220: overlay before- and after-string and mouse-face Reply-To: Glenn Morris , 1220-quiet@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: Resent-Date: Wed, 22 Oct 2008 00:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1220 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by quiet@emacsbugs.donarmstrong.com id=Q.122463611827965 (code Q ref -1); Wed, 22 Oct 2008 00:50:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-13.8 required=4.0 tests=AWL,BAYES_00,HAS_PACKAGE, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at quiet) by emacsbugs.donarmstrong.com; 22 Oct 2008 00:41:58 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9M0ft3c027958 for ; Tue, 21 Oct 2008 17:41:56 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KsRko-0007ID-0M; Tue, 21 Oct 2008 20:39:14 -0400 From: Glenn Morris To: quiet@debbugs.gnu.org X-Spook: Plame UNSCOM Watergate Glock Elvis UMTS Agfa wire transfer X-Ran: !{&[Q!$66]"D?Bv'V^^mu\gkHLJWWtrF~'?nc/?IE2dYckL!9+{lF,vMJ-IM7dM/l>4I'? X-Hue: blue X-Attribution: GM Date: Tue, 21 Oct 2008 20:39:13 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Package: emacs Version: 23.0.60 This bug is extracted from #1176, which contained several issues. The mouse-face property of an overlay with a display string does not affect any before-string, but it does affect the after-string. This can be worked around to some extent by copying the mouse-face property to the before-string, but one cannot get the whole overlay highlighted at one time. Example: (let ((buff (generate-new-buffer "overlay test")) o) (with-current-buffer buff (insert "text") (setq o (make-overlay (point-min) (point-max))) (overlay-put o 'mouse-face '(:background "green")) (overlay-put o 'display "display") (overlay-put o 'before-string "before string") (overlay-put o 'after-string "after string") (pop-to-buffer buff))) "displayafter string" has mouse-face, but "before string" does not. From unknown Sun Jun 22 00:35:27 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Glenn Morris Subject: bug#1220 closed by Chong Yidong (Re: overlay before- and after-string and mouse-face) Message-ID: References: <87ljnlrq09.fsf@stupidchicken.com> X-Emacs-PR-Message: they-closed 1220 X-Emacs-PR-Package: emacs Reply-To: 1220@debbugs.gnu.org Date: Mon, 22 Jun 2009 02:00:06 +0000 Content-Type: multipart/mixed; boundary="----------=_1245636006-4114-1" This is a multi-part message in MIME format... ------------=_1245636006-4114-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1220: overlay before- and after-string and mouse-face It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 1220: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1220 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1245636006-4114-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1220-done) by emacsbugs.donarmstrong.com; 22 Jun 2009 01:55:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.0 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po34.its.yale.edu (pantheon-po34.its.yale.edu [130.132.50.80]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5M1tgVw003748 for <1220-done@emacsbugs.donarmstrong.com>; Sun, 21 Jun 2009 18:55:43 -0700 Received: from furry (c-71-232-13-53.hsd1.ma.comcast.net [71.232.13.53]) (authenticated bits=0) by pantheon-po34.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n5M1taBm012861 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <1220-done@emacsbugs.donarmstrong.com>; Sun, 21 Jun 2009 21:55:36 -0400 Received: by furry (Postfix, from userid 1000) id EF9AEC09B; Sun, 21 Jun 2009 21:55:34 -0400 (EDT) From: Chong Yidong To: 1220-done@debbugs.gnu.org Subject: Re: overlay before- and after-string and mouse-face Date: Sun, 21 Jun 2009 21:55:34 -0400 Message-ID: <87ljnlrq09.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) > The mouse-face property of an overlay with a display string does not > affect any before-string, but it does affect the after-string. > > This can be worked around to some extent by copying the mouse-face > property to the before-string, but one cannot get the whole overlay > highlighted at one time. I've checked a fix for this into the trunk. ------------=_1245636006-4114-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From rgm@gnu.org Tue Oct 21 17:41:57 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-13.8 required=4.0 tests=AWL,BAYES_00,HAS_PACKAGE, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at quiet) by emacsbugs.donarmstrong.com; 22 Oct 2008 00:41:58 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9M0ft3c027958 for ; Tue, 21 Oct 2008 17:41:56 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KsRko-0007ID-0M; Tue, 21 Oct 2008 20:39:14 -0400 From: Glenn Morris To: quiet@debbugs.gnu.org Subject: overlay before- and after-string and mouse-face X-Spook: Plame UNSCOM Watergate Glock Elvis UMTS Agfa wire transfer X-Ran: !{&[Q!$66]"D?Bv'V^^mu\gkHLJWWtrF~'?nc/?IE2dYckL!9+{lF,vMJ-IM7dM/l>4I'? X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 21 Oct 2008 20:39:13 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Package: emacs Version: 23.0.60 This bug is extracted from #1176, which contained several issues. The mouse-face property of an overlay with a display string does not affect any before-string, but it does affect the after-string. This can be worked around to some extent by copying the mouse-face property to the before-string, but one cannot get the whole overlay highlighted at one time. Example: (let ((buff (generate-new-buffer "overlay test")) o) (with-current-buffer buff (insert "text") (setq o (make-overlay (point-min) (point-max))) (overlay-put o 'mouse-face '(:background "green")) (overlay-put o 'display "display") (overlay-put o 'before-string "before string") (overlay-put o 'after-string "after string") (pop-to-buffer buff))) "displayafter string" has mouse-face, but "before string" does not. ------------=_1245636006-4114-1--