diff options
| author | Mathias Dahl | 2006-07-19 10:01:54 +0000 |
|---|---|---|
| committer | Mathias Dahl | 2006-07-19 10:01:54 +0000 |
| commit | db359f941c89eb900e3732014d3f3fe8edee4946 (patch) | |
| tree | ec43382a0a71a957fc9c9dd0ba686528bdd4040a | |
| parent | 2ba002a0f5d79f9e2272266ca6f843bcc90c86c5 (diff) | |
| download | emacs-db359f941c89eb900e3732014d3f3fe8edee4946.tar.gz emacs-db359f941c89eb900e3732014d3f3fe8edee4946.zip | |
(tumme-display-thumbnail-original-image): Make sure
image display buffer is displayed before call to
`tumme-display-image.
(tumme-dired-display-image): Make sure image display buffer is
displayed before call to `tumme-display-image.
(tumme-mouse-display-image): Make sure image display buffer is
displayed before call to `tumme-display-image.
| -rw-r--r-- | lisp/tumme.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/tumme.el b/lisp/tumme.el index b45052bf09e..2be66ba88de 100644 --- a/lisp/tumme.el +++ b/lisp/tumme.el | |||
| @@ -1798,8 +1798,10 @@ With prefix argument ARG, display image in its original size." | |||
| 1798 | (message "No thumbnail at point") | 1798 | (message "No thumbnail at point") |
| 1799 | (if (not file) | 1799 | (if (not file) |
| 1800 | (message "No original file name found") | 1800 | (message "No original file name found") |
| 1801 | (tumme-display-image file arg) | 1801 | (tumme-create-display-image-buffer) |
| 1802 | (display-buffer tumme-display-image-buffer)))))) | 1802 | (display-buffer tumme-display-image-buffer) |
| 1803 | (tumme-display-image file arg)))))) | ||
| 1804 | |||
| 1803 | 1805 | ||
| 1804 | ;;;###autoload | 1806 | ;;;###autoload |
| 1805 | (defun tumme-dired-display-image (&optional arg) | 1807 | (defun tumme-dired-display-image (&optional arg) |
| @@ -1807,8 +1809,9 @@ With prefix argument ARG, display image in its original size." | |||
| 1807 | See documentation for `tumme-display-image' for more information. | 1809 | See documentation for `tumme-display-image' for more information. |
| 1808 | With prefix argument ARG, display image in its original size." | 1810 | With prefix argument ARG, display image in its original size." |
| 1809 | (interactive "P") | 1811 | (interactive "P") |
| 1810 | (tumme-display-image (dired-get-filename) arg) | 1812 | (tumme-create-display-image-buffer) |
| 1811 | (display-buffer tumme-display-image-buffer)) | 1813 | (display-buffer tumme-display-image-buffer) |
| 1814 | (tumme-display-image (dired-get-filename) arg)) | ||
| 1812 | 1815 | ||
| 1813 | (defun tumme-image-at-point-p () | 1816 | (defun tumme-image-at-point-p () |
| 1814 | "Return true if there is a tumme thumbnail at point." | 1817 | "Return true if there is a tumme thumbnail at point." |
| @@ -2153,6 +2156,8 @@ non-nil." | |||
| 2153 | (setq file (tumme-original-file-name)) | 2156 | (setq file (tumme-original-file-name)) |
| 2154 | (if tumme-track-movement | 2157 | (if tumme-track-movement |
| 2155 | (tumme-track-original-file)) | 2158 | (tumme-track-original-file)) |
| 2159 | (tumme-create-display-image-buffer) | ||
| 2160 | (display-buffer tumme-display-image-buffer) | ||
| 2156 | (tumme-display-image file))) | 2161 | (tumme-display-image file))) |
| 2157 | 2162 | ||
| 2158 | (defun tumme-mouse-select-thumbnail (event) | 2163 | (defun tumme-mouse-select-thumbnail (event) |