summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ecay <aaronecay@gmail.com>2015-11-06 12:17:19 +0000
committerAaron Ecay <aaronecay@gmail.com>2015-11-06 12:50:41 +0000
commita6768538d645d45a8420d36bacc5ed879b001816 (patch)
tree0e64693c9a824867a81ed69a92a3fe49a0dad7a4
parent8b4672bdd011a2e7ea1cce4c5365274662e49717 (diff)
downloadorg-mode-a6768538d645d45a8420d36bacc5ed879b001816.tar.gz
org.el: mark `org-on-heading-p' obsolete.
* lisp/org.el (org-on-heading-p): Mark obsolete.
-rwxr-xr-xlisp/org.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el
index edcd32c..5d8880a 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -7816,7 +7816,7 @@ heading, unconditionally."
;; If we are splitting, grab the text that should be moved
;; to the new headline.
(when may-split
- (if (org-on-heading-p)
+ (if (org-at-heading-p)
;; This is a heading: split intelligently (keeping
;; tags).
(let ((pos (point)))
@@ -24135,8 +24135,10 @@ This version does not only check the character property, but also
(defun org-at-heading-p (&optional ignored)
(outline-on-heading-p t))
-;; Compatibility alias with Org versions < 7.8.03
-(defalias 'org-on-heading-p 'org-at-heading-p)
+;;; Though the function was obsoleted in 7.8.03, the byte-compiler
+;;; warning was only added in Org 9.0, which should be taken into
+;;; account when deciding when to remove the alias.
+(define-obsolete-function-alias 'org-on-heading-p 'org-at-heading-p "Org 7.8.03")
(defun org-in-commented-heading-p (&optional no-inheritance)
"Non-nil if point is under a commented heading.