diff options
| author | Karoly Lorentey | 2004-01-03 19:06:35 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-01-03 19:06:35 +0000 |
| commit | f02480ab7ba2dd3529d252fa5dc5938d6fc32351 (patch) | |
| tree | fdda65c5e4eb9b81136a10a2e7ce32ae6f77e67c /src | |
| parent | 6121cb80f0869e7fbf257acda0831cbcdb2d7b18 (diff) | |
| download | emacs-f02480ab7ba2dd3529d252fa5dc5938d6fc32351.tar.gz emacs-f02480ab7ba2dd3529d252fa5dc5938d6fc32351.zip | |
Fix more SEGV cases in frame.c
src/frame.c (Fmouse_pixel_position, Fraise_frame, Flower_frame)
(Fredirect_frame_focus): Don't do anything if the current frame
is a termcap frame.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-43
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/frame.c b/src/frame.c index f2262f3a216..cc971edefc9 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1578,7 +1578,8 @@ and nil for X and Y. */) | |||
| 1578 | 1578 | ||
| 1579 | #ifdef HAVE_MOUSE | 1579 | #ifdef HAVE_MOUSE |
| 1580 | /* It's okay for the hook to refrain from storing anything. */ | 1580 | /* It's okay for the hook to refrain from storing anything. */ |
| 1581 | if (mouse_position_hook) | 1581 | if (FRAME_TERMCAP_P (f) |
| 1582 | && mouse_position_hook) | ||
| 1582 | (*mouse_position_hook) (&f, -1, | 1583 | (*mouse_position_hook) (&f, -1, |
| 1583 | &lispy_dummy, &party_dummy, | 1584 | &lispy_dummy, &party_dummy, |
| 1584 | &x, &y, | 1585 | &x, &y, |
| @@ -1852,7 +1853,8 @@ doesn't support multiple overlapping frames, this function does nothing. */) | |||
| 1852 | /* Do like the documentation says. */ | 1853 | /* Do like the documentation says. */ |
| 1853 | Fmake_frame_visible (frame); | 1854 | Fmake_frame_visible (frame); |
| 1854 | 1855 | ||
| 1855 | if (frame_raise_lower_hook) | 1856 | if (FRAME_TERMCAP_P (XFRAME (frame)) |
| 1857 | && frame_raise_lower_hook) | ||
| 1856 | (*frame_raise_lower_hook) (XFRAME (frame), 1); | 1858 | (*frame_raise_lower_hook) (XFRAME (frame), 1); |
| 1857 | 1859 | ||
| 1858 | return Qnil; | 1860 | return Qnil; |
| @@ -1872,7 +1874,8 @@ doesn't support multiple overlapping frames, this function does nothing. */) | |||
| 1872 | 1874 | ||
| 1873 | CHECK_LIVE_FRAME (frame); | 1875 | CHECK_LIVE_FRAME (frame); |
| 1874 | 1876 | ||
| 1875 | if (frame_raise_lower_hook) | 1877 | if (FRAME_TERMCAP_P (XFRAME (frame)) |
| 1878 | && frame_raise_lower_hook) | ||
| 1876 | (*frame_raise_lower_hook) (XFRAME (frame), 0); | 1879 | (*frame_raise_lower_hook) (XFRAME (frame), 0); |
| 1877 | 1880 | ||
| 1878 | return Qnil; | 1881 | return Qnil; |
| @@ -1917,7 +1920,8 @@ The redirection lasts until `redirect-frame-focus' is called to change it. */) | |||
| 1917 | 1920 | ||
| 1918 | XFRAME (frame)->focus_frame = focus_frame; | 1921 | XFRAME (frame)->focus_frame = focus_frame; |
| 1919 | 1922 | ||
| 1920 | if (!FRAME_TERMCAP_P (XFRAME (frame)) && frame_rehighlight_hook) | 1923 | if (!FRAME_TERMCAP_P (XFRAME (frame)) |
| 1924 | && frame_rehighlight_hook) | ||
| 1921 | (*frame_rehighlight_hook) (XFRAME (frame)); | 1925 | (*frame_rehighlight_hook) (XFRAME (frame)); |
| 1922 | 1926 | ||
| 1923 | return Qnil; | 1927 | return Qnil; |