Changeset 4161 for trunk/lisp/cus-edit.el
- Timestamp:
- 09/09/06 16:30:10 (2 years ago)
- Files:
-
- trunk/lisp/cus-edit.el (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/cus-edit.el
r4148 r4161 4256 4256 (value (get symbol 'saved-value)) 4257 4257 (requests (get symbol 'custom-requests)) 4258 (now ( not (or (custom-variable-p symbol)4259 (and (not (boundp symbol))4260 (not(eq (get symbol 'force-value)4261 'rogue))))))4258 (now (and (not (custom-variable-p symbol)) 4259 (or (boundp symbol) 4260 (eq (get symbol 'force-value) 4261 'rogue)))) 4262 4262 (comment (get symbol 'saved-variable-comment))) 4263 ;; Check `requests'.4263 ;; Check REQUESTS for validity. 4264 4264 (dolist (request requests) 4265 4265 (when (and (symbolp request) (not (featurep request))) 4266 4266 (message "Unknown requested feature: %s" request) 4267 4267 (setq requests (delq request requests)))) 4268 ;; Is there anything customized about this variable? 4268 4269 (when (or (and spec (eq (car spec) 'user)) 4269 4270 comment 4270 4271 (and (null spec) (get symbol 'saved-value))) 4272 ;; Output an element for this variable. 4273 ;; It has the form (SYMBOL VALUE-FORM NOW REQUESTS COMMENT). 4274 ;; SYMBOL is the variable name. 4275 ;; VALUE-FORM is an expression to return the customized value. 4276 ;; NOW if non-nil means always set the variable immediately 4277 ;; when the customizations are reloaded. This is used 4278 ;; for rogue variables 4279 ;; REQUESTS is a list of packages to load before setting the 4280 ;; variable. Each element of it will be passed to `require'. 4281 ;; COMMENT is whatever comment the user has specified 4282 ;; with the customize facility. 4271 4283 (unless (bolp) 4272 4284 (princ "\n")) … … 4384 4396 `( ,(custom-unlispify-menu-entry symbol t) 4385 4397 :filter (lambda (&rest junk) 4386 (let ((menu (custom-menu-create ',symbol)))4398 (let* ((menu (custom-menu-create ',symbol))) 4387 4399 (if (consp menu) (cdr menu) menu))))) 4388 4400 … … 4391 4403 "Create menu for customization group SYMBOL. 4392 4404 The menu is in a format applicable to `easy-menu-define'." 4393 (let* ((item (vector (custom-unlispify-menu-entry symbol) 4405 (let* ((deactivate-mark nil) 4406 (item (vector (custom-unlispify-menu-entry symbol) 4394 4407 `(customize-group ',symbol) 4395 4408 t))) … … 4436 4449 (let ((map (make-keymap))) 4437 4450 (set-keymap-parent map widget-keymap) 4438 (define-key map [remap self-insert-command] ' custom-no-edit)4439 (define-key map "\^m" ' custom-newline)4451 (define-key map [remap self-insert-command] 'Custom-no-edit) 4452 (define-key map "\^m" 'Custom-newline) 4440 4453 (define-key map " " 'scroll-up) 4441 4454 (define-key map "\177" 'scroll-down) … … 4449 4462 "Keymap for `custom-mode'.") 4450 4463 4451 (defun custom-no-edit (pos &optional event)4464 (defun Custom-no-edit (pos &optional event) 4452 4465 "Invoke button at POS, or refuse to allow editing of Custom buffer." 4453 4466 (interactive "@d") 4454 4467 (error "You can't edit this part of the Custom buffer")) 4455 4468 4456 (defun custom-newline (pos &optional event)4469 (defun Custom-newline (pos &optional event) 4457 4470 "Invoke button at POS, or refuse to allow editing of Custom buffer." 4458 4471 (interactive "@d")
