all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

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 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.