[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Putting auto-image-file-mode in Options menu
From: |
David Kastrup |
Subject: |
Re: Putting auto-image-file-mode in Options menu |
Date: |
Sun, 20 Mar 2005 19:22:45 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> If you used an overlay instead of text properties, there would be no
> necessity to modify the buffer.
>
> That is true. However, copying the image to another buffer would only
> get you text.
Which is what would be appropriate when copying an XPM icon into a C
source file. And since the C source file would not be in
auto-image-mode to start with, I could not remove the imagery by
turning auto-image-mode off. Other buffers are unlikely to retain the
image when being saved and reloaded, unless their file name would also
imply auto-image-mode. But I think it reasonable that you have to
reload in that case.
> That's why I decided to make it a text property.
Funny. That's exactly the reason why I would have made the decision
the other way round (and in fact, the preview-latex project uses
overlays instead of text properties for this reason).
I think that without special yank properties that would, say, cause
the image to be included as an image in a HTML buffer and other
locations, it is pointless to have this as a text property since the
image will not usually survive saving and reloading in a different
buffer. And since the image actually is the outcome of a _mode_, it
would appear that the "is-an-image" state, being coupled with the
mode, belongs to the buffer instead of the text.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Putting auto-image-file-mode in Options menu, Juri Linkov, 2005/03/13
- Re: Putting auto-image-file-mode in Options menu, Stefan Monnier, 2005/03/13
- Re: Putting auto-image-file-mode in Options menu, Juri Linkov, 2005/03/13
- Re: Putting auto-image-file-mode in Options menu, David Kastrup, 2005/03/14
- Re: Putting auto-image-file-mode in Options menu, Juri Linkov, 2005/03/15
- Re: Putting auto-image-file-mode in Options menu, Richard Stallman, 2005/03/15
- Re: Putting auto-image-file-mode in Options menu, Juri Linkov, 2005/03/16
- Re: Putting auto-image-file-mode in Options menu, Richard Stallman, 2005/03/19
- Re: Putting auto-image-file-mode in Options menu, David Kastrup, 2005/03/19
- Re: Putting auto-image-file-mode in Options menu, Richard Stallman, 2005/03/20
- Re: Putting auto-image-file-mode in Options menu,
David Kastrup <=
- Re: Putting auto-image-file-mode in Options menu, Richard Stallman, 2005/03/21
- Re: Putting auto-image-file-mode in Options menu, Juri Linkov, 2005/03/20
- Re: Putting auto-image-file-mode in Options menu, Richard Stallman, 2005/03/21
- Re: Putting auto-image-file-mode in Options menu, Miles Bader, 2005/03/26
- Re: Putting auto-image-file-mode in Options menu, Richard Stallman, 2005/03/28
- Re: Putting auto-image-file-mode in Options menu, Miles Bader, 2005/03/28
- Re: Putting auto-image-file-mode in Options menu, Eli Zaretskii, 2005/03/28
- Re: Putting auto-image-file-mode in Options menu, Richard Stallman, 2005/03/28
- Re: Putting auto-image-file-mode in Options menu, Richard Stallman, 2005/03/28
- Re: Putting auto-image-file-mode in Options menu, Juri Linkov, 2005/03/22