org.el (org-toggle-inline-images): Only send a message when called interactively

* org.el (org-toggle-inline-images): Only send a message when
called interactively.
This commit is contained in:
Bastien Guerry 2012-09-18 16:27:57 +02:00
parent 39da4f455a
commit 48ca87cd4a
1 changed files with 2 additions and 1 deletions

View File

@ -17888,7 +17888,8 @@ INCLUDE-LINKED is passed to `org-display-inline-images'."
(org-remove-inline-images)
(message "Inline image display turned off"))
(org-display-inline-images include-linked)
(if org-inline-image-overlays
(if (and (org-called-interactively-p)
org-inline-image-overlays)
(message "%d images displayed inline"
(length org-inline-image-overlays))
(message "No images to display inline"))))