* proced.el (proced-unload-function): New function.
This commit is contained in:
parent
fa72d07524
commit
7422a4bb97
2 changed files with 12 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
|||
2009-10-12 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* proced.el (proced-unload-function): New function.
|
||||
|
||||
* bs.el (bs-mode): Set `revert-buffer-function' to `bs-refresh'.
|
||||
(bs-refresh): Add IGNORED arg for `revert-buffer' compatibility.
|
||||
Doc fix.
|
||||
|
|
|
|||
|
|
@ -1867,6 +1867,16 @@ buffer. You can use it to recover marks."
|
|||
(message "Change in Proced buffer undone.
|
||||
Killed processes cannot be recovered by Emacs."))
|
||||
|
||||
(defun proced-unload-function ()
|
||||
"Unload the Proced library."
|
||||
(save-current-buffer
|
||||
(dolist (buf (buffer-list))
|
||||
(set-buffer buf)
|
||||
(when (eq major-mode 'proced-mode)
|
||||
(funcall (or (default-value 'major-mode) 'fundamental-mode)))))
|
||||
;; continue standard unloading
|
||||
nil)
|
||||
|
||||
(provide 'proced)
|
||||
|
||||
;; arch-tag: a6e312ad-9032-45aa-972d-31a8cfc545af
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue