aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-06-08 02:07:47 +0000
committerStefan Monnier2008-06-08 02:07:47 +0000
commit415da97ac4e3c6e9167eedf7c0aa5495e460eee4 (patch)
tree144b14ed12182dba0137a7287bb216d84ccac311
parentab5111e3df50ec7c21ffc86fb19e969db23c1f85 (diff)
downloademacs-415da97ac4e3c6e9167eedf7c0aa5495e460eee4.tar.gz
emacs-415da97ac4e3c6e9167eedf7c0aa5495e460eee4.zip
(special-display-p, display-buffer): Fix up C->Elisp transcription error.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/window.el42
2 files changed, 27 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d8d74ab2053..1e351e59a06 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12008-06-08 Stefan Monnier <monnier@iro.umontreal.ca> 12008-06-08 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * window.el (special-display-p, display-buffer):
4 Fix up C->Elisp transcription error.
5
62008-06-08 Stefan Monnier <monnier@iro.umontreal.ca>
7
3 * emacs-lisp/bytecomp.el (byte-compile-current-group): New var. 8 * emacs-lisp/bytecomp.el (byte-compile-current-group): New var.
4 (byte-compile-file): Initialize it. 9 (byte-compile-file): Initialize it.
5 (byte-compile-nogroup-warn): Keep track of the current group. 10 (byte-compile-nogroup-warn): Keep track of the current group.
diff --git a/lisp/window.el b/lisp/window.el
index 96511250ce0..86da093a184 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -440,6 +440,7 @@ DIRECTION can be nil (i.e. any), `height' or `width'."
440 "Factor by which the window area should be over-estimated. 440 "Factor by which the window area should be over-estimated.
441This is used by `balance-windows-area'. 441This is used by `balance-windows-area'.
442Changing this globally has no effect.") 442Changing this globally has no effect.")
443(make-variable-buffer-local 'window-area-factor)
443 444
444(defun balance-windows-area () 445(defun balance-windows-area ()
445 "Make all visible windows the same area (approximately). 446 "Make all visible windows the same area (approximately).
@@ -542,20 +543,21 @@ If the value is a list, it is a list of frame parameters that
542would be used to make a frame for that buffer. The variables 543would be used to make a frame for that buffer. The variables
543`special-display-buffer-names' and `special-display-regexps' 544`special-display-buffer-names' and `special-display-regexps'
544control this." 545control this."
545 (cond 546 (let (tmp)
546 ((not (stringp buffer-name))) 547 (cond
547 ;; Make sure to return t in the following two cases. 548 ((not (stringp buffer-name)))
548 ((member buffer-name special-display-buffer-names) t) 549 ;; Make sure to return t in the following two cases.
549 ((assoc buffer-name special-display-buffer-names) t) 550 ((member buffer-name special-display-buffer-names) t)
550 ((catch 'found 551 ((setq tmp (assoc buffer-name special-display-buffer-names)) (cdr tmp))
551 (dolist (regexp special-display-regexps) 552 ((catch 'found
552 (cond 553 (dolist (regexp special-display-regexps)
553 ((stringp regexp) 554 (cond
554 (when (string-match-p regexp buffer-name) 555 ((stringp regexp)
555 (throw 'found t))) 556 (when (string-match-p regexp buffer-name)
556 ((and (consp regexp) (stringp (car regexp)) 557 (throw 'found t)))
557 (string-match-p (car regexp) buffer-name)) 558 ((and (consp regexp) (stringp (car regexp))
558 (throw 'found (cdr regexp))))))))) 559 (string-match-p (car regexp) buffer-name))
560 (throw 'found (cdr regexp))))))))))
559 561
560(defcustom special-display-buffer-names nil 562(defcustom special-display-buffer-names nil
561 "List of buffer names that should have their own special frames. 563 "List of buffer names that should have their own special frames.
@@ -931,11 +933,11 @@ return that window. Possible values of FRAME are:
931 933
9320 - consider windows on all visible or iconified frames. 9340 - consider windows on all visible or iconified frames.
933 935
934`t' - consider windows on all frames. 936t - consider windows on all frames.
935 937
936A specific frame - consider windows on that frame only. 938A specific frame - consider windows on that frame only.
937 939
938`nil' - consider windows on the selected frame \(actually the 940nil - consider windows on the selected frame \(actually the
939last non-minibuffer frame\) only. If, however, either 941last non-minibuffer frame\) only. If, however, either
940`display-buffer-reuse-frames' or `pop-up-frames' is non-nil, 942`display-buffer-reuse-frames' or `pop-up-frames' is non-nil,
941consider all visible or iconified frames." 943consider all visible or iconified frames."
@@ -988,7 +990,7 @@ consider all visible or iconified frames."
988 (let ((pars (special-display-p name-of-buffer))) 990 (let ((pars (special-display-p name-of-buffer)))
989 (when pars 991 (when pars
990 (funcall special-display-function 992 (funcall special-display-function
991 (if (eq pars t) buffer pars)))))) 993 buffer (if (listp pars) pars))))))
992 ((or pop-up-frames (not frame-to-use)) 994 ((or pop-up-frames (not frame-to-use))
993 ;; We want or need a new frame. 995 ;; We want or need a new frame.
994 (window--display-buffer-2 996 (window--display-buffer-2
@@ -1053,7 +1055,7 @@ at the front of the list of recently selected ones."
1053 1055
1054;; I think this should be the default; I think people will prefer it--rms. 1056;; I think this should be the default; I think people will prefer it--rms.
1055(defcustom split-window-keep-point t 1057(defcustom split-window-keep-point t
1056 "*If non-nil, \\[split-window-vertically] keeps the original point \ 1058 "If non-nil, \\[split-window-vertically] keeps the original point \
1057in both children. 1059in both children.
1058This is often more convenient for editing. 1060This is often more convenient for editing.
1059If nil, adjust point in each of the two windows to minimize redisplay. 1061If nil, adjust point in each of the two windows to minimize redisplay.
@@ -1577,8 +1579,8 @@ active. This function is run by `mouse-autoselect-window-timer'."
1577 (progn 1579 (progn
1578 ;; Cancel any delayed autoselection. 1580 ;; Cancel any delayed autoselection.
1579 (mouse-autoselect-window-cancel t) 1581 (mouse-autoselect-window-cancel t)
1580 ;; Start delayed autoselection from current mouse position 1582 ;; Start delayed autoselection from current mouse
1581 ;; and window. 1583 ;; position and window.
1582 (mouse-autoselect-window-start (mouse-position) window) 1584 (mouse-autoselect-window-start (mouse-position) window)
1583 ;; Executing a command cancels delayed autoselection. 1585 ;; Executing a command cancels delayed autoselection.
1584 (add-hook 1586 (add-hook