Merge remote-tracking branch 'origin/master' into feature/byte-switch
This commit is contained in:
commit
bf7f7c0d82
129 changed files with 1861 additions and 1367 deletions
|
@ -247,4 +247,14 @@ LEVEL is only used internally and indicates the nesting level:
|
|||
tail))
|
||||
(t (cons 'list heads)))))
|
||||
|
||||
|
||||
;; Give `,' and `,@' documentation strings which can be examined by C-h f.
|
||||
(put '\, 'function-documentation
|
||||
"See `\\=`' (also `pcase') for the usage of `,'.")
|
||||
(put '\, 'reader-construct t)
|
||||
|
||||
(put '\,@ 'function-documentation
|
||||
"See `\\=`' for the usage of `,@'.")
|
||||
(put '\,@ 'reader-construct t)
|
||||
|
||||
;;; backquote.el ends here
|
||||
|
|
|
@ -226,7 +226,13 @@ DEFAULT-BODY, if present, is used as the body of a default method.
|
|||
(when (eq 'setf (car-safe name))
|
||||
(require 'gv)
|
||||
(setq name (gv-setter (cadr name))))
|
||||
`(progn
|
||||
`(prog1
|
||||
(progn
|
||||
(defalias ',name
|
||||
(cl-generic-define ',name ',args ',(nreverse options))
|
||||
,(help-add-fundoc-usage doc args))
|
||||
,@(mapcar (lambda (method) `(cl-defmethod ,name ,@method))
|
||||
(nreverse methods)))
|
||||
,@(mapcar (lambda (declaration)
|
||||
(let ((f (cdr (assq (car declaration)
|
||||
defun-declarations-alist))))
|
||||
|
@ -235,12 +241,7 @@ DEFAULT-BODY, if present, is used as the body of a default method.
|
|||
(t (message "Warning: Unknown defun property `%S' in %S"
|
||||
(car declaration) name)
|
||||
nil))))
|
||||
(cdr declarations))
|
||||
(defalias ',name
|
||||
(cl-generic-define ',name ',args ',(nreverse options))
|
||||
,(help-add-fundoc-usage doc args))
|
||||
,@(mapcar (lambda (method) `(cl-defmethod ,name ,@method))
|
||||
(nreverse methods)))))
|
||||
(cdr declarations)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun cl-generic-define (name args options)
|
||||
|
|
|
@ -413,125 +413,30 @@ Signal an error if X is not a list."
|
|||
(declare (gv-setter (lambda (store) `(setcar (nthcdr 9 ,x) ,store))))
|
||||
(nth 9 x))
|
||||
|
||||
(defun cl-caaar (x)
|
||||
"Return the `car' of the `car' of the `car' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(car (car (car x))))
|
||||
|
||||
(defun cl-caadr (x)
|
||||
"Return the `car' of the `car' of the `cdr' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(car (car (cdr x))))
|
||||
|
||||
(defun cl-cadar (x)
|
||||
"Return the `car' of the `cdr' of the `car' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(car (cdr (car x))))
|
||||
|
||||
(defun cl-caddr (x)
|
||||
"Return the `car' of the `cdr' of the `cdr' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(car (cdr (cdr x))))
|
||||
|
||||
(defun cl-cdaar (x)
|
||||
"Return the `cdr' of the `car' of the `car' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(cdr (car (car x))))
|
||||
|
||||
(defun cl-cdadr (x)
|
||||
"Return the `cdr' of the `car' of the `cdr' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(cdr (car (cdr x))))
|
||||
|
||||
(defun cl-cddar (x)
|
||||
"Return the `cdr' of the `cdr' of the `car' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(cdr (cdr (car x))))
|
||||
|
||||
(defun cl-cdddr (x)
|
||||
"Return the `cdr' of the `cdr' of the `cdr' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(cdr (cdr (cdr x))))
|
||||
|
||||
(defun cl-caaaar (x)
|
||||
"Return the `car' of the `car' of the `car' of the `car' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(car (car (car (car x)))))
|
||||
|
||||
(defun cl-caaadr (x)
|
||||
"Return the `car' of the `car' of the `car' of the `cdr' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(car (car (car (cdr x)))))
|
||||
|
||||
(defun cl-caadar (x)
|
||||
"Return the `car' of the `car' of the `cdr' of the `car' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(car (car (cdr (car x)))))
|
||||
|
||||
(defun cl-caaddr (x)
|
||||
"Return the `car' of the `car' of the `cdr' of the `cdr' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(car (car (cdr (cdr x)))))
|
||||
|
||||
(defun cl-cadaar (x)
|
||||
"Return the `car' of the `cdr' of the `car' of the `car' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(car (cdr (car (car x)))))
|
||||
|
||||
(defun cl-cadadr (x)
|
||||
"Return the `car' of the `cdr' of the `car' of the `cdr' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(car (cdr (car (cdr x)))))
|
||||
|
||||
(defun cl-caddar (x)
|
||||
"Return the `car' of the `cdr' of the `cdr' of the `car' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(car (cdr (cdr (car x)))))
|
||||
|
||||
(defun cl-cadddr (x)
|
||||
"Return the `car' of the `cdr' of the `cdr' of the `cdr' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(car (cdr (cdr (cdr x)))))
|
||||
|
||||
(defun cl-cdaaar (x)
|
||||
"Return the `cdr' of the `car' of the `car' of the `car' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(cdr (car (car (car x)))))
|
||||
|
||||
(defun cl-cdaadr (x)
|
||||
"Return the `cdr' of the `car' of the `car' of the `cdr' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(cdr (car (car (cdr x)))))
|
||||
|
||||
(defun cl-cdadar (x)
|
||||
"Return the `cdr' of the `car' of the `cdr' of the `car' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(cdr (car (cdr (car x)))))
|
||||
|
||||
(defun cl-cdaddr (x)
|
||||
"Return the `cdr' of the `car' of the `cdr' of the `cdr' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(cdr (car (cdr (cdr x)))))
|
||||
|
||||
(defun cl-cddaar (x)
|
||||
"Return the `cdr' of the `cdr' of the `car' of the `car' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(cdr (cdr (car (car x)))))
|
||||
|
||||
(defun cl-cddadr (x)
|
||||
"Return the `cdr' of the `cdr' of the `car' of the `cdr' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(cdr (cdr (car (cdr x)))))
|
||||
|
||||
(defun cl-cdddar (x)
|
||||
"Return the `cdr' of the `cdr' of the `cdr' of the `car' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(cdr (cdr (cdr (car x)))))
|
||||
|
||||
(defun cl-cddddr (x)
|
||||
"Return the `cdr' of the `cdr' of the `cdr' of the `cdr' of X."
|
||||
(declare (compiler-macro internal--compiler-macro-cXXr))
|
||||
(cdr (cdr (cdr (cdr x)))))
|
||||
(defalias 'cl-caaar 'caaar)
|
||||
(defalias 'cl-caadr 'caadr)
|
||||
(defalias 'cl-cadar 'cadar)
|
||||
(defalias 'cl-caddr 'caddr)
|
||||
(defalias 'cl-cdaar 'cdaar)
|
||||
(defalias 'cl-cdadr 'cdadr)
|
||||
(defalias 'cl-cddar 'cddar)
|
||||
(defalias 'cl-cdddr 'cdddr)
|
||||
(defalias 'cl-caaaar 'caaaar)
|
||||
(defalias 'cl-caaadr 'caaadr)
|
||||
(defalias 'cl-caadar 'caadar)
|
||||
(defalias 'cl-caaddr 'caaddr)
|
||||
(defalias 'cl-cadaar 'cadaar)
|
||||
(defalias 'cl-cadadr 'cadadr)
|
||||
(defalias 'cl-caddar 'caddar)
|
||||
(defalias 'cl-cadddr 'cadddr)
|
||||
(defalias 'cl-cdaaar 'cdaaar)
|
||||
(defalias 'cl-cdaadr 'cdaadr)
|
||||
(defalias 'cl-cdadar 'cdadar)
|
||||
(defalias 'cl-cdaddr 'cdaddr)
|
||||
(defalias 'cl-cddaar 'cddaar)
|
||||
(defalias 'cl-cddadr 'cddadr)
|
||||
(defalias 'cl-cdddar 'cdddar)
|
||||
(defalias 'cl-cddddr 'cddddr)
|
||||
|
||||
;;(defun last* (x &optional n)
|
||||
;; "Returns the last link in the list LIST.
|
||||
|
|
|
@ -258,30 +258,6 @@
|
|||
copy-list
|
||||
ldiff
|
||||
list*
|
||||
cddddr
|
||||
cdddar
|
||||
cddadr
|
||||
cddaar
|
||||
cdaddr
|
||||
cdadar
|
||||
cdaadr
|
||||
cdaaar
|
||||
cadddr
|
||||
caddar
|
||||
cadadr
|
||||
cadaar
|
||||
caaddr
|
||||
caadar
|
||||
caaadr
|
||||
caaaar
|
||||
cdddr
|
||||
cddar
|
||||
cdadr
|
||||
cdaar
|
||||
caddr
|
||||
cadar
|
||||
caadr
|
||||
caaar
|
||||
tenth
|
||||
ninth
|
||||
eighth
|
||||
|
|
|
@ -216,6 +216,7 @@ No problems result if this variable is not bound.
|
|||
(purecopy ,(format "Keymap for `%s'." child))))
|
||||
,(if declare-syntax
|
||||
`(progn
|
||||
(defvar ,syntax)
|
||||
(unless (boundp ',syntax)
|
||||
(put ',syntax 'definition-name ',child)
|
||||
(defvar ,syntax (make-syntax-table)))
|
||||
|
@ -224,6 +225,7 @@ No problems result if this variable is not bound.
|
|||
(purecopy ,(format "Syntax table for `%s'." child))))))
|
||||
,(if declare-abbrev
|
||||
`(progn
|
||||
(defvar ,abbrev)
|
||||
(unless (boundp ',abbrev)
|
||||
(put ',abbrev 'definition-name ',child)
|
||||
(defvar ,abbrev
|
||||
|
|
|
@ -412,8 +412,13 @@ of column descriptors."
|
|||
(inhibit-read-only t))
|
||||
(if (> tabulated-list-padding 0)
|
||||
(insert (make-string x ?\s)))
|
||||
(dotimes (n ncols)
|
||||
(setq x (tabulated-list-print-col n (aref cols n) x)))
|
||||
(let ((tabulated-list--near-rows ; Bind it if not bound yet (Bug#25506).
|
||||
(or (bound-and-true-p tabulated-list--near-rows)
|
||||
(list (or (tabulated-list-get-entry (point-at-bol 0))
|
||||
cols)
|
||||
cols))))
|
||||
(dotimes (n ncols)
|
||||
(setq x (tabulated-list-print-col n (aref cols n) x))))
|
||||
(insert ?\n)
|
||||
;; Ever so slightly faster than calling `put-text-property' twice.
|
||||
(add-text-properties
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue