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