GNU bug report logs - #14250
file locking fails if the hostname contains an @ character

Previous Next

Package: emacs;

Reported by: "Elrod, David" <elrodd <at> sharplabs.com>

Date: Tue, 23 Apr 2013 20:07:01 UTC

Severity: minor

Found in version 23.1

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: "Elrod, David" <elrodd <at> sharplabs.com>
To: "14250 <at> debbugs.gnu.org" <14250 <at> debbugs.gnu.org>
Cc: "rgm <at> gnu.org" <rgm <at> gnu.org>,
 "schwab <at> linux-m68k.org" <schwab <at> linux-m68k.org>
Subject: FW: bug#14250: 23.1; Files locked by myself
Date: Wed, 19 Jun 2013 21:57:32 +0000
[Message part 1 (text/plain, inline)]
Sorry to see this closed with no resolution....

I responded to email from Andreas (see copy below) three hours after 
it arrived at our mail server.

I never saw the followup email from Glen.

To answer Glen's questions, I'm using ext3 as a file system.
It works wherever I've tried to create a file.

I get the same error if I do:

    rm -f /tmp/FOO
    touch /tmp/FOO
    emacs -Q /tmp/FOO

Each time I try to save It shows:
    /tmp/FOO locked by elrodd <at> elrodd... (pid 21418): (s, q, p, ?)? 
or similar in the status bar.

Both before and after editing the file, "ls -l /tmp/FOO" shows:
  -rw-rw-r--. 1 elrodd elrodd 5 Jun 19 14:55 /tmp/FOO

I noted that emacs was protected:
  -rwxr-xr-t. 1 0 0 11143104 Mar  1  2012 /usr/bin/emacs-23.1
If I remove the sticky bit (t), it behaves the same.


________________________________________
From: Elrod, David
Sent: Tuesday, April 23, 2013 16:22
To: Andreas Schwab
Subject: RE: bug#14250: 23.1; Files locked by myself

Thanks for the quick reply:

When I do:  M-:
the mini-buffer responds with "Eval: "

I then entered:
    (file-locked-p(overview.html))
which was the name of the file I was editing, the name of the buffer
from the status bar, and the name I see when I list buffers, I get:

Debugger entered--Lisp error: (void-function overview\.html)
  (overview\.html)
  (file-locked-p (overview\.html))
  eval((file-locked-p (overview\.html)))
  eval-expression((file-locked-p (overview\.html)) nil)
  call-interactively(eval-expression nil nil)

The status bar starts out with -U:**-  which seems to indicate I changed
the buffer, and when I do a save I am told the file is locked.

Trying:
    (file-locked-p("overview.html))
returns:

Debugger entered--Lisp error: (invalid-function "overview.html")
  ("overview.html")
  (file-locked-p ("overview.html"))
  eval((file-locked-p ("overview.html")))
  eval-expression((file-locked-p ("overview.html")) nil)
  call-interactively(eval-expression nil nil)

Note also that when I save the file I get prompted that it is locked.
The next time I try to change the file I'm also prompted that it is
locked and have to steal or proceed to be able to edit the file again.

Thinking it might be related to nXML mode, I tried a text file (Text Fill mode)
and got more added to the debug stack which is attached (because it has
binary byte code values).

Thank you for your help!

David




________________________________________
From: Andreas Schwab [schwab <at> linux-m68k.org]
Sent: Tuesday, April 23, 2013 13:23
To: Elrod, David
Cc: 14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: 23.1; Files locked by myself

What does (file-locked-p (buffer-file-name)) return when you are inside
a modified buffer visiting a file?

Andreas.

--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
[t (application/octet-stream, attachment)]

This bug report was last modified 3 years and 26 days ago.

Previous Next


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