From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harald Maier Newsgroups: gmane.emacs.help Subject: Re: Font Lock Problems Date: Thu, 23 Oct 2003 07:18:05 +0200 Organization: 1&1 Internet AG Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: Harald Maier NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066887357 2624 80.91.224.253 (23 Oct 2003 05:35:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2003 05:35:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 23 07:35:55 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACY8Y-0004bT-00 for ; Thu, 23 Oct 2003 07:35:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACY6R-0000Qb-M1 for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Oct 2003 01:33:43 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: p5088e3c1.dip0.t-ipconnect.de Original-X-Trace: online.de 1066886286 8656 80.136.227.193 (23 Oct 2003 05:18:06 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Thu, 23 Oct 2003 05:18:06 +0000 (UTC) User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:ndPu3yCY/HPxPaaZtxGzqyE95ps= Original-Xref: shelby.stanford.edu gnu.emacs.help:117549 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13481 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13481 Stefan Monnier writes: >> (font-lock-add-keywords >> 'language-speak-mode >> '(("#.*" 0 font-lock-comment-face))) > > Better setup the syntax-table properly to mark # as a comment-startand > \n as comment-end. Should I here for explicitly change the syntax table or is it enough to set the 'comment-start' and 'comment-end' variables? Or should I not confuse the variable 'comment-start' and the 'comment-start sequence' syntax table entries. If this is so for what purposes do I need the variable 'comment-start' and 'comment-end'. Do I need 'comment-start' and 'comment-end' maybe for fill-paragraph. In my special case I am not able to use fill paragraph inside a comment. What should I use to get this to work. Or with other words: I want that inside a comment line the fill-paragraph function wraps the line and prefixes the new lines with the same comment characters as the original line. Harald