groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 02/10: Update editor aids.


From: G. Branden Robinson
Subject: [groff] 02/10: Update editor aids.
Date: Fri, 16 Oct 2020 10:59:42 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 0c254d9d5841f2739a615b0cbfe8c76ca6452c01
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Oct 16 22:41:38 2020 +1100

    Update editor aids.
    
    src/preproc/eqn/main.cpp:
    src/preproc/pic/main.cpp:
    src/preproc/tbl/main.cpp:
    src/roff/troff/input.cpp: Update editor aids.
    
    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/roff/troff/input.cpp: Wrap a clump of overlong source lines.
---
 src/preproc/eqn/main.cpp |  7 ++++++-
 src/preproc/pic/main.cpp |  6 +++++-
 src/preproc/tbl/main.cpp |  6 +++++-
 src/roff/troff/input.cpp | 14 ++++++++++----
 4 files changed, 26 insertions(+), 7 deletions(-)

diff --git a/src/preproc/eqn/main.cpp b/src/preproc/eqn/main.cpp
index e3ed28a..3bbb00a 100644
--- a/src/preproc/eqn/main.cpp
+++ b/src/preproc/eqn/main.cpp
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* Copyright (C) 1989-2018 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
@@ -423,3 +422,9 @@ int main(int argc, char **argv)
     fatal("output error");
   return 0;
 }
+
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:
diff --git a/src/preproc/pic/main.cpp b/src/preproc/pic/main.cpp
index 08c7fa5..fabed31 100644
--- a/src/preproc/pic/main.cpp
+++ b/src/preproc/pic/main.cpp
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* Copyright (C) 1989-2018 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
@@ -650,3 +649,8 @@ int main(int argc, char **argv)
   return had_parse_error;
 }
 
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:
diff --git a/src/preproc/tbl/main.cpp b/src/preproc/tbl/main.cpp
index cb86a40..2c2eaa1 100644
--- a/src/preproc/tbl/main.cpp
+++ b/src/preproc/tbl/main.cpp
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* Copyright (C) 1989-2018 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
@@ -1635,3 +1634,8 @@ int main(int argc, char **argv)
   return 0;
 }
 
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 7d3b230..7d0b90b 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* Copyright (C) 1989-2019 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
@@ -8969,9 +8968,10 @@ charinfo *get_charinfo_by_number(int n)
 }
 
 // This overrides the same function from libgroff; while reading font
-// definition files it puts single-letter glyph names into 'charset_table'
-// and converts glyph names of the form '\x' ('x' a single letter) into 'x'.
-// Consequently, symbol("x") refers to glyph name '\x', not 'x'.
+// definition files it puts single-letter glyph names into
+// 'charset_table' and converts glyph names of the form '\x' ('x' a
+// single letter) into 'x'.  Consequently, symbol("x") refers to glyph
+// name '\x', not 'x'.
 
 glyph *name_to_glyph(const char *nm)
 {
@@ -8995,3 +8995,9 @@ const char *glyph_to_name(glyph *g)
   charinfo *ci = (charinfo *)g; // Every glyph is actually a charinfo.
   return (ci->nm != UNNAMED_SYMBOL ? ci->nm.contents() : NULL);
 }
+
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]