mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-26 07:33:39 +00:00
Autoload org-datetree-find-create-date
Stephen Eglen writes > Within the agenda buffer, if I type 'i j' to jump to the current date I > get: > > Debugger entered--Lisp error: (void-function org-datetree-find-date-create) > org-datetree-find-date-create((1 20 2010)) > org-agenda-diary-entry-in-org-file() > org-agenda-diary-entry() > call-interactively(org-agenda-diary-entry nil nil) > > If I then do M-x load-library org-datetree > > and repeat 'i j', it works. Should this function be autoloaded?
This commit is contained in:
parent
cae0c63c48
commit
566dac98b3
@ -1,5 +1,10 @@
|
||||
2010-01-20 Carsten Dominik <carsten.dominik@gmail.com>
|
||||
|
||||
* org-agenda.el (org-agenda-diary-entry-in-org-file): Make sure
|
||||
org-datetree.el is loaded.
|
||||
|
||||
* org-datetree.el: autoload `org-datetree-find-day-create'
|
||||
|
||||
* org-latex.el (org-export-latex-hyperref-format): New option.
|
||||
(org-export-latex-links): Use `org-export-latex-hyperref-format'.
|
||||
|
||||
|
@ -6832,6 +6832,7 @@ The cursor may be at a date in the calendar, or in the Org agenda."
|
||||
((equal char ?j)
|
||||
(org-switch-to-buffer-other-window
|
||||
(find-file-noselect org-agenda-diary-file))
|
||||
(require 'org-datetree)
|
||||
(org-datetree-find-date-create d1)
|
||||
(org-reveal t))
|
||||
(t (error "Invalid selection character `%c'" char)))))
|
||||
|
@ -39,6 +39,7 @@ This is normally one, but if the buffer has an entry with a DATE_TREE
|
||||
property, the date tree will become a subtree under that entry, so the
|
||||
base level will be properly adjusted.")
|
||||
|
||||
;;;###autoload
|
||||
(defun org-datetree-find-date-create (date &optional keep-restriction)
|
||||
"Find or create an entry for DATE.
|
||||
If KEEP-RESTRICTION is non-nil, do not widen the buffer.
|
||||
|
Loading…
Reference in New Issue
Block a user