[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 36a485a: Obsolete XEmacs compat convention in 'erc-button-press
From: |
Amin Bandali |
Subject: |
emacs-28 36a485a: Obsolete XEmacs compat convention in 'erc-button-press-button' |
Date: |
Mon, 11 Oct 2021 09:40:39 -0400 (EDT) |
branch: emacs-28
commit 36a485a1afb6b352ddb2d036d5ca430f4c6fdd10
Author: Stefan Kangas <stefan@marxist.se>
Commit: Amin Bandali <bandali@gnu.org>
Obsolete XEmacs compat convention in 'erc-button-press-button'
* lisp/erc/erc-button.el (erc-button-press-button): Advertise new
calling convention without XEmacs compatibility.
---
lisp/erc/erc-button.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lisp/erc/erc-button.el b/lisp/erc/erc-button.el
index 17d5b61..6997285 100644
--- a/lisp/erc/erc-button.el
+++ b/lisp/erc/erc-button.el
@@ -389,12 +389,11 @@ 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 () "28.1"))
(interactive)
(let* ((data (get-text-property (point) 'erc-data))
(fun (get-text-property (point) 'erc-callback)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 36a485a: Obsolete XEmacs compat convention in 'erc-button-press-button',
Amin Bandali <=