projects
/
elisp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update.
[elisp.git]
/
text-counters.el
diff --git
a/text-counters.el
b/text-counters.el
index
4f08d68
..
e68e677
100644
(file)
--- a/
text-counters.el
+++ b/
text-counters.el
@@
-34,10
+34,10
@@
(defun tc/text-counters-string () (interactive)
(let ((a (save-excursion
(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
(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)
(match-beginning 0)))))
(when (and a b)