unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Oleh Krehel <oleh@oremacs.com>
To: 22881@debbugs.gnu.org
Cc: bruce.connor.am@gmail.com
Subject: bug#22881: 25.0.50; Add more granularity to `save-silently'
Date: Wed, 02 Mar 2016 13:28:38 +0100	[thread overview]
Message-ID: <8737s95aix.fsf@oremacs.com> (raw)


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.





             reply	other threads:[~2016-03-02 12:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-02 12:28 Oleh Krehel [this message]
2019-07-29 13:25 ` bug#22881: 25.0.50; Add more granularity to `save-silently' Lars Ingebrigtsen
2019-07-29 14:43   ` Eli Zaretskii
2021-07-08  1:05 ` 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=8737s95aix.fsf@oremacs.com \
    --to=oleh@oremacs.com \
    --cc=22881@debbugs.gnu.org \
    --cc=bruce.connor.am@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).