I am enjoying this discussion. Some ideas:
1) ignore :noexport and anything else that prevents export (ideally
including whether the user has set certain todo kw to prevent export,
although that is not currently a feature in org, so would be too
complicated now)
2) handle word counts just lik
Hi Paul,
Paul Sexton writes:
> I am trying to reduce the word count in a document I am writing. The
> existing word count functionality for emacs is surprisingly lacking.
> I wanted a word count function for org mode which excluded tables and
> comments, and ended up writing one myself.
>
> If
On Wed, Feb 16, 2011 at 03:51:23AM +, Paul Sexton wrote:
> Improvements welcome.
one remark about your naming convertions:
(info "(elisp) Coding Conventions")
especially the second point. in short, you shouldn't use names such as
"in-comment-p" or "latex-macro-regexp" for global variables a
Forgot to add the code.
#+begin_src emacs-lisp
;; Adapted from code posted by Paul Sexton <2011-02-16 Wed 4:51am>
;; - Everything now contained in one function
;; - Will count correct number of words inside Latex macro
(defun org-word-count (beg end)
(interactive "r")
(unless mark-ac
Hi,
This would be really neat to have as a part of org-mode eventually.
Another itch scratched.
You can probably replace your custom predicate functions with the
existing org-at-table-p and org-in-commented-line (works for me).
Maybe there's something to replace the latex-macro-regexp too.