X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/7fdbcd83877ab0317df43e1120c583af3ba86bc4..b336bfcdf39f1e4d35bff4a7bd01d3b4bca8f516:/lisp/strokes.el diff --git a/lisp/strokes.el b/lisp/strokes.el index ba5ca20a2c..9006a41275 100644 --- a/lisp/strokes.el +++ b/lisp/strokes.el @@ -1,7 +1,7 @@ ;;; strokes.el --- control Emacs through mouse strokes ;; Copyright (C) 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, -;; 2008, 2009 Free Software Foundation, Inc. +;; 2008, 2009, 2010 Free Software Foundation, Inc. ;; Author: David Bakhash ;; Maintainer: FSF @@ -1061,13 +1061,12 @@ This is based on the last time `strokes-window-configuration' was updated." ;; 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)