projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0acbc6c
)
fix emacs indenting howto filename expansion
author
Dan Carpenter
<
[email protected]
>
Fri, 30 Jan 2009 00:28:28 +0000
(16:28 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 30 Jan 2009 02:19:29 +0000
(18:19 -0800)
I don't think emacs understands tilde expansion, so use
"expand-file-name" to do that.
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Randy Dunlap <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
Documentation/CodingStyle
patch
|
blob
|
history
diff --git
a/Documentation/CodingStyle
b/Documentation/CodingStyle
index 7b5762eded2cca3a9c63e4dfb7394a37ea0b841a..72968cd5eaf3286f08cc6eb7dfb3115ff9c5ce90 100644
(file)
--- 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")))))