summaryrefslogtreecommitdiffstats
path: root/Documentation/CodingStyle
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2009-01-29 16:28:28 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-29 18:19:29 -0800
commit70221395ba980392ba98c1d78f6c9f77be03df9e (patch)
tree10d587fe9b70ac7b830bb6c0e05040ed9b8db62e /Documentation/CodingStyle
parent0acbc6c651911dc9ffb4f59b34306bc1ccb751e5 (diff)
downloadlinux-70221395ba980392ba98c1d78f6c9f77be03df9e.tar.gz
linux-70221395ba980392ba98c1d78f6c9f77be03df9e.tar.bz2
linux-70221395ba980392ba98c1d78f6c9f77be03df9e.zip
fix emacs indenting howto filename expansion
I don't think emacs understands tilde expansion, so use "expand-file-name" to do that. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/CodingStyle')
-rw-r--r--Documentation/CodingStyle3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
index 7b5762eded2c..72968cd5eaf3 100644
--- a/Documentation/CodingStyle
+++ b/Documentation/CodingStyle
@@ -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")))))