Bug 15863 - Emacs local variables for ChangeLogs
Summary: Emacs local variables for ChangeLogs
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-06 16:27 PST by Rodney Dawes
Modified: 2021-02-09 09:08 PST (History)
5 users (show)

See Also:


Attachments
Patch to insert Local Variables into ChangeLogs (5.02 KB, patch)
2007-11-06 16:28 PST, Rodney Dawes
mrowe: review-
Details | Formatted Diff | Diff
Updated patch without extraneous config.h change (4.63 KB, patch)
2007-11-06 16:47 PST, Rodney Dawes
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rodney Dawes 2007-11-06 16:27:31 PST
To help adhere to the style guidelines with regards to spaces vs. tabs in ChangeLogs, the attached patch adds a Local Variables clause at the bottom of each ChangeLog, so that Emacs will automatically convert tabs to spaces. It would be great to get this in, so that developers using Emacs don't have to worry about converting all the time.
Comment 1 Rodney Dawes 2007-11-06 16:28:09 PST
Created attachment 17066 [details]
Patch to insert Local Variables into ChangeLogs
Comment 2 Mark Rowe (bdash) 2007-11-06 16:32:27 PST
Comment on attachment 17066 [details]
Patch to insert Local Variables into ChangeLogs

There are a bunch of problems with doing this.  It's editor-specific, it will break as soon as the ChangeLogs are rolled over, and it includes an unrelated change to config.h.  We don't include these sorts of editor metadata anywhere else in the source tree either, so I'm not sure that ChangeLogs are special in this regard.
Comment 3 Rodney Dawes 2007-11-06 16:44:21 PST
D'oh. I thought I cropped that config.h change out. The ChangeLogs aren't special in this regard. There are a lot more source files, than there are ChangeLogs, and I don't have a patch for all the source files ready yet. :) I believe vim also supports the Local Variables section, and it does support modelines in source files.
Comment 4 Rodney Dawes 2007-11-06 16:47:04 PST
Created attachment 17070 [details]
Updated patch without extraneous config.h change
Comment 5 David Kilzer (:ddkilzer) 2007-11-06 23:23:01 PST
(In reply to comment #2)
> [...]  We don't include these sorts of editor metadata anywhere
> else in the source tree either, so I'm not sure that ChangeLogs are special in
> this regard.

I've seen this kind of metadata removed from source files in the past.

Perhaps we should state the policy for editor metadata on the web site (with the coding standards?).

Comment 6 Alexey Proskuryakov 2007-11-07 12:57:12 PST
When this was discussed in the past, someone suggested that both Emacs and vi had alternative ways to specify these defaults (with per-directory files IIRC). That would certainly be a nicer solution than uglifying all text files with variables for each editor.
Comment 7 Rodney Dawes 2007-11-08 12:04:12 PST
(In reply to comment #6)
> When this was discussed in the past, someone suggested that both Emacs and vi
> had alternative ways to specify these defaults (with per-directory files IIRC).
> That would certainly be a nicer solution than uglifying all text files with
> variables for each editor.

Do you know what those alternate methods are, or where they are documented?
Comment 8 Alexey Proskuryakov 2007-11-08 12:42:09 PST
A Google search suggests that vim reads per-directory .vimrc files. I couldn't quickly find information about Emacs, but it cannot be less configurable than vim, can it?
Comment 9 Alexey Proskuryakov 2010-06-11 16:38:48 PDT
Ideally, we should mention a way to make this work with Emacs in this bug to finally close it.
Comment 10 Martin Robinson 2021-02-09 09:08:06 PST
Looks like this can be done with Emacs Per-Directory Local Variables feature: https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html