From: David Kastrup Date: Fri, 21 Sep 2012 10:49:23 +0000 (+0200) Subject: Issue 2853: Set up indent-tabs-mode for Emacs in lexer.ll and parser.yy X-Git-Tag: release/2.17.4-1~30 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fe92075e94be52ddb5b1e9b5c6e2f5fcc44c5d59;p=lilypond.git 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. --- 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.