From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Norm Newsgroups: gmane.emacs.help Subject: Re: build a macro that opens a directory and prompts for file name Date: Fri, 23 Jan 2009 07:38:34 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <87f0e43c-d0e9-45eb-8d4f-ae5c7745a2a3@t26g2000prh.googlegroups.com> <4r5tz7qrqjh.fsf@one.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1232778579 31146 80.91.229.12 (24 Jan 2009 06:29:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Jan 2009 06:29:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 24 07:30:49 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LQc2a-0000ql-Sp for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Jan 2009 07:30:49 +0100 Original-Received: from localhost ([127.0.0.1]:59642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQc1J-0001gM-07 for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Jan 2009 01:29:29 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b38g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: 69.2.165.21 Original-X-Trace: posting.google.com 1232725114 1528 127.0.0.1 (23 Jan 2009 15:38:34 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 23 Jan 2009 15:38:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b38g2000prf.googlegroups.com; posting-host=69.2.165.21; posting-account=BOPQTwoAAAANkqN_mMWvSNAYr9hX5O2v User-Agent: G2/1.0 X-HTTP-Via: 1.1 S5 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.43 Safari/525.19, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166268 X-Mailman-Approved-At: Sat, 24 Jan 2009 01:27:46 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61596 Archived-At: On Jan 23, 10:27=A0am, Chris McMahan wrote: > Norm writes: > > Hello all, > > > I have been googleing and reading the docs trying to figure out a > > solution to this. I spend the majority of my time working in a single > > directory on a CIFS server and I am always doing a C-x C-f \\server\dir > > \long_sub_dir\subdir\filename > > > In the spirit of emacs I'd like to automate it so that when I do C-co > > it knows the directory and simply prompts me for the file to be opened > > or if I leave it blank and press RET it lists the directory. > > > Any suggestions on how to accomplish this. > > > Many thanks, > > > Norm > > I use bookmarks to take me to the directories themselves. > > - Go to the directory that contains the file you want > - Press C-x r m to memorize that location, and give it a name you can > =A0 remember > > to navigate to that directory, just press C-x r b. You'll be prompted > for the bookmark name, and it will open that directory. > > See the help for the function 'command bookmark-set' for details > > - Chris > > -- > =A0 =A0 =A0(. =A0 .) > =A0 =3DooO=3D(_)=3DOoo=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =A0 Chris McMahan | first_initiallastn...@one.dot.net > =A0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Thanks Chris. That is exactly what I need. Wonderful.