html-helper-mode overwrites 'css-mode-hook'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
html-helper-mode (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package: html-helper-mode
Distribution: 14.04 Trusty
I'm using emacs24 and edit html and css files using 'html-helper-mode' and 'css-mode', respectively.
I customize 'css-mode' by adding some codes to 'css-mode-hook'. This works well when I open a css file solely in emacs, but the customized options for 'css-mode' are wiped out when I open a html file first and then a css file.
I find that 'css-mode-hook' is overwrited when 'html-helper-mode' is launched. The 2425th--2430th lines of 'html-helper-
(condition-case nil
(cond
- ((or (boundp css-mode-hook) css-mode-hook)
+ ((or (boundp 'css-mode-hook) css-mode-hook)
(add-hook 'css-mode-hook 'html-script-
(t (setq css-mode-hook 'html-script-
(error (setq css-mode-hook 'html-script-
After the modification above, 'css-mode-hook' works well so far.
The attachment "html-helper- mode-overwrite- css-mode- hook.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]