[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: |
Andrew Choi |
Subject: |
Re: Help me unlock a file while in emacs on the Mac |
Date: |
Wed, 07 May 2003 19:23:31 GMT |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
"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))
> Also, I tried to assign F7 to the mac-unlock-current-file, however I
> could not figure out how to get it to except just F7 as the command key.
> Here is the commands that I tried:
>
> (global-set-key "^[[18~" 'mac-unlock-current-file)
> (global-set-key "f7" 'mac-unlock-current-file)
Please try:
(global-set-key [f7] 'mac-unlock-current-file)