diff options
| author | Visuwesh | 2024-09-15 13:56:21 +0530 |
|---|---|---|
| committer | Eli Zaretskii | 2024-09-28 12:05:14 +0300 |
| commit | fb3aa693562dd61540d5f1d6f46bcfbd8668853a (patch) | |
| tree | cf7681b59b22ec935989fb47cc089ebeb030914d /doc | |
| parent | bba14a27678317eee68e87a343e7314b3949f6c7 (diff) | |
| download | emacs-fb3aa693562dd61540d5f1d6f46bcfbd8668853a.tar.gz emacs-fb3aa693562dd61540d5f1d6f46bcfbd8668853a.zip | |
Add buffer-local register commands to DocView
* lisp/doc-view.el (doc-view-register-alist): New defvar to keep
track of buffer-local register-alist.
(doc-view-page-to-register, doc-view-jump-to-register): Add new
commands to set and jump to buffer-local registers.
(register-val-insert, register-val-describe)
(register-val-jump-to): Register defmethod to save and restore
doc-view registers.
(doc-view-mode-map): Bind the new commands.
* doc/emacs/misc.texi (DocView Navigation): Document the new
commands. (Bug#73293)
* etc/NEWS: Announce the change.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/misc.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index eb157c146e7..e19e554fb26 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi | |||
| @@ -593,6 +593,16 @@ can further customize how @code{imenu} items are formatted and | |||
| 593 | displayed using the variables @code{doc-view-imenu-format} and | 593 | displayed using the variables @code{doc-view-imenu-format} and |
| 594 | @code{doc-view-imenu-flatten}. | 594 | @code{doc-view-imenu-flatten}. |
| 595 | 595 | ||
| 596 | @findex doc-view-page-to-register | ||
| 597 | @findex doc-view-jump-to-register | ||
| 598 | @kindex m @r{(DocView mode)} | ||
| 599 | @kindex ' @r{(DocView mode)} | ||
| 600 | You can save the current page to a register with @kbd{m} | ||
| 601 | (@code{doc-view-page-to-register}) (@pxref{Registers}). However, these | ||
| 602 | registers are not shared across buffers and stay local to the DocView | ||
| 603 | buffer. You can later jump to the register with @kbd{'} | ||
| 604 | (@code{doc-view-jump-to-register}). | ||
| 605 | |||
| 596 | @node DocView Searching | 606 | @node DocView Searching |
| 597 | @subsection DocView Searching | 607 | @subsection DocView Searching |
| 598 | 608 | ||