skelrc: Change the fill-column semantics.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 15 Sep 2017 10:03:25 +0000 (11:03 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 15 Sep 2017 10:03:25 +0000 (11:03 +0100)
Now the stated column excludes the width of the prefix string, so
licence rubrics look the same regardless of a project's comment
convention.  Reduce the default width a bit to compensate.

skelrc

diff --git a/skelrc b/skelrc
index c3bc16e..00b4412 100644 (file)
--- a/skelrc
+++ b/skelrc
@@ -106,7 +106,7 @@ the PREFIX is removed."
                                       (regexp-quote expanded-prefix))
                                      "[ \t\f]*$"))
             (paragraph-separate paragraph-start)
-            (fill-column col))
+            (fill-column (+ col (length expanded-prefix))))
 
        (insert (skelrc-prefix-lines expanded-prefix expanded-text))
 
@@ -196,7 +196,7 @@ option) any later version."))
         (licence-banner . (skelrc-banner "Licensing notice" t))
         (component . (skelrc-component))
         (licence-text . "[[gpl]]")
-        (fill-column . "72")
+        (fill-column . "70")
         (Short-name . (or (skelrc-assq 'Library skel-alist)
                           (skelrc-assq 'library skel-alist)
                           (skelrc-assq 'Program skel-alist)