<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pdf-tools.git/lisp/pdf-annot.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>feat: integrate pdf-view-roll-minor-mode with existing features</title>
<updated>2025-12-31T17:31:15+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2025-12-31T08:18:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=2603233d2b3814c75c762783327f1fd633f82549'/>
<id>2603233d2b3814c75c762783327f1fd633f82549</id>
<content type='text'>
Update all pdf-tools features to work correctly when
pdf-view-roll-minor-mode is active:

- pdf-isearch: Search across all displayed pages simultaneously
- pdf-links: Link selection works with multiple visible pages
- pdf-annot: Annotations work on correct page, add pdf-annot-edit
  command for avy-style annotation editing
- pdf-sync: SyncTeX jumps work with continuous scroll mode
- pdf-view: Display and navigation functions updated for multi-page
- pdf-util: Coordinate transformation updates for visible pages
- pdf-cache: Simplify prefetch (remove timer indirection)
- pdf-occur: Minor compatibility updates

The mode is experimental. Some features may not interact perfectly
with roll mode. Enable with M-x pdf-view-roll-minor-mode.

API changes:
- pdf-view-active-region now includes page information
- isearch results include page data for multi-page display

Co-authored-by: Daniel Nicolai &lt;dalanicolai@gmail.com&gt;
Co-authored-by: Rahguzar &lt;aikrahguzar@zohomail.eu&gt;
Co-authored-by: Ihor Radchenko &lt;yantar92@gmail.com&gt;
Co-authored-by: NightMachinery &lt;feraidoonmehri@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update all pdf-tools features to work correctly when
pdf-view-roll-minor-mode is active:

- pdf-isearch: Search across all displayed pages simultaneously
- pdf-links: Link selection works with multiple visible pages
- pdf-annot: Annotations work on correct page, add pdf-annot-edit
  command for avy-style annotation editing
- pdf-sync: SyncTeX jumps work with continuous scroll mode
- pdf-view: Display and navigation functions updated for multi-page
- pdf-util: Coordinate transformation updates for visible pages
- pdf-cache: Simplify prefetch (remove timer indirection)
- pdf-occur: Minor compatibility updates

The mode is experimental. Some features may not interact perfectly
with roll mode. Enable with M-x pdf-view-roll-minor-mode.

API changes:
- pdf-view-active-region now includes page information
- isearch results include page data for multi-page display

Co-authored-by: Daniel Nicolai &lt;dalanicolai@gmail.com&gt;
Co-authored-by: Rahguzar &lt;aikrahguzar@zohomail.eu&gt;
Co-authored-by: Ihor Radchenko &lt;yantar92@gmail.com&gt;
Co-authored-by: NightMachinery &lt;feraidoonmehri@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(pdf-annot): refresh stale annotations before operations</title>
<updated>2025-12-29T03:43:47+00:00</updated>
<author>
<name>bramadams</name>
<email>yasser.araf@belgacom.net</email>
</author>
<published>2025-12-29T03:43:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=4c634387bafee20407de67f0d11eb6c4a225cca9'/>
<id>4c634387bafee20407de67f0d11eb6c4a225cca9</id>
<content type='text'>
Fix "epdfinfo: No such annotation: annot-X-Y" error caused by
annotations getting out-of-sync between buffer and epdfinfo cache.

Add pdf-annot--ensure-fresh function that fetches fresh annotation data
from the server before modifying, deleting, or interacting with annotations.

Fixes: #246
Closes: #260
Author: @bramadams</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix "epdfinfo: No such annotation: annot-X-Y" error caused by
annotations getting out-of-sync between buffer and epdfinfo cache.

Add pdf-annot--ensure-fresh function that fetches fresh annotation data
from the server before modifying, deleting, or interacting with annotations.

Fixes: #246
Closes: #260
Author: @bramadams</pre>
</div>
</content>
</entry>
<entry>
<title>[pdf-annot] Fix: remove obsolete annotation-properties variables</title>
<updated>2024-04-03T14:38:32+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2024-04-03T14:16:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=aee2f6d6413c3ed510baa5beeacb122a1ef406f7'/>
<id>aee2f6d6413c3ed510baa5beeacb122a1ef406f7</id>
<content type='text'>
Replace `pdf-annot-default-markup-annotation-properties` and
`pdf-annot-default-text-annotation-properties` with the newer
`pdf-annot-default-annotation-properties`, and remove their use in
`pdf-annot-merge-alists`.

As a side-effect, this fixes broken functionality when providing
defaults for reading colors.

Closes: #268
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace `pdf-annot-default-markup-annotation-properties` and
`pdf-annot-default-text-annotation-properties` with the newer
`pdf-annot-default-annotation-properties`, and remove their use in
`pdf-annot-merge-alists`.

As a side-effect, this fixes broken functionality when providing
defaults for reading colors.

Closes: #268
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix: create alias for x-gtk-* variables for Emacs &gt;28</title>
<updated>2024-03-17T08:49:09+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2023-06-11T07:02:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=f9ab15ee19f42f742a88b979a0fe6d097449645a'/>
<id>f9ab15ee19f42f742a88b979a0fe6d097449645a</id>
<content type='text'>
The x-gtk prefix has been dropped in Emacs 29.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The x-gtk prefix has been dropped in Emacs 29.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix: Keep cursor on the same line when reopening list of annots</title>
<updated>2023-06-10T19:48:19+00:00</updated>
<author>
<name>Pedro Ribeiro Mendes Júnior</name>
<email>pedrormjunior@gmail.com</email>
</author>
<published>2023-04-08T21:17:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=70865fb38ddf97023e7d23a7cc8ff22b13b643b0'/>
<id>70865fb38ddf97023e7d23a7cc8ff22b13b643b0</id>
<content type='text'>
Check if the buffer of the list of annotations already exists. In that
case, avoid calling `tabulated-list-print` because the call to that
function makes the cursor move to the beginning of the buffer.

Tested for:
- the buffer of the list of annotations already exists;
- a new note is created;
- that buffer is reopened with the cursor on the same position as
  previous left;

and the newly inserted note appears as expected.

Closes: #211
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Check if the buffer of the list of annotations already exists. In that
case, avoid calling `tabulated-list-print` because the call to that
function makes the cursor move to the beginning of the buffer.

Tested for:
- the buffer of the list of annotations already exists;
- a new note is created;
- that buffer is reopened with the cursor on the same position as
  previous left;

and the newly inserted note appears as expected.

Closes: #211
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow creation of markup annotations without a text selection</title>
<updated>2023-06-10T19:29:58+00:00</updated>
<author>
<name>Augusto Stoffel</name>
<email>arstoffel@gmail.com</email>
</author>
<published>2023-02-11T16:27:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=97cffdd1b214d0c6e904630468550802d20f4601'/>
<id>97cffdd1b214d0c6e904630468550802d20f4601</id>
<content type='text'>
This allows calling `pdf-info-addannot` from Lisp with a nil
`markup-edges` argument, which was previously disallowed.

In this case, the annotation covers exactly the selected region of the
page, without attempting to match it to a certain text region.

This means that you can now highlight an exact region! Just select the
region by holding down the Meta key and dragging the mouse. Then
invoke `pdf-annot-add-highlight-markup-annotation` (with `C-c C-a h`)
and voila!

Closes: #191
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows calling `pdf-info-addannot` from Lisp with a nil
`markup-edges` argument, which was previously disallowed.

In this case, the annotation covers exactly the selected region of the
page, without attempting to match it to a certain text region.

This means that you can now highlight an exact region! Just select the
region by holding down the Meta key and dragging the mouse. Then
invoke `pdf-annot-add-highlight-markup-annotation` (with `C-c C-a h`)
and voila!

Closes: #191
</pre>
</div>
</content>
</entry>
<entry>
<title>Use 'C-c C-k' to abandon edits of annotation contents</title>
<updated>2023-06-10T18:59:04+00:00</updated>
<author>
<name>Augusto Stoffel</name>
<email>arstoffel@gmail.com</email>
</author>
<published>2023-02-12T14:30:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=6a86b29140b4e84d9aff5093c444255c20eef463'/>
<id>6a86b29140b4e84d9aff5093c444255c20eef463</id>
<content type='text'>
This is consistent with other Emacs packages such as org-capture, VC,
Magit, etc.

Closes: #192
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is consistent with other Emacs packages such as org-capture, VC,
Magit, etc.

Closes: #192
</pre>
</div>
</content>
</entry>
<entry>
<title>Display a header line when editing annotation contents</title>
<updated>2023-06-10T18:56:56+00:00</updated>
<author>
<name>Augusto Stoffel</name>
<email>arstoffel@gmail.com</email>
</author>
<published>2023-02-12T09:31:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=154e31dc3cee2cfdd62e5ff11f17b5addee18f93'/>
<id>154e31dc3cee2cfdd62e5ff11f17b5addee18f93</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make selection style configurable by introducing a new variable</title>
<updated>2023-01-16T18:27:08+00:00</updated>
<author>
<name>lennonhill</name>
<email>@</email>
</author>
<published>2022-01-19T22:20:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=8ddf4c709829ea0225771891a7b404900768d9f1'/>
<id>8ddf4c709829ea0225771891a7b404900768d9f1</id>
<content type='text'>
Make selection-style configurable via `pdf-view-selection-style`. A
default value of `word` might be desirable, as selection is usually
intended to select entire words is perceptually faster than
glyph-based selection.

This affects selections and highlights, but not search.

Limitation:
The selection type is fixed for all currently selected regions.
Selecting multiple regions with different selection styles at the same
time would require storing the selection style for every region and
replacing the protocol for `cmd_addannot` with a more flexible one,
e.g. the keyword-based one used by `cmd_renderpage`.

Closes: #73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make selection-style configurable via `pdf-view-selection-style`. A
default value of `word` might be desirable, as selection is usually
intended to select entire words is perceptually faster than
glyph-based selection.

This affects selections and highlights, but not search.

Limitation:
The selection type is fixed for all currently selected regions.
Selecting multiple regions with different selection styles at the same
time would require storing the selection style for every region and
replacing the protocol for `cmd_addannot` with a more flexible one,
e.g. the keyword-based one used by `cmd_renderpage`.

Closes: #73
</pre>
</div>
</content>
</entry>
<entry>
<title>pdf-annot: Fix: Render color only if it's defined.</title>
<updated>2022-12-02T07:15:06+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2022-12-02T07:15:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=c3c05e3bc564cd1a009d944e8002634ffcaf7376'/>
<id>c3c05e3bc564cd1a009d944e8002634ffcaf7376</id>
<content type='text'>
Free-text annotations do not have a color associated with them, which
causes annotation listing to crash (since the default value of
`pdf-annot-list-highlight-type` is now true). This bug was introduced
in bb0b71f5bafd81d0b5647c4ec48fafa0bb6f6c21
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Free-text annotations do not have a color associated with them, which
causes annotation listing to crash (since the default value of
`pdf-annot-list-highlight-type` is now true). This bug was introduced
in bb0b71f5bafd81d0b5647c4ec48fafa0bb6f6c21
</pre>
</div>
</content>
</entry>
</feed>
