diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-06-26 10:29:27 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-06-26 10:29:27 +0200 |
commit | 1891dd481689536580cf32e4faa9d003a0b11746 (patch) | |
tree | cf64ab01e9208ad246504c3f1e103cee1efd3280 | |
parent | 994e9ebf0bdccccd77369f52bb326c3371894c0c (diff) | |
download | org-mode-1891dd481689536580cf32e4faa9d003a0b11746.tar.gz |
org-compat: Tiny refactoring
* lisp/org-compat.el (org-re): Use `obsolete' in `declare'.
-rw-r--r-- | lisp/org-compat.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 9d4aa94..61661c8 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -52,7 +52,7 @@ (defalias 'gui-get-selection 'x-get-selection))) -;;; Obsolete aliases +;;; Obsolete aliases (remove them the next major release). (define-obsolete-function-alias 'org-activate-mark 'activate-mark) @@ -73,11 +73,10 @@ (define-obsolete-function-alias 'org-select-frame-set-input-focus 'select-frame-set-input-focus "Org 9.0") (defmacro org-re (s) - "Replace posix classes in regular expression." - (declare (debug (form))) + "Replace posix classes in regular expression S." + (declare (debug (form)) + (obsolete "you can safely remove it." "Org 9.0")) s) -(make-obsolete 'org-re "It is now a no-op. You can safely remove it." - "Org 9.0") ;;;; Functions from cl-lib that Org used to have its own implementation of. (define-obsolete-function-alias 'org-count 'cl-count "Org 9.0") |