[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 143a430: Display window before calculating width
From: |
Mark Oteiza |
Subject: |
[Emacs-diffs] master 143a430: Display window before calculating width |
Date: |
Sat, 3 Dec 2016 05:58:30 +0000 (UTC) |
branch: master
commit 143a4306759a91e84b486a9e4c52f83d96d8d23d
Author: Mark Oteiza <address@hidden>
Commit: Mark Oteiza <address@hidden>
Display window before calculating width
* lisp/image-dired.el (image-dired-display-thumbs): Display the buffer
before calling image-dired-line-up and friends, which in turn calculate
the window width. Otherwise, the thumbnail layout will be wrong in
a side-by-side split.
---
lisp/image-dired.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/image-dired.el b/lisp/image-dired.el
index 714182a..67fbc02 100644
--- a/lisp/image-dired.el
+++ b/lisp/image-dired.el
@@ -854,6 +854,9 @@ thumbnail buffer to be selected."
(message "Thumb could not be created for file %s" curr-file)
(image-dired-insert-thumbnail thumb-name curr-file dired-buf)))
files))
+ (if do-not-pop
+ (display-buffer buf)
+ (pop-to-buffer buf))
(cond ((eq 'dynamic image-dired-line-up-method)
(image-dired-line-up-dynamic))
((eq 'fixed image-dired-line-up-method)
@@ -863,10 +866,7 @@ thumbnail buffer to be selected."
((eq 'none image-dired-line-up-method)
nil)
(t
- (image-dired-line-up-dynamic))))
- (if do-not-pop
- (display-buffer image-dired-thumbnail-buffer)
- (pop-to-buffer image-dired-thumbnail-buffer))))
+ (image-dired-line-up-dynamic))))))
;;;###autoload
(defun image-dired-show-all-from-dir (dir)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 143a430: Display window before calculating width,
Mark Oteiza <=