From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: org mobile - pre hooks Date: Thu, 03 Mar 2011 22:32:22 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=53300 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvG81-0004r0-AZ for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 16:32:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvG80-0004iR-GE for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 16:32:09 -0500 Received: from [85.183.18.158] (port=43776 helo=asus1015pem) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvG80-0004gT-A7 for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 16:32:08 -0500 Received: from shamrock by asus1015pem with local (Exim 4.72) (envelope-from ) id 1PvG8I-0001q7-Ic for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 22:32:26 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode mailing list Could I suggest that org-mobile-pre-push-hook is processed at the start of the org-mobile-push function before the checks? That way it can be used to properly setup mobile e.g using auth-source for the mobile password. (add-hook 'org-mobile-pre-push-hook '(lambda() (setq org-mobile-encryption-password (funcall (plist-get (car (auth-source-search :host '("orgmobile"))) ':secret)))))