Skip to content

Commit 1885cef

Browse files
committed
Merge branch 'feature/emacs-26.3'
Creating a merge commit in order to create a 1.0.0 tag. Note that this merge has breaking changes, as described in the NEWS section. * feature/emacs-26.3: autobuild: Recognize NetBSD and install packages via pkgin Bump the minimum Emacs version to 26.3! 🎉🤞 Extend docker testing framework to test against Emacs versions Update and cleanup the Install section Make sure pkg-config is correctly set in autobuild Add support for Alpine Linux to autobuild Render crisp images for HiDPI screens by default Remove Emacs 24.4 guards for cua-mode Remove compatibility function for image-mode-winprops Remove pdf-util-window-pixel-width, fallback to window-body-width Remove macro / function re-definitions Remove bugfix for imenu in Emacs 24.3 and below Remove guards in `pdf-virtual` tests and code. Explicitly declare documentation files as Org files Add a byteclean target in the Makefile
2 parents d6980bc + 997467a commit 1885cef

24 files changed

+418
-545
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
- run:
9696
name: Add Cask and Gnu-SED to the Path
9797
command: |
98-
echo 'export PATH="$HOME"/.cask/bin:"$(brew --prefix)"/opt/gnu-sed/libexec/gnubin:"$PATH"' >> "$BASH_ENV"
98+
echo 'export PATH="$HOME"/.cask/bin:"$(brew --prefix gnu-sed)"/libexec/gnubin:"$PATH"' >> "$BASH_ENV"
9999
- install-pdf-tools-server
100100

101101
workflows:

Cask

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@
99
"server/epdfinfo.exe")
1010

1111
(development
12-
(depends-on "let-alist")
13-
(depends-on "tablist")
1412
(depends-on "ert-runner")
1513
(depends-on "undercover"))

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ $(pkgfile): .cask/$(emacs_version) server/epdfinfo lisp/*.el
2727
bytecompile: .cask/$(emacs_version)
2828
$(CASK) exec $(emacs) --batch -L lisp -f batch-byte-compile lisp/*.el
2929

30+
# Clean bytecompiled sources
31+
byteclean:
32+
rm -f -- lisp/*.elc
33+
rm -f -- lisp/*.eln
34+
3035
# Run ERT tests
3136
test: all
3237
PACKAGE_TAR=$(pkgfile) $(CASK) exec ert-runner
@@ -68,9 +73,8 @@ melpa-package: $(pkgfile)
6873
-f $(pkgname)-melpa.tar
6974

7075
# Various clean targets
71-
clean: server-clean
76+
clean: server-clean byteclean
7277
rm -f -- $(pkgfile)
73-
rm -f -- lisp/*.elc
7478
rm -f -- pdf-tools-readme.txt
7579
rm -f -- pdf-tools-$(version).entry
7680

NEWS

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,24 @@
22

33
* Version 1.0.0 (Under Development)
44
From this version onward, we will follow Semantic Versioning for new ~pdf-tools~ releases.
5-
** Raise the minimum supported version of Emacs to 26.1
6-
Drop support for Emacs 24 and 25. This allows for some code cleanup.
5+
6+
** Breaking changes:
7+
*** Raise the minimum supported version of Emacs to 26.3 #26
8+
Drop support for Emacs 24 and 25. This allows for some code cleanup. *This is a major breaking change*.
9+
*** Change the default value of pdf-view-use-scaling #133
10+
~pdf-view-use-scaling~ is now true by default, leading to rendering of crisp images on high-resolution screens. This should not cause problems on low-resolution screen (other than taking up more cache space / increasing rendering time), but if it does, please ~(setq pdf-view-use-scaling nil)~ in your configuration.
11+
12+
** Improve overall user experience
13+
- Set ~pdf-annot-list-highlight-type~ to true by default.
14+
+ Show annotation color when listing them by default, allow the user to turn them off if need be.
15+
16+
** Make changes required by newer versions of Emacs
17+
- Emacs 29 introduces ~pixel-scroll-precision-mode~, which interferes with ~pdf-view~ scrolling. This is fixed in #124
18+
19+
** Functionality fixes and improvements
20+
- Fix ~revert-buffer~ to correctly work over Tramp #128
21+
- Fix sorting by date in ~pdf-annot-list-mode~ #75
22+
723
* Version 0.91
824
** Change the keybindings for traversing history
925
This is a minor but *breaking change*. ~l~ (backward) and ~r~ (forward) are the conventional bindings for history navigation in Emacs, but ~pdf-tools~ uses ~B~ and ~N~. The previous keybindings are kept as-is for people who were used to it, while introducing ~l~ and ~r~ keybindings as well.

README.org

Lines changed: 150 additions & 253 deletions
Large diffs are not rendered by default.

TODO

Lines changed: 0 additions & 26 deletions
This file was deleted.

TODO.org

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#+TITLE: A list of important / desirable tasks
2+
3+
* pdf-isearch
4+
** Allow for entering multi-byte characters with some input-methods.
5+
The PDF buffer is in uni-byte mode. It prohibits the user from inserting multi-byte characters in the minibuffer with some input-methods, while editing the search string.
6+
* pdf-forms
7+
Recent poppler versions have some support for editing forms.
8+
* pdf-annot
9+
** Updating the list buffer is too slow
10+
+ Update it incrementally.
11+
+ Possibly skip the update if the buffer is not visible.
12+
** Make highlighting customizable
13+
* epdfinfo
14+
** Maybe split the code up in several files.
15+
* pdf-view
16+
** Provide some kind of multi-page view
17+
** Make persistent scrolling relative
18+
Currently the scrolling is kept when changing the image's size (in pdf-view-display-image), which is actually not so desirable, since it is absolute. This results e.g. in the image popping out of the window, when it is shrunken.
19+
* pdf-info
20+
** Add a report/debug command, displaying a list of open files and other information.
21+
** Use alists for results instead of positional lists.

lisp/pdf-cache.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,9 @@ WINDOW and IMAGE-WIDTH decide the page and scale of the final image."
429429
(pdf-cache-lookup-image
430430
page
431431
image-width
432-
(if (not pdf-view-use-scaling)
433-
image-width
434-
(* 2 image-width))))
432+
(if pdf-view-use-scaling
433+
(* 2 image-width)
434+
image-width)))
435435
(setq page (pop pdf-cache--prefetch-pages)))
436436
(pdf-util-debug
437437
(when (null page)

lisp/pdf-info.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ error."
305305
(setq pdf-info--queue (tq-create proc))))
306306
pdf-info--queue)
307307

308-
(when (< emacs-major-version 27) (advice-add 'tq-process-buffer :around #'pdf-info--tq-workaround))
308+
(when (< emacs-major-version 27)
309+
(advice-add 'tq-process-buffer :around #'pdf-info--tq-workaround))
310+
309311
(defun pdf-info--tq-workaround (orig-fun tq &rest args)
310312
"Fix a bug in trunk where the wrong callback gets called.
311313

lisp/pdf-outline.el

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -572,23 +572,6 @@ not call `imenu-sort-function'."
572572
(cons title
573573
(nconc (nreverse keep-at-top) menulist))))
574574

575-
;; bugfix for imenu in Emacs 24.3 and below.
576-
(when (condition-case nil
577-
(progn (imenu--truncate-items '(("" 0))) nil)
578-
(error t))
579-
(eval-after-load "imenu"
580-
'(defun imenu--truncate-items (menulist)
581-
"Truncate all strings in MENULIST to `imenu-max-item-length'."
582-
(mapc (lambda (item)
583-
;; Truncate if necessary.
584-
(when (and (numberp imenu-max-item-length)
585-
(> (length (car item)) imenu-max-item-length))
586-
(setcar item (substring (car item) 0 imenu-max-item-length)))
587-
(when (imenu--subalist-p item)
588-
(imenu--truncate-items (cdr item))))
589-
menulist))))
590-
591-
592575

593576
(provide 'pdf-outline)
594577

0 commit comments

Comments
 (0)