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:
1305
1305
(setq every nil )))
1306
1306
every))))
1307
1307
#'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))))
1312
1309
1313
1310
(defalias 'use-package-autoloads/:hook 'use-package-autoloads-mode )
1314
1311
Original file line number Diff line number Diff line change 987
987
'foopkg :hook args)))
988
988
(should-error (norm nil ))
989
989
(should (equal (norm '(bar))
990
- '((bar . foopkg-mode ))))
990
+ '((bar . foopkg))))
991
991
(should (equal (norm '((bar . foopkg)))
992
992
'((bar . foopkg))))
993
993
(should (equal (norm '((bar . baz)))
994
994
'((bar . baz))))
995
995
(should (equal (norm '(((bar baz) . quux)))
996
996
'(((bar baz) . quux))))
997
997
(should (equal (norm '(bar baz))
998
- '(((bar baz) . foopkg-mode ))))
998
+ '(((bar baz) . foopkg))))
999
999
(should (equal (norm '((bar baz) (quux bow)))
1000
- '(((bar baz) . foopkg-mode ) ((quux bow) . foopkg-mode ))))
1000
+ '(((bar baz) . foopkg) ((quux bow) . foopkg))))
1001
1001
(should (equal (norm '((bar . baz) (quux . bow)))
1002
1002
'((bar . baz) (quux . bow))))
1003
1003
(should (equal (norm '(((bar1 bar2) . baz) ((quux1 quux2) . bow)))
1926
1926
(use-package nonexistent
1927
1927
:hook lisp-mode)
1928
1928
`(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 )))))
1932
1932
1933
1933
(ert-deftest bind-key/:prefix-map ()
1934
1934
(match-expansion
You can’t perform that action at this time.
0 commit comments