Re: updated emacs configuration - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: updated emacs configuration
Date
Msg-id m2ehbp2r2c.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: updated emacs configuration  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: updated emacs configuration
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
>>     emacs -q src/backend/commands/extension.c
>>     emacs -q -l ../emacs.samples src/backend/commands/extension.c
>
> Well, the first one uses 8-space tabs, the second 4-space tabs, so they
> look completely different.  I'm not sure what you are trying to point
> out.

With the .dir-locals.el in place, the first one should be using 4-space
tabs too, right?

>>   - Name the lambda used in the hook for easier removing / reference
>
> Interesting, I had never thought of that.  I don't see that used in
> Emacs source code or core packages, however.  Do you have a reference
> that this is recommended practice?

Well a friend of mine pointed that out to me one day, and he's an Emacs
and Gnus commiter. The thing is that you're not guaranteed that the same
lambda source code will evaluate to the same object each time, and that
would prevent you to remove-hook.

> $ git clone git://git.postgresql.org/git/postgresql.git
> Cloning into 'postgresql'...

I can reproduce that here. I don't know why I have those postgres dirs
then, and I'm pretty confused about my round of testing now.

-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



pgsql-hackers by date:

Previous
From: Atri Sharma
Date:
Subject: Re: Kudos for Reviewers -- straw poll
Next
From: Andrew Gierth
Date:
Subject: Re: FILTER for aggregates [was Re: Department of Redundancy Department: makeNode(FuncCall) division]