branch: elpa/markdown-mode commit f298e652920bd6330d9816d621394af18229588a Author: Tony Zorman <soliditsallg...@mailbox.org> Commit: Tony Zorman <soliditsallg...@mailbox.org>
Push mark before jumping to footnote When inserting a small footnote, it is often very convenient to jump back to the main text with C-u C-SPC instead of using `markdown-footnote-return'. However, this can only be done if `markdown-insert-footnote' pushes to the mark ring before jumping, so do that. --- markdown-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/markdown-mode.el b/markdown-mode.el index 4af2fd568f..4bb1a57dcb 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -4665,6 +4665,7 @@ element. More details here https://developer.mozilla.org/en-US/docs/Web/HTML/Ele (interactive) (let ((fn (markdown-footnote-counter-inc))) (insert (format "[^%d]" fn)) + (push-mark (point) t) (markdown-footnote-text-find-new-location) (markdown-ensure-blank-line-before) (unless (markdown-cur-line-blank-p)