(image-dired-insert-thumbnail
(image-dired--get-create-thumbnail-file file) file dired-buf)
(cl-incf image-dired--number-of-thumbnails))))
- (if (> image-dired--number-of-thumbnails 0)
+ (if (plusp image-dired--number-of-thumbnails)
(if do-not-pop
(display-buffer buf)
(pop-to-buffer buf))
(setq arg (or arg 1))
(let (pos)
(dotimes (_ (abs arg))
- (if (and (not (if (> arg 0) (eobp) (bobp)))
+ (if (and (not (if (plusp arg) (eobp) (bobp)))
(save-excursion
- (forward-char (if (> arg 0) 1 -1))
- (while (and (not (if (> arg 0) (eobp) (bobp)))
+ (forward-char (if (plusp arg) 1 -1))
+ (while (and (not (if (plusp arg) (eobp) (bobp)))
(not (image-dired-image-at-point-p)))
- (forward-char (if (> arg 0) 1 -1)))
+ (forward-char (if (plusp arg) 1 -1)))
(setq pos (point))
(image-dired-image-at-point-p)))
(goto-char pos)
(if wrap-around
- (goto-char (if (> arg 0)
+ (goto-char (if (plusp arg)
(point-min)
;; There are two spaces after the last image.
(- (point-max) 2)))
- (message "At %s image" (if (> arg 0) "last" "first"))))))
+ (message "At %s image" (if (plusp arg) "last" "first"))))))
(image-dired--update-header-line)
(when image-dired-track-movement
(image-dired-track-original-file)))
(let ((delay
(cond ((not arg)
image-dired-slideshow-delay)
- ((> arg 0)
+ ((plusp arg)
arg)
((<= arg 0)
(string-to-number
(interactive nil image-dired-thumbnail-mode)
(let ((image-dired-thumbs-per-row
(string-to-number (read-string "How many thumbs per row: "))))
- (if (not (> image-dired-thumbs-per-row 0))
+ (if (not (plusp image-dired-thumbs-per-row))
(message "Number must be greater than 0")
(image-dired-line-up))))