From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: C K Kashyap Newsgroups: gmane.emacs.help Subject: A question about interactive Date: Thu, 21 Mar 2013 12:16:56 +0530 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc7ef46ab17104d869b406 X-Trace: ger.gmane.org 1363848427 21393 80.91.229.3 (21 Mar 2013 06:47:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 06:47:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 21 07:47:34 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 1UIZHg-0005vF-Qs for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Mar 2013 07:47:32 +0100 Original-Received: from localhost ([::1]:42297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIZHJ-0005eO-JF for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Mar 2013 02:47:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIZH8-0005dn-QU for help-gnu-emacs@gnu.org; Thu, 21 Mar 2013 02:46:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIZH7-0007zQ-SH for help-gnu-emacs@gnu.org; Thu, 21 Mar 2013 02:46:58 -0400 Original-Received: from mail-qc0-x231.google.com ([2607:f8b0:400d:c01::231]:54662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIZH7-0007zF-Os for help-gnu-emacs@gnu.org; Thu, 21 Mar 2013 02:46:57 -0400 Original-Received: by mail-qc0-f177.google.com with SMTP id u28so731352qcs.36 for ; Wed, 20 Mar 2013 23:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=J6UdNZwOGMkS2LsKaSGsgzXWro0AMTBVQBXtFIpkcJU=; b=zWiDclXoF0jQPQqJAYP5oaTG+DkJx7QdUGAylAgERJ8qFr48x+tGK0o2TyoqeuXIpO h6B7kbP/1hdw+UgHbrybpMQ01UmYv1WZtkxvYXJUeyFTUkIF7wA+XGJs5DNojRq18Opl 2TLn67UT4pfflZzpcFjLC67D4SrDkGiw6Ryc72Jh6AenuK3ni+qF7bj9a8cH7vpy+lhY Nv2S4NU2ti+552Oz7PpkKL6R3ci0CxdfpGSvqrZxc/DPaOZES6xn9sEl6NRXUUg7saGK q6bfXzJ583hHVrHzGa4WS2qgn3b4YIY26TeEz3hahN/LEbpNMU0DCoV13Ebg+T/1JlrN 0k0A== X-Received: by 10.49.121.196 with SMTP id lm4mr9965663qeb.18.1363848416884; Wed, 20 Mar 2013 23:46:56 -0700 (PDT) Original-Received: by 10.229.34.3 with HTTP; Wed, 20 Mar 2013 23:46:56 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::231 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:89620 Archived-At: --047d7bdc7ef46ab17104d869b406 Content-Type: text/plain; charset=ISO-8859-1 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 (defun my-script-load (script-name) (interactive "fEnter script name: ") (load 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? Regards, Kashyap --047d7bdc7ef46ab17104d869b406 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Here's what I want to do =A0- I'd like to write ut= ility functions in different el files and store them in a particular direct= ory. then write a function in .emacs - say - my-script-load ... What I'= d like it to do is =A0this

(defun my-script-load (script-name)
= =A0 =A0 =A0 =A0 =A0 =A0 =A0(interactive "fEnter script name: ")
=A0 =A0 =A0 =A0 =A0 =A0 =A0(load script-name)
)

Now, the problem is that =A0the ineractive "f" seems t= o use the current buffer location as the starting point. How can I change t= hat?=A0

Regards,
Kashy= ap
--047d7bdc7ef46ab17104d869b406--