| Age | Commit message (Collapse) | Author |
|
|
|
|
|
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
|
|
|
|
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
|
|
... rather than 'python' (issues with Python 3 and Cask on Windows)
|
|
Fixes https://github.com/hlissner/doom-emacs/issues/3244
Thanks!
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
Also, use `pdf-util-assert-pdf-buffer` instead of
`pdf-tools-assert-pdf-buffer`.
|
|
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.
|
|
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.
|
|
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)
|
|
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
|
|
|
|
'set-window-hscroll does not update image-mode's hscroll value
|
|
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
|
|
Fix typos
|
|
|
|
|
|
|
|
|
|
|
|
Fix some typos
|
|
Typos found with codespell.
|
|
Introduces a variable pdf-view-have-image-mode-pixel-vscroll which should be non-nil, if image-mode scrolls vertically pixel-wise.
|
|
This fixes politza#511.
|
|
autobuild: fix finding libffi; fixes #480
|
|
|
|
|
|
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).
|
|
|
|
Adds a function for returning the label of the current page
|
|
Fix definition of pdf-cache-prefetch-minor-mode keymap
|
|
`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.
|
|
|
|
Don't go to initial page when activating `pdf-view-mode`
|
|
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`.
|
|
|
|
Support Macports in server/autobuild
|
|
|
|
|
|
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.
|
|
|
|
|