Browse Source

Merge branch 'maint'

Bastien Guerry 12 years ago
parent
commit
ed991f49d7
3 changed files with 45 additions and 44 deletions
  1. 3 3
      lisp/org-agenda.el
  2. 40 0
      lisp/org-id.el
  3. 2 41
      lisp/org.el

+ 3 - 3
lisp/org-agenda.el

@@ -889,7 +889,7 @@ you want to use two-columns display (see `org-agenda-menu-two-columns')."
   :version "24.1"
   :version "24.1"
   :type 'boolean)
   :type 'boolean)
 
 
-(make-obsolete-variable 'org-agenda-menu-two-column 'org-agenda-menu-two-columns "24.3")
+(define-obsolete-variable-alias 'org-agenda-menu-two-column 'org-agenda-menu-two-columns "24.3")
 
 
 (defcustom org-agenda-menu-two-columns nil
 (defcustom org-agenda-menu-two-columns nil
   "Non-nil means, use two columns to show custom commands in the dispatcher.
   "Non-nil means, use two columns to show custom commands in the dispatcher.
@@ -899,7 +899,7 @@ to nil."
   :version "24.1"
   :version "24.1"
   :type 'boolean)
   :type 'boolean)
 
 
-(make-obsolete-variable 'org-finalize-agenda-hook 'org-agenda-finalize-hook "24.3")
+(define-obsolete-variable-alias 'org-finalize-agenda-hook 'org-agenda-finalize-hook "24.3")
 (defcustom org-agenda-finalize-hook nil
 (defcustom org-agenda-finalize-hook nil
   "Hook run just before displaying an agenda buffer.
   "Hook run just before displaying an agenda buffer.
 The buffer is still writable when the hook is called.
 The buffer is still writable when the hook is called.
@@ -1014,7 +1014,7 @@ Obsolete, see `org-agenda-span'."
   :group 'org-agenda-daily/weekly
   :group 'org-agenda-daily/weekly
   :type 'integer)
   :type 'integer)
 
 
-(make-obsolete-variable 'org-agenda-ndays 'org-agenda-span "24.1")
+(define-obsolete-variable-alias 'org-agenda-ndays 'org-agenda-span "24.1")
 
 
 (defcustom org-agenda-span 'week
 (defcustom org-agenda-span 'week
   "Number of days to include in overview display.
   "Number of days to include in overview display.

+ 40 - 0
lisp/org-id.el

@@ -83,6 +83,46 @@
   :tag "Org ID"
   :tag "Org ID"
   :group 'org)
   :group 'org)
 
 
+(define-obsolete-variable-alias
+  'org-link-to-org-use-id 'org-id-link-to-org-use-id "24.3")
+(defcustom org-id-link-to-org-use-id nil
+  "Non-nil means storing a link to an Org file will use entry IDs.
+
+The variable can have the following values:
+
+t     Create an ID if needed to make a link to the current entry.
+
+create-if-interactive
+      If `org-store-link' is called directly (interactively, as a user
+      command), do create an ID to support the link.  But when doing the
+      job for capture, only use the ID if it already exists.  The
+      purpose of this setting is to avoid proliferation of unwanted
+      IDs, just because you happen to be in an Org file when you
+      call `org-capture' that automatically and preemptively creates a
+      link.  If you do want to get an ID link in a capture template to
+      an entry not having an ID, create it first by explicitly creating
+      a link to it, using `C-c C-l' first.
+
+create-if-interactive-and-no-custom-id
+      Like create-if-interactive, but do not create an ID if there is
+      a CUSTOM_ID property defined in the entry.  This is the default.
+
+use-existing
+      Use existing ID, do not create one.
+
+nil   Never use an ID to make a link, instead link using a text search for
+      the headline text."
+  :group 'org-link-store
+  :group 'org-id
+  :type '(choice
+	  (const :tag "Create ID to make link" t)
+	  (const :tag "Create if storing link interactively"
+		 create-if-interactive)
+	  (const :tag "Create if storing link interactively and no CUSTOM_ID is present"
+		 create-if-interactive-and-no-custom-id)
+	  (const :tag "Only use existing" use-existing)
+	  (const :tag "Do not use ID to create link" nil)))
+
 (defcustom org-id-uuid-program "uuidgen"
 (defcustom org-id-uuid-program "uuidgen"
   "The uuidgen program."
   "The uuidgen program."
   :group 'org-id
   :group 'org-id

+ 2 - 41
lisp/org.el

@@ -1449,46 +1449,6 @@ It should match if the message is from the user him/herself."
   :group 'org-link-store
   :group 'org-link-store
   :type 'regexp)
   :type 'regexp)
 
 
-(defcustom org-link-to-org-use-id 'create-if-interactive-and-no-custom-id
-  "Non-nil means storing a link to an Org file will use entry IDs.
-
-Note that before this variable is even considered, org-id must be loaded,
-so please customize `org-modules' and turn it on.
-
-The variable can have the following values:
-
-t     Create an ID if needed to make a link to the current entry.
-
-create-if-interactive
-      If `org-store-link' is called directly (interactively, as a user
-      command), do create an ID to support the link.  But when doing the
-      job for capture, only use the ID if it already exists.  The
-      purpose of this setting is to avoid proliferation of unwanted
-      IDs, just because you happen to be in an Org file when you
-      call `org-capture' that automatically and preemptively creates a
-      link.  If you do want to get an ID link in a capture template to
-      an entry not having an ID, create it first by explicitly creating
-      a link to it, using `C-c C-l' first.
-
-create-if-interactive-and-no-custom-id
-      Like create-if-interactive, but do not create an ID if there is
-      a CUSTOM_ID property defined in the entry.  This is the default.
-
-use-existing
-      Use existing ID, do not create one.
-
-nil   Never use an ID to make a link, instead link using a text search for
-      the headline text."
-  :group 'org-link-store
-  :type '(choice
-	  (const :tag "Create ID to make link" t)
-	  (const :tag "Create if storing link interactively"
-		 create-if-interactive)
-	  (const :tag "Create if storing link interactively and no CUSTOM_ID is present"
-		 create-if-interactive-and-no-custom-id)
-	  (const :tag "Only use existing" use-existing)
-	  (const :tag "Do not use ID to create link" nil)))
-
 (defcustom org-context-in-file-links t
 (defcustom org-context-in-file-links t
   "Non-nil means file links from `org-store-link' contain context.
   "Non-nil means file links from `org-store-link' contain context.
 A search string will be added to the file name with :: as separator and
 A search string will be added to the file name with :: as separator and
@@ -8914,7 +8874,8 @@ type.  For a simple example of an export function, see `org-bbdb.el'."
       (setcdr (assoc type org-link-protocols) (list follow export))
       (setcdr (assoc type org-link-protocols) (list follow export))
     (push (list type follow export) org-link-protocols)))
     (push (list type follow export) org-link-protocols)))
 
 
-(defvar org-agenda-buffer-name)
+(defvar org-agenda-buffer-name) ; Defined in org-agenda.el
+(defvar org-link-to-org-use-id) ; Defined in org-id.el
 
 
 ;;;###autoload
 ;;;###autoload
 (defun org-store-link (arg)
 (defun org-store-link (arg)