[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Counting SLOC in Emacs
From: |
Leo Liu |
Subject: |
Re: Counting SLOC in Emacs |
Date: |
Wed, 31 Dec 2014 22:50:27 +1100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (OS X 10.10.1) |
On 2014-12-31 01:05 +1100, Marcin Borkowski wrote:
> I finally had some time to look into the code. Could you tell me why
> this?
>
> (unless (looking-at-p "^\\s-*$")
It ignores blank lines as the doc-string says.
> (line 46 in sloc.el)? If I get it correctly, it ignores blank lines
> /ending in any number of hyphens/ (possibly zero). Why?
>
> Also, this
>
> (let ((beg (min beg end))
> (end (max beg end))
>
> is probably not necessary, or do I miss something?
Either I was being defensive or there were some cases that could have
end < beg.
HTH,
Leo