unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Edward O'Connor <hober0@gmail.com>
Subject: Re: css-mode
Date: Fri, 13 Jan 2006 12:33:05 -0800	[thread overview]
Message-ID: <m23bjrdg1q.fsf@roisin.evdb.com> (raw)
In-Reply-To: 878xtkghxj.fsf-monnier+emacs@gnu.org

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

> 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
hober0@gmail.com

Ense petit placidam sub libertate quietem.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix defconsts in css-mode.el --]
[-- Type: text/x-patch, Size: 637 bytes --]

--- 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 "+"))
 

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2006-01-13 20:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-13 17:27 css-mode Stefan Monnier
2006-01-13 20:33 ` Edward O'Connor [this message]
2006-01-13 22:16   ` css-mode Stefan Monnier
2006-01-14 16:14 ` css-mode Richard M. Stallman
2006-01-15  1:09   ` css-mode Kenichi Handa
2006-01-15 13:34     ` css-mode Alex Schroeder
2006-01-17 11:39       ` css-mode Karl Chen
2006-01-18  9:20         ` including javascript/ecmascript mode (was: css-mode) Mathias Dahl
2006-01-18 12:35           ` including javascript/ecmascript mode Lennart Borgman
2006-01-18 15:43           ` Stefan Monnier
2006-01-18 17:05           ` Edward O'Connor
2006-01-25 23:52             ` Karl Chen
2006-01-22  0:44           ` Juri Linkov
2006-01-22  0:51           ` Desktop fails reading unknown mode (was: including javascript/ecmascript mode) Juri Linkov
2006-01-22 17:44             ` Richard M. Stallman
2006-01-21  2:55       ` css-mode Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m23bjrdg1q.fsf@roisin.evdb.com \
    --to=hober0@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).