diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-04-16 13:07:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-04-16 13:07:24 +0100 |
commit | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (patch) | |
tree | 464c922e949c7e4d5d891fb2cdda5daee5612537 /app-emacs/yasnippet-snippets/files | |
parent | e68d405c5d712af4387159df07e226217bdda049 (diff) |
gentoo resync : 16.04.2022
Diffstat (limited to 'app-emacs/yasnippet-snippets/files')
-rw-r--r-- | app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el | 9 | ||||
-rw-r--r-- | app-emacs/yasnippet-snippets/files/yasnippet-snippets-dir.patch | 18 |
2 files changed, 23 insertions, 4 deletions
diff --git a/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el b/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el index 2db51796990b..4c85ffac5510 100644 --- a/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el +++ b/app-emacs/yasnippet-snippets/files/50yasnippet-snippets-gentoo.el @@ -1,4 +1,5 @@ -(eval-after-load "yasnippet" - '(let ((snippets-dir "@SITEETC@")) - (add-to-list 'yas-snippet-dirs snippets-dir t) - (yas-load-directory snippets-dir t))) +(add-to-list 'load-path "@SITELISP@") +(autoload 'yasnippet-snippets-initialize "yasnippet-snippets" + "Load the `yasnippet-snippets' snippets directory." t) +(eval-after-load 'yasnippet + '(yasnippet-snippets-initialize)) diff --git a/app-emacs/yasnippet-snippets/files/yasnippet-snippets-dir.patch b/app-emacs/yasnippet-snippets/files/yasnippet-snippets-dir.patch new file mode 100644 index 000000000000..2d5c8f2e483b --- /dev/null +++ b/app-emacs/yasnippet-snippets/files/yasnippet-snippets-dir.patch @@ -0,0 +1,18 @@ +index 078ac04..1c84318 100644 +--- a/yasnippet-snippets.el ++++ b/yasnippet-snippets.el +@@ -35,13 +35,7 @@ + (defconst yasnippet-snippets-dir + (expand-file-name + "snippets" +- (file-name-directory +- ;; Copied from ‘f-this-file’ from f.el. +- (cond +- (load-in-progress load-file-name) +- ((and (boundp 'byte-compile-current-file) byte-compile-current-file) +- byte-compile-current-file) +- (:else (buffer-file-name)))))) ++ "@SITEETC@")) + + ;;;###autoload + (defun yasnippet-snippets-initialize () |