From unknown Tue Jun 17 22:09:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24773: 26.0.50; Error when using Edebug on a function that uses :documentation Resent-From: Gemini Lasswell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Oct 2016 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24773 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 24773@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14772365752440 (code B ref -1); Sun, 23 Oct 2016 15:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Oct 2016 15:29:35 +0000 Received: from localhost ([127.0.0.1]:49100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byKiN-0000dI-8g for submit@debbugs.gnu.org; Sun, 23 Oct 2016 11:29:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58389) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byKiL-0000d3-S8 for submit@debbugs.gnu.org; Sun, 23 Oct 2016 11:29:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byKiF-0000iI-8e for submit@debbugs.gnu.org; Sun, 23 Oct 2016 11:29:28 -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,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33481) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1byKiF-0000iE-5R for submit@debbugs.gnu.org; Sun, 23 Oct 2016 11:29:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byKiD-0001on-H1 for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 11:29:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byKiA-0000hB-AI for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 11:29:25 -0400 Received: from aibo.runbox.com ([91.220.196.211]:38486) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1byKi9-0000fs-W4 for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 11:29:22 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1byKi2-00068Y-Lf for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 17:29:14 +0200 Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=rainbow.local) by mailfront11.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1byKhO-0008Vi-H6 for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 17:28:35 +0200 From: Gemini Lasswell Date: Sun, 23 Oct 2016 08:28:22 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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.1 (----) 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.1 (----) Edebug gives an error when you try to debug any function which uses :documentation to create its docstring. To reproduce: 1. Start Emacs (with -Q if you like) and enter the following code into *scr= atch*: ;;; -*- lexical-binding: t -*- (defun make-animal (species noise) (lambda () (:documentation (format "I'm a %s." species)) (message "%s" noise))) (defalias 'kermit (make-animal "frog" "ribbit")) (message "Kermit says %s" (documentation 'kermit t)) (kermit) 2. M-x edebug-all-defs RET 3. M-x eval-buffer RET 4. g Result: "Kermit says nil" is written to Messages, and execution stops with the error "Symbol=E2=80=99s function definition is void: :documentatio= n". This bug happens not only with lambda but also defun, defmacro, defmethod, pcase-lambda, cl-defun, etc. In GNU Emacs 26.0.50.10 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 Versi= on 10.11.6 (Build 15G1004)) of 2016-10-22 built on rainbow.local Repository revision: f577b8efec324afc80aa4308efbfa40dcce30bbf Windowing system distributor 'Apple', version 10.3.1404 Recent messages: Edebugging all definitions is on. You can run the command =E2=80=98edebug-all-defs=E2=80=99 with M-x -defs RET Edebugging all definitions is on. Edebug: edebug-anon1358 Edebug: make-animal Kermit says nil Go... Symbol's function definition is void: :documentation Go... edebug-signal: Symbol=E2=80=99s function definition is void: :documentation Configured using: 'configure --with-ns --disable-ns-self-contained' Configured features: JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: highlight-symbol-nav-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t global-undo-tree-mode: t undo-tree-mode: t diff-auto-refine-mode: t ivy-mode: t buffer-face-mode: t yas-global-mode: t yas-minor-mode: t pyvenv-mode: t shell-dirtrack-mode: t nameless-mode: t beacon-mode: t rainbow-mode: t column-enforce-mode: t volatile-highlights-mode: t region-state-mode: t ws-butler-global-mode: t ws-butler-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-global-mode: t smartparens-global-strict-mode: t smartparens-strict-mode: t smartparens-mode: t which-key-mode: t modalka-mode: t recentf-mode: t global-auto-revert-mode: t winner-mode: t display-time-mode: t savehist-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug highlight-symbol locate magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit magit-apply magit-wip magit-log magit-diff smerge-mode magit-core magit-autorevert magit-process magit-popup magit-mode magit-git crm magit-section magit-utils git-commit log-edit message rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mailabbrev gmm-utils mailheader pcvs-util with-editor async-bytecomp async server tabify noutline outline dash-at-point undo-tree diff bug-reference add-log expand-region text-mode-expansions python-el-fgallina-expansions er-basic-expansions expand-region-core expand-region-custom ielm eieio-tests eieio-opt speedbar sb-image ezimage dframe eieio-base ert pp find-func ewoc debug eieio-compat edebug vc-git diff-mode colir flx dired dired-loaddefs counsel esh-util swiper ivy delsel ffap face-remap guess-style smtpmail sendmail mail-utils yasnippet highlight-indentation flymake company help-fns radix-tree elpy pyvenv elpy-refactor smartparens-python python tramp-sh tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec json map grep compile files-x cus-edit virtualenvwrapper gud comint nameless lisp-mnt ace-window avy beacon smex ido deft debbugs soap-client mm-decode mm-bodies mm-encode warnings rng-xsd rng-dt rng-util xsd-regexp xml rainbow-mode ansi-color color s hydra lv column-enforce-mode etags xref project volatile-highlights region-state ws-butler smartparens-config smartparens thingatpt dash which-key modalka quail smart-mode-line-dark-theme smart-mode-line advice rich-minority whiteboard-theme classic-theme recentf tree-widget wid-edit autorevert filenotify winner ring time cus-start cus-load savehist cap-words superword subword use-package diminish bind-key easy-mmode finder-inf edmacro kmacro info network-stream starttls url-http tls gnutls mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm subr-x puny url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap cl package epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize 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 term/tty-colors 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 obarray 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 kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 785197 160038) (symbols 48 45770 0) (miscs 40 2961 2551) (strings 32 116734 150424) (string-bytes 1 3378243) (vectors 16 71418) (vector-slots 8 1235646 55579) (floats 8 1146 1541) (intervals 56 44259 4364) (buffers 976 38)) From unknown Tue Jun 17 22:09:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24773: 26.0.50; Error when using Edebug on a function that uses :documentation Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Oct 2016 15:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24773 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gemini Lasswell Cc: 24773@debbugs.gnu.org Received: via spool by 24773-submit@debbugs.gnu.org id=B24773.14772369473094 (code B ref 24773); Sun, 23 Oct 2016 15:36:02 +0000 Received: (at 24773) by debbugs.gnu.org; 23 Oct 2016 15:35:47 +0000 Received: from localhost ([127.0.0.1]:49122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byKoN-0000np-9F for submit@debbugs.gnu.org; Sun, 23 Oct 2016 11:35:47 -0400 Received: from mail-it0-f46.google.com ([209.85.214.46]:36746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byKoL-0000nZ-Br for 24773@debbugs.gnu.org; Sun, 23 Oct 2016 11:35:45 -0400 Received: by mail-it0-f46.google.com with SMTP id e187so102937624itc.1 for <24773@debbugs.gnu.org>; Sun, 23 Oct 2016 08:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=OElnFnmKFXGRBf+s7UeMSyGLJGtgjv3VsXZQIWyyxFs=; b=yRVQdMiWF/3q+8LUSmSxkKc5KTAbAP/V9E4y8hxo8B/q4ygtZiQp3LPRgPnkQisMhk wHnJk+j341sXBummGI8aJShR0vn1f9thg94ZvbVzGokzslw4PsZ6OlPxNVBc2gUdOz/N pu9WOg0jtwEi2LKmFvIXkh3JMdLI9P1x3cgiETon+IVkVkzV3VvuXtlCkCMek6+lw2zi +hm4iruEMAwlSt4IGw4hQcnzWTjVvwpUcVEsTahPKZ8pu5WzNO1oog33Qqj39WCeXsM7 KB7LDU8BhIA2c4H4ko4MyJ2+2C2NOyjPTlCdVGTeMH7KDkaBD3k019VAW6ZoFOTOU0UQ TLtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=OElnFnmKFXGRBf+s7UeMSyGLJGtgjv3VsXZQIWyyxFs=; b=fj27Ir6u7NhAekpeCSwSbEoZ0SpvMUMF/qM3eYSub/hBEbH64RhBK98Q9/hgyE1s+b Bd+CdxO3Le3tAxoGvi6J65P8It9D0sP63FANVKXCuArvXqNH7omYtEVVLawAdLaqVEjh eIuGkp/09X78FD9oZLgGFo0I4NcNJwoLH+tjSrIYBY3SY5MadaXy2ut35Jr1UTVgoMEF IEGCOLRkf1Z4njR/Ai6J2l23Fk2UD7lrULxG5w3EbmN1Tf7ObCBxG3wwBZKMm2JX4/0C LjbLyW9J88ijlb1kTp91bYHCDGnLZ0xQtjmdLr/5kLGihqIEzatrlMmC7tBor1SkBD7N A6NA== X-Gm-Message-State: AA6/9RnKEOEDQdw0bKXXKchplr5//MMUvkQULlmfhYXCRzZUmXMT9+k99f4RWND8tknDYPR7J3RlUfkN/mGBFQ== X-Received: by 10.202.4.17 with SMTP id 17mr17768404oie.91.1477236939299; Sun, 23 Oct 2016 08:35:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.29.239 with HTTP; Sun, 23 Oct 2016 08:35:38 -0700 (PDT) In-Reply-To: References: From: Noam Postavsky Date: Sun, 23 Oct 2016 11:35:38 -0400 X-Google-Sender-Auth: UDjpQz0Mnhof89CeNrVUy8sLdhE Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.2 (/) 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: -0.2 (/) On Sun, Oct 23, 2016 at 11:28 AM, Gemini Lasswell wrote: > Edebug gives an error when you try to debug any function which uses > :documentation to create its docstring. Is that a legitimate way to create a docstring? I tried (defun foo () (:documentation "this is docmentation") t) (foo) And it didn't work ( f foo RET says foo is not documented, and running foo, throws Lisp error: (void-function :documentation)). From unknown Tue Jun 17 22:09:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24773: 26.0.50; Error when using Edebug on a function that uses :documentation Resent-From: Gemini Lasswell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Oct 2016 16:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24773 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Noam Postavsky , 24773@debbugs.gnu.org Received: via spool by 24773-submit@debbugs.gnu.org id=B24773.14772412799851 (code B ref 24773); Sun, 23 Oct 2016 16:48:02 +0000 Received: (at 24773) by debbugs.gnu.org; 23 Oct 2016 16:47:59 +0000 Received: from localhost ([127.0.0.1]:49351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byLwF-0002Yp-KQ for submit@debbugs.gnu.org; Sun, 23 Oct 2016 12:47:59 -0400 Received: from aibo.runbox.com ([91.220.196.211]:54685) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byLwE-0002Yg-9D for 24773@debbugs.gnu.org; Sun, 23 Oct 2016 12:47:58 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1byLwB-0006CT-4z; Sun, 23 Oct 2016 18:47:55 +0200 Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=rainbow.local) by mailfront11.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1byLvS-0004ft-HI; Sun, 23 Oct 2016 18:47:11 +0200 From: Gemini Lasswell References: Date: Sun, 23 Oct 2016 09:47:08 -0700 In-Reply-To: (Noam Postavsky's message of "Sun, 23 Oct 2016 11:35:38 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.0 (-) 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: -1.0 (-) Noam Postavsky writes: > Is that a legitimate way to create a docstring? Yes, but lexical-binding needs to be on for it to work. It's mentioned in the NEWS for Emacs 25. From unknown Tue Jun 17 22:09:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24773: 26.0.50; Error when using Edebug on a function that uses :documentation Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Oct 2016 17:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24773 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gemini Lasswell Cc: 24773@debbugs.gnu.org Received: via spool by 24773-submit@debbugs.gnu.org id=B24773.147724307012546 (code B ref 24773); Sun, 23 Oct 2016 17:18:02 +0000 Received: (at 24773) by debbugs.gnu.org; 23 Oct 2016 17:17:50 +0000 Received: from localhost ([127.0.0.1]:49410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byMP8-0003GD-5o for submit@debbugs.gnu.org; Sun, 23 Oct 2016 13:17:50 -0400 Received: from mail-yw0-f180.google.com ([209.85.161.180]:34263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byMP6-0003Fu-Hy; Sun, 23 Oct 2016 13:17:49 -0400 Received: by mail-yw0-f180.google.com with SMTP id w3so137288077ywg.1; Sun, 23 Oct 2016 10:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=5wp9qsYYeqpdmovRdeBXItzyt3Px/pRygYeiG47tsC8=; b=aRhTez1oJPhv73Xs8b28rSkYtm+TtfrlJTLFe/V1EbVC7l898EO8gDHJwRswYW08ql XUi2/Zzl9bAibYexSBaEEov4Y8ZreiMtAsWaoK/PumMgOdL+9982w28BnJOzwRFc8An5 dIbi89w9Hz566VNeAHFazoyI/AcotjliTtu30rizwwQ7UW1IpDNKai2+bwwuTNGirOoH Ci4nIK5Xp4tSjE/PMYQwoqjGPGY48aRNecHyJvUVKYOrsFtnDjoVYC7zLqBLTUEEuWwU PCLU+/nYjkZurftQ92GGmeq0KMnPb753AfYXcvIwAKCkwMLa7H3KoUVAClff9PG3NrfU mBAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=5wp9qsYYeqpdmovRdeBXItzyt3Px/pRygYeiG47tsC8=; b=RBOf47XQ6AqyUrs7lmA+AAQgwkdkJtE54gL10DTKUVBnyXeGcpsYU5+c5dPrXROUFb luOOT5LB4BDyIXaSi/niIu0Ktl0j8eotDGWgsM2gbtVndlcvfrA7JTc9omi8AhZNe4mI wZ6vlv0TkaKSZ2MI+pH4or6d+cHV7fljwCXvyrKHTofOteBL7qp9vIpQrB9ZKH2cfMZM y6GU52U4CGBARC2v270SOq32YEQmEtC6dGLIfvpfjSOoNC+bYm8GjoZNsEBXqkhTKVBo s5aNfRlmWb3GAHwBP7KGbB1YgiazkCvwyE7Ro6LrRIMDNGcchmzaJzatq9tpGGMRg0iM 3o7A== X-Gm-Message-State: ABUngvdE1LcLQ4SHEkiuY5GlYQ2Ex0EBP4grCWOXA/oNgzGDppC7ssSy65ojdy/WTsQTFw== X-Received: by 10.107.169.143 with SMTP id f15mr12158266ioj.161.1477243062945; Sun, 23 Oct 2016 10:17:42 -0700 (PDT) Received: from zony ([45.2.7.130]) by smtp.googlemail.com with ESMTPSA id y189sm5845679ioy.28.2016.10.23.10.17.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 23 Oct 2016 10:17:42 -0700 (PDT) From: npostavs@users.sourceforge.net References: Date: Sun, 23 Oct 2016 13:18:20 -0400 In-Reply-To: (Gemini Lasswell's message of "Sun, 23 Oct 2016 09:47:08 -0700") Message-ID: <87insjrnkz.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) 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: -0.0 (/) tags 24773 confirmed found 24773 25.1 quit Gemini Lasswell writes: > Noam Postavsky writes: > >> Is that a legitimate way to create a docstring? > > Yes, but lexical-binding needs to be on for it to work. It's mentioned > in the NEWS for Emacs 25. Ah, I see it now, yes. From unknown Tue Jun 17 22:09:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24773: 26.0.50; Error when using Edebug on a function that uses :documentation Resent-From: Gemini Lasswell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2017 23:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24773 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: npostavs@users.sourceforge.net Cc: 24773@debbugs.gnu.org Received: via spool by 24773-submit@debbugs.gnu.org id=B24773.150672676231092 (code B ref 24773); Fri, 29 Sep 2017 23:13:01 +0000 Received: (at 24773) by debbugs.gnu.org; 29 Sep 2017 23:12:42 +0000 Received: from localhost ([127.0.0.1]:39772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy4SY-00085L-AX for submit@debbugs.gnu.org; Fri, 29 Sep 2017 19:12:42 -0400 Received: from aibo.runbox.com ([91.220.196.211]:47870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy4SV-000856-DB; Fri, 29 Sep 2017 19:12:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From; bh=n59Uj9yWXF2tM0x98Prmuw+u3oKo3x3ij+eHR7Rubm8=; b=ljfq4iqjmUTduAwMdXbgTHuKXy /jeyw0YxpZC8WVkldBSphXLkTFpPa7CImrWc8OqBQWncueWopRqwy8jS1mS33tSfX7a2VhvnaRQ3e wOx0v97uYy9v5/3tOtUO25FsZTUg5xMKh9uP8TSxv4DltCxmrVrHxCDvpKm1JqE8CJYx+uHJ0PNVR GIHKtvdVpAJsjI7/gUIWUaq5TAqZtIqiarx1gMYQD5p8yD5kxxxmA4mU/JCLWQVTcAaVFb2kaYnGQ InkKph3Hez2t6/MoSNrqOku6LyhCqW0G8RhPW6ix8nk0fVxntKbj7JgOjx8VAv9eQrFCwdmmy2+aR hESv8BkA==; Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1dy4ST-0000Vm-Oi; Sat, 30 Sep 2017 01:12:37 +0200 Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=chinook) by mailfront12.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1dy4SD-00037F-Jr; Sat, 30 Sep 2017 01:12:22 +0200 From: Gemini Lasswell References: <87insjrnkz.fsf@users.sourceforge.net> Date: Fri, 29 Sep 2017 16:12:18 -0700 In-Reply-To: <87insjrnkz.fsf@users.sourceforge.net> (npostavs's message of "Sun, 23 Oct 2016 13:18:20 -0400") Message-ID: <87tvzlje0d.fsf@runbox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) 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: -0.7 (/) --=-=-= Content-Type: text/plain tags 24773 patch quit Here is a patch to add support for :documentation to the Edebug specs of the macros where it can be used (see bug#28557 for a list of those, and some related bugs). cl-defgeneric was missing an Edebug spec and I reported that as bug#27747. Since it uses :documentation, I wrote one for it and included it here, so that bug will also be fixed by this patch. Before this patch there weren't any Edebug specs in lisp/emacs-lisp/generator.el, and lots of macros. Consequently, while iterators can be instrumented, they don't work under Edebug. I'll report that as a separate bug. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=0001-Create-new-Edebug-spec-for-docstrings-and-use-it-in-.patch >From d048fe3f0372011f4aef5cae0a89ccdbe3d59bf8 Mon Sep 17 00:00:00 2001 From: Gemini Lasswell Date: Fri, 29 Sep 2017 14:58:20 -0700 Subject: [PATCH] Create new Edebug spec for docstrings and use it in closures Since (:documentation FORM) can be used to create a docstring when lexical-binding is on, allow for that possibility in Edebug specs (bug#24773). * lisp/emacs-lisp/edebug.el: Define an Edebug spec for docstrings called lambda-doc and modify the Edebug specs for defun and defmacro to use it. (edebug-instrument-function): Check for generic functions first, to fix bug where edebug-step-in didn't work on methods now that cl-defgeneric has an Edebug spec. * lisp/subr.el (lambda): Modify Edebug spec to use lambda-doc. * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Add Edebug spec (bug#27747). (cl-defmethod): Use lambda-doc in Edebug spec. * lisp/emacs-lisp/cl-macs.el: Modify Edebug spec for cl-declarations-or-string to use lambda-doc, and modify Edebug spec for cl-lambda-expr to use cl-declarations-or-string. * lisp/emacs-lisp/pcase.el (pcase-lambda): Modify Edebug spec to use lambda-doc, as well as &define and def-body which are necessary for using Edebug on code wrapped by lambda. * lisp/emacs-lisp/generator.el (iter-defun, iter-lambda): Add Edebug specs. --- lisp/emacs-lisp/cl-generic.el | 13 +++++++++++-- lisp/emacs-lisp/cl-macs.el | 6 +++--- lisp/emacs-lisp/edebug.el | 27 +++++++++++++++------------ lisp/emacs-lisp/generator.el | 6 ++++-- lisp/emacs-lisp/pcase.el | 2 +- lisp/subr.el | 3 +-- 6 files changed, 35 insertions(+), 22 deletions(-) diff --git a/lisp/emacs-lisp/cl-generic.el b/lisp/emacs-lisp/cl-generic.el index b2f76abd88..62befd4742 100644 --- a/lisp/emacs-lisp/cl-generic.el +++ b/lisp/emacs-lisp/cl-generic.el @@ -204,7 +204,16 @@ cl-defgeneric DEFAULT-BODY, if present, is used as the body of a default method. \(fn NAME ARGS [DOC-STRING] [OPTIONS-AND-METHODS...] &rest DEFAULT-BODY)" - (declare (indent 2) (doc-string 3)) + (declare (indent 2) (doc-string 3) + (debug + (&define name cl-lambda-list lambda-doc + [&rest [&or + ("declare" &rest sexp) + (":argument-precedence-order" &rest sexp) + (&define ":method" [&rest atom] + cl-generic-method-args lambda-doc + def-body)]] + def-body))) (let* ((doc (if (stringp (car-safe options-and-methods)) (pop options-and-methods))) (declarations nil) @@ -422,7 +431,7 @@ cl-defmethod ; Like in CLOS spec, we support ; any non-list values. cl-generic-method-args ; arguments - [ &optional stringp ] ; documentation string + lambda-doc ; documentation string def-body))) ; part to be debugged (let ((qualifiers nil)) (while (not (listp args)) diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 32ba0ac309..40eda1e0d6 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el @@ -190,7 +190,7 @@ cl-declarations (&rest ("cl-declare" &rest sexp))) (def-edebug-spec cl-declarations-or-string - (&or stringp cl-declarations)) + (&or lambda-doc cl-declarations)) (def-edebug-spec cl-lambda-list (([&rest arg] @@ -447,8 +447,8 @@ cl-defmacro (def-edebug-spec cl-lambda-expr (&define ("lambda" cl-lambda-list - ;;cl-declarations-or-string - ;;[&optional ("interactive" interactive)] + cl-declarations-or-string + [&optional ("interactive" interactive)] def-body))) ;; Redefine function-form to also match cl-function diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index dbc56e272f..d00b14e803 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el @@ -1986,15 +1986,14 @@ defconst (def-edebug-spec defvar (symbolp &optional form stringp)) (def-edebug-spec defun - (&define name lambda-list - [&optional stringp] + (&define name lambda-list lambda-doc [&optional ("declare" &rest sexp)] [&optional ("interactive" interactive)] def-body)) (def-edebug-spec defmacro ;; FIXME: Improve `declare' so we can Edebug gv-expander and ;; gv-setter declarations. - (&define name lambda-list [&optional stringp] + (&define name lambda-list lambda-doc [&optional ("declare" &rest sexp)] def-body)) (def-edebug-spec arglist lambda-list) ;; deprecated - use lambda-list. @@ -2005,6 +2004,10 @@ lambda-list &optional ["&rest" arg] ))) +(def-edebug-spec lambda-doc + (&optional [&or stringp + (&define ":documentation" def-form)])) + (def-edebug-spec interactive (&optional &or stringp def-form)) @@ -3204,15 +3207,6 @@ edebug-instrument-function instrument cannot be found, signal an error." (let ((func-marker (get func 'edebug))) (cond - ((and (markerp func-marker) (marker-buffer func-marker)) - ;; It is uninstrumented, so instrument it. - (with-current-buffer (marker-buffer func-marker) - (goto-char func-marker) - (edebug-eval-top-level-form) - (list func))) - ((consp func-marker) - (message "%s is already instrumented." func) - (list func)) ((cl-generic-p func) (let ((method-defs (cl--generic-method-files func)) symbols) @@ -3227,6 +3221,15 @@ edebug-instrument-function (edebug-eval-top-level-form) (push (edebug-form-data-symbol) symbols)))) symbols)) + ((and (markerp func-marker) (marker-buffer func-marker)) + ;; It is uninstrumented, so instrument it. + (with-current-buffer (marker-buffer func-marker) + (goto-char func-marker) + (edebug-eval-top-level-form) + (list func))) + ((consp func-marker) + (message "%s is already instrumented." func) + (list func)) (t (let ((loc (find-function-noselect func t))) (unless (cdr loc) diff --git a/lisp/emacs-lisp/generator.el b/lisp/emacs-lisp/generator.el index f3597cc387..23af6143a7 100644 --- a/lisp/emacs-lisp/generator.el +++ b/lisp/emacs-lisp/generator.el @@ -681,7 +681,8 @@ iter-defun When called as a function, NAME returns an iterator value that encapsulates the state of a computation that produces a sequence of values. Callers can retrieve each value using `iter-next'." - (declare (indent defun)) + (declare (indent defun) + (debug (&define name lambda-list lambda-doc def-body))) (cl-assert lexical-binding) (let* ((parsed-body (macroexp-parse-body body)) (declarations (car parsed-body)) @@ -693,7 +694,8 @@ iter-defun (defmacro iter-lambda (arglist &rest body) "Return a lambda generator. `iter-lambda' is to `iter-defun' as `lambda' is to `defun'." - (declare (indent defun)) + (declare (indent defun) + (debug (&define lambda-list lambda-doc def-body))) (cl-assert lexical-binding) `(lambda ,arglist ,(cps-generate-evaluator body))) diff --git a/lisp/emacs-lisp/pcase.el b/lisp/emacs-lisp/pcase.el index c703cae445..36af88423c 100644 --- a/lisp/emacs-lisp/pcase.el +++ b/lisp/emacs-lisp/pcase.el @@ -226,7 +226,7 @@ pcase-lambda formal argument can be any pattern accepted by `pcase' (a mere variable name being but a special case of it)." (declare (doc-string 2) (indent defun) - (debug ((&rest pcase-PAT) body))) + (debug (&define (&rest pcase-PAT) lambda-doc def-body))) (let* ((bindings ()) (parsed-body (macroexp-parse-body body)) (args (mapcar (lambda (pat) diff --git a/lisp/subr.el b/lisp/subr.el index cf15ec287f..e0ef3e5885 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -110,8 +110,7 @@ lambda \(fn ARGS [DOCSTRING] [INTERACTIVE] BODY)" (declare (doc-string 2) (indent defun) - (debug (&define lambda-list - [&optional stringp] + (debug (&define lambda-list lambda-doc [&optional ("interactive" interactive)] def-body))) ;; Note that this definition should not use backquotes; subr.el should not -- 2.14.1 --=-=-=-- From unknown Tue Jun 17 22:09:30 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Gemini Lasswell Subject: bug#24773: closed (Re: bug#24773: 26.0.50; Error when using Edebug on a function that uses :documentation) Message-ID: References: <87y3oo3yxn.fsf@runbox.com> X-Gnu-PR-Message: they-closed 24773 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch confirmed Reply-To: 24773@debbugs.gnu.org Date: Fri, 06 Oct 2017 18:38:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1507315082-9588-1" This is a multi-part message in MIME format... ------------=_1507315082-9588-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #24773: 26.0.50; Error when using Edebug on a function that uses :documenta= tion which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 24773@debbugs.gnu.org. --=20 24773: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D24773 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1507315082-9588-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 24773-done) by debbugs.gnu.org; 6 Oct 2017 18:37:34 +0000 Received: from localhost ([127.0.0.1]:53558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0XV7-0002Tx-Rv for submit@debbugs.gnu.org; Fri, 06 Oct 2017 14:37:34 -0400 Received: from aibo.runbox.com ([91.220.196.211]:46424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0XV6-0002Tp-Bz for 24773-done@debbugs.gnu.org; Fri, 06 Oct 2017 14:37:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From; bh=GXcW7yQey0174KtsvQhmhj9g65j+HU/ZLnpKWJeJEb0=; b=SKtewhcl8oNJehUtDRuL3s81wp PfytvPCsRqjYY0RO1V8h9dQIacK0x/YRtA/MCcjXQQFsMXFFK9/GuOJ5lm+v2RL8YHj7uL0uDS9WH nPSGHf/tfDxUc9ZQO2yzZH+Byo/It16TK2uukc62TrDYKVOh7rEsyGueFycYVpgIaYrQtNbiDXiEn wEajfrRVNWYW+kfYFc1OaQh86OYam+gYWF1lSFTx2c2pWWaHFJzOeC7Y6KNq2VgsD6YtAcctKrJex SmSc1I7Cd51mpFWwcsaXY5uNK3zzJO7Sbr+rDgCY+BnP4/lE/bK5w4WyNQrjbNIcO3jwUjNrWH2B1 zgaEJB7Q==; Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1e0XV4-00019D-Ug; Fri, 06 Oct 2017 20:37:31 +0200 Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=chinook) by mailfront10.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1e0XV0-0004u6-EZ; Fri, 06 Oct 2017 20:37:26 +0200 From: Gemini Lasswell To: npostavs@users.sourceforge.net Subject: Re: bug#24773: 26.0.50; Error when using Edebug on a function that uses :documentation References: <87insjrnkz.fsf@users.sourceforge.net> <87tvzlje0d.fsf@runbox.com> Date: Fri, 06 Oct 2017 11:37:24 -0700 In-Reply-To: <87tvzlje0d.fsf@runbox.com> (Gemini Lasswell's message of "Fri, 29 Sep 2017 16:12:18 -0700") Message-ID: <87y3oo3yxn.fsf@runbox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 24773-done Cc: 24773-done@debbugs.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: -0.7 (/) Gemini Lasswell writes: > Here is a patch to add support for :documentation to the Edebug specs > of the macros where it can be used (see bug#28557 for a list of those, > and some related bugs). Patch pushed to emacs-26. ------------=_1507315082-9588-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Oct 2016 15:29:35 +0000 Received: from localhost ([127.0.0.1]:49100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byKiN-0000dI-8g for submit@debbugs.gnu.org; Sun, 23 Oct 2016 11:29:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58389) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byKiL-0000d3-S8 for submit@debbugs.gnu.org; Sun, 23 Oct 2016 11:29:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byKiF-0000iI-8e for submit@debbugs.gnu.org; Sun, 23 Oct 2016 11:29:28 -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,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33481) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1byKiF-0000iE-5R for submit@debbugs.gnu.org; Sun, 23 Oct 2016 11:29:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byKiD-0001on-H1 for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 11:29:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byKiA-0000hB-AI for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 11:29:25 -0400 Received: from aibo.runbox.com ([91.220.196.211]:38486) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1byKi9-0000fs-W4 for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 11:29:22 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1byKi2-00068Y-Lf for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 17:29:14 +0200 Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=rainbow.local) by mailfront11.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1byKhO-0008Vi-H6 for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 17:28:35 +0200 From: Gemini Lasswell To: bug-gnu-emacs@gnu.org Subject: 26.0.50; Error when using Edebug on a function that uses :documentation Date: Sun, 23 Oct 2016 08:28:22 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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.1 (----) X-Debbugs-Envelope-To: submit 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.1 (----) Edebug gives an error when you try to debug any function which uses :documentation to create its docstring. To reproduce: 1. Start Emacs (with -Q if you like) and enter the following code into *scr= atch*: ;;; -*- lexical-binding: t -*- (defun make-animal (species noise) (lambda () (:documentation (format "I'm a %s." species)) (message "%s" noise))) (defalias 'kermit (make-animal "frog" "ribbit")) (message "Kermit says %s" (documentation 'kermit t)) (kermit) 2. M-x edebug-all-defs RET 3. M-x eval-buffer RET 4. g Result: "Kermit says nil" is written to Messages, and execution stops with the error "Symbol=E2=80=99s function definition is void: :documentatio= n". This bug happens not only with lambda but also defun, defmacro, defmethod, pcase-lambda, cl-defun, etc. In GNU Emacs 26.0.50.10 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 Versi= on 10.11.6 (Build 15G1004)) of 2016-10-22 built on rainbow.local Repository revision: f577b8efec324afc80aa4308efbfa40dcce30bbf Windowing system distributor 'Apple', version 10.3.1404 Recent messages: Edebugging all definitions is on. You can run the command =E2=80=98edebug-all-defs=E2=80=99 with M-x -defs RET Edebugging all definitions is on. Edebug: edebug-anon1358 Edebug: make-animal Kermit says nil Go... Symbol's function definition is void: :documentation Go... edebug-signal: Symbol=E2=80=99s function definition is void: :documentation Configured using: 'configure --with-ns --disable-ns-self-contained' Configured features: JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: highlight-symbol-nav-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t global-undo-tree-mode: t undo-tree-mode: t diff-auto-refine-mode: t ivy-mode: t buffer-face-mode: t yas-global-mode: t yas-minor-mode: t pyvenv-mode: t shell-dirtrack-mode: t nameless-mode: t beacon-mode: t rainbow-mode: t column-enforce-mode: t volatile-highlights-mode: t region-state-mode: t ws-butler-global-mode: t ws-butler-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-global-mode: t smartparens-global-strict-mode: t smartparens-strict-mode: t smartparens-mode: t which-key-mode: t modalka-mode: t recentf-mode: t global-auto-revert-mode: t winner-mode: t display-time-mode: t savehist-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug highlight-symbol locate magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit magit-apply magit-wip magit-log magit-diff smerge-mode magit-core magit-autorevert magit-process magit-popup magit-mode magit-git crm magit-section magit-utils git-commit log-edit message rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mailabbrev gmm-utils mailheader pcvs-util with-editor async-bytecomp async server tabify noutline outline dash-at-point undo-tree diff bug-reference add-log expand-region text-mode-expansions python-el-fgallina-expansions er-basic-expansions expand-region-core expand-region-custom ielm eieio-tests eieio-opt speedbar sb-image ezimage dframe eieio-base ert pp find-func ewoc debug eieio-compat edebug vc-git diff-mode colir flx dired dired-loaddefs counsel esh-util swiper ivy delsel ffap face-remap guess-style smtpmail sendmail mail-utils yasnippet highlight-indentation flymake company help-fns radix-tree elpy pyvenv elpy-refactor smartparens-python python tramp-sh tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec json map grep compile files-x cus-edit virtualenvwrapper gud comint nameless lisp-mnt ace-window avy beacon smex ido deft debbugs soap-client mm-decode mm-bodies mm-encode warnings rng-xsd rng-dt rng-util xsd-regexp xml rainbow-mode ansi-color color s hydra lv column-enforce-mode etags xref project volatile-highlights region-state ws-butler smartparens-config smartparens thingatpt dash which-key modalka quail smart-mode-line-dark-theme smart-mode-line advice rich-minority whiteboard-theme classic-theme recentf tree-widget wid-edit autorevert filenotify winner ring time cus-start cus-load savehist cap-words superword subword use-package diminish bind-key easy-mmode finder-inf edmacro kmacro info network-stream starttls url-http tls gnutls mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm subr-x puny url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap cl package epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize 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 term/tty-colors 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 obarray 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 kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 785197 160038) (symbols 48 45770 0) (miscs 40 2961 2551) (strings 32 116734 150424) (string-bytes 1 3378243) (vectors 16 71418) (vector-slots 8 1235646 55579) (floats 8 1146 1541) (intervals 56 44259 4364) (buffers 976 38)) ------------=_1507315082-9588-1--