Function: pdf-view-set-selection-style

pdf-view-set-selection-style is an interactive and natively compiled function defined in pdf-view.el.

Signature

(pdf-view-set-selection-style &optional STYLE)

Documentation

Set pdf-view-selection-style to STYLE in the current buffer.

When called interactively or without an argument, cycle between the selection styles.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/63h5z2vmzn0mfavcxi2idi23g5xcgkbl-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20260102.1101/pdf-view.el
(defun pdf-view-set-selection-style (&optional style)
  "Set `pdf-view-selection-style' to STYLE in the current buffer.

When called interactively or without an argument, cycle between
the selection styles."
  (interactive)
  (unless style
    (setq style (or (cadr (memq pdf-view-selection-style '(glyph word line)))
                    'glyph))
    (message "Setting selection style to `%s'." style))
  (pdf-view-deactivate-region)
  (setq-local pdf-view-selection-style style))