GNU bug report logs - #17706
24.4.50; locked file error in rmail-insert-inbox-text

Previous Next

Package: emacs;

Reported by: Ken Olum <kdo <at> cosmos.phy.tufts.edu>

Date: Thu, 5 Jun 2014 20:11:01 UTC

Severity: normal

Found in version 24.4.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 17706 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ken Olum <kdo <at> cosmos.phy.tufts.edu>
Cc: 17706 <at> debbugs.gnu.org
Subject: Re: bug#17706: 24.4.50; locked file error in rmail-insert-inbox-text
Date: Sat, 14 Jun 2014 16:16:31 +0300
> From: Ken Olum <kdo <at> cosmos.phy.tufts.edu>
> Cc: 17706 <at> debbugs.gnu.org
> Date: Sat, 14 Jun 2014 08:16:39 -0400
> 
> So maybe it would be better to actually lock the file.  Then we'd be
> using file locks as intended.  The way I'd do it is to lock the file in
> rmail-get-new-mail-1 before calling rmail-insert-inbox-text and then
> unlock it after saving the file with the new messages or after
> discovering that there are none.
> 
> Unfortunately, there doesn't seem to be any lisp interface to lock_file,
> but I guess I could set buffer-modified-p and then call lock-buffer.
> 
> What do you think?

Sounds OK to me.




This bug report was last modified 8 years and 364 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.