unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: drew.adams@oracle.com, emacs-devel@gnu.org
Subject: Re: why does occur depropertize matching lines?
Date: Sun, 05 Dec 2004 18:43:02 +0200	[thread overview]
Message-ID: <874qj04rxm.fsf@jurta.org> (raw)
In-Reply-To: <E1CXnFi-0003QA-Nf@fencepost.gnu.org> (Richard Stallman's message of "Fri, 26 Nov 2004 16:03:38 -0500")

Richard Stallman <rms@gnu.org> writes:
>     Inverting the meaning of the `keep-props' argument for context lines is
>     too unnatural thing to do.  It's more natural to expect that users
>     might want to highlight either everything (matching and context lines)
>     or nothing.
>
> I think users will like the behavior that results from the changes I
> wrote.  I like it, and it seems natural to me.  Why wouldn't other
> people like it?

One of the reasons why people wouldn't like it, is the fact that
when the source buffer is not yet completely fontified by background
fontification, some lines copied to the Occur buffer are not fontified.
Such party fontified Occur buffer looks too ugly.  Perhaps, the right
thing to do is to call (font-lock-fontify-region (point-min) (point-max))
on the source buffer from `occur-engine' before it starts to copy
source lines to the Occur buffer?

There is another problem which arises when all font properties are
copied to the Occur buffer: matches fontified in `list-matching-lines-face'
(which is `bold' by default) don't stand out as clearly as they were
when the Occur buffer had no fontified lines at all.

It seems there is a need in a new face to display matching strings.
Such a face could be used also in other packages: to highlight matches
in *grep* buffer and apropos documentation.

A good choice for properties of such face is still unclear.
One variant is to use bold red (like grep --color uses with ANSI
sequences).  However, bold red is too loud color, it is used mostly
for error messages.  Another variant is to set some background color
like in `highlight', `isearch-lazy-highlight-face', `region' or
`secondary-selection'.

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2004-12-05 16:43 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-05 23:45 why does occur depropertize matching lines? Drew Adams
2004-11-19 16:02 ` Drew Adams
2004-11-21  1:10   ` Richard Stallman
2004-11-21  1:51     ` Drew Adams
2004-11-21  3:22       ` Juri Linkov
2004-11-25  2:19         ` Richard Stallman
2004-11-25  7:27           ` Juri Linkov
2004-11-26 21:03             ` Richard Stallman
2004-12-05 16:43               ` Juri Linkov [this message]
2004-12-06  1:40                 ` Richard Stallman
2004-12-06 20:10                   ` Juri Linkov
2004-12-06 20:33                     ` Stefan Monnier
2004-12-06 21:40                       ` Juri Linkov
2004-12-08  4:39                         ` Richard Stallman
2004-12-08 19:06                           ` Drew Adams
2004-12-08 19:44                             ` Josh Varner
2004-12-08 20:08                               ` Drew Adams
2004-12-09  4:42                                 ` Richard Stallman
2004-12-08  4:59                         ` Stefan Monnier
2004-12-08  4:39                     ` Richard Stallman

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=874qj04rxm.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=drew.adams@oracle.com \
    --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).