unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: [dooglus@gmail.com: display problem after renaming open image files]
Date: Thu, 05 Apr 2007 19:55:13 -0400	[thread overview]
Message-ID: <87zm5mz89q.fsf@stupidchicken.com> (raw)
In-Reply-To: <E1HZb8s-00032c-7R@fencepost.gnu.org> (Richard Stallman's message of "Thu\, 05 Apr 2007 19\:13\:22 -0400")

Richard Stallman <rms@gnu.org> writes:

>     Another possibility would be to allow one or several of
>     a) a buffer
>     b) an overlay (use the covered text)
>     c) a cons of two markers
>     d) t (use the data covered by the overlay itself)
>     as an argument to the :data parameter of an image property.  Then we
>     would not need to copy material back and forth.  One would need to
>     think about what could happen when the material references by :data
>     changes.
>
> I think that is a fine solution, and should be easy to implement.

Whatever makes you think that it's easy to implement?  On the
contrary, this will involve deep surgery in image.c.

There are a large number of functions in image.c that assume the image
specification is either a filename or a string.  Each of the image
types has at least one function that queries a `struct image' for
either QCdata or QCfile, and handles these two cases appropriately.
Adding a `buffer overlay' option will involve changing each and every
one of these functions to handle this new case.  These changes are not
trivial either, because the functions for different image types access
the image structs in different ways, depending on the requirements of
the external image library.

For all practical purposes, the current behavior is fine.  After all,
image-mode (currently) functions as an image viewer, not an image
editor.  So if you move the underlying image file, no one will be
surprised that you can't view the image anymore!  Plenty of image
viewing programs have this behavior (see gqview for example.)

Seriously, let's postphone this till after the release.

  reply	other threads:[~2007-04-05 23:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-01 21:42 [dooglus@gmail.com: display problem after renaming open image files] Richard Stallman
2007-04-01 22:16 ` Chong Yidong
2007-04-03  7:46   ` Richard Stallman
2007-04-03  8:12     ` David Kastrup
2007-04-03 14:03       ` Chong Yidong
2007-04-05 23:13       ` Richard Stallman
2007-04-05 23:55         ` Chong Yidong [this message]
2007-04-06 17:18           ` Kim F. Storm
2007-04-07 12:41           ` Richard Stallman
2007-04-07 14:54             ` Chong Yidong

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=87zm5mz89q.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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).