]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Limit fill-column to 79
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 20 Jul 2021 10:06:01 +0000 (11:06 +0100)
committerRichard Earnshaw <rearnsha@arm.com>
Tue, 20 Jul 2021 10:14:18 +0000 (11:14 +0100)
The current line-length limit is set to 80, but that allows a
character to appear in the 80th column, and that causes emacs to
display a line-wrap followed by a blank line when the display/window
width is 80 columns.  Furthermore, this seems to contradict the
coding-style rules on the wiki which suggest that the line limit
should be 79.

So reduce the line width in both the emacs control file and the
contrib vimrc file to 79 characters.

ChangeLog:

* .dir-locals.el (c-mode): Change fill-column to 79.

contrib/ChangeLog:

* vimrc (textwidth): Change non-gitcommit length to 79.

.dir-locals.el
contrib/vimrc

index 44a0db682417a040e18131abc3d7e1d4bcd5f709..b07a0dc50d8a440d5b51ef00953a44de42bfe328 100644 (file)
@@ -20,4 +20,4 @@
  (nil . ((bug-reference-url-format . "http://gcc.gnu.org/PR%s")))
  (c-mode . ((c-file-style . "GNU")
            (indent-tabs-mode . t)
-           (fill-column . 80))))
+           (fill-column . 79))))
index 356d455b059cd5737eebeda8a7ab0e0a119898bf..b7a8ab7360c377e380948d22a3b313be51b5a083 100644 (file)
@@ -42,7 +42,7 @@ function! SetStyle()
   if &filetype == "gitcommit"
     setlocal textwidth=72
   else
-    setlocal textwidth=80
+    setlocal textwidth=79
   endif
   setlocal formatoptions-=ro formatoptions+=cqlt
   if index(l:c_exts, l:ext) != -1 || &filetype == "c" || &filetype == "cpp"