From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Choi Newsgroups: gmane.emacs.help Subject: Re: Help me unlock a file while in emacs on the Mac Date: Wed, 07 May 2003 19:23:31 GMT Organization: Shaw Residential Internet Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052335695 24614 80.91.224.249 (7 May 2003 19:28:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 7 May 2003 19:28:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 07 21:28:14 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19DUaM-0006Ol-00 for ; Wed, 07 May 2003 21:28:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19DUXm-0004wB-00 for gnu-help-gnu-emacs@m.gmane.org; Wed, 07 May 2003 15:25:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news1.calgary.shaw.ca.POSTED!not-for-mail X-Trace-PostClient-IP: 68.144.207.94 Original-Newsgroups: gnu.emacs.help Original-Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 24.71.223.147 Original-X-Complaints-To: abuse@shaw.ca Original-X-Trace: news1.calgary.shaw.ca 1052335411 24.71.223.147 (Wed, 07 May 2003 13:23:31 MDT) Original-NNTP-Posting-Date: Wed, 07 May 2003 13:23:31 MDT Original-Xref: shelby.stanford.edu gnu.emacs.help:112906 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9401 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9401 "Susan G. Conger" 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)