浏览代码

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

Bastien Guerry 15 年之前
父节点
当前提交
46b89a6030
共有 2 个文件被更改,包括 7 次插入2 次删除
  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)