unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Susan G. Conger" <congers@yoeric.com>
Subject: Re: Help me unlock a file while in emacs on the Mac
Date: Wed, 07 May 2003 15:31:21 -0400	[thread overview]
Message-ID: <congers-BE7C03.15312107052003@news.uswest.net> (raw)
In-Reply-To: m2of2ea7dj.fsf@owlbear.local

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 <m2of2ea7dj.fsf@owlbear.local>,
 Andrew Choi <akochoi_NOSPAM_@shaw.ca> 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))
> 
> > 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

  reply	other threads:[~2003-05-07 19:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-07 17:27 Help me unlock a file while in emacs on the Mac Susan G. Conger
2003-05-07 18:17 ` Andrew Choi
2003-05-07 18:46   ` Susan G. Conger
2003-05-07 19:23     ` Andrew Choi
2003-05-07 19:31       ` Susan G. Conger [this message]
2003-05-07 21:02       ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=congers-BE7C03.15312107052003@news.uswest.net \
    --to=congers@yoeric.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).