[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20090129162828.0292ab00.randy.dunlap@oracle.com>
Date: Thu, 29 Jan 2009 16:28:28 -0800
From: Randy Dunlap <randy.dunlap@...cle.com>
To: lkml <linux-kernel@...r.kernel.org>
Cc: torvalds <torvalds@...ux-foundation.org>,
Dan Carpenter <error27@...il.com>
Subject: [PATCH 3/4] Documentation: fix emacs indenting howto filename
expansion
From: Dan Carpenter <error27@...il.com>
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@...il.com>
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
---
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists