|
From: Stephan S. <st...@is...> - 2003-10-24 10:17:42
|
Hi.
I didn't like the fact that /dcc send leaves a buffer after it has
completed and what is worse that buffer has a modified state so each
time i wanted to kill it i had to comfirm the C-x C-k. This patch will
do it for me. Maybe its useful for others..
$ diff -c erc-dcc.el.1.79 erc-dcc.el
*** erc-dcc.el.1.79 Fri Oct 24 08:21:40 2003
--- erc-dcc.el Fri Oct 24 08:21:41 2003
***************
*** 714,719 ****
--- 714,721 ----
?f buffer-file-name
?s (number-to-string (- sent-marker (point-min))))
(setq erc-dcc-list (delete elt erc-dcc-list))
+ (set-buffer-modified-p nil)
+ (kill-buffer (current-buffer))
(delete-process proc))
((<= confirmed-marker sent-marker)
(while (and (< (- sent-marker confirmed-marker)
--
Stephan Stahl
|