]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Obsolete XEmacs compat convention in erc-button-press-button"
authorAmin Bandali <bandali@gnu.org>
Mon, 11 Oct 2021 13:34:41 +0000 (09:34 -0400)
committerAmin Bandali <bandali@gnu.org>
Mon, 11 Oct 2021 13:34:41 +0000 (09:34 -0400)
This reverts commit f146325bd1556d1acafe26f6c263b83a92d3cd20.

This should be done in 'emacs-28', which will be merged into 'master'.

lisp/erc/erc-button.el

index 2c1d7000e990259404d5d9cef8d06b2c72a66fc7..17d5b6129dd70d4d760911058203558f9719e063 100644 (file)
@@ -389,11 +389,12 @@ REGEXP is the regular expression which matched for this button."
     (mouse-set-point event)
     (erc-button-press-button)))
 
+;; XEmacs calls this via widget-button-press with a bunch of arguments
+;; which we don't care about.
 (defun erc-button-press-button (&rest _ignore)
   "Check text at point for a callback function.
 If the text at point has a `erc-callback' property,
 call it with the value of the `erc-data' text property."
-  (declare (advertised-calling-convention () "29.1"))
   (interactive)
   (let* ((data (get-text-property (point) 'erc-data))
          (fun (get-text-property (point) 'erc-callback)))