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

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

Advice function needs argument not used in function, how to avoid compil


From: Jean Louis
Subject: Advice function needs argument not used in function, how to avoid compiler warning?
Date: Thu, 06 Oct 2022 00:20:18 +0300

I realize that advice function need argument such as &rest args, but I
am not using it in the function. And I do not understand what is that
argument receiving. Anybody may explain it?

I have to do (ignore args) to avoid compiler warning. What does args receive?

(defun hyperscope-after-sort (&rest args)
  (ignore args)
  (hyperscope-highlight))

(advice-add 'tabulated-list-col-sort :after 'hyperscope-after-sort)
(advice-add 'tabulated-list-sort :after 'hyperscope-after-sort)


--
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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