summaryrefslogtreecommitdiff
path: root/app-emacs/biblio/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /app-emacs/biblio/files
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'app-emacs/biblio/files')
-rw-r--r--app-emacs/biblio/files/50biblio-gentoo.el2
-rw-r--r--app-emacs/biblio/files/biblio-0.2-tests.patch43
2 files changed, 45 insertions, 0 deletions
diff --git a/app-emacs/biblio/files/50biblio-gentoo.el b/app-emacs/biblio/files/50biblio-gentoo.el
new file mode 100644
index 000000000000..c107edfe34b6
--- /dev/null
+++ b/app-emacs/biblio/files/50biblio-gentoo.el
@@ -0,0 +1,2 @@
+(add-to-list 'load-path "@SITELISP@")
+(load "@SITELISP@/biblio-autoloads" nil t)
diff --git a/app-emacs/biblio/files/biblio-0.2-tests.patch b/app-emacs/biblio/files/biblio-0.2-tests.patch
new file mode 100644
index 000000000000..eab6e9b50581
--- /dev/null
+++ b/app-emacs/biblio/files/biblio-0.2-tests.patch
@@ -0,0 +1,43 @@
+index d393c1a..866815a 100644
+--- a/tests/biblio-tests.el
++++ b/tests/biblio-tests.el
+@@ -136,13 +136,13 @@ month={Apr}, pages={147–156}}")
+ (it "ignores invalid entries"
+ (expect (biblio-format-bibtex "@!!") :to-equal "@!!")
+ (expect (biblio-format-bibtex "@article{INVALID KEY,}") :to-equal "@article{INVALID KEY,}"))
+- (it "formats a typical example properly"
+- (expect (biblio-format-bibtex (concat "@ARTIcle{" stallman-bibtex))
+- :to-equal (concat "@Article{Stallman_1981," stallman-bibtex-clean)))
+- (it "properly creates keys"
+- (expect (let ((bibtex-autokey-year-title-separator "!"))
+- (biblio-format-bibtex (concat "@article{" stallman-bibtex) t))
+- :to-equal (concat "@Article{stallman81!emacs," stallman-bibtex-clean)))
++ ;;(it "formats a typical example properly"
++ ;; (expect (biblio-format-bibtex (concat "@ARTIcle{" stallman-bibtex))
++ ;; :to-equal (concat "@Article{Stallman_1981," stallman-bibtex-clean)))
++ ;;(it "properly creates keys"
++ ;; (expect (let ((bibtex-autokey-year-title-separator "!"))
++ ;; (biblio-format-bibtex (concat "@article{" stallman-bibtex) t))
++ ;; :to-equal (concat "@Article{stallman81!emacs," stallman-bibtex-clean)))
+ (it "replaces the “@data{” header"
+ (expect (biblio-format-bibtex (concat "@data{" stallman-bibtex))
+ :to-match "\\`@misc{"))
+@@ -153,12 +153,12 @@ month={Apr}, pages={147–156}}")
+ (let ((biblio-cleanup-bibtex-function nil))
+ (expect (biblio-format-bibtex (concat "@techreport{" stallman-bibtex))
+ :to-equal (concat "@techreport{" stallman-bibtex))))
+- (it "doesn't set the BibTeX dialect globally"
+- (with-temp-buffer
+- (bibtex-mode)
+- (let ((bibtex-dialect 'aaa))
+- (biblio-format-bibtex (concat "@techreport{" stallman-bibtex))
+- (expect bibtex-dialect :to-equal 'aaa))))
++ ;;(it "doesn't set the BibTeX dialect globally"
++ ;; (with-temp-buffer
++ ;; (bibtex-mode)
++ ;; (let ((bibtex-dialect 'aaa))
++ ;; (biblio-format-bibtex (concat "@techreport{" stallman-bibtex))
++ ;; (expect bibtex-dialect :to-equal 'aaa))))
+ (it "uses font-lock-ensure when available"
+ (unless (functionp #'font-lock-ensure)
+ (let ((called-p t))