diff options
| author | Juanma Barranquero | 2008-10-08 09:02:28 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-10-08 09:02:28 +0000 |
| commit | c4384ef148fbf74f51cbc0e494c2d18febd97447 (patch) | |
| tree | a0c40db9817df9bd22795528cadb2bd980d44ff4 | |
| parent | 2c8262dc6fb88359c211270f192e1edde8b66780 (diff) | |
| download | emacs-c4384ef148fbf74f51cbc0e494c2d18febd97447.tar.gz emacs-c4384ef148fbf74f51cbc0e494c2d18febd97447.zip | |
* bs.el (bs-unload-function): New function.
| -rw-r--r-- | lisp/bs.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/bs.el b/lisp/bs.el index d4d22d786d5..8a65252abc6 100644 --- a/lisp/bs.el +++ b/lisp/bs.el | |||
| @@ -1464,6 +1464,21 @@ name of buffer configuration." | |||
| 1464 | (setq bs--marked-buffers nil) | 1464 | (setq bs--marked-buffers nil) |
| 1465 | (bs--show-with-configuration (bs--configuration-name-for-prefix-arg arg))) | 1465 | (bs--show-with-configuration (bs--configuration-name-for-prefix-arg arg))) |
| 1466 | 1466 | ||
| 1467 | ;; ---------------------------------------------------------------------- | ||
| 1468 | ;; Cleanup | ||
| 1469 | ;; ---------------------------------------------------------------------- | ||
| 1470 | |||
| 1471 | (defun bs-unload-function () | ||
| 1472 | "Unload the Buffer Selection library." | ||
| 1473 | (let ((bs-buf (get-buffer "*buffer-selection*"))) | ||
| 1474 | (when bs-buf | ||
| 1475 | (with-current-buffer bs-buf | ||
| 1476 | (when (eq major-mode 'bs-mode) | ||
| 1477 | (bs-kill) | ||
| 1478 | (kill-buffer bs-buf))))) | ||
| 1479 | ;; continue standard unloading | ||
| 1480 | nil) | ||
| 1481 | |||
| 1467 | ;; Now provide feature bs | 1482 | ;; Now provide feature bs |
| 1468 | (provide 'bs) | 1483 | (provide 'bs) |
| 1469 | 1484 | ||