Function: doc-view-scale-adjust

doc-view-scale-adjust is an interactive and byte-compiled function defined in doc-view.el.gz.

Signature

(doc-view-scale-adjust FACTOR)

Documentation

Adjust the scale of the DocView page images by FACTOR.

FACTOR defaults to doc-view-shrink-factor.

The actual adjustment made depends on the final component of the keybinding used to invoke the command, with all modifiers removed:

   +, = Increase the image scale by FACTOR
   - Decrease the image scale by FACTOR
   0 Reset the image scale to the initial scale

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/doc-view.el.gz
(defun doc-view-scale-adjust (factor)
  "Adjust the scale of the DocView page images by FACTOR.
FACTOR defaults to `doc-view-shrink-factor'.

The actual adjustment made depends on the final component of the
keybinding used to invoke the command, with all modifiers removed:

   +, =   Increase the image scale by FACTOR
   -      Decrease the image scale by FACTOR
   0      Reset the image scale to the initial scale"
  (interactive (list doc-view-shrink-factor))
  (let ((ev last-command-event)
	(echo-keystrokes nil))
    (pcase (event-basic-type ev)
      ((or ?+ ?=) (doc-view-enlarge factor))
      (?-         (doc-view-shrink factor))
      (?0         (doc-view-scale-reset)))))