unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Patrick Hurst <phurst@mit.edu>
Cc: 17612@debbugs.gnu.org
Subject: bug#17612: 24.3; Negative :box line-width still affects width
Date: Wed, 28 May 2014 17:12:19 +0300	[thread overview]
Message-ID: <83d2eyhu0s.fsf@gnu.org> (raw)
In-Reply-To: <CAGG20Nqq_1pfFAnMY9mgByokbOA7th3q+z9OpYms8Y8pWDHu1g@mail.gmail.com>

> From: Patrick Hurst <phurst@mit.edu>
> Date: Tue, 27 May 2014 16:31:02 -0400
> 
> According to the documentation, setting the :line-width attribute on a
> face to a negative value 'avoid[s] any increase in the character height
> or width'. However, when I set it it does increase the width as if the
> value were positive.
> 
> To replicate: open a new .org file, type in "* TODO Foo" and execute
> 
> (set-face-attribute 'org-todo nil :box '(:line-width 4))
> (set-face-attribute 'org-todo nil :box '(:line-width -4))
> 
> Note that the "Foo" doesn't move, implying that the width of the "TODO"
> doesn't change.

This is bug #13011.  See there for the discussion of why the code was
written to behave like that, and some situations where what you expect
has unpleasant side effects.





      reply	other threads:[~2014-05-28 14:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-27 20:31 bug#17612: 24.3; Negative :box line-width still affects width Patrick Hurst
2014-05-28 14:12 ` Eli Zaretskii [this message]

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=83d2eyhu0s.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=17612@debbugs.gnu.org \
    --cc=phurst@mit.edu \
    /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).