all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Passing Multiplie Arguments in the mini buffer
Date: Mon, 02 Aug 2004 10:12:06 -0600	[thread overview]
Message-ID: <410E67D6.6070409@yahoo.com> (raw)
In-Reply-To: mailman.2420.1091427607.1960.help-gnu-emacs@gnu.org


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

      parent reply	other threads:[~2004-08-02 16:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=410E67D6.6070409@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /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.
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.