emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: css-mode


From: Edward O'Connor
Subject: Re: css-mode
Date: Fri, 13 Jan 2006 12:33:05 -0800
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (darwin)

> I wish Emacs came builtin with a mode to edit CSS style files.

Indeed!

> There are several floating around the net and I have my own (see
> below).

I had two issues trying to use your css-mode.el:

1. looks like the `css-nmchar-re' and `css-nmstart-re' definitions are
   messed up (patch attached).

2. `prog-mode' in not defined in my Emacs. Where does it come from?

> I don't really care which one is installed, but I just hope one of
> them makes it into Emacs-22.

Seconded.

-- 
Edward O'Connor
address@hidden

Ense petit placidam sub libertate quietem.

--- css-mode.el.orig    2006-01-13 12:30:22.000000000 -0800
+++ css-mode.el 2006-01-13 12:25:00.000000000 -0800
@@ -132,8 +132,8 @@
 
 (defconst css-escapes-re
   "\\\\\\(?:[^\000-\037\177]\\|[0-9a-fA-F]+[ \n\t\r\f]?\\)")
-(defconst css-nmchar-re "\\(?:[-[:alnum:]]\\|" css-escapes-re "\\)")
-(defconst css-nmstart-re "\\(?:[[:alpha:]]\\|" css-escapes-re "\\)")
+(defconst css-nmchar-re (concat "\\(?:[-[:alnum:]]\\|" css-escapes-re "\\)"))
+(defconst css-nmstart-re (concat "\\(?:[[:alpha:]]\\|" css-escapes-re "\\)"))
 (defconst css-ident-re (concat css-nmstart-re css-nmchar-re "*"))
 (defconst css-name-re (concat css-nmchar-re "+"))
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]