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