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: Fri, 22 Mar 2013 07:45:02 -0700 Message-ID: <4D3A6E00F75A4D2EB3E1A8D384A2F0ED@us.oracle.com> References: <2C911AFC62FB4E168237DA94E8D5EB75@us.oracle.com> 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 1363963521 26405 80.91.229.3 (22 Mar 2013 14:45:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Mar 2013 14:45:21 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "'C K Kashyap'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 22 15:45:46 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 1UJ3E2-00062D-G0 for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Mar 2013 15:45:46 +0100 Original-Received: from localhost ([::1]:49439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ3Df-0005Pm-53 for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Mar 2013 10:45:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ3DT-0005N9-35 for help-gnu-emacs@gnu.org; Fri, 22 Mar 2013 10:45:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJ3DR-0006vn-DH for help-gnu-emacs@gnu.org; Fri, 22 Mar 2013 10:45:11 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:45086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ3DR-0006vf-81 for help-gnu-emacs@gnu.org; Fri, 22 Mar 2013 10:45:09 -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 r2MEj7e2009505 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 22 Mar 2013 14:45:08 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r2MEj6Wq015259 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 22 Mar 2013 14:45:07 GMT Original-Received: from abhmt116.oracle.com (abhmt116.oracle.com [141.146.116.68]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r2MEj6s7004237; Fri, 22 Mar 2013 09:45:06 -0500 Original-Received: from dradamslap1 (/10.159.248.227) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 22 Mar 2013 07:45:06 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac4m78mAwDbvNKowSgmhebRkoV6t2AAGunFA 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:89670 Archived-At: >> (interactive (list (read-file-name "Filename: " "c:/")) There should have been another `)' at the end of that; sorry. > when I run f M-x f - it asks for the file name but it does > not insert into the buffer. It inserts the file name. FILE is a file name. Maybe you are looking for `insert-file', which inserts file contents, and not `insert' (which you had in your code). > I was not able to read about this in C-h-f interactive - > Can you explain what's happening here - interactive is > supposed to take in a string as its argument -how is it > working with a list? In the Elisp manual, use `i interactive' to find node `Using Interactive'. Read the 3rd bullet about argument ARG-DESCRIPTOR. The manual is your friend. Please look there first. Use `i' to find stuff. Use `C-s' or `C-M-s' to search if you cannot find something using `i'. Use `report-emacs-bug' if you cannot easily find something that is in the manual, e.g., if you think another index entry should be added. Please use plain text (not HTML) for the Emacs help list. Thx.