mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-22 05:31:01 -08:00
upstream
This commit is contained in:
commit
4a37733c69
227 changed files with 7958 additions and 3887 deletions
|
|
@ -635,7 +635,7 @@ If ALIST is non-nil, the new pairs are prepended to it."
|
|||
(set-buffer-modified-p ,flag)))
|
||||
(gv-define-simple-setter buffer-name rename-buffer t)
|
||||
(gv-define-setter buffer-string (store)
|
||||
`(progn (erase-buffer) (insert ,store)))
|
||||
`(insert (prog1 ,store (erase-buffer))))
|
||||
(gv-define-simple-setter buffer-substring cl--set-buffer-substring)
|
||||
(gv-define-simple-setter current-buffer set-buffer)
|
||||
(gv-define-simple-setter current-case-table set-case-table)
|
||||
|
|
|
|||
|
|
@ -191,8 +191,9 @@ well for simple place forms.
|
|||
Assignments of VAL to (NAME ARGS...) are expanded by binding the argument
|
||||
forms (VAL ARGS...) according to ARGLIST, then executing BODY, which must
|
||||
return a Lisp form that does the assignment.
|
||||
Actually, ARGLIST may be bound to temporary variables which are introduced
|
||||
automatically to preserve proper execution order of the arguments. Example:
|
||||
The first arg in ARLIST (the one that receives VAL) receives an expression
|
||||
which can do arbitrary things, whereas the other arguments are all guaranteed
|
||||
to be pure and copyable. Example use:
|
||||
(gv-define-setter aref (v a i) `(aset ,a ,i ,v))"
|
||||
(declare (indent 2) (debug (&define name sexp body)))
|
||||
`(gv-define-expander ,name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue