From 7532ace0498b788b35a608f4043a0454c6d487fa Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sun, 12 Aug 2012 23:14:13 +0200 Subject: [PATCH] org.el: New command `org-redisplay-inline-images' * org.el (org-redisplay-inline-images): New command. (org-mode-map): Bind it to C-c C-x C-M-v. Thanks to Petro for suggesting this. --- lisp/org.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index 631d082d6..63cf234c6 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -17730,6 +17730,14 @@ INCLUDE-LINKED is passed to `org-display-inline-images'." (length org-inline-image-overlays)) (message "No images to display inline")))) +(defun org-redisplay-inline-images () + "Refresh the display of inline images." + (interactive) + (if (not org-inline-image-overlays) + (org-toggle-inline-images) + (org-toggle-inline-images) + (org-toggle-inline-images))) + (defun org-display-inline-images (&optional include-linked refresh beg end) "Display inline images. Normally only links without a description part are inlined, because this @@ -18019,6 +18027,7 @@ BEG and END default to the buffer boundaries." (org-defkey org-mode-map "\C-c\C-x\C-u" 'org-dblock-update) (org-defkey org-mode-map "\C-c\C-x\C-l" 'org-preview-latex-fragment) (org-defkey org-mode-map "\C-c\C-x\C-v" 'org-toggle-inline-images) +(org-defkey org-mode-map "\C-c\C-x\C-\M-v" 'org-redisplay-inline-images) (org-defkey org-mode-map "\C-c\C-x\\" 'org-toggle-pretty-entities) (org-defkey org-mode-map "\C-c\C-x\C-b" 'org-toggle-checkbox) (org-defkey org-mode-map "\C-c\C-xp" 'org-set-property) -- 2.11.4.GIT