From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Context-sensitive word count in org mode (elisp) Date: Thu, 17 Feb 2011 11:57:54 -0700 Message-ID: <87mxluebf1.fsf@gmail.com> References: <4D5B9CA8.5070100@christianmoe.com> <4D5CF245.4070503@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=53954 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq93D-0003Vy-3j for emacs-orgmode@gnu.org; Thu, 17 Feb 2011 13:58:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pq93B-0007IK-S8 for emacs-orgmode@gnu.org; Thu, 17 Feb 2011 13:58:03 -0500 Received: from mail-px0-f169.google.com ([209.85.212.169]:57135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pq93B-0007I3-Nk for emacs-orgmode@gnu.org; Thu, 17 Feb 2011 13:58:01 -0500 Received: by pxi12 with SMTP id 12so478412pxi.0 for ; Thu, 17 Feb 2011 10:58:00 -0800 (PST) In-Reply-To: <4D5CF245.4070503@christianmoe.com> (Christian Moe's message of "Thu, 17 Feb 2011 11:02:45 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: emacs-orgmode@gnu.org, Paul Sexton Christian Moe writes: > Hi, > >> I don't agree with changing '(match-end 0)' to '(match-beginning 2)' >> however. For most latex macros, I don't want to count the words inside >> the macro's arguments. > > Maybe you're right. I rarely use latex, so I can't think of a use case > off the top of my head. Default no, optional yes sounds good. > I find the following handy for word-count of latex documents... #+begin_src sh :var basename=(file-name-sans-extension (buffer-file-name)) pdftotext $basename.pdf - |wc -w #+end_src