forwarded 521604
http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1949
tags 521604 + fixed-upstream patch
severity 521604 normal
thanks
On 2009-03-28 22:36 +0100, Daniel Dickinson wrote:
> Package: emacs22-common
> Version: 22.2+2-5
> Severity: important
> File: css-mode
>
>
> On various css files css-mode hangs (100% CPU) when doing indentation
> operations on the certain locations in the file (or selecting all and doing
> indent-region)
For the record, you can bail out with C-g, so I don't think this bug
classifies as "important". It seems to be fixed in the Emacs trunk
already. The following patch, taken from the above upstream bug report,
should work:
--8<---------------cut here---------------start------------->8---
--- lisp\textmodes\css-mode.el.orig 2008-03-01 20:28:16.000000000 +0100
+++ lisp\textmodes\css-mode.el 2009-01-19 09:14:55.138125000 +0100
@@ -369,5 +369,5 @@
(forward-comment (- (point-max)))
;; FIXME: We should also skip punctuation.
- (not (memq (char-before) '(?\; ?\{)))))))))))
+ (not (or (bobp) (memq (char-before) '(?\;
?\{))))))))))))
(defun css-forward-sexp (n)
--8<---------------cut here---------------end--------------->8---
If you would like to try it, but don't want to download the whole
emacs22-el package, here's a URL which gives you the css-mode.el file:
http://cvs.savannah.gnu.org/viewvc/*checkout*/emacs/emacs/lisp/textmodes/css-mode.el?revision=1.1.2.7&pathrev=EMACS_22_2
Cheers,
Sven
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]