Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(95)

Issue 6460109: Use directory-local variables to establish some coding styles in Emacs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by dak
Modified:
11 years, 8 months ago
CC:
lilypond-devel_gnu.org
Base URL:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Visibility:
Public.

Description

Use directory-local variables to establish some coding styles in Emacs

Patch Set 1 #

Patch Set 2 : Remove blank lines at EOF #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
A .dir-locals.el View 1 1 chunk +11 lines, -0 lines 2 comments Download

Messages

Total messages: 9
Ian Hulin (gmail)
Do we need to add anything to the standard .gitignore for these? They're files in ...
11 years, 8 months ago (2012-08-19 12:12:36 UTC) #1
dak
On 2012/08/19 12:12:36, Ian Hulin (gmail) wrote: > Do we need to add anything to ...
11 years, 8 months ago (2012-08-19 12:37:38 UTC) #2
Graham Percival
Could you add a script (either shell or python) which applies this formatting to all ...
11 years, 8 months ago (2012-08-19 16:02:31 UTC) #3
Ian Hulin (gmail)
On 2012/08/19 12:37:38, dak wrote: > On 2012/08/19 12:12:36, Ian Hulin (gmail) wrote: > > ...
11 years, 8 months ago (2012-08-19 16:07:28 UTC) #4
dak
http://codereview.appspot.com/6460109/diff/3001/.dir-locals.el File .dir-locals.el (right): http://codereview.appspot.com/6460109/diff/3001/.dir-locals.el#newcode6 .dir-locals.el:6: (indent-tabs-mode)) On 2012/08/19 16:02:31, Graham Percival wrote: > Does ...
11 years, 8 months ago (2012-08-19 16:37:42 UTC) #5
dak
On 2012/08/19 16:07:28, Ian Hulin (gmail) wrote: > On 2012/08/19 12:37:38, dak wrote: > > ...
11 years, 8 months ago (2012-08-19 16:50:54 UTC) #6
Graham Percival
On Sun, Aug 19, 2012 at 04:50:54PM +0000, dak@gnu.org wrote: > On 2012/08/19 16:07:28, Ian ...
11 years, 8 months ago (2012-08-19 17:06:20 UTC) #7
Ian Hulin (gmail)
Hi David, I thought I'd been polite in framing my questions. Statements like "Huh?" and ...
11 years, 8 months ago (2012-08-19 17:19:54 UTC) #8
John Mandereau
11 years, 8 months ago (2012-08-19 20:06:15 UTC) #9
Il giorno dom, 19/08/2012 alle 16.02 +0000, graham@percival-music.ca ha
scritto:
> Could you add a script (either shell or python) which applies this
> formatting to all scheme files in the repository?  I'd like to see how
> that changes the scheme files.

You can try running (after having applied David's patch)

emacs -batch scm/*.scm --eval '(progn (delete-trailing-whitespace)
(indent-region (point-min) (point-max) nil) (save-buffer))'

On my system this has only changed x11-color.scm.

Note that this doesn't remove tabs (although I installed David's patch
that adds .dir-locals.el), as you can notice with

git add scm
emacs -batch *.scm --eval '(progn (delete-trailing-whitespace) (indent-region
(point-min) (point-max) nil) (untabify (point-min) (point-max)) (save-buffer))'
git diff

which further changes x11-color.scm.

I attached the result of

git diff HEAD scm


If you're fine with the above emacs call (the one with untabify of course) going
in
scripts/auxiliar/fixscm.sh, I'll submit a new patch to take over this
issue.

Best,
John
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b