all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* access a let* value whe ndefining a function?
@ 2018-10-23 17:40 Matt Price
  2018-10-23 18:31 ` John Kitchin
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Price @ 2018-10-23 17:40 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 596 bytes --]

Hey, I guess this is OT.

I'm trying to advice org-mime-org-buffer-htmlize so that it returns to the
org buffer when its done. I want to do something like this:

(let ((thisbuffer (current-buffer))
 (advice-add
     'mu4e-sent-handler
     :after (lambda (docid props)
              (switch-to-buffer thisbuffer)
              (advice-remove 'mu4e-sent-handler 'om-sent-advice)
              ) '((name . 'om-sent-advice)))

but by the time the hook is run, the (let) has long since lapsed, and
thisbuffer is no longer defined. Can I force evaluation of the variable
during definition?

Thanks,
m

[-- Attachment #2: Type: text/html, Size: 868 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-10-24 12:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-23 17:40 access a let* value whe ndefining a function? Matt Price
2018-10-23 18:31 ` John Kitchin
2018-10-23 19:38   ` Matt Price
2018-10-23 20:05     ` Matt Price
2018-10-23 20:34     ` John Kitchin
2018-10-24 11:58       ` Matt Price

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.