From 9e3fd593e8a293ca9e65e84d08636f832cb2845c Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Sun, 18 Jan 2009 22:32:20 +0000 Subject: [PATCH] * textmodes/css-mode.el (css-backward-sexp): Stop once it reaches the beginning of the buffer. (Bug#1949) --- lisp/ChangeLog | 5 +++++ lisp/textmodes/css-mode.el | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1ad284b5441..a1cb1ccc80a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-01-18 Juanma Barranquero + + * textmodes/css-mode.el (css-backward-sexp): Stop once it reaches + the beginning of the buffer. (Bug#1949) + 2009-01-18 Markus Triska * linum.el (linum-update-window): Use `delq' instead of `delete'; diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index fdc9349639a..70dc3ca5706 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -92,7 +92,7 @@ ;; vice-versa). (t nil))) elems)) - + (defun css-extract-props-and-vals () (with-temp-buffer @@ -108,7 +108,7 @@ (progn (re-search-forward "[ \t\n]+|[ \t\n]+inherit") (match-beginning 0))))) - ;; + ;; (push (cons prop (css-extract-parse-val-grammar vals-string props)) props))))) props))) @@ -313,7 +313,7 @@ (fill-paragraph justify) ;; Don't try filling again. t))) - + ((and (null (nth 8 ppss)) (or (nth 1 ppss) (and (ignore-errors @@ -373,7 +373,7 @@ (save-excursion (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) (let ((forward-sexp-function nil)) @@ -457,7 +457,7 @@ (if (looking-at "\\s(") (css-indent-calculate) (css-indent-calculate-virtual)))))))))) - + (defun css-indent-line () "Indent current line according to CSS indentation rules." -- 2.39.2