diff options
| author | Juanma Barranquero | 2009-10-12 04:59:04 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2009-10-12 04:59:04 +0000 |
| commit | 7422a4bb970131a6a9e0c7c27cbfa19ec24a3485 (patch) | |
| tree | 5a29857c138f790c0eba50bb6cc209155a5ad2d7 | |
| parent | fa72d07524d48892dfd924224dbdc03eed6fcc41 (diff) | |
| download | emacs-7422a4bb970131a6a9e0c7c27cbfa19ec24a3485.tar.gz emacs-7422a4bb970131a6a9e0c7c27cbfa19ec24a3485.zip | |
* proced.el (proced-unload-function): New function.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/proced.el | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ae3745cf518..8e82e00056d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2009-10-12 Juanma Barranquero <lekktu@gmail.com> | 1 | 2009-10-12 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 2 | ||
| 3 | * proced.el (proced-unload-function): New function. | ||
| 4 | |||
| 3 | * bs.el (bs-mode): Set `revert-buffer-function' to `bs-refresh'. | 5 | * bs.el (bs-mode): Set `revert-buffer-function' to `bs-refresh'. |
| 4 | (bs-refresh): Add IGNORED arg for `revert-buffer' compatibility. | 6 | (bs-refresh): Add IGNORED arg for `revert-buffer' compatibility. |
| 5 | Doc fix. | 7 | Doc fix. |
diff --git a/lisp/proced.el b/lisp/proced.el index cd9255cfdee..fd3e4ab706e 100644 --- a/lisp/proced.el +++ b/lisp/proced.el | |||
| @@ -1867,6 +1867,16 @@ buffer. You can use it to recover marks." | |||
| 1867 | (message "Change in Proced buffer undone. | 1867 | (message "Change in Proced buffer undone. |
| 1868 | Killed processes cannot be recovered by Emacs.")) | 1868 | Killed processes cannot be recovered by Emacs.")) |
| 1869 | 1869 | ||
| 1870 | (defun proced-unload-function () | ||
| 1871 | "Unload the Proced library." | ||
| 1872 | (save-current-buffer | ||
| 1873 | (dolist (buf (buffer-list)) | ||
| 1874 | (set-buffer buf) | ||
| 1875 | (when (eq major-mode 'proced-mode) | ||
| 1876 | (funcall (or (default-value 'major-mode) 'fundamental-mode))))) | ||
| 1877 | ;; continue standard unloading | ||
| 1878 | nil) | ||
| 1879 | |||
| 1870 | (provide 'proced) | 1880 | (provide 'proced) |
| 1871 | 1881 | ||
| 1872 | ;; arch-tag: a6e312ad-9032-45aa-972d-31a8cfc545af | 1882 | ;; arch-tag: a6e312ad-9032-45aa-972d-31a8cfc545af |