[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

*w3m-external-view* buffers not being killed



Hi,

I just noticed that a longer-running Emacs on a tty had more than 100
*w3m-external-view* buffers.  It turns out that the kill-buffer in the
sentinel that is set up in w3m-external-view-file is never executed
because delete-file always returns nil on GNU Emacs.  The attached
patch fixes it for me.

Thanks,
andreas

2007-03-31  Andreas Seltenreich  <seltenreich@xxxxxx>

	* w3m.el (w3m-external-view-file): Actually kill the temporary
	buffer.

*** w3m.el	31 Mär 2007 06:27:39 +0200	1.1263
--- w3m.el	31 Mär 2007 06:32:31 +0200	
***************
*** 6134,6141 ****
  		    (with-current-buffer (process-buffer proc)
  		      (and (stringp file)
  			   (file-exists-p file)
! 			   (delete-file file)))
! 		    (kill-buffer (process-buffer proc))))))
  	(and (stringp file)
  	     (file-exists-p file)
  	     (unless (and (processp proc)
--- 6134,6141 ----
  		    (with-current-buffer (process-buffer proc)
  		      (and (stringp file)
  			   (file-exists-p file)
! 			   (delete-file file))
! 		      (kill-buffer (process-buffer proc)))))))
  	(and (stringp file)
  	     (file-exists-p file)
  	     (unless (and (processp proc)