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

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

Re: Help me unlock a file while in emacs on the Mac


From: Kevin Rodgers
Subject: Re: Help me unlock a file while in emacs on the Mac
Date: Wed, 07 May 2003 15:02:23 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Andrew Choi wrote:

"Susan G. Conger" <congers@yoeric.com> writes:


[...]  The file is really unlocked but the buffer thinks that it is
still locked.  I tried doing a C-X C-F to reread the file but it still
thought it was locked.  How would I change the mac-unlock-file so that
it realizes that it can now edit the buffer and be able to save the
changes back to the file.


Oops, I forgot.  You need to call toggle-read-only, or change
mac-unlock-current-file to call it for you.

   (defun mac-unlock-current-file ()
     (interactive)
     (mac-unlock-file (buffer-file-name))
     (toggle-read-only))

Wouldn't revert-buffer be more reliable than toggle-read-only?

--
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>



reply via email to

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