mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-12-03 08:30:03 +00:00
Tiny refactoring
* lisp/org.el (org-at-property-p): Tiny refactoring. Improve docstring.
This commit is contained in:
parent
b11570c2f1
commit
f574744aee
@ -15363,10 +15363,11 @@ When INCREMENT is non-nil, set the property to the next allowed value."
|
||||
(message "%s is now %s" prop val)))
|
||||
|
||||
(defun org-at-property-p ()
|
||||
"Is cursor inside a property drawer?"
|
||||
(save-excursion
|
||||
(when (equal 'node-property (car (org-element-at-point)))
|
||||
(beginning-of-line 1)
|
||||
"Non-nil when point is inside a property drawer.
|
||||
See `org-property-re' for match data, if applicable."
|
||||
(when (eq (org-element-type (org-element-at-point)) 'node-property)
|
||||
(save-excursion
|
||||
(beginning-of-line)
|
||||
(looking-at org-property-re))))
|
||||
|
||||
(defun org-get-property-block (&optional beg end force)
|
||||
|
Loading…
Reference in New Issue
Block a user