mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-07 14:18:35 +00:00
org-compat: Improve obsolete notification
This commit is contained in:
parent
8d44c95025
commit
fcc2ca6957
@ -32,6 +32,8 @@
|
||||
(require 'cl-lib)
|
||||
(require 'org-macs)
|
||||
|
||||
(declare-function org-link-set-parameters "org" (type &rest rest))
|
||||
|
||||
;; As of Emacs 25.1, `outline-mode' functions are under the 'outline-'
|
||||
;; prefix, `find-tag' is replaced with `xref-find-definition' and
|
||||
;; `x-get-selection' with `gui-get-selection'.
|
||||
@ -51,8 +53,6 @@
|
||||
(when (< emacs-major-version 25)
|
||||
(defalias 'gui-get-selection 'x-get-selection)))
|
||||
|
||||
(declare-function org-link-set-parameters "org" (type &rest rest))
|
||||
|
||||
|
||||
;;; Obsolete aliases (remove them once the next major release is released).
|
||||
|
||||
@ -226,7 +226,7 @@ See `org-link-parameters' for documentation on the other parameters."
|
||||
(org-link-set-parameters type :follow follow :export export)
|
||||
(message "Created %s link." type))
|
||||
|
||||
(make-obsolete 'org-add-link-type "org-link-add." "Org 9.0")
|
||||
(make-obsolete 'org-add-link-type "use `org-link-add' instead." "Org 9.0")
|
||||
|
||||
;;;; Obsolete link types
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user