>>>> "Daniel" == Daniel Ruoso
<daniel(a)ruoso.com> writes:
Daniel> When I open the the file and try to modify it, the
Daniel> modeline says "Loading Userlock...done"... and Xemacs
Daniel> locks itself...
Arggh. XEmacs is probably fine, but ...
Daniel> Can somebody help me?
You can deal with it yourself, I suspect.
Daniel> Lisp backtrace follows:
Daniel> format("%s is locking %s: action (s, q, p, ?)? "
For some reason in some cases XEmacs fails to output the message
above. What is happening is that you have another X?Emacs process
with the file locked, and you are being asked whether to (s)teal the
lock (and the other process will be locked out), (q)uit (and not edit
the file in this process), or (p)roceed (and you will have to resolve
the conflict later). (?) gives help.
So you should be able to just type `s' or `p' and then edit the file.
You should also be able to execute any XEmacs command that doesn't
involve the minibuffer at that point (the minibuffer is currently in
use by the message command that invoked the format function you see
above). Alternatively type C-g (perhaps two or three times) to quit
and edit something else.
If that doesn't work, you can put the following in your init file
(defun ask-user-about-lock (filename other-user) t)
and you will always grab the lock. To get prompting behavior back in
the same session, edit this message, and execute the form below (by
putting point after the last paren before "; HERE!" and typing C-x C-e).
(defun ask-user-about-lock (filename other-user)
"Ask user wanting to edit FILENAME, locked by OTHER-USER, what to do.
This function has a choice of three things to do:
do (signal 'file-locked (list FILENAME OTHER-USER))
to refrain from editing the file
return t (grab the lock on the file)
return nil (edit the file even though it is locked).
You can rewrite it to use any criteria you like to choose which one to do."
(discard-input)
(if (should-use-dialog-box-p)
(ask-user-about-lock-dbox filename other-user)
(ask-user-about-lock-minibuf filename other-user))) ; HERE!
This is an XEmacs bug (that message should display) and we'll try to
track it down, but you may be able to workaround in the meantime with
one of the above strategies.
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Don't ask how you can "do" free software business;
ask what your business can "do for" free software.