mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-12 09:00:40 -08:00
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 460-475) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 145-152) - Merge from emacs--devo--0 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-118
This commit is contained in:
commit
bb9c4b4f8b
96 changed files with 5533 additions and 2679 deletions
|
|
@ -2409,7 +2409,7 @@ If such an advice was found it will be removed from the list of advices
|
|||
in that CLASS."
|
||||
(interactive (ad-read-advice-specification "Remove advice of"))
|
||||
(if (ad-is-advised function)
|
||||
(let* ((advice-to-remove (ad-find-advice function class name)))
|
||||
(let ((advice-to-remove (ad-find-advice function class name)))
|
||||
(if advice-to-remove
|
||||
(ad-set-advice-info-field
|
||||
function class
|
||||
|
|
@ -2747,7 +2747,7 @@ For that it has to be fbound with a non-autoload definition."
|
|||
A three-element list is returned, where the 1st element is the list of
|
||||
required arguments, the 2nd is the list of optional arguments, and the 3rd
|
||||
is the name of an optional rest parameter (or nil)."
|
||||
(let* (required optional rest)
|
||||
(let (required optional rest)
|
||||
(setq rest (car (cdr (memq '&rest arglist))))
|
||||
(if rest (setq arglist (reverse (cdr (memq '&rest (reverse arglist))))))
|
||||
(setq optional (cdr (memq '&optional arglist)))
|
||||
|
|
@ -2958,7 +2958,7 @@ Example: `(ad-map-arglists '(a &rest args) '(w x y z))' will return
|
|||
|
||||
(defun ad-make-mapped-call (source-arglist target-arglist target-function)
|
||||
"Make form to call TARGET-FUNCTION with args from SOURCE-ARGLIST."
|
||||
(let* ((mapped-form (ad-map-arglists source-arglist target-arglist)))
|
||||
(let ((mapped-form (ad-map-arglists source-arglist target-arglist)))
|
||||
(if (eq (car mapped-form) 'funcall)
|
||||
(cons target-function (cdr (cdr mapped-form)))
|
||||
(prog1 mapped-form
|
||||
|
|
|
|||
|
|
@ -149,8 +149,6 @@ be a symbol, or any generalized variable allowed by `setf'."
|
|||
(if (symbolp place) (list 'setq place (list 'cons x place))
|
||||
(list 'callf2 'cons x place)))
|
||||
|
||||
(defvar pushnew-internal)
|
||||
|
||||
(defmacro pushnew (x place &rest keys)
|
||||
"(pushnew X PLACE): insert X at the head of the list if not already there.
|
||||
Like (push X PLACE), except that the list is unmodified if X is `eql' to
|
||||
|
|
@ -159,7 +157,8 @@ an element already on the list.
|
|||
\n(fn X PLACE [KEYWORD VALUE]...)"
|
||||
(if (symbolp place)
|
||||
(if (null keys)
|
||||
`(if (memql ,x ,place) ,place (setq ,place (cons ,x ,place)))
|
||||
`(let ((x ,x))
|
||||
(if (memql x ,place) ,place (setq ,place (cons x ,place))))
|
||||
(list 'setq place (list* 'adjoin x place keys)))
|
||||
(list* 'callf2 'adjoin x place keys)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue