(customize-group (custom-group-of-mode mode)))
(put 'customize-mode 'minibuffer-action
- (cons (lambda (m) (save-selected-window (customize-mode (intern m))))
- "customize"))
+ (cons (compf save-selected-window customize-mode intern) "customize"))
(defun customize-read-group ()
(let* ((sym (symbol-at-point))
(pop-to-buffer-same-window name)))))
(put 'customize-group 'minibuffer-action
- (cons (compf save-selected-window customize-group)
- "customize"))
+ (cons (compf save-selected-window customize-group) "customize"))
;;;###autoload
(defun customize-group-other-window (&optional group)
(message "`%s' is an alias for `%s'" symbol basevar))))
(put 'customize-option 'minibuffer-action
- (cons (lambda (v) (save-selected-window (customize-option (intern v))))
- "customize"))
+ (cons (compf save-selected-window customize-option intern) "customize"))
(defface custom-boolean-option-on
'((t :inherit success))
(custom-unlispify-tag-name face))))))
(put 'customize-face 'minibuffer-action
- (cons (lambda (f) (save-selected-window (customize-face (intern f))))
- "customize"))
+ (cons (compf save-selected-window customize-face intern) "customize"))
;;;###autoload
(defun customize-face-other-window (&optional face)
"*Customize Apropos*")))
(put 'customize-apropos 'minibuffer-action
- (cons (compf save-selected-window customize-apropos)
- "customize-apropos"))
+ (cons (compf save-selected-window customize-apropos) "customize-apropos"))
;;;###autoload
(defun customize-apropos-options (regexp &optional _ignored)
(custom-unlispify-tag-name icon))))
(put 'customize-icon 'minibuffer-action
- (cons (lambda (i) (save-selected-window (customize-icon (intern i))))
- "customize"))
+ (cons (compf save-selected-window customize-icon intern) "customize"))
(defun custom-icon-state-set (widget &optional state)
"Set the state of WIDGET to STATE."
"Read and return the name of a format.
Return value is a list, like `buffer-file-format'; it may be nil.
Formats are defined in `format-alist'. Optional arg is the PROMPT to use."
- (let* ((table (mapcar (lambda (x) (list (symbol-name (car x))))
- format-alist))
+ (let* ((table (mapcar (compf list symbol-name car) format-alist))
(ans (completing-read (or prompt "Format: ") table nil t)))
(if (not (equal "" ans)) (list (intern ans)))))
(1+ (length "password"))
(mapcar
;; Attribute names have a leading ":", which will be suppressed.
- (lambda (attribute) (length (symbol-name (car attribute))))
+ (compf length symbol-name car)
attributes)))))
(cons
;; The password widget.
(let* ((deprecated-babel-properties
;; DIR is also used for attachments.
(delete "dir"
- (mapcar (lambda (arg) (downcase (symbol-name (car arg))))
+ (mapcar (compf downcase symbol-name car)
org-babel-common-header-args-w-values)))
(deprecated-re
(format "\\`%s[ \t]" (regexp-opt deprecated-babel-properties t))))
(let ((cell-list (table--horizontal-cell-list 'left-to-right)))
(unless
(and (table--uniform-list-p
- (mapcar (lambda (cell) (cdr (table--get-coordinate (car cell)))) cell-list))
+ (mapcar (compf cdr table--get-coordinate car) cell-list))
(table--uniform-list-p
- (mapcar (lambda (cell) (cdr (table--get-coordinate (cdr cell)))) cell-list)))
+ (mapcar (compf cdr table--get-coordinate cdr) cell-list)))
(error "Cells in this row are not in uniform height"))
(unless lu-coord
(setq lu-coord (table--get-coordinate (caar cell-list))))
(let ((cell-list (table--vertical-cell-list 'top-to-bottom)))
(unless
(and (table--uniform-list-p
- (mapcar (lambda (cell) (car (table--get-coordinate (car cell)))) cell-list))
+ (mapcar (compf car table--get-coordinate car) cell-list))
(table--uniform-list-p
- (mapcar (lambda (cell) (car (table--get-coordinate (cdr cell)))) cell-list)))
+ (mapcar (compf car table--get-coordinate cdr) cell-list)))
(error "Cells in this column are not in uniform width"))
(unless lu-coord
(setq lu-coord (table--get-coordinate (caar cell-list))))