From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alan E. Davis" Subject: elisp: link type isn't working Date: Tue, 24 Jan 2012 18:00:44 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0442829ce6a93e04b750a2ca Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpsAf-0006gb-WD for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 21:01:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpsAe-0007Un-46 for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 21:01:09 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:46305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpsAd-0007Ua-UG for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 21:01:08 -0500 Received: by wibhj13 with SMTP id hj13so146160wib.0 for ; Tue, 24 Jan 2012 18:01:06 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode --f46d0442829ce6a93e04b750a2ca Content-Type: text/plain; charset=ISO-8859-1 I've been using an elisp function to open an encrypted file. I borrowed this setup from, I think, Sacha Chua's blog. It's worked unfailingly for at least a couple of years, until tonight. I keep some sensitive information in a file, "junk.org." when encrypted using bcrypt, the file is renamed "junk.org.bfe." In my init files is a little function that runs bcrypt on the file, prompting for the password: (defun open-encrypted-file (fname) (interactive "FFind file: \n") (let ((buf (create-file-buffer fname))) (shell-command (concat "echo " (read-passwd "Decrypt password: ") " | bcrypt -o " fname) buf) (set-buffer buf) (kill-line)(kill-line) (toggle-read-only) (not-modified)b) ) I use a file of links as a directory to some of my projects. In this file is a headling that stores this link (an org file): [[elisp:(open-encrypted-file "~/WB/org/junk.org.bfe")][PassWord]] Anymore, as of today, when I try to run this link, the following is received: " Symbol's function definition is void: org-in-clocktable-p" I don't do anything with clocks. Can someone suggest what might be going on? Alan Davis --f46d0442829ce6a93e04b750a2ca Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I've been using an elisp function to open an encrypted file.=A0 I borro= wed this setup from, I think, Sacha Chua's blog.=A0 It's worked unf= ailingly for at least a couple of years, until tonight.=A0=A0 I keep some s= ensitive information in a file, "junk.org<= /a>."=A0 when encrypted using bcrypt, the file is renamed "junk.o= rg.bfe."

In my init files is a little function that runs bcrypt on the file, pro= mpting for the password:

(defun open-encrypted-file (fname)
=A0 (= interactive "FFind file: \n")
=A0 (let ((buf (create-file-buff= er fname)))
=A0=A0=A0 (shell-command
=A0=A0=A0=A0 (concat "echo " (read-pa= sswd "Decrypt password: ") " | bcrypt -o " fname)
= =A0=A0=A0=A0 buf)
=A0=A0=A0 (set-buffer buf)
=A0=A0=A0 (kill-line)(ki= ll-line)
=A0=A0=A0 (toggle-read-only)
=A0=A0=A0 (not-modified)b)
=A0 )

I use a file of links as a direc= tory to some of my projects.=A0=A0 In this file is a headling that stores t= his link (an org file):

[[elisp:(open-encrypted-file "~/WB/org/= junk.org.bfe")][PassWord]]

Anymore, as of today, when I try to run this link, the following is rec= eived:

" Symbol's function definition is void: org-in-clock= table-p"

I don't do anything with clocks.

Can someon= e suggest what might be going on?

Alan Davis
--f46d0442829ce6a93e04b750a2ca-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: elisp: link type isn't working Date: Tue, 24 Jan 2012 23:28:13 -0500 Message-ID: <3310.1327465693@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpura-0005bm-Gm for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 23:53:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpurZ-0002Oo-9v for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 23:53:38 -0500 Received: from g5t0007.atlanta.hp.com ([15.192.0.44]:23062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpurZ-0002Km-6C for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 23:53:37 -0500 In-Reply-To: Message from "Alan E. Davis" of "Tue, 24 Jan 2012 18:00:44 PST." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Alan E. Davis" Cc: nicholas.dokos@hp.com, org-mode Alan E. Davis wrote: > --f46d0442829ce6a93e04b750a2ca > Content-Type: text/plain; charset=ISO-8859-1 > > I've been using an elisp function to open an encrypted file. I borrowed > this setup from, I think, Sacha Chua's blog. It's worked unfailingly for > at least a couple of years, until tonight. I keep some sensitive > information in a file, "junk.org." when encrypted using bcrypt, the file > is renamed "junk.org.bfe." > > In my init files is a little function that runs bcrypt on the file, > prompting for the password: > > (defun open-encrypted-file (fname) > (interactive "FFind file: \n") > (let ((buf (create-file-buffer fname))) > (shell-command > (concat "echo " (read-passwd "Decrypt password: ") " | bcrypt -o " > fname) > buf) > (set-buffer buf) > (kill-line)(kill-line) > (toggle-read-only) > (not-modified)b) > ) > > I use a file of links as a directory to some of my projects. In this file > is a headling that stores this link (an org file): > > [[elisp:(open-encrypted-file "~/WB/org/junk.org.bfe")][PassWord]] > > Anymore, as of today, when I try to run this link, the following is > received: > > " Symbol's function definition is void: org-in-clocktable-p" > > I don't do anything with clocks. > > Can someone suggest what might be going on? > M-x toggle-debug-on-error and post the backtrace. Nick From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: elisp: link type isn't working Date: Wed, 25 Jan 2012 00:33:46 -0500 Message-ID: <3985.1327469626@alphaville> References: <3310.1327465693@alphaville> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpvVV-0001Vk-2B for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 00:34:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpvVU-0006Sn-71 for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 00:34:53 -0500 Received: from g1t0029.austin.hp.com ([15.216.28.36]:15009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpvVU-0006QP-1S for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 00:34:52 -0500 In-Reply-To: Message from Nick Dokos of "Tue, 24 Jan 2012 23:28:13 EST." <3310.1327465693@alphaville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: org-mode , nicholas.dokos@hp.com Nick Dokos wrote: > Alan E. Davis wrote: > > > [[elisp:(open-encrypted-file "~/WB/org/junk.org.bfe")][PassWord]] > > > > Anymore, as of today, when I try to run this link, the following is > > received: > > > > " Symbol's function definition is void: org-in-clocktable-p" > > > M-x toggle-debug-on-error > > and post the backtrace. > Never mind: you can probably work around the problem by adding (require 'org-clock) after org initialization in your .emacs (or wherever). If that works, then we can worry about why it is needed. Nick