diff options
| author | Stefan Monnier | 2008-06-08 02:07:47 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-06-08 02:07:47 +0000 |
| commit | 415da97ac4e3c6e9167eedf7c0aa5495e460eee4 (patch) | |
| tree | 144b14ed12182dba0137a7287bb216d84ccac311 | |
| parent | ab5111e3df50ec7c21ffc86fb19e969db23c1f85 (diff) | |
| download | emacs-415da97ac4e3c6e9167eedf7c0aa5495e460eee4.tar.gz emacs-415da97ac4e3c6e9167eedf7c0aa5495e460eee4.zip | |
(special-display-p, display-buffer): Fix up C->Elisp transcription error.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/window.el | 42 |
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 @@ | |||
| 1 | 2008-06-08 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-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 | |||
| 6 | 2008-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. |
| 441 | This is used by `balance-windows-area'. | 441 | This is used by `balance-windows-area'. |
| 442 | Changing this globally has no effect.") | 442 | Changing 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 | |||
| 542 | would be used to make a frame for that buffer. The variables | 543 | would 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' |
| 544 | control this." | 545 | control 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 | ||
| 932 | 0 - consider windows on all visible or iconified frames. | 934 | 0 - consider windows on all visible or iconified frames. |
| 933 | 935 | ||
| 934 | `t' - consider windows on all frames. | 936 | t - consider windows on all frames. |
| 935 | 937 | ||
| 936 | A specific frame - consider windows on that frame only. | 938 | A specific frame - consider windows on that frame only. |
| 937 | 939 | ||
| 938 | `nil' - consider windows on the selected frame \(actually the | 940 | nil - consider windows on the selected frame \(actually the |
| 939 | last non-minibuffer frame\) only. If, however, either | 941 | last 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, |
| 941 | consider all visible or iconified frames." | 943 | consider 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 \ |
| 1057 | in both children. | 1059 | in both children. |
| 1058 | This is often more convenient for editing. | 1060 | This is often more convenient for editing. |
| 1059 | If nil, adjust point in each of the two windows to minimize redisplay. | 1061 | If 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 |