From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#10633: Please mark invalid "; !important;" in CSS Date: Sun, 29 Jan 2012 02:37:52 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1327801155 2606 80.91.229.3 (29 Jan 2012 01:39:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2012 01:39:15 +0000 (UTC) Cc: 10633@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 29 02:39:14 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RrJjX-0003wM-S4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Jan 2012 02:39:07 +0100 Original-Received: from localhost ([::1]:50523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrJjW-0001aT-VF for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jan 2012 20:39:06 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:45401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrJjU-0001aO-Uu for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2012 20:39:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RrJjS-0005uO-Io for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2012 20:39:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrJjS-0005uK-HL for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2012 20:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RrJjT-0006AL-2s for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2012 20:39:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Jan 2012 01:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10633 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10633-submit@debbugs.gnu.org id=B10633.132780112523678 (code B ref 10633); Sun, 29 Jan 2012 01:39:02 +0000 Original-Received: (at 10633) by debbugs.gnu.org; 29 Jan 2012 01:38:45 +0000 Original-Received: from localhost ([127.0.0.1]:42665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RrJj9-00069q-Qd for submit@debbugs.gnu.org; Sat, 28 Jan 2012 20:38:45 -0500 Original-Received: from mail-pw0-f44.google.com ([209.85.160.44]:45992) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RrJj4-00069b-VB for 10633@debbugs.gnu.org; Sat, 28 Jan 2012 20:38:40 -0500 Original-Received: by pbdu7 with SMTP id u7so2178189pbd.3 for <10633@debbugs.gnu.org>; Sat, 28 Jan 2012 17:38:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=UfwQGtf4RDkWd544SajOUcSun1eitSIvViQtxBEI6QU=; b=sJNpQE8uuEXOHSv3Z2iwS9PEWYaLcRlKFO2X92sPLGxiQu9PPOIxgx7cAbzxYWxpSI 3evEC4xOYSzjzSc1sENPSqZROywpAJ60cannQqNee/Wc0H7bCHpPNoxarxaWYL/RxqKP lUEp6cej6yRNbPbACV08+Ww5n52M4xurTAr/Q= Original-Received: by 10.68.226.137 with SMTP id rs9mr27635421pbc.94.1327801112151; Sat, 28 Jan 2012 17:38:32 -0800 (PST) Original-Received: by 10.143.37.9 with HTTP; Sat, 28 Jan 2012 17:37:52 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56162 Archived-At: On Sun, Jan 29, 2012 at 02:19, Lennart Borgman wrote: > 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! Add what? The regexp? No, it's not supported (other than how you're doing it) but it is not required either. The file patterns method is more flexible (you can have multiple regexps, and they don't have to be the same for every file), and easy to set up C-x C-f yourfile.css M-s h r ; +!important C-x w b C-x C-s which you have to repeat in each .css file, but you can copy&paste, or use a template for new .css, and you can set up other regexps to warn you of other common pitfalls, etc. And in your .emacs: (add-hook 'css-mode-hook 'hi-lock-mode) (setq hi-lock-file-patterns-policy t) ;; or the function I described before, or the default `ask'... Your choice. But hey, whatever works for you. =C2=A0 =C2=A0 Juanma