[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 02/09: Update editor aids in some C++ source files.
From: |
G. Branden Robinson |
Subject: |
[groff] 02/09: Update editor aids in some C++ source files. |
Date: |
Thu, 8 Oct 2020 07:54:36 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit ea0ab33dd4f7eeede7fe83fcb6016abdaf4bb86c
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Oct 2 18:04:20 2020 +1000
Update editor aids in some C++ source files.
Assist Vim as well as Emacs, and set fill-column/textwidth to 72, like
other groff source files. Use Vim settings that work well with GNU
indentation style.
Drop short-form Emacs Local Variable setting.
---
src/preproc/tbl/table.cpp | 2 +-
src/roff/troff/div.cpp | 7 ++++++-
src/roff/troff/node.cpp | 7 ++++++-
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/preproc/tbl/table.cpp b/src/preproc/tbl/table.cpp
index 482192c..108e198 100644
--- a/src/preproc/tbl/table.cpp
+++ b/src/preproc/tbl/table.cpp
@@ -3024,4 +3024,4 @@ void printfs(const char *s, const string &arg1, const
string &arg2,
// fill-column: 72
// mode: C++
// End:
-// vim: set autoindent textwidth=72:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:
diff --git a/src/roff/troff/div.cpp b/src/roff/troff/div.cpp
index 2bb0dc4..33dccc8 100644
--- a/src/roff/troff/div.cpp
+++ b/src/roff/troff/div.cpp
@@ -1,4 +1,3 @@
-// -*- C++ -*-
/* Copyright (C) 1989-2018 Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
@@ -1199,3 +1198,9 @@ void init_div_requests()
number_reg_dictionary.define("nl", new nl_reg);
number_reg_dictionary.define("%", new page_number_reg);
}
+
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 37260bd..b2a9982 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -1,4 +1,3 @@
-// -*- C++ -*-
/* Copyright (C) 1989-2018 Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
@@ -6538,3 +6537,9 @@ void init_node_requests()
number_reg_dictionary.define(".P", new printing_reg);
soft_hyphen_char = get_charinfo(HYPHEN_SYMBOL);
}
+
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 02/09: Update editor aids in some C++ source files.,
G. Branden Robinson <=