From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: A question about interactive Date: Thu, 21 Mar 2013 06:24:02 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1363873285 882 80.91.229.3 (21 Mar 2013 13:41:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 13:41:25 +0000 (UTC) To: "'C K Kashyap'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 21 14:41:47 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UIfkZ-0003uV-JK for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Mar 2013 14:41:47 +0100 Original-Received: from localhost ([::1]:56457 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIfUt-0001QX-2D for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Mar 2013 09:25:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIfTb-0007eA-6l for help-gnu-emacs@gnu.org; Thu, 21 Mar 2013 09:24:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIfTZ-0008Oe-ME for help-gnu-emacs@gnu.org; Thu, 21 Mar 2013 09:24:15 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:50989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIfTZ-0008OZ-Eq for help-gnu-emacs@gnu.org; Thu, 21 Mar 2013 09:24:13 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r2LDOAgG031442 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 21 Mar 2013 13:24:11 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r2LDO9Qc013390 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Mar 2013 13:24:10 GMT Original-Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r2LDO8gp014799; Thu, 21 Mar 2013 08:24:09 -0500 Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 21 Mar 2013 06:24:08 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac4l/+UMgzwNV6XAR+6xPVReWyRlIQANxp0g X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89625 Archived-At: > Here's what I want to do - I'd like to write utility > functions in different el files and store them in a > particular directory. then write a function in .emacs > - say - my-script-load ... What I'd like it to do is > this: (interactive "fEnter script name: ") > > Now, the problem is that the ineractive "f" seems to > use the current buffer location as the starting point. > How can I change that? In the `interactive' spec, let-bind `default-directory' and then read the file name with `read-file-name'. See the doc for `interactive'.