Subject: bug#20517: closed (Re: bug#20517: define-modify-macro: void function: cl--arglist-args)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 06 May 2015 21:48:03 +0000

Your bug report

#20517: define-modify-macro: void function: cl--arglist-args

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 [email-masked].

-- 
20517: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20517
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#20517: define-modify-macro: void function: cl--arglist-args
From: Stefan Monnier <[email-masked]>
To: Glenn Morris <[email-masked]>
Cc: [email-masked]
Date: Wed, 06 May 2015 17:47:25 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

>> 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

Subject: define-modify-macro: void function: cl--arglist-args
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Wed, 06 May 2015 14:58:10 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

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.