From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "spamfilteraccount@gmail.com" Newsgroups: gmane.emacs.help Subject: Calling a function interactively with a universal argument Date: Wed, 13 Jun 2007 05:04:21 -0700 Organization: http://groups.google.com Message-ID: <1181736261.747222.187410@q19g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1181738439 25670 80.91.229.12 (13 Jun 2007 12:40:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2007 12:40:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 13 14:40:38 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HyS9M-0005GH-2J for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2007 14:40:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyS9L-0005sz-Hp for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2007 08:40:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!q19g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 194.88.55.211 Original-X-Trace: posting.google.com 1181736262 12848 127.0.0.1 (13 Jun 2007 12:04:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 13 Jun 2007 12:04:22 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.20 (X11; Linux i686; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q19g2000prn.googlegroups.com; posting-host=194.88.55.211; posting-account=b98TkQ0AAAD7PsllN8gfWGRoPOPWdnv4 Original-Xref: shelby.stanford.edu gnu.emacs.help:149422 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45010 Archived-At: 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.