GNU bug report logs -
#66993
[PATCH] project.el: avoid asking user about project-list-file lock
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#66993: [PATCH] project.el: avoid asking user about project-list-file lock
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 66993 <at> debbugs.gnu.org.
--
66993: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66993
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
> From: Spencer Baugh <sbaugh <at> catern.com>
> Date: Fri, 10 Nov 2023 12:48:36 +0000 (UTC)
> Cc: Spencer Baugh <sbaugh <at> janestreet.com>, dmitry <at> gutov.dev,
> 66993 <at> debbugs.gnu.org
>
> > Thanks, that's what I thought: this loses information. The "Cannot
> > resolve lock conflict in batch mode" part is important, since it
> > explains the "file-locked" part. So please include the missing text
> > in the list passed to 'signal' as its DATA argument, so as not to lose
> > this explanation.
>
> OK, how about this? Which makes Emacs print:
>
> Error: file-locked ("/home/sbaugh/file" "sbaugh <at> earth (pid 1852838)" "Cannot resolve lock conflict in batch mode")
> mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode -0x1f22147a251783b>))
> debug-early-backtrace()
> debug-early(error (file-locked "/home/sbaugh/file" "sbaugh <at> earth (pid 1852838)" "Cannot resolve lock conflict in batch mode"))
> signal(file-locked ("/home/sbaugh/file" "sbaugh <at> earth (pid 1852838)" "Cannot resolve lock conflict in batch mode"))
> ask-user-about-lock("/home/sbaugh/file" "sbaugh <at> earth (pid 1852838)")
> write-region("foo" nil "~/file")
> eval((write-region "foo" nil "~/file") t)
> command-line-1(("--eval" "(write-region \"foo\" nil \"~/file\")"))
> command-line()
> normal-top-level()
> /home/sbaugh/file: sbaugh <at> earth (pid 1852838), Cannot resolve lock conflict in batch mode
Thanks, installed on master, and closing the bug.
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
Tags: patch
This fixes a periodic issue that happens with multiple Emacs instances
and project.el.
Maybe this isn't the right way to change the behavior of
ask-user-about-lock though; possibly we should add some new defcustom to
customize it. Happy to do that if that's preferred.
In GNU Emacs 29.1.50 (build 15, x86_64-pc-linux-gnu, X toolkit, cairo
version 1.15.12, Xaw scroll bars) of 2023-10-25 built on
igm-qws-u22796a
Repository revision: 5cbca757f620c7b4ca31776711a247b8f266c36e
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Rocky Linux 8.8 (Green Obsidian)
Configured using:
'configure --config-cache --with-x-toolkit=lucid
--with-gif=ifavailable'
[0001-project.el-avoid-asking-user-about-project-list-file.patch (text/patch, attachment)]
This bug report was last modified 1 year and 268 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.