From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Raffaele Ricciardi Newsgroups: gmane.emacs.help Subject: Re: About `funcall' Date: Mon, 04 Mar 2013 19:12:29 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1362425692 8208 80.91.229.3 (4 Mar 2013 19:34:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Mar 2013 19:34:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 04 20:35:16 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UCbAK-0006dZ-4W for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Mar 2013 20:35:16 +0100 Original-Received: from localhost ([::1]:33025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCb9y-0003wq-NN for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Mar 2013 14:34:54 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-X-Trace: individual.net dMB2gvE9d+51k+qIdH344gWB6AdGdy/toD2lP52CJuH6YlcnWOqiFQmBMZwin8u1BP Cancel-Lock: sha1:kH5A5E0QpsZjqbX69FOy5UzMOpc= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: Original-Xref: usenet.stanford.edu gnu.emacs.help:197065 X-Mailman-Approved-At: Mon, 04 Mar 2013 14:34:15 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89347 Archived-At: On 04/03/13 12:52, Xue Fuqiao wrote: > In `yank-pop', there is an sexp about `funcall': > > (funcall (or yank-undo-function 'delete-region) (point) (mark t)) > > IIRC the first argument for `funcall' should be a function, so I'm > confused with this usage. Can somebody explain it to me? Thanks. > (or yank-undo-function 'delete-region) evaluates to a function, which is either the value of yank-undo-function or 'delete-region. Compare for instance this snippet, where `add' is a variable whose value is the function '+: (let ((add '+)) ;; Add if yes, otherwise multiply. (funcall (if (yes-or-no-p "Add?") add '*) 4 4))