Public bug reported:
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-mode.el' set up 'css-
mode-hook'. I think these lines should be modified as below:
(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-release-setup))
(t (setq css-mode-hook 'html-script-release-setup)))
(error (setq css-mode-hook 'html-script-release-setup)))
After the modification above, 'css-mode-hook' works well so far.
** Affects: html-helper-mode (Ubuntu)
Importance: Undecided
Status: New
** Patch added: "html-helper-mode-overwrite-css-mode-hook.patch"
https://bugs.launchpad.net/bugs/1389048/+attachment/4252467/+files/html-helper-mode-overwrite-css-mode-hook.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1389048
Title:
html-helper-mode overwrites 'css-mode-hook'
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/html-helper-mode/+bug/1389048/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs