X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=text-counters.el;h=e68e67732db718e4d84dfc21d7df9c441ddd53d1;hb=HEAD;hp=4f08d682086150d379c25ceb8ddf4fc450254390;hpb=66c3aa1f8138fe17ec36919e5fbd48b45c79845c;p=elisp.git diff --git a/text-counters.el b/text-counters.el index 4f08d68..e68e677 100644 --- a/text-counters.el +++ b/text-counters.el @@ -34,10 +34,10 @@ (defun tc/text-counters-string () (interactive) (let ((a (save-excursion - (and (re-search-backward "^--.*--*$" nil t) + (and (re-search-backward "^[#% ]*--.*--*" nil t) (match-end 0)))) (b (save-excursion - (and (re-search-forward "^--.*--*$" nil t) + (and (re-search-forward "^[#% ]*--.*--*" nil t) (match-beginning 0))))) (when (and a b)