diff options
author | Aaron Ecay <aaronecay@gmail.com> | 2016-09-26 15:23:18 +0100 |
---|---|---|
committer | Aaron Ecay <aaronecay@gmail.com> | 2016-09-26 16:56:19 +0100 |
commit | 092acf7e679114da0b5e8c73e74c902665d419d4 (patch) | |
tree | 8f7b852feda3d1301098bab34a551745a7ffbe9c | |
parent | 7b930dd2017ef337ceb5d304ef69a5740a1ac65e (diff) | |
download | org-mode-092acf7e679114da0b5e8c73e74c902665d419d4.tar.gz |
org.el: obsolete org-in-fixed-width-region-p
* lisp/org.el (org-in-fixed-width-region-p): Make obsolete.
It has no calls in core or contrib, and its function would be better
served by using the parser.
-rw-r--r-- | lisp/org-compat.el | 2 | ||||
-rw-r--r-- | lisp/org.el | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 89c6798..fc1b0f1 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -187,6 +187,8 @@ Counting starts at 1." (define-obsolete-variable-alias 'org-html-style 'org-html-head "24.4") (define-obsolete-function-alias 'org-insert-columns-dblock 'org-columns-insert-dblock "Org 9.0") +(make-obsolete 'org-in-fixed-width-region-p "the `org-element' library" + "Org 9.0") (defcustom org-read-date-minibuffer-setup-hook nil "Hook to be used to set up keys for the date/time interface. diff --git a/lisp/org.el b/lisp/org.el index a207637..69e18ad 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -20960,7 +20960,9 @@ See the individual commands for more information." (org-paste-subtree arg))) (defsubst org-in-fixed-width-region-p () - "Is point in a fixed-width region?" + "OBSOLETE + +Is point in a fixed-width region?" (save-match-data (eq 'fixed-width (org-element-type (org-element-at-point))))) |