all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#14590: function-arity fails for adviced functions
@ 2013-06-11 16:31 Juanma Barranquero
  2013-06-11 21:54 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Juanma Barranquero @ 2013-06-11 16:31 UTC (permalink / raw)
  To: 14590

Package: emacs
Version: 24.3.50


emacs -Q

(progn
  (defun test (a &optional b) nil)
  (function-arity 'test))

=> (1 . 2)

(progn
  (defadvice test (around test activate) ad-do-it)
  (function-arity 'test))

=>

Debugger entered--Lisp error: (wrong-type-argument sequencep 128)
  function-arity(test)
  (progn (progn (ad-add-advice (quote test) (quote (test nil t (advice
lambda nil ad-do-it))) (quote around) (quote nil)) (ad-activate (quote
test) nil) (quote test)) (function-arity (quote test)))
  eval((progn (progn (ad-add-advice (quote test) (quote (test nil t
(advice lambda nil ad-do-it))) (quote around) (quote nil))
(ad-activate (quote test) nil) (quote test)) (function-arity (quote
test))) nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)





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

* bug#14590: function-arity fails for adviced functions
  2013-06-11 16:31 bug#14590: function-arity fails for adviced functions Juanma Barranquero
@ 2013-06-11 21:54 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2013-06-11 21:54 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 14590-done

>   (function-arity 'test))
> =>
> Debugger entered--Lisp error: (wrong-type-argument sequencep 128)

Oops, sorry.  This function was added by mistake.  Thanks, removed,


        Stefan





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

end of thread, other threads:[~2013-06-11 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-11 16:31 bug#14590: function-arity fails for adviced functions Juanma Barranquero
2013-06-11 21:54 ` Stefan Monnier

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.