help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: run-with-timer does not display message


From: Emanuel Berg
Subject: Re: run-with-timer does not display message
Date: Fri, 18 Jul 2014 23:34:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> Please don't quote your lambdas!

Do you mean in that case or never?

I have had problems with lambdas and both parameters
and `let' bindings.

For example, this works but not without the
backtick/backquote (and the commas):

(defun shortcut-to-file (key-prefix key file-prefix file)
  (global-set-key
   (format "%s%s" key-prefix key)
   `(lambda ()
      (interactive)
      (do-show-file (format "%s%s" ,file-prefix ,file)) )))

And, at least

(equal '(1 2 3) `(1 2 3)) => t
(equal '(1 2)   `(1 2 3)) => nil

But I believe you, of course, just if you could
elaborate some...

-- 
underground experts united


reply via email to

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