all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: How to set 'buffer-save-without-query' from external program?
Date: Fri, 09 Nov 2012 13:53:17 -0500	[thread overview]
Message-ID: <barmar-1C568B.13531709112012@news.eternal-september.org> (raw)
In-Reply-To: mailman.12642.1352481549.855.help-gnu-emacs@gnu.org

In article <mailman.12642.1352481549.855.help-gnu-emacs@gnu.org>,
 "Drew Adams" <drew.adams@oracle.com> wrote:

> > > 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.

He's reverting the buffer, editing it, and then he wants to exit the 
server without saving it. But he still plans on saving it later.

But if he marks it not-modified, when he goes back to the buffer it 
won't let him save it -- it will say "no changes need to be saved".

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


  parent reply	other threads:[~2012-11-09 18:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-09 17:02 How to set 'buffer-save-without-query' from external program? Thorsten Jolitz
2012-11-09 17:09 ` Drew Adams
2012-11-09 17:13   ` Thorsten Jolitz
2012-11-09 17:18     ` Drew Adams
2012-11-09 17:32       ` Thorsten Jolitz
2012-11-09 17:34         ` Drew Adams
     [not found] ` <mailman.12642.1352481549.855.help-gnu-emacs@gnu.org>
2012-11-09 18:53   ` Barry Margolin [this message]
2012-11-09 19:13     ` Thorsten Jolitz
2012-11-09 20:11       ` Thorsten Jolitz

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=barmar-1C568B.13531709112012@news.eternal-september.org \
    --to=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.