help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Draw a bar that takes the full height of a line?


From: Yuan Fu
Subject: Re: Draw a bar that takes the full height of a line?
Date: Sat, 27 Jun 2020 16:28:30 -0400


> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]