all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#29919: 26.0.90; Incorrect Edebug spec for cl-macrolet
@ 2017-12-31 21:36 Gemini Lasswell
  2018-07-24 23:20 ` Gemini Lasswell
  0 siblings, 1 reply; 4+ messages in thread
From: Gemini Lasswell @ 2017-12-31 21:36 UTC (permalink / raw)
  To: 29919

Edebug gives an error when trying to instrument a function which uses
cl-macrolet to define a macro with an argument list containing &rest.

To reproduce, enter the following into *scratch*:

(defun bug (x)
  (cl-macrolet ((wrap (func &rest args)
		      `(progn
			 (message "%s" ',args)
			 (funcall #',func ,@args))))
    (wrap + 1 x)))

Then C-u C-M-x.

Result: edebug-syntax-error: Invalid read syntax: "Failed matching"

Looks to me like the problem is that the Edebug spec is using (&rest arg)
when it should be using cl-macro-list, assuming that cl-macrolet
supports full CL argument lists.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-27 19:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-31 21:36 bug#29919: 26.0.90; Incorrect Edebug spec for cl-macrolet Gemini Lasswell
2018-07-24 23:20 ` Gemini Lasswell
2018-07-25 22:24   ` Kaushal Modi
2018-07-27 19:10     ` Gemini Lasswell

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.