emacs-devel
[Top][All Lists]
Advanced

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

Re: select yank via completion


From: Juri Linkov
Subject: Re: select yank via completion
Date: Thu, 26 Nov 2020 11:26:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>>>>>> +                             (when (> (length s) (- 40 b))
>>>>>> +                               (add-text-properties
>>>>>> +                                (min (+ b 40) (length s)) (length s)
>>>>>> +                                `(display ,ellipsis) s))
>>>>>
>>>>> Any chance this threshold can be configurable?  I don't mind completions
>>>>> as wide as or wider than the frame in Ivy's minibuffer.
>>
>> As an intermediate fix, now code at least doesn't contain an arbitrary
>> constant, but defaults to the frame width.
>
> Thanks, but don't scroll bars, fringes, etc. have to be subtracted from
> the frame width?

Is this the correct formula?

(floor (- (frame-inner-width)
          (frame-internal-border-width)
          (frame-fringe-width)
          (frame-scroll-bar-width))
       (frame-char-width))



reply via email to

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