changeset 106030:cbcd940e3d89

* strokes.el (strokes-update-window-configuration): Make strokes buffer current before erasing (Bug#4906).
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 15 Nov 2009 15:59:05 +0000
parents d749d487704e
children 01ca1d5c7d8a
files lisp/ChangeLog lisp/strokes.el
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun Nov 15 15:37:17 2009 +0000
+++ b/lisp/ChangeLog	Sun Nov 15 15:59:05 2009 +0000
@@ -1,5 +1,8 @@
 2009-11-15  Chong Yidong  <cyd@stupidchicken.com>
 
+	* strokes.el (strokes-update-window-configuration): Make strokes
+	buffer current before erasing (Bug#4906).
+
 	* cedet/semantic/idle.el (semantic-idle-summary-mode)
 	(semantic-idle-summary-mode): Define using define-minor-mode
 	instead of define-semantic-idle-service.
--- a/lisp/strokes.el	Sun Nov 15 15:37:17 2009 +0000
+++ b/lisp/strokes.el	Sun Nov 15 15:59:05 2009 +0000
@@ -1061,13 +1061,12 @@
 	   ;; create `strokes-window-configuration' from scratch...
 	   (save-excursion
 	     (save-window-excursion
-	       (get-buffer-create strokes-buffer-name)
+	       (set-buffer (get-buffer-create strokes-buffer-name))
 	       (set-window-buffer current-window strokes-buffer-name)
 	       (delete-other-windows)
 	       (fundamental-mode)
 	       (auto-save-mode 0)
-	       (if (featurep 'font-lock)
-		   (font-lock-mode 0))
+	       (font-lock-mode 0)
 	       (abbrev-mode 0)
 	       (buffer-disable-undo (current-buffer))
 	       (setq truncate-lines nil)