From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Llu=C3=ADs?= Newsgroups: gmane.emacs.devel Subject: Programmatic let Date: Wed, 05 Dec 2012 21:28:18 +0100 Message-ID: <87sj7kqm59.fsf@fimbulvetr.bsc.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1354739308 21029 80.91.229.3 (5 Dec 2012 20:28:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2012 20:28:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 05 21:28:41 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TgLaA-0008VR-8U for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2012 21:28:38 +0100 Original-Received: from localhost ([::1]:39519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgLZy-0008TK-7u for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2012 15:28:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgLZv-0008Sk-3f for emacs-devel@gnu.org; Wed, 05 Dec 2012 15:28:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgLZt-0003Lx-Ui for emacs-devel@gnu.org; Wed, 05 Dec 2012 15:28:22 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:53536) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TgLZt-0003Lk-K2 for emacs-devel@gnu.org; Wed, 05 Dec 2012 15:28:21 -0500 Original-Received: (qmail invoked by alias); 05 Dec 2012 20:28:20 -0000 Original-Received: from unknown (EHLO localhost) [84.88.51.85] by mail.gmx.net (mp010) with SMTP; 05 Dec 2012 21:28:20 +0100 X-Authenticated: #12333383 X-Provags-ID: V01U2FsdGVkX19vqXJhk+RvqWnJiE9RWrk+ZsKElFwJXxq1HvlFJd MmJPdAFF64fV16 Mail-Followup-To: emacs-devel@gnu.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 213.165.64.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155310 Archived-At: 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? Thanks, Lluis -- "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 Tollbooth