From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.help Subject: Re: Counting SLOC in Emacs Date: Wed, 03 Dec 2014 09:14:34 +0800 Message-ID: <87a9354jr9.fsf@gmail.com> References: <877fyfk1qn.fsf@wmi.amu.edu.pl> <8761dzjvcl.fsf@wmi.amu.edu.pl> <874mtjjt31.fsf@wmi.amu.edu.pl> <874mterueo.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417569316 17359 80.91.229.3 (3 Dec 2014 01:15:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2014 01:15:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 03 02:15:10 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XvyX6-0007O1-Rf for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Dec 2014 02:15:08 +0100 Original-Received: from localhost ([::1]:39397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvyX6-0003ft-DL for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Dec 2014 20:15:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvyWp-0003fa-JS for help-gnu-emacs@gnu.org; Tue, 02 Dec 2014 20:14:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvyWj-0003tI-O4 for help-gnu-emacs@gnu.org; Tue, 02 Dec 2014 20:14:51 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:37216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvyWj-0003tE-HS for help-gnu-emacs@gnu.org; Tue, 02 Dec 2014 20:14:45 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XvyWi-0007Ef-34 for help-gnu-emacs@gnu.org; Wed, 03 Dec 2014 02:14:44 +0100 Original-Received: from 221.222.148.174 ([221.222.148.174]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Dec 2014 02:14:44 +0100 Original-Received: from sdl.web by 221.222.148.174 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Dec 2014 02:14:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 221.222.148.174 Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (CentOS Linux 7 (Core)) Cancel-Lock: sha1:68zref0sRRCgoG0EAbmTmqa1UUI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101383 Archived-At: On 2014-12-02 09:35 -0500, Ted Zlatanov wrote: > This is useful. > > Could we have this added to `count-lines-region' with an optional > parameter, or provided by `prog-mode' specifically? It even merits a > modeline indicator that users can enable, I think. > > Ted I had such need last year but only used it a few days and then totally forgotten (never needed again). The code is still here https://github.com/leoliu/sloc.el/blob/master/sloc.el Leo