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