all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Question about font-lock-compile-keywords
Date: Tue, 12 Sep 2006 08:36:21 -0700	[thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMAEEMCLAA.drew.adams@oracle.com> (raw)
In-Reply-To: <E1GNAB9-00034n-T7@fencepost.gnu.org>

        font-lock-compile-keywords added an optional arg for Emacs
        22. It looks, from a quick glance, as if a non-nil value
        for that arg gives behavior similar to what the function
        did in Emacs 21 and 20.

        Wouldn't it be better for the optional arg to be
        complemented, so that a value of nil gave (more or less)
        the pre-22 behavior? Wouldn't that make things easier for
        third-party libraries that call font-lock-compile-keywords
        (with no second arg)?

    That seems like a good idea in principle, but which behavior do real
    third-party libraries which use font-lock-compile-keywords actually
    want?  (Are there really any?)

I don't have any concrete info to help, here. I just thought it seemed a bit
backwards. More typically, optional args are added in such a way that the
nil value is more or less compatible with the previous version, without the
new arg (when feasible).

FWIW, this came up as I was trying to use, in Emacs 20, some Emacs 22 code
that called font-lock-remove-keywords. I first tried simply adding a
definition of that function, but things soon got more complex. It was in
exploring this that I discovered the new, backward-seeming arg to
font-lock-compile-keywords.

  reply	other threads:[~2006-09-12 15:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-12  0:04 Question about font-lock-compile-keywords Drew Adams
2006-09-12 15:28 ` Richard Stallman
2006-09-12 15:36   ` Drew Adams [this message]
2006-09-13 15:09     ` Richard Stallman
2006-09-13 15:36       ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EIENLHALHGIMHGDOLMIMAEEMCLAA.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.