all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: master 9480169 1/2: Change the string-limit parameter semantics
Date: Wed, 23 Dec 2020 07:54:32 +0100	[thread overview]
Message-ID: <878s9p6mhj.fsf@gnus.org> (raw)
In-Reply-To: <83im8trf6y.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 22 Dec 2020 18:14:13 +0200")

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



  reply	other threads:[~2020-12-23  6:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20201222055934.22358.13749@vcs0.savannah.gnu.org>
     [not found] ` <20201222055936.BC7DD20B72@vcs0.savannah.gnu.org>
2020-12-22 14:57   ` master 9480169 1/2: Change the string-limit parameter semantics Stefan Monnier
2020-12-22 16:14     ` Eli Zaretskii
2020-12-23  6:54       ` Lars Ingebrigtsen [this message]
2020-12-23 15:31         ` Eli Zaretskii
2020-12-23 22:25           ` Lars Ingebrigtsen
2020-12-23 22:37             ` Lars Ingebrigtsen
2020-12-24  3:30             ` Eli Zaretskii
2020-12-24  6:02               ` Lars Ingebrigtsen

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=878s9p6mhj.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.