forked from mirrors/org-mode
Revert "org-footnote: Fix location after moving to definition"
This reverts commit 8500501984
.
This commit is contained in:
parent
ee4dbaff60
commit
cbb7be9c25
|
@ -544,7 +544,7 @@ value if point was successfully moved."
|
|||
(user-error "Definition is outside narrowed part of buffer")))
|
||||
(org-mark-ring-push)
|
||||
(goto-char def-start)
|
||||
(looking-at (format "\\[fn:%s[]:] ?" (regexp-quote label)))
|
||||
(looking-at (format "\\[fn:%s[]:]" (regexp-quote label)))
|
||||
(goto-char (match-end 0))
|
||||
(org-show-context 'link-search)
|
||||
(when (derived-mode-p 'org-mode)
|
||||
|
|
|
@ -231,7 +231,7 @@
|
|||
;; anonymous footnotes.
|
||||
(should
|
||||
(equal
|
||||
"Definition."
|
||||
" Definition."
|
||||
(org-test-with-temp-text "Some text\n[fn:1] Definition."
|
||||
(org-footnote-goto-definition "1")
|
||||
(buffer-substring (point) (point-max)))))
|
||||
|
|
Loading…
Reference in New Issue