* Passing Multiplie Arguments in the mini buffer
@ 2004-08-02 2:41 exits funnel
2004-08-02 6:16 ` Kai Grossjohann
[not found] ` <mailman.2420.1091427607.1960.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: exits funnel @ 2004-08-02 2:41 UTC (permalink / raw)
Hello,
I'm having trouble figuring out how to pass more than
a single argument interactively to a function in the
minibuffer. I've checked in the emacs manual as well
as googled but I still can't find it. Imagine for
example, that I want to issue move-to-column to put
point at column 17 on the current line. I can do
this:
C-u 17 M-x move-to-column
However, according to it's doc string move-to-column
takes, in addition to the first argument, a second
optional one. How can I pass this second argument if
I'm issuing the function interactively? Thanks in
advance for any replies!
-exits
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Passing Multiplie Arguments in the mini buffer
2004-08-02 2:41 Passing Multiplie Arguments in the mini buffer exits funnel
@ 2004-08-02 6:16 ` Kai Grossjohann
2004-08-03 2:53 ` exits funnel
[not found] ` <mailman.2420.1091427607.1960.help-gnu-emacs@gnu.org>
1 sibling, 1 reply; 4+ messages in thread
From: Kai Grossjohann @ 2004-08-02 6:16 UTC (permalink / raw)
exits funnel <exitsfunnel@yahoo.com> writes:
> However, according to it's doc string move-to-column
> takes, in addition to the first argument, a second
> optional one. How can I pass this second argument if
> I'm issuing the function interactively?
I think there is no obvious way. Of course, you can cheat by doing
M-: (move-to-column 42 t) RET
But that's, well, cheating. Please note that M-: and M-x are not the
same. I really meant M-:.
Kai
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Passing Multiplie Arguments in the mini buffer
2004-08-02 6:16 ` Kai Grossjohann
@ 2004-08-03 2:53 ` exits funnel
0 siblings, 0 replies; 4+ messages in thread
From: exits funnel @ 2004-08-03 2:53 UTC (permalink / raw)
--- Kai Grossjohann <kai@emptydomain.de> wrote:
> exits funnel <exitsfunnel@yahoo.com> writes:
>
> > However, according to it's doc string
> move-to-column
> > takes, in addition to the first argument, a second
> > optional one. How can I pass this second argument
> if
> > I'm issuing the function interactively?
>
> I think there is no obvious way. Of course, you can
> cheat by doing
>
> M-: (move-to-column 42 t) RET
>
> But that's, well, cheating. Please note that M-:
> and M-x are not the
> same. I really meant M-:.
>
> Kai
Well, cheating or not, it works and I'm happy.
Thanks.
-exits
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.2420.1091427607.1960.help-gnu-emacs@gnu.org>]
* Re: Passing Multiplie Arguments in the mini buffer
[not found] ` <mailman.2420.1091427607.1960.help-gnu-emacs@gnu.org>
@ 2004-08-02 16:12 ` Kevin Rodgers
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2004-08-02 16:12 UTC (permalink / raw)
Kai Grossjohann wrote:
> exits funnel <exitsfunnel@yahoo.com> writes:
>>However, according to it's doc string move-to-column takes, in
>>addition to the first argument, a second optional one. How can I
>>pass this second argument if I'm issuing the function interactively?
>
> I think there is no obvious way. Of course, you can cheat by doing
>
> M-: (move-to-column 42 t) RET
>
> But that's, well, cheating. Please note that M-: and M-x are not the
> same. I really meant M-:.
You could cheat even more by specifying a different interactive
interface, via defadvice. :-) I gave it a try, but haven't quite got
it working:
(defadvice move-to-column (before interactive activate)
"When called interactivly, prompt for COLUMN and interpret a prefix arg
to mean FORCE."
(interactive "nColumn: \nP")
The first part does what I'd hoped: I'm prompted for the column, and
that's where Emacs moves point to. But the "P" interactive spec
doesn't seem to have any effect, and neither did setting force
explicitly: (ad-set-arg 1 current-prefix-arg)
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-03 2:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-02 2:41 Passing Multiplie Arguments in the mini buffer exits funnel
2004-08-02 6:16 ` Kai Grossjohann
2004-08-03 2:53 ` exits funnel
[not found] ` <mailman.2420.1091427607.1960.help-gnu-emacs@gnu.org>
2004-08-02 16:12 ` Kevin Rodgers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.