unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: RMAIL file locking problem?
Date: Thu, 28 Apr 2005 20:13:39 -0400	[thread overview]
Message-ID: <E1DRJ8V-0004ZX-2L@fencepost.gnu.org> (raw)
In-Reply-To: <uhdhrfsz6.fsf@boris.laptop> (message from Evil Boris on Thu, 28 Apr 2005 00:03:25 -0400)

    As far as I can tell, it is the following code:

		      (if file-name
			  (rmail-insert-inbox-text files nil)
			(setq delete-files (rmail-insert-inbox-text files t)))

Ok, it seems natural that this would lock the current buffer.
It is trying to insert something.

    On my machine the locking trouble seems to happen when there is no new
    mail.  My understanding is that RMAIL reads in the contents of the
    (empty!) mailbox (by the way, would it make sense to check for 0
    length and just skip the rest of jumping through hoops in this
    case---no locking, no inserting of zero bytes, no testing for having
    inserted zero bytes?)  

It seems strange that insert-file-contents would leave the buffer
locked if it does not really change the buffer.  That could be a bug
in insert-file-contents: that it handles the zero-size case wrong.

  reply	other threads:[~2005-04-29  0:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19 16:16 RMAIL file locking problem? Evil Boris
2005-04-20 14:56 ` Richard Stallman
2005-04-28  4:03   ` Evil Boris
2005-04-29  0:13     ` Richard Stallman [this message]
2005-04-30 20:05       ` Evil Boris
2005-05-01 23:37         ` Richard Stallman
2005-05-10  3:03           ` Evil Boris
2005-05-11 16:28             ` Richard Stallman
2005-05-12  0:32               ` Evil Boris
2005-05-12 14:54                 ` Richard Stallman
2005-05-14  3:46                   ` Evil Boris
2005-05-14 15:13                     ` Richard Stallman
2005-05-14  4:17                   ` Evil Boris

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=E1DRJ8V-0004ZX-2L@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@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 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).