mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dan Carpenter <error27@gmail.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: Dan Carpenter <error27@gmail.com>,
	linux-kernel@vger.kernel.org, hannes@saeurebad.de
Subject: Re: emacs indenting howto
Date: Wed, 21 Jan 2009 11:49:29 +0300 (EAT)	[thread overview]
Message-ID: <alpine.DEB.2.00.0901211145370.4514@bikeee> (raw)
In-Reply-To: <87fxjddys0.fsf@basil.nowhere.org>

On Wed, 21 Jan 2009, Andi Kleen wrote:
> Dan Carpenter <error27@gmail.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@gmail.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

  reply	other threads:[~2009-01-21  8:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-19 12:56 Dan Carpenter
2009-01-21  5:16 ` Andi Kleen
2009-01-21  8:49   ` Dan Carpenter [this message]
2009-01-21  9:28     ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.00.0901211145370.4514@bikeee \
    --to=error27@gmail.com \
    --cc=andi@firstfloor.org \
    --cc=hannes@saeurebad.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®