* bug#22881: 25.0.50; Add more granularity to `save-silently'
@ 2016-03-02 12:28 Oleh Krehel
2019-07-29 13:25 ` Lars Ingebrigtsen
2021-07-08 1:05 ` Lars Ingebrigtsen
0 siblings, 2 replies; 4+ messages in thread
From: Oleh Krehel @ 2016-03-02 12:28 UTC (permalink / raw)
To: 22881; +Cc: bruce.connor.am
I'd like to configure `save-silently' to customize the message of
`save-buffer'.
Here's the part I don't want to have:
Saving file /usr/local/foo...
Here's the part I want to keep:
Wrote /usr/local/foo
Both messages are emitted in `basic-save-buffer-2', which checks
`save-silently' twice whether to emit each message. But so far, it's an
all-or-nothing deal.
I would suggest modifying `save-silently' to be a verbosity level:
- 0 or nil means nothing gets printed.
- 1 means "Wrote ..." is printed.
- 2 means both messages are printed.
The main reason why I want to skip the "Saving file..." is that both
messages are printed in quick succession, and what's worse, sometimes
the first message takes more than one line because of the long file
name. And then I get a 0.1s window re-size by one line flicker.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#22881: 25.0.50; Add more granularity to `save-silently'
2016-03-02 12:28 bug#22881: 25.0.50; Add more granularity to `save-silently' Oleh Krehel
@ 2019-07-29 13:25 ` Lars Ingebrigtsen
2019-07-29 14:43 ` Eli Zaretskii
2021-07-08 1:05 ` Lars Ingebrigtsen
1 sibling, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-29 13:25 UTC (permalink / raw)
To: Oleh Krehel; +Cc: 22881, bruce.connor.am
Oleh Krehel <oleh@oremacs.com> writes:
> I'd like to configure `save-silently' to customize the message of
> `save-buffer'.
>
> Here's the part I don't want to have:
>
> Saving file /usr/local/foo...
>
> Here's the part I want to keep:
>
> Wrote /usr/local/foo
(I'm going through old Emacs bug reports that haven't received any
response.)
Which reminds me -- that's a pretty odd set of messages. Most places in
Emacs, we use
Doing whatever...
Doing whatever...done
Shouldn't we do that here, too?
Saving file /usr/local/foo...
Saving file /usr/local/foo...done
?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#22881: 25.0.50; Add more granularity to `save-silently'
2019-07-29 13:25 ` Lars Ingebrigtsen
@ 2019-07-29 14:43 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2019-07-29 14:43 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 22881, bruce.connor.am, oleh
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Mon, 29 Jul 2019 15:25:19 +0200
> Cc: 22881@debbugs.gnu.org, bruce.connor.am@gmail.com
>
> > Here's the part I don't want to have:
> >
> > Saving file /usr/local/foo...
> >
> > Here's the part I want to keep:
> >
> > Wrote /usr/local/foo
>
> (I'm going through old Emacs bug reports that haven't received any
> response.)
>
> Which reminds me -- that's a pretty odd set of messages. Most places in
> Emacs, we use
>
> Doing whatever...
> Doing whatever...done
>
> Shouldn't we do that here, too?
These two lines come from very different places in the code.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#22881: 25.0.50; Add more granularity to `save-silently'
2016-03-02 12:28 bug#22881: 25.0.50; Add more granularity to `save-silently' Oleh Krehel
2019-07-29 13:25 ` Lars Ingebrigtsen
@ 2021-07-08 1:05 ` Lars Ingebrigtsen
1 sibling, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-08 1:05 UTC (permalink / raw)
To: Oleh Krehel; +Cc: 22881, bruce.connor.am
Oleh Krehel <oleh@oremacs.com> writes:
> I'd like to configure `save-silently' to customize the message of
> `save-buffer'.
>
> Here's the part I don't want to have:
>
> Saving file /usr/local/foo...
>
> Here's the part I want to keep:
>
> Wrote /usr/local/foo
In more recent Emacs versions, this can be controlled by
`set-message-function' -- you can match on the message you want to
suppress, which is a more general functionality than the `save-silently'
functionality. So I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-07-08 1:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-02 12:28 bug#22881: 25.0.50; Add more granularity to `save-silently' Oleh Krehel
2019-07-29 13:25 ` Lars Ingebrigtsen
2019-07-29 14:43 ` Eli Zaretskii
2021-07-08 1:05 ` Lars Ingebrigtsen
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).