From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: bug#23873: Emacs 24.0.94: With function argdesc bitstring, Elisp manual does not say how to get arg list Date: Thu, 30 Jun 2016 11:46:16 -0400 Message-ID: References: <871t3edfd9.fsf@gmx.net> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1467301620 12108 80.91.229.3 (30 Jun 2016 15:47:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2016 15:47:00 +0000 (UTC) Cc: 23873@debbugs.gnu.org To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 30 17:46:59 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bIeB7-0007vl-Sz for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2016 17:46:58 +0200 Original-Received: from localhost ([::1]:51275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIeB7-0003kl-Ax for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2016 11:46:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIeB1-0003kY-JA for emacs-devel@gnu.org; Thu, 30 Jun 2016 11:46:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIeAy-0005Pn-EM for emacs-devel@gnu.org; Thu, 30 Jun 2016 11:46:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIeAy-0005PX-As for emacs-devel@gnu.org; Thu, 30 Jun 2016 11:46:48 -0400 Original-Received: from mail-oi0-f41.google.com ([209.85.218.41]:35259) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bIeAw-0005lR-I5 for emacs-devel@gnu.org; Thu, 30 Jun 2016 11:46:46 -0400 Original-Received: by mail-oi0-f41.google.com with SMTP id r2so70755290oih.2 for ; Thu, 30 Jun 2016 08:46:46 -0700 (PDT) X-Gm-Message-State: ALyK8tKTGHGVR3CzP/ysUqYfAxP7WQfBRDm4A1LKxELVr2iQISTpjdaI9CNeZgylhmbQKcZPwU4sWh/6GD/lFw== X-Received: by 10.157.35.87 with SMTP id k23mr9925462otd.138.1467301605515; Thu, 30 Jun 2016 08:46:45 -0700 (PDT) Original-Received: by 10.202.212.143 with HTTP; Thu, 30 Jun 2016 08:46:16 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204999 Archived-At: On Thu, Jun 30, 2016 at 10:11 AM, Robert Weiner wrote: > I would suggest that the documentation be updated to describe how to > get the argument signature in this situation, as it is silent on that. For years, XEmacs has had functions for accessing parts of byte-compiled code. It would be great if Emacs had some equivalents. Below is the documentation on those functions from the XEmacs Lisp Manual: The following primitives are provided for accessing the elements of a compiled-function object. Function: compiled-function-arglist function This function returns the argument list of compiled-function object function. Function: compiled-function-instructions function This function returns a string describing the byte-code instructions of compiled-function object function. Function: compiled-function-constants function This function returns the vector of Lisp objects referenced by compiled-function object function. Function: compiled-function-stack-depth function This function returns the maximum stack size needed by compiled-function object function. Function: compiled-function-doc-string function This function returns the doc string of compiled-function object function, if available. Function: compiled-function-interactive function This function returns the interactive spec of compiled-function object function, if any. The return value is nil or a two-element list, the first element of which is the symbol interactive and the second element is the interactive spec (a string or Lisp form). Function: compiled-function-domain function This function returns the domain of compiled-function object function, if any. The result will be a string or nil.