GNU bug report logs - #10633
Please mark invalid "; !important;" in CSS

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Sat, 28 Jan 2012 22:03:02 UTC

Severity: wishlist

Tags: wontfix

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 10633 <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 10633 <at> debbugs.gnu.org
Subject: Re: bug#10633: Please mark invalid "; !important;" in CSS
Date: Sun, 29 Jan 2012 02:19:50 +0100
On Sun, Jan 29, 2012 at 01:34, Juanma Barranquero <lekktu <at> gmail.com> wrote:
> On Sun, Jan 29, 2012 at 01:10, Lennart Borgman
> <lennart.borgman <at> gmail.com> wrote:
>
>> Here is a way to do it:
>>
>> - In isearch-forward-regexp do M-s-h-r to hilight the pattern.
>> - Then use hi-lock-write-interactive-patterns to write it down in the
>> buffer for the moment (so you do not have to think about it...;-)
>> - Now to css-mode-hook add something like this (hi-lock-face-buffer ";
>> +!important;" 'hi-my-face)
>>
>> In my .emacs I added:
>>
>> (add-hook 'css-mode-hook 'my-hilock-css-important-errors)
>> (defun my-hilock-css-important-errors()
>>  (hi-lock-face-buffer "; +!important;" 'hi-my-magenta))
>
> So you're reimplementing what the file patterns of hi-lock-mode are
> already designed to do. Congratulations ;-)

Did I miss something? I can't see that I can directly add it to
css-mode-hook. Please tell me how to do it!




This bug report was last modified 12 years and 224 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.