Article View: gnu.emacs.bug
Article #99861setting buffer-modified-flag in dired-mode
From: Frank P. Bresz
Date: Tue, 24 Apr 1990 14:23
Date: Tue, 24 Apr 1990 14:23
40 lines
1860 bytes
1860 bytes
Hello,
In GNU Emacs 18.52.16 of Thu Mar 1 1990 on ittc (berkeley-unix).
I just fixed what I believe is a minor inconsistency in dired-mode
that has been annoying me for sometime now. I have enclosed a patch. I
basically use dired a lot. And when I use the kill-some-buffers command it
always would list my dired buffers as modified. I would always then jump
to them (I usually forget which things are directories and which are files)
only to find they are dired buffers which can almost always be nuked
without alarm. I added code so that just after it reads in the buffer it
sets the buffer-modified to nil.
InterNet : fbresz@ittc.uu.net
UUCP: ..!uunet!ittc!fbresz
Voice : (412)733-6749
Fax : (412)733-6444
Snail : Westinghouse Electric Corp
ITTC Mail Stop 22
1740 Golden Mile Highway
Monroeville, PA 15146
Here is the patch :
diff -c ~emacs/lisp/dired.el{~,}
*** /usr/local/emacs/lisp/dired.el~ Tue Jan 30 17:35:52 1990
--- /usr/local/emacs/lisp/dired.el Tue Apr 24 10:17:55 1990
***************
*** 56,61 ****
--- 56,62 ----
(insert " ")
(forward-line 1))
(goto-char (point-min)))
+ (set-buffer-modified-p nil)
(message "Reading directory %s...done" dirname)))
(defun dired-find-buffer (dirname)
--
Frank P. Bresz }*{
Technical Details
Message-ID:
<125@ittc.UUCP>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!ittc!fpbShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,8e8a18ef14cc0f57,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-04-24 07:23:52 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!ittc!fpb From: fpb@ittc.UUCP (Frank P. Bresz) Newsgroups: gnu.emacs.bug Subject: setting buffer-modified-flag in dired-mode Keywords: dired-mode Message-ID: <125@ittc.UUCP> Date: 24 Apr 90 14:23:52 GMT Reply-To: fbresz Organization: Westinghouse, ITTC, Pgh, PA. Lines: 40 Posted: Tue Apr 24 15:23:52 1990