[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-comments in sgml-mode's html-mode
From: |
martin rudalics |
Subject: |
Re: C-comments in sgml-mode's html-mode |
Date: |
Wed, 25 Jul 2007 09:59:06 +0200 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
>>Apparently, Zaitseff's modifications are too persistent but I can't tell
>>anything because I don't have the sources.
>
>
> Source follows,
Thanks. Basically, the problem is here
(defun css-mode()
...
; Setting up syntax table
(modify-syntax-entry ?* ". 23")
(modify-syntax-entry ?/ ". 14")
...
This will modify the syntax-table of the current buffer, which can be
any syntax table. You can, for example, in *scratch* do M-x css-mode
and you will get C-like comments in all your Elisp buffers. Weird.
Maybe this stuff works in a mmm-like environment where a buffer may have
multiple major modes. As it stands, the code above is highly dangerous
and should be either fixed (by making a new syntax table) or removed.
In any case it was useful to do these investigations. Thank you for the
collaboration.
- Re: C-comments in sgml-mode's html-mode, (continued)
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/23
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/23
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/23
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, Lennart Borgman (gmail), 2007/07/24
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/24
- Re: C-comments in sgml-mode's html-mode,
martin rudalics <=
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, Lennart Borgman (gmail), 2007/07/24
- Re: C-comments in sgml-mode's html-mode, Dan Nicolaescu, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/25
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/25
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/24