GNU bug report logs - #46374
28.0.50; Ask me to save buffers only if they are under callers dir

Previous Next

Package: emacs;

Reported by: Tino Calancha <tino.calancha <at> gmail.com>

Date: Sun, 7 Feb 2021 22:33:01 UTC

Severity: wishlist

Tags: fixed

Merged with 50380

Fixed in version 28.0.60

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tino Calancha <tino.calancha <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: uyennhi.qm <at> gmail.com, juri <at> linkov.net, 46374 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca, Tino Calancha <tino.calancha <at> gmail.com>
Subject: bug#46374: 28.0.50; Ask me to save buffers only if they are under callers dir
Date: Tue, 18 May 2021 20:47:42 +0200 (CEST)

On Tue, 18 May 2021, Eli Zaretskii wrote:

>> - We have a function, generate-foo, that builds a predicate foo.
>> - By calling generate-foo inside same-some-buffers, we build a foo with
>>    access to the enviroment, i.e. foo is a closure.
>>
>> That makes the trick to restrict the prompt to saving buffers only inside
>> the current project.
>
> IMNSHO, this is not a very good idea for a defcustom.  What user will
> be able to provide such a function willy-nilly?

Yeah, I agree that's not easy to wrote; that's why Juri suggested me to 
provide sensible options for this defcustom.

If you check the code that Juri embeded few emails before this one, you 
see that users can control the behaviour with the customization UI.

In the future, we could extend those defaults if we find other useful 
behaviors.




This bug report was last modified 3 years and 191 days ago.

Previous Next


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