lisp/org.el (org-in-src-block-p): Improve docstring
* lisp/org.el (org-in-src-block-p): Reported-by: No Wayman <iarchivedmywholelife@gmail.com> Link: https://orgmode.org/list/87il5n9owq.fsf@gmail.com
This commit is contained in:
parent
4b1154e32d
commit
bd7fab2129
10
lisp/org.el
10
lisp/org.el
|
@ -18786,9 +18786,13 @@ With prefix arg UNCOMPILED, load the uncompiled versions."
|
|||
s)
|
||||
|
||||
(defun org-in-src-block-p (&optional inside element)
|
||||
"Whether point is in a code source block.
|
||||
When INSIDE is non-nil, don't consider we are within a source
|
||||
block when point is at #+BEGIN_SRC or #+END_SRC.
|
||||
"Return t when point is at a source block element.
|
||||
When INSIDE is non-nil, return t only when point is between #+BEGIN_SRC
|
||||
and #+END_SRC lines.
|
||||
|
||||
Note that affiliated keywords and blank lines after are considered a
|
||||
part of a source block.
|
||||
|
||||
When ELEMENT is provided, it is considered to be element at point."
|
||||
(save-match-data (setq element (or element (org-element-at-point))))
|
||||
(when (org-element-type-p element 'src-block)
|
||||
|
|
Loading…
Reference in New Issue