comparison lisp/window.el @ 106840:5df8e547a422

Fix typos in docstrings.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 14 Jan 2010 19:59:31 +0100
parents 1d1d5d9bd884
children b22d92cb789e cb4b54af7023
comparison
equal deleted inserted replaced
106839:7d4dcdf87b91 106840:5df8e547a422
75 "Return number of lines in WINDOW available for actual buffer text. 75 "Return number of lines in WINDOW available for actual buffer text.
76 WINDOW defaults to the selected window. 76 WINDOW defaults to the selected window.
77 77
78 The return value does not include the mode line or the header 78 The return value does not include the mode line or the header
79 line, if any. If a line at the bottom of the window is only 79 line, if any. If a line at the bottom of the window is only
80 partially visible, that line is included in the return value. If 80 partially visible, that line is included in the return value.
81 you do not want to include a partially visible bottom line in the 81 If you do not want to include a partially visible bottom line
82 return value, use `window-text-height' instead." 82 in the return value, use `window-text-height' instead."
83 (or window (setq window (selected-window))) 83 (or window (setq window (selected-window)))
84 (if (window-minibuffer-p window) 84 (if (window-minibuffer-p window)
85 (window-height window) 85 (window-height window)
86 (with-current-buffer (window-buffer window) 86 (with-current-buffer (window-buffer window)
87 (max 1 (- (window-height window) 87 (max 1 (- (window-height window)
783 (string-match-p (car regexp) buffer-name))) 783 (string-match-p (car regexp) buffer-name)))
784 (throw 'found t))))))) 784 (throw 'found t)))))))
785 785
786 (defcustom pop-up-frames nil 786 (defcustom pop-up-frames nil
787 "Whether `display-buffer' should make a separate frame. 787 "Whether `display-buffer' should make a separate frame.
788 If nil, never make a seperate frame. 788 If nil, never make a separate frame.
789 If the value is `graphic-only', make a separate frame 789 If the value is `graphic-only', make a separate frame
790 on graphic displays only. 790 on graphic displays only.
791 Any other non-nil value means always make a separate frame." 791 Any other non-nil value means always make a separate frame."
792 :type '(choice 792 :type '(choice
793 (const :tag "Never" nil) 793 (const :tag "Never" nil)
1004 is higher than WINDOW." 1004 is higher than WINDOW."
1005 (when (and even-window-heights 1005 (when (and even-window-heights
1006 (not (eq window (selected-window))) 1006 (not (eq window (selected-window)))
1007 ;; Don't resize minibuffer windows. 1007 ;; Don't resize minibuffer windows.
1008 (not (window-minibuffer-p (selected-window))) 1008 (not (window-minibuffer-p (selected-window)))
1009 (> (window-height (selected-window)) (window-height window)) 1009 (> (window-height (selected-window)) (window-height window))
1010 (eq (window-frame window) (window-frame (selected-window))) 1010 (eq (window-frame window) (window-frame (selected-window)))
1011 (let ((sel-edges (window-edges (selected-window))) 1011 (let ((sel-edges (window-edges (selected-window)))
1012 (win-edges (window-edges window))) 1012 (win-edges (window-edges window)))
1013 (and (= (nth 0 sel-edges) (nth 0 win-edges)) 1013 (and (= (nth 0 sel-edges) (nth 0 win-edges))
1014 (= (nth 2 sel-edges) (nth 2 win-edges)) 1014 (= (nth 2 sel-edges) (nth 2 win-edges))