projects
/
elisp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6739afc
)
Update.
author
Francois Fleuret
<fleuret@koala.fleuret.org>
Sun, 6 Nov 2022 09:27:28 +0000
(10:27 +0100)
committer
Francois Fleuret
<fleuret@koala.fleuret.org>
Sun, 6 Nov 2022 09:27:28 +0000
(10:27 +0100)
text-counters.el
patch
|
blob
|
history
diff --git
a/text-counters.el
b/text-counters.el
index
6f2e65c
..
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)