unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20517: define-modify-macro: void function: cl--arglist-args
@ 2015-05-06 18:58 Glenn Morris
  2015-05-06 21:08 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2015-05-06 18:58 UTC (permalink / raw)
  To: 20517

Package: emacs
Version: 24.3

Byte-compiling the following works fine in Emacs 24.2, but in 24.3
and later it fails with:

  foo.el:3:1:Error: Symbol's function definition is void: cl--arglist-args

;; foo.el:
(eval-when-compile (require 'cl))
(define-modify-macro foo (&optional (n 1)) +)


As warned by the compiler:

  emacs-lisp/cl.el:724:1:Warning: the function `cl--arglist-args' is not
    known to be defined.





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

* bug#20517: define-modify-macro: void function: cl--arglist-args
  2015-05-06 18:58 bug#20517: define-modify-macro: void function: cl--arglist-args Glenn Morris
@ 2015-05-06 21:08 ` Stefan Monnier
  2015-05-06 21:47   ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2015-05-06 21:08 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 20517

> Byte-compiling the following works fine in Emacs 24.2, but in 24.3
> and later it fails with:

>   foo.el:3:1:Error: Symbol's function definition is void: cl--arglist-args

> ;; foo.el:
> (eval-when-compile (require 'cl))
> (define-modify-macro foo (&optional (n 1)) +)

Looks like I messed up this part when switching to gv.el.
But since noone noticed until now, I guess we should simply remove
define-modify-macro.


        Stefan





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

* bug#20517: define-modify-macro: void function: cl--arglist-args
  2015-05-06 21:08 ` Stefan Monnier
@ 2015-05-06 21:47   ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2015-05-06 21:47 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 20517-done

>> foo.el:3:1:Error: Symbol's function definition is void: cl--arglist-args
>> ;; foo.el:
>> (eval-when-compile (require 'cl))
>> (define-modify-macro foo (&optional (n 1)) +)

> Looks like I messed up this part when switching to gv.el.
> But since noone noticed until now, I guess we should simply remove
> define-modify-macro.

Oh, wait, no, it looks like the problem is just that cl--arglist-args
is not autoloaded from cl-macs.el.  So the compilation will succeed if
you use a CL macro before wetting to the define-modify-macro.

Should be fixed now,


        Stefan





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

end of thread, other threads:[~2015-05-06 21:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-06 18:58 bug#20517: define-modify-macro: void function: cl--arglist-args Glenn Morris
2015-05-06 21:08 ` Stefan Monnier
2015-05-06 21:47   ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).