Open kuranari opened 7 months ago
📝 Research Findings
When evaluating the following, it no longer moves to the previous line (not a fundamental solution).
(setq global-disable-point-adjustment t)
https://www.gnu.org/software/emacs/manual/html_node/elisp/Adjusting-Point.html
When
markdown-hide-markup
is enabled, invokingmove-beginning-of-line
(C-a
) on a header line incorrectly moves the cursor to the previous line.Headings do not use the
invisible
property. However, this appears to be an intentional choice. https://github.com/jrblevin/markdown-mode/issues/130#issuecomment-307441856Expected Behavior
Actual Behavior
Steps to Reproduce
/tmp/emacs/.emacs
:(package-initialize) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (package-install 'markdown-mode)
(setq markdown-hide-markup t)
HOME=/tmp/emacs emacs -Q --load /tmp/emacs/.emacs /tmp/emacs/sample.md
C-a
(move-beginning-of-line
)Screenshot
https://github.com/jrblevin/markdown-mode/assets/2577343/e1975b87-9ed9-4d5a-83d3-cd621737a13e
Software Versions