diff options
| author | Thomas Hisch <thomas.hisch@ims.co.at> | 2021-05-31 16:02:22 +0200 |
|---|---|---|
| committer | Vedang Manerikar <ved.manerikar@gmail.com> | 2021-05-31 21:43:58 +0530 |
| commit | 5f77dae43eb8f71e52e10ba8cf994883f74c3fb7 (patch) | |
| tree | e9789ebb99789aff08dee9fd0295ff6dd7c2a555 /lisp/pdf-isearch.el | |
| parent | 3e1d740dee85c42cc55b1bff552c4e098e2638d3 (diff) | |
define-minor-mode: Remove support for obsolete pos arguments
This removes the positial arguemnt triplet from the define-minor-mode
calls, because they are obsolete since Emacs<21. See the following
paragraph in the help section of define-minor-mode.
For backward compatibility with the Emacs<21 calling convention, the
keywords of define-minor-mode can also be preceded by the obsolete
triplet INIT-VALUE LIGHTER KEYMAP.
Diffstat (limited to 'lisp/pdf-isearch.el')
| -rw-r--r-- | lisp/pdf-isearch.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/pdf-isearch.el b/lisp/pdf-isearch.el index 5225395..93d7113 100644 --- a/lisp/pdf-isearch.el +++ b/lisp/pdf-isearch.el @@ -127,7 +127,9 @@ keymap is `isearch-mode-map'.") (put 'image-scroll-up 'isearch-scroll t) (put 'image-scroll-down 'isearch-scroll t) -(define-minor-mode pdf-isearch-active-mode "" nil nil nil +(define-minor-mode pdf-isearch-active-mode + "" + :group 'pdf-isearch (cond (pdf-isearch-active-mode (set (make-local-variable 'isearch-mode-map) @@ -218,7 +220,6 @@ If this mode is enabled, isearching does not stop at every match, but rather moves to the next one not currently visible. This behaviour is much faster than ordinary isearch, since far less different images have to be displayed." - nil nil nil :group 'pdf-isearch (when isearch-mode (pdf-isearch-redisplay) |
