unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7693: 24.0.50, 23.2.91; advice to kill-new causes warning
@ 2010-12-21  0:44 Katsumi Yamaoka
  2010-12-23 15:37 ` Stefan Monnier
  2017-10-14  6:30 ` Noam Postavsky
  0 siblings, 2 replies; 4+ messages in thread
From: Katsumi Yamaoka @ 2010-12-21  0:44 UTC (permalink / raw)
  To: 7693; +Cc: Herbert J. Skuhra

Maybe it's harmless but surprises me a bit.

(require 'bytecomp)
(defadvice kill-new (before nop activate))

This causes a warning in the "*Compile-Log*" buffer as follows:

Warning: ad-Orig-kill-new called with 3 arguments, but accepts only 1-2

It is because the arglist of `kill-new' is still
(string &optional replace yank-handler), that `advice' recognizes
by using `symbol-function'.  Any idea?

;; Emacs-w3m advises `kill-new' for some reason.





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

end of thread, other threads:[~2017-10-15 23:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21  0:44 bug#7693: 24.0.50, 23.2.91; advice to kill-new causes warning Katsumi Yamaoka
2010-12-23 15:37 ` Stefan Monnier
2017-10-14  6:30 ` Noam Postavsky
2017-10-15 23:42   ` Katsumi Yamaoka

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