Make `put-image' return the overlay created

* image.el (put-image): Return the overlay created instead of the
optional input string.  Note that this may break code
that is (for some reason or other) depending on `put-image'
returning the string.

Fixes: debbugs:7834
parent bd2dba5a
2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org> 2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* image.el (put-image): Return the overlay created instead of the
optional input string (bug#7834). Note that this may break code
that is (for some reason or other) depending on `put-image'
returning the string.
* mouse-sel.el (mouse-sel-mode): Mark as obsolete (bug#6174). * mouse-sel.el (mouse-sel-mode): Mark as obsolete (bug#6174).
* simple.el (zap-to-char): Allow zapping using input methods * simple.el (zap-to-char): Allow zapping using input methods
......
...@@ -412,7 +412,8 @@ means display it in the right marginal area." ...@@ -412,7 +412,8 @@ means display it in the right marginal area."
(prop (if (null area) image (list (list 'margin area) image)))) (prop (if (null area) image (list (list 'margin area) image))))
(put-text-property 0 (length string) 'display prop string) (put-text-property 0 (length string) 'display prop string)
(overlay-put overlay 'put-image t) (overlay-put overlay 'put-image t)
(overlay-put overlay 'before-string string)))) (overlay-put overlay 'before-string string)
overlay)))
;;;###autoload ;;;###autoload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment