From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.bugs Subject: Re: C-comments in sgml-mode's html-mode Date: Tue, 24 Jul 2007 16:51:10 +0200 Message-ID: <46A611DE.8080501@gmail.com> References: <46A1DEB4.8080501@gmx.at> <46A49E9F.1090806@gmx.at> <46A4F65C.2070403@gmx.at> <46A5F814.2000701@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1185288686 15875 80.91.229.12 (24 Jul 2007 14:51:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Jul 2007 14:51:26 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: eddy@opera.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 24 16:51:23 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IDLjP-0002yh-9q for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jul 2007 16:51:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDLjO-00076n-S2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jul 2007 10:51:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IDLjL-00075G-OX for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2007 10:51:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IDLjL-000754-Cg for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2007 10:51:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDLjL-000751-47 for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2007 10:51:19 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IDLjK-0007s3-EY for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2007 10:51:18 -0400 Original-Received: from c83-254-133-189.bredband.comhem.se ([83.254.133.189]:60677 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1IDLjH-0005sA-7w; Tue, 24 Jul 2007 16:51:16 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070716 Thunderbird/2.0.0.5 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 000759-1, 2007-07-24), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.133.189 X-Scan-Result: No virus found in message 1IDLjH-0005sA-7w. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1IDLjH-0005sA-7w bfef6106c17e9aff68871c5eb88e44c7 X-detected-kernel: Linux 2.6? (barebone, rare!) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16223 Archived-At: Edward Welbourne wrote: >> In your case someone has set up the syntax of / and * much as a >> css-mode would do. What does C-h f css-mode say on your system? > > > > css-mode is an interactive compiled Lisp function in `css-mode.el'. > (css-mode) > > Major mode for editing CSS style sheets. > key binding > --- ------- > > C-c Prefix Command > ESC Prefix Command > " cssm-insert-quotes > ( cssm-insert-parenthesises > [ cssm-insert-brackets > { cssm-insert-curlies > } cssm-insert-right-brace-and-indent > > M-TAB cssm-complete-property > > C-c C-c cssm-insert-comment > C-c C-u cssm-insert-url > > If you put point in the help buffer at `css-mode.el' and press RET it will open the file css-mode.el. Could you please look at the beginning of that file and show us what it says (version, author etc)? If you in this file do C-h v buffer-file-name RET you can see where that file is located. > and I don't believe I've used it directly ('though I may have > looked at a .css file at some point, which would cause it to load > automagically). However, when I open up comment.html in a fresh clean > emacs -Q, it doesn't believe in css-mode at all. I just get a bell > (and [No match] in minibuffer) when I try C-h f css-mode RET. No > script in my usual .emacs (a minimal .emacs which adds an entry to > load-path and loads a bunch of little fragments from a directory of > mine) mentions css-mode. > > In an emacs -q session, it knows it would autoload css-mode if asked > for: loading a css file, I now find I am able to reproduce the bug in > a new session :-) > > So, steps to reproduce: in an emacs -q session evaluate > (autoload 'html-mode "sgml-mode" "Edit HTML docs" t) > (setq auto-mode-alist (cons (cons "\\.x?html?$" 'html-mode) auto-mode-alist)) > , visit a .css file (it need not exist / can be empty), > open a .html file containing: > > Test page for HTML-mode /* comment issue

Test page for HTML-mode /* comment issue

>
> > It would appear that css-mode is hacking html-mode ! This does not happen for me when starting with emacs -q. Nor does it happen for you with -Q. Using -q site-start.el is run, but it is not run when using -Q. Can you please do M-x find-library RET site-start RET and show us the file?