[PATCH] Documentation/CodingStyle

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

 



Hi all,

I am new here, so feel free to tell me if I am wrong.

I am participating to Eulyptula challenge, and of course had a look on
Documentation/CodingStyle.

As I use GNU/Emacs (yes, I know, Evil Tool, according to Linus :-), I
took the lines in Chapter 9, which are supposed to switch to kernel
style if the source is in a given path.

I would like to do the following change, so that it works (both file
path and linux path would be expanded the same way):

diff -up linux/Documentation/CodingStyle{.orig,}
-----------------------------------------
--- linux/Documentation/CodingStyle.orig    2016-09-03 08:05:37.000000000 +0200
+++ linux/Documentation/CodingStyle    2016-09-03 08:09:00.000000000 +0200
@@ -524,7 +524,7 @@ values.  To do the latter, you can stick

 (add-hook 'c-mode-hook
           (lambda ()
-            (let ((filename (buffer-file-name)))
+            (let ((filename (expand-file-name (buffer-file-name))))
               ;; Enable kernel mode for the appropriate files
               (when (and filename
                          (string-match (expand-file-name "~/src/linux-trees")
-----------------------------------------

I have a question, however: Which git tree should I use for such
change ? Is there one relative to general documentation ?

Thx,

br.

-- 
2 + 2 = 5, for very large values of 2.
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux