lkml.org 
[lkml]   [2008]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -mm] documentation: update CodingStyle tips for Emacs users
On Fri, 04 Jul 2008 19:52:16 +0200
Johannes Weiner <hannes@saeurebad.de> wrote:

> +(add-hook 'c-mode-hook
> + (lambda ()
> + (let ((filename (buffer-file-name)))
> + ;; Enable kernel mode for the appropriate files
> + (when (and file
> + (string-match "/usr/src/linux" filename))

Shouldn't that be "(and filename ..." rather than "file"?

A test for /usr/src/linux seems misplaced, though; I don't think a
whole lot of people keep their kernel trees there anymore. There must
be a better heuristic one can use to figure out whether a kernel source
file is being edited.

jon


\
 
 \ /
  Last update: 2008-07-04 21:45    [W:0.076 / U:1.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site