From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: using variable names as args to interactive functions Date: Sun, 13 Jan 2008 09:40:39 +0100 Message-ID: References: <96f5c9ae-3f50-4f54-9537-92a27cd618e8@f47g2000hsd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200217239 15253 80.91.229.12 (13 Jan 2008 09:40:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jan 2008 09:40: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 Sun Jan 13 10:41:02 2008 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 1JDzKw-0000rt-7y for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Jan 2008 10:41:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDzKY-0003TM-25 for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Jan 2008 04:40:38 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-X-Trace: individual.net Vp9dRg66T+vWobgCkgsZtQhZ6R0U80OrhtspcdhzS9RJ4WWnJN Cancel-Lock: sha1:9TAUOjlwntnXXYW3J5Eq/xnES7o= sha1:+GW3J0vvQZdp/cGhkDuiemvHJH8= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:155281 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:50692 Archived-At: Stuart writes: > I have some variables which I set at startup with setq. There are a > bunch of variables that get set. Each is a string representing a > directory path. I want a function which I can just type the variable > name and it opens dired with that directory. Just in case you did not know about it, have you looked at Emacs' bookmark facility? It saves "places" under names you define and you can easily jump to them later. Directories are supported. The only thing I am missing from them is that you cannot use them (I think) in `find-file'. I often do C-x C-f only to remember that I have a bookmark for what I was going to find. And even if I do remember that I have a bookmark there are times when other command asks me for a directory or file and where using a bookmark would have been useful. Anyone know a solution to this?