unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: definition lines in Info - 1) link, 2) highlight
Date: Tue, 15 Aug 2006 07:57:46 -0700	[thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMMEIICKAA.drew.adams@oracle.com> (raw)
In-Reply-To: <E1GCot3-00049A-84@fencepost.gnu.org>

        > I think it could be a lot simpler.  Just add a loop to
        > Info-fontify-node which would search for that regexp and
        > apply some faces to the parts that match.

        Introducing new faces is never simple.

    It doesn't need to use new faces.  Surely there is some existing
    font lock face that would be usable.

Faces are like global variables - user options. You wouldn't think of
"reusing" some user option that happened to have a default value of t or nil
or 100 that you were after, instead of defining a new user option that had
the same default value - because customizing one might not be appropriate
for the uses of the other. The same is true of faces.

People can, for instance, use a different background for special-display
buffers such as *Info*, and a face that is appropriate for
non-special-display buffers might not then be appropriate for *Info*. Even
an existing Info face might not be appropriate here, depending on how users
might have customized it.

How about waiting until after the release for this, and doing it right,
creating separate faces for this feature?

The other, related suggestion here was more important, and would wait until
after the release anyway (if implemented): link to the source code and
display the current value (for a variable).

BTW, I'm curious - why is introducing new faces not simple? Is it because of
trying to get the default value right for different types of display and
different background values? Perhaps there are some guidelines that might
apply here? I don't know; I'm just curious what the difficulty is.

As I say, better to do it right, after the release, than to do a hurried job
poorly now. But, if you do want to do it now, it might be better to define
new faces that might not have great default values for all contexts than it
would be to reuse existing faces. If you define new faces, even bad ones,
users can at least customize them independently. And users will provide
feedback to help you tweak the default values so they work well in all
contexts.

  reply	other threads:[~2006-08-15 14:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-11 15:16 definition lines in Info - 1) link, 2) highlight Drew Adams
2006-08-11 19:24 ` Richard Stallman
2006-08-12 11:42   ` Eli Zaretskii
2006-08-12 17:33     ` Drew Adams
2006-08-12 21:58       ` Eli Zaretskii
2006-08-13 13:53         ` Richard Stallman
2006-08-13 14:10           ` Drew Adams
2006-08-13 18:48           ` Eli Zaretskii
2006-08-15  2:42             ` Richard Stallman
2006-08-15 14:57               ` Drew Adams [this message]
2006-08-15 19:29                 ` Eli Zaretskii
2006-08-15 20:05                   ` Drew Adams
2006-08-15 21:01                 ` David Kastrup
2006-08-15 21:56                   ` Drew Adams
2006-08-15 22:49                     ` Chong Yidong
2006-08-15 23:24                       ` Drew Adams
2006-08-16  6:33                 ` Richard Stallman
2006-08-13 17:33   ` Drew Adams

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=EIENLHALHGIMHGDOLMIMMEIICKAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.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.
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).