* lisp/simple.el (interactive-form): Minor simplification.
* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Fix last change.
(cl-decf slen))
(setq header
(cond
- ((eq :documentation (caar header))
+ ((eq :documentation (car-safe (car header)))
`((:documentation (docstring-add-fundoc-usage
,(cadr (car header))
,usage-str))
(declare-function font-info "font.c" (name &optional frame))
-(defun describe-font-internal (font-info &optional ignored)
+(defun describe-font-internal (font-info &optional _ignored)
"Print information about a font in FONT-INFO.
The IGNORED argument is ignored."
(print-list "name (opened by):" (aref font-info 0))
(defun sendmail-user-agent-compose (&optional to subject other-headers
continue switch-function yank-action
send-actions return-action
- &rest ignored)
+ &rest _)
(if switch-function
(funcall switch-function "*mail*"))
(let ((cc (cdr (assoc-string "cc" other-headers t)))
(set-marker save-point nil)))
;; uncomment-region calls this with 3 args.
-(defun fortran-uncomment-region (start end &optional ignored)
+(defun fortran-uncomment-region (start end &optional _ignored)
"Uncomment every line in the region."
(fortran-comment-region start end t))
(prolog-mode-variables)
))
-(defun prolog-inferior-guess-flavor (&optional ignored)
+(defun prolog-inferior-guess-flavor (&optional _ignored)
(setq-local prolog-system
(when (or (numberp prolog-system) (markerp prolog-system))
(save-excursion
(back-to-indentation)
(current-column)))
-(defun ruby-indent-line (&optional ignored)
+(defun ruby-indent-line (&optional _ignored)
"Correct the indentation of the current Ruby line."
(interactive)
(ruby-indent-to (ruby-calculate-indent)))
((error)))
i))))
-(defun ruby-indent-exp (&optional ignored)
+(defun ruby-indent-exp (&optional _ignored)
"Indent each line in the balanced expression following the point."
(interactive "*P")
(let ((here (point-marker)) start top column (nest t))
((pred byte-code-function-p)
(when (> (length cmd) 5)
(let ((form (aref cmd 5)))
- (if (vectorp form)
- ;; The vector form is the new form, where the first
- ;; element is the interactive spec, and the second is the
- ;; command modes.
- (list 'interactive (aref form 0))
- (list 'interactive form)))))
+ (list 'interactive
+ (if (vectorp form)
+ ;; The vector form is the new form, where the first
+ ;; element is the interactive spec, and the second
+ ;; is the "command modes" info.
+ (aref form 0)
+ form)))))
((pred autoloadp)
(interactive-form (autoload-do-load cmd original-name)))
((or `(lambda ,_args . ,body)
`(closure ,_env ,_args . ,body))
(let ((spec (assq 'interactive body)))
(if (cddr spec)
- ;; Drop the "applicable modes" info.
+ ;; Drop the "command modes" info.
(list 'interactive (cadr spec))
spec)))
(_ (internal--interactive-form cmd))))
(declare-function mm-display-part "mm-decode"
(handle &optional no-default force))
-(defun url-mm-callback (&rest ignored)
+(defun url-mm-callback (&rest _)
(let ((handle (mm-dissect-buffer t)))
(url-mark-buffer-as-dead (current-buffer))
(with-current-buffer