From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Susan G. Conger" Newsgroups: gmane.emacs.help Subject: Re: Help me unlock a file while in emacs on the Mac Date: Wed, 07 May 2003 15:31:21 -0400 Organization: YOERIC Corporation Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1052336219 27239 80.91.224.249 (7 May 2003 19:36:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 7 May 2003 19:36:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 07 21:36:58 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 19DUiN-00072o-00 for ; Wed, 07 May 2003 21:36:31 +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 19DUhV-0001pM-01 for gnu-help-gnu-emacs@m.gmane.org; Wed, 07 May 2003 15:35:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feed3.newsreader.com!newsreader.com!news-out.visi.com!petbe.visi.com!feed.news.qwest.net!news.uswest.net.POSTED!congers Original-Newsgroups: gnu.emacs.help User-Agent: MT-NewsWatcher/3.2 (PPC Mac OS X) Original-Lines: 48 Original-NNTP-Posting-Host: 65.112.32.234 Original-X-Trace: news.uswest.net 1052335881 65.112.32.234 (Wed, 07 May 2003 14:31:21 CDT) Original-NNTP-Posting-Date: Wed, 07 May 2003 14:31:21 CDT Original-Xref: shelby.stanford.edu gnu.emacs.help:112908 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:9403 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9403 Andrew, Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! IT WORKS! This has been bothering me for quite some time. Thanks, Susan In article , Andrew Choi wrote: > "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) -- ============================================================ Susan G. Conger Custom Windows & Macintosh Development President Web Site Design & Development YOERIC Corporation Database Design & Development 256 Windy Ridge Road Chapel Hill, NC 27517 Phone/Fax: (919)542-0071 email: congers@yoeric.com Web: www.yoeric.com