bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17706: 24.4.50; locked file error in rmail-insert-inbox-text


From: Eli Zaretskii
Subject: 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@cosmos.phy.tufts.edu>
> Cc: 17706@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.





reply via email to

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