Debian Patches

Status for yasnippet/0.14.0+git20230912.76e1eee6-1

Patch Description Author Forwarded Bugs Origin Last update
repair-documentation-build.patch Repair documentation build

The following form produces an error in emacs 28+ :

(replace-regexp-in-string "\\\\{[^}]+}"
(lambda (match)
(substitute-command-keys match))
"\\{yas-minor-mode-map}")

The yas--document-symbol function needs to be repaired.

Since command key substitution is done anyway in the next block, we can simply
remove it from the block that does org-example block enclosing.
Aymeric Agon-Rambosson <aymeric.agon@yandex.com> yes 2022-12-28
unbreak-other-unit-tests-(trampoline).patch Unbreak unit tests that failed due to trampoline compilation

The trampoline compilation of primitive buffer-list due to macro
yas-with-overriden-buffer-list makes three tests fail :
* 5/91 basic-jit-loading
* 6/91 basic-jit-loading-with-compiled-snippets
* 80/91 visiting-compiled-snippets

We aren't exactly sure why.

In the meantime, a quick workaround is to deactivate trampoline compilation
optimisation for this primitive.
Aymeric Agon-Rambosson <aymeric.agon@yandex.com> yes 2023-01-15
repair-major-modes-unit-tests.patch Repair major modes unit test

Two unit tests compare lists of major modes. However lisp-data-mode is
added twice, so the lists never compare as equal.

This is due to upstream commit 1ca316fb which adds lisp-data-mode despite the
fact that it is already there.
Aymeric Agon-Rambosson <aymeric.agon@yandex.com> invalid 2023-10-07
condition-tests-11-and-12.patch Condition two tests that fail with emacs 29+
Those two tests error out during the functions yas-skip-and-clear-field or
yas-skip-and-clear-or-delete-char.

More specifically, during the call to yas-next-field, which is common to both
functions.

In emacs 28, upon the return from yas--skip-and-clear, the functions
yas-active-snippets and yas-current-field evaluated to non-nil, which guaranteed
yas-next-field to work without error.

This is not the case anymore with emacs 29 : on the return from
yas--skip-and-clear, both functions yas-active-snippets and yas-current-field
evaluate to nil, which makes yas-next-field to error out.

We disable both these tests in emacs 29+.

Upstream was notified (https://github.com/joaotavora/yasnippet/issues/1175)
Aymeric Agon-Rambosson <aymeric.agon@yandex.com> no 2023-10-08

All known versions for source package 'yasnippet'

Links