emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] scratch/rfc-mode 408bd186c8 49/52: Use closures instead of quot


From: Stefan Monnier
Subject: [nongnu] scratch/rfc-mode 408bd186c8 49/52: Use closures instead of quoted lambda lists
Date: Wed, 12 Oct 2022 16:29:21 -0400 (EDT)

branch: scratch/rfc-mode
commit 408bd186c8be3476b351d60d968ca9c1bd1884e5
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Nicolas Martyanoff <khaelin@gmail.com>

    Use closures instead of quoted lambda lists
    
    * rfc-mode.el (rfc-mode-highlight): Evaluate lambda under
    lexical-binding to obtain an actual closure, rather than a quoted
    lambda list.
---
 rfc-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rfc-mode.el b/rfc-mode.el
index 8a2fe7536b..a773b5e7b5 100644
--- a/rfc-mode.el
+++ b/rfc-mode.el
@@ -321,8 +321,8 @@ Offer the number at point as default."
                 (number (string-to-number (match-string 1))))
             (unless (= start (line-beginning-position))
               (make-text-button start end
-                                'action `(lambda (button)
-                                           (rfc-mode-read ,number))
+                                'action (lambda (_button)
+                                          (rfc-mode-read number))
                                 'help-echo (format "Read RFC %d" number)
                                 'follow-link t))
             (goto-char end)))))))



reply via email to

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