[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.0901211145370.4514@bikeee>
Date: Wed, 21 Jan 2009 11:49:29 +0300 (EAT)
From: Dan Carpenter <error27@...il.com>
To: Andi Kleen <andi@...stfloor.org>
cc: Dan Carpenter <error27@...il.com>, linux-kernel@...r.kernel.org,
hannes@...urebad.de
Subject: Re: emacs indenting howto
On Wed, 21 Jan 2009, Andi Kleen wrote:
> Dan Carpenter <error27@...il.com> 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@...il.com>
--- 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@...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