emacs-devel
[Top][All Lists]
Advanced

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

Re: wrap-search 3.3.5


From: Stefan Monnier
Subject: Re: wrap-search 3.3.5
Date: Thu, 25 Aug 2022 21:10:05 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> (defun show-prev-str ()
>     (let*((short (truncate-string-to-width prev-str 10))
>           (str   (format "%s%s" short
>                                 (if (not (string= short prev-str))
>                                     "..."
>                                   "") )))

Try (truncate-string-to-width prev-str 10 nil nil t)


        Stefan




reply via email to

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