summaryrefslogtreecommitdiff
path: root/lisp/org/org-id.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/org/org-id.el')
-rw-r--r--lisp/org/org-id.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/org/org-id.el b/lisp/org/org-id.el
index 40a67dfe2d7..0623c6071a8 100644
--- a/lisp/org/org-id.el
+++ b/lisp/org/org-id.el
@@ -1,10 +1,11 @@
;;; org-id.el --- Global identifiers for Org-mode entries
+;;
;; Copyright (C) 2008, 2009 Free Software Foundation, Inc.
;;
;; Author: Carsten Dominik <carsten at orgmode dot org>
;; Keywords: outlines, hypermedia, calendar, wp
;; Homepage: http://orgmode.org
-;; Version: 6.16
+;; Version: 6.19a
;;
;; This file is part of GNU Emacs.
;;
@@ -262,6 +263,9 @@ Move the cursor to that entry in that buffer."
The return value is a cons cell (file-name . position), or nil
if there is no entry with that ID.
With optional argument MARKERP, return the position as a new marker."
+ (cond
+ ((symbolp id) (setq id (symbol-name id)))
+ ((numberp id) (setq id (number-to-string id))))
(let ((file (org-id-find-id-file id))
org-agenda-new-buffers where)
(when file
@@ -521,6 +525,7 @@ When CHECK is given, prepare detailed information about duplicate IDs."
;; Finding entries with specified id
+;;;###autoload
(defun org-id-find-id-file (id)
"Query the id database for the file in which this ID is located."
(unless org-id-locations (org-id-locations-load))