| Age | Commit message (Collapse) | Author |
|
This makes the metadata buffer consistent with the annotations and
outline buffer in having its own major mode, derived from
special-mode.
I mainly created this because it bugged me that I couldn't press q to
close the metadata buffer.
|
|
Make it possible to set `pdf-view-selection-style` from Easy Menu.
Closes: #190
|
|
Relates to: #64
|
|
A parameter `event' is required at least for emacs 29.0.
Add `_event' to pacitify compiling warning.
|
|
- Remove :group arguments from `defcustom` declarations
- `defcustom` picks up `defgroup` names from the same file, so
specifying the group is not necessary
- Ensure that all function-names are properly quoted using #'
- Add an explicit header-option setting lexical-binding to t
- Ensure that cl-check-type uses `satisfies` for filenames
- Replace all `defadvice` with `advice-add`
- Replace `(list ...)` patterns with `\`(...)` patterns
Fixes: #62
Fixes: #32
Partially Fixes: #24
|
|
Emacs had made some change to the easy-menu system, that is,
`easy-menu-define` lowers the menu-bar key automatically.
Ref:
https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-09/msg02038.html
Closes #50
Signed-off-by: Shuguang Sun <shuguang79@qq.com>
|
|
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.
|
|
Extends the work done in 2ece508 and 91630c2 to ensure that typos are
correctly fixed. Also renames the custom variable
`pdf-misc-print-program` to `pdf-misc-print-program-executable` to
avoid confusion with the function of the same name.
|
|
I think this typo was missed.
|
|
|
|
|
|
|
|
|
|
The defcustom form had two types. I removed the incorrect one, i.e.,
:type 'file, and left :type '(repeat string).
|
|
|
|
Allow user to specify additional arguments to the printing command.
|
|
|
|
Informs the user that the print command was actually sent. Useful when
the printer is in another room and you don't want to accidentally send
the same job multiple times.
|
|
* lisp/pdf-misc.el (pdf-misc-display-metadata): Use buffer-name if
buffer has not filename.
|
|
* lisp/pdf-virtual.el: New file handling virtual PDF documents.
* test/pdf-test.el: Tests for that feature.
* lisp/pdf-misc.el: Extend the menu appropriately.
* lisp/pdf-view.el: Make pdf-view-mode play nicer with it's derived
mode pdf-virtual-view-mode.
* lisp/pdf-tools.el: Integrate pdf-virtual.
* NEWS: Added item.
* README.org: Mention it.
|
|
* lisp/pdf-view.el (pdf-view-rectangle): New face for highlighting the
region as a rectangle.
(pdf-view-active-region): Use relative edge values.
(pdf-view-mode-map): Add binding for rectangle selection and image extraction.
(pdf-view-mouse-set-region): Added argument determining display style.
(pdf-view-display-region): Likewise.
(pdf-view-extract-region-image): New command for extracting regions as an image.
* lisp/pdf-misc.el: Add menu item.
|
|
* lisp/pdf-view.el (pdf-view-midnight-colors): New variable
(pdf-view-mode-map): Add bindings for midnight- and printer-mode.
(pdf-view-midnight-minor-mode): New minor mode apply the recolor filter.
* lisp/pdf-misc.el: Add menu entries for printer- and midnight-mode.
|
|
* lisp/pdf-isearch.el:(pdf-isearch-occur): New command.
* lisp/tablist.el (tablist-generate-sorter): New macro
* lisp/pdf-tools.el (pdf-tools-modes, pdf-tools-enabled-modes): Added
occur global mode.
|
|
* lisp/pdf-misc.el (pdf-misc-minor-mode-map): Bound it to C-c C-p
(pdf-misc-print-programm): Programm for printing the document.
(pdf-misc-print-document): Print the PDF using an external tool.
* Makefile (install-server-deps): Optionally depend on gtklp, a
printer dialog program.
|
|
* lisp/pdf-sync.el (pdf-sync-forward-search): Use pdf-sync-forward-correlate.
* lisp/pdf-misc.el (pdf-sync-mouse-goto-tex): Use pdf-sync-backward-search-mouse.
|
|
* lisp/*.el: Use standard keywords.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* lisp/pdf-misc.el: Make double-clicks work on region hotspots.
(pdf-misc-minor-mode):Bind the map symbol to
`pdf-misc-text-region-keymap'. By default this keymap diverts all
events to their regular (w/o map symbol) versions.
(pdf-misc-mouse-set-region):Always unread the last event. Use
push-mark instead of setting transient-mark-mode. Since
pdf-render-with-redraw is pretty slow, only use if necessary.
(pdf-misc-text-regions-hotspots-function):Renamed map symbol to
the more appropriate pdf-misc-text-region.
* lisp/pdf-util.el (pdf-util-image-map-mouse-click-proxy): Renamed.
|
|
|
|
* lisp/pdf-misc.el: Added text pointer over text regions.
|
|
Renamed former layer-* and annotate-* functions/variables to make
it clearer what they are supposed to to. Simplyfied former
annotate-* interface.
* lisp/pdf-render.el:Renamed Functions and Variables. Simplified
hotspot interface.
* lisp/pdf-misc.el:Rename and use new interface.
* lisp/pdf-links.el:Dito.
* lisp/pdf-annot.el:Dito.
|
|
|
|
* lisp/pdf-info.el: New function `pdf-info-getselection'.
(pdf-info-query--transform-response): Added getselection.
(pdf-info-gettext): Added selection-style argument.
* lisp/pdf-misc.el (pdf-misc-minor-mode-map): Added mouse
binding. C-w will now copy the selected region, if there is one.
(pdf-misc-selection-convert-commands): New variable.
* lisp/pdf-render.el (pdf-render-redraw--1): Added silent argument.
(pdf-render-redraw-document): Dito.
(pdf-render-momentarily-process): Dropped caching files.
* src/epdfinfo.c: Added new command getselection.
(print_annot): Removed suspicous type cast.
(cmd_gettext): Added selection-style argument.
|
|
+ Use a smaller margin.
* pdf-sync
+ Push mark before jumping to the source.
+ Offset not needed.
* pdf-util
+ Reduced default timeout.
* epdinfo.c
+ Use proper page boundaries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|