emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#15279: closed (Info broken image)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15279: closed (Info broken image)
Date: Fri, 06 Sep 2013 20:45:01 +0000

Your message dated Fri, 06 Sep 2013 23:44:06 +0300
with message-id <address@hidden>
and subject line Re: bug#15279: Info broken image
has caused the debbugs.gnu.org bug report #15279,
regarding Info broken image
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
15279: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15279
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Info broken image Date: Fri, 06 Sep 2013 00:35:17 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)
When Info can't find an image file it replaces the image
with the placeholder "[broken image]" even when there is
ASCII variant of the image.  It would be more user-friendly
to display ASCII variant if it is provided in the Info file.
Additionally this patch also displays the ALT attribute
in the tooltip like web browsers do.

=== modified file 'lisp/info.el'
--- lisp/info.el        2013-07-03 20:47:56 +0000
+++ lisp/info.el        2013-09-05 21:33:39 +0000
@@ -1611,11 +1611,15 @@ (defun Info-display-images-node ()
                                    ""))
                      (image (if (file-exists-p image-file)
                                 (create-image image-file)
-                              "[broken image]")))
+                              (or (cdr (assoc-string "text" parameter-alist))
+                                 (and src (concat "[broken image:" src "]"))
+                                 "[broken image]"))))
                 (if (not (get-text-property start 'display))
                     (add-text-properties
-                     start (point) `(display ,image rear-nonsticky 
(display)))))
+                     start (point)
+                    `(display ,image rear-nonsticky (display)
+                      help-echo ,(cdr (assoc-string "alt" parameter-alist))))))
             ;; text-only display, show alternative text if provided, or
             ;; otherwise a clue that there's meant to be a picture
             (delete-region start (point))
 



--- End Message ---
--- Begin Message --- Subject: Re: bug#15279: Info broken image Date: Fri, 06 Sep 2013 23:44:06 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)
>> When Info can't find an image file it replaces the image
>> with the placeholder "[broken image]" even when there is
>> ASCII variant of the image.  It would be more user-friendly
>> to display ASCII variant if it is provided in the Info file.
>> Additionally this patch also displays the ALT attribute
>> in the tooltip like web browsers do.
>
> Looks good, please install,

Done.


--- End Message ---

reply via email to

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