[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 9480169 1/2: Change the string-limit parameter semantics
From: |
Lars Ingebrigtsen |
Subject: |
Re: master 9480169 1/2: Change the string-limit parameter semantics |
Date: |
Wed, 23 Dec 2020 07:54:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> In my experience it's very rare to need to limit a string to
>> a particular *length*. Instead you usually want to limit it to
>> a particular *width*.
>
> More accurately, almost any code in Emacs that limits strings to some
> length, actually ought to limit them to some width instead ;-)
That's true (for limiting lengths for display purposes in Emacs). This
new function in for when you really want to limit by the number of
characters. I'll adjust the doc string to point to
`truncate-string-to-width'.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: master 9480169 1/2: Change the string-limit parameter semantics, Stefan Monnier, 2020/12/22
- Re: master 9480169 1/2: Change the string-limit parameter semantics, Eli Zaretskii, 2020/12/22
- Re: master 9480169 1/2: Change the string-limit parameter semantics,
Lars Ingebrigtsen <=
- Re: master 9480169 1/2: Change the string-limit parameter semantics, Eli Zaretskii, 2020/12/23
- Re: master 9480169 1/2: Change the string-limit parameter semantics, Lars Ingebrigtsen, 2020/12/23
- Re: master 9480169 1/2: Change the string-limit parameter semantics, Lars Ingebrigtsen, 2020/12/23
- Re: master 9480169 1/2: Change the string-limit parameter semantics, Eli Zaretskii, 2020/12/23
- Re: master 9480169 1/2: Change the string-limit parameter semantics, Lars Ingebrigtsen, 2020/12/24