Re: emacs indenting howto

From: Dan Carpenter
Date: Wed Jan 21 2009 - 03:51:46 EST


On Wed, 21 Jan 2009, Andi Kleen wrote:
Dan Carpenter <error27@xxxxxxxxx> writes:

I don't think emacs understands tilda expansion. It didn't work for me.

It does when you use expand-file-name

-Andi

No problem. Here is the updated patch.

regards,
dan carpenter

Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>

--- orig/Documentation/CodingStyle 2009-01-21 11:06:56.000000000 +0300
+++ devel/Documentation/CodingStyle 2009-01-21 11:01:35.000000000 +0300
@@ -488,7 +488,8 @@
(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")
(c-set-offset 'arglist-cont-nonempty
--
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/