aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2003-10-13 18:44:22 +0000
committerRichard M. Stallman2003-10-13 18:44:22 +0000
commit499858c56d92c674ed9a9f4d623a733208d0ebb7 (patch)
tree891d2f3feccad44f1bed6ce14696fbe5a2d3a7f1 /src
parent57f16f832e20cb2b56a33f1a7bed14c07ef3b1a0 (diff)
downloademacs-499858c56d92c674ed9a9f4d623a733208d0ebb7.tar.gz
emacs-499858c56d92c674ed9a9f4d623a733208d0ebb7.zip
(Fset_window_margins): Allow only integers as args.
(syms_of_window) <special-display-buffer-names, special-display-regexps>: Doc fixes.
Diffstat (limited to 'src')
-rw-r--r--src/window.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c
index 69204ab9a30..824200dc18f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5856,14 +5856,10 @@ A nil width parameter means no margin. */)
5856{ 5856{
5857 struct window *w = decode_window (window); 5857 struct window *w = decode_window (window);
5858 5858
5859 /* TODO: It doesn't make sense to use FLOATs here, since
5860 the rest of the code assumes they are integers.
5861 So don't allow floats! ++KFS */
5862
5863 if (!NILP (left)) 5859 if (!NILP (left))
5864 CHECK_NUMBER_OR_FLOAT (left); 5860 CHECK_NUMBER (left);
5865 if (!NILP (right)) 5861 if (!NILP (right))
5866 CHECK_NUMBER_OR_FLOAT (right); 5862 CHECK_NUMBER (right);
5867 5863
5868 /* Check widths < 0 and translate a zero width to nil. 5864 /* Check widths < 0 and translate a zero width to nil.
5869 Margins that are too wide have to be checked elsewhere. */ 5865 Margins that are too wide have to be checked elsewhere. */
@@ -6447,6 +6443,11 @@ In the latter case, FUNCTION is called with BUFFER as the first argument,
6447followed by OTHER-ARGS--it can display BUFFER in any way it likes. 6443followed by OTHER-ARGS--it can display BUFFER in any way it likes.
6448All this is done by the function found in `special-display-function'. 6444All this is done by the function found in `special-display-function'.
6449 6445
6446If the specified frame parameters include (same-buffer . t), the
6447buffer is displayed in the currently selected window. Otherwise, if
6448they include (same-frame . t), the buffer is displayed in a new window
6449in the currently selected frame.
6450
6450If this variable appears \"not to work\", because you add a name to it 6451If this variable appears \"not to work\", because you add a name to it
6451but that buffer still appears in the selected window, look at the 6452but that buffer still appears in the selected window, look at the
6452values of `same-window-buffer-names' and `same-window-regexps'. 6453values of `same-window-buffer-names' and `same-window-regexps'.
@@ -6467,6 +6468,11 @@ In the latter case, FUNCTION is called with the buffer as first argument,
6467followed by OTHER-ARGS--it can display the buffer in any way it likes. 6468followed by OTHER-ARGS--it can display the buffer in any way it likes.
6468All this is done by the function found in `special-display-function'. 6469All this is done by the function found in `special-display-function'.
6469 6470
6471If the specified frame parameters include (same-buffer . t), the
6472buffer is displayed in the currently selected window. Otherwise, if
6473they include (same-frame . t), the buffer is displayed in a new window
6474in the currently selected frame.
6475
6470If this variable appears \"not to work\", because you add a regexp to it 6476If this variable appears \"not to work\", because you add a regexp to it
6471but the matching buffers still appear in the selected window, look at the 6477but the matching buffers still appear in the selected window, look at the
6472values of `same-window-buffer-names' and `same-window-regexps'. 6478values of `same-window-buffer-names' and `same-window-regexps'.