Bug 67441 - Emacs enhancements for working on WebKit.
Summary: Emacs enhancements for working on WebKit.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Scott Byer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 14:57 PDT by Scott Byer
Modified: 2012-05-21 14:34 PDT (History)
9 users (show)

See Also:


Attachments
Patch (7.65 KB, patch)
2011-09-07 14:43 PDT, Scott Byer
no flags Details | Formatted Diff | Diff
Patch (10.64 KB, patch)
2011-12-15 11:23 PST, Scott Byer
no flags Details | Formatted Diff | Diff
Patch (10.70 KB, patch)
2011-12-15 13:47 PST, Scott Byer
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Byer 2011-09-01 14:57:52 PDT
Emacs enhancements for working on WebKit.
Comment 1 Scott Byer 2011-09-07 14:43:08 PDT
Created attachment 106641 [details]
Patch
Comment 2 Scott Byer 2011-12-15 11:23:50 PST
Created attachment 119470 [details]
Patch
Comment 3 Andy Wingo 2011-12-15 12:17:51 PST
I don't understand all of it, but in general LGTM.  (Note that I am not a reviewer.)

One note, if I M-x c-adaptive-wrap-mode to toggle off and then back on, I get an error:

  progn: Symbol's value as variable is void: whitespace-mode

Also, one message says "Perquisites" when it should probably say "Prerequisites".

But the no-indentation-in-namespaces thing alone is worth it :)
Comment 4 Scott Byer 2011-12-15 13:47:20 PST
Created attachment 119496 [details]
Patch
Comment 5 Eric Seidel (no email) 2011-12-19 10:46:06 PST
I'm not an emacs user, but I know a bunch of the Safari team are. I suspect some common emacs settings would be a welcome addition to the project. :)
Comment 6 Hayato Ito 2012-03-16 00:55:03 PDT
Comment on attachment 119496 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=119496&action=review

We don't have to have '.dir-local.el' at top-level since it forces every emacs users to use this settings.
I prefer 'opt-in' to 'opt-out'. I am afraid that some settings conflicts personal settings. Could you move this file to Tools/emacs as 'sample-dir-local.el'?
If we have top-level '.dir-local.el', it should contain only minimum settings which can be widely accepted and which never conflicts settings of every emacs users.

> Tools/emacs/webkit.el:1
> +; Copyright (c) 2011, Google Inc. All rights reserved.

It should be 2012.

> Tools/emacs/webkit.el:118
> +(defun c-mode-adaptive-indent (beg end)

You should use 'webkit-' prefix in all functions on this file.
We don't have elisp style guide for WebKit, but it might be better to follow general elisp's convention. 
At least, I don't want to eval this file since it might conflict my own functions.
Comment 7 Eric Seidel (no email) 2012-05-21 14:34:57 PDT
Comment on attachment 119496 [details]
Patch

rs=me.