summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-11(First Cut) Add a CircleCI config file for running testsVedang Manerikar
2021-03-07Add generated files to gitignoreVedang Manerikar
2021-03-07Add option to customize fill-column in pdf outlinesMatt Huszagh
This commit gives the user the option to disable the action of `fill-column` (or customize it to whatever they want) in pdf-outline buffers. This is useful because outlines frequently contain long lines, and breaking up the lines destroys the formatting and integrity of the outline. Closes politza/pdf-tools#602, politza/pdf-tools#593
2021-02-27Fix: remove deprecation warning for org-open-link-from-stringVedang Manerikar
2021-02-21Add pdf-view navigation remapsWill Dey
Modes like evil or xah-fly-keys don’t always use C-n/C-p for navigation, so adding remapping bindings like `[remap next-line]` to the `pdf-view-mode-map` will let PDF Tools work as expected no matter what keys the user usually has bound to next-line/previous-line. Some other entries in the map already use key remapping for things like `goto-line`, so this PR just adds some more common remaps to keep a consistent user experience. Also, re-aligned the commands with whitespace since some of the new names messed up the old alignment
2021-02-21Run the Appveyor Cask installation script using 'python2'Jordan Wilson
... rather than 'python' (issues with Python 3 and Cask on Windows)
2021-02-21Prevent apt-get from requesting confirmationpancho horrillo
Fixes https://github.com/hlissner/doom-emacs/issues/3244 Thanks!
2021-02-21Add pdf-virtual-global-minor-mode to pdf-tools custom groupJonas Bernoulli
2021-02-21Fix typosJonas Bernoulli
2021-02-21Teach outline-minor-mode about the heading syntax we useJonas Bernoulli
2021-02-21Enforce use of spaces for indentationJonas Bernoulli
2021-02-21Remove declare-function calls for macros moved to pdf-macs.elVedang Manerikar
We are now directly requiring these macros from pdf-macs.el, so we should not be using `declare-function` anymore. Closes politza/pdf-tools#626, politza/pdf-tools#625
2021-02-21Factor out macros to ensure they're visible in pdf-cache.elAndrew Whatson
2021-02-21Fix: indentation of code in pdf-view-themed-minor-modeVedang Manerikar
Also, use `pdf-util-assert-pdf-buffer` instead of `pdf-tools-assert-pdf-buffer`.
2021-02-21Add themed colour modeNathanael Gentry
Note that this mode does not keep updated with theme changes; it only applies the colors of the current theme. Hook into `enable-theme` and `disable-theme` for that.
2021-02-20Fix typos and rename variables around printing PDFsVedang Manerikar
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.
2021-02-20Update pdf-misc.elStephen Eglen
I think this typo was missed.
2021-02-20Fixing breaking change in emacs27 image-modeTyler Ware
In emacs27 `image-set-window-vscroll` changed from taking lines to taking pixels. This has introduced a bug with usages of `pdf-util-required-vscroll`, which returns lines. Usages of that function are calling `image-set-window-vscroll`, so this change is to move `pdf-util-required-vscroll` to using pixels as well (only for <=emacs27)
2021-02-20Don’t record temporary window selection changesMichal Nazarewicz
There are places with code similar to the following: (save-selected-window (select-window window) …) For the purposes of this commit, this is roughly equivalent to: (let ((old-window (selected-window))) (select-window window) … (select-window old-window 'norecord)) That is, when ‘save-selected-window’ restores the state, it passes ‘norecord’ argument to ‘select-window’ function. As a result, when selected window is initially changed ‘buffer-list-update-hook’ is called however it is not invoked when selected window is restored. This confuses any code using that hook to track selected window. To address this issue, change calls such as the above to use ‘norecord’ argument. This way, ‘buffer-list-update-hook’ is called neither when the new window is temporarily selected nor when old window is restored. For reference, this is indeed what documentation of ‘select-window’ says should be done: > Run ‘buffer-list-update-hook’ unless NORECORD is non-nil. Note that > applications […] often select a window temporarily […] to simplify > coding. As a rule, such selections should not be recorded and > therefore will not pollute ‘buffer-list-update-hook’. Selections > that "really count" are those causing a visible change in the next > redisplay of WINDOW’s frame and should always be recorded. Fixes: https://github.com/mina86/auto-dim-other-buffers.el/issues/26
2021-02-20Indentation fixesVedang Manerikar
2020-05-12Merge pull request #570 from tylerware/fix/preserve-image-mode-hscrollpolitza
'set-window-hscroll does not update image-mode's hscroll value
2020-05-12'set-window-hscroll does not update image-mode hscrollTyler Ware
image-mode keeps it's own copy of hscroll and during redisplay it will grab that value and use it. If you don't update image-mode's hscroll, but directly set the window's hscroll you will (after triggering a redisplay) find your pdf scrolled all the way to the left margin. Quite unfortunate if you happen to be zoomed in. This fixes that by using image-mode's method for updating hscroll
2020-04-27Merge pull request #565 from tarsiiformes/typospolitza
Fix typos
2020-04-27Fix typosJonas Bernoulli
2020-02-14Fix case-folding when starting occur from isearchAndreas Politz
2019-12-28Adapt to changes in synctex APIAndreas Politz
2019-12-28Use Synctex 1.21Andreas Politz
2019-12-28Prepare for update of synctexAndreas Politz
2019-11-28Merge pull request #525 from DamienCassou/typospolitza
Fix some typos
2019-11-26Fix typosDamien Cassou
Typos found with codespell.
2019-10-31Adopt to recent changes in EmacsAndreas Politz
Introduces a variable pdf-view-have-image-mode-pixel-vscroll which should be non-nil, if image-mode scrolls vertically pixel-wise.
2019-10-07Sanitise temporary directory/file names using `convert-standard-filename'Jordan Wilson
This fixes politza#511.
2019-09-18Merge pull request #490 from seanfarley/brew-libffipolitza
autobuild: fix finding libffi; fixes #480
2019-07-01Remember to redisplay pages which were changed while hiddenAndreas Politz
2019-06-28Avoid running hooks in a not yet completely set up bufferAndreas Politz
2019-04-18autobuild: fix finding libffi; fixes #480Sean Farley
Since Homebrew install libffi as keg-only (meaning it's not linked into /usr/local) we need to manually set the path (which has a convenient command from brew).
2019-04-13Bump tablist version requirementAndreas Politz
2019-04-13Merge pull request #483 from andersjohansson/current-pagelabelpolitza
Adds a function for returning the label of the current page
2019-04-13Merge pull request #486 from bcc32/masterpolitza
Fix definition of pdf-cache-prefetch-minor-mode keymap
2019-04-12Fix definition of pdf-cache-prefetch-minor-mode keymapAaron L. Zeng
`t` is not a valid keymap. I looked through the other minor-mode definitions and didn't see any other such uses. Found that this was causing me problems, see Wilfred/helpful#114.
2019-03-27Add function for returning current page labelAnders Johansson
2019-03-09Merge pull request #479 from dzop/page-resetpolitza
Don't go to initial page when activating `pdf-view-mode`
2019-03-08Don't go to initial page when activating `pdf-view-mode`Nathaniel Nicandro
This fixes an issue where the page of a PDF being shown in the `selected-window` would be reset if the PDF was different than the PDF of the `current-buffer`.
2019-03-08Fix return valueAndreas Politz
2019-03-01Merge pull request #477 from telotortium/patch-1politza
Support Macports in server/autobuild
2019-03-01Support Macports in server/autobuildRobert Irelan
2019-02-20Use function handling --os argument and caseAndreas Politz
2019-02-20Add the ability to specify which installer to useMohammed Yaseen Mowzer
This is useful when you have two installers on the same machine (e.g. pacman and nix-shell) and you want to choose between one of them.
2019-02-19Add NEWS entry, expand documentation.Andreas Politz
2019-02-19Set :data-2x key as an image property on supported systemsNathaniel Nicandro