Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

+Bugfix (issue #13): avoid burying current buffer if buttons buffer h…

…asn't been created.
  • Loading branch information...
commit 9231f3f25fe97742ea06dc943a6b9f5f8d92f218 1 parent 1994877
@escherdragon authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 sunrise-x-buttons.el
View
5 sunrise-x-buttons.el
@@ -7,7 +7,7 @@
;; Maintainer: José Alfredo Romero L. <escherdragon@gmail.com>
;; Created: 11 Jun 2008
;; Version: 1
-;; RCS Version: $Rev: 440 $
+;; RCS Version: $Rev: 444 $
;; Keywords: sunrise commander, shortcut buttons
;; URL: http://www.emacswiki.org/emacs/sunrise-x-buttons.el
;; Compatibility: GNU Emacs 22+
@@ -166,7 +166,8 @@
(add-hook 'sr-start-hook 'sr-buttons-display)
(add-hook 'sr-quit-hook (defun sr-buttons-sr-quit-function ()
- (bury-buffer (get-buffer sr-buttons-buffer-name))))
+ (let ((buttons (get-buffer sr-buttons-buffer-name)))
+ (if buttons (bury-buffer buttons)))))
(add-hook 'kill-buffer-hook
(defun sr-buttons-kill-buffer-function ()
(if (and sr-running
Please sign in to comment.
Something went wrong with that request. Please try again.