From unknown Sat Aug 16 15:56:30 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21377 <21377@debbugs.gnu.org> To: bug#21377 <21377@debbugs.gnu.org> Subject: Status: M-x disassemble fails on non-byte compiled functions with lexical bindings Reply-To: bug#21377 <21377@debbugs.gnu.org> Date: Sat, 16 Aug 2025 22:56:30 +0000 retitle 21377 M-x disassemble fails on non-byte compiled functions with lex= ical bindings reassign 21377 emacs submitter 21377 Paul Pogonyshev severity 21377 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 29 15:41:37 2015 Received: (at submit) by debbugs.gnu.org; 29 Aug 2015 19:41:37 +0000 Received: from localhost ([127.0.0.1]:42300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZVm0P-0000Ma-8W for submit@debbugs.gnu.org; Sat, 29 Aug 2015 15:41:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48570) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZVm0M-0000MO-Ah for submit@debbugs.gnu.org; Sat, 29 Aug 2015 15:41:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVm0K-0003pC-9G for submit@debbugs.gnu.org; Sat, 29 Aug 2015 15:41:32 -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.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVm0K-0003p8-6y for submit@debbugs.gnu.org; Sat, 29 Aug 2015 15:41:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVm0J-0005L0-DE for bug-gnu-emacs@gnu.org; Sat, 29 Aug 2015 15:41:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVm0I-0003l3-BO for bug-gnu-emacs@gnu.org; Sat, 29 Aug 2015 15:41:31 -0400 Received: from mail-ig0-x233.google.com ([2607:f8b0:4001:c05::233]:36520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVm0I-0003ki-6d for bug-gnu-emacs@gnu.org; Sat, 29 Aug 2015 15:41:30 -0400 Received: by igcse8 with SMTP id se8so43127991igc.1 for ; Sat, 29 Aug 2015 12:41:29 -0700 (PDT) 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=gtQE7Pc0LG6+u2xUy3ObrgjJFiyUx90I9fBI74qzmms=; b=ghfPhkTWaUCTBVTRTLHwM2+qnZybbIyouHcFCvSx2lYqSDTUDbgCJce5+aqT/rJjGl l/MJRNTbOedChB/RWypPFb69Bfc/8NShvJyTcKn2569IyIC/4HEBbGY3yv0amRWW3IuM 68yHtKi2SNrhH8Dq3Aog4W16RZbSnvY+GnDQpbUlVeACQlbp7wvPG2EcQUbNvIt3tnSA 6vmezdASOqs5VoPJXMz4OmlpZMRHtHh7IAjvjGiUoT6+5qXpfDeXkf+DP10979B2ABl+ JOUmC0readlGqUzlfaJ6AnUnlMeLtBOHPgLcyMIzM79HBY8Ek8whogWZP1SfDliOoDwA z+nQ== MIME-Version: 1.0 X-Received: by 10.50.114.228 with SMTP id jj4mr8686555igb.2.1440877289283; Sat, 29 Aug 2015 12:41:29 -0700 (PDT) Received: by 10.36.25.67 with HTTP; Sat, 29 Aug 2015 12:41:29 -0700 (PDT) Date: Sat, 29 Aug 2015 21:41:29 +0200 Message-ID: Subject: M-x disassemble fails on non-byte compiled functions with lexical bindings From: Paul Pogonyshev To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=089e01161cccfe27ca051e786232 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (----) --089e01161cccfe27ca051e786232 Content-Type: text/plain; charset=UTF-8 Disassembling works on byte-compiled functions and functions evaluated in buffers without lexical bindings. If you try to disassemble a function evaluated with lexical bindings, it fails with error "disassemble-internal: not a function". To reproduce: * M-x disassemble RET gv-get RET --> works (assuming it is loaded from 'gv.elc') * Go to gv-get definition and eval it explicitly * M-x disassemble RET gv-get RET --> fails Paul --089e01161cccfe27ca051e786232 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Disassembling works on byte-compiled functions and functio= ns evaluated in buffers without lexical bindings.=C2=A0 If you try to disas= semble a function evaluated with lexical bindings, it fails with error &quo= t;disassemble-internal: not a function".

To reprodu= ce:
* M-x disassemble RET gv-get RET --> works (assuming it is= loaded from 'gv.elc')
* Go to gv-get definition and eval= it explicitly
*=C2=A0M-x disassemble RET gv-get RET --> fails=

Paul
--089e01161cccfe27ca051e786232-- From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 15:15:39 2015 Received: (at 21377-done) by debbugs.gnu.org; 3 Sep 2015 19:15:39 +0000 Received: from localhost ([127.0.0.1]:47917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXZz1-0001zn-6x for submit@debbugs.gnu.org; Thu, 03 Sep 2015 15:15:39 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:44819) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXZyz-0001zf-11 for 21377-done@debbugs.gnu.org; Thu, 03 Sep 2015 15:15:38 -0400 Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t83JFZ75014979; Thu, 3 Sep 2015 15:15:36 -0400 Received: by ceviche.home (Postfix, from userid 20848) id B0DA666110; Thu, 3 Sep 2015 15:15:35 -0400 (EDT) From: Stefan Monnier To: Paul Pogonyshev Subject: Re: bug#21377: M-x disassemble fails on non-byte compiled functions with lexical bindings Message-ID: References: Date: Thu, 03 Sep 2015 15:15:35 -0400 In-Reply-To: (Paul Pogonyshev's message of "Sat, 29 Aug 2015 21:41:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV5418=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5418> : inlines <3754> : streams <1499299> : uri <2031816> X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 21377-done Cc: 21377-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (-) Thanks, Should be fixed now, Stefan From unknown Sat Aug 16 15:56:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 02 Oct 2015 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