Commit | Line | Data |
---|---|---|
eba25e7c GM |
1 | 2007-09-20 Glenn Morris <rgm@gnu.org> |
2 | ||
3 | * process.c (Fmake_network_process): Doc fix. | |
4 | ||
2a29c3c1 JR |
5 | 2007-09-19 Jason Rumney <jasonr@gnu.org> |
6 | ||
7 | * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument. | |
8 | ||
ba1cbad7 MC |
9 | 2007-09-19 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name> |
10 | ||
11 | * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form): | |
12 | Fix a C warning regarding variable constness. | |
13 | ||
14 | * xterm.c (handle_one_xevent): Fix a C warning. | |
15 | ||
334a1195 JR |
16 | 2007-09-18 Jason Rumney <jasonr@gnu.org> |
17 | ||
18 | * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame. | |
19 | ||
879ffad9 JD |
20 | 2007-09-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
21 | ||
22 | * gtkutil.c (gdpy_def): New variable. | |
23 | (xg_initialize): Initialize gdpy_def. | |
24 | (xg_display_close): If no other display exists, set gdpy_def to a | |
25 | new connection. | |
26 | ||
45c94881 JD |
27 | 2007-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
28 | ||
29 | * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf | |
30 | when we have no file name for the icon. | |
31 | (xg_tool_bar_expose_callback): Remove. | |
32 | (xg_create_tool_bar): Don't connect expose signal to | |
33 | xg_tool_bar_expose_callback. | |
34 | (xg_get_file_with_chooser): Move GCPRO1 after declarations. | |
35 | ||
4d580af2 AS |
36 | 2007-09-16 Andreas Schwab <schwab@suse.de> |
37 | ||
38 | * alloc.c (reset_malloc_hooks): Set the hooks to the previous | |
39 | values instead of zapping them. | |
40 | ||
aca946f3 GM |
41 | 2007-09-14 Glenn Morris <rgm@gnu.org> |
42 | ||
43 | * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope. | |
44 | * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope. | |
45 | * image.c (our_memory_fill_input_buffer) <buffer>: Move to file | |
46 | scope and rename to omfib_buffer for clarity. | |
47 | (gif_load) <interlace_start, interlace_increment>: Move to file scope. | |
48 | ||
25c460e5 KH |
49 | 2007-09-14 Kenichi Handa <handa@m17n.org> |
50 | ||
51 | * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero. | |
52 | ||
09b69f01 JR |
53 | 2007-09-13 Jason Rumney <jasonr@gnu.org> |
54 | ||
55 | * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument. | |
56 | ||
57 | * w32term.c (w32_term_init): Pass rif to w32_init_fringe. | |
58 | ||
59 | * macterm.c (mac_initialize): Don't call mac_init_fringe here. | |
60 | (mac_term_init): Call here instead, passing rif. | |
61 | ||
442218db GM |
62 | 2007-09-13 Glenn Morris <rgm@gnu.org> |
63 | ||
64 | * s/hpux.h: No longer define `static' as nothing. | |
65 | ||
4795c40f GM |
66 | 2007-09-13 Johan Bockg\e,Ae\e(Brd <bojohan@gnu.org> |
67 | ||
68 | * callint.c (Fcall_interactively): Remove unused var `fun'. | |
69 | ||
1971a872 RF |
70 | 2007-09-12 Romain Francoise <romain@orebokech.com> |
71 | ||
72 | * window.c (prefer_window_split_horizontally, display_buffer): | |
73 | Revert 2007-09-08 change. | |
74 | ||
2d33f506 GM |
75 | 2007-09-12 Glenn Morris <rgm@gnu.org> |
76 | ||
585474ae | 77 | * alloca.c: Remove file. |
ca7af97a GM |
78 | * Makefile.in (alloca): Do not undef. |
79 | (allocaobj, alloca.o): Remove. | |
80 | (otherobj): Remove allocaobj. | |
81 | * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block. | |
82 | * regex.c (C_ALLOCA): Remove all references and code that was only | |
83 | used when this was defined. | |
84 | * search.c (boyer_moore): Remove #ifdef C_ALLOCA block. | |
85 | * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block. | |
99dfbaf1 GM |
86 | * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this. |
87 | ||
2d33f506 | 88 | * Makefile.in (SOURCES, unlock, relock): Delete. |
ca7af97a GM |
89 | |
90 | * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity. | |
91 | (menu_grab_callback): All uses changed. | |
92 | ||
93 | * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity. | |
94 | (x_reply_selection_request): All uses changed. | |
2d33f506 | 95 | |
18a4a65e SM |
96 | 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca> |
97 | ||
98 | * lread.c (load_warn_old_style_backquotes): Change message to look | |
99 | better when it appears in the middle of byte-compiler messages. | |
100 | ||
47cc8819 DN |
101 | 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu> |
102 | ||
b7ea0894 DN |
103 | * s/darwin.h (MULTI_KBOARD): Only define for Carbon. |
104 | ||
47cc8819 DN |
105 | * xterm.c (x_create_terminal): Add comment. |
106 | ||
107 | * term.c (clear_tty_hooks, set_tty_hooks): Add comments. | |
108 | ||
5632bd0f RS |
109 | 2007-09-10 Richard Stallman <rms@gnu.org> |
110 | ||
111 | * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME. | |
112 | ||
ccb5c14f MC |
113 | 2007-09-10 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name> |
114 | ||
4bca9161 MC |
115 | * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'. |
116 | (DEFUN): Document `intspec', use it instead of `prompt'. | |
117 | ||
04724b69 MC |
118 | * eval.c (Fcommandp): Change `->prompt' to `->intspec'. |
119 | ||
8a6d230a MC |
120 | * data.c (Finteractive_form): If the interactive specification starts |
121 | with a `(', use it as a Lisp form. | |
122 | ||
09fbdf6c MC |
123 | * fileio.c (Fset_file_modes): Add an interactive spec that reads a file |
124 | name and file modes. | |
125 | ||
ccb5c14f MC |
126 | * callint.c (Fcall_interactively): Comment fixes. |
127 | ||
023accd6 SM |
128 | 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca> |
129 | ||
130 | * callint.c (Fcall_interactively): Use Finteractive_form also for subrs | |
131 | and compiled functions. | |
132 | ||
f26b9544 EZ |
133 | 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com> |
134 | ||
135 | * window.c (prefer_window_split_horizontally): New variable. | |
136 | (display_buffer): Consider splitting window horizontally depending | |
137 | on prefer_window_split_horizontally. | |
138 | ||
4d395425 EZ |
139 | 2007-09-08 Eli Zaretskii <eliz@gnu.org> |
140 | ||
97ddc760 | 141 | * sysdep.c [WINDOWSNT]: Don't include sysselect.h. |
4d395425 | 142 | |
08c1d235 SM |
143 | 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> |
144 | ||
179cef48 SM |
145 | * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking. |
146 | ||
08c1d235 SM |
147 | * frame.c (x_set_frame_parameters): Check number is positive before |
148 | using XFASTINT. | |
149 | ||
150 | * window.c (freeze_window_start): Don't presume selected_window holds | |
151 | a window object. | |
92f94a12 | 152 | (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd. |
08c1d235 | 153 | |
97ddc760 | 154 | 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change) |
de52dcbb DN |
155 | |
156 | * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN. | |
157 | ||
90ab5c62 SM |
158 | 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> |
159 | ||
160 | * window.c (Vsplit_window_preferred_function): New var. | |
161 | (Fdisplay_buffer): Use it. | |
162 | (syms_of_window): Export, and initialize it. | |
163 | ||
1ab2cd43 TTN |
164 | 2007-09-06 Pixel <pixel@mandriva.com> (tiny change) |
165 | ||
166 | * image.c (gif_load): Fix bug: Handle nonexistent colormap. | |
167 | ||
0b0515bc GM |
168 | 2007-09-06 Glenn Morris <rgm@gnu.org> |
169 | ||
57fd5c55 | 170 | * gtkutil.c (menu_grab_callback) <cnt>: |
0b0515bc GM |
171 | * xselect.c (x_reply_selection_request) <cnt>: Move static |
172 | variable to file scope. | |
173 | ||
98594580 SM |
174 | 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca> |
175 | ||
176 | * xdisp.c (redisplay_internal): Make sure Elisp code always sees | |
177 | consistent values of selected_frame and selected_window. | |
178 | ||
0f4c7aef JR |
179 | 2007-09-04 Jason Rumney <jasonr@gnu.org> |
180 | ||
181 | * w32console.c (initialize_w32_display): Zero unused hooks. | |
182 | ||
e4019195 DN |
183 | 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu> |
184 | ||
185 | * term.c (Vsuspend_tty_functions, Vresume_tty_functions) | |
186 | (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change. | |
187 | ||
bce179b5 JR |
188 | 2007-09-04 Jason Rumney <jasonr@gnu.org> |
189 | ||
a0236551 JR |
190 | * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible |
191 | in w32console.c. Set up input. Remove XXX comments that have been | |
192 | confirmed as correct. | |
193 | ||
a4926668 JR |
194 | * s/ms-w32.h (MULTI_KBOARD): Define. |
195 | ||
953bf0dc JR |
196 | * w32console.c (one_and_only_w32cons): Remove. |
197 | (initialize_w32_display): Take terminal argument. | |
198 | ||
199 | * term.c (init_tty) [WINDOWSNT]: Pass terminal to | |
200 | initialize_w32_display. | |
201 | (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too. | |
202 | ||
bce179b5 JR |
203 | * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event. |
204 | ||
205 | * keyboard.c (discard_mouse_events): Discard it. | |
206 | (make_lispy_event): Translate it to a lisp event. | |
207 | (lispy_wheel_names): Add wheel-left and right events. | |
208 | (syms_of_keyboard): Enlarge wheel_syms. | |
209 | ||
210 | * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL. | |
211 | <WM_MOUSEHWHEEL>: Pass new system message to lisp. | |
212 | ||
213 | * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't. | |
214 | ||
215 | * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT | |
216 | from WM_MOUSEHWHEEL. | |
217 | (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL. | |
218 | ||
219 | * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from | |
220 | terminal. | |
221 | ||
222 | * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new | |
223 | keyboard for the terminal. | |
224 | ||
92cd6a7c DN |
225 | 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu> |
226 | ||
227 | * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions. | |
228 | (Vresume_tty_hook): Rename from Vresume_tty_functions. | |
229 | (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook | |
230 | and resume-tty-function to resume-tty-hook. | |
231 | (Fsuspend_tty, Fresume_tty): Use new names. | |
232 | ||
2154c964 JD |
233 | 2007-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
234 | ||
235 | * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon | |
236 | if it starts with "n:". | |
237 | ||
b42ff099 JD |
238 | 2007-08-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
239 | ||
240 | * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL. | |
241 | ||
6b8e474c SM |
242 | 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca> |
243 | ||
92d9c1d4 SM |
244 | * frame.h: |
245 | * frame.c (Qterm_environment_variable): Remove. | |
246 | (syms_of_frame): Don't init and staticpro it. | |
247 | ||
92d9c1d4 SM |
248 | * callproc.c (getenv_internal): Remove special case for $TERM. |
249 | ||
6b8e474c SM |
250 | * callproc.c (Vinitial_environment): New variable. |
251 | (set_initial_environment): Initialize it. | |
252 | (syms_of_callproc): Declare it. | |
253 | (child_setup): Don't mess with TERM via Qterm_environment_variable; the | |
254 | TERM under which a process runs is never related to the TERM in which | |
255 | Emacs is running. | |
256 | ||
0f1444e1 DN |
257 | 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu> |
258 | ||
259 | * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here... | |
260 | * s/darwin.h: ... do it here. | |
261 | ||
b8866860 SM |
262 | 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca> |
263 | ||
264 | * lisp.h (set_initial_environment): Rename from set_global_environment. | |
265 | ||
266 | * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been | |
267 | removed by mistake on the multi-tty branch. | |
268 | ||
269 | * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup. | |
270 | (Fmodify_frame_parameters): Return a value. | |
271 | ||
272 | * image.c (png_load): Comment-out var only used in commented-out code. | |
273 | ||
274 | * term.c (mark_ttys): Don't bother checking top_frame (incorrectly) | |
275 | before passing it to mark_object. | |
276 | ||
277 | * xfaces.c (internal_resolve_face_name): Return a value. | |
278 | (internal_resolve_face_name, resolve_face_name_error): Comment out. | |
279 | ||
280 | * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup. | |
281 | (x_icon): Comment-out var only used in commented-out code. | |
282 | ||
0a42be6d RF |
283 | 2007-08-29 Romain Francoise <romain@orebokech.com> |
284 | ||
285 | * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if | |
286 | QUIT hasn't been provided. | |
287 | ||
8d9cc0b7 MB |
288 | 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu> |
289 | ||
290 | * callproc.c (child_setup, getenv_internal): Use the | |
291 | display-environment-variable and term-environment-variable frame | |
292 | params. | |
293 | (set_initial_environment): Initialise Vprocess_environment. | |
294 | ||
295 | * config.in: Disable multi-keyboard support on a mac. | |
296 | ||
297 | * frame.c (Qterm_environment_variable) | |
298 | (Qdisplay_environment_variable): New variables. | |
299 | (syms_of_frame): Intern and staticpro them. | |
300 | (Fmake_terminal_frame): Disable output method test. | |
301 | ||
302 | * frame.h: Declare them here. | |
303 | ||
304 | * macfns.c (x_set_mouse_color): Get rif from the frame. | |
305 | (x_set_tool_bar_lines): Don't use updating_frame. | |
306 | (mac_window): Add 2 new parameters for consistency with other systems. | |
307 | (Fx_create_frame): Fix doc string. Rename the parameter. Set the | |
308 | frame parameters following what is done in X11 and w32. Don't use | |
309 | FRAME_MAC_DISPLAY_INFO. | |
310 | (Fx_open_connection, start_hourglass): Remove window-system check. | |
311 | (x_create_tip_frame): Get the keyboard from the terminal. | |
312 | ||
313 | * macmenu.c: Reorder includes. | |
314 | (Fx_popup_menu): Use terminal specific mouse_position_hook. | |
315 | ||
316 | * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a | |
317 | terminal parameter. | |
318 | (x_clear_frame): Add a frame parameter. | |
319 | (note_mouse_movement): Get rif from the frame. | |
320 | (mac_term_init): Initialize the terminal. | |
321 | (mac_initialize): Make static and move terminal initialization ... | |
322 | (mac_create_terminal): ... to this new function. | |
323 | ||
324 | * macterm.h (struct mac_display_info): Add terminal. | |
7196c970 | 325 | (mac_initialize): Delete declaration. |
8d9cc0b7 | 326 | |
381864b2 | 327 | * puresize.h (BASE_PURESIZE): Increase base value to 1164000. |
8d9cc0b7 MB |
328 | |
329 | * sysdep.c: Comment out text after #endif. | |
330 | ||
331 | * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD | |
332 | is defined. Better initialize ttys in windows. Use terminal | |
333 | specific mouse_position_hook. | |
334 | ||
335 | * termhooks.h (union display_info): Add mac_display_info. | |
336 | ||
b8866860 SM |
337 | * w32fns.c (Fx_create_frame): Use kboard from the terminal. |
338 | Set the default minibuffer frame, window_system and the rest of the | |
8d9cc0b7 MB |
339 | frame parameters following what is done in X11. |
340 | ||
341 | * w32term.c (w32_initialize): Make static. | |
342 | ||
343 | * xselect.c (x_handle_selection_clear): Only access | |
344 | terminal->kboard when MULTI_KBOARD is defined. | |
345 | ||
346 | * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here. | |
347 | (SYSTEM_PURESIZE_EXTRA): Only define on Carbon. | |
348 | ||
349 | 2007-08-29 Jason Rumney <jasonr@gnu.org> | |
350 | ||
351 | * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined. | |
352 | (make_terminal_frame) [WINDOWSNT]: Initialize terminal. | |
353 | ||
354 | * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]: | |
355 | (mac_init_fringe) [MAC_OS]: Get rif from selected_frame. | |
356 | ||
357 | * keyboard.c (restore_kboard_configuration): Only define when | |
358 | MULTI_KBOARD defined. | |
359 | ||
360 | * makefile.w32-in: Update dependancies from Makefile.in | |
361 | (OBJ1): Add terminal.$(O) | |
362 | ||
b8866860 SM |
363 | * term.c (dissociate_if_controlling_tty) [WINDOWSNT]: |
364 | Don't define function body. | |
8d9cc0b7 MB |
365 | (init_tty) [WINDOWSNT]: Use selected_frame for initializing. |
366 | ||
367 | * termhooks.h (display_info) [WINDOWSNT]: Add w32. | |
368 | ||
369 | * w32.c (request_sigio, unrequest_sigio): Remove. | |
370 | ||
371 | * w32console.c (w32con_move_cursor, w32con_clear_to_end) | |
372 | (w32con_clear_frame, w32con_clear_end_of_line) | |
373 | (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs) | |
374 | (w32con_delete_glyphs, w32con_set_terminal_window) | |
375 | (scroll_line, w32_sys_ring_bell): Add frame arg. | |
b8866860 SM |
376 | (w32con_set_terminal_modes, w32con_reset_terminal_modes): |
377 | Add terminal arg. | |
8d9cc0b7 MB |
378 | (PICK_FRAME): Remove. |
379 | (w32con_write_glyphs): Use frame specific terminal coding. | |
380 | (one_and_only_w32cons): New global variable. | |
381 | (initialize_w32_display): Use it for storing hooks. | |
382 | (create_w32cons_output): New function. | |
383 | ||
384 | * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first | |
385 | arg a frame. | |
386 | ||
b8866860 SM |
387 | * w32fns.c (x_create_tip_frame): Set terminal and ref count. |
388 | Set window_system. | |
8d9cc0b7 MB |
389 | (x_set_tool_bar_lines): Don't use updating_frame. |
390 | (Fx_create_frame): Set terminal and ref count. | |
391 | (Fx_open_connection): Remove window-system check. | |
392 | ||
393 | * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook. | |
394 | ||
395 | * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor. | |
396 | (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg. | |
397 | (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines): | |
398 | Add frame arg. | |
399 | (x_delete_terminal, w32_create_terminal): New functions. | |
400 | (w32_term_init): Create a terminal. | |
401 | (w32_initialize): Move terminal specific initialization to | |
402 | w32_create_terminal. | |
403 | ||
b8866860 | 404 | * w32term.h (x_output): Remove foreground_pixel and background_pixel. |
8d9cc0b7 MB |
405 | (w32_clear_rect, w32_clear_area): Use background from frame. |
406 | (w32_display_info): Add terminal. | |
407 | (w32_sys_ring_bell, x_delete_display): Declare here. | |
408 | ||
409 | * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type. | |
410 | ||
411 | * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k. | |
412 | ||
413 | 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change) | |
414 | ||
415 | * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char): | |
416 | Fix get_named_tty calls for the controlling tty. | |
417 | ||
418 | 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change) | |
419 | ||
420 | * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error. | |
421 | ||
422 | 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change) | |
423 | ||
424 | * term.c (tty_insert_glyphs): Add missing first parameter. | |
425 | ||
426 | 2007-08-29 Karoly Lorentey <karoly@lorentey.hu> | |
427 | ||
b8866860 SM |
428 | * buffer.c (Fbuffer_list, Fbury_buffer): |
429 | Take frame->buried_buffer_list into account. | |
8d9cc0b7 MB |
430 | |
431 | * cm.c (current_tty): New variable, for cmputc(). | |
432 | (cmputc): Use it. | |
433 | (cmcheckmagic): Add tty parameter, look up terminal streams there. | |
434 | (calccost): Add tty parameter. Use emacs_tputs() instead of tputs(). | |
b8866860 SM |
435 | (cmgoto): Add tty parameter. Pass it on to calccost(). |
436 | Use emacs_tputs() instead of tputs(). | |
8d9cc0b7 MB |
437 | |
438 | * cm.h (emacs_tputs): New macro to set current_tty, and then call | |
439 | tputs(). | |
440 | (current_tty): New variable, for cmputc(). | |
441 | (cmcheckmagic, cmputc, cmgoto): Add prototypes. | |
442 | ||
443 | * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors. | |
444 | (internal_condition_case, internal_condition_case_1) | |
445 | (internal_condition_case_2): Don't abort when x_catching_errors. | |
446 | ||
447 | * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals. | |
448 | (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to | |
449 | prevent crashes caused by bogus longjmps in read_char. | |
450 | ||
451 | * keymap.h (Fset_keymap_parent): Add EXFUN. | |
452 | ||
453 | * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) | |
454 | * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): | |
455 | Remove redundant definition. | |
456 | ||
b8866860 SM |
457 | * macfns.c (x_set_mouse_color, x_make_gc): |
458 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 | 459 | |
b8866860 SM |
460 | * w32term.c (x_free_frame_resources): |
461 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
462 | (w32_initialize): Use the accessor macros for terminal characteristics. |
463 | ||
464 | * macterm.c (mac_initialize): Use Fset_input_interrupt_mode. | |
465 | Use the accessor macros for terminal characteristics. | |
466 | * msdos.c (internal_terminal_init): Use the accessor macros for | |
467 | terminal characteristics. | |
b8866860 SM |
468 | (ScreenVisualBell, internal_terminal_init): |
469 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
470 | |
471 | * termopts.h (no_redraw_on_reenter): Declare. | |
472 | ||
473 | * alloc.c (emacs_blocked_malloc): Disable mallopt call. | |
03f06e5c | 474 | (mark_terminals, mark_ttys): Declare. |
8d9cc0b7 | 475 | (Fgarbage_collect): Call them. |
03f06e5c | 476 | (mark_object): Mark buried_buffer_list. |
8d9cc0b7 MB |
477 | |
478 | * prefix-args.c: Include stdlib.h for exit. | |
479 | ||
480 | * syssignal.h: Add comment. | |
481 | ||
482 | * indent.c: Include stdio.h. | |
483 | ||
484 | * window.h (Vinitial_window_system): Declare. | |
485 | (Vwindow_system): Delete declaration. | |
486 | ||
487 | * fontset.c (Finternal_char_font): Use FRAME_RIF. | |
488 | ||
489 | * image.c (lookup_image): Don't initialize `c' until the xasserts | |
490 | have been run. | |
491 | ||
492 | * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and | |
493 | FRAME_FOREGROUND_PIXEL. | |
494 | ||
495 | * print.c (print_preprocess): Don't lose print_depth levels while | |
496 | iterating. | |
497 | ||
b8866860 SM |
498 | * widget.c (update_from_various_frame_slots): |
499 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
500 | |
501 | * window.c (set_window_buffer): Don't call clear_mouse_face on tty | |
502 | frames. | |
503 | (window_internal_height): Remove bogus make_number call. | |
b8866860 | 504 | (init_window_once): Call make_terminal_frame with two zero parameters. |
8d9cc0b7 MB |
505 | |
506 | * fileio.c (Fread_file_name): Update comment. | |
507 | ||
b8866860 SM |
508 | * callint.c (Fcall_interactively): |
509 | Use temporarily_switch_to_single_kboard instead of single_kboard_state. | |
8d9cc0b7 MB |
510 | Make sure it is correctly unwound. |
511 | ||
512 | * xsmfns.c (x_session_close): New function. | |
513 | ||
03f06e5c | 514 | * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding): |
8d9cc0b7 MB |
515 | Delete declarations. |
516 | ||
517 | * xterm.h: Remove declaration for x_fully_uncatch_errors. | |
518 | (x_output): Remove background_pixel and foreground_pixel fields. | |
03f06e5c | 519 | (x_display_info): Add new field TERMINAL. Remove KBOARD field. |
8d9cc0b7 MB |
520 | (x_delete_device): |
521 | (x_session_close): Declare. | |
522 | ||
523 | * lread.c: Include setjmp.h. Update declaration of `read_char'. | |
524 | (read_filtered_event): Call `read_char' with a local | |
525 | `wrong_kboard_jmpbuf'. | |
526 | ||
b8866860 SM |
527 | * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard. |
528 | Don't call single_kboard_state. Use FRAME_RIF. | |
8d9cc0b7 MB |
529 | |
530 | * process.c (Fmake_network_process): Don't unrequest_sigio on modern | |
531 | systems. | |
532 | ||
b8866860 | 533 | * lisp.h (set_process_environment): Rename to `set_global_environment'. |
03f06e5c | 534 | (Fframe_with_environment, Fset_input_meta_mode) |
8d9cc0b7 | 535 | (Fset_quit_char): EXFUN. |
03f06e5c | 536 | (x_create_device, tty_output, terminal, tty_display_info): Declare. |
8d9cc0b7 MB |
537 | (init_sys_modes, reset_sys_modes): Update prototypes. |
538 | (init_all_sys_modes, reset_all_sys_modes): New prototypes. | |
539 | ||
b8866860 SM |
540 | * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map, |
541 | Vlocal_key_translation_map, and Vkeyboard_translate_table. | |
03f06e5c | 542 | (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state): |
8d9cc0b7 | 543 | Delete declarations. |
03f06e5c JB |
544 | (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard) |
545 | (temporarily_switch_to_single_kboard, tty_read_avail_input): | |
8d9cc0b7 MB |
546 | New declarations. |
547 | ||
548 | * emacs.c (main): Don't call init_sys_modes(), the new term_init() | |
549 | already does that during init_display(). Call syms_of_keymap | |
b8866860 SM |
550 | before syms_of_keyboard. Call `syms_of_terminal'. |
551 | Call set_initial_environment, not set_process_environment. | |
8d9cc0b7 MB |
552 | (shut_down_emacs): Call reset_all_sys_modes() instead of |
553 | reset_sys_modes(). | |
554 | ||
555 | * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG. | |
03f06e5c JB |
556 | (internal_resolve_face_name, resolve_face_name_error): New functions. |
557 | (resolve_face_name): Protect against loops and errors thrown by Fget. | |
558 | (realize_default_face): Don't use FRAME_FONT unless frame is an X frame. | |
8d9cc0b7 MB |
559 | (Ftty_supports_face_attributes_p): Update tty_capable_p call. |
560 | ||
561 | * scroll.c: Replace CURTTY() with local variables throughout the | |
562 | file (where applicable). | |
563 | (calculate_scrolling, calculate_direct_scrolling) | |
564 | (scrolling_1, scroll_cost): Use the accessor macros for terminal | |
565 | characteristics. | |
566 | ||
567 | * keymap.c (Vfunction_key_map): Remove. | |
b8866860 | 568 | (Fdescribe_buffer_bindings): Update references to Vfunction_key_map. |
8d9cc0b7 MB |
569 | (syms_of_keymap): Remove DEFVAR for Vfunction_key_map. |
570 | (Vkey_translation_map): Remove. | |
571 | (syms_of_keymap): Remove DEFVAR for key-translation-map. | |
572 | (Fdescribe_buffer_bindings): | |
573 | (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards): | |
574 | Update for terminal-local key-translation-map. | |
575 | ||
576 | * Makefile.in (callproc.o): Update dependencies. | |
577 | (lisp, shortlisp): Add termdev.elc. | |
578 | (obj): Add terminal.o. | |
579 | (terminal.o): Add dependencies. | |
580 | [HAVE_CARBON]: Make terminal.o depend on macgui.h. | |
581 | (data.o, fns.o): Add termhooks.h dependency. | |
582 | (SOME_MACHINE_LISP): Add dnd.elc. | |
583 | (minibuf.o): Fix typo. | |
584 | Update dependencies. | |
585 | ||
586 | * data.c (do_symval_forwarding, store_symval_forwarding) | |
587 | (find_symbol_value): Use the selected frame's keyboard, not | |
588 | current_kboard. | |
589 | ||
590 | * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of | |
591 | Vwindow_system. | |
592 | ||
593 | * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from | |
594 | Fmenu_bar_open. | |
595 | (syms_of_xmenu): Update defsubr. | |
596 | (mouse_position_for_popup, Fx_popup_menu) | |
597 | (Fx_popup_dialog, x_activate_menubar, update_frame_menubar) | |
598 | (set_frame_menubar, free_frame_menubar) | |
599 | (create_and_show_popup_menu, xmenu_show, ) | |
600 | (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not | |
601 | an X frame. | |
602 | ||
603 | * xselect.c (x_own_selection): Abort if not an X frame. | |
604 | (some_frame_on_display): Check if it is an X frame. | |
605 | (x_handle_selection_clear): Deal with MULTI_KBOARD. | |
606 | ||
607 | * coding.c: Include frame.h and termhooks.h. | |
03f06e5c | 608 | (terminal_coding, keyboard_coding): Delete. |
8d9cc0b7 MB |
609 | (Fset_terminal_coding_system_internal): |
610 | (Fset_keyboard_coding_system_internal): | |
611 | (Fkeyboard_coding_system): | |
03f06e5c JB |
612 | (Fterminal_coding_system): Add a terminal parameter. |
613 | Get terminal_coding from the terminal. | |
8d9cc0b7 MB |
614 | (init_coding_once): Don't call setup_coding_system here. |
615 | ||
616 | * dispextern.h (set_scroll_region, turn_off_insert) | |
617 | (turn_off_highlight, background_highlight, clear_end_of_line_raw) | |
618 | (tty_clear_end_of_line, tty_setup_colors) | |
03f06e5c | 619 | (delete_tty, updating_frame) |
8d9cc0b7 MB |
620 | (produce_special_glyphs, produce_glyphs, write_glyphs) |
621 | (insert_glyphs): Remove. | |
622 | (raw_cursor_to, clear_to_end, tty_turn_off_insert) | |
03f06e5c | 623 | (tty_turn_off_highlight, get_tty_size): Add declaration. |
b8866860 | 624 | (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes. |
8d9cc0b7 MB |
625 | |
626 | * frame.h (enum output_method): Add output_initial. | |
627 | (struct x_output): Delete. | |
b8866860 SM |
628 | (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): |
629 | Access foreground_pixel and background_pixel directly from the frame. | |
8d9cc0b7 MB |
630 | (tty_display): Delete. |
631 | (struct frame): Add buried_buffer_list, foreground_pixel, | |
03f06e5c | 632 | background_pixel and terminal. Delete kboard |
8d9cc0b7 MB |
633 | (union output_data): Add tty. |
634 | (FRAME_KBOARD): Get the kboard from the terminal. | |
635 | (FRAME_INITIAL_P): New macro. | |
636 | (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment) | |
637 | (Qterm_environment_variable, Qdisplay_environment_variable) | |
b8866860 SM |
638 | (make_terminal_frame, Qburied_buffer_list, Qwindow_system): |
639 | New declarations. | |
8d9cc0b7 MB |
640 | |
641 | * termchar.h (tty_output, tty_display_info): New structures. | |
642 | (tty_list): Declare. | |
643 | (FRAME_TTY, CURTTY): New macros. | |
644 | (must_write_spaces, min_padding_speed, fast_clear_end_of_line) | |
645 | (line_ins_del_ok, char_ins_del_ok, scroll_region_ok) | |
646 | (scroll_region_cost, memory_below_frame, fast_clear_end_of_line) | |
647 | (dont_calculate_costs, no_redraw_on_reenter): Remove declarations. | |
648 | ||
649 | * callproc.c: Include frame.h and termhooks.h, for terminal | |
650 | parameters. | |
651 | (add_env): New function. | |
652 | (child_setup): Use it. | |
b8866860 | 653 | (child_setup, getenv_internal): Handle the new Vprocess_environment. |
8d9cc0b7 MB |
654 | (getenv_internal): Fix get_terminal_param call. |
655 | (Fgetenv_internal, egetenv): Update doc. | |
656 | (syms_of_callproc): Initialize Vprocess_environment to nil. | |
03f06e5c | 657 | Register and initialize them. Remove obsolete defvars. Update doc |
8d9cc0b7 MB |
658 | strings. |
659 | (child_setup): Handle Vlocal_environment_variables. | |
b8866860 SM |
660 | (getenv_internal): Add terminal parameter. |
661 | Handle Vlocal_environment_variables. | |
8d9cc0b7 MB |
662 | (Fgetenv_internal): Add terminal parameter. |
663 | (child_setup, getenv_internal, Fgetenv_internal): Store the local | |
b8866860 | 664 | environment in a frame (not terminal) parameter. Update doc strings. |
8d9cc0b7 MB |
665 | (set_initial_environment): Rename from set_global_environment. |
666 | Store Emacs environment in initial frame parameter. | |
667 | ||
668 | * xdisp.c (redisplay_internal): Update references to | |
669 | `previous_terminal_frame'. | |
670 | (display_mode_line, Fformat_mode_line): Replace calls to | |
671 | `push_frame_kboard' with `push_kboard'. | |
672 | (get_glyph_string_clip_rects): Add extra parentheses and | |
673 | braces to prevent compiler warnings. | |
674 | (calc_pixel_width_or_height): Add xassert to check that the | |
675 | frame is alive. Don't call `lookup_image' on a termcap frame. | |
676 | (message2_nolog, message3_nolog, redisplay_internal) | |
677 | (set_vertical_scroll_bar, redisplay_window, check_x_display_info) | |
678 | (x_set_scroll_bar_foreground, x_set_scroll_bar_background) | |
679 | (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p) | |
680 | (Fx_display_pixel_width, Fx_display_pixel_height) | |
681 | (Fx_display_planes, Fx_display_color_cells) | |
682 | (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version) | |
683 | (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width) | |
684 | (Fx_display_backing_store, Fx_display_visual_class) | |
685 | (Fx_display_save_under, Fx_close_connection, x_create_tip_frame): | |
97ddc760 | 686 | Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF. |
8d9cc0b7 MB |
687 | |
688 | * xfns.c (x_set_foreground_color x_set_background_color) | |
b8866860 SM |
689 | (x_set_mouse_color, x_set_cursor_color, x_make_gc): |
690 | Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL. | |
8d9cc0b7 MB |
691 | (Fx_create_frame, x_create_tip_frame, build_string, x_window) |
692 | (Fx_create_frame, x_create_tip_frame): Don't create frames on a | |
693 | terminal that is being deleted. | |
694 | (Fx_create_frame): Use `store_frame_param' to set `window-system' | |
b8866860 | 695 | frame parameter, and make sure it overrides any user-supplied setting. |
8d9cc0b7 MB |
696 | (Fx_close_connection, Fx_synchronize): Unify argument names with |
697 | the rest of the DEFUNs. | |
698 | ||
699 | * dispnew.c (Fsend_string_to_terminal): Update call to | |
700 | `get_tty_terminal'. | |
701 | (Fredraw_frame, Fsend_string_to_terminal) | |
2d33f506 | 702 | (Fsend_string_to_terminal, init_display): Use FRAME_RIF, |
8d9cc0b7 MB |
703 | FRAME_TERMCAP_P and FRAME_TTY. |
704 | (window_change_signal): Don't believe width/height values that are | |
705 | impossibly small. | |
706 | (Vinitial_window_system): Rename from Vwindow_system. | |
707 | (termscript, Wcm, rif): Delete. | |
708 | ||
709 | * termhooks.h (struct terminal): New struct containing the | |
710 | previously global text display hooks and new members NAME, | |
711 | DELETED and PARAM_ALIST. | |
712 | (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING) | |
713 | (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P) | |
714 | (FRAME_RIF): New macros. | |
715 | (get_terminal_param, get_device): New declarations. | |
716 | (termscript): Delete declaration. | |
717 | ||
718 | * xterm.c (x_initialize): Use Fset_input_interrupt_mode. | |
719 | (XTflash, x_free_frame_resources, x_scroll_bar_create) | |
720 | (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and | |
721 | FRAME_FOREGROUND_PIXEL. | |
722 | (x_fully_uncatch_errors): Disable definition. | |
723 | (x_scroll_bar_expose): Fix reference to foreground pixel. | |
724 | (XTread_socket): Disable loop on all X displays. | |
725 | (x_delete_terminal): Don't set terminal->deleted and let | |
726 | delete_terminal delete the frames on the terminal. | |
727 | (x_delete_display): Doc update to reflect changes in | |
728 | delete_terminal. | |
729 | (x_display_info) <terminal>: Move member earlier in the struct. | |
8d9cc0b7 MB |
730 | (deleting_tty): Remove old variable. |
731 | (Fsuspend_tty): Call clear_tty_hooks. | |
732 | (Fresume_tty, init_tty): Call set_tty_hooks. | |
8d9cc0b7 MB |
733 | (Ftty_display_color_p, Ftty_display_color_cells): Don't throw |
734 | errors on X frames. | |
735 | (x_catch_errors_unwind): Abort if x_error_message is NULL. | |
736 | (handle_one_xevent): Initialize `f' to NULL. | |
9cab96b0 | 737 | (x_delete_terminal, x_create_terminal): New functions. |
8d9cc0b7 MB |
738 | (XTset_terminal_modes, XTreset_terminal_modes) |
739 | (XTread_socket, x_connection_closed, x_term_init) | |
740 | (x_term_init, x_delete_display): Add terminal parameter. | |
741 | (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary | |
742 | X connections. | |
743 | ||
744 | * frame.c (Fframep): Deal with output_initial. | |
745 | (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty) | |
746 | (Qtty_type, Qwindow_system, Qenvironment) | |
b8866860 | 747 | (Qterm_environment_variable, Qdisplay_environment_variable): New vars. |
8d9cc0b7 MB |
748 | (x_set_screen_gamma, store_frame_param): Fix compilation errors. |
749 | (make_terminal_frame): Don't create frames on a terminal that is | |
750 | being deleted. | |
751 | (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and | |
752 | FRAME_FOREGROUND_PIXEL. | |
b8866860 | 753 | (store_frame_param): Check for found_for_frame before calling XFRAME. |
8d9cc0b7 MB |
754 | (Fmake_terminal_frame): Handle NULL tty names correctly. |
755 | (syms_of_frame): Enhance doc string of `default-frame-alist'. | |
756 | (Fdelete_frame): Remove unused variable `count'. | |
757 | (Qenvironment): New variable. | |
758 | (Fdelete_frame): Don't allow other frames to refer to a deleted | |
759 | frame in their 'environment parameter. | |
760 | (Fframe_with_environment): New function. | |
b8866860 | 761 | (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment. |
8d9cc0b7 MB |
762 | (get_future_frame_param): New function. |
763 | (Fmake_terminal_frame): Use it. | |
2d33f506 | 764 | (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF. |
8d9cc0b7 MB |
765 | |
766 | * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames. | |
767 | * sysdep.c (reset_sys_modes): Update for renames. | |
768 | ||
769 | * keyboard.c (tty_read_avail_input): New function. | |
03f06e5c | 770 | (Fset_input_interrupt_mode, Fset_output_flow_control): New functions. |
8d9cc0b7 MB |
771 | (syms_of_keyboard): Defsubr them. |
772 | (Fset_input_meta_mode, Fset_quit_char): New functions. | |
773 | (Fset_input_mode): Split to above functions. | |
774 | ||
775 | (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf | |
776 | parameter. Use it in call to `read_char'. | |
b8866860 SM |
777 | (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'. |
778 | Set wrong_kboard_jmpbuf correctly in recursive calls. | |
779 | Use current_kboard to access Vkeyboard_translate_table. | |
780 | Enhance comment before extra longjmp to wrong_kboard_jmpbuf. | |
781 | Add wrong_kboard_jmpbuf parameter to allow for recursive calls. | |
782 | Update longjmp invocations. Remember the original current_kboard, | |
783 | and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel | |
784 | changes it. Comment out unnecessary calls to | |
785 | `record_single_kboard_state' and `any_kboard_state'. | |
786 | Update recursive calls. | |
8d9cc0b7 MB |
787 | (wrong_kboard_jmpbuf): Remove global variable. |
788 | (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf. | |
789 | Handle deleted interrupted_kboards correctly; that is a legal | |
790 | case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp | |
b8866860 | 791 | and read_char calls. Abort if interrupted_kboard died in read_char. |
8d9cc0b7 MB |
792 | (any_kboard_state, single_kboard_state) |
793 | (push_frame_kboard): Remove function. | |
794 | (pop_kboard): Switch out of single_kboard mode if the kboard has | |
03f06e5c JB |
795 | been deleted. Remove unused variable. Help debugging by not |
796 | changing current_kboard unnecessarily. Set current_kboard to the | |
8d9cc0b7 MB |
797 | kboard of the selected frame when the stored kboard object has |
798 | been deleted before pop_kboard. | |
799 | (temporarily_switch_to_single_kboard): Change first parameter to a | |
800 | frame pointer. Throw an error when caller wants to change kboards | |
801 | while in single_kboard mode. Don't push_kboard if we weren't in | |
802 | single kboard state. Don't pop_kboard if we popped into any | |
803 | kboard state. | |
804 | (restore_kboard_configuration): Abort if pop_kboard changed the | |
03f06e5c | 805 | kboard in single_kboard mode. Call pop_kboard only after setting |
8d9cc0b7 MB |
806 | up single_kboard mode. |
807 | (Frecursive_edit): Switch to single_kboard mode only in nested | |
808 | command loops. | |
b8866860 SM |
809 | (cmd_error, command_loop, command_loop_1, timer_check): |
810 | Comment out unnecessary call to `any_kboard_state' and | |
8d9cc0b7 MB |
811 | `record_single_kboard_state'. |
812 | (delete_kboard): Exit single_kboard mode if we have just deleted | |
03f06e5c | 813 | that kboard. Use FRAME_KBOARD. |
8d9cc0b7 MB |
814 | (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not |
815 | `fatal_error_signal'. | |
816 | (record_single_kboard_state): Don't push_kboard if we weren't in | |
817 | single kboard state. Don't pop_kboard if we popped into any | |
818 | kboard state. | |
819 | (push_frame_kboard): Rename to push_kboard. | |
820 | (kbd_buffer_get_event): Use FRAME_TERMINAL. | |
821 | (read_avail_input): Read input from all terminals. | |
822 | (mark_kboards): Also mark Vkeyboard_translate_table. | |
823 | (kbd_buffer_store_event_hold): Simplify condition. | |
824 | (read_key_sequence): Reinitialize fkey and keytran at each replay. | |
825 | (Vkeyboard_translate_table): Move to struct kboard. | |
826 | (init_kboard): Initialize Vkeyboard_translate_table. | |
827 | (syms_of_keyboard): Use DEFVAR_KBOARD to define | |
828 | Vkeyboard_translate_table. Update doc strings. Update docs of | |
829 | local-function-key-map and function-key-map. | |
830 | ||
831 | * terminal.c: New file. | |
832 | ||
833 | * term.c: Include errno.h. | |
834 | (Vring_bell_function, device_list, initial_device) | |
835 | (next_device_id, ring_bell, update_begin, update_end) | |
836 | (set_terminal_window, cursor_to, raw_cursor_to) | |
837 | (clear_to_end, clear_frame, clear_end_of_line) | |
838 | (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines) | |
839 | (Fdisplay_name, create_device, delete_device): Move to terminal.c. | |
840 | (syms_of_term): Move their initialization to terminal.c. | |
841 | (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p) | |
842 | (Ftty_display_color_cells) | |
843 | (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output) | |
9cab96b0 | 844 | (clear_tty_hooks, set_tty_hooks) |
8d9cc0b7 MB |
845 | (init_tty, maybe_fatal): New functions. |
846 | (Ftty_type): Return nil if terminal is not on a tty instead of | |
847 | throwing an error. Doc update. | |
848 | (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>: | |
03f06e5c | 849 | Doc update. Initialize new subrs and variables. |
8d9cc0b7 MB |
850 | (delete_tty): Use terminal->deleted. |
851 | (tty_set_terminal_modes): Rename from set_terminal_modes. | |
852 | (tty_reset_terminal_modes): Rename from reset_terminal_modes. | |
853 | (set_scroll_region): Rename to `tty_set_scroll_region'. | |
854 | (turn_on_insert): Rename to `tty_turn_on_insert'. | |
855 | (turn_off_insert): Rename to `tty_turn_off_insert'. | |
856 | (turn_off_highlight): Rename to `tty_turn_off_highlight'. | |
857 | (turn_on_highlight): Rename to `tty_turn_on_highlight'. | |
858 | (toggle_highligh): Rename to `tty_toggle_highlight'. | |
859 | (background_highlight): Rename to `tty_background_highlight'. | |
860 | (highlight_if_desired): Rename to `tty_highlight_if_desired'. | |
861 | (tty_ring_bell, tty_update_end, tty_set_terminal_window) | |
862 | (tty_set_scroll_region, tty_background_highlight) | |
863 | (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end) | |
864 | (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs) | |
865 | (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines) | |
866 | (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty): | |
867 | Add static modifier. | |
868 | (tty_reset_terminal_modes, tty_set_terminal_window) | |
869 | (tty_set_scroll_region, tty_background_highlight) | |
870 | (tty_highlight_if_desired, tty_cursor_to) | |
871 | (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame) | |
872 | (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs) | |
873 | (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for | |
874 | renames. | |
875 | ||
cf0590c4 JD |
876 | 2007-08-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
877 | ||
878 | * keyboard.c: Qrtl is new. | |
879 | (parse_tool_bar_item): Handle :rtl keyword. | |
880 | (syms_of_keyboard): Intern :rtl keyword. | |
881 | ||
882 | * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE. | |
883 | ||
884 | * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED | |
885 | so no Lisp code is executed. | |
886 | (file_for_image, find_rtl_image): New functions. | |
887 | (xg_get_image_for_pixmap): Use file_for_image | |
888 | (update_frame_tool_bar): If direction is RTL, use RTL image if | |
889 | defined. Use Gtk stock images if defined. | |
890 | ||
83cc8d35 YM |
891 | 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
892 | ||
893 | * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle | |
894 | for nonexistent or zero-width glyph in composition glyph. | |
895 | ||
e60c4e15 SM |
896 | 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca> |
897 | ||
d7e2a28f SM |
898 | * m/amdx86-64.h: Redirect to intel386.h if compiling for i386. |
899 | ||
e60c4e15 SM |
900 | * xdisp.c (Finvisible_p): New function. |
901 | (syms_of_xdisp): defsubr it. | |
902 | ||
ee163e6d JB |
903 | 2007-08-24 Juanma Barranquero <lekktu@gmail.com> |
904 | ||
905 | * image.c (syms_of_image) <image-library-alist, cross-disabled-images>: | |
906 | Doc fixes. | |
907 | ||
90fa408d YM |
908 | 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
909 | ||
910 | * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes. | |
911 | ||
cac4219c MR |
912 | 2007-08-24 Martin Rudalics <rudalics@gmx.at> |
913 | ||
914 | * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell | |
915 | whether decoding has modified buffer contents. | |
916 | ||
5fc9fdeb JR |
917 | 2007-08-24 Jason Rumney <jasonr@gnu.org> |
918 | ||
919 | * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG. | |
920 | (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols. | |
921 | (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them. | |
922 | (init_svg_functions) [HAVE_NTGUI]: New function. | |
923 | (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines. | |
924 | (svg_load_image): Use them. | |
925 | (svg_load_image) [HAVE_NTGUI]: Implement background. | |
926 | ||
93b23406 YM |
927 | 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
928 | ||
929 | * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables. | |
930 | (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@. | |
931 | (LIBX): Remove @RSVG_LIBS@. | |
932 | (LIBES): Add $(RSVG_LIBS). | |
933 | ||
934 | * image.c (svg_load_image): Blend with specified background if exists. | |
935 | Use IMAGE_BACKGROUND. Add Mac OS Support. | |
936 | ||
937 | * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable. | |
938 | (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]: | |
939 | Remove macros. | |
940 | [MAC_OSX] (socket_callback): Do nothing. | |
941 | [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of | |
942 | ReceiveNextEvent. | |
943 | [MAC_OSX] (sys_select): Likewise. Don't set context as argument to | |
944 | socket_callback. | |
945 | (mac_wakeup_from_rne) [MAC_OSX]: Do nothing. | |
946 | ||
2467875c GM |
947 | 2007-08-22 Glenn Morris <rgm@gnu.org> |
948 | ||
ff8da443 | 949 | * image.c (x_find_image_file): Search in etc/images/ rather than etc/. |
2467875c | 950 | |
4ab27a43 GM |
951 | 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net> |
952 | ||
953 | * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS. | |
ff8da443 | 954 | |
666e0eda GM |
955 | * image.c: Add support for SVG images. Some additional comments |
956 | by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined: | |
957 | (svg_image_p): New function to test for SVG image. | |
958 | (svg_load): New function to load SVG image. | |
959 | (svg_load_image): New function, helper for svg_load. | |
960 | (Qsvg): New Lisp_object. | |
961 | (svg_keyword_index): New enum. | |
962 | (svg_format): New static `image_keyword' struct. | |
963 | (svg_type): New static `image_type' struct. | |
964 | (librsvg/rsvg.h): Include it. | |
4ab27a43 | 965 | |
b636b4c1 SM |
966 | 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca> |
967 | ||
968 | * lread.c (load_warn_old_style_backquotes): Fix up array size typo. | |
969 | ||
9ecb827b SM |
970 | 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca> |
971 | ||
1d064697 SM |
972 | * lread.c (Qold_style_backquotes): New var. |
973 | (syms_of_lread): Init and staticpro it. | |
974 | (load_warn_old_style_backquotes): New fun. | |
975 | (Fload): Use them to warn about old style backquotes. | |
976 | (end_of_file_error, Fload): Remove unused vars. | |
977 | ||
5772ed4b SM |
978 | * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare. |
979 | ||
9ecb827b | 980 | * lread.c (Vold_style_backquotes): New var. |
5aa273b0 | 981 | (syms_of_lread): Init and export it to Elisp. |
9ecb827b SM |
982 | (read1): Set it when we find an old-style (back)quote. |
983 | ||
32e1c7b1 JR |
984 | 2007-08-22 Jason Rumney <jasonr@gnu.org> |
985 | ||
986 | * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator. | |
987 | ||
b8fa755b KY |
988 | 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org> |
989 | ||
990 | * puresize.h (BASE_PURESIZE): Increase to 1140000. | |
991 | ||
1283140e RS |
992 | 2007-08-19 Richard Stallman <rms@gnu.org> |
993 | ||
994 | * eval.c (Ffunction, Fquote): Signal error if not 1 argument. | |
995 | ||
2c4685ee AS |
996 | 2007-08-19 Andreas Schwab <schwab@suse.de> |
997 | ||
998 | * alloc.c (pure): Round PURESIZE up. | |
999 | ||
e8953ebf JD |
1000 | 2007-08-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
1001 | ||
1002 | * xterm.c (handle_one_xevent): Remove check that mouse click is in | |
1003 | active frame. | |
1004 | ||
6e33efc4 RS |
1005 | 2007-08-16 Richard Stallman <rms@gnu.org> |
1006 | ||
1007 | * eval.c (Fcommandp): Add parens to clarify. | |
1008 | ||
1009 | * minibuf.c (Fall_completions): Use enum for type of table. | |
1010 | ||
1011 | * emacs.c (USAGE2): Improve text. | |
1012 | ||
fcf8ff2e GM |
1013 | 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int> |
1014 | ||
5205ee62 GM |
1015 | * term.c (tty_default_color_capabilities): Declare static |
1016 | variables in file scope, to avoid HPUX compiler problem. | |
fcf8ff2e | 1017 | |
81d13a51 JD |
1018 | 2007-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
1019 | ||
1020 | * gtkutil.c (update_frame_tool_bar): Use -1 as index | |
1021 | to gtk_toolbar_insert. | |
1022 | ||
4a181359 SM |
1023 | 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca> |
1024 | ||
1bc99c9c SM |
1025 | * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup. |
1026 | ||
4a181359 SM |
1027 | * insdel.c (reset_var_on_error): New fun. |
1028 | (signal_before_change, signal_after_change): | |
1029 | Use it to reset (after|before)-change-functions to nil in case of error. | |
1030 | Bind inhibit-modification-hooks to t. | |
1031 | Don't bind (after|before)-change-functions to nil while they run. | |
1032 | ||
6c28435c YM |
1033 | 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1034 | ||
1035 | * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when | |
1036 | filling pixmap with stippled background. | |
1037 | ||
ad3b3e02 YM |
1038 | 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1039 | ||
1040 | * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event): | |
1041 | Don't use invisible frame as parent window for repositioning. | |
1042 | ||
a22dec27 SM |
1043 | 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca> |
1044 | ||
1045 | * print.c (new_backquote_output): Rename from old_backquote_output. | |
1046 | (print): Inverse its logic (according to its name) so as to match the | |
1047 | behavior of new_backquote_flag in lread.c. | |
1048 | ||
7b7d07bb YM |
1049 | 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1050 | ||
1051 | * gmalloc.c (posix_memalign): New function. | |
1052 | ||
1053 | * macterm.c (frame_highlight, frame_unhighlight): Don't call | |
1054 | ActivateControl/DeactivateControl here. | |
1055 | [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when | |
1056 | frame-notice-user-settings is non-nil. | |
1057 | [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter | |
1058 | for kEventParamFMFontStyle. | |
1059 | [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check | |
1060 | mac_pass_command_to_system and mac_pass_control_to_system here. | |
1061 | (XTread_socket): Call ActivateControl/DeactivateControl here. | |
1062 | (XTread_socket) [TARGET_API_MAC_CARBON]: | |
1063 | Check mac_pass_command_to_system and mac_pass_control_to_system here. | |
f9426479 YM |
1064 | (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround |
1065 | for window repositioning. | |
7b7d07bb | 1066 | |
22e9fe24 GM |
1067 | 2007-08-08 Glenn Morris <rgm@gnu.org> |
1068 | ||
1069 | * Replace `iff' in doc-strings and comments. | |
1070 | ||
ae494350 CY |
1071 | 2007-08-07 Chong Yidong <cyd@stupidchicken.com> |
1072 | ||
1073 | * xdisp.c (move_it_by_lines): Remove incorrect optimization. | |
1074 | ||
6f2528d8 MR |
1075 | 2007-08-07 Martin Rudalics <rudalics@gmx.at> |
1076 | ||
1077 | * fileio.c (Finsert_file_contents): Run format-decode and | |
1078 | after_insert_file_functions on entire buffer when REPLACE is | |
1079 | non-nil and inhibit modification_hooks and point_motion_hooks. | |
1080 | For consistency, run after_insert_file_functions iff something | |
1081 | got inserted. Move signal_after_change and update_compositions | |
1082 | after code running after_insert_file_functions. Make sure that | |
6b8e474c | 1083 | undo_list doesn't record intermediate steps of the decoding process. |
6f2528d8 | 1084 | |
3ceeb306 YM |
1085 | 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1086 | ||
1087 | * emacs.c (main) | |
1088 | [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: | |
1089 | Call malloc_enable_thread on interactive startup. | |
1090 | ||
1091 | * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable. | |
7b7d07bb YM |
1092 | (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS) |
1093 | [USE_PTHREAD]: Conditionalize with it. | |
3ceeb306 YM |
1094 | (malloc_atfork_handler_prepare, malloc_atfork_handler_parent) |
1095 | (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]: | |
1096 | New functions. | |
1097 | ||
ca5e6fd5 CY |
1098 | 2007-08-06 Chong Yidong <cyd@stupidchicken.com> |
1099 | ||
32bfce5d CY |
1100 | * xdisp.c (redisplay_window): When restoring original buffer |
1101 | position, make sure it is still valid. | |
1102 | ||
ca5e6fd5 CY |
1103 | * image.c (png_load): Ignore png-supplied background color. |
1104 | ||
a5b11587 YM |
1105 | 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1106 | ||
1107 | * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value. | |
1108 | Use kCFAbsoluteTimeIntervalSince1970. | |
1109 | ||
1110 | * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: | |
1111 | New variable. | |
1112 | [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog | |
1113 | event loop should be quit. | |
1114 | [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]: | |
1115 | Quit dialog event loop if quit_dialog_event_loop is set. | |
1116 | ||
1117 | * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h. | |
1118 | (Selection): New typedef. Use instead of ScrapRef. | |
1119 | (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol. | |
1120 | (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p. | |
1121 | (mac_clear_selection): Rename from clear_scrap. | |
1122 | (get_flavor_type_from_symbol): New argument SEL and subsume function of | |
ff8da443 | 1123 | scrap_has_target_type. All uses changed. |
a5b11587 YM |
1124 | (mac_get_selection_ownership_info, mac_valid_selection_value_p) |
1125 | (mac_selection_has_target_p): New functions. | |
1126 | (mac_put_selection_value): Rename from put_scrap_string. | |
1127 | (mac_get_selection_value): Rename from get_scrap_string. | |
1128 | (mac_get_selection_target_list): Rename from get_scrap_target_type_list. | |
1129 | (put_scrap_private_timestamp, scrap_has_target_type) | |
1130 | (get_scrap_private_timestamp): Remove functions. | |
1131 | (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define. | |
1132 | (x_own_selection, x_get_local_selection): | |
1133 | Use mac_valid_selection_value_p. | |
1134 | (x_own_selection): Don't use put_scrap_private_timestamp. | |
1135 | Record OWNERSHIP-INFO into Vselection_alist instead. | |
1136 | (x_get_local_selection): Don't check type if request is local. | |
1137 | (Fx_selection_owner_p): Don't use get_scrap_private_timestamp. | |
1138 | Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead. | |
1139 | ||
991bde0d JD |
1140 | 2007-08-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
1141 | ||
1142 | * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s, | |
1143 | add comment explaining why. | |
1144 | ||
73ff9d42 RS |
1145 | 2007-08-03 Richard Stallman <rms@gnu.org> |
1146 | ||
1147 | * fileio.c (Fvisited_file_modtime): Use make_time. | |
1148 | ||
54ed9a2d | 1149 | 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change) |
cdf5c17a VJL |
1150 | |
1151 | * mac.c (init_mac_osx_environment): Adjust load-path on self-contained | |
1152 | build. | |
1153 | ||
65a9c8e2 SM |
1154 | 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca> |
1155 | ||
1156 | * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT. | |
1157 | ||
c5925799 KY |
1158 | 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org> |
1159 | ||
1160 | * puresize.h (BASE_PURESIZE): Increase to 1130000. | |
1161 | ||
adef3de7 RS |
1162 | 2007-07-30 Richard Stallman <rms@gnu.org> |
1163 | ||
1164 | * lread.c (readevalloop, read1): Treat NBSP as whitespace. | |
1165 | ||
784c1472 JD |
1166 | 2007-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
1167 | ||
1168 | * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed. | |
1169 | ||
a10421a1 NR |
1170 | 2007-07-28 Nick Roberts <nickrob@snap.net.nz> |
1171 | ||
1172 | * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for | |
1173 | remote default-directory. | |
1174 | ||
1175 | * buffer.c (mode-line-format): Update doc string. | |
1176 | ||
0cb1ae20 YM |
1177 | 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1178 | ||
1179 | * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to | |
1180 | scroll bar gap. | |
1181 | (x_scroll_bar_create): Set bar->fringe_extended_p. | |
1182 | (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars | |
1183 | on frame edge. Check fringe background extension. Don't clear | |
1184 | extended fringe background area. | |
1185 | ||
1186 | * w32term.h (struct scroll_bar): New member fringe_extended_p. | |
1187 | (w32_fill_area): Enclose multiple statements with do ... while (0). | |
1188 | ||
1189 | * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: | |
1190 | Extend fringe background to scroll bar gap. | |
1191 | (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: | |
1192 | Set bar->fringe_extended_p. | |
1193 | (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
1194 | Put leftmost/rightmost scroll bars on frame edge. Check fringe | |
1195 | background extension. Don't clear extended fringe background area. | |
1196 | ||
1197 | * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
1198 | New member fringe_extended_p. | |
1199 | ||
cacc7b51 GM |
1200 | 2007-07-25 Glenn Morris <rgm@gnu.org> |
1201 | ||
1202 | * Relicense all FSF files to GPLv3 or later. | |
1203 | ||
1204 | * COPYING: Switch to GPLv3. | |
1205 | ||
89835619 SM |
1206 | 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca> |
1207 | ||
c4f46926 SM |
1208 | * eval.c (Fcommandp): Pay attention to the `interactive-form' property. |
1209 | ||
1210 | * data.c (Finteractive_form): Check for the presence of an | |
1211 | `interactive-form' symbol property more thoroughly. | |
1212 | ||
1213 | * data.c (Finteractive_form): Use an `interactive-form' property if | |
89835619 SM |
1214 | present, analogous to the function-documentation property. |
1215 | ||
ee04257d JR |
1216 | 2007-07-24 Jason Rumney <jasonr@gnu.org> |
1217 | ||
1218 | * w32fns.c (x_real_positions): Get real position from OS instead of | |
1219 | calculating it. | |
1220 | ||
50624218 JR |
1221 | 2007-07-23 Jason Rumney <jasonr@gnu.org> |
1222 | ||
1223 | * filelock.c (current_lock_owner): Allow for @ sign in username. | |
1224 | ||
3650f60e NR |
1225 | 2007-07-22 Nick Roberts <nickrob@snap.net.nz> |
1226 | ||
1227 | * xdisp.c (decode_mode_spec): Add case 'R' for to test for | |
1228 | remote default-directory. | |
1229 | ||
1230 | * buffer.c (mode-line-format): Describe above case in doc string. | |
1231 | ||
1e899515 | 1232 | 2007-07-20 Eli Zaretskii <eliz@gnu.org> |
b395d6e1 | 1233 | |
75be5258 EZ |
1234 | * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32): |
1235 | Define if not defined. | |
1236 | ||
2b6e2f4d JR |
1237 | 2007-07-18 Jason Rumney <jasonr@gnu.org> |
1238 | ||
1239 | * w32proc.c (w32_executable_type): Handle 64 bit executables. | |
1240 | ||
23dacf80 JB |
1241 | 2007-07-18 Richard Stallman <rms@gnu.org> |
1242 | ||
1243 | * data.c (Fsetq_default): Doc fix. | |
1244 | ||
1245 | * eval.c (Fsetq): Doc fix. | |
1246 | ||
1247 | 2007-07-18 Juanma Barranquero <lekktu@gmail.com> | |
1248 | ||
1249 | * coding.c (Ffind_operation_coding_system): | |
1250 | * eval.c (For, Fand): Doc fixes. | |
1251 | Reported by Johan Bockg\e,Ae\e(Brd. | |
1252 | ||
656de71a JD |
1253 | 2007-07-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se> |
1254 | ||
23dacf80 | 1255 | * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame. |
656de71a | 1256 | |
23dacf80 | 1257 | * xterm.h: Declare x_ewmh_activate_frame. |
656de71a JD |
1258 | |
1259 | * xterm.c (x_ewmh_activate_frame): New function. | |
1260 | (XTframe_raise_lower): Move code to x_ewmh_activate_frame. | |
1261 | ||
71ec17e6 MR |
1262 | 2007-07-17 Martin Rudalics <rudalics@gmx.at> |
1263 | ||
1264 | * window.c (Fdisplay_buffer): If largest or LRU window is the | |
1265 | only window, split it even if it is not eligible for splitting. | |
1266 | This restores the original behavior broken by the 2007-07-15 | |
1267 | change. | |
1268 | ||
e9818042 GM |
1269 | 2007-07-17 Glenn Morris <rgm@gnu.org> |
1270 | ||
1271 | * abbrev.c (abbrev_check_chars): New function. | |
6b8e474c SM |
1272 | (Fdefine_global_abbrev, Fdefine_mode_abbrev): |
1273 | Call abbrev_check_chars to check abbrev characters are word | |
e9818042 GM |
1274 | constituents. Doc fix. |
1275 | ||
e6fca843 SM |
1276 | 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca> |
1277 | ||
1278 | * process.c (Fstart_process, Fmake_network_process) | |
1279 | (read_process_output): Fix up last changes. | |
1280 | ||
b5d2b4ab EZ |
1281 | 2007-07-16 Eli Zaretskii <eliz@gnu.org> |
1282 | ||
1283 | * makefile.w32-in (clean): Don't delete *~. | |
1284 | ||
413a79ad AS |
1285 | 2007-07-16 Andreas Schwab <schwab@suse.de> |
1286 | ||
1287 | * window.c (Fdisplay_buffer): Use NILP. | |
1288 | (Fset_window_scroll_bars): Likewise. | |
1289 | ||
f1de8c77 MR |
1290 | 2007-07-15 Martin Rudalics <rudalics@gmx.at> |
1291 | ||
1292 | * window.c (window_min_size_2): New function. | |
1293 | (window_min_size_1, size_window, Fdisplay_buffer) | |
1294 | (Fsplit_window, adjust_window_trailing_edge): Use it to avoid | |
1295 | windows without mode- or header-lines when window-min-height is | |
1296 | too small. | |
1297 | (size_window): Reset nodelete_p after testing it, following an | |
1298 | earlier note by Kim F. Storm. | |
1299 | (display_buffer): Do not set split_height_threshold to twice the | |
1300 | value of window_min_height to avoid changing the value of a | |
1301 | customizable variable. Rather explicitly check whether the | |
1302 | height of the window that shall be splitted is at least as large | |
1303 | as split_height_threshold. | |
1304 | ||
5e1ab613 JR |
1305 | 2007-07-14 Jason Rumney <jasonr@gnu.org> |
1306 | ||
1307 | * process.c [WINDOWSNT]: Don't undefine AF_INET6. | |
1308 | ||
f01cbfdd RS |
1309 | 2007-07-14 Richard Stallman <rms@gnu.org> |
1310 | ||
1311 | * eval.c (maybe_call_debugger): New function. | |
1312 | (find_handler_clause): Use maybe_call_debugger. | |
1313 | Call it when the handler says `debug'. | |
1314 | Eliminate DEBUGGER_VALUE_PTR. | |
1315 | (Fsignal): Eliminate debugger_value. | |
1316 | (Qdebug): New variable. | |
1317 | (syms_of_eval): Initialize it. | |
1318 | ||
1bab435a JB |
1319 | 2007-07-14 Juanma Barranquero <lekktu@gmail.com> |
1320 | ||
1321 | * eval.c (Fprogn): | |
1322 | * keyboard.c (Ftrack_mouse): | |
1323 | * print.c (Fwith_output_to_temp_buffer): | |
1324 | * window.c (Fsave_window_excursion): Doc fix. | |
1325 | ||
be436d23 SM |
1326 | 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca> |
1327 | ||
1328 | * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400. | |
1329 | ||
60f0fb11 SM |
1330 | 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca> |
1331 | ||
1332 | * process.h (struct Lisp_Process): Turn slots infd, outfd, | |
1333 | kill_without_query, pty_flag, tick, update_tick, decoding_carryover, | |
1334 | inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering, | |
1335 | read_output_delay, and read_output_skip from Lisp_Objects to ints. | |
1336 | Remove unused encoding_carryover. | |
1337 | * process.c: Adjust all functions accordingly. | |
1338 | ||
d8b18043 RS |
1339 | 2007-07-12 Richard Stallman <rms@gnu.org> |
1340 | ||
1341 | * term.c: Include unistd.h only if HAVE_UNISTD_H. | |
1342 | ||
d5781bb6 JR |
1343 | 2007-07-11 Jason Rumney <jasonr@gnu.org> |
1344 | ||
1345 | * makefile.w32-in (LIBS): Include OLE32. | |
1346 | ||
1347 | * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM. | |
1348 | (w32_msg_pump) <WM_DESTROY>: Uninitialize COM. | |
1349 | ||
5bb7dfee SM |
1350 | 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca> |
1351 | ||
1352 | * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer. | |
1353 | * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned | |
1354 | from a Lisp_Object into a bare pointer. | |
1355 | (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns): | |
1356 | Adjust the code correspondingly. | |
1357 | ||
1358 | * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'. | |
1359 | ||
1360 | * term.c: Include unistd.h for ttyname, used in handle_one_term_event. | |
1361 | (term_show_mouse_face): Remove unused var `j'. | |
1362 | (handle_one_term_event): Remove unused vars `i' and `j'. | |
1363 | Don't cast return value of ttyname since it's not necessary. | |
1364 | ||
a1be1ce8 SM |
1365 | 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca> |
1366 | ||
5045e68e SM |
1367 | * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using |
1368 | USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>. | |
1369 | ||
8071c00f SM |
1370 | * fns.c (map_char_table): Use an array of int for `indices' rather than |
1371 | an array of Lisp_Objects (which are only ever integers anyway). | |
1372 | (Fmap_char_table): Update caller. | |
1373 | * lisp.h: Update prototype. | |
1374 | * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap): | |
1375 | * fontset.c (Ffontset_info): | |
1376 | * casetab.c (set_case_table): Update callers. | |
1377 | ||
1378 | * editfns.c (Ftranspose_regions): Use EMACS_INT for positions. | |
1379 | ||
fab84e3c SM |
1380 | * keymap.c (struct accessible_keymaps_data) |
1381 | (struct where_is_internal_data): New structures. | |
1382 | (accessible_keymaps_1, where_is_internal_1): Use them to change | |
1383 | interface to adhere to the one used by map_keymap. | |
1384 | (Faccessible_keymaps, where_is_internal): Use map_keymap. | |
1385 | (accessible_keymaps_char_table, where_is_internal_2): Remove. | |
1386 | ||
a1be1ce8 SM |
1387 | * keymap.h (map_keymap_function_t): More informative prototype. |
1388 | ||
ef887810 RS |
1389 | 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com> |
1390 | ||
1391 | * search.c (Vinhibit_changing_match_data, search_regs_1): New vars. | |
1392 | (looking_at_1): Don't change search_regs and last_thing_searched | |
1393 | if `inhibit-changing-match-data' is non-nil. | |
1394 | (string_match_1, search_buffer, set_search_regs): Likewise. | |
1395 | (syms_of_search): Add Lisp level definition for | |
1396 | `inhibit-changing-match-data' and set it to nil. | |
8071c00f SM |
1397 | (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute |
1398 | start and end of the match, instead of using values in search_regs. | |
ef887810 | 1399 | |
4d02fc25 SM |
1400 | 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca> |
1401 | ||
1402 | * minibuf.c (Fcompleting_read): New value `confirm-only' | |
1403 | for `require-match'. | |
1404 | ||
fe45b81f SM |
1405 | 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca> |
1406 | ||
1407 | * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as | |
1408 | part of the 2007-06-27 change to syms_of_fileio. | |
1409 | ||
a56dd283 YM |
1410 | 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1411 | ||
1412 | * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): | |
1413 | Check WINDOWP before using XWINDOW. Consolidate return statements. | |
1414 | ||
0cf9f5b5 RS |
1415 | 2007-06-27 Richard Stallman <rms@gnu.org> |
1416 | ||
1417 | * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix. | |
1418 | ||
a66f285a JB |
1419 | 2007-06-27 Juanma Barranquero <lekktu@gmail.com> |
1420 | ||
1421 | * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring. | |
1422 | ||
8d0d84d2 YM |
1423 | 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1424 | ||
1425 | * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h. | |
1426 | (_aligned_blocks_mutex) [USE_PTHREAD]: New variable. | |
1427 | (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros. | |
1428 | (_free_internal, memalign): Use them. | |
1429 | (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]: | |
1430 | Initialize to PTHREAD_MUTEX_INITIALIZER. | |
1431 | (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex. | |
1432 | (morecore_nolock): Rename from morecore. All uses changed. | |
1433 | Use only nolock versions of internal allocation functions. | |
1434 | (_malloc_internal_nolock, _realloc_internal_nolock) | |
1435 | (_free_internal_nolock): New functions created from | |
1436 | _malloc_internal, _realloc_internal, and _free_internal. | |
1437 | (_malloc_internal, _realloc_internal, _free_internal): Use them. | |
1438 | Copy hook value to automatic variable before its use. | |
1439 | (memalign): Copy hook value to automatic variable before its use. | |
1440 | ||
5a0bbd9a KH |
1441 | 2007-06-26 Kenichi Handa <handa@m17n.org> |
1442 | ||
1443 | * coding.c (Ffind_operation_coding_system): Docstring improved. | |
1444 | (syms_of_coding): Docstring of `file-coding-system-alist' improved. | |
1445 | ||
9a51747b DK |
1446 | 2007-06-25 David Kastrup <dak@gnu.org> |
1447 | ||
1448 | * keymap.c (Fcurrent_active_maps): Add `position' argument. | |
1449 | (Fwhere_is_internal): Adjust call to `current-active-maps' to | |
1450 | cater for additional parameter. | |
1451 | ||
1452 | * keymap.h: Adjust number of parameters to `current-active-maps'. | |
1453 | ||
1454 | * doc.c (Fsubstitute_command_keys): Adjust call of | |
1455 | `current-active-maps'. | |
1456 | ||
e4305426 DK |
1457 | 2007-06-25 David Kastrup <dak@gnu.org> |
1458 | ||
1459 | * callint.c (Fcall_interactively): Make the parsing of interactive | |
1460 | specs somewhat more readable. | |
1461 | ||
511a18d9 YM |
1462 | 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1463 | ||
1464 | * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background | |
1465 | to scroll bar gap also when bitmap fills fringe. Draw only foreground | |
1466 | if extended background has already been filled. | |
1467 | ||
512eb161 YM |
1468 | 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1469 | ||
1470 | * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI. | |
1471 | (USE_MAC_TOOLBAR): Require USE_CG_DRAWING. | |
1472 | ||
1473 | * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]: | |
1474 | Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p | |
1475 | in #if 0 as it is not compatible with y-or-n-p-with-timeout. | |
1476 | (timer_check) [TARGET_API_MAC_CARBON]: Add extern. | |
1477 | [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop | |
1478 | instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls. | |
1479 | (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function. | |
1480 | [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind. | |
1481 | Run timers during dialog popup. | |
1482 | (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated. | |
1483 | ||
2386b1f1 JR |
1484 | 2007-06-21 Jason Rumney <jasonr@gnu.org> |
1485 | ||
1486 | * image.c (convert_mono_to_color_image): Swap fore and background. | |
1487 | ||
fab8b787 JR |
1488 | 2007-06-20 Jason Rumney <jasonr@gnu.org> |
1489 | ||
1490 | * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished. | |
1491 | (w32_free_bdf_font): Unmap memory not handle. | |
1492 | ||
15bdd7a0 | 1493 | 2007-06-20 Sam Steingold <sds@gnu.org> |
3cacba85 SS |
1494 | |
1495 | * gmalloc.c (__morecore): Fix the declaration to comply with the | |
1496 | definition. | |
1497 | ||
1bb8a291 JB |
1498 | 2007-06-20 Juanma Barranquero <lekktu@gmail.com> |
1499 | ||
1500 | * w32term.c (w32_delete_display): Remove leftover declaration. | |
1501 | (w32_define_cursor, w32_initialize): Make static. | |
1502 | ||
1503 | * w32.c (_wsa_errlist): Fix typo in error message. | |
1504 | (init_environment): Ignore any environment variable from the | |
1505 | registry having a null value. | |
1506 | ||
92648dea GM |
1507 | 2007-06-20 Glenn Morris <rgm@gnu.org> |
1508 | ||
1509 | * Makefile.in (LIBGIF): Default to -lgif. | |
1510 | ||
ff25d115 JR |
1511 | 2007-06-17 Jason Rumney <jasonr@gnu.org> |
1512 | ||
1513 | * w32menu.c (add_menu_item): Don't use multibyte string functions on | |
1514 | unicode strings. | |
1515 | ||
a1a578a5 JB |
1516 | 2007-06-16 Juanma Barranquero <lekktu@gmail.com> |
1517 | ||
1518 | * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>: | |
1519 | Fix typo in docstring. | |
1520 | ||
af41f8a8 EZ |
1521 | 2007-06-16 Eli Zaretskii <eliz@gnu.org> |
1522 | ||
1523 | * w32menu.c (add_menu_item): Escape `&' characters in menu items | |
1524 | and their keybindings. | |
1525 | ||
8b29cab9 CY |
1526 | 2007-06-15 Chong Yidong <cyd@stupidchicken.com> |
1527 | ||
1528 | * composite.c (update_compositions): Fix last fix. | |
1529 | ||
c433c134 JR |
1530 | 2007-06-14 Jason Rumney <jasonr@gnu.org> |
1531 | ||
1532 | * w32.c (get_process_times_fn): New function pointer. | |
1533 | (globals_of_w32): Intialize it if present in kernel32.dll. | |
1534 | (w32_get_internal_run_time): New function. | |
1535 | ||
1536 | * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it. | |
1537 | ||
553d3164 KH |
1538 | 2007-06-14 Kenichi Handa <handa@etlken.m17n.org> |
1539 | ||
1540 | * composite.c (update_compositions): Check the validness of | |
1541 | compositions. | |
1542 | ||
446ba96f YM |
1543 | 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1544 | ||
1545 | * frame.h (struct frame) [MAC_OS]: New member external_tool_bar. | |
1546 | (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it. | |
1547 | ||
1548 | * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity. | |
1549 | (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR. | |
1550 | ||
1551 | * macgui.h (USE_MAC_TOOLBAR): New define. | |
1552 | ||
1553 | * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): | |
1554 | Return immediately unless popup is activated. | |
1555 | ||
1556 | * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe | |
1557 | background to scroll bar gap. | |
1558 | (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p. | |
1559 | (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost | |
1560 | scroll bars on frame edge. Check fringe background extension. | |
1561 | Don't clear extended fringe background area. | |
1562 | (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER) | |
1563 | (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P) | |
1564 | (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID): | |
1565 | [USE_MAC_TOOLBAR]: New macros. | |
1566 | (mac_move_window_with_gravity, mac_get_window_origin_with_gravity) | |
1567 | (mac_handle_toolbar_event, mac_image_spec_to_cg_image) | |
1568 | (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar) | |
1569 | (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event) | |
1570 | [USE_MAC_TOOLBAR]: New functions. | |
1571 | (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window | |
1572 | manually if previous repositioning has failed. | |
1573 | (mac_handle_keyboard_event): Use precomputed event kind. | |
1574 | (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region | |
1575 | as tool bar item click. Handle mouse movement over tool bar items. | |
1576 | ||
1577 | * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member | |
1578 | toolbar_win_gravity. | |
1579 | (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p. | |
1580 | (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]: | |
1581 | Add externs. | |
1582 | ||
1583 | * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window) | |
1584 | [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display. | |
1585 | ||
9720173f CY |
1586 | 2007-06-14 Chong Yidong <cyd@stupidchicken.com> |
1587 | ||
1588 | * image.c (search_image_cache): Remove unused variable. | |
1589 | ||
1217dd00 CY |
1590 | 2007-06-13 Chong Yidong <cyd@stupidchicken.com> |
1591 | ||
1592 | * xfns.c, xmenu.c: Link to xaw3d if available. | |
1593 | ||
c5b8e0ea YM |
1594 | 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1595 | ||
1596 | * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members | |
1597 | frame_foreground and frame_background. | |
1598 | ||
1599 | * image.c (lookup_image): Save frame foreground and background colors. | |
1600 | (search_image_cache): Check if saved and current frame colors match. | |
1601 | ||
c69b0314 SM |
1602 | 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca> |
1603 | ||
1604 | * regex.c (regex_compile): Remove the `regnum' counter. | |
1605 | Use bufp->re_nsub instead. Add support for \(?N:RE\). | |
1606 | ||
c9612b8e SM |
1607 | 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca> |
1608 | ||
1609 | * term.c: Include intervals.h to declare Fget_text_property. | |
1610 | ||
843d2458 JR |
1611 | 2007-06-10 Jason Rumney <jasonr@gnu.org> |
1612 | ||
1613 | * w32fns.c (Fx_file_dialog): Take size from struct not pointer. | |
1614 | ||
1e0d2d60 | 1615 | 2007-06-08 Juanma Barranquero <lekktu@gmail.com> |
977f6cfb JB |
1616 | |
1617 | * callint.c (Fcall_interactively): | |
1618 | * editfns.c (Fdelete_and_extract_region): | |
1619 | * fileio.c (Fread_file_name): | |
1620 | * fns.c (Fmapconcat): | |
1621 | * keyboard.c (cmd_error_internal): | |
1622 | * keymap.c (Fkey_description): | |
1623 | * lread.c (openp): | |
1624 | * minibuf.c (read_minibuf): | |
1625 | * search.c (wordify): | |
1626 | * sunfns.c (sel_read): | |
1627 | * xdisp.c (Fformat_mode_line, syms_of_xdisp): | |
1628 | * xfns.c (x_default_scroll_bar_color_parameter): | |
1629 | * xmenu.c (menu_help_callback): | |
1630 | * xselect.c (Fx_get_atom_name): | |
1631 | * xterm.c (x_term_init): Use empty_unibyte_string. | |
1632 | ||
15bdd7a0 | 1633 | 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change) |
977f6cfb JB |
1634 | |
1635 | * alloc.c (init_strings): Initialize canonical empty strings. | |
1636 | (make_uninit_string, make_uninit_multibyte_string): Return appropriate | |
1637 | canonical empty string when the requested size is 0. | |
1638 | ||
1639 | * emacs.c (empty_unibyte_string): Rename from empty_string. | |
1640 | (empty_multibyte_string): New canonical empty string. | |
1641 | (syms_of_emacs): Don't initialize empty_string. | |
1642 | ||
1643 | * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte | |
1644 | string, if appropriate. | |
1645 | (empty_unibyte_string, empty_multibyte_string): New externs. | |
1646 | (empty_string): Remove extern. | |
1647 | ||
1648 | * lread.c (syms_of_lread): Use empty_unibyte_string. | |
1649 | ||
42c4c67a JR |
1650 | 2007-06-07 Jason Rumney <jasonr@gnu.org> |
1651 | ||
1652 | * s/ms-w32.h: Don't define HAVE_TZNAME. | |
1653 | ||
1654 | * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows. | |
1655 | ||
aa8280d3 YM |
1656 | 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1657 | ||
1658 | * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT. | |
1659 | ||
1660 | * macfns.c (mac_get_window_bounds): Move extern to macterm.h. | |
1661 | (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse. | |
1662 | ||
1663 | * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): | |
1664 | Don't call next handler. | |
1665 | [TARGET_API_MAC_CARBON] (install_menu_target_item_handler): | |
1666 | Remove argument. Install handler to application. | |
1667 | (set_frame_menubar): Don't change deep_p. | |
1e0d2d60 | 1668 | (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and |
aa8280d3 YM |
1669 | FRAME_OUTER_TO_INNER_DIFF_Y. |
1670 | (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P) | |
1671 | (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID) | |
1672 | [HAVE_DIALOGS]: New macros. | |
1673 | [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog): | |
1674 | Use them. | |
1675 | (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString. | |
1676 | ||
1677 | * macselect.c [MAC_OSX] (install_service_handler): Rename from | |
1678 | init_service_handler. All callers changed. Return OSStatus value. | |
1679 | ||
1680 | * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort. | |
1681 | All callers changed so as not to call SetPortWindowPort. | |
1682 | (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. | |
1683 | (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from | |
1684 | mac_draw_string_common. | |
1685 | (mac_draw_image_string_qd): Likewise. | |
1686 | (mac_draw_string_common): Use them. Add INLINE. | |
1687 | (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]: | |
1688 | Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and | |
1689 | GetGlobalMouse. | |
1690 | (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X | |
1691 | and FRAME_OUTER_TO_INNER_DIFF_Y. | |
1692 | [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise. | |
1693 | [USE_MAC_TSM] (mac_handle_text_input_event): Likewise. | |
1694 | (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for | |
1695 | repositioning window to mac_handle_window_event. | |
1696 | (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for | |
1697 | saving window location to mac_handle_window_event | |
1698 | [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here. | |
1699 | (install_menu_target_item_handler): Remove argument in extern. | |
1700 | [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers): | |
1701 | Also accept command events. | |
1702 | (do_keystroke): New function created from XTread_socket. | |
1703 | (init_command_handler): Remove functions. | |
1704 | [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window | |
1705 | and save window location by kEventWindowShowing and kEventWindowHiding | |
1706 | handlers here. Don't call next handler for window state change and | |
1707 | focus events. | |
1708 | (mac_handle_application_event, mac_handle_keyboard_event) | |
1709 | [TARGET_API_MAC_CARBON]: New functions. | |
1710 | (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for | |
1711 | kEventWindowShowing and kEventWindowHiding events. Move installation | |
1712 | of mouse, font, text input and menu target item handlers to | |
1713 | install_application_handler. | |
1714 | (install_application_handler) [TARGET_API_MAC_CARBON]: New function. | |
1715 | (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
1716 | New function. | |
1717 | (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | |
1718 | Register it. | |
c9612b8e SM |
1719 | (XTread_socket) [TARGET_API_MAC_CARBON]: |
1720 | Consolidate SendEventToEventTarget calls. | |
1721 | Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y. | |
1722 | Move application activation handler to mac_handle_application_event. | |
1723 | Move keyboard handler to mac_handle_keyboard_event. | |
aa8280d3 YM |
1724 | (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke. |
1725 | (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call | |
1726 | init_command_handler. Call install_application_handler. | |
1727 | ||
1728 | * macterm.h (mac_get_window_bounds): Move extern from macfns.c. | |
1729 | (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros. | |
1730 | ||
6926c954 GM |
1731 | 2007-06-07 Glenn Morris <rgm@gnu.org> |
1732 | ||
1733 | * emacs.c (main): Use `emacs-copyright' in --version output. | |
1734 | ||
6fe04c89 CY |
1735 | 2007-06-06 Chong Yidong <cyd@stupidchicken.com> |
1736 | ||
c9612b8e | 1737 | * image.c (xpm_load): Remove spurious call to xpm_init_color_cache. |
6fe04c89 | 1738 | |
7eb0d727 YM |
1739 | 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
1740 | ||
1741 | * macfns.c (mac_window): Replace WindowPtr with WindowRef. | |
1742 | ||
1743 | * macgui.h: Replace WindowPtr with WindowRef. | |
1744 | ||
1745 | * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and | |
1746 | GetMenuRef, respectively. Replace WindowPtr with WindowRef. | |
1747 | Replace ControlHandle with ControlRef. | |
1748 | (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU. | |
1749 | ||
1750 | * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and | |
1751 | GetMenuRef, respectively. Replace WindowPtr with WindowRef. | |
1752 | Replace ControlHandle with ControlRef. | |
1753 | (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead. | |
1754 | [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'. | |
1755 | ||
1756 | * macterm.h (struct scroll_bar): Rename member control_handle_low | |
1757 | and control_handle_high to control_ref_low and control_ref_high. | |
1758 | All uses changed. | |
1759 | (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from | |
1760 | SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE, | |
1761 | respectively. All uses changed. | |
1762 | (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground) | |
1763 | (install_window_handler, remove_window_handler): Replace WindowPtr | |
1764 | with WindowRef in externs. | |
1765 | ||
65fddb74 JB |
1766 | 2007-06-05 Juanma Barranquero <lekktu@gmail.com> |
1767 | ||
1768 | * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops. | |
1769 | ||
db1213a9 NR |
1770 | 2007-06-03 Nick Roberts <nickrob@snap.net.nz> |
1771 | ||
1772 | * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case. | |
1773 | ||
65fddb74 | 1774 | * frame.c (Fmouse_position, Fmouse_pixel_position): |
db1213a9 NR |
1775 | Condition on HAVE_GPM too. |
1776 | ||
1777 | * term.c (term_mouse_highlight): Remove unused variables. | |
1778 | (Fterm_open_connection): Set gpm_zerobased to 1. | |
1779 | (term_mouse_movement, term_mouse_click, handle_one_term_event): | |
1780 | Use zero based co-ordinates. | |
1781 | (handle_one_term_event): Report a drag as mouse movement too. | |
1782 | ||
1783 | * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM. | |
1784 | ||
d94df25b CY |
1785 | 2007-06-03 Chong Yidong <cyd@stupidchicken.com> |
1786 | ||
1787 | * image.c (search_image_cache): New function. Require background | |
1788 | color match if background color is unspecified in the image spec. | |
1789 | (uncache_image, lookup_image): Use it. | |
1790 | ||
4797b6d9 JB |
1791 | 2007-06-01 Juanma Barranquero <lekktu@gmail.com> |
1792 | ||
1793 | * window.c (Fshrink_window): Reflow docstring. | |
1794 | ||
382c648d | 1795 | See ChangeLog.10 for earlier changes. |
6922b018 KH |
1796 | |
1797 | ;; Local Variables: | |
49b3bd82 | 1798 | ;; coding: iso-2022-7bit |
33462dfa | 1799 | ;; add-log-time-zone-rule: t |
6922b018 | 1800 | ;; End: |
2a34a036 | 1801 | |
382c648d | 1802 | Copyright (C) 2007 Free Software Foundation, Inc. |
7f6d64f8 GM |
1803 | |
1804 | This file is part of GNU Emacs. | |
1805 | ||
1806 | GNU Emacs is free software; you can redistribute it and/or modify | |
1807 | it under the terms of the GNU General Public License as published by | |
684d6f5b | 1808 | the Free Software Foundation; either version 3, or (at your option) |
7f6d64f8 GM |
1809 | any later version. |
1810 | ||
1811 | GNU Emacs is distributed in the hope that it will be useful, | |
1812 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
1813 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
1814 | GNU General Public License for more details. | |
1815 | ||
1816 | You should have received a copy of the GNU General Public License | |
1817 | along with GNU Emacs; see the file COPYING. If not, write to the | |
1818 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
1819 | Boston, MA 02110-1301, USA. | |
ab5796a9 | 1820 | |
28f60c3d | 1821 | ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40 |