[PATCH 3/3 for mainline] docs: fix emacs indenting howto filenameexpansion

From: Randy Dunlap
Date: Mon Jan 26 2009 - 16:04:03 EST


From: Dan Carpenter <error27@xxxxxxxxx>
Subject: 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@xxxxxxxxx>
Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---

---
Documentation/CodingStyle | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-next-20090126.orig/Documentation/CodingStyle
+++ linux-next-20090126/Documentation/CodingStyle
@@ -498,7 +498,8 @@ values. To do the latter, you can stick
(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")))))

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/