]> git.eshelyaron.com Git - emacs.git/commitdiff
* bs.el (bs-unload-function): New function.
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 8 Oct 2008 09:02:28 +0000 (09:02 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 8 Oct 2008 09:02:28 +0000 (09:02 +0000)
lisp/bs.el

index d4d22d786d5c2ab97cd8b7427d56f5fa6b170d70..8a65252abc6fe23adf5395e7914ce4aa09e0813b 100644 (file)
@@ -1464,6 +1464,21 @@ name of buffer configuration."
   (setq bs--marked-buffers nil)
   (bs--show-with-configuration (bs--configuration-name-for-prefix-arg arg)))
 
+;; ----------------------------------------------------------------------
+;; Cleanup
+;; ----------------------------------------------------------------------
+
+(defun bs-unload-function ()
+  "Unload the Buffer Selection library."
+  (let ((bs-buf (get-buffer "*buffer-selection*")))
+    (when bs-buf
+      (with-current-buffer bs-buf
+       (when (eq major-mode 'bs-mode)
+         (bs-kill)
+         (kill-buffer bs-buf)))))
+  ;; continue standard unloading
+  nil)
+
 ;; Now provide feature bs
 (provide 'bs)