mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-26 07:33:39 +00:00
Fix predicate comment string
Ref. (info "(elisp) Documentation Tips") * lisp/org.el (org-at-comment-p, org-at-drawer-p) (org-at-block-p): Fix documentation.
This commit is contained in:
parent
1fd07c1eeb
commit
6175593530
@ -20511,20 +20511,20 @@ unless optional argument NO-INHERITANCE is non-nil."
|
||||
(save-excursion (and (org-up-heading-safe) (org-in-commented-heading-p))))))
|
||||
|
||||
(defun org-at-comment-p nil
|
||||
"Is cursor in a commented line?"
|
||||
"Return t if cursor is in a commented line."
|
||||
(save-excursion
|
||||
(save-match-data
|
||||
(beginning-of-line)
|
||||
(looking-at "^[ \t]*# "))))
|
||||
|
||||
(defun org-at-drawer-p nil
|
||||
"Is cursor at a drawer keyword?"
|
||||
"Return t if cursor is at a drawer keyword."
|
||||
(save-excursion
|
||||
(move-beginning-of-line 1)
|
||||
(looking-at org-drawer-regexp)))
|
||||
|
||||
(defun org-at-block-p nil
|
||||
"Is cursor at a block keyword?"
|
||||
"Return t if cursor is at a block keyword."
|
||||
(save-excursion
|
||||
(move-beginning-of-line 1)
|
||||
(looking-at org-block-regexp)))
|
||||
|
Loading…
Reference in New Issue
Block a user