[Top][All Lists]

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

Programmatic let

From: Lluís
Subject: Programmatic let
Date: Wed, 05 Dec 2012 21:28:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

My elisp foo is quite poor, so this might well be a completely stupid approach
to the problem.

I have a callback that gets automatically called, and uses some orgmode-specific
routines whose behaviour can be tuned through some customizable variables.

The usual approach in orgmode is:

  (let ((org-v1 ...) (org-v2 ...)) (org-func ...))

As my function is automatically called (as a response to the D-Bus message), I'd
like to let the user specify a let-like form to let her temporarily override the
behaviour of the `org-func' that my package invokes:

  (setq my-cb-org-vars '((org-v1 ...) (org-v2 ...)))
  (defun my-cb (...)
    (programmatic-let my-cb-org-vars
      (org-func ...)))

Is it possible to implement `programmatic-let'? And if so, can you throw me a
pointer to the appropriate docs?


 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom

reply via email to

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