<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pdf-tools.git/lisp/pdf-tools.el, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/'/>
<entry>
<title>chore: bump the version of pdf-tools to 1.3.0</title>
<updated>2026-01-01T09:47:52+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2025-12-31T17:24:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=5245f092e35712df6559a7782a93bb61896175dd'/>
<id>5245f092e35712df6559a7782a93bb61896175dd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: bump the version of pdf-tools to 1.2.1</title>
<updated>2025-12-31T17:30:07+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2025-12-31T17:23:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=27a7d4b9ac52b020344274df9680e9ba5f12e412'/>
<id>27a7d4b9ac52b020344274df9680e9ba5f12e412</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: release version 1.2.0</title>
<updated>2025-12-30T12:49:46+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2025-12-30T12:49:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=9d948a0d8a2da08367bfe34c5d14f638ebb253b0'/>
<id>9d948a0d8a2da08367bfe34c5d14f638ebb253b0</id>
<content type='text'>
Bump version to 1.2.0 and prepare 1.3.0 development cycle.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bump version to 1.2.0 and prepare 1.3.0 development cycle.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for Android Emacs using Termux</title>
<updated>2025-12-29T04:15:02+00:00</updated>
<author>
<name>Johan Widén</name>
<email>j.e.widen@gmail.com</email>
</author>
<published>2023-07-29T09:08:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=d89686e4e0b35d8a0deff5d8709b81edd5cd5630'/>
<id>d89686e4e0b35d8a0deff5d8709b81edd5cd5630</id>
<content type='text'>
Notes from the original PR:

The dependencies for android in autobuild can not be installed in
pdf-tools-install, they have to be installed manually in Termux. But
the dependencies are checked when running autobuild.

pdf-tools-install successfully installs epdfinfo in Android Emacs. One
can then view pdf files.

The shebang in autobuild does not work in Termux, I therefore had to
create a separate script "autobuild.android" that in turn executes
autobuild. The problem with the shebang is that "env" in Termux is not
located at "/usr/bin/env".

pdf-tools/Makefile does currently not work in Android Emacs, but it is
not needed for running pdf-tools-install. Fixing this will have to be
done in a separate pull request, if deemed necessary. Reason: There is
yet no consensus for how to implement a command line emacs, to be run
in batch mode, in Android Emacs.

I have successfully run "make test" in Ubuntu, in the repo feature
branch. Running "make server-test" in the master branch fails, so I
have not tested this in the feature branch.

Closes: #230
Author: @johanwiden
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Notes from the original PR:

The dependencies for android in autobuild can not be installed in
pdf-tools-install, they have to be installed manually in Termux. But
the dependencies are checked when running autobuild.

pdf-tools-install successfully installs epdfinfo in Android Emacs. One
can then view pdf files.

The shebang in autobuild does not work in Termux, I therefore had to
create a separate script "autobuild.android" that in turn executes
autobuild. The problem with the shebang is that "env" in Termux is not
located at "/usr/bin/env".

pdf-tools/Makefile does currently not work in Android Emacs, but it is
not needed for running pdf-tools-install. Fixing this will have to be
done in a separate pull request, if deemed necessary. Reason: There is
yet no consensus for how to implement a command line emacs, to be run
in batch mode, in Android Emacs.

I have successfully run "make test" in Ubuntu, in the repo feature
branch. Running "make server-test" in the master branch fails, so I
have not tested this in the feature branch.

Closes: #230
Author: @johanwiden
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix defcustom :type arguments</title>
<updated>2024-04-11T17:03:21+00:00</updated>
<author>
<name>Aaron L. Zeng</name>
<email>me@bcc32.com</email>
</author>
<published>2024-03-14T19:31:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=94e9f20a78f64a83daf641891923681a52d03919'/>
<id>94e9f20a78f64a83daf641891923681a52d03919</id>
<content type='text'>
These variables' default values should match the :type given in their
definitions, or else M-x customize will display a warning or may even
fail to initialize properly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These variables' default values should match the :type given in their
definitions, or else M-x customize will display a warning or may even
fail to initialize properly.
</pre>
</div>
</content>
</entry>
<entry>
<title>[v2] Auto enable pdf-view-dark-minor-mode if the theme is dark</title>
<updated>2023-06-11T02:36:33+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2023-06-11T02:36:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=d1d331a57e03fa141cb2ebb1bb80f96ab70d0721'/>
<id>d1d331a57e03fa141cb2ebb1bb80f96ab70d0721</id>
<content type='text'>
The first attempt at this workaround was
c451c0e3db5b367d191bddf428e38fd8a21c0102 , which did not work
because (my guess) `pdf-tools-enabled-modes` would be evaluated before
the theme was loaded. This is attempt 2, which sets this value in the
`pdf-view-mode` function itself.

This is meant as a workaround for #166 (which see).

Best guess about what is happening and why this workaround works comes
from @d8660091 (lightly edited):

&gt; I'm using M2 and I can reproduce the issue with just the following
&gt; snippets I extracted from pdf-isearch-current-colors, which was
&gt; invoked during a pdf isearch:

    (add-hook 'pdf-tools-enabled-hook
               (lambda ()
                 (pdf-util-face-colors 'pdf-isearch-match nil)
                 (pdf-util-face-colors 'pdf-isearch-lazy nil)))

&gt; And run `pdf-tools-install`

&gt; I tried adding `(sit-for 1)` before `(delete-frame f)`, the crash
&gt; was gone.

&gt; But I am still not sure what's really happening.

&gt; I think `pdf-view-dark-minor-mode` works because new frame is not
&gt; created and `delete-frame` doesn't happen.

If anyone has an idea about what is happening here and what the
correct way to fix it is, please get in touch via the linked issue!
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The first attempt at this workaround was
c451c0e3db5b367d191bddf428e38fd8a21c0102 , which did not work
because (my guess) `pdf-tools-enabled-modes` would be evaluated before
the theme was loaded. This is attempt 2, which sets this value in the
`pdf-view-mode` function itself.

This is meant as a workaround for #166 (which see).

Best guess about what is happening and why this workaround works comes
from @d8660091 (lightly edited):

&gt; I'm using M2 and I can reproduce the issue with just the following
&gt; snippets I extracted from pdf-isearch-current-colors, which was
&gt; invoked during a pdf isearch:

    (add-hook 'pdf-tools-enabled-hook
               (lambda ()
                 (pdf-util-face-colors 'pdf-isearch-match nil)
                 (pdf-util-face-colors 'pdf-isearch-lazy nil)))

&gt; And run `pdf-tools-install`

&gt; I tried adding `(sit-for 1)` before `(delete-frame f)`, the crash
&gt; was gone.

&gt; But I am still not sure what's really happening.

&gt; I think `pdf-view-dark-minor-mode` works because new frame is not
&gt; created and `delete-frame` doesn't happen.

If anyone has an idea about what is happening here and what the
correct way to fix it is, please get in touch via the linked issue!
</pre>
</div>
</content>
</entry>
<entry>
<title>Auto enable pdf-view-dark-minor-mode if the theme is dark</title>
<updated>2023-06-10T17:40:11+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2023-06-10T17:40:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=c451c0e3db5b367d191bddf428e38fd8a21c0102'/>
<id>c451c0e3db5b367d191bddf428e38fd8a21c0102</id>
<content type='text'>
This is meant as a workaround for #166 (which see).

Best guess about what is happening and why this workaround works comes
from @d8660091 (lightly edited):

&gt; I'm using M2 and I can reproduce the issue with just the following
&gt; snippets I extracted from pdf-isearch-current-colors, which was
&gt; invoked during a pdf isearch:

    (add-hook 'pdf-tools-enabled-hook
               (lambda ()
                 (pdf-util-face-colors 'pdf-isearch-match nil)
                 (pdf-util-face-colors 'pdf-isearch-lazy nil)))

&gt; And run `pdf-tools-install`

&gt; I tried adding `(sit-for 1)` before `(delete-frame f)`, the crash
&gt; was gone.

&gt; But I am still not sure what's really happening.

&gt; I think `pdf-view-dark-minor-mode` works because new frame is not
&gt; created and `delete-frame` doesn't happen.

If anyone has an idea about what is happening here and what the
correct way to fix it is, please get in touch via the linked issue!

Closes: #166
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is meant as a workaround for #166 (which see).

Best guess about what is happening and why this workaround works comes
from @d8660091 (lightly edited):

&gt; I'm using M2 and I can reproduce the issue with just the following
&gt; snippets I extracted from pdf-isearch-current-colors, which was
&gt; invoked during a pdf isearch:

    (add-hook 'pdf-tools-enabled-hook
               (lambda ()
                 (pdf-util-face-colors 'pdf-isearch-match nil)
                 (pdf-util-face-colors 'pdf-isearch-lazy nil)))

&gt; And run `pdf-tools-install`

&gt; I tried adding `(sit-for 1)` before `(delete-frame f)`, the crash
&gt; was gone.

&gt; But I am still not sure what's really happening.

&gt; I think `pdf-view-dark-minor-mode` works because new frame is not
&gt; created and `delete-frame` doesn't happen.

If anyone has an idea about what is happening here and what the
correct way to fix it is, please get in touch via the linked issue!

Closes: #166
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump pdf-tools version to v1.1.0</title>
<updated>2023-06-10T14:54:39+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2023-06-10T14:17:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=a9c9a12c3ecf2005fa641059368ac8284f507620'/>
<id>a9c9a12c3ecf2005fa641059368ac8284f507620</id>
<content type='text'>
This is necessary because the extensive changes in `epdfinfo` do not
get picked up by third party package management systems unless they
enter Melpa Stable.

This mismatch caused a number of issues, which I expect this bump will
now fix. Thanks to @cyrilarnould and @barslmn for pointing this out.

I am also using this bump to close long-open install issues. The idea
here is that these issues are being lost. I would rather everyone
upgrade to the latest versions of `pdf-tools` and `epdfinfo` and then
re-report the issues if they still exist.

Please note: as of this release, users are not expected to manually
set anything on their machines during installation. (for example:
`$PKG_CONFIG_PATH`). The installation should *just work*. If it does
not, please open a ticket so that we can track it.

Fixes: #213
Closes: #177
Closes: #216
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is necessary because the extensive changes in `epdfinfo` do not
get picked up by third party package management systems unless they
enter Melpa Stable.

This mismatch caused a number of issues, which I expect this bump will
now fix. Thanks to @cyrilarnould and @barslmn for pointing this out.

I am also using this bump to close long-open install issues. The idea
here is that these issues are being lost. I would rather everyone
upgrade to the latest versions of `pdf-tools` and `epdfinfo` and then
re-report the issues if they still exist.

Please note: as of this release, users are not expected to manually
set anything on their machines during installation. (for example:
`$PKG_CONFIG_PATH`). The installation should *just work*. If it does
not, please open a ticket so that we can track it.

Fixes: #213
Closes: #177
Closes: #216
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump the minimum Emacs version to 26.3! 🎉🤞</title>
<updated>2022-11-25T07:27:23+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2022-10-13T04:18:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=96703b2bb5c937afd05778086c43280b0593fe99'/>
<id>96703b2bb5c937afd05778086c43280b0593fe99</id>
<content type='text'>
All the code working around issues in Emacs 24 and Emacs 25 has been
removed at this point! (or at least, as much of it as I could find)

I've tested against Emacs 28 and it's working fine. I need many more
automated tests to ensure that behaviour does not break across
multiple Emacs versions / operating systems, but that is a topic for
another day.

This commit bumps the version of `pdf-tools` from `1.0.0snapshot` to
`1.0.0`. I do not expect this to have any real change either on Melpa
Stable or Non-GNU Elpa, since they already parse the version as 1.0.0.

I am not creating a tag at the moment. I will do some more cleanup
work and directly create a `1.1.0` post those changes.

Closes: #26
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All the code working around issues in Emacs 24 and Emacs 25 has been
removed at this point! (or at least, as much of it as I could find)

I've tested against Emacs 28 and it's working fine. I need many more
automated tests to ensure that behaviour does not break across
multiple Emacs versions / operating systems, but that is a topic for
another day.

This commit bumps the version of `pdf-tools` from `1.0.0snapshot` to
`1.0.0`. I do not expect this to have any real change either on Melpa
Stable or Non-GNU Elpa, since they already parse the version as 1.0.0.

I am not creating a tag at the moment. I will do some more cleanup
work and directly create a `1.1.0` post those changes.

Closes: #26
</pre>
</div>
</content>
</entry>
<entry>
<title>Guard against dead buffers in pdf-tools-install-noverify</title>
<updated>2022-04-26T16:07:28+00:00</updated>
<author>
<name>Daniel Nicolai</name>
<email>dalanicolai@gmail.com</email>
</author>
<published>2022-04-20T12:47:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=ffba5f7208a2cf36df80fac9a17731f514f40060'/>
<id>ffba5f7208a2cf36df80fac9a17731f514f40060</id>
<content type='text'>
I am not sure how to 'consistently' reproduce the issue that this
commit fixes. But I was experiencing the issue as reported at
https://github.com/syl20bnr/spacemacs/issues/15106, where for some
reason `pdf-view-mode` did not open in evil `evilified-state`.

After (a long time of) hunting down the cause, I found that
`pdf-tools` (silently) errors when the `buffer-list` contains killed
buffers. The error occurs because `pdf-tools-install-noverify` calls
`with-current-buffer` with the killed buffer. This commit simply adds
the `buffer-live-p` check before the `with-current-buffer` form gets
called.

Closes: #93
Potentially Fixes: syl20bnr/spacemacs#15106
Author: @dalanicolai
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I am not sure how to 'consistently' reproduce the issue that this
commit fixes. But I was experiencing the issue as reported at
https://github.com/syl20bnr/spacemacs/issues/15106, where for some
reason `pdf-view-mode` did not open in evil `evilified-state`.

After (a long time of) hunting down the cause, I found that
`pdf-tools` (silently) errors when the `buffer-list` contains killed
buffers. The error occurs because `pdf-tools-install-noverify` calls
`with-current-buffer` with the killed buffer. This commit simply adds
the `buffer-live-p` check before the `with-current-buffer` form gets
called.

Closes: #93
Potentially Fixes: syl20bnr/spacemacs#15106
Author: @dalanicolai
</pre>
</div>
</content>
</entry>
</feed>
