(mm-inline-image-xemacs): Insert newline, then move
authorKai Grossjohann <kgrossjo@eu.uu.net>
Tue, 29 May 2001 09:23:59 +0000 (09:23 +0000)
committerKai Grossjohann <kgrossjo@eu.uu.net>
Tue, 29 May 2001 09:23:59 +0000 (09:23 +0000)
back, then insert glyph.  (Before, the glyph was inserted first,
then the newline.)  This works around a behavior in XEmacs where
it is not possible to insert a character after a glyph which is at
the end of a buffer.  Patch by Lloyd Zusman <ljz@asfast.com>.

lisp/ChangeLog
lisp/mm-view.el

index 60f6a70..e2ed8f4 100644 (file)
@@ -1,3 +1,11 @@
+2001-05-30  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+
+       * mm-view.el (mm-inline-image-xemacs): Insert newline, then move
+       back, then insert glyph.  (Before, the glyph was inserted first,
+       then the newline.)  This works around a behavior in XEmacs where
+       it is not possible to insert a character after a glyph which is at
+       the end of a buffer.  Patch by Lloyd Zusman <ljz@asfast.com>.
+
 2001-05-28  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        From Jaap-Henk Hoepman (jhh@xs4all.nl).
index 976cdff..4a92e80 100644 (file)
      `(lambda () (remove-images ,b (1+ ,b))))))
 
 (defun mm-inline-image-xemacs (handle)
+  (insert "\n")
+  (forward-char -1)
   (let ((b (point))
        (annot (make-annotation (mm-get-image handle) nil 'text))
        buffer-read-only)
-    (insert "\n")
     (mm-handle-set-undisplayer
      handle
      `(lambda ()