branch: scratch/rfc-mode
commit 408bd186c8be3476b351d60d968ca9c1bd1884e5
Author: Basil L. Contovounesios <conto...@tcd.ie>
Commit: Nicolas Martyanoff <khae...@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