WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
15863
Emacs local variables for ChangeLogs
https://bugs.webkit.org/show_bug.cgi?id=15863
Summary
Emacs local variables for ChangeLogs
Rodney Dawes
Reported
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.
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
View All
Add attachment
proposed patch, testcase, etc.
Rodney Dawes
Comment 1
2007-11-06 16:28:09 PST
Created
attachment 17066
[details]
Patch to insert Local Variables into ChangeLogs
Mark Rowe (bdash)
Comment 2
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.
Rodney Dawes
Comment 3
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.
Rodney Dawes
Comment 4
2007-11-06 16:47:04 PST
Created
attachment 17070
[details]
Updated patch without extraneous config.h change
David Kilzer (:ddkilzer)
Comment 5
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?).
Alexey Proskuryakov
Comment 6
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.
Rodney Dawes
Comment 7
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?
Alexey Proskuryakov
Comment 8
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?
Alexey Proskuryakov
Comment 9
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.
Martin Robinson
Comment 10
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
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug