unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Harald Maier <maierh@myself.com>
Subject: Re: Font Lock Problems
Date: Thu, 23 Oct 2003 07:18:05 +0200	[thread overview]
Message-ID: <m3vfqgfs6q.fsf@ate.maierh> (raw)
In-Reply-To: jwv8yne7ero.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca

Stefan Monnier <monnier@iro.umontreal.ca> 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

  parent reply	other threads:[~2003-10-23  5:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-21 15:31 Font Lock Problems Phillip Lord
2003-10-21 16:11 ` Stefan Monnier
2003-10-21 17:08   ` Phillip Lord
2003-10-21 20:03     ` Stefan Monnier
2003-10-22 13:44       ` Phillip Lord
2003-10-22 14:10         ` Stefan Monnier
2003-10-22 15:09           ` Phillip Lord
2003-10-23 15:49       ` Phillip Lord
2003-10-23  5:18   ` Harald Maier [this message]
2003-10-23 14:21     ` Stefan Monnier
2003-10-23 15:53       ` Harald Maier

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=m3vfqgfs6q.fsf@ate.maierh \
    --to=maierh@myself.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.
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).