From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Context-sensitive word count in org mode (elisp) Date: Wed, 16 Feb 2011 11:14:11 +0100 Message-ID: <87d3mss2vg.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=48561 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ppk4p-0004pT-5C for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 11:18:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ppk4o-0004ao-8G for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 11:18:03 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:40117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ppk4n-0004af-Tu for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 11:18:02 -0500 Received: by eyh6 with SMTP id 6so822755eyh.0 for ; Wed, 16 Feb 2011 08:18:00 -0800 (PST) In-Reply-To: (Paul Sexton's message of "Wed, 16 Feb 2011 03:51:23 +0000 (UTC)") 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: Paul Sexton Cc: emacs-orgmode@gnu.org 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 this function is called with a region highlighted, it counts the words in > the region. Otherwise it counts words in the whole buffer. Looks useful, thanks! I'll let this discussion grow a bit until we have something we can perhaps include in Org. Also, counting words from Emacs is a frequent request from users. If your solution for Org could be integrated into a more general solution for Emacs (working on various modes), that would be a win. See: http://stray-notes.blogspot.com/2009/12/emacs-word-count.html http://www.sultanik.com/Word_count_in_Emacs .. and other pointers. -- Bastien