Mercurial > emacs
comparison lisp/emacs-lisp/easy-mmode.el @ 90192:173dee4e2611
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-61
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 353-357)
- Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 09 Jun 2005 07:13:03 +0000 |
parents | 01137c1fdbe9 c531a8daedc6 |
children | bb71c6cf2009 |
comparison
equal
deleted
inserted
replaced
90191:c766b49f5bbd | 90192:173dee4e2611 |
---|---|
181 Use the command `%s' to change this variable." pretty-name mode)) | 181 Use the command `%s' to change this variable." pretty-name mode)) |
182 (make-variable-buffer-local ',mode)) | 182 (make-variable-buffer-local ',mode)) |
183 | 183 |
184 (let ((curfile (or (and (boundp 'byte-compile-current-file) | 184 (let ((curfile (or (and (boundp 'byte-compile-current-file) |
185 byte-compile-current-file) | 185 byte-compile-current-file) |
186 load-file-name))) | 186 load-file-name)) |
187 `(defcustom ,mode ,init-value | 187 base-doc-string) |
188 ,(format "Non-nil if %s is enabled. | 188 (setq base-doc-string "Non-nil if %s is enabled. |
189 See the command `%s' for a description of this minor-mode. | 189 See the command `%s' for a description of this minor-mode. |
190 Setting this variable directly does not take effect; | 190 Setting this variable directly does not take effect; |
191 use either \\[customize] or the function `%s'." | 191 use either \\[customize] or the function `%s'.") |
192 pretty-name mode mode) | 192 (if (null body) |
193 (setq base-doc-string "Non-nil if %s is enabled. | |
194 See the command `%s' for a description of this minor-mode.")) | |
195 | |
196 `(defcustom ,mode ,init-value | |
197 ,(format base-doc-string pretty-name mode mode) | |
193 :set 'custom-set-minor-mode | 198 :set 'custom-set-minor-mode |
194 :initialize 'custom-initialize-default | 199 :initialize 'custom-initialize-default |
195 ,@group | 200 ,@group |
196 :type 'boolean | 201 :type 'boolean |
197 ,@(cond | 202 ,@(cond |