From: "spamfilteraccount@gmail.com" <spamfilteraccount@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Calling a function interactively with a universal argument
Date: Wed, 13 Jun 2007 05:04:21 -0700 [thread overview]
Message-ID: <1181736261.747222.187410@q19g2000prn.googlegroups.com> (raw)
Is it possible to call a function from a program with a certain
universal argument?
I'd like to a redefine a standard command, but *without* bothering to
use its actual lisp interface, so I want to call the function from a
program as a user would, supplying only a universal argument or not.
I'd like to override find-tag behavior, so that it does something
after reading the interactive arguments, but before invoking the
original command:
(defun my-find-tag ()
; the result of (interactive-form 'find-tag) should be substituted
here somehow as an interactive specifier, because I want the same
interactive behavior (I can copy it of course manually, but it would
be nicer to copy here the interactive specification of find-tag
programatically)
(if my-find-tags was called with C-u then do something
otherwise do something else)
(call original find-tag with the interactive arugments received))
I've seen call-interactively, but it doesn't allow me to specify the
actual interactive arguments to call the command with.
next reply other threads:[~2007-06-13 12:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-13 12:04 spamfilteraccount [this message]
2007-06-14 13:21 ` Calling a function interactively with a universal argument Tim X
2007-06-15 2:14 ` Kevin Rodgers
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=1181736261.747222.187410@q19g2000prn.googlegroups.com \
--to=spamfilteraccount@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.
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.