all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [elpa] master 19862ff: Use font-lock-fontify-region instead of jit-lock-fontify-now
Date: Sun, 07 Feb 2016 12:56:24 +0200	[thread overview]
Message-ID: <87zivckcvb.fsf@iki.fi> (raw)
In-Reply-To: <874mdkltjk.fsf@iki.fi> (Teemu Likonen's message of "Sun, 07 Feb 2016 12:10:55 +0200")

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

Teemu Likonen [2016-02-07 12:10:55+02] wrote:

> Are there established practices for writing a compatibility code in
> situations like this? Perhaps calling a custom function
> wcheck--fontify-region and having code like below?

There are some "alias wrappers" like below in Emacs code so maybe I'll
use similar with wcheck-mode.

    (eval-when-compile
      (defalias 'wcheck--fontify-region
        (if (fboundp 'font-lock-ensure)
            'font-lock-ensure
          'font-lock-fontify-region)))

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

  reply	other threads:[~2016-02-07 10:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20160130182614.10459.39544@vcs.savannah.gnu.org>
     [not found] ` <E1aPaDu-0002jJ-Ei@vcs.savannah.gnu.org>
2016-01-31  0:45   ` [elpa] master 19862ff: Use font-lock-fontify-region instead of jit-lock-fontify-now Stefan Monnier
2016-02-07 10:10     ` Teemu Likonen
2016-02-07 10:56       ` Teemu Likonen [this message]
2016-02-08  3:09       ` Stefan Monnier
2016-02-08 19:24         ` Teemu Likonen

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=87zivckcvb.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.