GNU bug report logs - #10577
edebug fails to instrument code which uses net-yet-loaded macros

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Sun, 22 Jan 2012 13:52:02 UTC

Severity: minor

Tags: confirmed

Merged with 11864

Found in version 24.1.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10577 in the body.
You can then email your comments to 10577 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10577; Package emacs. (Sun, 22 Jan 2012 13:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 22 Jan 2012 13:52:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: Subject: 23.4; edebug-defun fails with `completion-table-dynamic'
Date: Sun, 22 Jan 2012 14:51:05 +0100
Hi,

with Emacs -Q,

doing M-x edebug-defun

over `completion-table-dynamic' from minibuffer.el results in

edebug-syntax-error: Invalid read syntax: "Expected lambda expression"

;;;;;;;;;

Thanks all,
Andreas

In GNU Emacs 23.4.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2012-01-20
Windowing system distributor `The X.Org Foundation', version 11.0.10903000
configured using `configure  'CFLAGS=-g -O''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  tooltip-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-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<down> <down> <down> <down> <down> <down> <left> <up>
<up> M-x e d r <backspace> e b u g - e f <backspace>
<backspace> d e f <tab> <return> C-x b <return> <M-tab>
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC C-x b <return>
<down> <down> C-h f C-g <down> <left> <left> <left>
<right> C-x C-e <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <down>
C-x C-e <up> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> C-h f <return> <help-echo> C-h f C-x
C-g <return> C-x o <down> <right> <return> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <up>
<up> <up> <up> M-x e d e b u g - d e f <tab> <return>
<down> <down> <down> <down> <down> <down> <down> <up>
M-x <up> <return> <left> <up> <down> <left> <left>
<left> <left> <left> <left> <left> <left> <left> M-x
<up> <return> <down> <down> <down> <down> <down> M-x
<up> <return> <down> M-x <up> <return> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <up> <up> <up> <up> <up> <up> M-x <up> <return>
<down> <down> <down> <down> <down> <down> <down> <up>
<left> <left> M-x <up> <return> M-x r b <return> C-g
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <up> <up> <up> <up> C-h f e d e b u g
- d e f u n <return> <left> <left> M-x <up> <return>
M-x r e p o r t - e m a c s - b u g <return>

Recent messages:

Quit
python-completion-at-point
Auto-saving...done
python-completion-at-point
edebug-syntax-error: Invalid read syntax: "Expected lambda expression"
Edebug: lazy-completion-table
lazy-completion-table
edebug-syntax-error: Invalid read syntax: "Expected lambda expression" 
[5 times]
Quit
edebug-syntax-error: Invalid read syntax: "Expected lambda expression"

Load-path shadows:
None found.

Features:
(rx edebug find-func help-fns compile ansi-color python-21 python comint
ring dired pp descr-text help-mode view shadow sort mail-extr message
sendmail regexp-opt ecomplete rfc822 mml easymenu mml-sec password-cache
mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045
qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util
mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash
mail-utils emacsbug tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode
register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
loaddefs button minibuffer faces cus-face files text-properties overlay
md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
system-font-setting font-render-setting x-toolkit x multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10577; Package emacs. (Sun, 22 Jan 2012 21:18:01 GMT) Full text and rfc822 format available.

Message #8 received at 10577 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 10577 <at> debbugs.gnu.org
Subject: Re: bug#10577: Subject: 23.4;
	edebug-defun fails with `completion-table-dynamic'
Date: Sun, 22 Jan 2012 16:17:13 -0500
> with Emacs -Q,
> doing M-x edebug-defun
> over `completion-table-dynamic' from minibuffer.el results in
> edebug-syntax-error: Invalid read syntax: "Expected lambda expression"

I can't reproduce this on the trunk.  Can you reproduce it with the
Emacs-24 pretest?


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10577; Package emacs. (Sun, 22 Jan 2012 21:22:01 GMT) Full text and rfc822 format available.

Message #11 received at 10577 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 10577 <at> debbugs.gnu.org
Subject: Re: bug#10577: Subject: 23.4;
	edebug-defun fails with `completion-table-dynamic'
Date: Sun, 22 Jan 2012 16:21:02 -0500
Stefan Monnier wrote:

>> with Emacs -Q,
>> doing M-x edebug-defun
>> over `completion-table-dynamic' from minibuffer.el results in
>> edebug-syntax-error: Invalid read syntax: "Expected lambda expression"
>
> I can't reproduce this on the trunk.

Try edebugging emacs 23's completion-table-dynamic in the trunk.
You need to explicitly load cl first to get it to work.
I've often wondered if edebug can figure this out for itself somehow
(perhaps look for eval-when-compile's in the defining file?).




Merged 10577 11864. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 05 Jul 2012 16:21:01 GMT) Full text and rfc822 format available.

Changed bug title to 'edebug fails to instrument code which uses net-yet-loaded macros' from 'Subject: 23.4; edebug-defun fails with `completion-table-dynamic'' Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sat, 01 Jul 2017 12:45:02 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sat, 01 Jul 2017 12:45:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10577; Package emacs. (Sun, 20 Oct 2019 07:44:01 GMT) Full text and rfc822 format available.

Message #20 received at 10577 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 10577 <at> debbugs.gnu.org, 11864 <at> debbugs.gnu.org
Subject: Re: bug#11864: 24.1.50; error instrumenting pcase in
 completion-at-point for edebug
Date: Sun, 20 Oct 2019 09:43:12 +0200
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> pcase.el comes with declarations for edebug.  However, if I try to
> instrument the defun of `completion-at-point' in minibuffer.el (in
> emacs -Q), I get the following error:
>
> edebug-syntax-error: Invalid read syntax: "Expected lambda expression"
>
> I guess this should work - but please correct me if I'm wrong.

I'm unable to reproduce this in Emacs 27, so I'm going to go ahead and
guess that it's been fixed in the eight years since it was reported, and
I'm closing this bug report.  If you're still seeing this, please reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 10577 <at> debbugs.gnu.org and Andreas Röhler <andreas.roehler <at> easy-emacs.de> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 20 Oct 2019 07:44:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 17 Nov 2019 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.