aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Oteiza2016-12-02 16:50:25 -0500
committerMark Oteiza2016-12-03 00:58:18 -0500
commit5e915691ff097668b60c715cd39ab87975fc3000 (patch)
tree64a06af3fa21e1d4749af8fd52698f8ad18c9df2
parent88fefc3291060f18503738aaa4e81b98f1970a55 (diff)
downloademacs-5e915691ff097668b60c715cd39ab87975fc3000.tar.gz
emacs-5e915691ff097668b60c715cd39ab87975fc3000.zip
Use pop-to-buffer-same-window
* lisp/image-dired.el (image-dired-dired-with-window-configuration): (image-dired-dired-edit-comment-and-tags): Instead of switch-to-buffer, use pop-to-buffer-same-window cf. Bug#22244. (image-dired-forward-image, image-dired-backward-image): Ignore unused.
-rw-r--r--lisp/image-dired.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/image-dired.el b/lisp/image-dired.el
index a55dd40c09a..714182ae25f 100644
--- a/lisp/image-dired.el
+++ b/lisp/image-dired.el
@@ -799,9 +799,9 @@ calling `image-dired-restore-window-configuration'."
799 (setq truncate-lines t) 799 (setq truncate-lines t)
800 (save-excursion 800 (save-excursion
801 (other-window 1) 801 (other-window 1)
802 (switch-to-buffer buf) 802 (pop-to-buffer-same-window buf)
803 (select-window (split-window-below)) 803 (select-window (split-window-below))
804 (switch-to-buffer buf2) 804 (pop-to-buffer-same-window buf2)
805 (other-window -2))))) 805 (other-window -2)))))
806 806
807(defun image-dired-restore-window-configuration () 807(defun image-dired-restore-window-configuration ()
@@ -1110,7 +1110,7 @@ Optional prefix ARG says how many images to move; default is one
1110image." 1110image."
1111 (interactive "p") 1111 (interactive "p")
1112 (let (pos (steps (or arg 1))) 1112 (let (pos (steps (or arg 1)))
1113 (dotimes (i steps) 1113 (dotimes (_ steps)
1114 (if (and (not (eobp)) 1114 (if (and (not (eobp))
1115 (save-excursion 1115 (save-excursion
1116 (forward-char) 1116 (forward-char)
@@ -1131,7 +1131,7 @@ Optional prefix ARG says how many images to move; default is one
1131image." 1131image."
1132 (interactive "p") 1132 (interactive "p")
1133 (let (pos (steps (or arg 1))) 1133 (let (pos (steps (or arg 1)))
1134 (dotimes (i steps) 1134 (dotimes (_ steps)
1135 (if (and (not (bobp)) 1135 (if (and (not (bobp))
1136 (save-excursion 1136 (save-excursion
1137 (backward-char) 1137 (backward-char)
@@ -2484,7 +2484,7 @@ easy-to-use form."
2484 (setq image-dired-widget-list nil) 2484 (setq image-dired-widget-list nil)
2485 ;; Setup buffer. 2485 ;; Setup buffer.
2486 (let ((files (dired-get-marked-files))) 2486 (let ((files (dired-get-marked-files)))
2487 (switch-to-buffer "*Image-Dired Edit Meta Data*") 2487 (pop-to-buffer-same-window "*Image-Dired Edit Meta Data*")
2488 (kill-all-local-variables) 2488 (kill-all-local-variables)
2489 (make-local-variable 'widget-example-repeat) 2489 (make-local-variable 'widget-example-repeat)
2490 (let ((inhibit-read-only t)) 2490 (let ((inhibit-read-only t))