unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: longlines-mode: font-lock fails (in outline-mode)
Date: Tue, 28 Jun 2005 14:46:44 -0400	[thread overview]
Message-ID: <E1DnL6a-0004td-HA@fencepost.gnu.org> (raw)
In-Reply-To: <F95FE268-D989-45BC-AFDB-3BA9FBB912ED@gmail.com> (message from David Reitter on Mon, 27 Jun 2005 18:11:21 +0100)

    Oh, substitute "longlines-mode" for "log".
    If the above description is not enough to reproduce, do this:

    M-x outline-mode
    M-x longlines-mode

    enter this:

    *** bla bla bla blu blu blu er er er yeah yeah yeah wow wow wow yup  
    yup yup see here it went black not so good

    Enter enough text for it to be wrapped around. The first line shown  
    is in purple color, the next line is black, as are the following  
    lines. Because it's still part of the headline, it should be purple  
    as well. outline-mode should look for the hard end of the line, not  
    the 'soft' or wrapped end.

Outline-mode specifies a regular expression which ends in `.+'.
There is no way in a regexp to specify only hard newlines.
But it is possible to call a function instead of using a regexp.
I think that makes it possible to do what you want.

Is there someone who understands font-lock better than I do
who could try to do this?

Another idea is to modify regexp matching so that `.' can match
a soft newline, when use of hard and soft newlines is enabled.
Since that would be done in parts of the code I understand,
I could implement it.  But what do people think of the idea?

       reply	other threads:[~2005-06-28 18:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <C89C5C51-0CD1-47B1-91DD-DD38749F14EF@gmail.com>
     [not found] ` <E1DmwkF-0005HF-OH@fencepost.gnu.org>
     [not found]   ` <F95FE268-D989-45BC-AFDB-3BA9FBB912ED@gmail.com>
2005-06-28 18:46     ` Richard M. Stallman [this message]
2005-06-29  2:36       ` longlines-mode: font-lock fails (in outline-mode) Chong Yidong
2005-06-29 23:38 David Reitter

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=E1DnL6a-0004td-HA@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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).