Closed sunlin7 closed 11 months ago
Hi,
The (yasnippet-snippets-initialize) will be called twice for the yasnippet-snippets installed by package.el. It happened for the eval-after-load is marked as ;;;autoload, it will appear in the file yasnippet-snippets-autoloads.el which is generated by the package,el, then the function will be called in the autoloads file and the main file. https://github.com/AndreaCrotti/yasnippet-snippets/blob/8e4c521252501dd9ad71ea78fae14683ab7a14cb/yasnippet-snippets.el#L73-L75
(yasnippet-snippets-initialize)
yasnippet-snippets
package.el
eval-after-load
;;;autoload
yasnippet-snippets-autoloads.el
package,el
This change will detect the duplicate call and ignore it. Please help review and merge the the patch. Thanks.
Thanks!
Hi,
The
(yasnippet-snippets-initialize)
will be called twice for theyasnippet-snippets
installed bypackage.el
. It happened for theeval-after-load
is marked as;;;autoload
, it will appear in the fileyasnippet-snippets-autoloads.el
which is generated by thepackage,el
, then the function will be called in the autoloads file and the main file. https://github.com/AndreaCrotti/yasnippet-snippets/blob/8e4c521252501dd9ad71ea78fae14683ab7a14cb/yasnippet-snippets.el#L73-L75This change will detect the duplicate call and ignore it. Please help review and merge the the patch. Thanks.