Function: image-dired-line-up
image-dired-line-up is an interactive and byte-compiled function
defined in image-dired.el.gz.
Signature
(image-dired-line-up)
Documentation
Line up thumbnails according to image-dired-thumbs-per-row.
See also image-dired-line-up-dynamic.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/image-dired.el.gz
(defun image-dired-line-up ()
"Line up thumbnails according to `image-dired-thumbs-per-row'.
See also `image-dired-line-up-dynamic'."
(interactive)
(let ((inhibit-read-only t))
(goto-char (point-min))
(while (and (not (image-dired-image-at-point-p))
(not (eobp)))
(delete-char 1))
(while (not (eobp))
(forward-char)
(while (and (not (image-dired-image-at-point-p))
(not (eobp)))
(delete-char 1)))
(goto-char (point-min))
(let ((count 0))
(while (not (eobp))
(forward-char)
(if (= image-dired-thumbs-per-row 1)
(insert "\n")
(insert " ")
(setq count (1+ count))
(when (and (= count (- image-dired-thumbs-per-row 1))
(not (eobp)))
(forward-char)
(insert "\n")
(setq count 0)))))
(goto-char (point-min))))