]> Pileus Git - ~andy/linux/blobdiff - Documentation/CodingStyle
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable
[~andy/linux] / Documentation / CodingStyle
index 7b5762eded2cca3a9c63e4dfb7394a37ea0b841a..72968cd5eaf3286f08cc6eb7dfb3115ff9c5ce90 100644 (file)
@@ -498,7 +498,8 @@ values.  To do the latter, you can stick the following in your .emacs file:
             (let ((filename (buffer-file-name)))
               ;; Enable kernel mode for the appropriate files
               (when (and filename
-                         (string-match "~/src/linux-trees" filename))
+                         (string-match (expand-file-name "~/src/linux-trees")
+                                       filename))
                 (setq indent-tabs-mode t)
                 (c-set-style "linux-tabs-only")))))