Questions tagged [counter]
7 questions
3
votes
2 answers
count-matches' result in kill-ring?
I'm trying to create a keyboard macro to generate a report which displays the number of times a certain string occurs.
I have two buffers,
with all the strings to look for(on a separate line)
the target buffer containing all the text to be…

dr jerry
- 321
- 1
- 7
3
votes
1 answer
alphabetic keyboard macro "counter"?
I very much {like, use} the kmacro-*-counter family of commands. However I sometimes find myself needing to generate alphabetic sequences (e.g., A, B, C, ...) instead of integer sequences (e.g., 1, 2, 3 ...). I can sorta see how to do this in 2…

TomRoche
- 592
- 3
- 20
2
votes
4 answers
How to count the number of characters in the marked (selected) region?
I know how to count the number of words.
How to count the number of characters in the marked (selected) region?

Pedro Delfino
- 1,369
- 3
- 13
2
votes
3 answers
Display word count in modeline without lag
Problem
Stopped using wc-mode as it is not snappy anymore (as text writing usually is) with text document of 10k words. It appears that it counts the whole buffer after every change which seems to make it slow as logged here. A recent change was…

Pandian Le
- 260
- 3
- 13
1
vote
2 answers
How to exclude whole headings and their contents from word counting
For certain articles, one does not need certain sections to be counted in the final word count. How to signal this in an Orgmode buffer? Perhaps there is a tag or similar feature to do this on the heading which I ignore.

Emmanuel Goldstein
- 934
- 6
- 18
1
vote
1 answer
Sorting counts in descending order
Have the following code that counts the number of times words are used. I want to list the results sorted by the number of counts.
(defun rk-word-analysis (reg-beg reg-end)
"Count times words are used in a region, ignoring punctuation."
…

Dilna
- 1,173
- 3
- 10
1
vote
1 answer
Counting opening and closing brace marks by specifying the mark
I have the following code to count the number of opening and closing
brackets in a selected region. How can I allow a user to select
the bracketing sign (,[,{ to count, and return two counts, one for the opening mark and another for the closing…

Dilna
- 1,173
- 3
- 10