Function: image-dired--slideshow-stop

image-dired--slideshow-stop is a byte-compiled function defined in image-dired.el.gz.

Signature

(image-dired--slideshow-stop)

Documentation

Cancel the currently active slideshow.

Aliases

image-dired-slideshow-stop (obsolete since 29.1)

Source Code

;; Defined in /usr/src/emacs/lisp/image/image-dired.el.gz
(defun image-dired--slideshow-stop ()
  "Cancel the currently active slideshow."
  (cond
   ((memq this-command
          '( image-dired-slideshow-start
             image-dired-display-next
             image-dired-display-previous))
    (image-dired--slideshow-start-timer)
    (image-dired--slideshow-show-message))
   ((eq this-command 'image-dired-display-this)
    (let ((pause image-dired--slideshow-timer))
      (if pause
          (image-dired--slideshow-stop-timer)
        (image-dired--slideshow-start-timer))
      (image-dired--slideshow-show-message (and pause "  [PAUSED]"))))
   (t
    (image-dired--slideshow-stop-timer)
    (remove-hook 'post-command-hook 'image-dired--slideshow-stop))))