Permalink
Browse files

=Bugfix: avoid "buffer xxx modified" warnings when switching tabs.

  • Loading branch information...
1 parent c92b0aa commit 15ec4db43af8556c51f74f82a77c61e740f470b5 @escherdragon committed Jul 22, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 sunrise-x-tabs.el
View
@@ -7,7 +7,7 @@
;; Maintainer: José Alfredo Romero L. <escherdragon@gmail.com>
;; Created: 24 Oct 2009
;; Version: 1
-;; RCS Version: $Rev: 425 $
+;; RCS Version: $Rev: 431 $
;; Keywords: sunrise commander, tabs
;; URL: http://www.emacswiki.org/emacs/sunrise-x-tabs.el
;; Compatibility: GNU Emacs 22+
@@ -236,7 +236,9 @@ The direction depends on the value of BACK."
(set (sr-symbol sr-selected-window 'buffer) (current-buffer))
(set (sr-symbol sr-selected-window 'directory) default-directory)
(unless (eq from-buffer (sr-other 'buffer))
- (kill-buffer from-buffer))
+ (with-current-buffer from-buffer
+ (set-buffer-modified-p nil)
+ (kill-buffer (current-buffer))))
(revert-buffer)
(sr-history-push default-directory)))
(sr-tabs-refresh))

0 comments on commit 15ec4db

Please sign in to comment.