diff options
Diffstat (limited to 'lisp/info.el')
| -rw-r--r-- | lisp/info.el | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/info.el b/lisp/info.el index 182ad8563aa..65cd7eddcfd 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -1595,17 +1595,20 @@ escaped (\\\",\\\\)." | |||
| 1595 | "")) | 1595 | "")) |
| 1596 | (image (if (file-exists-p image-file) | 1596 | (image (if (file-exists-p image-file) |
| 1597 | (create-image image-file) | 1597 | (create-image image-file) |
| 1598 | "[broken image]"))) | 1598 | (or (cdr (assoc-string "text" parameter-alist)) |
| 1599 | (and src (concat "[broken image:" src "]")) | ||
| 1600 | "[broken image]")))) | ||
| 1599 | (if (not (get-text-property start 'display)) | 1601 | (if (not (get-text-property start 'display)) |
| 1600 | (add-text-properties | 1602 | (add-text-properties |
| 1601 | start (point) `(display ,image rear-nonsticky (display))))) | 1603 | start (point) |
| 1604 | `(display ,image rear-nonsticky (display) | ||
| 1605 | help-echo ,(cdr (assoc-string "alt" parameter-alist)))))) | ||
| 1602 | ;; text-only display, show alternative text if provided, or | 1606 | ;; text-only display, show alternative text if provided, or |
| 1603 | ;; otherwise a clue that there's meant to be a picture | 1607 | ;; otherwise a clue that there's meant to be a picture |
| 1604 | (delete-region start (point)) | 1608 | (delete-region start (point)) |
| 1605 | (insert (or (cdr (assoc-string "text" parameter-alist)) | 1609 | (insert (or (cdr (assoc-string "text" parameter-alist)) |
| 1606 | (cdr (assoc-string "alt" parameter-alist)) | 1610 | (cdr (assoc-string "alt" parameter-alist)) |
| 1607 | (and src | 1611 | (and src (concat "[image:" src "]")) |
| 1608 | (concat "[image:" src "]")) | ||
| 1609 | "[image]")))))) | 1612 | "[image]")))))) |
| 1610 | (set-buffer-modified-p nil))) | 1613 | (set-buffer-modified-p nil))) |
| 1611 | 1614 | ||