]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 2853: Set up indent-tabs-mode for Emacs in lexer.ll and parser.yy
authorDavid Kastrup <dak@gnu.org>
Fri, 21 Sep 2012 10:49:23 +0000 (12:49 +0200)
committerDavid Kastrup <dak@gnu.org>
Wed, 26 Sep 2012 08:44:05 +0000 (10:44 +0200)
indent-tabs-mode has been switched off for C++ files generally via
directory-local variables when editing with Emacs.

However, for lack of working better indentation modes that cooperate
well with Bison and Flex files, lexer.ll and parser.yy are using a
tab-based indentation style oriented on the Linux kernel indentation
style.  In order to not cause an even greater inconsistent mess, local
file variables are used for switching tab-based indentation back on in
those files when editing them with Emacs.

lily/lexer.ll
lily/parser.yy

index 0d3f7599d899a09aab95f6800960c4e790ae6535..1caf8a5ee6f5fd8184d8ece280aaf8f5b024d04b 100644 (file)
@@ -1,4 +1,4 @@
-%{ // -*- mode: c++; c-file-style: "linux" -*-
+%{ // -*- mode: c++; c-file-style: "linux"; indent-tabs-mode: t -*-
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
index 079573648e3c93d251e64760706e137d4819dd45..19c0d90624c52eaa0bcb0083df5ded045eabf2f5 100644 (file)
@@ -1,4 +1,4 @@
-/* -*- mode: c++; c-file-style: "linux" -*- */
+/* -*- mode: c++; c-file-style: "linux"; indent-tabs-mode: t -*- */
 /*
   This file is part of LilyPond, the GNU music typesetter.