help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to set 'buffer-save-without-query' from external program?


From: Drew Adams
Subject: RE: How to set 'buffer-save-without-query' from external program?
Date: Fri, 9 Nov 2012 09:18:59 -0800

> > You should be able to use (set-buffer-modified-p nil) to 
> > prevent such checks.
> 
> But I want the buffer to be reverted and saved - only without being
> queried. Would this still happen if I set the set-buffer-modified-p
> flag to nil?

Sorry, I don't have the time right now to get into it.
Hopefully someone else can help more.

But "revert and save" doesn't mean much to me.
After reverting there is no need to save.

Setting the modified-p flag just pretends that you have not modified the buffer.
So you get no queries about wanting to save it.

If you instead do want to save it, then just save it, systematically.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]