Re: updated emacs configuration - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: updated emacs configuration
Date
Msg-id 20140130042106.GG2851@momjian.us
Whole thread Raw
In response to Re: updated emacs configuration  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: updated emacs configuration  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Wed, Jan 29, 2014 at 07:31:29PM -0500, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > I have cleaned up entab.c so I am ready to add a new option that removes
> > tabs from only comments.  Would you like me to create that and provide a
> > diff at a URL?  It would have to be run against all back branches.
>
> If you think you can actually tell the difference reliably in entab,
> sure, give it a go.

OK, I have modified entab.c in a private patch to only process text
inside comments, and not process leading whitespace, patch attached.  I
basically ran 'entab -o -t4 -d' on the C files.

The result are here, in context, plain, and unified format:

    http://momjian.us/expire/entab_comment.cdiff
    http://momjian.us/expire/entab_comment.pdiff
    http://momjian.us/expire/entab_comment.udiff

and their line counts:

    89741 entab_comment.cdiff
    26351 entab_comment.pdiff
    50503 entab_comment.udiff

I compute 6627 lines as modified.  What I did not do is handle _only_
cases with periods before the tabs.  Should I try that?

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +

Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: FOREIGN KEY ... CONCURRENTLY
Next
From: KONDO Mitsumasa
Date:
Subject: Re: Add min and max execute statement time in pg_stat_statement