unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Richard Sharman <richard.sharman@mitel.com>
Cc: 22622@debbugs.gnu.org
Subject: bug#22622: 24.5; ask-user-about-supersession-threat causes emacs -batch to hang
Date: Sat, 13 Feb 2016 15:42:55 +0200	[thread overview]
Message-ID: <83pow0680w.fsf@gnu.org> (raw)
In-Reply-To: <BLUPR12MB0401511A1717116825CF71B0EFD70@BLUPR12MB0401.namprd12.prod.outlook.com> (message from Richard Sharman on Wed, 10 Feb 2016 18:27:30 +0000)

> From: Richard Sharman <richard.sharman@mitel.com>
> Date: Wed, 10 Feb 2016 18:27:30 +0000
> Cc: Richard Sharman <richard.sharman@mitel.com>
> 
> I'm not sure if this is a bug or not. 
> 
> When running emacs -batch, if a function modifies a buffer and calls
> save-buffer and there is another emacs -batch also updating the same
> file, one of them can call ask-user-about-supersession-threat [in
> userlock.el].
> 
> This causes the emacs process to hang because read-char-choice never
> returns. See traceback below.
> 
> This happened when running make -j 6 and I changed the scenario to not
> happen, but I wondered if ask-user-about-supersession-threat should be
> act upon variable noninteractive.
> 
> Perhaps one is supposed to supply a replacement for
> ask-user-about-supersession-threat if running emacs in batch mode? 

Does anyone see a problem with automatically answering NO to that
question in batch mode?





  reply	other threads:[~2016-02-13 13:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-10 18:27 bug#22622: 24.5; ask-user-about-supersession-threat causes emacs -batch to hang Richard Sharman
2016-02-13 13:42 ` Eli Zaretskii [this message]
2018-01-24  1:57 ` Glenn Morris

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83pow0680w.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=22622@debbugs.gnu.org \
    --cc=richard.sharman@mitel.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).