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: Thorsten Jolitz
Subject: Re: How to set 'buffer-save-without-query' from external program?
Date: Fri, 09 Nov 2012 18:13:52 +0100
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux)

"Drew Adams" <drew.adams@oracle.com> writes:

>> I open an emacs buffer for editing from an external program and face
>> three problems related with Emacs querying for user input: 
>> 
>> 1. User-query "Revert the buffer"? 
>> 2. User-query "Save before exiting the buffer" (with C-x # or
>>    server-edit)?
>
> Sorry, just a quick response, ignoring 99% of your mail.
>
> 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?


-- 
cheers,
Thorsten




reply via email to

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