From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: Refer to List of Arguments in Emacs Lisp Function Date: Mon, 17 Nov 2014 06:04:38 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87a93qkrzt.fsf@lifelogs.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416222328 7108 80.91.229.3 (17 Nov 2014 11:05:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2014 11:05:28 +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 Nov 17 12:05:21 2014 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 1XqK7V-0006XG-0B for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 12:05:21 +0100 Original-Received: from localhost ([::1]:47177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqK7U-0004ST-B7 for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 06:05:20 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-2.dfn.de!news.dfn.de!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.albasani.net!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: news.albasani.net Sa02fdwV5ulMi5sWcjh2r9AzdR3yG/gZtUeL+0WLZ8a5CCdjiqu5Yaoop4PO8f/E0jmNpfYLn94u3irrXlAbqw== Original-NNTP-Posting-Date: Mon, 17 Nov 2014 11:04:08 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="aPh6DEEaVc3y7oD1Tz+ZvSDjwWK35YMWMM2jwP0GR/5lV2GA3z1EvGHB7TigayKNhWBJmZYSkPrpNQjMLDQc2XvunA1Pz1e6X6cySfPZWA0cnZmBnP3d4jIUq82iSoEL"; mail-complaints-to="abuse@albasani.net" User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:DV/r/IQnmP+Kum4FpsKHXBmBJb4= sha1:yekFpH9/zZiP0RR/bMrNId2QVpo= Original-Xref: usenet.stanford.edu gnu.emacs.help:208709 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:100987 Archived-At: On Thu, 13 Nov 2014 09:02:14 +0100 Alexander Shukaev wrote: AS> I can't find whether there is a possibility to refer to the whole list of AS> arguments of a function in Emacs Lisp. For example: AS> (defun move (x y z) AS> (apply do-move (args)) AS> What I mean by (args) primitive here is a list (x y z). This use case AS> illustrates usefulness of such a primitive, i.e. forwarding of arguments to AS> another internal call without a need to rewrite them by hand. I think `apply-partially' and function aliasing are more typical solution for this use case in today's Emacs. Macros also help, depending on the situation. Not to say your need is not valid, but it's definitely not common. AS> (length (args)) might be useful in some cases too. Is there anything AS> like that in Emacs Lisp already? Sorry... I'm not aware of such a thing. Ted