diff options
| author | Stefan Monnier | 2003-05-17 21:17:45 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-05-17 21:17:45 +0000 |
| commit | f1321dc307e63c17ce838e0b32e2708fd351f1df (patch) | |
| tree | 0bda7c11a457c162a6b8c609d30c8b8984aafdba /src | |
| parent | 7c0a9c8f30222f112d9ee9e35527131d10e0bdc9 (diff) | |
| download | emacs-f1321dc307e63c17ce838e0b32e2708fd351f1df.tar.gz emacs-f1321dc307e63c17ce838e0b32e2708fd351f1df.zip | |
(Fselect_window): Add optional arg `norecord'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 6 | ||||
| -rw-r--r-- | src/callint.c | 6 | ||||
| -rw-r--r-- | src/frame.c | 8 | ||||
| -rw-r--r-- | src/macterm.c | 2 | ||||
| -rw-r--r-- | src/minibuf.c | 2 | ||||
| -rw-r--r-- | src/window.h | 4 | ||||
| -rw-r--r-- | src/xterm.c | 4 |
7 files changed, 16 insertions, 16 deletions
diff --git a/src/buffer.c b/src/buffer.c index d45c8d70ce5..ca9111f2e47 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Buffer manipulation primitives for GNU Emacs. | 1 | /* Buffer manipulation primitives for GNU Emacs. |
| 2 | Copyright (C) 1985,86,87,88,89,93,94,95,97,98, 1999, 2000, 2001, 2002 | 2 | Copyright (C) 1985,86,87,88,89,93,94,95,97,98, 1999, 2000, 2001, 02, 2003 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -1661,9 +1661,9 @@ do not put this buffer at the front of the list of recently selected ones. */) | |||
| 1661 | } | 1661 | } |
| 1662 | Fset_buffer (buf); | 1662 | Fset_buffer (buf); |
| 1663 | if (NILP (norecord)) | 1663 | if (NILP (norecord)) |
| 1664 | /* This seems bogus since Fselect_window will call record_buffer anyway. */ | 1664 | /* Why bother ? Fselect_window will do it for us anyway. -stef */ |
| 1665 | record_buffer (buf); | 1665 | record_buffer (buf); |
| 1666 | Fselect_window (Fdisplay_buffer (buf, other_window, Qnil)); | 1666 | Fselect_window (Fdisplay_buffer (buf, other_window, Qnil), norecord); |
| 1667 | return buf; | 1667 | return buf; |
| 1668 | } | 1668 | } |
| 1669 | 1669 | ||
diff --git a/src/callint.c b/src/callint.c index f80f3c62027..4edb4201fa4 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Call a Lisp function interactively. | 1 | /* Call a Lisp function interactively. |
| 2 | Copyright (C) 1985, 86, 93, 94, 95, 1997, 2000, 2002 | 2 | Copyright (C) 1985, 86, 93, 94, 95, 1997, 2000, 02, 2003 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -379,7 +379,7 @@ supply if the command inquires which events were used to invoke it. */) | |||
| 379 | if (i != num_input_events || !NILP (record_flag)) | 379 | if (i != num_input_events || !NILP (record_flag)) |
| 380 | { | 380 | { |
| 381 | /* We should record this command on the command history. */ | 381 | /* We should record this command on the command history. */ |
| 382 | Lisp_Object values, car; | 382 | Lisp_Object values; |
| 383 | /* Make a copy of the list of values, for the command history, | 383 | /* Make a copy of the list of values, for the command history, |
| 384 | and turn them into things we can eval. */ | 384 | and turn them into things we can eval. */ |
| 385 | values = quotify_args (Fcopy_sequence (specs)); | 385 | values = quotify_args (Fcopy_sequence (specs)); |
| @@ -456,7 +456,7 @@ supply if the command inquires which events were used to invoke it. */) | |||
| 456 | if (!NILP (Vmouse_leave_buffer_hook)) | 456 | if (!NILP (Vmouse_leave_buffer_hook)) |
| 457 | call1 (Vrun_hooks, Qmouse_leave_buffer_hook); | 457 | call1 (Vrun_hooks, Qmouse_leave_buffer_hook); |
| 458 | 458 | ||
| 459 | Fselect_window (event); | 459 | Fselect_window (event, Qnil); |
| 460 | } | 460 | } |
| 461 | string++; | 461 | string++; |
| 462 | } | 462 | } |
diff --git a/src/frame.c b/src/frame.c index 697c2b8aabe..af280f13537 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Generic frame functions. | 1 | /* Generic frame functions. |
| 2 | Copyright (C) 1993, 1994, 1995, 1997, 1999, 2000, 2001 | 2 | Copyright (C) 1993, 1994, 1995, 1997, 1999, 2000, 2001, 2003 |
| 3 | Free Software Foundation. | 3 | Free Software Foundation. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -682,7 +682,7 @@ do_switch_frame (frame, track, for_deletion) | |||
| 682 | if (! FRAME_MINIBUF_ONLY_P (XFRAME (selected_frame))) | 682 | if (! FRAME_MINIBUF_ONLY_P (XFRAME (selected_frame))) |
| 683 | last_nonminibuf_frame = XFRAME (selected_frame); | 683 | last_nonminibuf_frame = XFRAME (selected_frame); |
| 684 | 684 | ||
| 685 | Fselect_window (XFRAME (frame)->selected_window); | 685 | Fselect_window (XFRAME (frame)->selected_window, Qnil); |
| 686 | 686 | ||
| 687 | #ifndef WINDOWSNT | 687 | #ifndef WINDOWSNT |
| 688 | /* Make sure to switch the tty color mode to that of the newly | 688 | /* Make sure to switch the tty color mode to that of the newly |
| @@ -860,7 +860,7 @@ If FRAME is the selected frame, this makes WINDOW the selected window. */) | |||
| 860 | error ("In `set-frame-selected-window', WINDOW is not on FRAME"); | 860 | error ("In `set-frame-selected-window', WINDOW is not on FRAME"); |
| 861 | 861 | ||
| 862 | if (EQ (frame, selected_frame)) | 862 | if (EQ (frame, selected_frame)) |
| 863 | return Fselect_window (window); | 863 | return Fselect_window (window, Qnil); |
| 864 | 864 | ||
| 865 | return XFRAME (frame)->selected_window = window; | 865 | return XFRAME (frame)->selected_window = window; |
| 866 | } | 866 | } |
| @@ -1234,7 +1234,7 @@ The functions are run with one arg, the frame to be deleted. */) | |||
| 1234 | /* If the dying minibuffer window was selected, | 1234 | /* If the dying minibuffer window was selected, |
| 1235 | select the new one. */ | 1235 | select the new one. */ |
| 1236 | if (minibuffer_selected) | 1236 | if (minibuffer_selected) |
| 1237 | Fselect_window (minibuf_window); | 1237 | Fselect_window (minibuf_window, Qnil); |
| 1238 | } | 1238 | } |
| 1239 | 1239 | ||
| 1240 | /* Don't let echo_area_window to remain on a deleted frame. */ | 1240 | /* Don't let echo_area_window to remain on a deleted frame. */ |
diff --git a/src/macterm.c b/src/macterm.c index c1806cab714..dcad5b38442 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -3235,7 +3235,7 @@ x_new_focus_frame (dpyinfo, frame) | |||
| 3235 | selected_frame = frame; | 3235 | selected_frame = frame; |
| 3236 | XSETFRAME (XWINDOW (selected_frame->selected_window)->frame, | 3236 | XSETFRAME (XWINDOW (selected_frame->selected_window)->frame, |
| 3237 | selected_frame); | 3237 | selected_frame); |
| 3238 | Fselect_window (selected_frame->selected_window); | 3238 | Fselect_window (selected_frame->selected_window, Qnil); |
| 3239 | choose_minibuf_frame (); | 3239 | choose_minibuf_frame (); |
| 3240 | #endif /* ! 0 */ | 3240 | #endif /* ! 0 */ |
| 3241 | 3241 | ||
diff --git a/src/minibuf.c b/src/minibuf.c index 417e023469d..63799a2be76 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -589,7 +589,7 @@ read_minibuf (map, initial, prompt, backup_n, expflag, | |||
| 589 | if (minibuf_level == 1 || !EQ (minibuf_window, selected_window)) | 589 | if (minibuf_level == 1 || !EQ (minibuf_window, selected_window)) |
| 590 | minibuf_selected_window = selected_window; | 590 | minibuf_selected_window = selected_window; |
| 591 | Fset_window_buffer (minibuf_window, Fcurrent_buffer ()); | 591 | Fset_window_buffer (minibuf_window, Fcurrent_buffer ()); |
| 592 | Fselect_window (minibuf_window); | 592 | Fselect_window (minibuf_window, Qnil); |
| 593 | XSETFASTINT (XWINDOW (minibuf_window)->hscroll, 0); | 593 | XSETFASTINT (XWINDOW (minibuf_window)->hscroll, 0); |
| 594 | 594 | ||
| 595 | Fmake_local_variable (Qprint_escape_newlines); | 595 | Fmake_local_variable (Qprint_escape_newlines); |
diff --git a/src/window.h b/src/window.h index ed5bc6b14b1..c5da959c238 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Window definitions for GNU Emacs. | 1 | /* Window definitions for GNU Emacs. |
| 2 | Copyright (C) 1985, 1986, 1993, 1995, 1997, 1998, 1999, 2000, 2001 | 2 | Copyright (C) 1985, 1986, 1993, 1995, 1997, 1998, 1999, 2000, 2001, 2003 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -366,7 +366,7 @@ extern Lisp_Object Vmouse_window; | |||
| 366 | extern Lisp_Object Vmouse_event; | 366 | extern Lisp_Object Vmouse_event; |
| 367 | 367 | ||
| 368 | EXFUN (Fnext_window, 3); | 368 | EXFUN (Fnext_window, 3); |
| 369 | EXFUN (Fselect_window, 1); | 369 | EXFUN (Fselect_window, 2); |
| 370 | EXFUN (Fdisplay_buffer, 3); | 370 | EXFUN (Fdisplay_buffer, 3); |
| 371 | EXFUN (Fset_window_buffer, 2); | 371 | EXFUN (Fset_window_buffer, 2); |
| 372 | EXFUN (Fset_window_hscroll, 2); | 372 | EXFUN (Fset_window_hscroll, 2); |
diff --git a/src/xterm.c b/src/xterm.c index 635fe3f28e4..0992e1fac9d 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* X Communication module for terminals which understand the X protocol. | 1 | /* X Communication module for terminals which understand the X protocol. |
| 2 | Copyright (C) 1989, 93, 94, 95, 96, 1997, 1998, 1999, 2000, 2001, 2002 | 2 | Copyright (C) 1989, 93, 94, 95, 96, 97, 98, 1999, 2000, 01, 02, 2003 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -3103,7 +3103,7 @@ x_new_focus_frame (dpyinfo, frame) | |||
| 3103 | selected_frame = frame; | 3103 | selected_frame = frame; |
| 3104 | XSETFRAME (XWINDOW (selected_frame->selected_window)->frame, | 3104 | XSETFRAME (XWINDOW (selected_frame->selected_window)->frame, |
| 3105 | selected_frame); | 3105 | selected_frame); |
| 3106 | Fselect_window (selected_frame->selected_window); | 3106 | Fselect_window (selected_frame->selected_window, Qnil); |
| 3107 | choose_minibuf_frame (); | 3107 | choose_minibuf_frame (); |
| 3108 | #endif /* ! 0 */ | 3108 | #endif /* ! 0 */ |
| 3109 | 3109 | ||