From: Stefan Kangas <stefan@marxist.se>
To: Drew Adams <drew.adams@oracle.com>
Cc: "51041@debbugs.gnu.org" <51041@debbugs.gnu.org>,
Tyler Grinn <tylergrinn@gmail.com>
Subject: bug#51041: [External] : Re: bug#51041: 28.0.60; toggle-truncate-lines should not print message
Date: Tue, 5 Oct 2021 20:28:29 -0400 [thread overview]
Message-ID: <CADwFkmnDHe1GUSg28j4=NkAzRaj-rF+ixF6yW5uS0S9a+kLAEA@mail.gmail.com> (raw)
In-Reply-To: <SJ0PR10MB5488E30CB95F8F0C580225D4F3AF9@SJ0PR10MB5488.namprd10.prod.outlook.com>
Drew Adams <drew.adams@oracle.com> writes:
> This corresponds to what we recommend. We do NOT
> recommend testing with `called-interactively', for
> example. There's no reason to hard-code whether a
> command called from Lisp can emit a message. Using
> an optional arg MSG or NOMSG is TRT.
>
> There's lots of old code that does hard-code things
> here. `count-words' and `count-words-region' are
> good examples of such bad examples.
So this is about avoiding `called-interactively-p'? If so, I think an
argument is indeed the way to do that.
Another solution would be to have one function meant for interactive
use, and another one for use from Lisp. That might be too much in this
case, though, as this function seems somewhat uncommon.
A third one would be to do nothing, and say: it's up to the caller to
just call (message "") to clear the echo area, if they don't want the
message there.
But actually, isn't the way to truncate lines just to say this?
(setq truncate-lines t)
In summary, I don't think I understand the use-case here.
next prev parent reply other threads:[~2021-10-06 0:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-05 17:39 bug#51041: 28.0.60; toggle-truncate-lines should not print message Tyler Grinn
2021-10-05 18:34 ` bug#51041: [External] : " Drew Adams
2021-10-05 20:01 ` Tyler Grinn
2021-10-05 21:39 ` Stefan Kangas
2021-10-05 23:41 ` bug#51041: [External] : " Drew Adams
2021-10-06 0:28 ` Stefan Kangas [this message]
2021-10-06 9:23 ` Lars Ingebrigtsen
2021-10-06 14:28 ` bug#51041: [External] : " Drew Adams
2021-10-06 18:11 ` Stefan Kangas
2021-10-06 20:45 ` Drew Adams
2021-10-06 21:09 ` Stefan Kangas
2021-10-06 22:12 ` Drew Adams
2021-10-07 12:41 ` Tyler Grinn
2021-10-07 17:42 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkmnDHe1GUSg28j4=NkAzRaj-rF+ixF6yW5uS0S9a+kLAEA@mail.gmail.com' \
--to=stefan@marxist.se \
--cc=51041@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
--cc=tylergrinn@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).