I find some markdown markup can break Emacs' sentence commands. The sentence commands (e.g., forward-sentence
on M-e
) account for closing delimiters at the end of a sentence like parenthesis. In these examples (assuming using two spaces after sentences) M-e
will move to the start of each sentence:
Sentence one. Sentence two. Sentence three.
(Sentence four.) "Sentence five." Sentence six.
But these don't work, M-e
will skip over the end of some sentences:
*Sentence one.* **Sentence two.** Sentence three.
_Sentence four._ Sentence five. Sentence six.
I'd like M-e
to stop at the end of each of those sentences. If it does then the other sentence commands should work too.
I believe the solution is in the option sentence-end-base
which is where the delimiters skipped are listed. I think adding * and _ to the second grouping solves it. So "[.?!…‽][]"'”’)}*_]*". You may need to change that to support other similar markup like ~.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4