all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Draw a bar that takes the full height of a line?
Date: Sat, 27 Jun 2020 16:28:30 -0400	[thread overview]
Message-ID: <DA885349-3AF9-4D6D-9A52-3B75E2CFA43F@gmail.com> (raw)
In-Reply-To: <83mu4o2uw2.fsf@gnu.org>



> On Jun 27, 2020, at 3:03 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> From: Yuan Fu <casouri@gmail.com>
>> Date: Sat, 27 Jun 2020 14:39:12 -0400
>> 
>> I wish the bar can be longer. Is it possible to draw a bar that takes the full height of the line? I tried unicode box drawing characters, they don't work either. 
> 
> You can use something like help-fns.el does:
> 
>            (insert "\n\n"
>                    (eval-when-compile
>                      (propertize "\n" 'face
>                                  '(:height 0.1 :inverse-video t :extend t)))
>                    "\n")
> 
> but without the smaller :height.
> 

Exactly what I needed, thanks! What I end up using:

(insert (propertize "x" 'display '(space :width (1))
                    'face '(:inverse-video t)))

Yuan


      reply	other threads:[~2020-06-27 20:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-27 18:39 Draw a bar that takes the full height of a line? Yuan Fu
2020-06-27 19:03 ` Eli Zaretskii
2020-06-27 20:28   ` Yuan Fu [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DA885349-3AF9-4D6D-9A52-3B75E2CFA43F@gmail.com \
    --to=casouri@gmail.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.