This repository was archived by the owner on Aug 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -1305,10 +1305,7 @@ meaning:
13051305 (setq every nil )))
13061306 every))))
13071307 #'use-package-recognize-function
1308- (if (string-suffix-p " -mode" (symbol-name name))
1309- name
1310- (intern (concat (symbol-name name) " -mode" )))
1311- label arg))))
1308+ name label arg))))
13121309
13131310(defalias 'use-package-autoloads/:hook 'use-package-autoloads-mode )
13141311
Original file line number Diff line number Diff line change 987987 'foopkg :hook args)))
988988 (should-error (norm nil ))
989989 (should (equal (norm '(bar))
990- '((bar . foopkg-mode ))))
990+ '((bar . foopkg))))
991991 (should (equal (norm '((bar . foopkg)))
992992 '((bar . foopkg))))
993993 (should (equal (norm '((bar . baz)))
994994 '((bar . baz))))
995995 (should (equal (norm '(((bar baz) . quux)))
996996 '(((bar baz) . quux))))
997997 (should (equal (norm '(bar baz))
998- '(((bar baz) . foopkg-mode ))))
998+ '(((bar baz) . foopkg))))
999999 (should (equal (norm '((bar baz) (quux bow)))
1000- '(((bar baz) . foopkg-mode ) ((quux bow) . foopkg-mode ))))
1000+ '(((bar baz) . foopkg) ((quux bow) . foopkg))))
10011001 (should (equal (norm '((bar . baz) (quux . bow)))
10021002 '((bar . baz) (quux . bow))))
10031003 (should (equal (norm '(((bar1 bar2) . baz) ((quux1 quux2) . bow)))
19261926 (use-package nonexistent
19271927 :hook lisp-mode)
19281928 `(when (locate-library nonexistent)
1929- (unless (fboundp 'nonexistent-mode )
1930- (autoload #'nonexistent-mode " nonexistent" nil t ))
1931- (add-hook 'lisp-mode-hook #'nonexistent-mode )))))
1929+ (unless (fboundp 'nonexistent )
1930+ (autoload #'nonexistent " nonexistent" nil t ))
1931+ (add-hook 'lisp-mode-hook #'nonexistent )))))
19321932
19331933(ert-deftest bind-key/:prefix-map ()
19341934 (match-expansion
You can’t perform that action at this time.
0 commit comments