diff options
| author | Miles Bader | 2007-03-18 14:00:43 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-03-18 14:00:43 +0000 |
| commit | 5f0813fa6d43b780adae1cb47835ae70adcb3b12 (patch) | |
| tree | d6c3b598429ec5ffbc09b7be19a900f86881ba81 /src | |
| parent | 497fb25eb16b715d24354db87a0ef9415e94b878 (diff) | |
| download | emacs-5f0813fa6d43b780adae1cb47835ae70adcb3b12.tar.gz emacs-5f0813fa6d43b780adae1cb47835ae70adcb3b12.zip | |
Changes from arch/CVS synchronization
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 103 | ||||
| -rw-r--r-- | src/macfns.c | 22 | ||||
| -rw-r--r-- | src/process.c | 16 |
3 files changed, 39 insertions, 102 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2c241cd2a51..af6d98afb2a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,90 +1,12 @@ | |||
| 1 | 2007-03-11 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop. | ||
| 4 | |||
| 5 | 2007-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 6 | |||
| 7 | * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.". | ||
| 8 | |||
| 9 | 2007-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 10 | |||
| 11 | * macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event): Ignore | ||
| 12 | mouse wheel movement on title bar or tool bar. | ||
| 13 | |||
| 14 | 2007-03-10 Chong Yidong <cyd@stupidchicken.com> | ||
| 15 | |||
| 16 | * keyboard.c (help_form_saved_window_configs): New var. | ||
| 17 | (read_char_help_form_unwind): New function. | ||
| 18 | (read_char): Don't restore window configuration if a mouse click | ||
| 19 | arrives while the help form is being displayed. | ||
| 20 | |||
| 21 | 2007-03-10 Kim F. Storm <storm@cua.dk> | ||
| 22 | |||
| 23 | * xdisp.c (redisplay_window): Don't automatically select a new window | ||
| 24 | start for a contination line during mouse-click. | ||
| 25 | |||
| 26 | 2007-03-09 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 27 | |||
| 28 | * xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar. | ||
| 29 | |||
| 30 | 2007-03-09 Juanma Barranquero <lekktu@gmail.com> | ||
| 31 | |||
| 32 | * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid. | ||
| 33 | |||
| 34 | 2007-03-08 Richard Stallman <rms@gnu.org> | ||
| 35 | |||
| 36 | * keyboard.c (syms_of_keyboard): Doc fix. | ||
| 37 | |||
| 38 | 2007-03-08 Chong Yidong <cyd@stupidchicken.com> | ||
| 39 | |||
| 40 | * minibuf.c (Ftry_completion): Don't short circuit if | ||
| 41 | completion-ignore-case is non-nil. | ||
| 42 | |||
| 43 | 2007-03-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 44 | |||
| 45 | * macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers): | ||
| 46 | Undo 2006-03-06 changes. | ||
| 47 | |||
| 48 | * macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll | ||
| 49 | bar if its width is smaller than that of Aqua small scroll bar. | ||
| 50 | |||
| 51 | 2007-03-07 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 52 | |||
| 53 | * minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as | ||
| 54 | to handle correctly prompts with read-only property. | ||
| 55 | |||
| 56 | 2007-03-06 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 57 | |||
| 58 | * sound.c (wav_play): Check header->data_length to see how much we | ||
| 59 | shall read. | ||
| 60 | (alsa_period_size): Convert ALSA period size in frames to bytes. | ||
| 61 | (alsa_write): Return if frames is zero. | ||
| 62 | |||
| 63 | 2007-03-06 Kenichi Handa <handa@m17n.org> | ||
| 64 | |||
| 65 | * xselect.c (Vselection_coding_system): Documentation improved. | ||
| 66 | |||
| 67 | 2007-03-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 68 | |||
| 69 | * macterm.c (x_scroll_bar_create, XTread_socket): Replace #if | ||
| 70 | USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS. | ||
| 71 | (x_set_window_size): Call SET_FRAME_GARBAGED. Clear window if | ||
| 72 | internal border width has changed. | ||
| 73 | |||
| 74 | * macterm.h (struct mac_output): New member `internal_border_width'. | ||
| 75 | |||
| 76 | 2007-03-04 Richard Stallman <rms@gnu.org> | ||
| 77 | |||
| 78 | * window.c (Fdisplay_buffer): Doc fix. | ||
| 79 | |||
| 80 | 2007-03-03 Glenn Morris <rgm@gnu.org> | 1 | 2007-03-03 Glenn Morris <rgm@gnu.org> |
| 81 | 2 | ||
| 82 | * Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does | 3 | * Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does |
| 83 | not include -lX11 on Solaris. | 4 | not include -lX11 on Solaris. |
| 84 | 5 | ||
| 85 | 2007-03-02 Stuart D. Herring <herring@lanl.gov> | 6 | 2007-03-02 Stuart D. Herring <herring@lanl.gov> |
| 86 | 7 | ||
| 87 | * keymap.c (Fkey_binding): Don't consider one-element lists as events. | 8 | * keymap.c (Fkey_binding): Don't consider two-element lists as |
| 9 | events. | ||
| 88 | 10 | ||
| 89 | 2007-03-01 Kenichi Handa <handa@m17n.org> | 11 | 2007-03-01 Kenichi Handa <handa@m17n.org> |
| 90 | 12 | ||
| @@ -113,8 +35,8 @@ | |||
| 113 | (x_scroll_bar_create, XTset_vertical_scroll_bar) | 35 | (x_scroll_bar_create, XTset_vertical_scroll_bar) |
| 114 | [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle. | 36 | [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle. |
| 115 | 37 | ||
| 116 | * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | 38 | * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: New |
| 117 | New member `min_handle'. | 39 | member `min_handle'. |
| 118 | 40 | ||
| 119 | 2007-02-23 Kim F. Storm <storm@cua.dk> | 41 | 2007-02-23 Kim F. Storm <storm@cua.dk> |
| 120 | 42 | ||
| @@ -137,11 +59,11 @@ | |||
| 137 | (mac_flush_display_optional) [USE_CG_DRAWING]: New function. | 59 | (mac_flush_display_optional) [USE_CG_DRAWING]: New function. |
| 138 | (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for | 60 | (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for |
| 139 | flush_display_optional. | 61 | flush_display_optional. |
| 140 | [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press): | 62 | [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press): New |
| 141 | New argument MOUSE_POS. All uses changed. Set bar->dragging to | 63 | argument MOUSE_POS. All uses changed. Set bar->dragging to |
| 142 | negative integer if scroll bar handle is pressed. | 64 | negative integer if scroll bar handle is pressed. |
| 143 | [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release): | 65 | [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release): Negative |
| 144 | Negative bar->dragging means scroll bar handle is not dragged. | 66 | bar->dragging means scroll bar handle is not dragged. |
| 145 | [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial | 67 | [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial |
| 146 | offset of scroll bar handle from negative bar->dragging. | 68 | offset of scroll bar handle from negative bar->dragging. |
| 147 | (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll | 69 | (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll |
| @@ -176,7 +98,8 @@ | |||
| 176 | 98 | ||
| 177 | * w32menu.c (current_popup_menu): Make available globally. | 99 | * w32menu.c (current_popup_menu): Make available globally. |
| 178 | (menubar_selection_callback): Free menu strings before pushing the | 100 | (menubar_selection_callback): Free menu strings before pushing the |
| 179 | menu event into the keyboard buffer. Remove menu_command_in_progress. | 101 | menu event into the keyboard buffer. Remove |
| 102 | menu_command_in_progress. | ||
| 180 | 103 | ||
| 181 | * w32fns.c (current_popup_menu): Use from w32menu.c. | 104 | * w32fns.c (current_popup_menu): Use from w32menu.c. |
| 182 | (w32_wnd_proc) [WM_EXITMENULOOP, WM_TIMER]: Use menubar_active | 105 | (w32_wnd_proc) [WM_EXITMENULOOP, WM_TIMER]: Use menubar_active |
| @@ -446,8 +369,8 @@ | |||
| 446 | 369 | ||
| 447 | 2007-01-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 370 | 2007-01-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 448 | 371 | ||
| 449 | * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]: | 372 | * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Use |
| 450 | Use DisableControl for disabled items. Set default button to first | 373 | DisableControl for disabled items. Set default button to first |
| 451 | enabled one. Use icon of application in execution. | 374 | enabled one. Use icon of application in execution. |
| 452 | 375 | ||
| 453 | 2007-01-13 Eli Zaretskii <eliz@gnu.org> | 376 | 2007-01-13 Eli Zaretskii <eliz@gnu.org> |
diff --git a/src/macfns.c b/src/macfns.c index 888c3bdf8e8..072bc6f50b5 100644 --- a/src/macfns.c +++ b/src/macfns.c | |||
| @@ -1909,6 +1909,24 @@ x_set_scroll_bar_default_width (f) | |||
| 1909 | #endif /* not MAC_OSX */ | 1909 | #endif /* not MAC_OSX */ |
| 1910 | } | 1910 | } |
| 1911 | 1911 | ||
| 1912 | void | ||
| 1913 | mac_set_scroll_bar_width (f, arg, oldval) | ||
| 1914 | struct frame *f; | ||
| 1915 | Lisp_Object arg, oldval; | ||
| 1916 | { | ||
| 1917 | #ifdef MAC_OSX | ||
| 1918 | if (INTEGERP (arg) && XINT (arg) > 0) | ||
| 1919 | { | ||
| 1920 | if (XINT (arg) < (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH | ||
| 1921 | + MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH) / 2) | ||
| 1922 | XSETINT (arg, MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH); | ||
| 1923 | else | ||
| 1924 | XSETINT (arg, MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH); | ||
| 1925 | } | ||
| 1926 | #endif | ||
| 1927 | x_set_scroll_bar_width (f, arg, oldval); | ||
| 1928 | } | ||
| 1929 | |||
| 1912 | static void | 1930 | static void |
| 1913 | mac_set_font (f, arg, oldval) | 1931 | mac_set_font (f, arg, oldval) |
| 1914 | struct frame *f; | 1932 | struct frame *f; |
| @@ -3034,7 +3052,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3034 | (display) | 3052 | (display) |
| 3035 | Lisp_Object display; | 3053 | Lisp_Object display; |
| 3036 | { | 3054 | { |
| 3037 | return build_string ("Apple Inc."); | 3055 | return build_string ("Apple Computers"); |
| 3038 | } | 3056 | } |
| 3039 | 3057 | ||
| 3040 | DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, | 3058 | DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, |
| @@ -4659,7 +4677,7 @@ frame_parm_handler mac_frame_parm_handlers[] = | |||
| 4659 | x_set_menu_bar_lines, | 4677 | x_set_menu_bar_lines, |
| 4660 | x_set_mouse_color, | 4678 | x_set_mouse_color, |
| 4661 | x_explicitly_set_name, | 4679 | x_explicitly_set_name, |
| 4662 | x_set_scroll_bar_width, | 4680 | mac_set_scroll_bar_width, |
| 4663 | x_set_title, | 4681 | x_set_title, |
| 4664 | x_set_unsplittable, | 4682 | x_set_unsplittable, |
| 4665 | x_set_vertical_scroll_bars, | 4683 | x_set_vertical_scroll_bars, |
diff --git a/src/process.c b/src/process.c index f3162c9d3e5..4611ce2c05c 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -6401,16 +6401,12 @@ sigchld_handler (signo) | |||
| 6401 | #define WUNTRACED 0 | 6401 | #define WUNTRACED 0 |
| 6402 | #endif /* no WUNTRACED */ | 6402 | #endif /* no WUNTRACED */ |
| 6403 | /* Keep trying to get a status until we get a definitive result. */ | 6403 | /* Keep trying to get a status until we get a definitive result. */ |
| 6404 | while (1) { | 6404 | do |
| 6405 | errno = 0; | 6405 | { |
| 6406 | pid = wait3 (&w, WNOHANG | WUNTRACED, 0); | 6406 | errno = 0; |
| 6407 | if (! (pid < 0 && errno == EINTR)) | 6407 | pid = wait3 (&w, WNOHANG | WUNTRACED, 0); |
| 6408 | break; | 6408 | } |
| 6409 | /* avoid a busyloop: wait3 is a system call, so we do not want | 6409 | while (pid < 0 && errno == EINTR); |
| 6410 | to prevent the kernel from actually sending SIGCHLD to emacs | ||
| 6411 | by asking for it all the time */ | ||
| 6412 | sleep (1); | ||
| 6413 | } | ||
| 6414 | 6410 | ||
| 6415 | if (pid <= 0) | 6411 | if (pid <= 0) |
| 6416 | { | 6412 | { |