aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-07-09 12:14:45 +0000
committerGerd Moellmann2001-07-09 12:14:45 +0000
commit59c2dcf474bc74a2b9b57e5145b30228173075f1 (patch)
treed21b60a81036916056d48739eff8fd17ce8e19a7
parent06c66e1c8680da1ae42c16bd454caee7942e18ac (diff)
downloademacs-59c2dcf474bc74a2b9b57e5145b30228173075f1.tar.gz
emacs-59c2dcf474bc74a2b9b57e5145b30228173075f1.zip
(winner-equal): Make it a defun. Don't compare Winner
configurations with compare-window-configuration; they aren't window configurations.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/winner.el16
2 files changed, 15 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d1dc4927858..8a2c30391ee 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12001-07-09 Gerd Moellmann <gerd@gnu.org> 12001-07-09 Gerd Moellmann <gerd@gnu.org>
2 2
3 * winner.el (winner-equal): Make it a defun. Don't compare Winner
4 configurations with compare-window-configuration; they aren't
5 window configurations.
6
3 * net/ange-ftp.el (ange-ftp-file-modtime): Check a 213 response 7 * net/ange-ftp.el (ange-ftp-file-modtime): Check a 213 response
4 from the server for the format we expect. Don't use it if it 8 from the server for the format we expect. Don't use it if it
5 doesn't look like what the Internet draft for FTP extensions 9 doesn't look like what the Internet draft for FTP extensions
diff --git a/lisp/winner.el b/lisp/winner.el
index 2e359959434..3443fcb0a9f 100644
--- a/lisp/winner.el
+++ b/lisp/winner.el
@@ -1,6 +1,6 @@
1;;; winner.el --- Restore old window configurations 1;;; winner.el --- Restore old window configurations
2 2
3;; Copyright (C) 1997, 1998 Free Software Foundation. Inc. 3;; Copyright (C) 1997, 1998, 2001 Free Software Foundation. Inc.
4 4
5;; Author: Ivar Rummelhoff <ivarru@math.uio.no> 5;; Author: Ivar Rummelhoff <ivarru@math.uio.no>
6;; Created: 27 Feb 1997 6;; Created: 27 Feb 1997
@@ -145,6 +145,16 @@ use either \\[customize] or the function `winner-mode'."
145;; Frames affected by the previous command. 145;; Frames affected by the previous command.
146(defvar winner-last-frames nil) 146(defvar winner-last-frames nil)
147 147
148
149(defun winner-equal (a b)
150 "Check two Winner configurations A and B for equality.
151Winner configurations are of the form (CONFIG BUFFERS),
152where CONFIG is a window configuration and BUFFERS is a list of
153buffers."
154 (and (compare-window-configurations (car a) (car b))
155 (equal (cdr a) (cdr b))))
156
157
148;; Save the current window configuration, if it has changed. 158;; Save the current window configuration, if it has changed.
149;; Then return frame, else return nil. 159;; Then return frame, else return nil.
150(defun winner-insert-if-new (frame) 160(defun winner-insert-if-new (frame)
@@ -427,10 +437,6 @@ In other words, \"undo\" changes in window configuration."
427 437
428;;; To be evaluated when the package is loaded: 438;;; To be evaluated when the package is loaded:
429 439
430(if (fboundp 'compare-window-configurations)
431 (defalias 'winner-equal 'compare-window-configurations)
432 (defalias 'winner-equal 'equal))
433
434(unless winner-mode-map 440(unless winner-mode-map
435 (setq winner-mode-map (make-sparse-keymap)) 441 (setq winner-mode-map (make-sparse-keymap))
436 (define-key winner-mode-map [(control x) left] 'winner-undo) 442 (define-key winner-mode-map [(control x) left] 'winner-undo)