I've made the following command:
(defun search-backward-lowercase-alphabet ()
(interactive)
(search-backward-regexp "[a-z]"))
But when I run it at the end of a line like the following:
abcDEF
It just selects the last letter F
, when I actually want to select the c
. It doesn't distinguish between uppercase and lowercase at all. How can I fix this?
case-fold-search
should benil
.isearch
andhelm
might bindcase-fold-search
at some points.case-fold-search
nil and end it with setting it 1, if I ever made sure that it actually affectsisearch
andhelm
?