From fe92075e94be52ddb5b1e9b5c6e2f5fcc44c5d59 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Fri, 21 Sep 2012 12:49:23 +0200 Subject: [PATCH] Issue 2853: Set up indent-tabs-mode for Emacs in lexer.ll and parser.yy 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 | 2 +- lily/parser.yy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lily/lexer.ll b/lily/lexer.ll index 0d3f7599d8..1caf8a5ee6 100644 --- a/lily/lexer.ll +++ b/lily/lexer.ll @@ -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. diff --git a/lily/parser.yy b/lily/parser.yy index 079573648e..19c0d90624 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -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. -- 2.39.5