summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-06-23 15:47:38 +0000
committerRichard M. Stallman <rms@gnu.org>1998-06-23 15:47:38 +0000
commit8146c81d068646eb5c5ca306c1b39854f972226d (patch)
treed484c89bb0e0da7d38624e1209dbba811944ec30 /lisp/emacs-lisp
parent956e3c7e0ba945a2ea6b10acc6059946c2a8be14 (diff)
downloademacs-8146c81d068646eb5c5ca306c1b39854f972226d.tar.gz
emacs-8146c81d068646eb5c5ca306c1b39854f972226d.tar.bz2
emacs-8146c81d068646eb5c5ca306c1b39854f972226d.zip
(buffer-modified-p): Make defsetf handle buffer argument.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/cl-macs.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index ed47ef4a4a6..75209c08232 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -1579,7 +1579,9 @@ Example: (defsetf nth (n x) (v) (list 'setcar (list 'nthcdr n x) v))."
;;; Some more Emacs-related place types.
(defsetf buffer-file-name set-visited-file-name t)
-(defsetf buffer-modified-p set-buffer-modified-p t)
+(defsetf buffer-modified-p (&optional buf) (flag)
+ (list 'with-current-buffer buf
+ (list 'set-buffer-modified-p flag)))
(defsetf buffer-name rename-buffer t)
(defsetf buffer-string () (store)
(list 'progn '(erase-buffer) (list 'insert store)))