mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-16 17:19:49 +00:00
Fix false positives in `org-in-verbatim-emphasis'
* lisp/org.el (org-in-verbatim-emphasis): Fix false positive when point is just after the closing emphasis marker.
This commit is contained in:
parent
b5460d5722
commit
f26547e320
@ -20733,7 +20733,10 @@ With prefix arg UNCOMPILED, load the uncompiled versions."
|
||||
|
||||
(defun org-in-verbatim-emphasis ()
|
||||
(save-match-data
|
||||
(and (org-in-regexp org-emph-re 2) (member (match-string 3) '("=" "~")))))
|
||||
(and (org-in-regexp org-emph-re 2)
|
||||
(>= (point) (match-beginning 3))
|
||||
(<= (point) (match-end 4))
|
||||
(member (match-string 3) '("=" "~")))))
|
||||
|
||||
(defun org-goto-marker-or-bmk (marker &optional bookmark)
|
||||
"Go to MARKER, widen if necessary. When marker is not live, try BOOKMARK."
|
||||
|
Loading…
Reference in New Issue
Block a user