unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: 26920-done@debbugs.gnu.org
Subject: bug#26920:
Date: Sun, 14 May 2017 17:26:01 +0300	[thread overview]
Message-ID: <831srr8qh2.fsf@gnu.org> (raw)
In-Reply-To: <CAP_d_8XHncobeGKMQrV7m4QgTagM-Xyw2YEEKgp9X4G-9ZgosQ@mail.gmail.com> (message from Yuri Khan on Sun, 14 May 2017 15:45:04 +0700)

> From: Yuri Khan <yuri.v.khan@gmail.com>
> Date: Sun, 14 May 2017 15:45:04 +0700
> 
> $ emacs -Q
> 
> Observed behavior: *scratch* buffer with two comment lines.
> 
> (set-face-attribute 'font-lock-comment-face nil
>   :box (:line-width -10 :color "yellow")) ^J
> nil
> 
> Observed behavior: The text in the two comment lines moves 10px to the
> right, indicating that vertical lines of the box are drawn outside
> character area.
> 
> Documented behavior — (info "(elisp) Face Attributes"), emphasis mine:
> 
>     A negative width -N means to draw a line of width N
>     that occupies the space of the underlying text,
>     thus avoiding any increase in the character height **or width**.
> 
> Documented behavior — (describe-function 'set-face-attribute):
> 
>     If WIDTH is negative, the absolute value is the width
>     of the lines, and draw **top/bottom lines**
>     inside the characters area, not around it.
> 
> So, function documentation is accurate while Info text is technically
> accurate but misleading (the character widths do not change, but the
> total width of the run of text does).

Thanks, fixed.





      reply	other threads:[~2017-05-14 14:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-14  8:45 bug#26920: Yuri Khan
2017-05-14 14:26 ` 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=831srr8qh2.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=26920-done@debbugs.gnu.org \
    --cc=yuri.v.khan@gmail.com \
    /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).