From: Dmitry Gutov <dgutov@yandex.ru>
To: 13130@debbugs.gnu.org
Subject: bug#13130: 24.2.90; :box face attribute problems
Date: Mon, 10 Dec 2012 02:22:36 +0400 [thread overview]
Message-ID: <87ip8asw5v.fsf@vbx.i-did-not-set--mail-host-address--so-tickle-me> (raw)
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@gnu.org-20121126014100-0199uq4y2fo0cnaz
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
System Description: Ubuntu 12.10
reply other threads:[~2012-12-09 22:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ip8asw5v.fsf@vbx.i-did-not-set--mail-host-address--so-tickle-me \
--to=dgutov@yandex.ru \
--cc=13130@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).