bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7693: 24.0.50, 23.2.91; advice to kill-new causes warning


From: Katsumi Yamaoka
Subject: bug#7693: 24.0.50, 23.2.91; advice to kill-new causes warning
Date: Tue, 21 Dec 2010 09:44:31 +0900
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]