(define-minor-mode): Don't automatically add a :require to the defcustom.

This commit is contained in:
Stefan Monnier 2005-06-26 18:21:46 +00:00
parent b7a45ee150
commit 62350cdd1a
2 changed files with 18 additions and 14 deletions

View file

@ -201,10 +201,7 @@ See the command `%s' for a description of this minor-mode."))
:type 'boolean
,@(cond
((not (and curfile require)) nil)
((not (eq require t)) `(:require ,require))
(t `(:require
',(intern (file-name-nondirectory
(file-name-sans-extension curfile))))))
((not (eq require t)) `(:require ,require)))
,@(nreverse extra-keywords))))
;; The actual function.