[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to avoid loading file when just testing if function is bound?
From: |
Sebastien Vauban |
Subject: |
How to avoid loading file when just testing if function is bound? |
Date: |
Mon, 02 Apr 2012 11:54:15 +0200 |
User-agent: |
Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (windows-nt) |
Hi,
For the purpose of asking whether I eventually need to clock out (from Org)
before exiting Emacs, I've written this chunk of code:
--8<---------------cut here---------------start------------->8---
(if (and (fboundp 'org-clocking-p)
(org-clocking-p)
(y-or-n-p "You are currently clocking time, clock out? "))
(org-clock-out)
t))
--8<---------------cut here---------------end--------------->8---
The problem is that if Org is not yet loaded, the above code does load it
(because `org-clocking-p' is autoloaded) -- and that takes a while... and I
just wanted to exit Emacs...
How to avoid this?
Best regards,
Seb
--
Sebastien Vauban
- How to avoid loading file when just testing if function is bound?,
Sebastien Vauban <=
Re: How to avoid loading file when just testing if function is bound?, Michael Albinus, 2012/04/02
Message not available