emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 887f612: Fix issue of inserting images on some syst


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 887f612: Fix issue of inserting images on some systems
Date: Thu, 03 Mar 2016 05:31:18 +0000

branch: master
commit 887f6126c5ce9084f93083765ac026ca6b28175c
Author: Alain Schneble <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Fix issue of inserting images on some systems
    
    * lisp/net/shr.el (shr-tag-img): Construct a non-empty range
    to pass to shr-image-fetched, to indicate where to insert the
    image.  Fixes the issue introduced with commit
    80852f843e69b81618f29cfb9aa4b074946cb3c4
    (bug#22789).
---
 lisp/net/shr.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index c469e69..e463c7e 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1499,7 +1499,7 @@ The preference is a float determined from 
`shr-prefer-media-type'."
           (insert " ")
          (url-queue-retrieve
           (shr-encode-url url) 'shr-image-fetched
-          (list (current-buffer) start (set-marker (make-marker) (1- (point)))
+          (list (current-buffer) start (set-marker (make-marker) (point))
                  (list :width width :height height))
           t t)))
        (when (zerop shr-table-depth) ;; We are not in a table.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]