From: "Drew Adams" <drew.adams@oracle.com>
To: "'C K Kashyap'" <ckkashyap@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: RE: A question about interactive
Date: Fri, 22 Mar 2013 07:45:02 -0700 [thread overview]
Message-ID: <4D3A6E00F75A4D2EB3E1A8D384A2F0ED@us.oracle.com> (raw)
In-Reply-To: <CAGdT1gqX3prN6iNvjJx7zCxmhTEoY_ZD8awaiTWJRjXusi3gtg@mail.gmail.com>
>> (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.
prev parent reply other threads:[~2013-03-22 14:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-21 6:46 A question about interactive C K Kashyap
2013-03-21 13:24 ` Drew Adams
2013-03-22 6:59 ` C K Kashyap
2013-03-22 7:18 ` Drew Adams
2013-03-22 11:24 ` C K Kashyap
2013-03-22 14:45 ` Drew Adams [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D3A6E00F75A4D2EB3E1A8D384A2F0ED@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=ckkashyap@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).