Browse Source

Bugfix: aborting `org-iswitchb' should not activate iswitchb-mode.

Bastien Guerry 15 years ago
parent
commit
46b89a6030
2 changed files with 7 additions and 2 deletions
  1. 5 0
      lisp/ChangeLog
  2. 2 2
      lisp/org.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-08-08  Bastien Guerry  <bzg@altern.org>
+
+	* org.el (org-iswitchb): Fix bug when aborting the `org-iswitchb'
+	command before actually switching to a buffer.
+
 2009-08-07  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org-exp.el (org-get-file-contents): Only quote org lines when

+ 2 - 2
lisp/org.el

@@ -13396,8 +13396,8 @@ Due to some yet unresolved reason, the global function
 		      (mapcar 'buffer-name blist)))))
 	 (switch-to-buffer
 	  (iswitchb-read-buffer
-	   "Switch-to: " nil t))
-	 (or enabled (iswitchb-mode -1))))))
+	   "Switch-to: " nil t)))
+	 (or enabled (iswitchb-mode -1)))))
 
 ;;;###autoload
 (defun org-ido-switchb (&optional arg)