From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 19 09:58:50 2016 Received: (at submit) by debbugs.gnu.org; 19 Mar 2016 13:58:50 +0000 Received: from localhost ([127.0.0.1]:53779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahHP0-0003zp-7T for submit@debbugs.gnu.org; Sat, 19 Mar 2016 09:58:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahHOy-0003zc-LV for submit@debbugs.gnu.org; Sat, 19 Mar 2016 09:58:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahHOs-00021x-E0 for submit@debbugs.gnu.org; Sat, 19 Mar 2016 09:58:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahHOs-00021s-Aa for submit@debbugs.gnu.org; Sat, 19 Mar 2016 09:58:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahHOr-0006Ap-6K for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2016 09:58:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahHOq-00021S-4o for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2016 09:58:41 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahHOk-00020W-B6; Sat, 19 Mar 2016 09:58:34 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3755 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ahHOj-0002Y8-Ju; Sat, 19 Mar 2016 09:58:34 -0400 Date: Sat, 19 Mar 2016 15:58:05 +0200 Message-Id: <83bn6a8t8y.fsf@gnu.org> From: Eli Zaretskii To: bug-gnu-emacs@gnu.org Subject: 25.0.92; Docs of ARGLIST in byte-code function objects is outdated MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) The node "Byte-Code Objects" says: Internally, a byte-code function object is much like a vector; its elements can be accessed using ‘aref’. Its printed representation is like that for a vector, with an additional ‘#’ before the opening ‘[’. It must have at least four elements; there is no maximum number, but only the first six elements have any normal use. They are: ARGLIST The list of argument symbols. BYTE-CODE The string containing the byte-code instructions. ... and gives this example: Here’s an example of a byte-code function object, in printed representation. It is the definition of the command ‘backward-sexp’. #[(&optional arg) "^H\204^F^@\301^P\302^H[!\207" [arg 1 forward-sexp] 2 254435 "^p"] However, if you actually try this example, you get a different result: (symbol-function 'backward-sexp) => #[256 "\211\204^G^@\300\262^A\301^A[!\207" [1 forward-sexp] 3 1793299 "^p"] IOW, instead of the argument list you have a number 256. Neither the fact that it can be (and usually is) a number nor the ways to interpret that number are documented anywhere I could see. It looks like the information about this can be found in byte-compile-make-args-desc and help-function-arglist. The change which introduced this feature was done 5 years ago, so it's high time we had it documented. In GNU Emacs 25.0.92.36 (i686-pc-mingw32) of 2016-03-19 built on HOME-C4E4A596F7 Repository revision: 26f9c5075ff273013418a66b70fae477301d41d5 Windowing system distributor 'Microsoft Corp.', version 5.1.2600 Configured using: 'configure --prefix=/d/usr --enable-checking=yes,glyphs --with-wide-int --with-modules 'CFLAGS=-O0 -gdwarf-4 -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES Important settings: value of $LANG: ENU locale-coding-system: cp1255 Major mode: Lisp Interaction Minor modes in effect: diff-auto-refine-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Type C-x 1 to delete the help window. Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dabbrev vc vc-dispatcher vc-git diff-mode easy-mmode find-func cl-extra thingatpt help-fns help-mode easymenu cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 101168 7624) (symbols 56 21418 0) (miscs 48 46 181) (strings 16 20509 5825) (string-bytes 1 519374) (vectors 16 13539) (vector-slots 8 440543 4313) (floats 8 173 473) (intervals 40 633 215) (buffers 856 14)) From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 19 16:01:42 2016 Received: (at submit) by debbugs.gnu.org; 19 Mar 2016 20:01:42 +0000 Received: from localhost ([127.0.0.1]:53952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahN49-0007K7-Nf for submit@debbugs.gnu.org; Sat, 19 Mar 2016 16:01:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahN48-0007Ef-0g for submit@debbugs.gnu.org; Sat, 19 Mar 2016 16:01:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahN42-0004Mw-3x for submit@debbugs.gnu.org; Sat, 19 Mar 2016 16:01:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahN42-0004Ms-1f for submit@debbugs.gnu.org; Sat, 19 Mar 2016 16:01:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahN41-0006bg-9S for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2016 16:01:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahN3x-0004K6-68 for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2016 16:01:33 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:5172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahN3x-0004Is-1T; Sat, 19 Mar 2016 16:01:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A6FgA731xV/xSQs2tcgxCEAoVVwwkCBAICgTw8EQEBAQEBAQGBCkEFg10BAQMBViMFCws0EhQYDSSINwjPIwEBAQEBBQEBAQEeizqFBQeELQW1BCNhgzMigngBAQE X-IPAS-Result: A0A6FgA731xV/xSQs2tcgxCEAoVVwwkCBAICgTw8EQEBAQEBAQGBCkEFg10BAQMBViMFCws0EhQYDSSINwjPIwEBAQEBBQEBAQEeizqFBQeELQW1BCNhgzMigngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="196985964" Received: from 107-179-144-20.cpe.teksavvy.com (HELO pastel.home) ([107.179.144.20]) by ironport2-out.teksavvy.com with ESMTP; 19 Mar 2016 16:01:27 -0400 Received: by pastel.home (Postfix, from userid 20848) id 3EF625FE67; Sat, 19 Mar 2016 16:01:27 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: 25.0.92; Docs of ARGLIST in byte-code function objects is outdated Message-ID: References: <83bn6a8t8y.fsf@gnu.org> Date: Sat, 19 Mar 2016 16:01:27 -0400 In-Reply-To: <83bn6a8t8y.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Mar 2016 15:58:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) > It looks like the information about this can be found in > byte-compile-make-args-desc and help-function-arglist. It's also documented in the docstring of `make-byte-code'. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 02 08:15:20 2016 Received: (at 23061-done) by debbugs.gnu.org; 2 Apr 2016 12:15:21 +0000 Received: from localhost ([127.0.0.1]:47848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amKSW-0003Tr-KN for submit@debbugs.gnu.org; Sat, 02 Apr 2016 08:15:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48133) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amKSU-0003Te-2H for 23061-done@debbugs.gnu.org; Sat, 02 Apr 2016 08:15:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amKSO-0001x3-4O for 23061-done@debbugs.gnu.org; Sat, 02 Apr 2016 08:15:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amKSK-0001wl-JN; Sat, 02 Apr 2016 08:15:08 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4784 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1amKSJ-0006Fb-M7; Sat, 02 Apr 2016 08:15:08 -0400 Date: Sat, 02 Apr 2016 15:14:36 +0300 Message-Id: <83bn5sryvn.fsf@gnu.org> From: Eli Zaretskii To: Eli Zaretskii In-reply-to: <83bn6a8t8y.fsf@gnu.org> (message from Eli Zaretskii on Sat, 19 Mar 2016 15:58:05 +0200) Subject: Re: bug#23061: 25.0.92; Docs of ARGLIST in byte-code function objects is outdated References: <83bn6a8t8y.fsf@gnu.org> 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-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 23061-done Cc: 23061-done@debbugs.gnu.org, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Sat, 19 Mar 2016 15:58:05 +0200 > From: Eli Zaretskii > Cc: Stefan Monnier > > (symbol-function 'backward-sexp) > => #[256 "\211\204^G^@\300\262^A\301^A[!\207" [1 forward-sexp] 3 1793299 "^p"] > > IOW, instead of the argument list you have a number 256. Neither the > fact that it can be (and usually is) a number nor the ways to > interpret that number are documented anywhere I could see. > > It looks like the information about this can be found in > byte-compile-make-args-desc and help-function-arglist. > > The change which introduced this feature was done 5 years ago, so it's > high time we had it documented. Fixed. From unknown Tue Aug 19 21:03:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 01 May 2016 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator