Default t means all, otherwise an integer specifying the maximum
number to show. A text button is always shown allowing you to
toggle display of the entire list."
- :type '(choice (const :tag "All" t)
+ :type `(choice (const :tag "All" t)
(integer :tag "Limit"
:validate
- (lambda (widget)
- (unless (>= (widget-value widget) 0)
- (widget-put widget :error
- "Invalid value: must be a non-negative integer")
- widget))))
+ ,(lambda (widget)
+ (unless (>= (widget-value widget) 0)
+ (widget-put widget :error
+ "Invalid value: must be a non-negative integer")
+ widget))))
:version "27.1")
(defcustom vc-git-revision-complete-only-branches nil
(defun vc-hg--extract-headers (comment)
(log-edit-extract-headers `(("Author" . "--user")
("Date" . "--date")
- ("Amend" . (lambda (value)
- (when (equal value "yes")
- (list "--amend")))))
+ ("Amend" . ,(lambda (value)
+ (when (equal value "yes")
+ (list "--amend")))))
comment))
(defun vc-hg-find-revision (file rev buffer)