GNU bug report logs - #13130
24.2.90; :box face attribute problems

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Sun, 9 Dec 2012 22:24:02 UTC

Severity: minor

Tags: fixed

Merged with 13011, 17612

Found in versions 24.2, 24.2.90, 24.3

Fixed in version 28.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13130 in the body.
You can then email your comments to 13130 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13130; Package emacs. (Sun, 09 Dec 2012 22:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dmitry Gutov <dgutov <at> yandex.ru>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 09 Dec 2012 22:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.90; :box face attribute problems
Date: Mon, 10 Dec 2012 02:22:36 +0400
I'd like to use this attribute on the face that yasnippet sets on active
field overlays. So, to reproduce:

1. Install yasnippet.

2. Eval this:

(let ((color (face-attribute 'region :background)))
  (defface yas-field-highlight-box
    `((t :box (:line-width -1 :color ,color)))
    "Box the color of region."))
    
(put 'yas-field-highlight-face 'face-alias 'yas-field-highlight-box)

3. Open a buffer, M-x ruby-mode, type "forin", press Tab.

Problems:
a) Despite line-width of -1, the character widths are still affected.
You can observe it when tabbing between the fields: as the field becomes
inactive, it shrinks in width a bit.

b) The box border is drawn not only around the overlay, but also around
all pieces of text with different faces inside it. To reproduce, type
this in one of the fields: "abc"[/b/]

If installing yasnippet is a problem, I can try to localize the bug with
a smaller example.

--Dmitry

In GNU Emacs 24.2.90.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.0)
 of 2012-11-26 on vbx
Bzr revision: 110959 rgm <at> gnu.org-20121126014100-0199uq4y2fo0cnaz
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
System Description:	Ubuntu 12.10




Severity set to 'minor' from 'normal' Request was from Dmitry Gutov <dgutov <at> yandex.ru> to control <at> debbugs.gnu.org. (Tue, 11 Dec 2012 22:40:01 GMT) Full text and rfc822 format available.

Merged 13011 13130. Request was from Dmitry Gutov <dgutov <at> yandex.ru> to control <at> debbugs.gnu.org. (Tue, 11 Dec 2012 22:40:01 GMT) Full text and rfc822 format available.

Merged 13011 13130 17612. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 28 May 2014 14:14:02 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 01 Apr 2020 22:06:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 13011 <at> debbugs.gnu.org and mario giovinazzo <mario.giovinazzo <at> virgilio.it> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 01 Apr 2020 22:06:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 01 May 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 354 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.