[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20090126130332.1dd2a967.randy.dunlap@oracle.com>
Date:	Mon, 26 Jan 2009 13:03:32 -0800
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	lkml <linux-kernel@...r.kernel.org>
Cc:	Dan Carpenter <error27@...il.com>
Subject: [PATCH 3/3 for mainline] docs: 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
 
