From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Refer to List of Arguments in Emacs Lisp Function Date: Thu, 13 Nov 2014 09:02:14 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1415865764 5026 80.91.229.3 (13 Nov 2014 08:02:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2014 08:02:44 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 13 09:02:37 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 1XopMS-0001sZ-Tq for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2014 09:02:37 +0100 Original-Received: from localhost ([::1]:58207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XopMS-0002zG-I6 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2014 03:02:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XopMB-0002vE-3P for help-gnu-emacs@gnu.org; Thu, 13 Nov 2014 03:02:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XopM8-0002mW-B3 for help-gnu-emacs@gnu.org; Thu, 13 Nov 2014 03:02:19 -0500 Original-Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:34507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XopM7-0002kL-V5 for help-gnu-emacs@gnu.org; Thu, 13 Nov 2014 03:02:16 -0500 Original-Received: by mail-la0-f51.google.com with SMTP id q1so12787378lam.38 for ; Thu, 13 Nov 2014 00:02:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=SffaU8q4gtbeRnbnbxQqfMm6AveG/eyhewGYmivO1V8=; b=jlg59EDVv0cNIb3mBntkSkW34YgI3C5FeiBviWAB0IFMU51yynzrKONfB7ehSF/0gt FmU9+MA2T7wUE8s14ST2PX5mXP9n/1Dtn19WBE1fYmB5+GFPYsD1BM41Z7fp5Wu3Htf4 mJ8YqwIeNNwgP+pDraxXDWTQhDy1HunD4BnlFvyBLFMHFxngOT5uqHVIm+mD9jxPOB1B BapEjPLguUAvOJab6Da5ywWoZyVugoZu+gwvL1LlkVgx0Js+ItesOaB9PuEvqlqkDZEv rhyEyg8DN5U39d0Q5pLEgiENY1IvYhbqolnQIdv0xM+Luwz8wIQm+0EQXiaCRQT5EZzb +OgQ== X-Received: by 10.112.135.197 with SMTP id pu5mr874262lbb.22.1415865734680; Thu, 13 Nov 2014 00:02:14 -0800 (PST) Original-Received: by 10.112.202.106 with HTTP; Thu, 13 Nov 2014 00:02:14 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::233 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:100905 Archived-At: Hello, I can't find whether there is a possibility to refer to the whole list of arguments of a function in Emacs Lisp. For example: (defun move (x y z) (apply do-move (args)) What I mean by (args) primitive here is a list (x y z). This use case illustrates usefulness of such a primitive, i.e. forwarding of arguments to another internal call without a need to rewrite them by hand. (length (args)) might be useful in some cases too. Is there anything like that in Emacs Lisp already?