summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ecay <aaronecay@gmail.com>2015-11-05 17:07:55 +0000
committerAaron Ecay <aaronecay@gmail.com>2015-11-06 12:47:04 +0000
commit48096562bab81023b5e14a211fcf36264fef398f (patch)
treef32c36ffe5f0a8d6bd55be72b4433440b5dafa74
parent89b05fe7f7236ad8589f12cfe6a9a04e350577a0 (diff)
downloadorg-mode-48096562bab81023b5e14a211fcf36264fef398f.tar.gz
Make `org-table-p' obsolete.
* lisp/org.el: Make `org-table-p' obsolete. Change all callers.
-rwxr-xr-xlisp/org.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/org.el b/lisp/org.el
index dfaad81..fccbefc 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4502,7 +4502,7 @@ If `org-enable-table-editor' is nil, return nil unconditionally."
(or (not (derived-mode-p 'org-mode))
(let ((e (org-element-lineage (org-element-at-point) '(table) t)))
(and e (or table-type (eq (org-element-property :type e) 'org)))))))
-(defsubst org-table-p () (org-at-table-p))
+(define-obsolete-function-alias 'org-table-p 'org-at-table-p "Org 9.0")
(defun org-at-table.el-p ()
"Non-nil when point is at a table.el table."
@@ -20160,7 +20160,7 @@ overwritten, and the table is not marked as requiring realignment."
(t (let (org-use-speed-commands)
(call-interactively 'org-self-insert-command)))))
((and
- (org-table-p)
+ (org-at-table-p)
(progn
;; Check if we blank the field, and if that triggers align.
(and (featurep 'org-table) org-table-auto-blank-field
@@ -20258,7 +20258,7 @@ because, in this case the deletion might narrow the column."
(interactive "p")
(save-match-data
(org-check-before-invisible-edit 'delete-backward)
- (if (and (org-table-p)
+ (if (and (org-at-table-p)
(eq N 1)
(string-match "|" (buffer-substring (point-at-bol) (point)))
(looking-at ".*?|"))
@@ -20286,7 +20286,7 @@ because, in this case the deletion might narrow the column."
(interactive "p")
(save-match-data
(org-check-before-invisible-edit 'delete)
- (if (and (org-table-p)
+ (if (and (org-at-table-p)
(not (bolp))
(not (= (char-after) ?|))
(eq N 1))