all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Evgeny Zajcev <lg.zevlg@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Lazy image converters
Date: Sun, 16 Feb 2020 10:20:20 -0500	[thread overview]
Message-ID: <jwvmu9imuhb.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAO=W_ZoDtv8oULLy-TrCDzB7zA8czK8NM8cZL=KrQ6K7+hr8pQ@mail.gmail.com> (Evgeny Zajcev's message of "Wed, 12 Feb 2020 17:11:02 +0300")

> What if we have a lazy image, so its FILE-OR-DATA is calculated at
> redisplay time.  'image-convert' could utilize this.  One of the approaches
> to lazy images is to allow FILE-OR-DATA to be a function returning actual
> file or data.  Redisplay could call this func and substitute the value of
> FILE-OR-DATA in image spec with the results, kind of caching the results.

It's definitely worth a try.
Maybe we can do that using the existing jit-lock hook?


        Stefan




  parent reply	other threads:[~2020-02-16 15:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-12 14:11 Lazy image converters Evgeny Zajcev
2020-02-16 13:06 ` Lars Ingebrigtsen
2020-02-16 17:45   ` Evgeny Zajcev
2020-02-19 13:44     ` Lars Ingebrigtsen
2020-02-16 15:20 ` Stefan Monnier [this message]
2020-02-17 11:02   ` Evgeny Zajcev

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=jwvmu9imuhb.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=lg.zevlg@gmail.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.