This commit is contained in:
Bram Schoenmakers 2023-01-01 07:53:14 +01:00
parent 2495767296
commit 84d40cdb8a
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
;; https://stackoverflow.com/questions/36039840/elisp-bind-a-lambda-in-a-let-and-execute-it
(let ((f (lambda (s) (message s))))
;; f is a variable so should be treated as such.
(funcall f "This works.")