diff options
| author | Andreas Politz <politza@hochschule-trier.de> | 2015-06-13 13:04:31 +0200 |
|---|---|---|
| committer | Andreas Politz <politza@hochschule-trier.de> | 2015-06-13 13:14:47 +0200 |
| commit | c5d0ce284cedef975b7bce53c33dfab65eb3e069 (patch) | |
| tree | 8b319526b96a11ac65f5fcceaa089376b1ad0092 /test | |
| parent | 9ed3f1ad1471f5e2abe720c113544b9cebb0c36f (diff) | |
Fix page mapping.
* 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.
Diffstat (limited to 'test')
| -rw-r--r-- | test/pdf-virtual.ert | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pdf-virtual.ert b/test/pdf-virtual.ert index 6d0773c..1c2a5a6 100644 --- a/test/pdf-virtual.ert +++ b/test/pdf-virtual.ert @@ -60,7 +60,7 @@ (dotimes (i (length pages)) (should (equal (1+ i) (pdf-virtual-document-page-of - "test.pdf" (nth i pages) doc))))))) + "test.pdf" (nth i pages) nil doc))))))) (ert-deftest pdf-virtual-open () (with-pdf-virtual-test-buffer |
