GNU bug report logs - #22881
25.0.50; Add more granularity to `save-silently'

Previous Next

Package: emacs;

Reported by: Oleh Krehel <oleh <at> oremacs.com>

Date: Wed, 2 Mar 2016 16:06:02 UTC

Severity: wishlist

Tags: wontfix

Found in version 25.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22881 in the body.
You can then email your comments to 22881 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#22881; Package emacs. (Wed, 02 Mar 2016 16:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Oleh Krehel <oleh <at> oremacs.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 02 Mar 2016 16:06:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Oleh Krehel <oleh <at> oremacs.com>
To: bug-gnu-emacs <at> gnu.org
Cc: bruce.connor.am <at> gmail.com
Subject: 25.0.50; Add more granularity to `save-silently'
Date: Wed, 02 Mar 2016 13:28:38 +0100
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22881; Package emacs. (Mon, 29 Jul 2019 13:26:01 GMT) Full text and rfc822 format available.

Message #8 received at 22881 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Oleh Krehel <oleh <at> oremacs.com>
Cc: 22881 <at> debbugs.gnu.org, bruce.connor.am <at> gmail.com
Subject: Re: bug#22881: 25.0.50; Add more granularity to `save-silently'
Date: Mon, 29 Jul 2019 15:25:19 +0200
Oleh Krehel <oleh <at> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22881; Package emacs. (Mon, 29 Jul 2019 14:44:01 GMT) Full text and rfc822 format available.

Message #11 received at 22881 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 22881 <at> debbugs.gnu.org, bruce.connor.am <at> gmail.com, oleh <at> oremacs.com
Subject: Re: bug#22881: 25.0.50; Add more granularity to `save-silently'
Date: Mon, 29 Jul 2019 17:43:19 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Mon, 29 Jul 2019 15:25:19 +0200
> Cc: 22881 <at> debbugs.gnu.org, bruce.connor.am <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22881; Package emacs. (Thu, 08 Jul 2021 01:07:01 GMT) Full text and rfc822 format available.

Message #14 received at 22881 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Oleh Krehel <oleh <at> oremacs.com>
Cc: 22881 <at> debbugs.gnu.org, bruce.connor.am <at> gmail.com
Subject: Re: bug#22881: 25.0.50; Add more granularity to `save-silently'
Date: Thu, 08 Jul 2021 03:05:57 +0200
Oleh Krehel <oleh <at> 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




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 08 Jul 2021 01:07:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 22881 <at> debbugs.gnu.org and Oleh Krehel <oleh <at> oremacs.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 08 Jul 2021 01:07:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 05 Aug 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 237 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.