| Age | Commit message (Collapse) | Author |
|
Add automated tests for pdf-roll functionality:
- pdf-roll-page-to-pos utility function
- pdf-roll-page-at-current-pos with various positions
- Customization defaults
- Symbol properties
- Minor mode keymap existence
Fix bug in pdf-roll-margin-color defcustom where the :set
function didn't actually set the variable value.
|
|
The registerv-make function was deprecated in Emacs 27.1. Replace it
with a proper cl-defstruct (pdf-view-register) and cl-defmethod
implementations for register-val-jump-to, register-val-describe,
and register-val-insert.
Add tests for the register API used by pdf-view:
- pdf-view-registerv-make-creates-register: verifies register creation
- pdf-view-register-val-insert: verifies insert method works
- pdf-view-position-to-register-stores-position: verifies store/retrieve
Fixes: #333
|
|
Make selection-style configurable via `pdf-view-selection-style`. A
default value of `word` might be desirable, as selection is usually
intended to select entire words is perceptually faster than
glyph-based selection.
This affects selections and highlights, but not search.
Limitation:
The selection type is fixed for all currently selected regions.
Selecting multiple regions with different selection styles at the same
time would require storing the selection style for every region and
replacing the protocol for `cmd_addannot` with a more flexible one,
e.g. the keyword-based one used by `cmd_renderpage`.
Closes: #73
|
|
This is dead-code for supporting Emacs <26.3
Relates to: #26
|
|
* Use `--run` flag to execute nix-shell
The `--command` flag is only required to spawn a interactive shell.
* Do not require gcc to build with nix-shell
`nix-shell` already sets CC with a C compiler, for instance Clang on darwin.
* Remove outdated require in test-helper
`f.el` is not needed anywhere.
|
|
- 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
|
|
|
|
|
|
"test-helper.el" isn't a library intended to be loaded with `require`.
Instead it is loaded with `load` by `ert-runner` itself. Because of
that, it is confusing to provide a feature using `provide`. It also
isn't possible to use `require' to load `test-helper` because that
might, depending on the order of `load-path` load the "test-helper.el"
of another package that used `ert-runner`.
This is also discussed at rejeep/ert-runner.el#38.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Use package-directory-list instead of copying the files.
|
|
* lisp/pdf-virtual.el (pdf-virtual-define-adapter, renderpage,
setoptions):
* test/pdf-virtual.ert (pdf-virtual-adapter-argument-handling): Test it.
|
|
* test/pdf-virtual.ert: Skip if < 24.4.
|
|
* test/run-tests.el (package-user-dir): Copy the directory tree.
|
|
* lisp/pdf-virtual.el (pdf-virtual-document-page-of): Allow the result to be limited.
(pdf-virtual--perform-search): Limit matches to the searched pages.
* test/pdf-virtual.ert (pdf-virtual-document-page-of): Adjust test.
|
|
* 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-tools.el: Add let-alist as requirement.
* lisp/pdf-occur.el (pdf-occur-add-matches, pdf-occur-start-search): Use new interface.
* lisp/pdf-isearch.el (pdf-isearch-search-page): Use new interface.
* lisp/pdf-info.el (pdf-info-query--transform-action,
pdf-info-query--transform-response): Prefer alists over trees or
positional lists, where appropriate.
(pdf-info-search-string,pdf-info-search-regexp,pdf-info-pagelinks
pdf-info-charlayout,pdf-info-pagelinks, pdf-info-outline,
pdf-info-synctex-forward-search, pdf-info-synctex-backward-search):
Updated documentation.
* test/pdf-info.ert: Require let-alist, use new interface.
* Makefile (bytecompile, test): Use cask.
* Cask (depends-on): Add let-alist.
* lisp/pdf-outline.el: Use new interface.
* lisp/pdf-links.el: Use new interface.
* lisp/pdf-cache.el: Use new interface.
* lisp/pdf-sync.el: Use new interface.
|
|
|
|
* lisp/tablist-filter.el (python-mode-hook): Loading
semantic/wisent/comp installs a python hook, avoid it.
|
|
* lisp/pdf-info.el (pdf-info-check-epdfinfo): New function: Send a
simple command and check for errors.
(pdf-info-process-assert-running): Use it.
* test/pdf-info.ert (pdf-info-check-epdfinfo): Test it.
|
|
|
|
|
|
* test/pdf-info.ert (skip-unless): Don't skip if arg is non-nil.
|
|
* test/pdf-info.ert (pdf-info-textlayout):
|
|
* test/pdf-util.ert:
* test/pdf-sync.ert:
|
|
* test/test.tex: Add empty page.
* test/pdf-info.ert (pdf-test-with-test-pdf): Moved to run-tests.el
(pdf-info-number-of-pages): Adjust.
* test/run-tests.el:
|
|
* test/pdf-info.ert (pdf-info-getannots): Annotations seem to be
somewhat broken in poppler 0.18.
|
|
* test/pdf-info.ert(skip-unless): Fake skipped tests as accepted failures.
|
|
* test/pdf-info.ert (pdf-info-getannot): Annotations seem to be
somewhat broken in poppler 0.18.
|
|
* test/pdf-info.ert (pdf-info-addannot, pdf-info-delannot,
pdf-info-mvannot, pdf-info-save, pdf-info-editannot): Only run those if writing
annotations is supported.
|
|
* test/pdf-info.ert (pdf-info-pagelinks): caddr is a cl function, use
car + cddr instead.
|
|
* test/test.tex:
|
|
* test/pdf-info.ert (pdf-test-with-test-pdf): Added `pdf-info-quit`.
|
|
* test/pdf-info.ert (pdf-info):
|
|
* test/run-tests.el (file-name-directory): Run tests on the installed package.
* server/configure.ac: Get the version from the toplevel Makefile.
* README.org: Adjust installation instructions.
* Makefile: Don't require cask anymore.
* Cask: Adjust dependencies.
* .gitignore: Add package files.
|
|
|
|
|