* make-docfile.c (write_c_args): Warn for old-style empty arglist ().
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8a52f00a
JD
12010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xsettings.c (Ftool_bar_get_system_style): Also check for
4 Qtext_image_horiz.
5
6 * xdisp.c (Qtext_image_horiz): Define.
7 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
8 to ducumentation of tool-bar-style.
9
10 * lisp.h (Qtext_image_horiz): Declare.
11
12 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
13 style text_image_horiz.
14
89dc303e
DN
152010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16
60799703
DN
17 * emacs.c (Fkill_emacs): Remove return statement.
18
37254dc1
DN
19 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
20 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
21 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
22 local extern declarations.
23
71c7345a
DN
24 * xmenu.c: Do not included lwlib.h, not needed.
25
6ba577cb
DN
26 * m/iris4d.h (XUINT, XSET): Remove, not needed.
27
fdb183d6
DN
28 * process.c: Move definitions earlier to minimize #ifdefs.
29
30 * xterm.h (x_get_customization_string, x_load_resources)
31 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
32 (x_check_errors, x_property_data_to_lisp, defined_color)
33 (xic_set_xfontset, x_defined_color): Use const.
34
35 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
36 (x_text_icon, x_check_errors, x_connection_closed): Use const.
37
38 * xselect.c (selection_data_to_lisp_data)
39 (x_property_data_to_lisp):
40 * xrdb.c (x_get_string_resource, file_p)
41 (x_get_customization_string, magic_file_p, search_magic_path)
42 (get_system_app, get_user_app, x_load_resources, x_get_resource)
43 (x_get_string_resource): Use const.
44
45 * xfns.c: Include xlwmenu.h when USE_LUCID.
46 (x_defined_color, xic_set_xfontset): Use const.
47 (Fx_hide_tip): Remove local extern declaration.
48
49 * xfaces.c (Qmouse_face): Remove declaration.
50 (face_color_gray_p, tty_defined_color, defined_color)
51 (face_color_gray_p, face_color_supported_p). Add const.
52
53 * xdisp.c (do_mouse_tracking): Remove declaration.
54 (add_to_log): Use const.
55
56 * minibuf.c (Qmouse_face): Remove declaration.
57
58 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
59
60 * keyboard.h (do_mouse_tracking): Add declaration.
61
62 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
63 (QCdata, QCtype, Qcenter): Remove declarations.
64
65 * frame.c (x_get_resource_string, x_get_string_resource)
66 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
67 (x_default_parameter): Use const.
68
69 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
70 (QCheight, QCsize, QCname): Remove declarations.
71
72 * emacs.c (main): Remove local extern declaration.
73
74 * editfns.c (region_limit, syms_of_editfns): Remove local extern
75 declarations.
76
77 * dispnew.c: Remove duplicate #include <unistd.h>.
78 (update_window, update_frame_1, init_display): Remove local extern
79 declarations.
80
81 * dispextern.h (add_to_log): Remove declaration.
82 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
83 (x_frame_get_and_record_arg, x_default_parameter): Add const.
84
85 * dired.c (scmp): Add const.
86 (directory_files_internal): Remove local extern declaration.
87
88 * data.c (Finteractive_form): Use const.
89
90 * composite.c (syms_of_composite): Remove local extern declarations.
91
92 * charset.c (add_to_log): Remove declaration.
93
94 * character.c (strwidth, parse_str_to_multibyte): Add const.
95
96 * character.h (strwidth, parse_str_to_multibyte): Likewise.
97
98 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
99
89dc303e 100 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
101 (Lisp_Subr): Make doc and intspec constant.
102 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
103 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
104 (QCheight, QCsize, QCname, QCwidth, QCforeground)
105 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
106 (display_arg): Add declarations.
89dc303e 107
0ed082fe 1082010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
109
110 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
111
0ed082fe
JB
112 * window.c (Fwindow_height): Doc fix (bug#6518).
113
1142010-07-27 Juanma Barranquero <lekktu@gmail.com>
115
116 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
117
ccaf0336
DN
1182010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
119
977105dc
DN
120 * keyboard.c (Ftop_level, Fexit_recursive_edit)
121 (Fabort_recursive_edit): Remove return statements in NO_RETURN
122 functions.
123
f5ada890
DN
124 * frame.h (Qtty_color_mode): Add declaration.
125
ccaf0336
DN
126 * lisp.h (Ftop_level, Fexit_recursive_edit)
127 (Fabort_recursive_edit): Mark as NO_RETURN.
128
dfe3c90f
KH
1292010-07-26 Kenichi Handa <handa@m17n.org>
130
131 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 132 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 133
7d383292
JB
1342010-07-26 Juanma Barranquero <lekktu@gmail.com>
135
136 * lread.c (unreadpure, mapatoms_1): Make static.
137
da31e629
JB
1382010-07-25 Juanma Barranquero <lekktu@gmail.com>
139
140 * terminfo.c (tparam): Fix prototype of tparm.
141
7bfa6d77
AS
1422010-07-25 Andreas Schwab <schwab@linux-m68k.org>
143
dcc19aac
AS
144 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
145 find start of text segment.
146 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
147 is defined.
148
7bfa6d77
AS
149 * callproc.c (set_initial_environment): Avoid unbalanced braces.
150
63f9a672
KB
1512010-07-25 Ken Brown <kbrown@cornell.edu>
152
153 * vm-limit.c (check_memory_limits): Fix previous change;
154 accidentally reverted an earlier change.
155
24933075
KB
1562010-07-25 Ken Brown <kbrown@cornell.edu>
157
158 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
159 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
160
361358ea
JB
1612010-07-25 Juanma Barranquero <lekktu@gmail.com>
162
163 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
164 * dired.c (opendir, readdir): Fix prototypes.
165 * editfns.c (w32_get_internal_run_time): Fix prototypes.
166 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
167 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
168 (telldir): Remove declaration.
169 * ralloc.c (real_morecore, __morecore): Fix prototypes.
170 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
171 * syssignal.h (strsignal): Fix prototype.
172 * term.c (tparam): Fix prototype.
173 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
174 (term_get_fkeys): Set inside "#ifndef DOS_NT".
175 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
176 and __morecore.
177 * w32gui.h (XParseGeometry): Fix prototype.
178 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
179 * w32term.c (my_set_focus): Declare inside #if 0.
180 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
181 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
182 (drain_message_queue, get_next_msg, post_msg, parse_button)
183 (ClipboardSequence_Proc): Fix prototypes.
184 (wait_for_sync): Remove declaration.
185
630b9592
JB
1862010-07-24 Juanma Barranquero <lekktu@gmail.com>
187
188 * w32fns.c (w32_to_x_color): Remove, unused.
189
6a0d6611
AS
1902010-07-24 Andreas Schwab <schwab@linux-m68k.org>
191
192 * lisp.h: Remove leftover P_.
193
4e8608ff
DN
1942010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
195
196 * ecrt0.c, unexalpha.c: Remove files, unused.
197
c8197983
AS
1982010-07-24 Andreas Schwab <schwab@linux-m68k.org>
199
200 * cmds.c (internal_self_insert): Make static.
201 * lisp.h (internal_self_insert): Remove declaration.
202
97b372d7
JB
2032010-07-23 Juanma Barranquero <lekktu@gmail.com>
204
33ac0414
JB
205 * alloc.c (free_float):
206 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
207 * frame.c (delete_frame_handler):
208 * ralloc.c (reorder_bloc):
209 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
210 Remove unused static functions.
211
94da8397
JB
212 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
213 it is called only from NS code.
214
2e6c8532
JB
215 * w32term.c (my_set_focus): #ifdef away; it is called only from
216 "#ifdef 0" code.
217
97b372d7
JB
218 * w32fns.c (x_edge_detection):
219 * xfaces.c (may_use_scalable_font_p):
220 Remove obsolete static declarations.
221
7c3320d8
JB
2222010-07-20 Juanma Barranquero <lekktu@gmail.com>
223
224 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
225 (emacs_blocked_realloc, uninterrupt_malloc):
226 * fringe.c (w32_reset_fringes):
227 * image.c (convert_mono_to_color_image, lookup_rgb_color)
228 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
229 * sound.c (be2hs, do_play_sound):
230 * vm-limit.c (get_lim_data, ret_lim_data):
231 * w32term.c (x_free_frame_resources):
232 * xfaces.c (x_create_gc, x_free_gc):
233 Convert definitions to standard C.
234
d5273788
SM
2352010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
236
237 * eval.c (Feval, Ffuncall): Use the new names.
238
239 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
240 (DEFUN): Add braces around the union initialisation and use ## to
241 specify the right union alternative and avoid a cast.
242
8d16a259
JB
2432010-07-18 Juanma Barranquero <lekktu@gmail.com>
244
245 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
246
3b8eff32
CY
2472010-07-17 Chong Yidong <cyd@stupidchicken.com>
248
249 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
250
499322ce
J
2512010-07-17 Jan Djärv <jan.h.d@swipnet.se>
252
253 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
254 is related to the menu bar (Bug#6499).
a628ad9d 255 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 256
f6003da5 2572010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
258
259 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
260
261 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
262
263 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
264 i.e. don't put back ButtonRelease (Bug#6608).
265
266 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
267 instead of Window. Call xg_event_is_for_menubar when
268 USE_GTK (Bug#6499).
269
270 * gtkutil.h (xg_event_is_for_menubar): Declare.
271
272 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
273
f6003da5 2742010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
275
276 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
277 when it's the same as the old foreground. (Bug#6609)
278
23243f29
J
2792010-07-16 Jan Djärv <jan.h.d@swipnet.se>
280
281 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
282 widget is non-null (Bug#6645).
283
2b23d2a6
AS
2842010-07-15 Andreas Schwab <schwab@linux-m68k.org>
285
01b564ff
AS
286 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
287 Convert old-style definition.
288
2b23d2a6
AS
289 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
290 timestamp argument.
291
c4affd2c
EZ
2922010-07-15 Eli Zaretskii <eliz@gnu.org>
293
294 * fringe.c (update_window_fringes): Restore mistakenly reverted
295 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
296
cf28cebc
J
2972010-07-14 Jan Djärv <jan.h.d@swipnet.se>
298
299 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
300 (SET_SAVED_KEY_EVENT): Remove (not used).
301 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
302 remove size parameter.
303 (handle_one_xevent): Check popup_activated () for menu for Xt also.
304 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
305 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
306 ButtonRelease.
6b2c4bd9
J
307 (x_set_window_size_1): scroll_bar_actual_width is always
308 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
309
310 * xdisp.c (pending_menu_activation): Remove extern declaration.
311 (prepare_menu_bars): Remove setting of pending_menu_activation.
312
313 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
314 (x_activate_menubar): Set popup_activated_flag for Xt also.
315 Remove setting of pending_menu_activation.
cf28cebc
J
316 (set_frame_menubar): Remove check of pending_menu_activation.
317 Declare menubar_size before code. Correct spelling in comment.
318
f6c1c771
KH
3192010-07-14 Kenichi Handa <handa@m17n.org>
320
321 * font.c (font_open_entity): Cancel previous change.
322 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
323
20477505
EZ
3242010-07-13 Eli Zaretskii <eliz@gnu.org>
325
77defa9a
EZ
326 Remove subprocesses #ifdefs.
327 * process.c <inhibit_sentinels>: Move to the common part.
328 (Fwaiting_for_user_input_p): Move to the common part; return nil
329 if async subprocesses aren't supported.
330 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
331 MS-DOS. Remove "#ifdef subprocesses".
332 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
333 (gettimeofday): Remove "#ifdef subprocesses".
334 (wait_without_blocking): Remove function.
335 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
336 Remove "#ifdef subprocesses".
337 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
338 compiled on MS-DOS.
339 * callproc.c (Fcall_process) [!MSDOS]: Don't call
340 wait_for_termination on MS-DOS.
341 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
342 initialization of inhibit_sentinels.
343 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
344 subprocesses" conditional.
345 * callproc.c (Fcall_process) [!subprocesses]: Don't call
346 wait_for_termination, since `buffer' cannot be an integer when
347 async subprocesses are not supported
348 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
349 for ifdefing away the call to Fprocess_status.
350
20477505
EZ
351 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
352 away the entire body of the function.
353
b3ffc17c
DN
3542010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
355
01faa934
DN
356 Remove subprocesses #ifdefs from term.c.
357 * process.c (add_keyboard_wait_descriptor)
358 (delete_keyboard_wait_descriptor): Move to common section, do
359 nothing when subprocesses is not defined.
a628ad9d
JB
360 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
361 Remove subprocesses #ifdefs.
01faa934 362
b3ffc17c
DN
363 Convert maybe_fatal to standard C.
364 * lisp.h (verror): Declare.
365 * eval.c (verror): New function containing the code from ...
366 (error): ... this. Call verror.
367 * term.c (vfatal): New function containing the code from ...
368 (fatal): ... this. Call vfatal.
369 (maybe_fatal): Convert to standard C, use variable number of
370 arguments. Declare as non-return.
371 (init_tty): Fix maybe_fatal call.
372
0521f580
DN
3732010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
374
375 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
376 (_scroll_bar_note_movement): Convert definitions to standard C.
377 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
378 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
379
ebd15611
DN
3802010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
381
382 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
383 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
384 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
385 (xaw_jump_callback, xaw_scroll_callback)
386 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
387 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
388 definitions to standard C.
389 * xmenu.c (menubar_id_to_frame, popup_get_selection)
390 (popup_activate_callback, popup_deactivate_callback)
391 (menu_highlight_callback, menubar_selection_callback)
392 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
393 (free_frame_menubar, popup_selection_callback, as)
394 (create_and_show_popup_menu, dialog_selection_callback)
395 (create_and_show_dialog):
396 * xfns.c (hack_wm_protocols, x_window):
397 * xfaces.c (x_update_menu_appearance):
398 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
399 (char_to_pixel_size, round_size_to_char, get_wm_shell)
400 (set_frame_size, update_wm_hints, setup_frame_gcs)
401 (update_various_frame_slots, update_from_various_frame_slots)
402 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
403 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
404 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
405
de06a2dd
AS
4062010-07-12 Andreas Schwab <schwab@linux-m68k.org>
407
a628ad9d 408 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 409
fc549af9
EZ
4102010-07-12 Eli Zaretskii <eliz@gnu.org>
411
412 * process.c (setup_process_coding_systems): Move to the part
413 shared by non-subprocesses systems, and make its body empty when
414 subprocesses is not defined.
415 (close_process_descs): Move to the part shared by non-subprocesses
416 systems.
1408902e
EZ
417 (wait_reading_process_output) [!subprocesses]: Convert arg list to
418 ANSI C.
fc549af9 419
d5a3eaaf
AS
4202010-07-12 Andreas Schwab <schwab@linux-m68k.org>
421
422 * editfns.c (transpose_markers): Convert old-style definition.
423 * emacs.c (abort, shut_down_emacs, fixup_locale)
424 (synchronize_system_time_locale)
425 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
426 * floatfns.c (extract_float, matherr, init_floatfns)
427 (syms_of_floatfns): Likewise.
428 * fns.c (make_hash_table): Likewise.
429 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
430 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
431 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
432 (ftfont_variation_glyphs): Likewise.
433 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
434 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
435 * lread.c (read_filtered_event): Likewise.
436 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
437 * process.c (wait_reading_process_output): Likewise.
438 * scroll.c (do_line_insertion_deletion_costs): Likewise.
439 * search.c (search_buffer, boyer_moore): Likewise.
440 * syntax.c (scan_sexps_forward): Likewise.
441 * xdisp.c (try_scrolling): Likewise.
442 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
443 (face_at_string_position): Likewise.
444 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
445 * xselect.c (x_get_window_property, receive_incremental_selection)
446 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
447 Likewise.
448 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
449
6f704c76
DN
4502010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
451
ded80a25
DN
452 * callproc.c (child_setup): Remove subprocesses conditional.
453 Remove code dealing with SET_EMACS_PRIORITY, unused.
454
49d937f4 455 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
456 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
457
458 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
459 (__do_global_dtors, __main): Use void in definition.
460 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
461 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
462 the only users from ...
463 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
464 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
465 (HAVE_VOLATILE): Remove, unused.
466
6f704c76
DN
467 Convert more function definitions to standard C.
468 * xdisp.c (window_box_edges, handle_single_display_spec)
469 (display_string): Convert definition to standard C.
470 * scroll.c (do_direct_scrolling, scrolling_1):
471 * dispnew.c (allocate_matrices_for_frame_redisplay)
472 (mirrored_line_dance):
473 * coding.c (code_convert_string):
474 * charset.c (map_charset_chars):
475 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
476 (Fregister_ccl_program, Fregister_code_conversion_map):
477 * keyboard.c (kbd_buffer_nr_stored): Likewise.
478 (head_table): Make static and const.
479
e6cfa7c3
AS
4802010-07-12 Andreas Schwab <schwab@linux-m68k.org>
481
482 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
483 (PROFILING_LDFLAGS): Set from substitution.
484 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
485 CFLAGS last.
486
892dd565
KH
4872010-07-12 Kenichi Handa <handa@m17n.org>
488
6f2cdcd1
KH
489 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
490 (shortlisp): Likewise.
491
892dd565
KH
492 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
493
494 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
495 of FONT_ENTITY_INDEX.
496 (Ffont_get): If KEY is :otf and the font-object doesn't have the
497 property, get the property value dynamically.
498 (Ffont_put): Accept font-entity and font-object too.
499 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
500 return value changed.
501 (syms_of_font): Adjusted for the above change.
502
ae96d47a
AS
5032010-07-11 Andreas Schwab <schwab@linux-m68k.org>
504
c8fc18ee
AS
505 * blockinput.h: Remove obsolete comment.
506
89887d67
AS
507 * lisp.h: Include <stddef.h>.
508 (OFFSETOF): Don't define.
509 (VECSIZE): Use offsetof instead of OFFSETOF.
510 (PSEUDOVECSIZE): Likewise.
511 * process.c (conv_sockaddr_to_lisp): Likewise.
512 * alloc.c: Don't include <stddef.h>.
513 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
514
ae96d47a
AS
515 * process.c: Remove obsolete comment.
516
635c0aa1
CY
5172010-07-11 Chong Yidong <cyd@stupidchicken.com>
518
519 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
520
a64df650
AS
5212010-07-11 Andreas Schwab <schwab@linux-m68k.org>
522
8966b757
AS
523 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
524 index, rindex.
525 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
526 * editfns.c (Fuser_full_name, Fformat): Likewise.
527 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
528 * fileio.c (Ffile_symlink_p): Likewise.
529 * filelock.c (current_lock_owner): Likewise.
530 * font.c (font_parse_name, font_parse_family_registry): Likewise.
531 * fontset.c (fontset_pattern_regexp): Likewise.
532 * lread.c (read1): Likewise.
533 * sysdep.c (init_system_name): Likewise.
534 * xfns.c (select_visual): Likewise.
535 * s/hpux10-20.h (index, rindex): Don't define.
536 * s/ms-w32.h (index): Likewise.
537 * s/usg5-4.h: Likewise.
538
cf237e27
AS
539 * callproc.c (relocate_fd): Use F_DUPFD if defined.
540
a8fe7202
AS
541 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
542 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
543 (egetenv): Likewise.
544 * doprnt.c (doprnt): Likewise.
545 * editfns.c (set_time_zone_rule, format2): Likewise.
546 * emacs.c (decode_env_path): Likewise.
547 * eval.c (signal_error, error): Likewise.
548 * insdel.c (replace_range_2): Likewise.
549 * keyboard.c (cmd_error_internal): Likewise.
550 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
551 * print.c (write_string, write_string_1, print_error_message):
552 Likewise.
553 * vm-limit.c (warn_function, memory_warnings): Likewise.
554 * xdisp.c (message1, message1_nolog, message_with_string)
555 (vmessage, message, message_nolog): Likewise.
556 * emacs.c: Remove duplicate declaration.
557 * keyboard.h: Likewise.
558 * lisp.h: Update prototypes.
559
bb8e180f
AS
560 * eval.c: Fix indentation problem.
561
83380e65
AS
562 * keyboard.c: Include "process.h"
563
a64df650
AS
564 * eval.c: Remove obsolete noinline declaration.
565 * fns.c: Likewise.
566
6a8033e1
KR
5672010-07-11 Ken Raeburn <raeburn@raeburn.org>
568
569 * doprnt.c (doprnt): Take a va_list argument instead of count and
570 pointer.
571 * eval.c (error): Change to a standard-C variadic function.
572 * xdisp.c (vmessage): Renamed from message, made static, and
573 changed to take a va_list argument.
574 (message): New variadic wrapper.
575 (message_nolog): Now a variadic function, calling vmessage.
576 * lisp.h: Include stdarg.h for va_list.
577 (doprnt, error, message, message_nolog): Decls updated.
578
462aa963
EZ
5792010-07-11 Eli Zaretskii <eliz@gnu.org>
580
581 * process.c (syms_of_process) <delete-exited-processes>: Define
582 even if !subprocesses.
583 (delete_exited_processes): Ditto.
584
585 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
586 (delete_exited_processes): Don't define.
587
48104462
CY
5882010-07-10 Chong Yidong <cyd@stupidchicken.com>
589
590 * frame.c (make_frame): Initialize menu_bar_lines and
591 tool_bar_lines members.
592 (make_initial_frame, make_terminal_frame): Initialize
593 menu_bar_lines using value of menu-bar-mode.
594
595 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
596
f388c88a
EZ
5972010-07-10 Eli Zaretskii <eliz@gnu.org>
598
599 * process.c: Reshuffle #include's. Condition some of the global
600 and static variables on `subprocesses'.
601 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
602 Leave only one implementation.
603 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
604 (kill_buffer_processes, Flist_system_processes)
605 (Fprocess_attributes, init_process, syms_of_process): Unify the
606 implementations for with subprocesses and without them.
607
723f5a07
J
6082010-07-09 Jan Djärv <jan.h.d@swipnet.se>
609
610 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
611 correct size for Motif.
612 (free_frame_menubar): Call x_set_window_size to update frame size.
613
614 * xfns.c (x_window): Set borderWidth to 0 for pane and
615 EmacsFrame. Frame size calculation is wrong otherwise.
616
2536a4b7
MA
6172010-07-09 Michael Albinus <michael.albinus@gmx.de>
618
619 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
620 allows to suppress errors when polling in Emacs' main loop.
621 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
622 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
623 (Fdbus_method_error_internal, Fdbus_send_signal)
624 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
625 (Fdbus_register_method): Use it. (Bug#6579)
626
5842a27b
DN
6272010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
628
629 * alloc.c: Convert DEFUNs to standard C.
630 * buffer.c:
631 * bytecode.c:
632 * callint.c:
633 * callproc.c:
634 * casefiddle.c:
635 * casetab.c:
636 * category.c:
637 * character.c:
638 * charset.c:
639 * chartab.c:
640 * cmds.c:
641 * coding.c:
642 * composite.c:
643 * data.c:
644 * dbusbind.c:
645 * dired.c:
646 * dispnew.c:
647 * doc.c:
648 * dosfns.c:
649 * editfns.c:
650 * emacs.c:
651 * eval.c:
652 * fileio.c:
653 * filelock.c:
654 * floatfns.c:
655 * fns.c:
656 * font.c:
657 * fontset.c:
658 * frame.c:
659 * fringe.c:
660 * image.c:
661 * indent.c:
662 * insdel.c:
663 * keyboard.c:
664 * keymap.c:
665 * lread.c:
666 * macros.c:
667 * marker.c:
668 * menu.c:
669 * minibuf.c:
670 * msdos.c:
671 * nsfns.m:
672 * nsmenu.m:
673 * nsselect.m:
674 * print.c:
675 * process.c:
676 * search.c:
677 * sound.c:
678 * syntax.c:
679 * term.c:
680 * terminal.c:
681 * textprop.c:
682 * undo.c:
683 * w16select.c:
684 * w32console.c:
685 * w32fns.c:
686 * w32font.c:
687 * w32menu.c:
688 * w32proc.c:
689 * w32select.c:
690 * window.c:
691 * xdisp.c:
692 * xfaces.c:
693 * xfns.c:
694 * xmenu.c:
695 * xselect.c:
696 * xsettings.c:
697 * xsmfns.c: Likewise.
698
d568829b
EZ
6992010-07-08 Eli Zaretskii <eliz@gnu.org>
700
701 * process.c (kbd_is_on_hold, hold_keyboard_input)
702 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
703
52214050
J
7042010-07-08 Jan Djärv <jan.h.d@swipnet.se>
705
706 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
707 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
708 unless USE_LUCID.
709
313d9eb2
DN
7102010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
711
a628ad9d
JB
712 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
713 declaration.
d8825aa3 714
295d0d8f
DN
715 Clean up include guards.
716 * tparam.c: Remove include guards for config.h, string.h and code
717 that assumes #ifndef emacs.
718 * termcap.c:
719 * unexalpha.c:
720 * sysdep.c:
721 * filemode.c:
722 * filelock.c:
723 * bidi.c: Likewise.
724
49d9e6b0
DN
725 Remove prefix-args.c
726 * prefix-args.c: Remove file.
727 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
728 * Makefile.in (temacs${EXEEXT}): Remove references to
729 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
730 (mostlyclean): Remove reference to prefix-args.
731 (prefix-args): Remove.
732
313d9eb2
DN
733 Simplify cstart_of_data, start_of_code and related code.
734 * mem-limits.h: Remove !emacs and _LIBC conditional code.
735 (start_of_data): Merge into start_of_data function.
736 * sysdep.c (start_of_text): Remove. Move simplified versions of
737 it in the only users: unexaix.c and unexec.c.
738 (read_input_waiting): Remove local declaration of quit_char.
739 (start, etext): Remove declarations.
740 (start_of_data): Merge with the version in mem-limits.h and move
741 to vm-limits.c.
742 * vm-limit.c (start_of_data): Merged and simplified version of the
743 code formerly in mem-limits.h and sysdep.c.
744 * unexec.c (start): New declaration, moved from sysdep.c.
745 (start_of_text): Simplified version of the code formerly in sysdep.c.
746 * unexaix.c (start_of_text): Simplified version of the code
747 formerly in sysdep.c.
748 * m/alpha.h (HAVE_TEXT_START): Remove.
749 (TEXT_START): Move ...
750 * unexalpha.c (TEXT_START): ... here.
751 * s/hpux10-20.h (TEXT_START): Remove.
752 * s/darwin.h (TEXT_START):
753 * m/mips.h (TEXT_START):
754 * m/macppc.h (HAVE_TEXT_START):
755 * m/m68k.h (TEXT_START):
756 * m/iris4d.h (TEXT_START):
757 * m/intel386.h (TEXT_START):
758 * m/ibmrs6000.h (TEXT_START):
759 * m/ia64.h (HAVE_TEXT_START):
760 * s/msdos.h (TEXT_START): Likewise.
761
72af86bd
AS
7622010-07-07 Andreas Schwab <schwab@linux-m68k.org>
763
764 * alloc.c (overrun_check_malloc, overrun_check_realloc)
765 (overrun_check_free, xstrdup, allocate_string)
766 (allocate_string_data, compact_small_strings, Fmake_string)
767 (make_unibyte_string, make_multibyte_string)
768 (make_string_from_bytes, make_specified_string, make_float)
769 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
770 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
771 memcpy, memmove, memset, memcmp.
772 * atimer.c (start_atimer, set_alarm): Likewise.
773 * buffer.c (clone_per_buffer_values, report_overlay_modification)
774 (mmap_realloc, init_buffer_once): Likewise.
775 * callint.c (Fcall_interactively): Likewise.
776 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
777 (getenv_internal_1): Likewise.
778 * casefiddle.c (casify_object): Likewise.
779 * ccl.c (ccl_driver): Likewise.
780 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
781 * charset.c (load_charset_map_from_file)
782 (load_charset_map_from_file, load_charset_map_from_vector)
783 (Fdefine_charset_internal): Likewise.
784 * cm.c (Wcm_clear): Likewise.
785 * coding.c (decode_eol, decode_coding_object)
786 (Fset_coding_system_priority, make_subsidiaries): Likewise.
787 * data.c (Faset): Likewise.
788 * dired.c (directory_files_internal, file_name_completion_stat):
789 Likewise.
790 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
791 (clear_glyph_row, copy_row_except_pointers)
792 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
793 (save_current_matrix, restore_current_matrix)
794 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
795 (mirror_line_dance, scrolling_window): Likewise.
796 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
797 Likewise.
798 * doprnt.c (doprnt): Likewise.
799 * editfns.c (Fuser_full_name, make_buffer_string_both)
800 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
801 * emacs.c (sort_args): Likewise.
802 * eval.c (Fapply, Ffuncall): Likewise.
803 * fileio.c (Ffile_name_directory, make_temp_name)
804 (Fexpand_file_name, search_embedded_absfilename)
805 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
806 (auto_save_error): Likewise.
807 * fns.c (Fstring_equal, Fcopy_sequence, concat)
808 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
809 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
810 (Fmake_hash_table): Likewise.
811 * fringe.c (Fdefine_fringe_bitmap): Likewise.
812 * ftfont.c (ftfont_text_extents): Likewise.
813 * getloadavg.c (getloadavg): Likewise.
814 * image.c (define_image_type, make_image, make_image_cache)
815 (x_create_x_image_and_pixmap, xbm_image_p)
816 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
817 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
818 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
819 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
820 (tiff_image_p, tiff_read_from_memory, gif_image_p)
821 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
822 Likewise.
823 * indent.c (scan_for_column, compute_motion): Likewise.
824 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
825 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
826 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
827 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
828 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
829 (store_user_signal_events, menu_bar_items, tool_bar_items)
830 (process_tool_bar_item, append_tool_bar_item)
831 (read_char_minibuf_menu_prompt, read_key_sequence)
832 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
833 Likewise.
834 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
835 Likewise.
836 * lisp.h (STRING_COPYIN): Likewise.
837 * lread.c (Fload, read1, oblookup): Likewise.
838 * msdos.c (Frecent_doskeys): Likewise.
839 * nsfns.m (Fx_create_frame): Likewise.
840 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
841 Likewise.
842 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
843 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
844 Likewise.
845 * nsmenu.m (ns_update_menubar): Likewise.
846 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
847 * print.c (print_unwind, printchar, strout, print_string)
848 (print_error_message): Likewise.
849 * process.c (conv_lisp_to_sockaddr, set_socket_option)
850 (Fmake_network_process, Fnetwork_interface_list)
851 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
852 (init_process): Likewise.
853 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
854 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
855 Likewise.
856 * scroll.c (do_scrolling, do_direct_scrolling)
857 (scrolling_max_lines_saved): Likewise.
858 * search.c (search_buffer, wordify, Freplace_match): Likewise.
859 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
860 * syntax.c (skip_chars, skip_syntaxes): Likewise.
861 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
862 (emacs_set_tty): Likewise.
863 * term.c (encode_terminal_code, calculate_costs)
864 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
865 Likewise.
866 * termcap.c (tgetst1, gobble_line): Likewise.
867 * termhooks.h (EVENT_INIT): Likewise.
868 * tparam.c (tparam1): Likewise.
869 * unexalpha.c (unexec): Likewise.
870 * unexec.c (write_segment): Likewise.
871 * unexmacosx.c (unexec_write_zero): Likewise.
872 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
873 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
874 * w32font.c (w32font_list_family, w32font_text_extents)
875 (w32font_list_internal, w32font_match_internal)
876 (w32font_open_internal, compute_metrics, Fx_select_font):
877 Likewise.
878 * w32menu.c (set_frame_menubar, add_menu_item)
879 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
880 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
881 * w32uniscribe.c (uniscribe_list_family): Likewise.
882 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
883 * window.c (make_window, replace_window, set_window_buffer)
884 (Fsplit_window): Likewise.
885 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
886 (add_to_log, message3, x_consider_frame_title)
887 (append_space_for_newline, extend_face_to_end_of_line)
888 (decode_mode_spec_coding, init_glyph_string): Likewise.
889 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
890 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
891 (face_attr_equal_p, make_realized_face, make_face_cache)
892 (free_realized_faces, lookup_named_face, smaller_face)
893 (face_with_height, lookup_derived_face)
894 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
895 (Finternal_set_font_selection_order, realize_default_face)
896 (compute_char_face, face_at_buffer_position)
897 (face_for_overlay_string, face_at_string_position, merge_faces):
898 Likewise.
899 * xfns.c (xic_create_fontsetname, Fx_create_frame)
900 (Fx_window_property, x_create_tip_frame)
901 (Fx_backspace_delete_keys_p): Likewise.
902 * xfont.c (xfont_list, xfont_match, xfont_list_family)
903 (xfont_text_extents): Likewise.
904 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
905 * xrdb.c (magic_file_p, x_get_resource): Likewise.
906 * xselect.c (x_queue_event, x_get_window_property)
907 (receive_incremental_selection): Likewise.
908 * xsmfns.c (x_session_check_input): Likewise.
909 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
910 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
911 Likewise.
912 * character.h (BCOPY_SHORT): Removed.
913 * config.in: Regenerate.
914 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
915 * emacs.c (main) [PROFILING]: Don't declare
916 dump_opcode_frequencies.
917 * lisp.h (safe_bcopy): Remove declaration.
918 (memset) [!HAVE_MEMSET]: Declare.
919 (memcpy) [!HAVE_MEMCPY]: Likewise.
920 (memmove) [!HAVE_MEMMOVE]: Likewise.
921 (memcmp) [!HAVE_MEMCMP]: Likewise.
922 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
923 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
924 Don't define.
925 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
926 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
927 (BCOPY_DOWNWARD_SAFE): Don't define.
928 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
929 (memcpy) [!HAVE_MEMCPY]: Define.
930 (memmove) [!HAVE_MEMMOVE]: Define.
931 (memcmp) [!HAVE_MEMCMP]: Define.
932
cb768704
J
9332010-07-07 Jan Djärv <jan.h.d@swipnet.se>
934
935 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
936 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
937 New functions.
cb768704
J
938 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
939 select on empty input mask.
940 (init_process): Initialize kbd_is_on_hold to 0.
941
942 * process.h (hold_keyboard_input, unhold_keyboard_input)
943 (kbd_on_hold_p): Declare.
944
945 * keyboard.c (input_available_signal): Declare.
946 (kbd_buffer_nr_stored): New function.
947 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
948 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
949 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
950 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
951 (tty_read_avail_input): If input is on hold, return.
952 Don't read more that free slots in kbd_buffer (Bug#6571).
953
3a8ce822
EZ
9542010-07-07 Eli Zaretskii <eliz@gnu.org>
955
956 * msdos.h:
957 * msdos.c:
958 * dosfns.c:
959 * w16select.c: Convert function definitions to ANSI C.
960
a628ad9d
JB
961 * msdos.h (ctrl_break_func, install_ctrl_break_check):
962 Remove unused prototypes.
3a8ce822 963
cf84bb53
JB
9642010-07-07 Juanma Barranquero <lekktu@gmail.com>
965
966 * coding.c, sysdep.c: Convert some more functions to standard C.
967
1a4990fb
JB
9682010-07-07 Juanma Barranquero <lekktu@gmail.com>
969
970 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
971 (encode_coding_object): Use SPECPDL_INDEX.
972 (syms_of_coding): Use DOS_NT.
973
c0f2f16b
DN
9742010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
975
48fb6855
DN
976 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
977
c0f2f16b
DN
978 Make the function member of Lisp_Subr use standard C prototypes.
979 * lisp.h (struct Lisp_Subr): Use a union for the function member.
980 (DECL_ALIGN): Add a cast for the function.
981 * eval.c (Feval, Ffuncall): Use the proper type for each type
982 function call.
983
67aecef9
CY
9842010-07-06 Chong Yidong <cyd@stupidchicken.com>
985
986 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
987 fringe face id, so face-remapping-alist works (Bug#6091).
988
b56ceb92
JB
9892010-07-06 Juanma Barranquero <lekktu@gmail.com>
990
991 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
992 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
993 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
994
7af07b96
AS
9952010-07-06 Andreas Schwab <schwab@linux-m68k.org>
996
997 * xterm.c (x_get_keysym_name): Change type of parameter to int.
998 * lisp.h: Declare x_get_keysym_name.
999 * keyboard.c (modify_event_symbol): Don't declare
1000 x_get_keysym_name here.
1001
69e24e34
DN
10022010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1003
1004 * ecrt0.c: Revert conversion to standard C.
1005
d3da34e0 10062010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1007
1008 * vm-limit.c (memory_warnings):
1009 * keyboard.c (modify_event_symbol):
1010 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1011 (round2, emacs_rint):
1012 * process.c (send_process, old_sigpipe): Convert function
1013 definitions and declarations to standard C.
1014
10152010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1016
1017 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1018 * xdisp.c: Convert function definitions to standard C.
1019
1020 * cm.c (cmputc): Arg C is now int, not char.
1021 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1022
00be444c
J
10232010-07-05 James Cloos <cloos@jhcloos.com>
1024
1025 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1026
1027 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1028 _NET_WM_ICON_NAME atoms.
1029
1030 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1031 and _NET_WM_ICON_NAME properties, too, matching what is
1032 done in the Gtk+ case.
1033
e4c8d29a
J
10342010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1035
ff919460
J
1036 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1037
e4c8d29a
J
1038 * xsmfns.c (SSDATA): New macro.
1039 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1040 passed to strlen/strcpy/strcat.
1041 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1042 7:th arg to XChangeProperty to (unsigned char *)
1043
1044 * xsettings.c (something_changedCB, parse_settings)
1045 (apply_xft_settings): Reformat prototype.
1046 (something_changedCB, init_gconf): Remove unused variable i.
1047 (read_settings): Remove unused variable long_len.
1048
1049 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1050 (xg_get_image_for_pixmap, create_dialog)
1051 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1052 (menuitem_highlight_callback, make_menu_item)
1053 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1054 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1055 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1056 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1057 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1058 (xg_tool_bar_item_expose_callback): Reformat prototype.
1059 (xg_update_menubar): GList *group => GSList *group.
1060 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1061 before use.
1062 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1063 to GTK_IMAGE (wimage).
1064
dd4c5104
DN
10652010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1066
898b4c5c
DN
1067 * atimer.c: Use "" instead of <> for local includes for
1068 consistency with the rest of the code.
1069
dd4c5104
DN
1070 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1071 * xrdb.c (get_system_name):
1072 * window.c (shrink_windows):
1073 * syntax.c (forw_comment):
1074 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1075 (ins_del_costs):
1076 * mem-limits.h (start_of_data):
1077 * lread.c (readevalloop):
1078 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1079 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1080 * frame.c (x_get_focus_frame):
1081 * floatfns.c (fmod_float):
1082 * fileio.c (choose_write_coding_system):
1083 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1084 (malloc_initialize_hook, sort_args, synchronize_locale):
1085 * doprnt.c (doprnt):
1086 * dired.c (compile_pattern):
1087 * data.c (fmod_float):
1088 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1089 (map_char_table_for_charset):
1090 * charset.c (define_charset_internal):
1091 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1092 to standard C.
1093
9a39b306 10942010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1095 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1096
1097 * lread.c (read1): Fix up last change to not mess up `c'.
1098
e6cb2cbb
JB
10992010-07-04 Juanma Barranquero <lekktu@gmail.com>
1100
1101 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1102
438105ed
JB
11032010-07-04 Juanma Barranquero <lekktu@gmail.com>
1104
1105 Fix prototypes.
1106
e5447b22 1107 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1108 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1109 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1110 arg, as required by internal_condition_case_1.
dcc7404b 1111 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1112 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1113 (analyse_first): Fix "const const".
e5447b22 1114 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1115 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1116 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1117
971de7fb
DN
11182010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1119
1120 * alloc.c: Convert function definitions to standard C.
1121 * atimer.c:
1122 * bidi.c:
1123 * bytecode.c:
1124 * callint.c:
1125 * callproc.c:
1126 * casefiddle.c:
1127 * casetab.c:
1128 * category.c:
1129 * ccl.c:
1130 * character.c:
1131 * charset.c:
1132 * chartab.c:
1133 * cmds.c:
1134 * coding.c:
1135 * composite.c:
1136 * data.c:
1137 * dbusbind.c:
1138 * dired.c:
1139 * dispnew.c:
1140 * doc.c:
1141 * doprnt.c:
1142 * ecrt0.c:
1143 * editfns.c:
1144 * fileio.c:
1145 * filelock.c:
1146 * filemode.c:
1147 * fns.c:
1148 * font.c:
1149 * fontset.c:
1150 * frame.c:
1151 * fringe.c:
1152 * ftfont.c:
1153 * ftxfont.c:
1154 * gtkutil.c:
1155 * indent.c:
1156 * insdel.c:
1157 * intervals.c:
1158 * keymap.c:
1159 * lread.c:
1160 * macros.c:
1161 * marker.c:
1162 * md5.c:
1163 * menu.c:
1164 * minibuf.c:
1165 * prefix-args.c:
1166 * print.c:
1167 * ralloc.c:
1168 * regex.c:
1169 * region-cache.c:
1170 * scroll.c:
1171 * search.c:
1172 * sound.c:
1173 * strftime.c:
1174 * syntax.c:
1175 * sysdep.c:
1176 * termcap.c:
1177 * terminal.c:
1178 * terminfo.c:
1179 * textprop.c:
1180 * tparam.c:
1181 * undo.c:
1182 * unexelf.c:
1183 * window.c:
1184 * xfaces.c:
1185 * xfns.c:
1186 * xfont.c:
1187 * xftfont.c:
1188 * xgselect.c:
1189 * xmenu.c:
1190 * xrdb.c:
1191 * xselect.c:
1192 * xsettings.c:
1193 * xsmfns.c:
1194 * xterm.c: Likewise.
1195
ae492bec
EZ
11962010-07-03 Eli Zaretskii <eliz@gnu.org>
1197
76ea4cc9
EZ
1198 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1199 frames other than the initial one. Fix reversal of colors when
1200 `reverse' is specified in the frame parameters. Call
1201 update_face_from_frame_parameter instead of
1202 internal-set-lisp-face-attribute. Initialize screen colors from
1203 initial_screen_colors[] when f->default_face_done_p is zero,
1204 instead of depending on being called with default-frame-alist as
1205 the alist argument.
1206
1207 * xfaces.c (update_face_from_frame_parameter): Move out of
1208 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1209 with HAVE_WINDOW_SYSTEM.
1210
1e6255ae
EZ
1211 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1212 to menu-bar-mode, if not set in the frame parameters or in
1213 default-frame-alist.
1214
ae492bec
EZ
1215 * w32console.c (sys_tputs): Adjust argument list to prototype in
1216 term.c.
1217
3a35a84c
JB
12182010-07-03 Juanma Barranquero <lekktu@gmail.com>
1219
1220 * lisp.h (memory_warnings): Fix prototype.
1221
1222 * cm.h (evalcost): Fix prototype.
1223
1224 * cm.c (evalcost): Fix arg type.
1225
c532d349
DN
12262010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1227
1228 * term.c (term_clear_mouse_face, Fidentity):
1229 * syssignal.h (signal_handler_t):
1230 * lisp.h (memory_warnings):
1231 * coding.h (preferred_coding_system):
1232 * cm.h (evalcost):
1233 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1234
c0b36d46
EZ
12352010-07-02 Eli Zaretskii <eliz@gnu.org>
1236
1237 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1238 from prototypes.
1239
1240 * msdos.h (load_pixmap): Don't define away.
1241
383e0970
J
12422010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1243
f57e2426
J
1244 * lisp.h:
1245 * atimer.h: Remove define for P_.
1246
1247 * alloc.c: Remove __P and P_ from .c and .m files.
1248 * atimer.c:
1249 * buffer.c:
1250 * callint.c:
1251 * category.c:
1252 * charset.c:
1253 * chartab.c:
1254 * cm.c:
1255 * coding.c:
1256 * composite.c:
1257 * data.c:
1258 * dired.c:
1259 * dispnew.c:
1260 * doc.c:
1261 * editfns.c:
1262 * emacs.c:
1263 * eval.c:
1264 * fileio.c:
1265 * filelock.c:
1266 * fns.c:
1267 * font.c:
1268 * fontset.c:
1269 * frame.c:
1270 * ftfont.c:
1271 * ftxfont.c:
1272 * gmalloc.c:
1273 * gtkutil.c:
1274 * image.c:
1275 * indent.c:
1276 * intervals.c:
1277 * keyboard.c:
1278 * keymap.c:
1279 * lread.c:
1280 * marker.c:
1281 * menu.c:
1282 * minibuf.c:
1283 * print.c:
1284 * process.c:
1285 * scroll.c:
1286 * search.c:
1287 * sound.c:
1288 * strftime.c:
1289 * syntax.c:
1290 * sysdep.c:
1291 * term.c:
1292 * terminal.c:
1293 * textprop.c:
1294 * unexalpha.c:
1295 * w32console.c:
1296 * w32fns.c:
1297 * w32font.c:
1298 * w32menu.c:
1299 * w32term.c:
1300 * w32uniscribe.c:
1301 * window.c:
1302 * xdisp.c:
1303 * xfaces.c:
1304 * xfns.c:
1305 * xfont.c:
1306 * xftfont.c:
1307 * xmenu.c:
1308 * xselect.c:
1309 * xterm.c: Likewise.
1310
383e0970 1311 Remove P_ and __P macros.
f57e2426
J
1312 * atimer.h: Remove P_ and __P macros.
1313 * buffer.h:
383e0970
J
1314 * category.h:
1315 * ccl.h:
1316 * character.h:
1317 * charset.h:
1318 * cm.h:
1319 * coding.h:
1320 * composite.h:
1321 * dispextern.h:
1322 * disptab.h:
9e892c8d 1323 * dosfns.h:
383e0970
J
1324 * font.h:
1325 * fontset.h:
1326 * frame.h:
1327 * gtkutil.h:
1328 * indent.h:
1329 * intervals.h:
1330 * keyboard.h:
1331 * keymap.h:
1332 * lisp.h:
1333 * macros.h:
1334 * md5.h:
1335 * menu.h:
1336 * msdos.h:
1337 * nsterm.h:
1338 * puresize.h:
1339 * region-cache.h:
1340 * syntax.h:
1341 * syssignal.h:
1342 * systime.h:
1343 * termhooks.h:
9e892c8d 1344 * w32font.h:
383e0970
J
1345 * w32term.h:
1346 * widget.h:
1347 * window.h:
1348 * xgselect.h:
1349 * xsettings.h:
1350 * xterm.h: Likewise.
1351
98601119
DN
13522010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1353
d9170db5
DN
1354 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1355
98601119
DN
1356 Cleanup old code.
1357 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1358 * syssignal.h: Remove code for Lynx, not supported anymore.
1359 * vm-limit.c: Remove unused code the depends on emacs not being
1360 defined and NO_LIM_DATA being defined.
1361 * mem-limits.h: Remove dead code.
1362
1f984e12
J
13632010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1364
c49d071a
J
1365 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1366
9d5405ec
J
1367 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1368 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1369
7a18115b
J
1370 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1371 parameters, they are already absolute.
1372
a628ad9d
JB
1373 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1374 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1375
a628ad9d 1376 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1377
a628ad9d
JB
1378 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1379 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1380
a628ad9d
JB
1381 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1382 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1383
c1ef4455
CY
13842010-06-30 Chong Yidong <cyd@stupidchicken.com>
1385
1386 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1387 check default-frame-alist.
1388
ce8f5a9a
AS
13892010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1390
1391 * process.c (create_process): Avoid using invalid file descriptors.
1392
1393 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1394
bf935339
J
13952010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1396
1397 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1398 Improve documentation. Return font regardless of use_system_font.
1399 (syms_of_xsettings): Improve documentation for font-use-system-font.
1400
7c33a057
CY
14012010-07-10 Chong Yidong <cyd@stupidchicken.com>
1402
2ec1b5ee
CY
1403 * xfaces.c (realize_face): Garbage the frame if a face is removed
1404 (Bug#6593).
1405
14062010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1407
1408 * keyboard.c: Remove duplicate <setjmp.h>.
1409 (read_key_sequence): Remove volatile qualifiers.
1410
14112010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1412
1413 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1414 (struct glyph_row): New members left_fringe_offset and
1415 right_fringe_offset.
1416
1417 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1418 specially.
1419 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1420 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1421
1422 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1423 Take account of bitmap offset.
2ec1b5ee
CY
1424 (draw_window_fringes): Take account of window vscroll.
1425 (update_window_fringes): Likewise. Extend top-aligned top indicator
1426 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1427 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1428 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1429
14302010-07-04 Juanma Barranquero <lekktu@gmail.com>
1431
1432 * w32fns.c (Qtooltip): Declare.
1433 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1434
14352010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1436
1437 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1438 grab on just Press (Bug#6499).
1439
14402010-07-02 Chong Yidong <cyd@stupidchicken.com>
1441
1442 * frame.c (Qtooltip): New var.
1443 (delete_frame): Use it. Fix faulty if statement. Don't update
1444 mode line for tooltip frames. Suggested by Martin Rudalics.
1445
1446 * xfns.c (x_create_tip_frame):
1447 * w32fns.c (x_create_tip_frame): Use it.
1448
14492010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1450
1451 * xftfont.c (xftfont_open): Check font width one by one also when
1452 spacing is dual.
1453
1454 * ftfont.c (ftfont_open): Ditto.
1455
6259c2ec
GM
14562010-06-30 Glenn Morris <rgm@gnu.org>
1457
a46007e9
GM
1458 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1459
6259c2ec
GM
1460 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1461
1462 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1463 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1464 * s/darwin.h (SYSTEM_MALLOC):
1465 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1466
5d1d3d04
J
14672010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1468
1469 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1470 (ns_get_screen): Don't assign integer to f.
1471 (Fx_display_color_cells): Declarations before statements.
1472
e547b051
J
14732010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1474
5fc8e5bc
J
1475 * xfns.c (x_default_font_parameter): Remove got_from_system
1476 (Bug#6526).
1477
e547b051
J
1478 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1479 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1480 defines based on what configure finds.
1481
1482 * xterm.c (XTflash): Use gtk_widget_get_window.
1483 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1484 gtk_adjustment_get_page_size.
1485 (handle_one_xevent): Use gtk_widget_get_mapped.
1486 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1487 messages.
1488
1489 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1490
1491 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1492 HAVE_GTK_FILE_SELECTION_NEW.
1493
1494 * gtkutil.c (xg_display_open, xg_display_close): Remove
1495 HAVE_GTK_MULTIDISPLAY, it is always defined.
1496 (xg_display_open): Return type is void.
1497 (gtk_widget_set_has_window)
1498 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1499 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1500 (gtk_adjustment_set_page_increment)
1501 (gtk_adjustment_get_step_increment): #define these if not found
1502 by configure.
1503 (remove_submenu): New define based on Gtk+ version.
1504 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1505 gtk_widget_get_window.
1506 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1507 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1508 (create_dialog): Use gtk_dialog_get_action_area and
1509 gtk_dialog_get_content_area.
1510 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1511 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1512 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1513 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1514 g_object_ref and g_object_unref.
1515 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1516 gtk_widget_get_sensitive.
1517 (xg_update_submenu): Use remove_submenu.
1518 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1519 properties instead to get old x and y position.
1520 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1521 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1522 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1523 (xg_get_tool_bar_widgets): New function.
1524 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1525 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1526 (toolbar_set_orientation): New #define based on if configure
1527 finds gtk_orientable_set_orientation.
1528 (xg_create_tool_bar): Call toolbar_set_orientation.
1529 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1530 instead of gtk_box_pack_start_defaults.
1531
b9229673
CY
15322010-06-28 Chong Yidong <cyd@stupidchicken.com>
1533
1534 * cmds.c (Fdelete_backward_char): Move into Lisp.
1535
bbc803b0
DN
15362010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1537
1538 * s/freebsd.h (BSD4_2): Remove redundant definition.
1539 bsd-common.h defines it already.
1540
6431f2e6
CY
15412010-06-27 Chong Yidong <cyd@stupidchicken.com>
1542
1543 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1544 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1545 tool-bar-mode, which are now set using these X resources at
1546 startup, to determine the defaults (Bug#2249).
1547
1548 * w32fns.c (Fx_create_frame):
1549 * nsfns.m (Fx_create_frame): Likewise.
1550
1551 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1552
8c079ebb
JB
15532010-06-24 Juanma Barranquero <lekktu@gmail.com>
1554
1555 * gtkutil.c (xg_update_scrollbar_pos):
1556 Avoid C99 mid-block variable declaration.
1557
e9b7ab96
JD
15582010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1559
bc869eca
JD
1560 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1561
2b7e356a 1562 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1563
1564 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1565 if height is less than scroll bar min size.
1566 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1567
e9b7ab96
JD
1568 * xfns.c (x_default_font_parameter): Try to open font from system
1569 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1570
a628ad9d 15712010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1572
1573 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1574
70c4cfbb
EZ
15752010-06-20 Eli Zaretskii <eliz@gnu.org>
1576
1577 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1578 most-positive-fixnum, be extra accurate when scrolling window
1579 start, to avoid missing the cursor line.
1580
ad5a12b5
EZ
15812010-06-19 Eli Zaretskii <eliz@gnu.org>
1582
1583 * xdisp.c (try_scrolling): Compute the limit for searching point
1584 in forward scroll from scroll_max, instead of an arbitrary limit
1585 of 10 screen lines. See
1586 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1587 and
1588 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1589 for details.
1590
2a64315a 15912010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1592
1593 * editfns.c (Fbyte_to_string): Pacify compiler.
1594
288cf4e9
SM
15952010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1596
1597 * lread.c (read1): Phase out old-style backquotes a bit more.
1598
6e6e5760
EZ
15992010-06-12 Eli Zaretskii <eliz@gnu.org>
1600
cbc4fd20
EZ
1601 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1602 bidimirror.h.
1603
1604 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1605
317fbf33
EZ
1606 * bidi.c (bidi_initialize): Remove explicit initialization of
1607 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1608 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1609 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1610
1611 * biditype.h: New file.
1612
cbc4fd20
EZ
1613 * bidimirror.h: New file.
1614
6e6e5760
EZ
1615 * window.c (syms_of_window): Doc fix (bug#6409).
1616
4176cba2
RF
16172010-06-12 Romain Francoise <romain@orebokech.com>
1618
1619 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1620 ediff-hook.
1621
cb4bfcb5
GM
16222010-06-10 Glenn Morris <rgm@gnu.org>
1623
64c60c2f
GM
1624 * editfns.c (Fbyte_to_string): Pacify compiler.
1625
cb4bfcb5
GM
1626 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1627
2ec1b5ee
CY
16282010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1629
1630 * alloc.c (Fmake_byte_code): Don't access undefined argument
1631 (Bug#6517).
1632
16332010-06-25 Chong Yidong <cyd@stupidchicken.com>
1634
1635 * xdisp.c (next_element_from_image): Ensure that after-strings are
1636 read the next time we hit handle_stop (Bug#1336).
1637
16382010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1639
1640 * lread.c (read1): Signal error if #s is not followed by paren.
1641
16422010-06-19 Chong Yidong <cyd@stupidchicken.com>
1643
1644 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1645
1646 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1647
16482010-06-15 Glenn Morris <rgm@gnu.org>
1649
1650 * editfns.c (Fbyte_to_string): Pacify compiler.
1651
e454a4a3
SM
16522010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1653
1654 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1655 Check `object's type before accessing its guts.
1656
c1b1acc2
DN
16572010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1658
1659 * s/usg5-4.h: Fix previous change.
1660 Suggested by Lawrence Mitchell <wence@gmx.li>
1661
657d4c0b
AS
16622010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1663
1664 * minibuf.c (Fall_completions): Add more checks.
1665
9b27fd9f
JB
16662010-06-08 Juanma Barranquero <lekktu@gmail.com>
1667
1668 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1669
a99ebb40
DN
16702010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1671
d7c5d87d
DN
1672 * lread.c (X_OK): Remove, unused.
1673
0263a941
DN
1674 * dispnew.c: Remove obsolete comment.
1675
a99ebb40
DN
1676 Remove INCLUDED_FCNTL.
1677 * xterm.c (INCLUDED_FCNTL):
1678 * callproc.c (INCLUDED_FCNTL):
1679 * alloc.c (INCLUDED_FCNTL):
1680 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1681 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1682
13b5221f
MR
16832010-06-07 Martin Rudalics <rudalics@gmx.at>
1684
1685 * window.c (Fselect_window): Move `record_buffer' up to the
1686 beginning of this function, so the buffer gets recorded
1687 even if the selected window does not change.
1688 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1689
5220357f
JB
16902010-06-07 Juanma Barranquero <lekktu@gmail.com>
1691
1692 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1693 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1694
3085237c
DN
16952010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1696
1697 Remove BSTRING related code, all platforms define it.
1698 * s/usg5-4.h (BSTRING): Remove definition.
1699 * s/template.h (BSTRING):
1700 * s/msdos.h (BSTRING):
1701 * s/ms-w32.h (BSTRING):
1702 * s/hpux10-20.h (BSTRING):
1703 * s/gnu-linux.h (BSTRING):
1704 * s/darwin.h (BSTRING):
1705 * s/cygwin.h (BSTRING):
1706 * s/bsd-common.h (BSTRING):
1707 * s/aix4-2.h (BSTRING): Likewise.
1708 * sysdep.c: Remove code depending on BSTRING not being defined.
1709
409f2919
JB
17102010-06-05 Juanma Barranquero <lekktu@gmail.com>
1711
1712 Remove obsolete macro BASE_LEADING_CODE_P.
1713 * character.h (BASE_LEADING_CODE_P): Remove.
1714 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1715 * buffer.c (Fset_buffer_multibyte):
1716 * indent.c (scan_for_column, compute_motion):
1717 * insdel.c (count_combining_before, count_combining_after):
1718 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1719
087fc47a
JB
17202010-06-04 Juanma Barranquero <lekktu@gmail.com>
1721
1722 Turn `directory-sep-char' into a noop.
1723
1724 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1725 (DIRECTORY_SEP): Define unconditionally.
1726
1727 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1728
1729 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1730 call dostounix_filename directly.
1731
1732 * fileio.c (CORRECT_DIR_SEPS): Remove.
1733 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1734 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1735 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1736 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1737
1738 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1739 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1740
0eb7675e
AS
17412010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1742
a628ad9d
JB
1743 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
1744 (Bug#6346)
0eb7675e 1745
78edd3b7
JB
17462010-06-03 Juanma Barranquero <lekktu@gmail.com>
1747
1748 * ccl.c (Fccl_program_p): Fix typo in docstring.
1749
eb697db5
DN
17502010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1751
1752 Move UNEXEC definition to autoconf.
1753 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1754 * s/sol2-10.h (UNEXEC):
1755 * s/irix6-5.h (UNEXEC):
1756 * s/hpux10-20.h (UNEXEC):
1757 * s/gnu-linux.h (UNEXEC):
1758 * s/darwin.h (UNEXEC):
1759 * s/cygwin.h (UNEXEC):
1760 * s/bsd-common.h (UNEXEC):
1761 * s/aix4-2.h (UNEXEC):
1762 * m/alpha.h (UNEXEC): Likewise.
1763 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1764
aa3830c4
JB
17652010-06-03 Juanma Barranquero <lekktu@gmail.com>
1766
1767 Remove obsolete pre-unicode2 macros.
1768 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1769 * composite.c (composition_reseat_it):
1770 * data.c (Faset):
1771 * fns.c (Ffillarray):
1772 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1773 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1774
d234d13e
JL
17752010-06-03 Juri Linkov <juri@jurta.org>
1776
1777 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1778 (Fswitch_to_buffer): Remove unused variable `err'.
1779
0d4bcf4d
GM
17802010-06-03 Glenn Morris <rgm@gnu.org>
1781
e23dc1e2
GM
1782 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1783
05b09564
GM
1784 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1785 now that AH_BOTTOM does it.
1786
824e2978
GM
1787 * m/hp800.h (HAVE_ALLOCA):
1788 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1789
0d4bcf4d
GM
1790 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1791 Remove NOT_C_CODE tests, it is always true now.
1792
c55d2abf
DN
17932010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1794
08a494a3
DN
1795 Fix config.h includes.
1796 * xsettings.c:
1797 * xgselect.c:
1798 * nsterm.m:
1799 * nsselect.m:
1800 * nsimage.m:
1801 * nsfont.m:
1802 * nsfns.m:
1803 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1804 other files do.
1805
75934b1d
DN
1806 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1807
9f32a766
DN
1808 * s/sol2-6.h: Remove obsolete comments.
1809
c55d2abf
DN
1810 Remove unnecessary alloca.h includes.
1811 * keymap.c: Do not include alloca.h, config.h does that.
1812 * sysdep.c: Likewise. Do not define fwrite, not used.
1813
06ac62b4
SM
18142010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1815
1816 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1817 the HAVE_TERMIO where it belongs (bug#6149).
1818
1ab8293c
SM
18192010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1820
1821 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1822 of bug#6305).
1823
6dcfd253
EZ
18242010-05-30 Eli Zaretskii <eliz@gnu.org>
1825
1826 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1827 state is always cached (bug#6306).
1828
6d26bbb2
EZ
18292010-05-29 Eli Zaretskii <eliz@gnu.org>
1830
06fa4a23
EZ
1831 Fix cursor motion in bidi-reordered continued lines.
1832 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1833 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1834 over continuation lines in bidi-reordered buffers. Return
1835 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1836 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1837
f5783df3
MA
18382010-05-28 Michael Albinus <michael.albinus@gmx.de>
1839
1840 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1841
7d56b2dd
KH
18422010-05-28 Kenichi Handa <handa@m17n.org>
1843
1844 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1845 Don't sheck SPEC if it is nil.
1846 (font_list_entities): Call font_delete_unmatched if
b925d231 1847 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1848
e58d4ff7
GM
18492010-05-28 Glenn Morris <rgm@gnu.org>
1850
1851 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1852
f1a5d776
CY
18532010-05-27 Chong Yidong <cyd@stupidchicken.com>
1854
1855 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1856 whether to trash.
1857 (internal_delete_file, Frename_file): Callers changed.
1858 (delete_by_moving_to_trash): Doc fix.
1859 (Fdelete_directory_internal): Don't move to trash.
1860
1861 * callproc.c (delete_temp_file):
1862 * buffer.c (Fkill_buffer): Callers changed.
1863
1864 * lisp.h: Update prototype.
1865
f44a59e6
CY
18662010-05-27 Chong Yidong <cyd@stupidchicken.com>
1867
1868 * xdisp.c (redisplay_window): After redisplay, check if point is
1869 still valid before setting it (Bug#6177).
1870
81ac4f35
GM
18712010-05-27 Glenn Morris <rgm@gnu.org>
1872
1873 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1874 Convert comments to Makefile format.
1875
1876 * Makefile.in (bootstrap-clean): No more Makefile.c.
1877
ccd89fb3
GM
18782010-05-26 Glenn Morris <rgm@gnu.org>
1879
90278cb6
GM
1880 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1881 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1882
ccd89fb3
GM
1883 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1884 Remove.
1885 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1886
b7050583
KH
18872010-05-26 Kenichi Handa <handa@m17n.org>
1888
1889 * composite.c (composition_compute_stop_pos): Fix condition for
1890 backward scanning.
1891
e5458003
GM
18922010-05-25 Glenn Morris <rgm@gnu.org>
1893
c345fe90
GM
1894 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1895 Move before TEMACS_LDFLAGS.
1896 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1897 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1898
2e0689ab
GM
1899 * Makefile.in (NOT_C_CODE): No longer define.
1900 (config.h): No longer include.
1901
8009a5e8
GM
1902 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1903 variables it may reference.
1904
e5458003
GM
1905 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1906 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1907
10f72a37
KH
19082010-05-25 Kenichi Handa <handa@m17n.org>
1909
1910 * dispextern.h (struct composition_it): New members rule_idx and
1911 charpos.
1912
1913 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1914 that the character positions of IT point the last character of the
1915 current grapheme cluster.
1916 (next_element_from_composition): Don't change character positions
1917 of IT.
1918 (append_composite_glyph): Set glyph->charpos to
1919 it->cmp_it.charpos.
1920
1921 * composite.c (autocmp_chars): Change the first argument to RULE,
1922 and try composition with RULE only.
1923 (composition_compute_stop_pos): Record the index number of the
1924 composition rule in CMP_IT->rule_idx.
1925 (composition_reseat_it): Call autocmp_chars repeatedly until the
1926 correct rule of the composition is found.
1927 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1928 is at the last character of the current grapheme cluster when
1929 CMP_IT->reversed_p is nonzero.
1930
171eda53 19312010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1932
171eda53
SM
1933 * editfns.c (Fbyte_to_string): New function.
1934
66a9f7f4
SM
19352010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1936
1937 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1938 Suggested by Masatake YAMATO <yamato@redhat.com>.
1939
d8c315d1
EZ
19402010-05-23 Eli Zaretskii <eliz@gnu.org>
1941
171eda53 1942 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1943
f5b416d2 19442010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1945
1946 * s/netbsd.h: If terminfo is found, use it in preference to
1947 termcap. (Bug#6190) [Backport from trunk]
1948
0416466c
EZ
19492010-05-19 Eli Zaretskii <eliz@gnu.org>
1950
11117830 1951 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1952
1953 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1954 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1955 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1956 and maxpos members instead of start.pos and end.pos, respectively.
1957
1958 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1959 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1960 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1961 (try_window_reusing_current_matrix, try_window_id):
1962 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1963 (init_from_display_pos, init_iterator): Use EMACS_INT for
1964 character and byte positions.
66a9f7f4 1965 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1966 arguments for minimum and maximum buffer positions seen by
1967 display_line for this row. Don't use iterator to find the
1968 position following the maximum one; instead, increment the
11117830
EZ
1969 position found by display_line directly. Fix logic; eol_pos
1970 should be tested before the rest. Handle the case of characters
1971 delivered from display vector (bug#6036). Fix tests related to
1972 it->method. Handle the truncated_on_right_p rows.
1973 (RECORD_MAX_MIN_POS): New macro.
1974 (display_line): Use it to record the minimum and maximum buffer
1975 positions for glyphs in the row being assembled. Record the
1976 position of the newline that terminates the line. If word wrap is
1977 in effect, restore minimum and maximum positions seen up to the
1978 wrap point, when iterator returns to it.
1979 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1980 row and cursor not already at point. Restore original pre-bidi
1981 code for unidirectional buffers.
d36fe237
EZ
1982
1983 * dispnew.c (increment_row_positions, check_matrix_invariants):
1984 Increment and check row->start.pos and row->end.pos, in addition
1985 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1986
11117830
EZ
1987 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1988 Display truncated_on_left_p and truncated_on_right_p flags.
1989 Formatting fixes.
1990 (pmtxrows): Display the ordinal number of each row. Don't display
1991 rows beyond the last one.
1992
1993 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1994 it is not copied by bidi_copy_it.
1995
6e83d800
EZ
19962010-05-22 Eli Zaretskii <eliz@gnu.org>
1997
1998 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1999 (Bug#6237)
2000
110683ad
CY
20012010-05-22 Chong Yidong <cyd@stupidchicken.com>
2002
2003 * image.c (Fimage_flush): Rename from image-refresh.
2004
98fe5161
CY
20052010-05-21 Chong Yidong <cyd@stupidchicken.com>
2006
2007 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2008 just one window.
2009
2010 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2011 (clear_image_cache): If the number of cached images is unusually
2012 large, decrease the cache eviction delay (Bug#6230).
2013
e8752c66
GM
20142010-05-21 Glenn Morris <rgm@gnu.org>
2015
66dbf213
GM
2016 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2017 Move these rules to ns.mk.
2018 * ns.mk: New file.
2019
04384b2d
GM
2020 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2021
e8752c66
GM
2022 * Makefile.in (CANNOT_DUMP): New, set by configure.
2023 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2024
2e2bbddb
JL
20252010-05-20 Juri Linkov <juri@jurta.org>
2026
2027 * fileio.c (Fdelete_file): Change interative spec to use
2028 `read-file-name' like in `find-file-read-args' where the default
2029 value is `default-directory' instead of `buffer-file-name'.
2030 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2031
31c4aaf6
KR
20322010-05-20 Kevin Ryde <user42@zip.com.au>
2033
2034 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2035 (Voverriding_terminal_local_map, Vsystem_key_alist)
2036 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2037
9d5cf9b6
GM
20382010-05-20 Glenn Morris <rgm@gnu.org>
2039
2040 * Makefile.in (DEPDIR): New constant.
2041 (DEPFLAGS): Set with configure, not cpp.
2042 (MKDEPDIR): New, set by configure.
2043 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2044 (clean): Use $DEPDIR.
2045 (deps_frag): Include from configure.
2046 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2047 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2048
ead6f8f5
EZ
2049 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2050 reallocation of the cache. (Bug#6210)
2051
7f34aec3
GM
20522010-05-19 Glenn Morris <rgm@gnu.org>
2053
d494e8f2
GM
2054 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2055
c1d0dcfd
GM
2056 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2057 (GNULIB_VAR): Remove.
2058 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2059
2060 * m/ibms390x.h (LINKER):
2061 * m/macppc.h (LINKER) [GNU_LINUX]:
2062 * s/aix4-2.h (ORDINARY_LINK):
2063 * s/cygwin.h (LINKER):
2064 * s/darwin.h (ORDINARY_LINK):
2065 * s/gnu.h (ORDINARY_LINK):
2066 * s/netbsd.h (LINKER):
2067 * s/usg5-4.h (ORDINARY_LINK):
2068 Move to configure.
2069
7f34aec3
GM
2070 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2071
754790b6
CY
20722010-05-18 Chong Yidong <cyd@stupidchicken.com>
2073
2074 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2075 prevent stack overflow if number of arguments is too large
2076 (Bug#6214).
2077
161e44d1
JB
20782010-05-18 Juanma Barranquero <lekktu@gmail.com>
2079
2080 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2081
be4ff9da
GM
20822010-05-18 Glenn Morris <rgm@gnu.org>
2083
9539dc5d
GM
2084 * s/gnu-linux.h: Combine two conditionals.
2085
2086 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2087 $(POST_ALLOC_OBJ).
2088
40dc6bf4
GM
2089 * Makefile.in (RALLOC_OBJ): New, set by configure.
2090 (rallocobj): Replace with the previous variable.
2091 (otherobj): Use $RALLOC_OBJ.
2092
2093 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2094 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2095
be4ff9da
GM
2096 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2097 (gmallocobj, vmlimitobj): Replace with previous two variables.
2098 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2099
16455a85
GM
21002010-05-17 Glenn Morris <rgm@gnu.org>
2101
2102 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2103 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2104
5fdb7468
GM
21052010-05-16 Glenn Morris <rgm@gnu.org>
2106
7ca1f3f9
GM
2107 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2108
7541dad5
GM
2109 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2110
da53fab9
GM
2111 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2112 trailing "/".
2113
b02a6645
GM
2114 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2115 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2116
8877ca0f
GM
2117 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2118 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2119 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2120 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2121 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2122
5fdb7468
GM
2123 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2124 Remove ${STARTFLAGS}, nothing ever sets it.
2125
95adb4b1
DN
21262010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2127
2128 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2129
676b6304
GM
21302010-05-16 Glenn Morris <rgm@gnu.org>
2131
9beab9ce
GM
2132 * Makefile.in (LIBX_BASE): Always define.
2133
8a95f0e7
GM
2134 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2135
676b6304
GM
2136 * Makefile.in (LIBXT): Always define.
2137
6e546d18
GM
21382010-05-15 Glenn Morris <rgm@gnu.org>
2139
4235ca47 2140 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2141
6e546d18
GM
2142 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2143 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2144
8c5ff6dd
KR
21452010-05-15 Ken Raeburn <raeburn@raeburn.org>
2146
560bb7ae 2147 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2148 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2149
8b4eb796
KR
2150 * emacs.c (main): Initialize initial-environment and
2151 process-environment before generating from env, not after.
2152
8c5ff6dd
KR
2153 Handle --version reasonably in CANNOT_DUMP configuration.
2154 * emacs.c (emacs_version, emacs_copyright): New string variables.
2155 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2156 (syms_of_emacs): Defvar them, and initialize them from the C
2157 string variables.
2158 (main): If initialization hasn't been done, print initial version
2159 info from the C strings, instead of starting an interactive session.
2160
dbd3f723
EZ
21612010-05-15 Eli Zaretskii <eliz@gnu.org>
2162
d20e1419
EZ
2163 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2164 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2165 (bidi_paragraph_init): Remove redundant assertion that we are at
2166 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2167
2168 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2169 (syms_of_xdisp): Defsubr it.
2170
d36fe237
EZ
2171 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2172
dbd3f723
EZ
2173 * Makefile.in: Fix MSDOS-related comments.
2174
02be533b
GM
21752010-05-15 Glenn Morris <rgm@gnu.org>
2176
1a82cca9
GM
2177 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2178 (really-lwlib, really-oldXMenu): Always define.
2179 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2180
3df7b338
GM
2181 * Makefile.in: Simplify cpp conditional.
2182
2b5f541b
GM
2183 * Makefile.in (${ns_appdir}): Simplify using umask.
2184
02be533b
GM
2185 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2186
4e2db1fe
SM
21872010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2188
2189 * eval.c (specbind): Remove left-over duplicate test.
2190 Disallow let-binding frame-local vars. Add comment.
2191
4b292a22
EZ
21922010-05-14 Eli Zaretskii <eliz@gnu.org>
2193
2fe72643 2194 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2195 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2196 (bidi_init_it): Call it.
2197 (bidi_cache_iterator_state): Enlarge the cache if needed.
2198
4e2db1fe 2199 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2200 bidi_get_next_char_visually. All callers changed.
2201
82ebc97b
KH
22022010-05-14 Kenichi Handa <handa@m17n.org>
2203
2204 * dispextern.h (struct composition_it): New member reversed_p.
2205
2206 * composite.c (composition_compute_stop_pos): Search backward if
2207 ENDPOS < CHARPOS.
2208 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2209 Set CMP_IT->reversed_p.
b4b6e17e 2210 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2211
4e2db1fe
SM
2212 * xdisp.c (set_iterator_to_next):
2213 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2214 scanning backward. Call composition_compute_stop_pos if scan
2215 direction is changed.
2216 (next_element_from_buffer): Call composition_compute_stop_pos with
2217 negative ENDPOS if we are scanning backward.
2218 (next_element_from_composition): Pay attention to
2219 IT->cmp_it.reversed_p.
2220
0e5d7800
KH
22212010-05-14 Kenichi Handa <handa@m17n.org>
2222
560bb7ae 2223 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2224
cb027b32
GM
22252010-05-14 Glenn Morris <rgm@gnu.org>
2226
177b0288
GM
2227 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2228
fbc00890
GM
2229 * Makefile.in (mktime, X11, register): Move undefs to configure.
2230
f14d1dfd
GM
2231 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2232 (MSDOS_X_OBJ): New variable.
2233 (MSDOS_SUPPORT_REAL): New constant.
2234 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2235 (obj): Use MSDOS_X_OBJ.
2236 (lisp): Use MSDOS_SUPPORT as a variable.
2237
11842bd8
GM
2238 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2239 (GPM_MOUSE_SUPPORT): Now it's a constant.
2240 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2241 not cpp.
2242
489d31a4 2243 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2244 (ns_appresdir): Remove, unused.
e20f1f07 2245
489d31a4
GM
2246 * Makefile.in (SHELL): Move outside cpp section.
2247
cb027b32
GM
2248 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2249
5a903aa9
GM
22502010-05-13 Glenn Morris <rgm@gnu.org>
2251
3369c79f
GM
2252 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2253 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2254
d5e982a6
GM
2255 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2256 HAVE_WINDOW_SYSTEM must be too.
2257
6192e163
GM
2258 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2259 (lisp): Remove WINNT_SUPPORT.
2260
472c5d6b
GM
2261 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2262 Let configure set these variables (to empty) in this case as well.
2263
0116466b
GM
2264 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2265 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2266
5a903aa9
GM
2267 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2268 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2269 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2270 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2271 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2272 the values output by configure.
5a903aa9
GM
2273 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2274
1a0d7c06
GM
22752010-05-12 Glenn Morris <rgm@gnu.org>
2276
b5457f14
GM
2277 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2278 (LINKER_WAS_SPECIFIED): Remove.
2279
1a0d7c06
GM
2280 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2281 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2282 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2283 * s/cygwin.h (LIB_GCC):
2284 * s/freebsd.h (LIB_GCC):
2285 * s/gnu-linux.h (LIB_GCC):
2286 * s/msdos.h (LIB_GCC):
2287 * s/netbsd.h (LIB_GCC):
2288 Move to configure.
2289
3ffd4615 22902010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2291
2292 * ftfont.c: Fix incorrect parentheses of #if condition for
2293 definining M17N_FLT_USE_NEW_FEATURE.
2294
acddf8ae
GM
22952010-05-11 Glenn Morris <rgm@gnu.org>
2296
2297 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2298 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2299
ae5e04fa
EZ
23002010-05-10 Eli Zaretskii <eliz@gnu.org>
2301
2302 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2303 unibyte buffers. See
2304 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2305
7490175b
GM
23062010-05-10 Glenn Morris <rgm@gnu.org>
2307
97efb629
GM
2308 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2309 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2310 (LIBES): Use LIBS_SYSTEM as a variable.
2311 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2312 * s/aix4-2.h (LIBS_SYSTEM):
2313 * s/freebsd.h (LIBS_SYSTEM):
2314 * s/hpux10-20.h (LIBS_SYSTEM):
2315 * s/sol2-6.h (LIBS_SYSTEM):
2316 * s/unixware.h (LIBS_SYSTEM):
2317 Move to configure.
2318
7490175b
GM
2319 * s/aix4-2.h (MAIL_USE_LOCKF):
2320 * s/bsd-common.h (MAIL_USE_FLOCK):
2321 * s/darwin.h (MAIL_USE_FLOCK):
2322 * s/gnu-linux.h (MAIL_USE_FLOCK):
2323 * s/irix6-5.h (MAIL_USE_FLOCK):
2324 * s/template.h (MAIL_USE_FLOCK):
2325 Move to configure.
2326
0235128c 23272010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2328
2329 * Version 23.2 released.
2330
0235128c 23312010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2332
2333 * composite.c (autocmp_chars): Save point as marker before calling
2334 auto-composition-function (Bug#5984).
2335
2336 * lisp.h (restore_point_unwind): Add prototype.
2337
2338 * fileio.c (restore_point_unwind): Remove static attribute.
2339
0235128c 23402010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2341
2342 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2343 new feature of libotf and m17n-flt.
0235128c
SM
2344 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2345 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2346 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2347 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2348 that OUT is NULL. Use OTF_drive_gsub_with_log and
2349 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2350 OTF_drive_gpos.
2351 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2352 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2353 Setup mflt_enable_new_feature and mflt_try_otf.
2354
4721152c
J
23552010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2356
2357 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2358
2359 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2360 box and toolbar (Bug #6139).
2361 (xg_create_tool_bar): Remove comment (Bug #6139).
2362 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2363 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2364
ee0a16cf
JB
23652010-05-08 Juanma Barranquero <lekktu@gmail.com>
2366
2367 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2368 Update dependencies.
2369
96d79611
EZ
23702010-05-08 Eli Zaretskii <eliz@gnu.org>
2371
2372 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2373 R2L lines.
2374
40c17879
GM
23752010-05-08 Glenn Morris <rgm@gnu.org>
2376
7b42b29f
GM
2377 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2378
40c17879
GM
2379 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2380 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2381 (termcapobj): Replace with TERMCAP_OBJ.
2382 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2383 (LIBES): Use LIBS_TERMCAP as a variable.
2384
2385 * s/freebsd.h (osreldate.h): No longer include, since this file
2386 does not use __FreeBSD_version any more.
2387
2388 * s/aix4-2.h (TERMINFO):
2389 * s/cygwin.h (TERMINFO):
2390 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2391 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2392 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2393 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2394 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2395 * s/irix6-5.h (TERMINFO):
2396 * s/netbsd.h (LIBS_TERMCAP):
2397 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2398 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2399 * s/usg5-4.h (TERMINFO):
2400 Move to configure.
2401
94b612ad
SM
24022010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2403
2404 * eval.c (unbind_to): Don't unbind a local binding into the global
2405 binding when the local binding disappeared. Inversely, don't unbind
2406 a global binding into a newly created local binding.
2407 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2408 can specify the frame to use, when applicable. Adjust callers.
2409
15e12598 24102010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2411 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2412
2413 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2414
f724825e
EZ
24152010-05-07 Eli Zaretskii <eliz@gnu.org>
2416
5cba3209
EZ
2417 * w32fns.c: Include w32.h.
2418 (Fw32_shell_execute): Decode the error message before passing it
2419 to `error'. (Bug#6126)
2420
d16bdfc3
EZ
2421 * msdos.c (dos_set_window_size):
2422 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2423 instead of `XSYMBOL (foo)->value'.
2424
59d93e87
EZ
24252010-05-07 Eli Zaretskii <eliz@gnu.org>
2426
9fdec8bc
EZ
2427 Fix the MS-DOS build, broken by autoconfiscation.
2428
2429 * Makefile.in: Don't use Make-style comments past the "start of
2430 cpp stuff" line.
2431 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2432
2433 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2434 edited directly by msdos/sed1v2.inp).
f724825e 2435
2f86b22b
GM
24362010-05-07 Glenn Morris <rgm@gnu.org>
2437
2438 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2439 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2440 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2441 move out of cpp section.
2442 * s/freebsd.h (LD_SWITCH_SYSTEM):
2443 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2444 * s/netbsd.h (LD_SWITCH_SYSTEM):
2445 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2446
49ebbd65
DN
24472010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2448
2449 Define LIB_STANDARD and START_FILES using autoconf.
2450 * s/usg5-4.h (LIB_STANDARD):
2451 * s/netbsd.h (START_FILES):
2452 * s/irix6-5.h (LIB_STANDARD):
2453 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2454 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2455 * s/freebsd.h (START_FILES):
2456 * s/darwin.h (START_FILES):
2457 * s/cygwin.h (START_FILES):
2458 * s/aix4-2.h (LIB_STANDARD):
2459 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2460 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2461 autoconf, not cpp.
2462
d43c06d6
DN
24632010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2464
28823648
DN
2465 Remove NEED_BSDTTY and NEED_UNISTD_H.
2466 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2467 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2468 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2469 <sys/ptyio.h> and <unistd.h>.
2470
aca00430
DN
2471 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2472
d43c06d6
DN
2473 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2474 * s/gnu.h (START_FILES): Remove empty definition.
2475
3e56b11d
JD
24762010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2477
2478 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2479
e3cf0cde
GM
24802010-05-06 Glenn Morris <rgm@gnu.org>
2481
2482 * Makefile.in (CPP, LN_S): Remove unused variables.
2483
774b9a60
SM
24842010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2485
2486 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2487
4ab92842
LM
24882010-05-05 Lawrence Mitchell <wence@gmx.li>
2489
2490 * m/sparc.h: Fix typo in earlier change.
2491
178f2507
SM
24922010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2493
2494 Misc tweaks.
2495 * eval.c (Fdefvaralias): Remove unintended nested if.
2496 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2497
80f00217 24982010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2499
2500 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2501
ef03a4e6
DN
25022010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2503
58eb6cf0
DN
2504 Remove BSD_PGRPS.
2505 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2506 * s/gnu-linux.h (BSD_PGRPS): Remove.
2507 * term.c (dissociate_if_controlling_tty):
2508 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2509 (init_sys_modes, reset_sys_modes):
2510 * emacs.c (main):
2511 * callproc.c (Fcall_process, child_setup): Remove code depending
2512 on BSD_PGRPS.
2513
ef03a4e6
DN
2514 Remove POSIX_SIGNALS.
2515 * s/usg5-4.h (POSIX_SIGNALS):
2516 * s/netbsd.h (POSIX_SIGNALS):
2517 * s/msdos.h (POSIX_SIGNALS):
2518 * s/ms-w32.h (POSIX_SIGNALS):
2519 * s/hpux11.h (POSIX_SIGNALS):
2520 * s/gnu.h (POSIX_SIGNALS):
2521 * s/gnu-linux.h (POSIX_SIGNALS):
2522 * s/freebsd.h (POSIX_SIGNALS):
2523 * s/darwin.h (POSIX_SIGNALS):
2524 * s/cygwin.h (POSIX_SIGNALS):
2525 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2526 * s/unixware.h:
2527 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2528 * process.c (create_process):
2529 * syssignal.h:
2530 * sysdep.c (wait_for_termination, init_signals):
2531 * process.c (create_process):
2532 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2533 remove all code that assumes the contrary.
2534
49628785
GM
25352010-05-04 Glenn Morris <rgm@gnu.org>
2536
27a2cdfc
GM
2537 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2538 variable.
2539 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2540 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2541 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2542 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2543 LD_SWITCH_SYSTEM_tmp.
2544 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2545 New variables, set by configure.
2546
eb21eab5
GM
2547 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2548 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2549 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2550 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2551 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2552
49628785
GM
2553 * s/aix4-2.h (C_SWITCH_SYSTEM):
2554 * m/alpha.h (C_SWITCH_MACHINE):
2555 Move to configure.in.
2556 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2557 New variables, set by configure.
2558 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2559 $c_switch_machine and $c_switch_system.
2560
7dff330b
DN
25612010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2562
2563 * s/hpux10-20.h (LIB_STANDARD): New definition.
2564 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2565 on it, not used anymore.
2566
53967e09
CY
25672010-05-03 Chong Yidong <cyd@stupidchicken.com>
2568
2569 * eval.c (internal_condition_case_n): Rename from
2570 internal_condition_case_2.
2571 (internal_condition_case_2): New function.
2572
2573 * xdisp.c (safe_call): Use internal_condition_case_n.
2574
2575 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2576 (internal_delete_file, Frename_file): Callers changed.
2577
2578 * buffer.c (Fkill_buffer):
2579 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2580
2581 * lisp.h: Update prototypes.
2582
3dee6fdb
GM
25832010-05-03 Glenn Morris <rgm@gnu.org>
2584
2585 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2586 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2587 (LIBXT): Set with configure, not cpp.
2588 (LIBX): Remove.
2589 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2590
a101e0fb
DN
25912010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2592
2593 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2594 The FreeBSD is not needed, the default works, Solaris version is
2595 not needed, and the remaining case is not supported by configure.
2596
f63d0028
JD
25972010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2598
2599 * xsmfns.c (CHDIR_OPT): New define.
2600 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2601 restarting emacs.
2602
2603 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2604 shut_down_emacs.
2605
2606 * emacs.c (USAGE1): Mention --chdir.
2607 (main): Handle --chdir.
2608 (standard_args): Add --chdir.
2609 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2610 #5552).
2611
e4814a9f
DN
26122010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2613
cd03c74a
DN
2614 Remove LD_SWITCH_MACHINE.
2615 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2616 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2617
c3a398a1
DN
2618 Clean up IRIX code.
2619 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2620 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2621
87e7285c
DN
2622 Clean up AIX code.
2623 * m/ibmrs6000.inp: Remove file, unused.
2624 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2625 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2626 definition ...
2627 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2628
80f00217
JB
2629 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2630 unused.
e4814a9f 2631
59ca28de
EZ
26322010-05-01 Eli Zaretskii <eliz@gnu.org>
2633
197daef4
EZ
2634 Emulate POSIX_SIGNALS on MS-Windows.
2635
2636 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2637 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2638
2639 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2640 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2641 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2642
80f00217
JB
2643 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2644 New stubs.
197daef4 2645
af7c7572
EZ
2646 Miscellaneous fixes of bidi display.
2647
59ca28de
EZ
2648 * xdisp.c (find_row_end): New function, refactored from display_line.
2649 (display_line): Use it.
017ea819
EZ
2650 (extend_face_to_end_of_line): In almost-filled rows, extend only
2651 if the row is R2L and not continued.
166e930d 2652 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2653 Preserve overlay and string info in row->end.
166e930d
EZ
2654 (insert_left_trunc_glyphs): Support addition of left truncation
2655 glyphs to R2L rows.
b47e0dcf 2656 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2657 glyph between adjacent windows. Fix a crash when a display string
2658 is continued to the next line. Don't return zero if cursor was
2659 found by `cursor' property of a display string.
b47e0dcf
EZ
2660 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2661 test for that explicitly.
59ca28de 2662
7acac9f4
GM
26632010-05-01 Glenn Morris <rgm@gnu.org>
2664
2665 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2666 for clarity.
2667 (OTHER_OBJ): Remove.
2668 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2669 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2670
45841e65
KK
26712010-05-01 Karel Klíč <kklic@redhat.com>
2672
2673 * fileio.c (Ffile_selinux_context): Context functions may return null.
2674
afc61943
DN
26752010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2676
80f00217 2677 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2678
5a1bb006
GM
26792010-04-30 Glenn Morris <rgm@gnu.org>
2680
2681 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2682 (OTHER_OBJ): Define as a separate variable, for clarity.
2683
210af043
J
26842010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2685
2686 * xsettings.c: include limits.h and update file comment.
2687
0a7df391
GM
26882010-04-30 Glenn Morris <rgm@gnu.org>
2689
d5096f16
GM
2690 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2691 Set with configure, not cpp.
2692 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2693
7eb1ac33
GM
2694 * Makefile.in (mallocobj): Remove.
2695 (otherobj): Simplify using @OTHER_OBJ@.
2696
517d086b
GM
2697 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2698 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2699 Don't bother making nsgui.h dependency platform-specific.
2700
0a7df391
GM
2701 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2702
d6d23852
SM
27032010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2704
d2630aef
SM
2705 * process.c (read_process_output, exec_sentinel): Don't burp if the
2706 sentinel/filter kills the current buffer (bug#6060).
2707
f9dddf52 2708 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2709 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2710 Remove unused var `args'.
2711 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2712 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2713 * doc.c (store_function_docstring): Use XSETCAR.
2714
f1e3642a
GM
27152010-04-28 Glenn Morris <rgm@gnu.org>
2716
faf535f8
GM
2717 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2718 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2719
c40f9449
GM
2720 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2721
658f86ca
GM
2722 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2723 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2724
bc0b5f61
GM
2725 * Makefile.in (FONT_OBJ): New, set by configure.
2726 (FONT_DRIVERS): Use $FONT_OBJ.
2727
294c50a0
GM
2728 * Makefile.in (LIBXMU): Set with configure, not cpp.
2729 * s/aix4-2.h (LIBXMU):
2730 * s/hpux10-20.h (LIBXMU):
2731 Remove definition, now set in configure.
2732
e6ec4e99
GM
2733 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2734
f1e3642a
GM
2735 * m/amdx86-64.h [i386]: Move this test to configure.in.
2736
c6ea2936
GM
27372010-04-27 Glenn Morris <rgm@gnu.org>
2738
8fdac2c3
GM
2739 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2740 * s/unixware.h (NEED_LIBW): Remove definition.
2741
986fb647
GM
2742 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2743 (TOOLKIT_LIBW): New, set by configure.
2744 (@X_TOOLKIT_TYPE@): No longer define it.
2745
c6ea2936
GM
2746 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2747 (MOTIF_LIBW): Set with configure, not cpp.
2748 * s/aix4-2.h (LIB_MOTIF):
2749 * s/gnu-linux.h (LIB_MOTIF):
2750 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2751
aaa36002
DN
27522010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2753
2754 Reduce CPP usage.
2755 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2756 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2757 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2758 definitions and undefs. Inline definitions in the only user.
2759 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2760
b678dd8b
GM
27612010-04-27 Glenn Morris <rgm@gnu.org>
2762
76cda504
GM
2763 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2764 since the defaults (set by the system file) are fine in most cases.
2765 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2766 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2767 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2768 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2769 Remove definitions, since they are set correctly in s/gnu-linux.h.
2770 * s/freebsd.h (START_FILES, LIB_STANDARD):
2771 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2772 * s/hpux10-20.h (START_FILES):
2773 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2774 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2775
b678dd8b
GM
2776 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2777 (MOTIF_LIBW): Use $LIBXP.
2778 (otherobj): Use $WIDGET_OBJ.
2779
9452ded1
DN
27802010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2781
7e10844c
DN
2782 * Makefile.in (LIBS_MACHINE): Remove, unused.
2783
9452ded1
DN
2784 Use autoconf instead of cpp for LIB_MATH.
2785 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2786 * s/cygwin.h (LIB_MATH): Likewise.
2787 * Makefile.in (LIB_MATH): Do not define with cpp.
2788 (LIBES): Use autoconf for LIB_MATH.
2789
fcebfc6a
KH
27902010-04-26 Kenichi Handa <handa@m17n.org>
2791
2792 * composite.c (Ffind_composition_internal): Fix the return value
2793 for an automatic composition.
2794
39e2ad1b
DN
27952010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2796
2797 Remove all NO_ARG_ARRAY uses.
2798 * fns.c (concat2, concat3, nconc2):
2799 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2800 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2801 * m/xtensa.h (NO_ARG_ARRAY):
2802 * m/template.h (NO_ARG_ARRAY):
2803 * m/sparc.h (NO_ARG_ARRAY):
2804 * m/sh3.h (NO_ARG_ARRAY):
2805 * m/mips.h (NO_ARG_ARRAY):
2806 * m/macppc.h (NO_ARG_ARRAY):
2807 * m/iris4d.h (NO_ARG_ARRAY):
2808 * m/intel386.h (NO_ARG_ARRAY):
2809 * m/ibms390x.h (NO_ARG_ARRAY):
2810 * m/ibms390.h (NO_ARG_ARRAY):
2811 * m/ibmrs6000.h (NO_ARG_ARRAY):
2812 * m/ia64.h (NO_ARG_ARRAY):
2813 * m/hp800.h (NO_ARG_ARRAY):
2814 * m/arm.h (NO_ARG_ARRAY):
2815 * m/amdx86-64.h (NO_ARG_ARRAY):
2816 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2817
adf4f59c
EZ
28182010-04-25 Eli Zaretskii <eliz@gnu.org>
2819
6bdf5d65
EZ
2820 * xdisp.c (display_line): Don't assume 2nd call to
2821 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2822 (iterate_out_of_display_property): New function, body from pop_it.
2823 (pop_it): Use it.
adf4f59c 2824
dfbbda83
GM
28252010-04-24 Glenn Morris <rgm@gnu.org>
2826
2827 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2828 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2829 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2830 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2831
2d4018aa
EZ
28322010-04-24 Eli Zaretskii <eliz@gnu.org>
2833
a49884a6
EZ
2834 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2835 use `get_next_display_element' and `set_iterator_to_next' to
2836 advance to the next character, when looking for the character that
2837 begins the next row.
2838
76db6fcc 2839 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2840 definition of "struct Lisp_Symbol".
2841
70eab5c1
GM
28422010-04-24 Glenn Morris <rgm@gnu.org>
2843
2844 * Makefile.in (CRT_DIR): New variable, set by configure.
2845 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2846 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2847
1ad4cc3d
DN
28482010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2849
e769f484
DN
2850 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2851
4196ff33
DN
2852 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2853
879b0ee4
DN
2854 Remove redundant flags.
2855 * s/freebsd.h (C_SWITCH_SYSTEM):
2856 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2857 * s/netbsd.h (C_SWITCH_SYSTEM):
2858 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2859 of these.
2860
03cbbcb8
DN
2861 Simplify m/intel386.h.
2862 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2863 user: ecrt0.c.
2864 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2865 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2866 the only user: s/unixware.h.
2867 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2868 from m/intel386.h.
2869 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2870 moved here from m/intel386.h.
2871
1ad4cc3d
DN
2872 * m/mips.h: Remove #if 0 code.
2873
8785b888
EZ
28742010-04-23 Eli Zaretskii <eliz@gnu.org>
2875
728588cc
EZ
2876 Fix display of composed characters from L2R scripts in bidi buffers.
2877 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2878 After advancing IT past the composition, resync the bidi iterator
2879 with IT's position. (Bug#5977)
2880
a63f80b4
DN
28812010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2882
2883 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2884 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2885
ff5dec5c
SM
28862010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2887
2888 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2889
8785b888
EZ
28902010-04-23 Eli Zaretskii <eliz@gnu.org>
2891
58ccf243 2892 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2893 * xdisp.c (pop_it): When the stack is popped after displaying
2894 from a string, bidi-iterate to exit from the text portion covered
2895 by the `display' property or overlay. (Bug#5988, bug#5920)
2896
feeb1604
DN
28972010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2898
8e324eb6
DN
2899 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2900 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2901
809fcaba
DN
2902 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2903 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2904
ed710380
DN
2905 Simplify STARTFILES definition.
2906 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2907 relying on Makefile.in to define it.
2908 * s/cygwin.h (START_FILES): Likewise.
2909 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2910
feeb1604
DN
2911 Clean up Solaris code.
2912 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2913 (LIB_MOTIF): Remove, configure takes care of this.
2914 (NOT_USING_MOTIF): Remove, unused.
2915 * xrdb.c: Remove #if 0-ed #include.
2916 (SYSV): Remove conditional for old SysV.
2917 * sysdep.c (closedir): Remove conditional code for Solaris,
2918 Solaris has closedir.
2919
a0d0b563
JD
29202010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2921
2922 * xsettings.c (read_and_apply_settings): Check if current_font is
2923 NULL before strcmp (Bug#6001).
2924
56bae7c7
DN
29252010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2926
2927 Clean up HP-UX files.
2928 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2929 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2930 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2931 * s/hpux10-20.h: ... to the only user, here.
2932
372b7a95
EZ
29332010-04-21 Eli Zaretskii <eliz@gnu.org>
2934
2935 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2936 use buffer-local values of paragraph-start and paragraph-separate.
2937 <paragraph_start_re, paragraph_separate_re>: Rename from
2938 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2939 (Bug#5992)
2940
f904c0f9
JD
29412010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2942
2943 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2944 current_tool_bar_style are new.
2945 (store_config_changed_event): Rename from store_font_changed_event.
2946 (XSETTINGS_TOOL_BAR_STYLE): New define.
2947 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2948 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2949 HAVE_XFT.
2950 (something_changedCB): store_font_changed_event is now
c4cc8b9a 2951 store_config_changed_event.
f904c0f9
JD
2952 (parse_settings): Rename from parse_xft_settings. Read
2953 non-xft xsettings outside #ifdef HAVE_XFT.
2954 (read_settings): Renamed from read_xft_settings.
2955 (apply_xft_settings): Take current settings as parameter. Do not
2956 call read_(xft)_settings.
2957 (read_and_apply_settings): New function.
2958 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2959 read_and_apply_settings if there are settings to be read.
2960 (init_xsettings): Renamed from init_xfd_settings.
2961 Call read_and_apply_settings unconditionally.
2962 (xsettings_initialize): Call init_xsettings.
2963 (Ftool_bar_get_system_style): New function.
2964 (syms_of_xsettings): Define Qmonospace_font_name and
2965 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2966 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2967 dynamic-setting.
31a01b90 2968 Move misplaced HAVE_GCONF
f904c0f9
JD
2969
2970 * xsettings.h (Ftool_bar_get_system_style): Declare.
2971
2972 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2973 Qtext, Qboth, Qboth_horiz are new.
2974 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2975 Vtool_bar_style, tool_bar_max_label_size.
2976
2977 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2978
2979 * keyboard.c: QClabel is new.
2980 (parse_tool_bar_item): Take out QClabel from tool bar items.
2981 Try to construct a label if ther is no QClabel.
2982 (syms_of_keyboard): Intern :label as QClabel.
2983
2984 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2985 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2986 New.
2987
2988 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2989 dynamic-setting.el.
2990
2991 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2992 (xg_make_tool_item, xg_show_toolbar_item): New function.
2993 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2994 Call xg_make_tool_item to make a tool bar item.
2995 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2996
2997 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2998 into account for toolbars.
2999
c632dfda
JD
30002010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3001
3002 * data.c (make_blv): Declarations before code (Bug#5993).
3003
10efe302
GM
30042010-04-21 Glenn Morris <rgm@gnu.org>
3005
3006 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3007 Define using autoconf, not cpp.
3008 (LIBXSM): New variable, set by autoconf.
3009 (LIBXT): Use $LIBXSM.
3010
4285ac5a
DN
30112010-04-21 Dan Nicolaescu <local_user@dannlt>
3012
3ec759e7
DN
3013 Remove NOMULTIPLEJOBS, unused.
3014 * s/template.h (NOMULTIPLEJOBS):
3015 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3016
4285ac5a
DN
3017 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3018 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3019 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3020 detects -znocombreloc and passes it to the linker
3021 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3022
2807228d
GM
30232010-04-21 Glenn Morris <rgm@gnu.org>
3024
3025 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3026
574c05e2
KK
30272010-04-21 Karel Klíč <kklic@redhat.com>
3028
3029 * Makefile.in (LIBSELINUX_LIBS): New.
3030 (LIBES): Add $LIBSELINUX_LIBS.
3031 * eval.c, lisp.h (call7): New function.
3032 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3033 (Ffile_selinux_context, Fset_file_selinux_context):
3034 New functions.
3035 (Fcopy_file): New parameter preserve-selinux-context.
3036 (Frename_file): Preserve selinux context when renaming by copy-file.
3037
91eac4bb 30382010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3039 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3040
50426a04
JB
3041 Don't depend on cm.c or termcap.c on Windows, use stubs.
3042 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3043 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3044 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3045 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3046 (sys_tputs, sys_tgetstr): New stubs.
3047 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3048 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3049
938efb77
JB
30502010-04-20 Juanma Barranquero <lekktu@gmail.com>
3051
3052 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3053
b4bf28b7
SM
30542010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3055
8b1e1112
SM
3056 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3057 Just signal a warning rather than an error when inside a let.
3058 (Fmake_variable_frame_local): Add the same test.
3059
933ac235
SM
3060 * font.c (syms_of_font): Make the style table vars read-only.
3061
b4bf28b7
SM
3062 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3063 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3064
3065 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3066
93d68d0c
EZ
30672010-04-20 Eli Zaretskii <eliz@gnu.org>
3068
3069 Fix R2L paragraph display on TTY.
3070
3071 * xdisp.c (unproduce_glyphs): New function.
3072 (display_line): Use it when produced glyphs are discarded from R2L
3073 glyph rows.
3074 (append_composite_glyph): In R2L rows, prepend the glyph rather
3075 than appending it.
3076
3077 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3078 rather than append it. Set up the resolved_level and bidi_type
3079 attributes of the appended glyph.
283ccc18
EZ
3080 (produce_special_glyphs): Mirror the backslash continuation
3081 character in R2L lines.
93d68d0c 3082
283ccc18 3083 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3084
283ccc18
EZ
3085 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3086 append_stretch_glyph.
3087 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3088 off-by-one error in computing x at end of text in the row.
3089 (append_stretch_glyph): In reversed row, prepend the glyph rather
3090 than append it. Set resolved_level and bidi_type of the glyph.
3091 (extend_face_to_end_of_line): If the row is reversed, prepend a
3092 stretch glyph whose width is such that the rightmost glyph will be
3093 drawn at the right margin of the window. Fix off-by-one error on
3094 TTY frames in testing whether a line needs face extension. Fix
3095 face extension at ZV. If this is the last glyph row, use
3096 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3097 region face.
3098 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3099 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3100 row->continuation_lines_width.
283ccc18
EZ
3101 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3102 are at ZV. Fixes a crash when reseated to ZV by
3103 try_window_reusing_current_matrix.
45903529
EZ
3104 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3105 which happens with R2L glyph rows. Fixes a crash when inserting a
3106 character at end of an R2L line.
283ccc18
EZ
3107 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3108 treat them as having zero-width characters. Improve comments.
3109 Don't reverse pos_before and pos_after for reversed glyph rows.
3110 Set cursor.x to negative value when the cursor might be on the
3111 left fringe.
3112 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3113 left fringe, not the right one.
f951a506
EZ
3114 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3115 (erase_phys_cursor): For reversed cursor_row, support cursor on
3116 the left fringe.
3117
283ccc18
EZ
3118 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3119 of continuation indicators on the fringes.
3120 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3121 left fringe.
3122
f951a506
EZ
3123 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3124 draw cursor on the left fringe.
3125
3126 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3127 cursor on the left fringe.
3128
f951a506
EZ
3129 * dispnew.c (update_text_area): Handle reversed desired rows when
3130 the cursor is on the left fringe.
3131 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3132 below, not by 0, for when the cursor is on the left fringe.
3133
3bb49aaf
JD
31342010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3135
3136 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3137 widget is a scrollbar.
3138
c0be27fd
KH
31392010-04-20 Kenichi Handa <handa@m17n.org>
3140
3141 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3142 only when the arg CHARSET_LIST is nil.
3143
ce5b453a
SM
31442010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3145
3146 Make variable forwarding explicit rather the using special values.
3147 Basically, this makes the structure of buffer-local values and object
3148 forwarding explicit in the type of Lisp_Symbols rather than use
3149 special Lisp_Objects for that. This tends to lead to slightly more
3150 verbose code, but is more C-like, simpler, and makes it easier to make
3151 sure we handled all cases, among other things by letting the compiler
3152 help us check it.
3153 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3154 Removing forwarding objects.
3155 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3156 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3157 explicit rather than hiding them inside Lisp_Object "values".
3158 (XFWDTYPE): New macro.
3159 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3160 (XBUFFER_LOCAL_VALUE): Remove.
3161 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3162 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3163 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3164 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3165 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3166 Remove the Lisp_Misc_* header.
3167 (struct Lisp_Buffer_Local_Value): Redefine.
3168 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3169 (struct Lisp_Misc_Any): Add filler to get the right size.
3170 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3171 Lisp_Intfwd.
3172 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3173 (DEFVAR_KBOARD): Allocate a forwarding object.
3174 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3175 (let_shadows_global_binding_p): New function.
3176 (union Lisp_Val_Fwd): New type.
3177 (make_blv): New function.
3178 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3179 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3180 (swap_in_symval_forwarding, find_symbol_value, Fset)
3181 (let_shadows_buffer_binding_p, set_internal, default_value)
3182 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3183 (Fkill_local_variable, Fmake_variable_frame_local)
3184 (Flocal_variable_p, Flocal_variable_if_set_p)
3185 (Fvariable_binding_locus):
3186 * xdisp.c (select_frame_for_redisplay):
3187 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3188 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3189 * frame.c (store_frame_param):
3190 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3191 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3192 value structure.
3193 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3194 (clone_per_buffer_values): Only adjust markers into the current buffer.
3195 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3196 (Fbuffer_local_value, set_buffer_internal_1)
3197 (swap_out_buffer_local_variables):
3198 Adapt to the new symbol value structure.
3199 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3200 (defvar_per_buffer): Take a new arg for the fwd object.
3201 (buffer_lisp_local_variables): Return a proper alist (different fix
3202 for bug#4138).
3203 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3204 (Fgarbage_collect): Don't handle buffer_defaults specially.
3205 (mark_object): Handle new symbol value structure rather than the old
3206 special Lisp_Misc_* objects.
3207 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3208 * term.c (set_tty_color_mode):
3209 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3210 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3211 a buffer_local_flags.
3212 * print.c (print_object): Get rid of impossible forwarding objects.
3213
fd3998ff
EZ
32142010-04-19 Eli Zaretskii <eliz@gnu.org>
3215
3216 * bidi.c (bidi_get_type, bidi_get_category)
3217 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3218 (bidi_type_of_next_char, bidi_level_of_next_char):
3219 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3220
e42cd1a7
JB
32212010-04-19 Juanma Barranquero <lekktu@gmail.com>
3222
3223 * dired.c (Ffile_attributes): Fix typo in docstring.
3224
6e104790 32252010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3226
3227 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3228 NSInteger (Bug#5811).
3229
6e104790 32302010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3231
3232 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3233 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3234
6e104790 32352010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3236
3237 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3238
6e104790
SM
32392010-04-19 Chong Yidong <cyd@stupidchicken.com>
3240
3241 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3242 terminal frames (Bug#5837).
3243
37dcfea0
EZ
32442010-04-19 Eli Zaretskii <eliz@gnu.org>
3245
d1da276f
EZ
3246 * .gdbinit (xsubchartable): New command.
3247
37dcfea0
EZ
32482010-04-19 Eli Zaretskii <eliz@gnu.org>
3249
3250 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3251 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3252 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3253 and
3254 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3255
e9515805
SM
32562010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3257
3258 * alloc.c (Fpurecopy): Hash-cons if requested.
3259 (syms_of_alloc): Update purify-flag docstring.
3260
22aa44a8
JD
32612010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3262
3263 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3264 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3265
ebb5722e
EZ
32662010-04-17 Eli Zaretskii <eliz@gnu.org>
3267
3268 Fix a crash when an NSM character is inserted at BEGV.
3269
3270 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3271 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3272 NEUTRAL_B or UNKNOWN_BT.
3273
0f4442ef
EZ
32742010-04-16 Eli Zaretskii <eliz@gnu.org>
3275
3276 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3277 other rows with cursor unless they are different from this row and
3278 this row is part of a continued line. (Bug#5943)
3279
7d4e45f8
DN
32802010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3281
3282 * s/freebsd.h: Restore osreldate.h include.
3283 Suggested by Naohiro Aota.
3284
5ba5ec85
J
32852010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3286
3287 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3288
20af301d
CY
32892010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3290
3291 * s/cygwin.h: Avoid linking against static libgcc.
3292
a4b000fb
JL
32932010-04-15 Juri Linkov <juri@jurta.org>
3294
3295 * window.c: Add Qscroll_command.
3296 Remove Vscroll_preserve_screen_position_commands.
3297 (window_scroll_pixel_based, window_scroll_line_based): Check the
3298 `scroll-command' property on the last command instead of searching
3299 the last command in Vscroll_preserve_screen_position_commands.
3300 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3301 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3302 (scroll-preserve-screen-position): Doc fix.
3303 (Vscroll_preserve_screen_position_commands): Remove variable.
3304
bc319ba4
DN
33052010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3306
6bb24457
DN
3307 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3308
19d4c244
DN
33092010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3310
3311 Reduce cpp use in Makefile.in.
3312 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3313 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3314 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3315 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3316 (CRT0_COMPILE): Remove, inline it in the only user.
3317
32129746
JL
33182010-04-14 Juri Linkov <juri@jurta.org>
3319
3320 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3321 `scroll-up-command' and `M-v' from `scroll-down' to
3322 `scroll-down-command'.
3323
9013a7f8
JL
33242010-04-14 Juri Linkov <juri@jurta.org>
3325
3326 * window.c (Vscroll_preserve_screen_position_commands): New variable
3327 with the default value as the list of Qscroll_down and Qscroll_up.
3328 (window_scroll_pixel_based, window_scroll_line_based): Search the
3329 last command in the list Vscroll_preserve_screen_position_commands
3330 instead of comparing with Qscroll_up and Qscroll_down.
3331
4bef8d26
JD
33322010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3333
92848133
JD
3334 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3335 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3336 does that.
3337
4bef8d26
JD
3338 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3339 to zero.
3340
58b963f7
SM
33412010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3342
84164a0d
SM
3343 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3344
2b0a91e7
SM
3345 Try to solve the problem of spurious EOF chars in long lines of text
3346 sent to interactive subprocesses.
3347 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3348 (system_process_attributes): Remove unused var `ttotal'.
3349 * process.c (send_process): Don't bother breaking long line with EOF
3350 chars when talking to ttys any more.
3351 (wait_reading_process_output): Output a warning when called in such
3352 a way that it could block without being interruptible.
3353
58b963f7
SM
3354 Try to detect file modification within the same second.
3355 * buffer.h (struct buffer): New field modtime_size.
3356 * buffer.c (reset_buffer): Initialize it.
3357 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3358 (Fverify_visited_file_modtime): Check it.
3359 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3360 (Fset_visited_file_modtime): Set (or clear) it.
3361
01f5787b
SM
33622010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3363
3364 * process.c (status_notify): Remove unused var `ro'.
3365
83725342
JD
33662010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3367
3368 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3369 more than one visual (Bug#5938).
3370
b9465836
DN
33712010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3372
50426a04
JB
3373 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3374 Undefine.
b9465836 3375
8d9c8ece
DN
33762010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3377
b1f52161
DN
3378 Remove C_SWITCH_SYSTEM_TEMACS.
3379 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3380 (malloc, realloc, free): Use emacs, not temacs for conditional
3381 definition.
3382
3383 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3384 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3385
8d9c8ece
DN
3386 Use autoconf, not cpp for some variables.
3387 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3388 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3389 (ALL_CFLAGS): Use them as make variables.
3390 (really-lwlib, really-oldXMenu): Do not pass them.
3391
1ecb2d3f
JD
33922010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3393
3394 * xmenu.c (apply_systemfont_to_dialog): New.
3395 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3396
3a4fa2f2
SM
33972010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3398
97e53006
SM
3399 * process.c (exec_sentinel): Preserve current-buffer.
3400
3a4fa2f2
SM
3401 * process.c (read_process_output): Move the save-current-buffer to
3402 apply to both the filter and the non-filter branches.
3403
88df7221
DN
34042010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3405
3406 * s/msdos.h (UNEXEC): New definition.
3407
5634ff85
YM
34082010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3409
6eff5c3d
YM
3410 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3411 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3412
3413 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3414 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3415 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3416 TRY_WINDOW_CHECK_MARGINS.
3417
3418 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3419 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3420 width only when it is for padding.
5634ff85 3421
b13aef54
J
34222010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3423
3424 * xfns.c (Fx_show_tip): Call try_window in a loop until
3425 fonts_changed_p is zero (Bug#2423).
3426
21d28484
EZ
34272010-04-08 Eli Zaretskii <eliz@gnu.org>
3428
3429 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3430 the end of TEXT_AREA. (Bug#5856)
3431
0269ef77
JD
34322010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3433
3434 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3435 HAVE_GCONF.
3436
5930fe97
EZ
34372010-04-08 Eli Zaretskii <eliz@gnu.org>
3438
3439 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3440 prev.orig_type, for resolving type of NSM. (Bug#5858)
3441
99852628
JD
34422010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3443
3444 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3445 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3446 in current_font.
3447 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3448 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3449 New functions.
3450 (syms_of_xsettings): Initialize current_font.
3451 defsubr Sfont_get_system_normal_font.
99852628
JD
3452
3453 * xsettings.h (Ffont_get_system_normal_font,
3454 xsettings_get_system_normal_font): Declare.
3455
3456 * xfns.c (extern xlwmenu_default_font): Remove.
3457 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3458 to xlwmenu.c.
3459
3460 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3461 menu items in UTF-8.
3462
3463 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3464 (apply_systemfont_to_menu): New function.
3465 (set_frame_menubar, create_and_show_popup_menu): Call
3466 apply_systemfont_to_menu.
3467
7fc874c4
J
34682010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3469
3470 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3471 FRAME_LINE_TO_PIXEL_Y.
3472
3473 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3474 pixelwidth/height.
3475
863bf481
DN
34762010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3477
5e5a3b92
DN
3478 Simplify code for HP machines.
3479 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3480 for GNU_LINUX, not needed.
3481 (UNEXEC, NEED_BSDTTY): Move definitions...
3482 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3483
863bf481
DN
3484 * m/iris4d.h (UNEXEC): Move definition ...
3485 * s/irix6-5.h (UNEXEC): ... here.
3486
3e6bec3b
JD
34872010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3488
3489 * xfns.c (set_machine_and_pid_properties): New function.
3490 (Fx_create_frame): Call set_machine_and_pid_properties.
3491
2912322b
SM
34922010-04-03 Eli Zaretskii <eliz@gnu.org>
3493
1502b819
EZ
3494 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3495 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3496 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3497
2912322b
SM
3498 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3499 in this function. (Bug#5703)
3500
35012010-04-03 Chong Yidong <cyd@stupidchicken.com>
3502
3503 * nsterm.h: Fix last change.
3504
c435b432
DN
35052010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3506
a568f507
DN
3507 * m/intel386.h (NO_REMAP): Move definition ...
3508 * s/msdos.h (NO_REMAP): ... here.
3509
4cd9f6c2
DN
3510 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3511
c435b432
DN
3512 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3513 used on those platforms.
3514
42a2c622
DN
35152010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3516
3517 Remove extern errno declarations.
3518 * xterm.c:
3519 * xrdb.c:
3520 * w32term.c:
3521 * unexec.c:
3522 * unexaix.c:
3523 * sysdep.c:
3524 * process.c:
3525 * lread.c:
3526 * keyboard.c:
3527 * floatfns.c:
3528 * filelock.c:
3529 * fileio.c:
3530 * emacs.c (main):
3531 * ecrt0.c:
3532 * dispnew.c:
3533 * callproc.c:
3534 * buffer.c: Remove errno extern declarations.
3535 * s/netbsd.h (NEED_ERRNO): Remove.
3536
8224f93d
DN
35372010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3538
3539 Remove all uses of LIBX11_SYSTEM.
3540 * Makefile.in (LIBX11_SYSTEM): Remove.
3541 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3542 instead.
3543
814062c7
EZ
35442010-04-01 Eli Zaretskii <eliz@gnu.org>
3545
ed68db4d
EZ
3546 Remove support for DJGPP v1.x (bug#5813).
3547
3548 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3549 * s/msdos.h:
3550 * unexec.c (make_hdr, copy_text_and_data):
3551 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3552 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3553 (IT_set_terminal_modes, __write, _rename, gethostname)
3554 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3555 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3556 the value of __DJGPP__.
ed68db4d
EZ
3557 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3558 compatibility code.
8224f93d
DN
3559 * lread.c:
3560 * gmalloc.c (memalign):
3561 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3562 * emacs.c (main):
3563 * dosfns.c (init_dosfns):
ed68db4d
EZ
3564 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3565
52f4d8d5
EZ
35662010-04-01 Eli Zaretskii <eliz@gnu.org>
3567
814062c7
EZ
3568 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3569 string with `cursor' property comes from an `after-string'
3570 overlay. (Bug#5816)
3571
0dc2e11d
GM
35722010-04-01 Glenn Morris <rgm@gnu.org>
3573
3574 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3575 Define as Makefile variables.
3576 (LIBX): Use above variables rather than directly using autoconf.
3577
1d29df59
DN
35782010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3579
3580 Clean up BSD_SYSTEM use.
3581 * xterm.c:
3582 * process.c:
3583 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3584 for including <sys/ioctl.h>.
3585 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3586 code is only used for MSDOS.
3587
1546c559
JL
35882010-03-31 Juri Linkov <juri@jurta.org>
3589
3590 * image.c: Add `Qextension_data'.
3591 (syms_of_image): Initialize and staticpro `Qextension_data'.
3592 (Fimage_metadata): Rename from `Fimage_extension_data'.
3593 (gif_load): Put GIF extension data to the property
3594 `Qextension_data'.
3595
6521c534
CY
35962010-03-31 Chong Yidong <cyd@stupidchicken.com>
3597
3598 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3599 * nsterm.h: Fix prototype.
3600
52c30783
EZ
36012010-03-31 Eli Zaretskii <eliz@gnu.org>
3602
3603 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3604 trailing whitespace in right-to-left rows.
3605
855a0da7
SM
36062010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3607
3608 Get rid of the direct_output optimizations.
3609 * keyboard.c (nonundocount): Remove extern declaration.
3610 (command_loop_1): Remove brittle optimisation for cheap and
3611 common operations.
3612 * xdisp.c (redisplay_internal): Don't bother checking
3613 redisplay_performed_directly_p any more.
3614 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3615 any more.
3616 * dispnew.c (redisplay_performed_directly_p)
3617 (direct_output_for_insert, direct_output_forward_char):
3618 * dispextern.h (redisplay_performed_directly_p)
3619 (direct_output_for_insert, direct_output_forward_char): Remove.
3620 * cmds.c (nonundocount): Make it static.
3621
85738751 36222010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3623
3624 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3625
85738751 36262010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3627
3628 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3629 invisible (Bug#5766).
3630
85738751 36312010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3632
855a0da7
SM
3633 * xdisp.c (x_consider_frame_title, update_window_cursor):
3634 Remove HAVE_NS conditionals.
194d44e7 3635 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3636
3637 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3638 filename for the title.
3639 (ns_set_doc_edited): Do nothing if the selected window is a
3640 minibuffer window.
3641
3642 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3643 ns_set_doc_edited.
3644
3645 * nsterm.m: Remove unneeded prototype.
3646
85738751 36472010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3648
3649 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3650 in the DOC file. (Bug#5336)
3651
85738751 36522010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3653
3654 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3655
75d1428c
SM
36562010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3657
3658 * window.c (keys_of_window): Remove redundant/overridden bindings.
3659
82043cfb
EZ
36602010-03-30 Eli Zaretskii <eliz@gnu.org>
3661
3662 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3663 Restore original behavior when the iterator is not bidi_p.
3664
b5dd0ae7
DN
36652010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3666
3667 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3668
bd924a5d
EZ
36692010-03-30 Eli Zaretskii <eliz@gnu.org>
3670
3671 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3672 are outside the range of cached character positions.
3673
3580374b
JB
36742010-03-30 Juanma Barranquero <lekktu@gmail.com>
3675
3676 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3677
a7b02820
EZ
36782010-03-30 Eli Zaretskii <eliz@gnu.org>
3679
3680 Initial support for bidirectional editing.
3681
3682 * Makefile.in (obj): Include bidi.o.
3683 (bidi.o): New target.
3684
3685 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3686 ($(BLD)/bidi.$(O)): New target.
3687
3688 * bidi.c: New file.
3689
3690 * buffer.h (struct buffer): New members bidi_display_reordering
3691 and bidi_paragraph_direction.
3692
3693 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3694 and bidi_paragraph_direction.
3695 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3696 and bidi-paragraph-direction.
3697 (Fbuffer_swap_text): Swap the values of
3698 bidi_display_reordering and bidi_paragraph_direction.
3699
3700 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3701 (bidi_type_t, bidi_dir_t): New types.
3702 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3703 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3704 prev_stop, base_level_stop, and eol_pos.
3705 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3706 (IT_STACK_SIZE): Enlarge to 5.
3707 (struct glyph_row): New member reversed_p.
3708 <string_buffer_position>: Update prototype.
3709 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3710 glyph_row if bidi_it.paragraph_dir == R2L.
3711 (struct glyph): New members resolved_level and bidi_type.
3712
3713 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3714 processing or buffer's direction is right-to-left.
3715 (prepare_desired_row): Preserve the reversed_p flag.
3716 (row_equal_p): Compare the reversed_p attributes as well.
3717
3718 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3719 bidi_init_it and set it->paragraph_embedding from the current
3720 buffer's value of bidi_paragraph_direction.
3721 (reseat_1): Initialize bidi_it.first_elt.
3722 (set_iterator_to_next, next_element_from_buffer): Use the value of
3723 paragraph_embedding to determine the paragraph direction.
3724 (set_iterator_to_next): Under bidi reordering, call
3725 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3726 new_paragraph flag is set in the bidi iterator.
3727 (next_element_from_buffer): If bidi_it.first_elt is set,
3728 initialize paragraph direction and find the first character to
3729 display in the visual order. If reseated to a middle of a line,
3730 prime the bidi iterator starting at the line's beginning. Handle
3731 the situation where we overstepped stop_charpos due to
3732 non-linearity of the bidi iteration. Likewise for when we back up
3733 beyond the previous stop_charpos. When moving across stop_charpos,
3734 record it in prev_stop.
3735 (display_line): Set row->end and it->start for the next row to the
3736 next character in logical order. Always extend reversed_p rows to
3737 the end of line, even if they end at ZV. Copy the reversed_p flag
3738 to the next glyph row. Keep calling set_cursor_from_row for
3739 bidi-reordered rows even if we already have a possible candidate
3740 for cursor position. Set row_end after all the row's glyphs have
3741 been produced, by looping over the glyphs. Record the position
3742 after EOL in it->eol_pos, and use it to set end_pos of the last
3743 row produced for a continued line.
3744 <Qright_to_left, Qleft_to_right>: New variables.
3745 (syms_of_xdisp): Initialize and staticpro them.
3746 (string_buffer_position_lim): New function.
3747 (string_buffer_position): Most of code moved to
3748 string_buffer_position_lim. Last argument and return value are
3749 now EMACS_INT; all callers changed.
3750 (set_cursor_from_row): Rewritten to support bidirectional text and
3751 reversed glyph rows.
3752 (text_outside_line_unchanged_p, try_window_id): Disable
3753 optimizations if we are reordering bidirectional text and the
3754 paragraph direction can be affected by the change.
3755 (append_glyph, append_composite_glyph)
3756 (produce_image_glyph, append_stretch_glyph): Set the
3757 resolved_level and bidi_type members of each glyph.
3758 (append_glyph): If the glyph row is reversed, prepend the glyph
3759 rather than appending it.
3760 (handle_stop_backwards): New function.
3761 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3762 (reseat): call handle_stop_backwards to recompute prev_stop and
3763 base_level_stop for the new position.
3764 (handle_invisible_prop): Under bidi iteration, skip invisible text
3765 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3766 paragraph direction. Update IT->prev_stop after skipping
3767 invisible text.
3768 (move_it_in_display_line_to): New variables prev_method
3769 and prev_pos. Compare for strict equality in
3770 BUFFER_POS_REACHED_P.
3771 (try_cursor_movement): Examine all the candidate rows that occlude
3772 point, to return the best match. If rows are bidi-reordered
3773 and point moved backwards, back up to the row that is not a
3774 continuation line, and start looking for a suitable row from
3775 there.
3776
3777 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3778 rather than appending, if the glyph_row's reversed_p flag is set.
3779 Set the resolved_level and bidi_type members of each glyph.
3780
3781 * .gdbinit (pbiditype): New command.
3782 (pgx): Use it to display bidi level and type of the glyph.
3783 (pitx): Display some bidi information about the iterator.
3784 (prowlims, pmtxrows): New commands.
3785
32a8894e
DN
37862010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3787
3788 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3789 * s/usg5-4.h (LIBS_DEBUG):
3790 * s/irix6-5.h (C_DEBUG_SWITCH):
3791 * s/gnu-linux.h (LIBS_DEBUG):
3792 * s/darwin.h (LIBS_DEBUG):
3793 * s/bsd-common.h (LIBS_DEBUG):
3794 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3795 * m/iris4d.h (LIBS_DEBUG):
3796 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3797
3798 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3799 (LIBS_DEBUG): Remove definition.
3800
649dbf36
CY
38012010-03-27 Chong Yidong <cyd@stupidchicken.com>
3802
3803 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3804 Windows.
3805
cad4261f
YM
38062010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3807
3808 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3809 `connect' (Bug#5723).
3810
cd591dbc
HE
38112010-03-25 Helmut Eller <eller.helmut@gmail.com>
3812
3813 * process.c (Fmake_network_process): Call `select' for interrupted
3814 `connect' rather than creating new socket (Bug#5173).
3815
e867cb5d 38162010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3817
3818 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3819
3820 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3821
3822 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3823
e867cb5d 38242010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3825
3826 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3827 XLoadQueryFont.
3828
e867cb5d 38292010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3830
3831 * coding.c (decode_coding_ccl): Fix previous change for the
3832 multibyte case.
fb608df3
KH
3833 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3834 case that the output buffer is fullfilled.
3835 (encode_coding): Setup ccl program here.
fbdc1721 3836
5845f0ed
DN
38372010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3838
814fb708
DN
3839 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3840
5845f0ed
DN
3841 Simplify LIBS_MACHINE definitions.
3842 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3843 * m/iris4d.h (LIBS_MACHINE): Likewise.
3844 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3845 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3846 * s/netbsd.h: Remove commented out code.
5845f0ed 3847
b7064064
DN
38482010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3849
df7734b2
DN
3850 Remove dead code dealing with POSIX_SIGNALS.
3851 * atimer.c (set_alarm): Remove dead code, all USG systems define
3852 POSIX_SIGNALS.
3853 * data.c (arith_error): Likewise.
3854 * keyboard.c (input_available_signal, handle_user_signal)
3855 (interrupt_signal): Likewise.
3856 * process.c (sigchld_handler): Likewise.
3857 (create_process): Remove if 0 code. Remove HPUX conditional when
3858 !defined (POSIX_SIGNALS), it cannot be true.
3859 * syssignal.h: Remove USG5_4 and USG conditionals when
3860 !POSIX_SIGNALS, they cannot be true.
3861
b7064064
DN
3862 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3863 NO_SOCK_SIGIO, not used anymore.
3864
55da5ee3
DN
38652010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3866
0be96e3a
DN
3867 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3868 support vax on BSDs.
3869
55da5ee3
DN
3870 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3871 * s/aix4-2.h (ORDINARY_LINK): ... here.
3872
c0282183
AS
38732010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3874
82c3d67a
AS
3875 * Makefile.in (abs_builddir): Define.
3876 (bootstrap_exe): Use it.
3877 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3878
3613edce
SM
38792010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3880
3881 * Makefile.in (bootstrap_exe): Use an absolute name.
3882
7f110ddc
DN
38832010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3884
22e87574
DN
3885 Remove support for old GNU/Linux using libc version 5.
3886 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3887 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3888
05a670e6
DN
3889 Consolidate redundant definitions in s/bsd-common.h.
3890 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3891 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3892 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3893 doing it in all files that include this one.
3894 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3895 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3896 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3897 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3898 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3899 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3900 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3901 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3902 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3903
2968f561
DN
3904 Consolidate redundant definitions.
3905 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3906 it's undefined in all files that include this one.
3907 (POSIX_SIGNALS): Define here instead of doing it in all files that
3908 include this one.
3909 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3910 (POSIX_SIGNALS): Do not define.
3911 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3912 (POSIX_SIGNALS): Do not define.
3913 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3914 (POSIX_SIGNALS): Do not define.
3915
15d25dc0
DN
3916 Remove support for old UNIX System V systems.
3917 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3918 * s/usg-5-4-2.h: Remove.
3919
07e339e4
DN
3920 Remove support for Solaris on PPC and for old versions.
3921 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3922 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3923 that cancel each other.
3924 * s/sol2-3.h:
3925 * s/sol2-4.h:
3926 * s/sol2-5.h: Remove.
3927 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3928 (NO_REMAP): Remove, unused.
3929 (UNEXEC): Move definition ...
3930 * s/aix4-2.h (UNEXEC): ... here.
3931
7f110ddc
DN
3932 * s/openbsd.h: Remove support for non-ELF and for systems that do
3933 not support shared libraries.
3934 * s/netbsd.h:
3935 * s/freebsd.h: Likewise.
3936
605f35cd
DN
39372010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3938
3939 Remove non-working support for lynxos 3.0.
3940 * s/lynxos.h: Remove file.
3941
3942 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3943 COFF_BSD_SYMBOLS, nothing defines it anymore.
3944
aed71cf4
DN
39452010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3946
3947 Remove obsolete uses of HAVE_SHM.
3948 * emacs.c (standard_args):
3949 (Fdump_emacs):
3950 (syms_of_emacs): Remove code depending on HAVE_SHM.
3951
3952 * alloc.c: Remove HAVE_SHM dependent definition.
3953
3954 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3955
aded53ff
GM
39562010-03-18 Glenn Morris <rgm@gnu.org>
3957
17284745
GM
3958 * emacs.c (USAGE4): Hard-code bug address.
3959 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3960 (bug_reporting_address): Remove.
3961 (main): Don't call bug_reporting_address.
3962
aded53ff
GM
3963 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3964 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3965
303500aa
CY
39662010-03-15 Chong Yidong <cyd@stupidchicken.com>
3967
3968 * xfns.c (Fx_create_frame):
3969 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3970 on left.
3971
cef3058f
CY
39722010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3973
3974 * editfns.c (Fformat): Account for string precision when computing
3975 field width (Bug#5710).
3976
a647d59d
CY
39772010-03-12 Chong Yidong <cyd@stupidchicken.com>
3978
4fa42018
CY
3979 * xfns.c (Fx_create_frame): Set default to Qright.
3980
a647d59d
CY
3981 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3982 all window systems.
3983
6da23aaa
EZ
39842010-03-12 Eli Zaretskii <eliz@gnu.org>
3985
a96f6398 3986 These changes remove termcap.c from the build on Posix platforms.
83d02def 3987 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3988 (MSDOS_OBJ): ...to here.
3989 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3990 now identical to when LIBS_TERMCAP is defined.
3991
3992 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3993
3994 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3995
a96f6398 3996 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3997
288f9fc0
CY
39982010-03-10 Chong Yidong <cyd@stupidchicken.com>
3999
4000 * Branch for 23.2.
4001
d48cd3f4
SM
40022010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4003
4004 Cleanup setup of gl_state in various parts of the code.
4005 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4006 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4007 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4008 (skip_chars):
4009 * regex.c (regex_compile): Use it.
4010 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4011 it's now set in regex_compile when/if we need it.
4012
618db430
SM
40132010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4014
c0335e02
SM
4015 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4016 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4017 (QUIT): Use it to consolidate code and remove redundancy.
4018 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4019
254c06a8
SM
4020 * regex.c (regex_compile): Setup gl_state as well.
4021
618db430
SM
4022 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4023 (in_classes): Use CONSP before XCAR/XCDR.
4024
233f0c9f
CY
40252010-03-03 Chong Yidong <cyd@stupidchicken.com>
4026
4027 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4028 definitions, so that keyboard macros are correctly handled
4029 (Bug#5481).
4030
75f80e63
EZ
40312010-03-02 Eli Zaretskii <eliz@gnu.org>
4032
4033 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4034 text that could be relocated inside the call to emacs_mule_char.
4035 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4036 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4037
dcfb9bc4
KH
40382010-03-02 Kenichi Handa <handa@m17n.org>
4039
fc9a17bc
KH
4040 * character.c (parse_str_as_multibyte): Fix handling of the
4041 multibyte form of raw-bytes.
4042 (str_as_multibyte): Likewise.
4043
dcfb9bc4
KH
4044 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4045 form of raw-bytes.
4046
412c01b6
CY
40472010-02-28 Chong Yidong <cyd@stupidchicken.com>
4048
4049 * charset.c (load_charset_map_from_file)
4050 (load_charset_map_from_vector): Zero out allocated
4051 charset_map_entries before using them.
4052
df7e1ea0
AS
40532010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4054
4055 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4056
fe69a722
CY
40572010-02-27 Chong Yidong <cyd@stupidchicken.com>
4058
4ed28cf4
CY
4059 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4060 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4061
7379cfce
KH
40622010-02-26 Kenichi Handa <handa@m17n.org>
4063
f88cc4d6
KH
4064 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4065
7379cfce
KH
4066 * xdisp.c (reseat_to_string): Fix previous change.
4067
cf2fdcfb
CY
40682010-02-26 David Reitter <david.reitter@gmail.com>
4069
4070 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4071 Lisp_Object (Bug#4736).
4072
cc6c7c75
KH
40732010-02-25 Kenichi Handa <handa@m17n.org>
4074
4075 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4076
32e737d7
JD
40772010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4078
4079 * xterm.c (XTflash): Move declarations before statements.
4080
4081 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4082 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4083 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4084 (xg_create_tool_bar): Remove unused variables.
4085 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4086 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4087
676cae9f
CY
40882010-02-21 Chong Yidong <cyd@stupidchicken.com>
4089
4090 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4091
886cc2b8
SM
40922010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4093
4094 * term.c (fatal): Add a final \n if needed (bug#5596).
4095
ddb2d8e2
CY
40962010-02-18 Chong Yidong <cyd@stupidchicken.com>
4097
4098 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4099
2a4f8d3d
GM
41002010-02-18 Glenn Morris <rgm@gnu.org>
4101
4102 * callint.c (Finteractive): Doc fix.
4103
ebaf11b6
KH
41042010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4105
886cc2b8
SM
4106 * coding.c (record_conversion_result):
4107 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4108 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4109 memory allocation error.
4110
d0396581
KH
41112010-02-17 Kenichi Handa <handa@m17n.org>
4112
886cc2b8
SM
4113 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4114 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4115 (decode_coding): Setup ccl program here. Keep looping when the
4116 decoder stopped because the output buffer is
4117 fullfilled (bug#5534).
4118
4119 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4120
98599f74
JD
41212010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4122
471e4f04 4123 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4124 bug #5571.
886cc2b8 4125 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4126 overdrawn.
98599f74 4127
182659ae
JD
41282010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4129
4130 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4131 doing_interact here.
4132 (ice_connection_closed): New function.
4133 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4134 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4135 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4136 returns I/O error.
4137 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4138 bug #5512.
4139
9be32c4e 41402010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4141
4142 * nsfont.m (nsfont_open): The system's value for the font descent
4143 is negative, so round it down to avoid clipping.
4144
a2f3eb19
CY
41452010-02-06 Chong Yidong <cyd@stupidchicken.com>
4146
4147 * charset.c (load_charset_map_from_file)
4148 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4149 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4150
3088147c
CY
41512010-02-05 Chong Yidong <cyd@stupidchicken.com>
4152
4153 * charset.c (load_charset_map_from_file): Allocate large
4154 charset_map_entries structure on the heap rather than the stack.
4155 (Bug#5526).
4156
b57d9029
KH
41572010-01-31 Kenichi Handa <handa@m17n.org>
4158
4159 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4160 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4161
c67d885b
CY
41622010-01-31 Chong Yidong <cyd@stupidchicken.com>
4163
4164 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4165 <deactivated@gmail.com> (Bug#3605).
4166
8fab2362
CY
41672010-01-31 David De La Harpe Golden <david@harpegolden.net>
4168
4169 * fileio.c (Frename_file): Correctly rename symlinks to
4170 directories (Bug#5496).
4171
cb2a62f2
CY
41722010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4173
4174 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4175
944c7a26
AS
41762010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4177
4178 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4179
c024ac08
CY
41802010-01-29 Chong Yidong <cyd@stupidchicken.com>
4181
4182 * frame.c (DEFAULT_ROWS): Change default to 35.
4183
4184 * xfns.c (x_default_font_parameter): Change default XFT font to
4185 monospace-10 (Bug#3643).
4186
af93af83
EZ
41872010-01-29 Eli Zaretskii <eliz@gnu.org>
4188
4189 * w32inevt.c (key_event): Remove unnecessary comparison of
4190 event->uChar.AsciiChar with 128.
4191
ca0eb708
CY
41922010-01-28 Chong Yidong <cyd@stupidchicken.com>
4193
b242dbfc
CY
4194 * fileio.c (Frename_file): Fix last change (Bug#5487).
4195
ca0eb708
CY
4196 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4197
4198 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4199
45d45af5
JD
42002010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4201
4202 * xfns.c (Fx_create_frame): Remove window size matching code from
4203 2010-01-15.
a73f9c9d 4204 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4205
7e233730
JR
42062010-01-27 Jason Rumney <jasonr@gnu.org>
4207
4208 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4209 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4210
86e893e3
KH
42112010-01-27 Kenichi Handa <handa@m17n.org>
4212
4213 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4214 pattern string (Bug#4209).
86e893e3 4215
8719abec
CY
42162010-01-27 David De La Harpe Golden <david@harpegolden.net>
4217
4218 * fileio.c (Frename_file): Call copy-directory and
4219 delete-directory for directories, in order to handle cross-device
4220 renaming (Bug#3353).
4221
844794c8
JD
42222010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4223
aa3e13b5 4224 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4225 sizes 24 and 10. Bug #3643.
844794c8 4226
bd4b5750
SM
42272010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4228
8dc1adf6 4229 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4230 * keymap.c (shadow_lookup): Add `remap' arg.
4231 (describe_map, describe_vector): Update calls to shadow_lookup.
4232 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4233 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4234 perform remapping during shadow_lookup check of remapped_sequences.
4235
285d07e2
CY
42362010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4237
4238 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4239 png_check_sig, which has been removed in libpng 1.4.
4240
c6d09b8d
CY
42412010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4242
4243 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4244 lacks this header file).
4245
3d782998
YM
42462010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4247
4248 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4249 as in Emacs 22.
4250
2aff7c53
YM
42512010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4252
4253 * lisp.h (make_pure_string): String pointer arg now points to const.
4254
4255 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4256 args now point to const.
4257
74327f7a
EZ
42582010-01-22 Eli Zaretskii <eliz@gnu.org>
4259
4260 * lread.c (Fload): Don't treat files without .elc extension as
4261 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4262 them. (bug#5303)
4263
4d1e6632
KH
42642010-01-20 Kenichi Handa <handa@m17n.org>
4265
4266 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4267 treat the source as actual byte sequence.
4268
1fdede8f
AM
42692010-01-19 Alan Mackenzie <acm@muc.de>
4270
4271 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4272 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4273 `signal_after_change_p' to `coherent_change_p', and make the
4274 invocation of `modify_region' conditional on it.
4275
67477f30
JD
42762010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4277
4278 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4279 for debug purpose.
4280 (syms_of_xsettings): Declare xft-settings.
4281
244b023e
CY
42822010-01-18 Chong Yidong <cyd@stupidchicken.com>
4283
4284 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4285
617364fe
CY
42862010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4287
4288 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4289
4fe22cdf
CY
42902010-01-16 Chong Yidong <cyd@stupidchicken.com>
4291
4292 * emacs.c (standard_args): Adjust arg priorities to reflect how
4293 they are processed in startup.el.
4294
e118d2be
AS
42952010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4296
4297 * Makefile.in (lisp, shortlisp): Update.
4298
523ae620
SM
42992010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4300
4301 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4302 code, link the new kboard into all_kboard before running Lisp code,
4303 and protect the new terminal with GCPRO (Bug#5365).
4304 (x_term_init): Remove unused var `atom'.
4305 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4306
f0d13888
JD
43072010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4308
4309 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4310 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4311 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4312 this. Bug #3643.
f0d13888 4313
cc320f07
KH
43142010-01-15 Kenichi Handa <handa@m17n.org>
4315
4316 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4317
7ffdf101
CY
43182010-01-15 Chong Yidong <cyd@stupidchicken.com>
4319
4320 * nsterm.m (Qnone): Define.
4321
4322 * nsfns.m (Qnone): Move definition to nsterm.m.
4323
d12bd917
KH
43242010-01-14 Kenichi Handa <handa@m17n.org>
4325
4326 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4327 systems.
4328
d9a7c140
KH
43292010-01-14 Kenichi Handa <handa@m17n.org>
4330
4331 Make auto-composition work on all buffers even if they are
4332 fundamental mode.
4333
4334 * composite.c (Vauto_composition_mode): New variable.
4335 (composition_compute_stop_pos): Check Vauto_composition_mode
4336 instead of Vauto_composition_function.
4337 (composition_adjust_point, Ffind_composition_internal): Likewise.
4338 (syms_of_composite): Declare Lisp variable
4339 "auto-composition-mode" here.
4340
63286bb2
CY
43412010-01-13 Chong Yidong <cyd@stupidchicken.com>
4342
4343 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4344 during call to vendor-specific-keysyms (Bug#5365).
4345
c2623ee7
YM
43462010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4347
4348 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4349 Call SIGNAL_THREAD_CHECK (Bug#5333).
4350
4351 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4352 Call SIGNAL_THREAD_CHECK.
4353
0b5397c2
SM
43542010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4355
4356 Try to fix bug#5314. This is probably not the final word, tho.
4357 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4358 recent-auto-save-p as a side-effect.
4359 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4360 * buffer.c (Fkill_buffer, reset_buffer):
4361 * editfns.c (Fsubst_char_in_region):
4362 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4363 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4364
dc954cb2
KH
43652010-01-13 Kenichi Handa <handa@m17n.org>
4366
4367 Display buffer name, etc. in mode line by composing correctly.
4368
4369 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4370 STRING is not nil.
0b5397c2 4371 (display_mode_element): Adjust for the change of
dc954cb2
KH
4372 decode_mode_spec and display_line.
4373 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4374 (display_string): Handle the case that STRING is non-null and
4375 LISP_STRING is not nil.
4376
0b5397c2
SM
4377 * xterm.c (x_draw_composite_glyph_string_foreground):
4378 Pay attention to s->face->overstrike.
dc954cb2
KH
4379
4380 * composite.c (composition_reseat_it): Don't check PT if STRING is
4381 non nil.
4382
4a00eaca
YM
43832010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4384
4385 * keyboard.c (read_char): Don't apply previous change when current
4386 buffer is unchanged by command execution.
4387
60abb287
JD
43882010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4389
4390 * keyboard.c (read_char): Return after executing from special map.
4391
893db5bc
GM
43922010-01-12 Glenn Morris <rgm@gnu.org>
4393
4394 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4395 bug-gnu-emacs rather than emacs-pretest-bug.
4396
4d03ece0
CY
43972010-01-11 Chong Yidong <cyd@stupidchicken.com>
4398
4399 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4400 initializing the Lisp variables that depend on them.
4401
1df47e38
YM
44022010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4403
4404 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4405 Clear areas that will not be updated after change of menu bar lines.
4406 Clear the menu bar window's current matrix when the window gets empty.
4407
2f1c6384
CY
44082010-01-09 Chong Yidong <cyd@stupidchicken.com>
4409
e398c61c
CY
4410 * intervals.h, textprop.c (extend_property_ranges): Return value
4411 and args changed. Discard properties that begin at or after the
4412 new end (Bug#5306).
4413
4414 * editfns.c (Fformat): Caller changed.
4415
e5a29a10
CY
4416 * nsterm.m (ns_set_default_prefs): Delete function.
4417 (syms_of_nsterm): Initialize ns_command_modifier,
4418 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4419 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4420
2f1c6384
CY
4421 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4422 position (Bug#4040).
4423
d427a9fa
EZ
44242010-01-09 Eli Zaretskii <eliz@gnu.org>
4425
4426 * editfns.c (Ffloat_time): Doc fix.
4427
21b9df2f
JD
44282010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4429
4430 * xfns.c (Fx_create_frame): Don't create frame larger than display
4431 by default bug#3643.
4432
4b00d3b1
YM
44332010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4434
4435 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4436 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4437 windows above internal border.
4438
4439 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4440 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4441 windows above internal border.
4442
4443 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4444 tool bar windows specially.
4445
4446 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4447
4448 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4449 specially.
4450 (XTflash): Take account of menu bar height.
4451
4452 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4453 specially.
4454
5075d853
JD
44552010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4456
ac146f82 4457 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4458 also be true before we can return early (bug #5339).
4459
474217c8
CY
44602010-01-06 David Reitter <david.reitter@gmail.com>
4461
4462 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4463 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4464 (Bug#3233).
4465
c0e6d47d
JD
44662010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4467
d0cf45b7
JD
4468 * font.c (font_open_entity): Enable chache and call cached_font_ok
4469 for the driver if defined.
4470 (QCuser_spec): New symbol.
4471 (font_spec_from_name): Save name as user-spec.
4472 (font_load_for_lface): Keep user-spec instead of name.
4473 (font_open_by_name): Save name as user-spec.
4474 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4475 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4476
4477 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4478 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4479 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4480
4481 * font.h (struct font_driver): Add cached_font_ok.
4482
c0e6d47d
JD
4483 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4484
7c583cd8
JD
44852010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4486
4487 * xterm.c (x_new_font): Move code for setting rows/cols before
4488 resizing ...
ac146f82 4489 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4490
4491 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4492 (xg_frame_resized, xg_frame_set_char_size):
4493 Call xg_clear_under_internal_border.
7c583cd8 4494 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4495
03f77f0a
CY
44962010-01-05 Chong Yidong <cyd@stupidchicken.com>
4497
4498 * keyboard.c (read_key_sequence): Catch keyboard switch after
4499 making a new tty frame (Bug#5095).
4500
2a1ef5be
KH
45012010-01-05 Kenichi Handa <handa@m17n.org>
4502
4503 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4504
e3eb1dae
SM
45052010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4506
4507 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4508 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4509 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4510
777013f2
MA
45112010-01-03 Michael Albinus <michael.albinus@gmx.de>
4512
4513 * dbusbind.c (xd_add_watch): Improve debug message.
4514 (xd_remove_watch): Improve debug message. If DATA is the session
4515 bus, unset D-Bus session environment.
4516 (Fdbus_init_bus): Pass the bus as argument to
4517 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4518
8932b1c2
CY
45192010-01-01 Chong Yidong <cyd@stupidchicken.com>
4520
87231e2c
CY
4521 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4522
4801c5fa
CY
4523 * lread.c (syms_of_lread): Make it clearer that these are the
4524 names of loaded files (Bug#5068).
4525
8932b1c2
CY
4526 * eval.c (run_hook_with_args): Handle the case where the global
4527 value has the obsolete single-function form (Bug#5026).
4528
11e3c684
CY
45292009-12-27 Chong Yidong <cyd@stupidchicken.com>
4530
4531 * minibuf.c (Fall_completions): Minor optimization.
4532
5b28ce35
EZ
45332009-12-26 Eli Zaretskii <eliz@gnu.org>
4534
5ce6e4f4
JB
4535 * .gdbinit (pgx): Fix display of composite glyphs.
4536 Display cmp.from and cmp.to as well.
4537 (pitx): Fix last change.
5b28ce35 4538
bcffff46
KH
45392009-12-25 Kenichi Handa <handa@m17n.org>
4540
4541 * composite.h (composition_adjust_point): Update prototype.
4542
4543 * composite.c (composition_reseat_it): Don't make a composition
4544 spanning over point.
4545 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4546 composable characters.
4547 (composition_adjust_point): New arg NEW_PT. Callers changed.
4548
4549 * keyboard.c (command_loop_1): Force redisplay if the last point
4550 was within a composition.
4551 (adjust_point_for_property): Don't adjust point for automatic
4552 composition when called after buffer modification.
4553
3f670e9a
EZ
45542009-12-19 Eli Zaretskii <eliz@gnu.org>
4555
5ce6e4f4
JB
4556 * .gdbinit (pitx): Don't use enum names, use their values.
4557 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4558 (pgx): Don't use enum names, use their values.
4559 (pitmethod): New helper command.
4560 (pitx): Use it to display iteration method.
4561 (pgrowit): New command.
4562
ad903955
EZ
4563 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4564
3f670e9a
EZ
4565 Update dependencies in Makefile.in.
4566
4567 * Makefile.in (alloc.o): Depend on termhooks.h.
4568 (atimer.o): Depend on blockinput.h.
4569 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4570 and frame.h.
4571 (callint.o): Depend on systime.h, coding.h, and composite.h.
4572 (callproc.o): Depend on buffer.h.
4573 (casefiddle.o): Don't depend on charset.h.
4574 (casetab.o): Depend on character.h.
4575 (ccl.o): Depend on composite.h.
4576 (chartab.o): Depend on ccl.h.
4577 (cm.o): Depend on dispextern.h.
4578 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4579 (coding.o): Don't depend on $(INTERVALS_H).
4580 (composite.o): Don't depend on dispextern.h explicitly (it's in
4581 $(INTERVALS_H)). Depend on ccl.h.
4582 (data.o): Depend on systime.h, coding.h, composite.h,
4583 dispextern.h, font.h, and ccl.h.
4584 (dired.o): Depend on composite.h.
4585 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4586 composite.h (it's in $(INTERVALS_H)).
4587 (doc.o): Depend on systime.h, coding.h, and composite.h.
4588 (editfns.o): Don't depend explicitly on dispextern.h.
4589 (emacs.o): Depend on frame.h and coding.h.
4590 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4591 (fileio.o): Depend on frame.h and commands.h. Don't depend
4592 explicitly on dispextern.h.
4593 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4594 composite.h.
4595 (fns.o): Don't depend on termhooks.h.
4596 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4597 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4598 coding.h, $(INTERVALS_H), window.h, xterm.h.
4599 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4600 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4601 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4602 fontset.h, ccl.h, and ftfont.h.
4603 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4604 (gtkutil.o): Depend on dispextern.h and composite.h.
4605 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4606 termhooks.h, and ccl.h.
4607 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4608 (intervals.o): Depend on systime.h and coding.h.
4609 (keyboard.o): Depend on composite.h and coding.h.
4610 (keymap.o): Depend on coding.h and frame.h.
4611 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4612 (macros.o): Depend on systime.h, coding.h, and composite.h.
4613 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4614 and atimer.h.
4615 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4616 dispextern.h explicitly.
0b5397c2
SM
4617 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4618 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4619 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4620 (regex.o): Don't depend on charset.h.
4621 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4622 (search.o): Don't depend explicitly on composite.h.
4623 (sound.o): Depend on atimer.h and systime.h.
4624 (syntax.o): Don't depend explicitly on composite.h.
4625 (sysdep.o): Depend on coding.h and composite.h.
4626 (term.o): Depend on xterm.h and buffer.h.
4627 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4628 (textprop.o): Don't depend on dispextern.h explicitly.
4629 (undo.o): Depend on dispextern.h.
4630 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4631 dispextern.h and composite.h explicitly.
4632 (xdisp.o): Depend on ccl.h.
4633 (xfaces.o): Depend on coding.h and ccl.h.
4634 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4635 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4636 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4637 ftfont.h.
4638 (xgselect.o): New dependency.
4639 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4640 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4641 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4642 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4643 (xsmfns.o): Depend on frame.h and dispextern.h.
4644 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4645 sysselect.h.
4646
7a6f7fea
AS
46472009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4648
4649 * font.c (Fclear_font_cache): Pass correct cache argument to
4650 font_clear_cache.
4651
f4c21026
AS
46522009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4653
4654 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4655 twice.
4656
f7ab0997
CY
46572009-12-15 Chong Yidong <cyd@stupidchicken.com>
4658
4659 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4660 calling file-remote-p. Reported by Jim Meyering.
4661
fa8e045a
MA
46622009-12-15 Michael Albinus <michael.albinus@gmx.de>
4663
4664 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4665 avoid compiler warnings. (Bug #5217)
fa8e045a 4666
a63dba42
KH
46672009-12-14 Kenichi Handa <handa@m17n.org>
4668
4669 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4670 in 8-bit encoding.
4671
5ce6e4f4 46722009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4673
4674 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4675 tooltip windows.
4676
223e5fc6
JD
46772009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4678
36acb2a7
JD
4679 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4680 Xatom_net_window_type.
4681
4682 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4683 Xatom_net_window_type.
4684
b8f00677
JD
4685 * xterm.c (my_log_handler): New function.
4686 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4687 so we can filter out buggy messages. (Bug #5120).
b8f00677 4688
e5f0bc9a
JD
4689 * xterm.c (xg_scroll_callback): Parameter list changed,
4690 use parameter GtkScrollType to determine scroll/line/page.
4691 Only allow dragging if a button < 4 is grabbed (bug #5177).
4692 (xg_end_scroll_callback): New function.
4693 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4694 xg_create_scroll_bar.
4695
4696 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4697 (scroll_end_callback): Remove.
4698 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4699 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 4700 bug #5177.
e5f0bc9a
JD
4701 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4702 bug #5177.
4703
4704 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4705 (xg_create_scroll_bar): Add GCallback end_callback.
4706
223e5fc6
JD
4707 * xftfont.c (QClcdfilter): New variable.
4708 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4709 (syms_of_xftfont): Initialize QClcdfilter.
4710
3c055b77
JD
47112009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4712
4713 * xsettings.c (struct xsettings): Add member seen.
4714 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4715 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4716 (apply_xft_settings): Only update Xft settings with what member seen
4717 indicates as new.
4718
05fe33ff
EZ
47192009-12-12 Eli Zaretskii <eliz@gnu.org>
4720
c4cc8b9a 4721 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
4722 (struct glyph): Use EMACS_INT for charpos.
4723 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4724 region_beg_charpos, region_end_charpos,
4725 redisplay_end_trigger_charpos, and also for
4726 iterator_stack_entry.end_charpos and
4727 iterator_stack_entry.stop_charpos.
4728
e8d7886a
JD
47292009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4730
5ce6e4f4 4731 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4732 (xg_create_scroll_bar): Call scroll_end_callback on button release
4733 event (bug #5177).
4734 (xg_event_is_for_scrollbar): != replaced with ==.
4735
d0db2ec8
KH
47362009-12-12 Kenichi Handa <handa@m17n.org>
4737
4738 * ftfont.c (struct ftfont_info): New member matrix.
4739 (ftfont_open): Setup xftfont_info->matrix.
4740 (MFLTFontFT): New member matrix.
4741 (FLOOR, CEIL, ROUND): New macros.
4742 (ftfont_get_metrics): Handle matrix transformation.
4743 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4744
4745 * xftfont.c (struct xftfont_info): New member matrix.
4746 (xftfont_open): Setup xftfont_info->matrix.
4747
47482009-12-10 Kenichi Handa <handa@m17n.org>
4749
4750 * xdisp.c (append_space_for_newline): Consider face-remapping.
4751
2cc7b62f
AS
47522009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4753
b87dd913
AS
4754 * xsettings.c: Include "keyboard.h".
4755
eba5eb94
AS
4756 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4757
2cc7b62f
AS
4758 Fix implicit function declarations.
4759 * cmds.c: Include "frame.h".
4760 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4761 * frame.h: Move declaration of delete_frame outside of
4762 HAVE_WINDOW_SYSTEM.
4763
a4ef73c8
CY
47642009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4765
4766 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4767
4768 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4769 GTK builds.
4770
944a300c
AS
47712009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4772
4773 * unexelf.c (unexec): Don't search for .data twice.
4774
022eef62
CY
47752009-12-05 Chong Yidong <cyd@stupidchicken.com>
4776
426ac949
CY
4777 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4778 if push failed.
4779 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4780 of push_display_prop (Bug#5000).
4781
022eef62
CY
4782 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4783 value of font_list_entities (Bug#5085).
4784
be95bee9
JB
47852009-12-04 Juanma Barranquero <lekktu@gmail.com>
4786
4787 Fix `string-to-number' to deal consistently with integers and floats.
4788 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4789 trailing characters, not just whitespace.
4790 (read1): Pass new arg 0 to keep old behavior.
4791 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4792 trailing chars, as it is already done for integers. Doc fixes.
4793 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4794
24c2d7ce
EZ
47952009-12-04 Eli Zaretskii <eliz@gnu.org>
4796
0b5397c2
SM
4797 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4798 Delete unused enumeration value.
24c2d7ce 4799
7e694795
EZ
48002009-12-03 Eli Zaretskii <eliz@gnu.org>
4801
4802 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4803
84b31826
SM
48042009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4805
4806 * process.c (Fmake_network_process): Fix up the tests for
4807 "connectionless socket", so they DTRT for seqpacket sockets as well.
4808
f00c449b
SM
48092009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4810
4811 * process.c (Qseqpacket): New symbol.
4812 (HAVE_SEQPACKET): New macro.
4813 (Fmake_network_process): Accept new :type `seqpacket'.
4814 (init_process): Add `seqpacket' feature when applicable.
4815 (syms_of_process): Initialize Qseqpacket.
4816
8096a0ff
YM
48172009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4818
4819 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4820 if entity is Qnil.
4821
3e0de07f
SM
48222009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4823
4824 * print.c (print_preprocess): Preprocess the key_and_value table of
4825 hashtables, even tho they're "hidden" (bug#5082).
4826
abeafb2a
JD
48272009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4828
4829 * frame.c (frame_make_pointer_invisible)
4830 (frame_make_pointer_visible): Declare f before statements.
4831
4bf47195
EZ
48322009-11-28 Eli Zaretskii <eliz@gnu.org>
4833
4834 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4835 omitted dependencies on lisp.h.
4836
c525b3f2
JD
48372009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4838
ece2d4ed
JD
4839 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4840 is NULL.
4841
4842 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4843
4844 * frame.c (frame_make_pointer_invisible)
3e0de07f 4845 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4846 frame.
4847
c525b3f2
JD
4848 * search.c (simple_search): Remove warning by making *p const.
4849
2f00e299
DN
48502009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4851
4852 * xdisp.c (power_letter): Remove duplicate const.
4853
084b049b
JD
48542009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4855
a1fadc6f
JD
4856 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4857
5ce6e4f4 4858 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4859 defaults (bug #5025).
4860
28259cac
SM
48612009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4862
4863 * insdel.c (adjust_markers_for_delete): Move it in the
4864 right direction! (bug#4803)
4865
e8e14166
YM
48662009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4867
4868 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4869
4870 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4871
86677b58
GM
48722009-11-24 Glenn Morris <rgm@gnu.org>
4873
4874 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4875
581e51e8
JD
48762009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4877
cfc86c7a
JD
4878 * Makefile.in: Must create deps for ecrt0.o in its rule.
4879
581e51e8
JD
4880 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4881 because that is what Gtk+ font dialog understands.
4882
4883 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4884 of Fcopy_sequence.
4885 (font_open_by_name): Put name given into QCname for font-object returned.
4886
4887 * frame.c (x_set_font): Save original font name as frame parameter
4888 font-parameter.
4889
4890 * xsettings.c (set_default_xft_settings): New function.
4891 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4892 is found.
4893
8b264ecb
AS
48942009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4895
4896 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4897 searching backwards through multibyte buffer.
4898
872870b2
JD
48992009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4900
4901 * xterm.c: #include xgselect.h.
4902 (x_initialize): Call xgselect_initialize.
4903
4904 * xsettings.c (something_changedCB): C++ comments => C comments.
4905 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4906 does that now.
4907
4908 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4909 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4910 (scroll_bar_button_cb): Remove.
5ce6e4f4 4911 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4912 event.
4913 (xg_create_scroll_bar): Don't bind button-press-event and
4914 button-release-event.
4915
4916 * process.c: Include xgselect.h if defined (USE_GTK) ||
4917 defined (HAVE_GCONF).
4918 (wait_reading_process_output): Call xg_select for the same condition.
4919
4920 * xgselect.c (xg_select): New function to better integrate with
4921 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4922
4923 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4924
4925 * Makefile.in (XOBJ): Add xgselect.o.
4926
62a6e103
AS
49272009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4928
0b5397c2
SM
4929 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4930 Remove ignored second argument. All callers changed.
62a6e103
AS
4931 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4932 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4933 * xdisp.c (string_char_and_length): Likewise.
4934
b0ca0f33
DN
49352009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4936
4937 * xterm.c (x_new_font):
4938 * print.c (print_object):
4939 * cmds.c (Fself_insert_command): Move declarations before statements.
4940
dd5a6279
CY
49412009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4942
4943 * s/cygwin.h: Remove unneeded linker flags.
4944
4a8e097d
JD
49452009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4946
0d1d0d26
JD
4947 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4948
4949 * xsettings.h: Declare xsettings_get_system_font.
4950
4951 * xsettings.c (xsettings_get_system_font): New function.
4952 (init_gconf): No use initiating gconf unless we have Xft also.
4953 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4954 HAVE_GCONF.
4955
4a8e097d
JD
4956 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4957 add a blank entry so it doesn't collapse into nothing.
4958
8ab1650e
SM
49592009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4960
4961 * lread.c (Funintern): Comment out last change.
4962
82c602f0
RS
49632009-11-19 Richard Stallman <rms@gnu.org>
4964
4965 * lread.c (Funintern): Error if symbol is t or nil.
4966
87e32266
SM
49672009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4968
4969 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4970 representation of Lisp integers.
4971 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4972
1b9ac145
AS
49732009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4974
4975 * lisp.h: Remove declaration of Ffont_get_system_font.
4976 * xfns.c: Move include of "xsettings.h".
4977 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4978
dfb3c4c6
JD
49792009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4980
87e32266
SM
4981 * xsettings.c (something_changedCB, Ffont_get_system_font):
4982 Check use_system_font.
dfb3c4c6
JD
4983 (syms_of_xsettings): DEFVAR font-use-system-font.
4984
9370c1d8
AS
49852009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4986
25fe851a
AS
4987 * xfns.c (x_default_font_parameter): Remove dead assignment.
4988
9370c1d8
AS
4989 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4990
637fa988
JD
49912009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4992
87e32266 4993 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4994 not have FC_LCD_*. #define them if not there.
a6eb20d8 4995
87e32266 4996 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4997
637fa988
JD
4998 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4999
5000 * xterm.c (handle_one_xevent): Call xft_settings_event for
5001 ClientMessage, PropertyNotify and DestroyNotify.
5002 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5003 Call xsettings_initialize.
5004
5005 * xftfont.c (xftfont_fix_match): New function.
5006 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5007 Call xftfont_fix_match after XftFontMatch.
5008
5009 * xfont.c (xfont_driver): Initialize all members.
5010
87e32266
SM
5011 * xfns.c (x_default_font_parameter):
5012 Try font from Ffont_get_system_font.
637fa988
JD
5013 Do not get font from x_default_parameter if we got one from
5014 Ffont_get_system_font.
87e32266 5015 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5016
5017 * w32font.c (w32font_driver): Initialize all members.
5018
5019 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5020
5021 * lisp.h: Declare syms_of_xsettings.
5022
87e32266
SM
5023 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5024 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5025
5026 * ftfont.c (ftfont_filter_properties): New function.
5027
5028 * frame.c (x_set_font): Remove unused variable lval.
5029
87e32266 5030 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5031
5032 * font.c (font_put_extra): Don't return if val is nil, it means
5033 boolean option is off.
5034 (font_parse_fcname): Collect all extra properties in extra_props
5035 and call filter_properties for all drivers with extra_props and
5036 font as parameter.
87e32266
SM
5037 (font_open_entity): Do not use cache, it does not pick up new
5038 fontconfig settings like hinting.
637fa988
JD
5039 (font_load_for_lface): If spec had a name in it, store it in entity.
5040
a73f9c9d 5041 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5042
5043 * config.in: HAVE_GCONF is new.
5044
5045 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5046 xsettings.o is new.
5047
5a942932
KH
50482009-11-17 Kenichi Handa <handa@m17n.org>
5049
5050 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5051 back to the default font in case that no suitable font is found.
5052
b7c7a4d1
SM
50532009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5054
5055 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5056 Suggested by Chad Brown <yandros@mit.edu>.
5057 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5058
072f1e39
JD
50592009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5060
5061 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5062
5d1e70a2
AS
50632009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5064
87e32266 5065 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5066
a53cfbe5
JD
50672009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5068
473a99b7
JD
5069 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5070 has a parent.
5071
a53cfbe5 5072 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5073 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5074
5075 * config.in: Generated (AUTO_DEPEND).
5076
f04bb9b2
MA
50772009-11-13 Michael Albinus <michael.albinus@gmx.de>
5078
b7c7a4d1 5079 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5080 Vdbus_registered_functions_table, because it contains also
5081 properties. Fix docstring.
b7c7a4d1 5082 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5083
8f11f7ec
SM
50842009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5085
5086 * alloc.c (mark_object): Don't reprocess marked strings.
5087 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5088 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5089
8a605fe8
KH
50902009-11-13 Kenichi Handa <handa@m17n.org>
5091
8f11f7ec 5092 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5093 semantics of Vword_combining_categories.
5094 (Vword_combining_categories): Describe the slight change of the
5095 semantics.
5096
241c4680
EZ
50972009-11-13 Eli Zaretskii <eliz@gnu.org>
5098
5099 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5100
5101 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5102
5d58e44c
SM
51032009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5104
5105 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5106
5e13f9d3
JB
51072009-11-12 Juanma Barranquero <lekktu@gmail.com>
5108
5109 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5110
cf54c754
DR
51112009-11-11 David Reitter <david.reitter@gmail.com>
5112
5113 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5114 variables to fix 2009-11-09 change.
5115
a4ada374
DN
51162009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5117
91433552
DN
5118 * process.c (ifflag_def): Make flag_sym constant.
5119 (Fnetwork_interface_info): Use a constant pointer.
5120 (ifflag_table):
5121 * xfns.c (cursor_bits):
5122 * xdisp.c (power_letter):
5123 * termcap.c (speeds, esctab):
5124 * sysdep.c (baud_convert):
5125 * keyboard.c (lispy_accent_codes, modifier_names):
5126 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5127 (jpeg_format, tiff_format, gif_format, svg_format)
5128 (interlace_start, interlace_increment, gs_format):
5129 * gtkutil.c (separator_names):
5130 * fringe.c (swap_nibble):
5131 * fns.c (base64_value_to_char, base64_char_to_value):
5132 * fileio.c (make_temp_name_tbl):
5133 * coding.c (suffixes): Make constant.
5134
f4265f6c
DN
5135 * frame.c (make_initial_frame):
5136 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5137 build_string.
5138 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5139
04420943
DN
5140 * s/freebsd.h:
5141 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5142
0a5d24ae
DN
5143 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5144 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5145
a4ada374
DN
5146 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5147 * xterm.c (syms_of_xterm):
5148 * xfaces.c (syms_of_xfaces):
5149 * xdisp.c (syms_of_xdisp):
5150 * lread.c (syms_of_lread):
5151 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5152 build_string.
91433552 5153
a4ada374
DN
5154 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5155
af98fc7f
SM
51562009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5157
8ab1650e 5158 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5159
e90292a9
JD
51602009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5161
5162 * keyboard.h: Declare timer_check.
5163
5164 * keyboard.c (timer_check_2): New function that does what the old
5165 timer_check did.
5166 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5167 returned, i.e. don't return -1 with timers pending.
5168
5169 * process.c: Remove extern declaration of timer_check.
5170
5171 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5172 even if timer_check returned -1.
5173
af98fc7f
SM
5174 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5175 xg_dialog_data.
e90292a9
JD
5176 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5177 the event loop.
5178 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5179 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5180 Destroy the dialog after xg_dialog_run.
5181
045b83c0
SM
51822009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5183
5184 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5185
1fb99a3a
JD
51862009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5187
5188 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5189
04e452cb
JB
51902009-11-09 Juanma Barranquero <lekktu@gmail.com>
5191
5192 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5193
ef7417fd
SM
51942009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5195
5196 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5197 w32menu.c, and nsmenu.m.
5198 Simplify the obsolete case where position is nil.
5199 (cleanup_popup_menu): New function, moved from nsmenu.m.
5200 (struct skp): Remove slot `notreal'.
5201 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5202 adjust callers.
5203 (single_menu_item): Adjust call to parse_menu_item.
5204 (syms_of_menu): Defsubr x-popup-menu.
5205 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5206 (keymap_panes): Don't export any more.
5207 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5208 (xmenu_show): Declare.
5209 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5210 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5211 * keyboard.h (parse_menu_item): Update declaration.
5212 * xmenu.c (Fx_popup_menu): Remove.
5213 (syms_of_xmenu): Don't defsubr x-popup-menu.
5214 * w32menu.c (Fx_popup_menu): Remove.
5215 (syms_of_w32menu): Don't defsubr x-popup-menu.
5216 * nsmenu.m (cleanup_popup_menu): Remove.
5217 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5218 moved to menu.c's Fx_popup_menu.
5219 (Fx_popup_menu): Remove.
5220 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5221 menu_items (it's done in menu.c already).
5222
424d6179
SM
52232009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5224
5225 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5226 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5227
c0df13a6 52282009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5229
5230 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5231 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5232 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5233 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5234
2de9f71c
SM
52352009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5236
5237 Let integers use up 2 tags to give them one extra bit and thus double
5238 their range.
5239 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5240 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5241 New macros.
5242 (enum Lisp_Type): Use them. Give explicit values.
5243 (Lisp_Type_Limit): Remove.
5244 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5245 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5246 Pay attention to USE_2_TAGS_FOR_INTS.
5247 (INTEGERP): Use LISP_INT_TAG_P.
5248 * fns.c (internal_equal): Simplify the default case.
5249 (sxhash): Use case_Lisp_Int.
5250 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5251 any more.
5252 (Ftype_of): Use case_Lisp_Int.
5253 (store_symval_forwarding): Take into account the fact that Ints can
5254 now have more than one tag.
5255 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5256 buffer_slot_type_mismatch):
5257 * xfaces.c (face_attr_equal_p):
5258 * print.c (print_object):
5259 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5260 Use case_Lisp_Int.
5261
323637a2
EZ
52622009-11-06 Eli Zaretskii <eliz@gnu.org>
5263
7ac65b38
EZ
5264 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5265
323637a2
EZ
5266 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5267 warning.
5268
e511451f
JD
52692009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5270
5271 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5272
5273 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5274
5275 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5276 ButtonPressRelease and MotionNotify (bug#4870).
5277
5e2327cf
DN
52782009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5279
5adc433e
DN
5280 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5281
d67b4f80
DN
5282 * xterm.c (syms_of_xterm):
5283 * xselect.c (syms_of_xselect):
5284 * xmenu.c (syms_of_xmenu):
5285 * xfns.c (syms_of_xfns):
5286 * xfaces.c (syms_of_xfaces):
5287 * xdisp.c (syms_of_xdisp):
5288 * window.c (syms_of_window):
5289 * w32fns.c (syms_of_w32fns):
5290 * undo.c (syms_of_undo):
5291 * textprop.c (syms_of_textprop):
5292 * terminal.c (syms_of_terminal):
5293 * syntax.c (syms_of_syntax):
5294 * sound.c (syms_of_sound):
5295 * search.c (syms_of_search):
5296 * print.c (syms_of_print):
5297 * minibuf.c (syms_of_minibuf):
5298 * macros.c (syms_of_macros):
5299 * keymap.c (syms_of_keymap, initial_define_key)
5300 (initial_define_lispy_key):
5301 * keyboard.c (syms_of_keyboard):
5302 * insdel.c (syms_of_insdel):
5303 * image.c (syms_of_image):
5304 * fringe.c (syms_of_fringe):
5305 * frame.c (syms_of_frame):
5306 * fontset.c (syms_of_fontset):
5307 * fns.c (syms_of_fns):
5308 * fns.c (syms_of_fns):
5309 * fileio.c (syms_of_fileio):
5310 * fileio.c (syms_of_fileio):
5311 * eval.c (syms_of_eval):
5312 * doc.c (syms_of_doc):
5313 * dispnew.c (syms_of_display):
5314 * dired.c (syms_of_dired):
5315 * dbusbind.c (syms_of_dbusbind):
5316 * data.c (syms_of_data):
5317 * composite.c (syms_of_composite):
5318 * coding.c (syms_of_coding):
5319 * cmds.c (syms_of_cmds):
5320 * charset.c (define_charset_internal, syms_of_character):
5321 * ccl.c (syms_of_ccl):
5322 * category.c (syms_of_category, init_category_once):
5323 * casetab.c (syms_of_casetab):
5324 * casefiddle.c (syms_of_casefiddle):
5325 * callint.c (syms_of_callint):
5326 * bytecode.c (syms_of_bytecode):
5327 * buffer.c (keys_of_buffer, syms_of_buffer):
5328 * alloc.c (syms_of_alloc):
5329 * process.c (syms_of_process, init_process):
5330 * lread.c (syms_of_lread, init_obarray):
5331 * font.c (build_style_table):
5332 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5333 intern_c_string, calls to make_pure_string with
5334 make_pure_c_string. Use pure_cons instead of Fcons.
5335
5e2327cf
DN
5336 * process.c (socket_options): Make it const.
5337 (set_socket_option, init_process): Use a const pointer.
5338
5339 * lread.c (intern_c_string): New function.
5340 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5341 (defvar_int): Uset it. Make the name const char*.
5342
5343 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5344 (defvar_int): Update prototypes.
5345 (DEFUN, EXFUN): Support for prototypes is now required.
5346 (intern_c_string): New prototype.
5347 (struct Lisp_Subr): Make symbol_name constant.
5348
5349 * font.c (struct table_entry): Remove unused member. Make NAMES
5350 constant.
5351 (weight_table, slant_table, width_table): Make constant.
5352
5353 * emacs.c (struct standard_args): Make name and longname constant.
5354
5355 * character.h (DEFSYM): Use intern_c_string.
5356
a56eaaef
DN
53572009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5358
5359 * alloc.c (make_pure_c_string): New function.
5360
5361 * eval.c (Fautoload): Purecopy all arguments.
5362
f6a07420
KH
53632009-11-05 Kenichi Handa <handa@m17n.org>
5364
5365 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5366 the buffer in case of replace.
5367
5d28d4b1
DN
53682009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5369
5370 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5371
b349d111
SM
53722009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5373
d528b1ce
SM
5374 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5375 when applicable (bug#4851).
5376
b349d111
SM
5377 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5378 (P_): Support for prototypes is now required.
5379
c38eb027
CY
53802009-10-31 Chong Yidong <cyd@stupidchicken.com>
5381
5382 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5383 (Bug#4827).
5384
0405f8d9
EZ
53852009-10-30 Eli Zaretskii <eliz@gnu.org>
5386
d528b1ce 5387 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5388
ca0a881a
DN
53892009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5390
5391 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5392
d528b1ce
SM
5393 * lread.c (Fload): Purecopy the file name when building
5394 Vpreloaded_file_list.
ca0a881a 5395
47e0e0e4
JR
53962009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5397
5398 * w32fns.c (syms_of_w32fns): Change default value of
5399 w32-scroll-lock-modifier to nil. (Bug#2827)
5400
057bce6f
JB
54012009-10-26 Juanma Barranquero <lekktu@gmail.com>
5402
782a943e 5403 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5404
242bc74c
AS
54052009-10-26 Andreas Schwab <schwab@redhat.com>
5406
5407 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5408
522d013a
JB
54092009-10-26 Juanma Barranquero <lekktu@gmail.com>
5410
5411 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5412 For delta < 0, skip check that only makes sense when the mini-window
5413 is going to be enlarged. (Bug#4534)
5414
18060980
CY
54152009-10-25 Chong Yidong <cyd@stupidchicken.com>
5416
5417 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5418 string in menu maps (Bug#4471).
5419
fec8f0fe
CY
54202009-10-24 Chong Yidong <cyd@stupidchicken.com>
5421
5422 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5423 FRAME_NS_VIEW on terminal frames (Bug#4765).
5424
10d66ec0
AS
54252009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5426
1cae01f7
AS
5427 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5428 DBUS_TYPE_UINTnn separately to get proper sign extension.
5429
58a12889
AS
5430 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5431 can properly handle unsigned types.
d528b1ce 5432 (make_uid, make_gid): Remove.
58a12889 5433
987c9327
AS
5434 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5435 types again.
5436
522d013a 5437 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5438 (system_process_attributes): Likewise.
5439
905a9ed3
DN
54402009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5441
5442 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5443
5444 * eval.c (Fautoload): Purecopy the filename. Simplify.
5445
5446 * category.c (Fdefine_category): Purecopy docstring.
5447
a599b3e8
AS
54482009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5449
7b792fc9
AS
5450 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5451
a599b3e8
AS
5452 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5453
b35ac83e
CY
54542009-10-23 Chong Yidong <cyd@stupidchicken.com>
5455
5456 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5457 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5458 (Bug#4775).
5459
e8903e00
SM
54602009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5461
5462 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5463 (init_fileio_once):
5464 * lisp.h (init_fileio_once): Remove.
5465 * emacs.c (main): Don't call init_fileio_once.
5466
8f43cbf3
DN
54672009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5468
5469 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5470
26898943
AS
54712009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5472
5473 * doprnt.c (doprnt): Fix overflow check.
5474
5c646d5a
JD
54752009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5476
3132a7ea
JD
5477 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5478
5c646d5a
JD
5479 * xterm.h (x_wait_for_event): Declare it.
5480
5481 * xterm.c (pending_event_wait): New variable.
5482 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5483 see pending_event_wait.eventtype.
5484 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5485 (x_new_font): Call change_frame_size with new rows/columns before we
5486 try to resize the frame.
5c646d5a 5487 (x_wait_for_event): New function.
d528b1ce
SM
5488 (x_set_window_size_1): Don't change gravity unless change_gravity
5489 is set.
5c646d5a
JD
5490 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5491 don't change frame size, instead wait for the ConfigureNotify.
5492 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5493 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5494 (x_initialize): Initialize pending_event_wait.
5495
5496 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5497 size.
5498
5499 * widget.c (EmacsFrameSetValues): Add comment.
5500 (EmacsFrameSetCharSize): Just call x_set_window_size.
5501
5502 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5503 x_wait_for_event.
d528b1ce 5504 (flush_and_sync): Remove again.
5c646d5a
JD
5505 (xg_get_font_name): Suggest monospace if no previous font is known.
5506
e9c1637d
SM
55072009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5508
5509 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5510 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5511
5a72cccb
YM
55122009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5513
5514 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5515 processing pending events when event is filtered for input method.
ab04798f 5516 (Bug#3681)
5a72cccb 5517
2629aa37
JB
55182009-10-20 Juanma Barranquero <lekktu@gmail.com>
5519
5520 * fns.c: Add #endif accidentally removed in previous change.
5521
c3417a74
DN
55222009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5523
5524 * fns.c: Remove code for unsupported system: MAC_OS.
5525 * image.c: Likewise. Include setjmp.h.
5526
9685cef2
JD
55272009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5528
5529 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5530 pixel -1 (bug #4742).
5531
d7306fe6
DN
55322009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5533
019d2c4c
DN
5534 * process.c (create_pty): Remove conditionals for no longer
5535 supported systems: UNIPLUS and RTU.
5536
ee6bacd4
DN
5537 * xterm.c:
5538 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5539
d7306fe6
DN
5540 * alloc.c: Do not define struct catchtag.
5541 * eval.c: Move struct catchtag definition ...
5542 * lisp.h: ... here.
5543
5544 * image.c: Move png.h #include earlier to avoid warnings.
5545
5546 * xterm.c:
5547 * xsmfns.c:
5548 * xselect.c:
5549 * xrdb.c:
5550 * xmenu.c:
5551 * xftfont.c:
5552 * xfont.c:
5553 * xfns.c:
5554 * xfaces.c:
5555 * xdisp.c:
5556 * window.c:
5557 * widget.c:
5558 * w32xfns.c:
5559 * w32uniscribe.c:
5560 * w32term.c:
5561 * w32select.c:
5562 * w32reg.c:
5563 * w32proc.c:
5564 * w32menu.c:
5565 * w32inevt.c:
5566 * w32heap.c:
5567 * w32font.c:
5568 * w32fns.c:
5569 * w32console.c:
5570 * w32.c:
5571 * w16select.c:
5572 * vm-limit.c:
5573 * unexsol.c:
5574 * unexec.c:
5575 * unexcw.c:
5576 * unexaix.c:
5577 * undo.c:
5578 * tparam.c:
5579 * textprop.c:
5580 * terminfo.c:
5581 * terminal.c:
5582 * termcap.c:
5583 * term.c:
5584 * syntax.c:
5585 * sound.c:
5586 * sheap.c:
5587 * search.c:
5588 * scroll.c:
5589 * region-cache.c:
5590 * regex.c:
5591 * ralloc.c:
5592 * process.c:
5593 * print.c:
b024548b
DN
5594 * nsterm.m:
5595 * nsselect.m:
5596 * nsmenu.m:
5597 * nsimage.m:
5598 * nsfont.m:
5599 * nsfns.m:
d7306fe6
DN
5600 * msdos.c:
5601 * minibuf.c:
5602 * menu.c:
5603 * marker.c:
5604 * macros.c:
5605 * keymap.c:
5606 * keyboard.c:
5607 * intervals.c:
5608 * insdel.c:
5609 * indent.c:
5610 * gtkutil.c:
5611 * ftxfont.c:
5612 * ftfont.c:
5613 * fringe.c:
5614 * frame.c:
5615 * fontset.c:
5616 * font.c:
5617 * fns.c:
5618 * floatfns.c:
5619 * filelock.c:
5620 * fileio.c:
5621 * emacs.c:
5622 * editfns.c:
5623 * dosfns.c:
5624 * doprnt.c:
5625 * doc.c:
5626 * dispnew.c:
5627 * dired.c:
5628 * dbusbind.c:
5629 * data.c:
5630 * composite.c:
5631 * coding.c:
5632 * cmds.c:
5633 * cm.c:
5634 * chartab.c:
5635 * charset.c:
5636 * character.c:
5637 * ccl.c:
5638 * category.c:
5639 * casetab.c:
5640 * casefiddle.c:
5641 * callproc.c:
5642 * callint.c:
5643 * bytecode.c:
5644 * buffer.c:
5645 * atimer.c: Include setjmp.h. (Bug#4643)
5646
fd5f21e6
SM
56472009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5648
4c0354d7
SM
5649 Remove leftover table unibyte_to_multibyte_table.
5650 * character.c (unibyte_to_multibyte_table): Remove.
5651 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5652 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5653 * character.h (UNIBYTE_TO_CHAR): New macro.
5654 (MAKE_CHAR_MULTIBYTE): Use it.
5655 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5656 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5657 (message_dolog, set_message_1):
5658 * search.c (Freplace_match):
5659 * editfns.c (Fcompare_buffer_substrings):
5660 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5661 (concat):
5662 * insdel.c (copy_text, count_size_as_multibyte):
5663 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5664 * term.c (produce_glyphs):
5665 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5666 * regex.c (RE_CHAR_TO_MULTIBYTE):
5667 * cmds.c (internal_self_insert):
5668 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5669
fd5f21e6
SM
5670 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5671
4418646e
DN
56722009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5673
5674 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5675
35f5c1d2
JB
56762009-10-16 Juanma Barranquero <lekktu@gmail.com>
5677
5678 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5679
a0cd8f6b
AR
56802009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5681
5682 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5683 still needed under Tiger.
5684
5685 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5686
5687 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5688 __Apple__.
5689
5690 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5691
01a8d3fa
KH
56922009-10-15 Kenichi Handa <handa@m17n.org>
5693
5694 * print.c (print_object): Escape a symbol like "2E10" too.
5695
bf6c75c9 56962009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5697
5698 Cleanups and changes for 64-bit compile under Snow Leopard.
5699 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5700
5701 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5702
c5959062 5703 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5704 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5705 cast argument.
5706 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5707 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5708
5709 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5710
5711 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5712 where appropriate.
5713
5714 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5715 where appropriate.
6e4780c5
JB
5716 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5717 Use stringWithUTF8String.
bf6c75c9
AR
5718 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5719
6e4780c5
JB
5720 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5721 Add formal protocol mention to inheritance.
bf6c75c9
AR
5722 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5723
6e4780c5
JB
5724 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5725 Fix printf format.
bf6c75c9
AR
5726 (ns_query_color): Use CGFloat where appropriate.
5727 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5728 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5729 argument.
5730
3d87f118
AR
5731 * config.in (NS_HAVE_NSINTEGER): Drop.
5732
a95c8102
AR
5733 * dbusbind.c (dbus-method-return-internal)
5734 (dbus-method-error-internal): Use long format in printf, and cast
5735 argument.
5736
5737 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5738 in printf, and cast argument.
5739
6873acca 5740 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5741 cast argument.
5742
9ec6f100
GM
57432009-10-11 Glenn Morris <rgm@gnu.org>
5744
5745 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5746
5be883cd
JD
57472009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5748
5749 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5750 menu bar with a small width so it doesn't enlarge the frame.
5751
d7a39b51
JB
57522009-10-08 Juanma Barranquero <lekktu@gmail.com>
5753
5754 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5755
0c2b6f8e
GM
57562009-10-06 Glenn Morris <rgm@gnu.org>
5757
5758 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5759 SOME_MACHINE_LISP (this enters indirectly via DOC).
5760
e02131a2
EZ
57612009-10-05 Eli Zaretskii <eliz@gnu.org>
5762
5763 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5764
b4744254
EZ
57652009-10-04 Eli Zaretskii <eliz@gnu.org>
5766
5767 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5768 Doc fix.
5769
dbf64827
JB
57702009-10-03 Martin Rudalics <rudalics@gmx.at>
5771
5772 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5773
e9a0aef8
MA
57742009-10-02 Michael Albinus <michael.albinus@gmx.de>
5775
d528b1ce 5776 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5777 used anymore outside fileio.c.
5778
5779 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5780
64eb2b56
JB
57812009-10-01 Juanma Barranquero <lekktu@gmail.com>
5782
5783 * lisp.h (Qdelete_directory_internal):
5784 Declare, instead of Qdelete_directory.
5785
5786 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5787
9d28c33e
SM
57882009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5789
5790 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5791
9d8f3bd9
MA
57922009-10-01 Michael Albinus <michael.albinus@gmx.de>
5793
9d28c33e 5794 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5795 Fdelete_directory. It is not a command anymore. It has no file
5796 name handler.
5797
9694740b
SM
57982009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5799
5800 * xdisp.c (get_next_display_element): Use an enum in last change.
5801
748e162f
KH
58022009-09-28 Kenichi Handa <handa@m17n.org>
5803
9694740b 5804 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5805 unibyte_display_via_language_environment in handling
5806 Vnobreak_char_display.
5807
17efd58d
AR
58082009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5809
5810 * nsterm.h (ns_app_name): New extern variable.
5811
5812 * nsterm.m (ns_app_name): New variable.
5813 (ns_term_init): Set and use it.
5814 (ns_term_shutdown): Use it.
5815
5816 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5817 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5818
5819 * nsfns.m (ns_set_name_iconic, ns_set_name)
5820 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5821 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5822
9694740b
SM
5823 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5824 Remove double-casting in client_data comparison.
31c2d412 5825
3208cb35
YM
58262009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5827
5828 * keyboard.c (make_lispy_event): Remember last wheel direction.
5829 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5830
b7d552d6
GM
58312009-09-26 Glenn Morris <rgm@gnu.org>
5832
5833 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5834 internal.elc. Add term/pc-win.elc.
5835 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5836 term/x-win.elc.
5837 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5838 term/w32-win.elc.
5839 (NS_SUPPORT): New.
5840 (lisp): Add NS_SUPPORT.
5841 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5842
4ff670a8
DR
58432009-09-25 David Reitter <david.reitter@gmail.com>
5844
5845 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5846 on Mac OS X 10.6+ (bug#4513).
5847
feabfb6c
JB
58482009-09-24 Juanma Barranquero <lekktu@gmail.com>
5849
5850 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5851 some parts of Emacs code (like font selection) don't grok them.
5852 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5853
de59072a
AS
58542009-09-24 Andreas Schwab <schwab@redhat.com>
5855
5856 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5857
a489517b
JB
58582009-09-24 Juanma Barranquero <lekktu@gmail.com>
5859
5860 * dired.c (Fdirectory_files): Fix typo in docstring.
5861
0592970c
AR
58622009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5863
5864 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5865 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5866 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5867 under GNUstep.
5868 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5869
5870 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5871 glyph advancement.
5872
48e8a88b
AR
58732009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5874
5875 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5876 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5877
5878 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5879 deleted (bug #4492).
5880
e14f0a78
AR
5881 * nsfont.m (Vns_reg_to_script): New lisp variable.
5882 (syms_of_nsfont): Declare it.
5883 (ns_registry_to_script): New function.
5884 (ns_get_req_script): Call it.
5885 (ns_findfonts): Don't give up on non-unicode registry.
5886
5887 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5888
5b650faa
SM
58892009-09-20 Tom Tromey <tromey@redhat.com>
5890
5891 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5892 batch mode (bug#4228).
5893
a489517b 58942009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5895
5896 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5897 carefully. (Bug #4339)
0bae4e09 5898
fcfe06f3
CY
58992009-09-18 Chong Yidong <cyd@stupidchicken.com>
5900
d798ba87 5901 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5902
31642728
AR
59032009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5904
5905 * emacs.c (inhibit_x_resources): Update doc string for NS.
5906 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5907 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5908
5909 * nsterm.h (ns_no_defaults): Remove.
5910
5911 * nsterm.m (ns_no_defaults): Remove.
5912 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5913 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5914 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5915 don't update the NSWindow itself.
5916 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5917 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5918
5919 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5920 ns_use_qd_smoothing.
5921
5922 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5923 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5924 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5925 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5926
8686ac71
JB
59272009-09-17 Juanma Barranquero <lekktu@gmail.com>
5928
5929 * emacs.c (inhibit_x_resources): New variable.
5930 (main) [HAVE_NS]: Don't process --quick command line option.
5931 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5932
5933 * lisp.h (inhibit_x_resources): Declare it extern.
5934
5935 * w32reg.c (x_get_string_resource):
5936 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5937
e227ba05
EZ
59382009-09-17 Eli Zaretskii <eliz@gnu.org>
5939
362654a6
JB
5940 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5941 Add lisp/term/internal.elc.
e227ba05 5942
742d40e8
SM
59432009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5944
5945 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5946 (bug#4461).
5947
005bd5a2
DN
59482009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5949
5950 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5951
5952 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5953 (OBJECTS_MACHINE): Remove, unused.
5954
f9af9719
SM
59552009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5956
5957 * frame.c (x_get_resource_string): Remove unused.
5958
0307c7d2
JD
59592009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5960
5961 * xterm.c (x_new_font): Call change_frame_size before calling
5962 x_set_window_size, in case frame size won't change.
5963
5964 * frame.c (x_set_font): Remove dead code.
5965
428b13d6
SM
59662009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5967
5968 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5969
5766c380
SM
59702009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5971
5972 * lread.c (Fload): Don't output a message after loading an obsolete
5973 package any more (done in Lisp now).
5974
2fd0161b
CY
59752009-09-12 Chong Yidong <cyd@stupidchicken.com>
5976
5977 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5978
bc5e75b6
SM
59792009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5980
5981 * keymap.c (Fwhere_is_internal): Use nconc2.
5982
c31c985e
AM
59832009-09-11 Alan Mackenzie <acm@muc.de>
5984
5985 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5986 batch mode.
5987
78012bd2
AS
59882009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5989
5990 * xdisp.c (display_mode_element): Detect cycles.
5991
9d889332
SM
59922009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5993
5994 * keymap.c (where_is_internal): Don't erroneously return nil right after
5995 filling the cache.
5996 (where_is_internal_1): Fix up typo.
5997
7ab5d780
GM
59982009-09-11 Glenn Morris <rgm@gnu.org>
5999
6000 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6001 share a common doc-string.
6002
5238a749
SM
60032009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6004
66d77eda
SM
6005 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6006 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6007
5238a749
SM
6008 * keymap.c (QCadvertised_binding): New constant.
6009 (syms_of_keymap): Initialize it.
6010 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6011 if applicable.
6012
19f48442
SM
60132009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6014
50d4ba39
SM
6015 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6016 (parse_menu_item): Streamline since bindings are recomputed all the
6017 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6018 more and don't support lmenu's menu-alias any more either.
6019
a88a5372
SM
6020 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6021 (where_is_internal): Strip it down to only traverse the keymaps.
6022 Move the cache handling from Fwhere_is_internal to here.
6023 (Fwhere_is_internal): Move the handling of remapping and the choice of
6024 the best binding from where_is_internal to here.
6025 Unify the cached/noncached paths, so remapping is also handled
6026 correctly when the cache is used, and so the cache can be used to
6027 speed up remap-handling when applicable.
6028 Give preference to non-remapped bindings.
6029 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6030 non-remapped bindings.
6031 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6032 command remapping.
6033
19f48442
SM
6034 * xdisp.c (display_mode_element): Move list length limit from 50 to
6035 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6036
599498c3 60372009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6038
6039 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6040
f9b7b5ac
SM
60412009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6042
a53af587
JB
6043 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6044 (Bug#4334)
6045
f9b7b5ac
SM
6046 * keymap.c (where_is_internal): Filter out shadowed remappings.
6047 Assume that where_is_internal returns unshadowed bindings to simplify
6048 the code and get rid of the gotos. Use ASIZE.
6049
04f4b72d
JD
60502009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6051
4da146f2
JD
6052 * xterm.c (x_focus_changed): If we get a focusout and pointer
6053 is invisible, make it visible.
6054
04f4b72d
JD
6055 * xterm.h: Remove condition for declaration of
6056 x_*_window_to_frame.
6057
7cef7ce3
SM
60582009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6059
6060 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6061 initial terminal as well.
6062
a54fa5b7
JD
60632009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6064
6065 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6066 x_menubar_window_to_frame.
a54fa5b7 6067
50426a04 6068 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6069 (XTmouse_position): Do not return valid positions
6070 for clicks in the menubar and the toolbar for Gtk+.
6071
6072 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6073 if the widget for the event has the same top level as a frame,
6074 return the frame.
6075 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6076 internal windows, bug #4122.
6077 (x_non_menubar_window_to_frame): Remove.
6078
5a021dd0
GM
60792009-09-02 Glenn Morris <rgm@gnu.org>
6080
6081 * buffer.c (default-major-mode): Move most of the doc from here...
6082 (major-mode): ... to here.
6083
548fe2f3
NR
60842009-08-30 Nick Roberts <nickrob@snap.net.nz>
6085
6086 * process.c (wait_reading_process_output): Keep the descriptor
6087 when pty is used by a non-child process, e.g., in I/O buffer of
6088 GDB this allows inferior to be restarted.
6089
e0840eef
EZ
60902009-08-29 Eli Zaretskii <eliz@gnu.org>
6091
6092 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6093 both branches into one.
6094
82e98df4
SM
60952009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6096
6097 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6098 (main): Use enable-multibyte-characters rather than
6099 default-enable-multibyte-characters. Output a warning message when
6100 running a unibyte session.
6101
890617cb
YM
61022009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6103
6104 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6105 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6106 (copy_data_segment): Also copy __program_vars section.
6107 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6108 (dump_it) [LC_DYLD_INFO]: Use it.
6109
6110 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6111
e7adeadc
EZ
61122009-08-28 Eli Zaretskii <eliz@gnu.org>
6113
6114 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6115 $(SRC)/buildobj.h.
6116 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6117 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6118 $(SRC)/buildobj.h.
6119 (clean): Add buildobj.h.
6120
3ed8bbdc
TZ
61212009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6122
6123 * print.c (print_object): Set escapeflag to 1 when printing
6124 hashtable keys and values.
6125
155a6764
SM
61262009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6127
6128 * lread.c (read_integer): Use doubles (and potentially return a float
6129 number) as we do in string-to-number.
6130 (read1): Use strtol to read integers, signal errors on strtol's
6131 overflow and use floats if strtol's output is too large for
6132 Elisp integers.
6133
877610de
EZ
61342009-08-27 Eli Zaretskii <eliz@gnu.org>
6135
6136 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6137 (make-buildobj-SH): Fix last change.
6138 (SRC): Move to before where it's first used.
6139
ef73e7be
KH
61402009-08-27 Kenichi Handa <handa@m17n.org>
6141
550c8289
KH
6142 * process.c (send_process): Use encode_coding_object instead of
6143 encode_coding_string to perform eol-conversion even if the string
6144 is unibyte.
6145
60afa08d
KH
6146 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6147 character.
6148
ef73e7be 6149 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6150 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6151
7b3a82d7
DN
61522009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6153
5654bf63
DN
6154 * callproc.c (Fcall_process): Remove always true #if.
6155
7b3a82d7
DN
6156 * lisp.h: Replace #if 0 code for checking with text pointing to
6157 the --enable-checking configure flag.
6158
6159 * emacs.c (main): Mention the --enable-profiling configure flag
6160 instead of using CFLAGS.
6161
878bde49
KR
61622009-08-26 Ken Raeburn <raeburn@raeburn.org>
6163
6164 * Makefile.in (buildobj.h): New target.
6165 (doc.o): Depend on it.
6166 (temacs${EXEEXT}): Don't generate buildobj.lst.
6167 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6168 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6169 ($(BLD)/doc.$(O)): Depend on it.
6170 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6171 provided by Eli Zaretskii.)
6172 ($(TEMACS)): Don't generate buildobj.lst.
6173 * doc.c: Include buildobj.h.
6174 (buildobj): New static variable.
6175 (Fsnarf_documentation): Use it, instead of opening and reading
6176 buildobj.lst.
6177
1574224c
MA
61782009-08-25 Michael Albinus <michael.albinus@gmx.de>
6179
6180 * dbusbind.c (Fdbus_call_method)
6181 (Fdbus_call_method_asynchronously): Use English numeric format for
6182 timeout values in doc string.
6183
d9da2f45
KH
61842009-08-25 Kenichi Handa <handa@m17n.org>
6185
ef73e7be
KH
6186 * alloc.c (mark_char_table): New function.
6187 (mark_object): Use mark_char_table for a char-table.
6188
d9da2f45
KH
6189 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6190 (CHAR_TABLE_REF): Use it.
6191
c8edcc01
KR
61922009-08-23 Ken Raeburn <raeburn@raeburn.org>
6193
6194 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6195 before invoking the newly build emacs to check for load-path
6196 shadowing.
6197
7763401b
GM
61982009-08-22 Glenn Morris <rgm@gnu.org>
6199
6200 * Makefile.in (bootstrap_exe): New variable.
6201 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6202 Use ${bootstrap_exe}.
6203
729eadda
EZ
62042009-08-22 Eli Zaretskii <eliz@gnu.org>
6205
6206 * coding.h (encode_coding_string): Don't encode unibyte strings.
6207 (Bug#4047)
6208
eb4c6ace
MA
62092009-08-22 Michael Albinus <michael.albinus@gmx.de>
6210
6211 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6212
6213 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6214 intended as hotfix only.
6215 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6216
36e34d1b
AR
62172009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6218
6219 * nsterm.m (ns_get_color): Update documentation properly for last
6220 change, and clean up loose ends in the code left by it. Fix
6221 longstanding bug with 16-bit hex parsing, and add support for
6222 yet another X11 format (rgb:r/g/b) for compatibility.
6223 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6224 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6225
f983eb8a
SM
62262009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6227
6228 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6229
3f56d3c6
MA
62302009-08-20 Michael Albinus <michael.albinus@gmx.de>
6231
6232 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6233 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6234 (xd_initialize, xd_pending_messages): Check, whether
6235 $DBUS_SESSION_BUS_ADDRESS is set.
6236
fb641d68
YM
62372009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6238
6239 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6240
6241 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6242
cf59a374
GM
62432009-08-20 Glenn Morris <rgm@gnu.org>
6244
6245 * emacs.c (system-type): Doc fix.
6246
1373f3be
SM
62472009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6248
6249 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6250 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6251
058ed861
MA
62522009-08-18 Michael Albinus <michael.albinus@gmx.de>
6253
1373f3be
SM
6254 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6255 New functions.
058ed861
MA
6256 (xd_initialize): Revert change from 2009-08-16.
6257
563a866e 62582009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6259
6260 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6261 font-group vector, return nil.
5fc05db0 6262
e42bdf01
CY
62632009-08-17 Chong Yidong <cyd@stupidchicken.com>
6264
6265 * process.c (status_notify): Don't perform redisplay.
6266 (Fdelete_process, list_processes_1, process_send_signal):
6267 Expliticly perform redisplay.
6268 (wait_reading_process_output): Always check process status, but
6269 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6270
4230ab74
KR
62712009-08-17 Ken Raeburn <raeburn@raeburn.org>
6272
1373f3be 6273 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6274 (XFLOAT_INIT): New macro for storing a float value.
6275 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6276 * fns.c (sxhash): Copy out the value of a float in order to
6277 examine its bytes.
6278 * dbusbind.c (xd_append_arg): Likewise.
6279
4230ab74
KR
6280 * emacs.c (main): Don't call syms_of_data twice.
6281
a0645cdd
MA
62822009-08-16 Michael Albinus <michael.albinus@gmx.de>
6283
6284 * dbusbind.c (xd_initialize): Add connection file descriptor to
6285 input_wait_mask, in order to let select() detect, whether a new
6286 message has been arrived.
ca4f31ea 6287 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6288
485db0ba
MA
62892009-08-15 Michael Albinus <michael.albinus@gmx.de>
6290
1373f3be
SM
6291 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6292 New functions.
485db0ba
MA
6293
6294 * lisp.h (xd_pending_messages): Declare.
6295
6296 * keyboard.c (readable_events): Call xd_pending_messages.
6297
b5b98ff4
CY
62982009-08-15 Chong Yidong <cyd@stupidchicken.com>
6299
1373f3be 6300 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6301
f8354c6e
CY
6302 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6303
b5b98ff4
CY
6304 * buffer.c (set_buffer_internal_1)
6305 (swap_out_buffer_local_variables): Check for unbound local
6306 variables (Bug#4138).
6307
8b9fc636
EZ
63082009-08-14 Eli Zaretskii <eliz@gnu.org>
6309
6310 * process.c (create_pty): Fix last change.
6311
ce959360
CY
63122009-08-13 Chong Yidong <cyd@stupidchicken.com>
6313
6314 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6315 (xbm_load_image): Caller changed.
64b807c9 6316 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6317
c7baf7e9
NR
63182009-08-13 Nick Roberts <nickrob@snap.net.nz>
6319
6320 * process.c (create_pty): New function.
6321 (Fstart_process): Use it to allow Emacs to just associate a pty
6322 with the buffer. See associated change in gdb-mi.el.
6323 (list_processes_1): Deal with no program name.
6324 (start_process_unwind): Use pid == -2 to mean no process.
6325
1ac9108a
SM
63262009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6327
6328 * cmds.c (nonundocount): New global variable.
6329 (keys_of_cmds): Initialize it.
6330 (Fself_insert_command): Use it to combine upto 20 sequential chars
6331 into a single undo entry, just like the Qself_insert_command code in
6332 keyboard.c does.
6333 Call frame_make_pointer_invisible, also like the Qself_insert_command
6334 code in keyboard.c does.
6335 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6336 than its own local replacement for it.
6337
e267324c
KR
63382009-08-10 Ken Raeburn <raeburn@raeburn.org>
6339
1ac9108a 6340 * fns.c (concat): Don't re-set string length to its current value.
77437343 6341
1ac9108a
SM
6342 * coding.h (decode_coding_string, encode_coding_string):
6343 Use SBYTES macro.
f0bed503 6344
1ac9108a 6345 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6346 (doprnt): Merge with doprnt1, discarding lispstrings code.
6347 * lisp.h (doprnt_lisp): Don't declare.
6348
416e006d
JL
63492009-08-07 Juri Linkov <juri@jurta.org>
6350
6351 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6352
6f7d5780
DN
63532009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6354
6355 * print.c (syms_of_print): Undo previous change.
6356
f19a0f5b
TZ
63572009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6358
6359 * lread.c (read1, syms_of_lread): Read hashtables back from the
6360 readable format.
6361
6362 * print.c (print_preprocess, print_object): Print hashtables fully
6363 and readably.
6364 (syms_of_print): Provide 'hashtable-print-readable.
6365
b9173dc2
AR
63662009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6367
6368 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6369 no family set.
6370 (nsfont_open): Handle case when entity has no family.
6371
1586503c
AR
63722009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6373
6374 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6375 element, not a list, for match case.
6376
087048cd
KH
63772009-07-28 Kenichi Handa <handa@m17n.org>
6378
6379 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6380 rigidly.
6381
6382 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6383 font_parse_xlfd. Check font properties more rigidly.
6384
780c2506
DN
63852009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6386
31fd7c5c
JB
6387 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6388 bsd-common.h.
780c2506 6389
a8c0cc18
KH
63902009-07-27 Kenichi Handa <handa@m17n.org>
6391
6392 * xfaces.c (face_with_height): Call font_clear_prop.
6393
4fbe2306
CY
63942009-07-26 Chong Yidong <cyd@stupidchicken.com>
6395
111d9af3
CY
6396 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6397
6398 * xterm.c (x_term_init): Use Qx.
6399
4fbe2306
CY
6400 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6401
1ac9108a 6402 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6403 (ns_get_color): Revert 2009-07-16 change.
6404
beb0b7f9
EZ
64052009-07-25 Eli Zaretskii <eliz@gnu.org>
6406
6407 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6408 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6409
2baf5e76
KR
64102009-07-25 Ken Raeburn <raeburn@raeburn.org>
6411
1ac9108a
SM
6412 * coding.h (decode_coding_string, encode_coding_string):
6413 Use SCHARS macro.
8890e5f5 6414
2baf5e76 6415 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6416 (load_depth): Delete.
2baf5e76
KR
6417 (Qload_in_progress): New variable.
6418 (load_unwind): Don't reference load_depth or load_in_progress.
6419 (Fload): Likewise; specbind Qload_in_progress instead.
6420 (init_lread): Don't initialize load_depth.
6421 (syms_of_lread): Initialize and protect Qload_in_progress.
6422
1395c6f5
AR
64232009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6424
6425 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6426
4e2f36cf
AR
64272009-07-23 Yavor Doganov <yavor@gnu.org>
6428
6429 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6430
5dd9a6f7
AR
64312009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6432
6433 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6434 Bugs 3792, 3720, 2402.
6435 (ns_lookup_indexed_color): Check for bad index.
6436 (ns_index_color): Init unused slot to 0.
6437 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6438 Bug 3714, possibly 3082.
5dd9a6f7 6439
c902b920
JR
64402009-07-22 Jason Rumney <jasonr@gnu.org>
6441
1ac9108a
SM
6442 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6443 Position IME window at cursor (Bug#2570).
c902b920
JR
6444 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6445 (globals_of_w32fns): Dynamically load functions required above.
6446
6447 * w32term.c (w32_draw_window_cursor): Send message to reposition
6448 any IME window.
6449
090101cf
CY
64502009-07-21 Chong Yidong <cyd@stupidchicken.com>
6451
6452 * fileio.c: Revert 2009-07-16 changes.
6453 (Vauto_save_include_big_deletions): New variable.
6454 (Fdo_auto_save): Disable auto-save only if
6455 auto-save-include-big-deletions is nil.
6456
e6583e3d
CY
64572009-07-21 Chong Yidong <cyd@stupidchicken.com>
6458
6459 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6460 the overflowed pixels into account (Bug#3879).
6461
ece435a5
KR
64622009-07-21 Ken Raeburn <raeburn@raeburn.org>
6463
6464 * lread.c (load_depth): New variable.
6465 (Fload, load_unwind, init_lread): Set it to the load recursion
6466 depth; set load_in_progress as a simple boolean based on the
6467 current load_depth. (Bug#3892)
6468
40b2d973
AR
64692009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6470
6471 * nsfont.m (ns_has_attribute): Remove.
6472 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6473
10be7e0d
JL
64742009-07-18 Juri Linkov <juri@jurta.org>
6475
6476 * process.c (Fset_process_query_on_exit_flag): Mention killing
6477 a buffer in docstring.
6478
fa055055
KH
64792009-07-17 Kenichi Handa <handa@m17n.org>
6480
6481 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6482
042f7b69
YM
64832009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6484
6485 * nsfns.m (Fns_set_alpha): Remove function.
6486 (syms_of_nsfns): Don't defsubr it.
6487
6488 * nsterm.m (ns_get_color): Remove incompatible color formats.
6489 (ns_color_to_lisp): Generate #rrggbb color format string.
6490
4be941e3
RS
64912009-07-16 Richard Stallman <rms@gnu.org>
6492
6493 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6494 (Fset_buffer_auto_saved): Handle save_length = -2.
6495
4e6b227d
CY
64962009-07-16 Chong Yidong <cyd@stupidchicken.com>
6497
6498 * xterm.c (Qx_gtk_map_stock): New var.
6499
6500 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6501 of calling intern each time.
6502
a1856973
YM
65032009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6504
6505 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6506 does tiling.
6507
6508 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6509
497e54d8
KH
65102009-07-14 Kenichi Handa <handa@m17n.org>
6511
72d36834
KH
6512 * font.c (font_vconcat_entity_vectors): New function.
6513 (struct font_sort_data): New member font_driver_preference.
6514 (font_compare): Check font_driver_preference.
6515 (font_sort_entities): The format of the first argument changed.
6516 (font_delete_unmatched): Likewise.
6517 (font_list_entities): The return type changed.
6518 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6519 (font_find_for_lface): Adjuste for the above changes.
6520 Don't suppress the checking of C even if the repertory supports it.
6521 (Flist_fonts): Adjust for the above changes.
72d36834 6522
1ac9108a
SM
6523 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6524 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6525 Reject a font who has adstyle property that is different from a
6526 langname derived from registry property.
1ac9108a 6527 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6528
b6046155
EZ
65292009-07-13 Eli Zaretskii <eliz@gnu.org>
6530
6531 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6532 local copy of dirfilename.
6533
fb6b6049
KH
65342009-07-13 Kenichi Handa <handa@m17n.org>
6535
e2402a5e
KH
6536 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6537 against max_char.
6538
fb6b6049
KH
6539 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6540 calling XSYMBOL (sym).
6541
65156807
EZ
65422009-07-11 Eli Zaretskii <eliz@gnu.org>
6543
1ac9108a
SM
6544 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6545 New function.
6546 (directory_files_internal) [WINDOWSNT]:
6547 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6548 the filesystem of the directory is fast or slow.
6549
6550 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6551 file name.
6552 (is_slow_fs): New function.
6553 (stat): Use it to determine whether to issue more system calls to
6554 get accurate file attributes, when w32-get-true-file-attributes is
6555 `local'.
6556
e0ab5fcf
JD
65572009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6558
6559 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6560 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6561 parameter font-parameter as default to the font dialog.
6562
784ceded
KH
65632009-07-10 Kenichi Handa <handa@m17n.org>
6564
6565 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6566
fb8edc0b
EZ
65672009-07-09 Eli Zaretskii <eliz@gnu.org>
6568
1ac9108a 6569 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6570
fb8edc0b
EZ
6571 * w32.c (stat): Treat UNC file names as residing on remote
6572 drives. (Bug#3542)
6573
635c75b1
KH
65742009-07-09 Kenichi Handa <handa@m17n.org>
6575
6576 * fontset.c (fontset_find_font): Fix previous change.
6577
c1d5ce94
MA
65782009-07-08 Michael Albinus <michael.albinus@gmx.de>
6579
6580 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6581 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6582 error flag.
6583
edb61b39
KH
65842009-07-08 Kenichi Handa <handa@m17n.org>
6585
374bf7e4
KH
6586 * fontset.c (fontset_find_font): Fix the logic of handling
6587 charset_matched.
6588 (font_for_char): Delete unused var.
6589 (generate_ascii_font_name): Delete it.
6590
edb61b39
KH
6591 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6592
6593 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6594 (encode_coding_sjis): Fix the code range check.
6595
0f3f018c
CY
65962009-07-07 Chong Yidong <cyd@stupidchicken.com>
6597
6598 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6599 (Fexpand_file_name): Copy string data properly (Bug#3772).
6600
fcaf6f3a
JD
66012009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6602
6603 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6604 first MapNotify.
6605
6809ca75
KH
66062009-07-07 Kenichi Handa <handa@m17n.org>
6607
6608 * character.h (unibyte_has_multibyte_table): Delete extern.
6609 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6610
6611 * charset.c (Fset_charset_priority): Update charset_unibyte.
6612 (syms_of_charset): Initialize charset_unibyte.
6613
6614 * character.c (unibyte_has_multibyte_table): Delete it.
6615 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6616 charset_unibyte.
6617 (multibyte_char_to_unibyte_safe): Likewise.
6618 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6619
1ac9108a 6620 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6621 (x_produce_glyphs): Likewise.
6622
6623 * .gdbinit (xcharset): Fix the treating $arg0.
6624
ad9e2d54
EZ
66252009-07-04 Eli Zaretskii <eliz@gnu.org>
6626
6627 Emulation of `getloadavg' on MS-Windows.
50426a04 6628 * w32.c: Include float.h.
ad9e2d54
EZ
6629 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6630 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6631 (get_native_system_info, get_system_times): New functions.
6632 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6633 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6634 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6635 g_b_init_get_system_times, and num_of_processors.
6636
0a3472c7
JR
66372009-07-03 Jason Rumney <jasonr@gnu.org>
6638
6639 * w32term.c (w32_initialize): Use standard types.
6640
80904120
EZ
66412009-07-03 Eli Zaretskii <eliz@gnu.org>
6642
6643 * dired.c (Ffile_attributes): Decode user and group names by the
6644 locale's encoding. (Bug#3443)
6645
6978862d
DN
66462009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6647
f8d23104
DN
6648 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6649 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6650
6651 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6652
6653 * term.c (init_tty): Remove spurious #ifdef.
6654
6978862d
DN
6655 * m/mips.h: Mention this file is also used for netbsd.
6656 * m/pmax.h: Remove file.
6657
e044e4fc
JD
66582009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6659
6660 * xterm.h (struct x_display_info): Add invisible_cursor.
6661 (struct x_output): Add current_cursor.
6662
6663 * xterm.c (XTtoggle_invisible_pointer): New function.
6664 (x_define_frame_cursor): Don't define cursor if invisible or the
6665 same as before. Set current_cursor.
6666 (x_create_terminal): Set toggle_invisible_pointer_hook.
6667
6668 * xfns.c (make_invisible_cursor): New function.
6669 (x_set_mouse_color): Call make_invisible_cursor.
6670 Set current_cursor.
6671 (x_window): Set current_cursor.
6672
6673 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6674
6675 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6676 inserting a character.
6677 (read_avail_input): Call frame_make_pointer_visible.
6678
6679 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6680 (frame_make_pointer_invisible, frame_make_pointer_visible):
6681 New functions.
e044e4fc
JD
6682 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6683
6684 * frame.h: Declare frame_make_pointer_invisible and
6685 frame_make_pointer_visible.
6686 (struct frame): Add pointer_invisible.
6687
574c8efa
JD
66882009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6689
7b507248
JD
6690 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6691 frame isn't visible.
6692 (xg_frame_resized): If width/height is -1, get size of window
6693 from X server.
6694
6695 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6696 for MapNotify.
6697
835bdaa7 6698 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6699 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6700 (flush_and_sync): Reintroduce.
574c8efa 6701
3f1c6666 67022009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6703
31fd7c5c 6704 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6705
6706 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6707 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6708
6709 * frame.h: Declare Qsticky.
6710
cad9ef74
JD
6711 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6712
6713 * nsfns.m (ns_frame_parm_handlers): Ditto.
6714
6715 * frame.c: Declare Qsticky.
6716 (frame_parms): Add sticky.
6717
6718 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6719
6720 * xterm.h: Declare x_set_sticky.
6721
6722 * xterm.c (x_set_sticky): New function.
6723
69b16610
JD
6724 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6725 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6726 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6727
6728 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6729
6730 * frame.c: Qmaximized is new.
6731 (x_set_frame_parameters): Do not handle fullscreen specially.
6732 Only set width and height if explicitly set.
6733 (x_set_fullscreen): Handle Qmaximized.
6734 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6735 (syms_of_frame): Initialize Qmaximized.
6736
1ac9108a
SM
6737 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6738 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6739
6740 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6741 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6742 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6743 set gravity to NorthWestGravity when USE_GTK.
6744 (set_wm_state): New function.
31fd7c5c 6745 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6746 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6747 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6748 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6749 to x_real_positions and x_fullscreen_adjust.
6750
6751 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6752 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6753 flush_and_sync.
6754 (xg_height_changed): New function.
6755 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6756 and gtk_window_set_policy. Set frame gravity after parsing the
6757 geometry string.
3f1c6666
JD
6758 (xg_update_frame_menubar, free_frame_menubar)
6759 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6760 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6761 Remove calls to xg_frame_set_char_size.
6762
fd503d99
KH
67632009-07-01 Kenichi Handa <handa@m17n.org>
6764
6765 * keyboard.c (decode_keyboard_code): New function.
6766 (tty_read_avail_input): Decode the input bytes if necessary.
6767
1ac9108a
SM
6768 * coding.c (setup_coding_system):
6769 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6770 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6771 use Qno_conversion.
6772
24ed93fb
YM
67732009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6774
6775 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6776
99061dfc
CY
67772009-06-30 Chong Yidong <cyd@stupidchicken.com>
6778
1ac9108a 6779 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6780
ff90fbde
JR
67812009-06-30 Jason Rumney <jasonr@gnu.org>
6782
6783 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6784 is already loaded.
6785 Set user model ID if supported (bug#1849).
6786
5f445726
JM
67872009-06-29 Jim Meyering <meyering@redhat.com>
6788
6789 Remove useless if-before-xfree test.
6790 * nsfont.m (nsfont_close): Remove useless test.
6791 * term.c (delete_tty): Likewise.
6792 * w32.c (system_process_attributes): Likewise.
6793 * w32font.c (w32font_close): Likewise.
6794 * xfaces.c (x_free_gc): Likewise.
6795 * xselect.c (buffer): Likewise.
6796
b9607587
AS
67972009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6798
6799 * process.c (send_process): Keep decoded string in a local
6800 variable and protect it from GC. (Bug#3521)
6801
89ba96f4
EZ
68022009-06-28 Eli Zaretskii <eliz@gnu.org>
6803
6804 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6805 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6806
098a1589
CY
68072009-06-28 Chong Yidong <cyd@stupidchicken.com>
6808
485422be
CY
6809 * xdisp.c (start_display, handle_face_prop)
6810 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6811 (redisplay_window, try_window_id, produce_image_glyph):
6812 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6813
098a1589
CY
6814 * xterm.c (x_update_window_begin, x_new_focus_frame)
6815 (x_scroll_bar_handle_click, handle_one_xevent)
6816 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6817 (x_make_frame_visible, x_make_frame_invisible)
6818 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6819 code chunks that are now obsolete.
6820
78c38319
MA
68212009-06-28 Michael Albinus <michael.albinus@gmx.de>
6822
6823 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6824 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6825 for hours, when optimzation is enabled.
6826 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6827 (xd_read_message): Make them static.
6828
4189ed40
CY
68292009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6830
6831 * term.c (turn_on_face): Allow simultaneously bold and dim
6832 terminal faces (Bug#3530).
6833
cd9b5e16
CY
68342009-06-27 Chong Yidong <cyd@stupidchicken.com>
6835
4e23bedb
CY
6836 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6837
cd9b5e16
CY
6838 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6839 truncation glyphs (Bug#3686).
6840
07cc3c35
GM
68412009-06-27 Glenn Morris <rgm@gnu.org>
6842
6843 * m/pmax.h: Restore file, with only netbsd portions.
6844
31fd7c5c 68452009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6846
cd9b5e16 6847 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6848
42d4a64f
KH
68492009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6850
6851 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6852 the arg FORCE_SYMBOL.
6853
930fe55b 68542009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6855
6856 * fontset.c (fontset_find_font): When a usable rfont_def is found
6857 in a fallback font-group, make it the first element of the group.
6858
57ebc3fd
CY
68592009-06-24 Chong Yidong <cyd@stupidchicken.com>
6860
6861 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6862
f084f942
KH
68632009-06-24 Kenichi Handa <handa@m17n.org>
6864
6865 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6866 set for C.
6867 (fontset_font): Record the availability of a font for C both in
6868 the realized fontsets of the current one and the default one.
6869
2f686c87
DN
68702009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6871
6872 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6873 conditional, it is always defined on AIX.
6874
666e158e
MB
68752009-06-23 Miles Bader <miles@gnu.org>
6876
6877 * window.c (Vrecenter_redisplay): New variable.
6878 (syms_of_window): Initialize it.
6879 (Qtty): New extern declaration.
6880 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6881
c6da7cd2
JM
68822009-06-23 Jim Meyering <meyering@redhat.com>
6883
1ac9108a
SM
6884 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6885 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6886 pointer dereferences are guaranteed to be valid.
c6da7cd2 6887
678dca3d
KH
68882009-06-23 Kenichi Handa <handa@m17n.org>
6889
74d75424
KH
6890 * emacs.c (main): Call init_font ().
6891
6892 * font.h (Vfont_log): Extern it.
6893 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6894
6895 * font.c (font_sort_entities, font_list_entities)
6896 (font_matching_entity, font_open_entity)
6897 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6898 (Vfont_log): Delete static.
6899 (font_log_env_checked): Delete this variable.
6900 (font_add_log): Don't check font_log_env_checked.
6901 (font_deferred_log): Check Vfont_log.
6902 (init_font): New function.
6903
678dca3d
KH
6904 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6905
6906 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6907
6908 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6909
6910 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6911
6912 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6913 (face_for_char): Don't call font_deferred_log here.
6914 (font_for_char): Likewise.
6915
8a668709
CY
69162009-06-22 Chong Yidong <cyd@stupidchicken.com>
6917
9a01ee33
CY
6918 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6919 rather than its background_width for drawing the overline and
6920 underline (Bug#489).
6921
6922 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6923 rather than its background_width for drawing the overline and
6924 underline (Bug#489).
ec7c9926
CY
6925 (xg_default_icon_file): New variable.
6926 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6927 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6928
8a668709
CY
6929 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6930 (load_overlay_strings): Remove externs.
6931 (fast_find_position): Function deleted.
6932 (mouse_face_from_buffer_pos): New function, based on
6933 fast_find_position. Correctly handle before-strings,
6934 display-strings, and after-strings (Bug#1220).
6935 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6936
4d4c02d8
CY
69372009-06-21 Chong Yidong <cyd@stupidchicken.com>
6938
1ac9108a 6939 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6940 (move_it_in_display_line_to, move_it_in_display_line_to)
6941 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6942
70243478
CY
69432009-06-21 Chong Yidong <cyd@stupidchicken.com>
6944
6945 * Branch for 23.1.
6946
13087e59
JR
69472009-06-21 Jason Rumney <jasonr@gnu.org>
6948
6949 * w32term.c (keyboard_codepage): New static variable.
6950 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6951 (w32_read_socket) [WM_CHAR]: Use it to decode character
6952 input (bug#3237).
6953 (w32_initialize): Initialize it.
6954 (codepage_for_locale): New function.
6955
4735b74e
KR
69562009-06-20 Ken Raeburn <raeburn@raeburn.org>
6957
6958 * process.c (status_message): Pass Faset index argument as a lisp
6959 object, so as to work with USE_LISP_UNION_TYPE.
6960
0e727afa
YM
69612009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6962
6963 * coding.c (Ffind_coding_systems_region_internal):
6964 Cache checked characters.
6965
cf299835
KH
69662009-06-18 Kenichi Handa <handa@m17n.org>
6967
1ac9108a 6968 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6969
90f20d94
AS
69702009-06-18 Andreas Schwab <aschwab@redhat.com>
6971
6972 * xdisp.c (redisplay_internal): Check that the frame is still
6973 live after redisplay of its windows.
6974 (redisplay_windows): Check that the window is still live.
6975
7f1faf1c
KH
69762009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6977
6978 * coding.c (detect_coding_utf_16): Fix previous change.
6979
cc13543e
KH
69802009-06-16 Kenichi Handa <handa@m17n.org>
6981
6982 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6983 UTF-16 by checking the dispersion of Eth and Oth bytes.
6984
977b85f4
AS
69852009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6986
6987 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6988
66bd43d1
KH
69892009-06-15 Kenichi Handa <handa@m17n.org>
6990
6991 * process.c (status_message): Fix previous change. Be sure to
6992 decode a localized string.
6993
cb5ca9c5
YM
69942009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6995
6996 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6997 add comment explaining why.
6998
ec7709ba 69992009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7000
ec7709ba 7001 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7002
4b7f335c
AR
70032009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7004
7005 * nsfont.m (ns_attribute_value): Remove.
7006 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7007 (ns_has_attribute): Shrink the normal range.
7008 (ns_findfonts): Don't worry about requested spec in determining
7009 need for synthItal.
e41820ee 7010 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7011
73b26103
SZ
70122009-06-14 Seiji Zenitani <zenitani@mac.com>
7013
7014 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7015
5753e4da
KH
70162009-06-11 Kenichi Handa <handa@m17n.org>
7017
7018 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7019 overhang for the static composition case.
7020
3561b671
KH
70212009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7022
5753e4da
KH
7023 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7024 overhang for the automatic composition case.
7025
3561b671
KH
7026 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7027 composition case.
7028
852bbd41
CY
70292009-06-10 Chong Yidong <cyd@stupidchicken.com>
7030
7031 * xdisp.c (get_next_display_element): When handling wrap-prefix
7032 and line-prefix, treat \n as a control character (bug#3502).
7033
9903d1e6
KH
70342009-06-10 Kenichi Handa <handa@m17n.org>
7035
7036 * font.c (font_parse_family_registry): Fix for one-char foundry.
7037 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7038
0bcbaaaa
CY
70392009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7040
7041 * process.c (status_message): Fix handling of multibyte signal
7042 string (Bug#3499).
7043
40aa3f13
JM
70442009-06-09 Jim Meyering <meyering@redhat.com>
7045
1f80c7e2
CY
7046 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7047 color name is missing.
40aa3f13 7048
72d51285
KH
70492009-06-09 Kenichi Handa <handa@m17n.org>
7050
7051 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7052 FROM-CODE and TO-CODE are codepoints of CHARSET.
7053
c1d04d84
AR
70542009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7055
7056 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7057
70582009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7059
7060 Changes to support :script/:lang/:otf in NS font driver.
7061 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7062 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7063 indicate not part of font driver interface, and change callers.
7064 (ns_get_family): Remove pointless null check.
7065 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7066 ns_spec_to_descriptor, ns_descriptor_to_entity.
7067 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7068 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7069 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7070 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7071 (ns_get_req_script, ns_accumulate_script_ranges)
7072 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7073 New functions.
7074 (nsfont_list, nsfont_match): Use ns_findfonts.
7075 (nsfont_open): Use font descriptor instead of traits.
7076 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7077 (dump_glyphstring): Rename to ns_dump_glyphstring.
7078
c7eb9816
AR
7079 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7080
c1d04d84
AR
7081 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7082
7083 * fontset.c (fontset_from_font): Remove NS-specific code.
7084
ec7709ba 70852009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7086
7087 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7088 nonactive windows.
7089
31fd7c5c 70902009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7091
1ac9108a 7092 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7093
68852c13 70942009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7095
7096 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7097
6756cd1d
CY
70982009-06-07 Chong Yidong <cyd@stupidchicken.com>
7099
7100 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7101 account for the overflowing of newlines into the last glyph on the
7102 display line (Bug#3482).
7103
28bf482a
DR
71042009-06-05 David Reitter <david.reitter@gmail.com>
7105
ec7709ba
JB
7106 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7107 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7108 Fns_selection_exists_p, Fns_selection_owner_p.
7109
fdb55376
JR
71102009-06-03 Jason Rumney <jasonr@gnu.org>
7111
7112 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7113 available. (Bug#3379)
7114
05129fbe
KH
71152009-05-29 Kenichi Handa <handa@m17n.org>
7116
1ac9108a
SM
7117 * coding.c (get_translation_table):
7118 Check Venable_character_translation.
05129fbe 7119
ec7709ba 71202009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7121
ec7709ba
JB
7122 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7123 (x_make_frame_visible): Move frame to front rather than calling
15891144 7124 ns_raise_frame().
ec7709ba 7125 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7126 isn't key window.
ec7709ba 7127 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7128 drawRect may be called by NSView even if the frame is hidden.
7129
ec7709ba
JB
7130 * nsfns.m (Fx_create_frame): Follow other ports in
7131 determining visibility; default to t. Ensure async_visible is set.
15891144 7132
21f73755
EZ
71332009-05-23 Eli Zaretskii <eliz@gnu.org>
7134
7135 * dired.c (Ffile_attributes): Doc fix.
7136
34001e41
CY
71372009-05-22 Chong Yidong <cyd@stupidchicken.com>
7138
7139 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7140
46306a17
SM
71412009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7142
7143 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7144 and xfont_scratch_props.
7145 (syms_of_xfont): Do it here instead.
7146 (xfont_find_ccl_program): Delete, unused.
7147 (xfont_open): Delete unused var `i'.
7148
ef6e0694
KH
71492009-05-21 Kenichi Handa <handa@m17n.org>
7150
7151 * fontset.c (Qlatin): Don't make it static.
7152
46306a17
SM
7153 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7154 New functions.
ef6e0694
KH
7155 (xfont_scripts_cache, xfont_scratch_props): New variables.
7156 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7157 (xfont_list_pattern): Argument changed. Callers changed.
7158 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7159 (xfont_list): Don't reject a font spec with :script property.
7160 (xfont_has_char): Fix setting of encoding.
7161 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7162 xfont_scratch_props.
7163
71642009-05-19 Kenichi Handa <handa@m17n.org>
7165
46306a17 7166 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7167 Callers changed.
7168
71692009-05-18 Kenichi Handa <handa@m17n.org>
7170
7171 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7172
ac71ced7
SM
71732009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7174
7175 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7176 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7177
1c6d1051
YM
71782009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7179
7180 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7181 (x_delete_terminal): Dissociate resource database from display and
7182 then call XrmDestroyDatabase before closing display.
7183
9b9b779c
AR
71842009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7185
7186 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7187 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7188 whether selected frame is viable before raising it (based on patch
7189 by David Reitter), and improve commentary.
7190 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7191
cccd42d5
KH
71922009-05-15 Kenichi Handa <handa@m17n.org>
7193
7194 * font.c (Ffont_spec): Check arguments.
7195
337fbd17
CY
71962009-05-14 Chong Yidong <cyd@stupidchicken.com>
7197
7198 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7199 weight when testing attributes (Bug#3282).
7200
47a6002f
JD
72012009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7202
7203 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7204 what we expect to get in the next ConfigureNotify event.
7205
9cb363db
YM
7206 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7207 before Xft one (Bug#1696).
7208
b9126609
CY
72092009-05-07 David Reitter <david.reitter@gmail.com>
7210
7211 * nsfns.m (Fx_display_planes): Compute bitplanes using
7212 NSBitsPerPixelFromDepth (Bug#3207).
7213
27a69fd9
CY
72142009-05-10 Chong Yidong <cyd@stupidchicken.com>
7215
7216 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7217
00f37552
TTN
72182009-05-10 Ulrich Mueller <ulm@gentoo.org>
7219
7220 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7221
2d82a920
DR
72222009-05-07 David Reitter <david.reitter@gmail.com>
7223
ec7709ba
JB
7224 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7225 Respect mouse face background.
2d82a920 7226
46b0d52d
DR
72272009-05-07 David Reitter <david.reitter@gmail.com>
7228
ec7709ba
JB
7229 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7230 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7231 in ns_update_begin and ns_update_end.
7232
ce1b23bb
SM
72332009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7234
5996e1b7
SM
7235 * nsfns.m (ns_get_screen): Rewrite.
7236 Don't presume selected-frame is of type `ns'.
7237
ba98e3a0
SM
7238 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7239 all drivers.
7240
ce1b23bb
SM
7241 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7242
bcda200f
YM
72432009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7244
7245 * keyboard.h (add_user_signal): Fix typo in extern.
7246
7247 * lisp.h (add_user_signal): Remove extern.
7248
7249 * unexelf.c (unexec): Consider a section to precede the .bss section
7250 if its addresses overlap that of .bss.
7251 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7252 instead of dumping process.
7253
864660a2
SM
72542009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7255
7256 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7257
50da4e56
SM
72582009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7259
7260 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7261
51520a1a
DN
72622009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7263
7264 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7265 any statements.
7266
409ea3a1
AS
72672009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7268
59c4c60f
AS
7269 * process.c (read_process_output): Make sure the current buffer is
7270 always restored.
7271
409ea3a1
AS
7272 * coding.c (record_conversion_result): Don't modify
7273 Vlast_code_conversion_error for successful result.
7274 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7275
56f00ed2
KH
72762009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7277
7278 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7279 (load_charset_map): Remove unnecessary code.
56f00ed2 7280
4491c9d2
DR
72812009-04-30 David Reitter <david.reitter@gmail.com>
7282
35f5b128 7283 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7284 through f24.
7285
6970f632
CY
72862009-04-30 Chong Yidong <cyd@stupidchicken.com>
7287
7288 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7289
7290 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7291 face_at_buffer_position.
7292 (face_before_or_after_it_pos, get_next_display_element)
7293 (note_mouse_highlight): Update face_at_buffer_position call.
7294
7295 * term.c (term_mouse_highlight):
7296 * msdos.c (IT_note_mouse_highlight):
7297 * fontset.c (Finternal_char_font):
35f5b128 7298 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7299
7300 * dispextern.h (face_at_buffer_position): Update prototype.
7301
0c616f63
KH
73022009-04-30 Kenichi Handa <handa@m17n.org>
7303
35f5b128 7304 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7305
ad3aaf33
AS
73062009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7307
7308 * callproc.c (Fcall_process): Fix GC protection. Make sure
7309 current buffer is always restored.
7310
c3c963a0
YM
73112009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7312
7313 * atimer.c (init_atimer): Also clear stopped_atimers.
7314
7315 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7316
7e3386cb
YM
7317 * process.c (create_process): Clean up merger residues of
7318 2008-07-17 change.
7319
91f68422
CY
73202009-04-29 Ulrich Mueller <ulm@gentoo.org>
7321
7322 * lread.c (Vread_circle): New variable.
7323 (read1): Disable recursive read if Vread_circle is nil.
7324
24b34550
KH
73252009-04-29 Kenichi Handa <handa@m17n.org>
7326
7327 * fontset.h (set_default_ascii_font): Delete extern.
7328
7329 * fontset.c (set_default_ascii_font): Delete this unused function.
7330
7331 * frame.c (x_set_font): When ARG is a font-object, check if the
7332 font-object matches with the ASCII font-spec of the frame's
9c358bda 7333 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7334
77bf07e1
AS
73352009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7336
7337 * fns.c (Flocale_info): Protect vector from GC during decoding.
7338
7339 * process.c (Fstart_process): Protect argv strings from GC during
7340 encoding.
7341
2c55aacf
AS
73422009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7343
7344 * sysdep.c: Include <ctype.h>.
7345
b892d3c9
DR
73462009-04-27 David Reitter <david.reitter@gmail.com>
7347
35f5b128 7348 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7349 Remove commented-out code.
7350
9d0644c4
JB
73512009-04-26 Johan Bockgård <bojohan@gnu.org>
7352
7353 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7354
b7053016
JR
73552009-04-25 Jason Rumney <jasonr@gnu.org>
7356
7357 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7358
4e8231f3
YM
73592009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7360
7361 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7362 Swap bytes in short integer if fringe bitmap width > 8.
7363
493dcf2c
KH
73642009-04-23 Kenichi Handa <handa@m17n.org>
7365
7366 * xfaces.c (Fx_list_fonts): If a font size is specified in
7367 PATTERN, set it in returned scalable fonts.
7368
401e9e57
CY
73692009-04-22 Chong Yidong <cyd@stupidchicken.com>
7370
708e05dc
CY
7371 * keyboard.c (Fset_input_meta_mode): Doc fix.
7372
7373 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7374
1ac9108a 7375 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7376
7377 * coding.c (Fterminal_coding_system): Doc fix.
7378
7379 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7380 (Fx_display_pixel_height, Fx_display_planes)
7381 (Fx_display_color_cells, Fx_server_max_request_size)
7382 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7383 (Fx_display_mm_height, Fx_display_mm_width)
7384 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7385 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7386 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7387 (check_x_display_info): Handle terminal objects instead of
7388 terminal ids.
7389
401e9e57
CY
7390 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7391 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7392 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7393 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7394
df80c7f0
KH
73952009-04-21 Kenichi Handa <handa@m17n.org>
7396
5a8f12af 7397 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7398 (font_score): Check AVGWIDTH too.
908567ef 7399
df80c7f0
KH
7400 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7401 worst case.
1ac9108a
SM
7402 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7403 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7404
705af33f
JR
74052009-04-19 Jason Rumney <jasonr@gnu.org>
7406
7407 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7408 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7409
7410 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7411 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7412 get_phys_cursor_geometry.
7413
b71ac3dd 7414 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7415 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7416 using get_phys_cursor_geometry.
7417
7418 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7419 correctly calculated.
7420
dc2933eb
JD
74212009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7422
1ac9108a
SM
7423 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7424 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7425 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7426 is deprecated.
7427
973e7849
AS
74282009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7429
7430 * font.c (font_put_frame_data): Use xfree instead of free.
7431
314d66f4
JB
74322009-04-17 Juanma Barranquero <lekktu@gmail.com>
7433
7434 * w32font.c (Qja, Qko): Remove declarations.
7435 (syms_of_w32font): Don't DEFSYM them.
7436
cf702558
CY
74372009-04-17 Chong Yidong <cyd@stupidchicken.com>
7438
7439 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7440
7441 * font.h (Qja, Qko): Extern them.
7442
7443 * ftfont.c (Qja, Qko): Remove declarations.
7444
7445 * xfont.c (Qja, Qko): Remove declarations.
7446
b50504f5
KH
74472009-04-17 Kenichi Handa <handa@m17n.org>
7448
bde25748
KH
7449 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7450 string from a vector to handle Latin-1 characters correctly.
7451
b50504f5
KH
7452 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7453 entity even if the cache hits.
7454
f4646fff
AS
74552009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7456
7457 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7458 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7459
e7deaab0
AS
7460 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7461 * lisp.h: Adjust prototypes.
7462
0a0e7d49
CY
74632009-04-16 Chong Yidong <cyd@stupidchicken.com>
7464
7465 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7466 change (Bug#3003).
7467
3c908a57
KH
74682009-04-16 Kenichi Handa <handa@m17n.org>
7469
1ac9108a 7470 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7471
7472 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7473 adstyle.
7474
7475 * ftfont.c (Qja, Qko): Don't make them static.
7476 (enum ftfont_cache_for): New enum.
7477 (fc_charset_table): Undo the previous change.
7478 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7479 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7480 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7481 non-scarable font, try to get AVERAGE_WIDTH.
7482 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7483 Change ft_face_cache from a list of a hash-table. Don't check
7484 `ja' and `ko' adstyle here.
7485 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7486 FTFONT_CACHE_FOR_CHARET.
7487 (ftfont_get_charset): Undo the previous change.
1ac9108a 7488 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7489 (ftfont_close): Likewise.
7490 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7491
7492 * font.c (font_sort_entites): Change the meaning of the arg
7493 BEST-ONLY. Don't optimize for VEC of lenght 1.
7494 (font_select_entity): Just return the value of font_sort_entites.
7495
7496 * xfaces.c (merge_face_vectors): Reflect font properties in
7497 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7498 font_clear_prop if a face attribute doesn't change.
7499
3c908a57
KH
7500 * charset.h (charset_ksc5601): Extern it.
7501
7502 * charset.c (charset_ksc5601): New variable.
7503 (Fdefine_charset_internal): Set charset_ksc5601.
7504 (init_charset_once): Initialize charset_ksc5601 to -1.
7505
d65859c3
DN
75062009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7507
7508 * fileio.c (history_delete_duplicates): Remove unused declaration.
7509
7510 * callint.c (history_delete_duplicates): New declaration.
7511 (Fcall_interactively): Remove command history duplicates when
7512 history_delete_duplicates is true.
7513
3ba010e5
EZ
75142009-04-14 Eli Zaretskii <eliz@gnu.org>
7515
7516 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7517
06f19b91
KH
75182009-04-14 Kenichi Handa <handa@m17n.org>
7519
7520 * font.c (Ffont_info): Fix docstring. Fix the second element of
7521 the returned value (bug#2949).
7522
2cce8bfc
CY
75232009-04-14 Chong Yidong <cyd@stupidchicken.com>
7524
7525 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7526
d156542d
KH
75272009-04-14 Kenichi Handa <handa@m17n.org>
7528
7529 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7530 encoding charset is ascii_compatible.
7531
7532 * charset.c (Fdefine_charset_internal): Make charset
7533 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7534 code_offset is 0, and covers all ASCII characters.
7535
86fa089e
SM
75362009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7537
7538 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7539 (ns_string_to_pasteboard_internal):
7540 * nsmenu.m (process_dialog):
7541 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7542 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7543 * lisp.h (Fx_load_color_file): Declare.
7544
a8a3728b
KH
75452009-04-13 Kenichi Handa <handa@m17n.org>
7546
1ac9108a 7547 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7548 (font_select_entity): Suppress the code to optimize for the same
7549 kind of fonts.
7550 (font_load_for_lface): Get a font that supports at least ASCII
7551 characters.
7552
7553 * ftfont.c (Qja, Qko): New variables.
7554 (fc_charset_table): Delete uniquifier data for iso8859-1.
7555 (ftfont_get_latin1_charset): New function.
7556 (get_adstyle_property): New function.
7557 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7558 bitmap fonts.
7559 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7560 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7561 `ko' or `ja'.
7562 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7563 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7564 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7565 property.
7566 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7567 (syms_of_ftfont): DEFSYM Qja and Qko.
7568
483670b5
KH
75692009-04-09 Kenichi Handa <handa@m17n.org>
7570
12b55765
KH
7571 * charset.c (map_charset_chars): For a charset of `superset'
7572 method, fix calculation of code range.
7573
483670b5
KH
7574 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7575 from the list of extra properties.
7576 (font_clear_prop): Be sure to delete `:name' font property.
7577
57d3b93b
KH
75782009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7579
b4b2c2ca
YM
7580 * dispnew.c (redraw_overlapping_rows): Fix detection of
7581 overlapping for topmost and bottommost rows.
7582
1ac9108a 7583 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7584
472c3609
JR
75852009-04-06 Jason Rumney <jasonr@gnu.org>
7586
7587 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7588
ab193662
KH
75892009-04-06 Kenichi Handa <handa@m17n.org>
7590
7591 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7592
7593 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7594
0c26f026
KH
75952009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7596
7597 * ftfont.c (ftfont_open): Fix checking of the return value of
7598 FT_Load_Char. Fix setting font->underline_thickness.
7599
e173bbce
CY
76002009-04-04 Chong Yidong <cyd@stupidchicken.com>
7601
7602 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7603 (Fterminal_parameters, Fterminal_parameter)
7604 (Fset_terminal_parameter): In doc string, refer to terminal
7605 objects rather than terminal ids.
7606
693a2698
EZ
76072009-04-04 Eli Zaretskii <eliz@gnu.org>
7608
7609 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7610 ret_lim_data. (Bug#2867)
7611
d5221487
CY
76122009-04-03 Chong Yidong <cyd@stupidchicken.com>
7613
7614 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7615 so they don't get wider than the window, matching 2006-01-23
7616 change to the partner function in xdisp.c (Bug#2800).
7617
223509a3
KH
76182009-04-03 Kenichi Handa <handa@m17n.org>
7619
7620 * print.c (print_object): Make each lowest sub_char_table start a
7621 new line (Bug#2866).
7622
74fcd0b1
KH
76232009-04-02 Kenichi Handa <handa@m17n.org>
7624
7625 * fontset.c (fontset_font): Record no-font when a fontset
7626 explicitly tells not to try another font-specs.
7627
c542407d
SM
76282009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7629
7630 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7631
e3869731
KH
76322009-03-30 Kenichi Handa <handa@m17n.org>
7633
d8d2f142
KH
7634 * fontset.c (fontset_from_font): Specify only registry in a
7635 font-spec for all characters supported by that registry.
7636
e3869731
KH
7637 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7638 even if HAVE_M17N_FLT is not defined.
7639
5da5f805
CY
76402009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7641
7642 * ftfont.c: Conditionalize prototyping and use of
7643 ftfont_variation_glyphs.
7644
ab226c50
SM
76452009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7646
9628fed7
SM
7647 * frame.c (delete_frame): Work around compiler bug.
7648
7649 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7650 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7651 Some more EMACS_INT.
7652 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7653
7654 * xdisp.c (dump_glyph): Fix typo.
7655
ae19ba7c
SM
7656 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7657 (adjust_markers_gap_motion, adjust_markers_for_delete)
7658 (adjust_markers_for_insert, adjust_point)
7659 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7660 (make_gap, copy_text, count_size_as_multibyte, insert)
7661 (insert_and_inherit, insert_before_markers)
7662 (insert_before_markers_and_inherit, insert_1)
7663 (count_combining_before, count_combining_after, insert_1_both)
7664 (insert_from_string, insert_from_string_before_markers)
7665 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7666 (insert_from_buffer_1, adjust_after_replace)
7667 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7668 (replace_range_2, del_range, del_range_1, del_range_byte)
7669 (del_range_both, del_range_2, modify_region)
7670 (prepare_to_modify_buffer, signal_before_change)
7671 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7672 for buffer positions and sizes.
7673 * lisp.h: Adjust prototypes accordingly.
7674
7675 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7676 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7677 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7678
ab226c50
SM
7679 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7680
46dfb8fb
JD
76812009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7682
7683 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7684 lines and columns so we keep the same pixel height and width.
7685
7686 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7687 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7688 (x_handle_net_wm_state): New function to update frame parameter
7689 fullscreen.
7690 (x_term_init): Initialize atoms for _NET_WM_STATE.
7691
7692 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7693
d347e494
SM
76942009-03-27 Kevin Ryde <user42@zip.com.au>
7695
7696 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7697 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7698 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7699 (Fgpm_mouse_stop): Pass that new parameter.
7700 * termhooks.h (close_gpm): Adjust prototype.
7701
84db11d6
SM
77022009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7703
c95a5008
SM
7704 * lisp.h (Fx_focus_frame): Declare.
7705
84db11d6
SM
7706 * callint.c (Fcall_interactively): For '^' just delegate the work to
7707 handle-shift-selection.
7708 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7709
0a1958d6
CY
77102009-03-24 Chong Yidong <cyd@stupidchicken.com>
7711
0bfdff23
CY
7712 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7713
0a1958d6
CY
7714 * data.c (Qinteractive_form): New variable.
7715 (Finteractive_form): Use it.
7716
7717 * eval.c (Fcommandp): Use Qinteractive_form.
7718
58aec0d6
JR
77192009-03-24 Jason Rumney <jasonr@gnu.org>
7720
7721 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7722 Calculate total size precisely. Decode environment variables
7723 before substituting. (Bug#38)
7724
553dd618
KH
77252009-03-24 Kenichi Handa <handa@m17n.org>
7726
7727 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7728 encoding (Bug#2722).
553dd618 7729
c39ea606
JD
77302009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7731
7732 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7733 that gdpy is set.
7734
bc9b2b5e
AM
77352009-03-22 Alan Mackenzie <acm@muc.de>
7736
7737 * callint.c (Finteractive): Clarify the doc string - even
7738 promptless elements need \n separators.
7739
9f995a76
JR
77402009-03-22 Jason Rumney <jasonr@gnu.org>
7741
7742 * w32term.c (syms_of_w32term): Doc fix for
7743 x-use-underline-position-properties.
7744
22749e9a
EZ
77452009-03-21 Eli Zaretskii <eliz@gnu.org>
7746
7747 * w32.c (getpwuid): Change argument type to unsigned.
7748 (struct w32_id): Change type of `rid' member to unsigned.
7749 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7750 argument ID to unsigned. All callers changed.
7751 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7752
e00553bf
EZ
77532009-03-20 Eli Zaretskii <eliz@gnu.org>
7754
7755 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7756 negative, produce a float value.
7757
7758 * dired.c (make_uid, make_gid): New functions.
7759 (Ffile_attributes): Use them to avoid negative UID and GID.
7760
f761d6b6
JB
77612009-03-20 Juanma Barranquero <lekktu@gmail.com>
7762
7763 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7764 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7765 Fix typos in docstrings.
7766
d507f8d7
KH
77672009-03-19 Kenichi Handa <handa@m17n.org>
7768
7769 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7770 changed, use font_load_for_lface to get a new font object.
7771 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7772
7773 * frame.c (x_set_font): Handle the case that ARG is a cons.
7774
c68845e0
GM
77752009-03-19 Glenn Morris <rgm@gnu.org>
7776
7777 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7778
bfa49dd1
CY
77792009-03-19 Chong Yidong <cyd@stupidchicken.com>
7780
7781 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7782
8458d4c1
KH
77832009-03-19 Kenichi Handa <handa@m17n.org>
7784
7785 * charset.c (load_charset_map_from_file): When a mapfile can't be
7786 loaded, signal an error.
7787
78e7d1fe
EZ
77882009-03-18 Eli Zaretskii <eliz@gnu.org>
7789
7790 * dired.c (Ffile_attributes): Make sure UID and GID are always
7791 positive, even if the value is too large for a positive EMACS_INT.
7792 Doc fix.
7793
7794 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7795
5da9fdfa
YM
77962009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7797
7798 * xmenu.c (xdialog_show): Move Fredisplay call ...
7799 (Fx_popup_dialog): ... here.
7800
7519c40d
SM
78012009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7802
7803 * dired.c (file_name_completion): Disable the first optimization just
7804 installed, since it is not implemented correctly.
7805
2cd298e2
SM
78062009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7807
7808 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7809 only if the entry can affect bestmatch.
2cd298e2
SM
7810 Stop the search early, as Ftry_completion already does.
7811
48d37adf
CY
78122009-03-17 Chong Yidong <cyd@stupidchicken.com>
7813
e10c9c93 7814 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7815
9286b16a
CY
78162009-03-15 Chong Yidong <cyd@stupidchicken.com>
7817
7818 * keyboard.c (parse_menu_item): Don't display remappings as menu
7819 equivalent bindings (Bug#788).
7820
f7b146dc
JR
78212009-03-15 Jason Rumney <jasonr@gnu.org>
7822
7823 * w32term.h (WM_EMACS_PAINT): New message.
7824 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7825 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7826 before passing to lisp thread. (Bug#950)
7827
f761d6b6 78282009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7829
d93f9575
CY
7830 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7831 variable as it was never reset.
7832 (ns_term_init): Remove initialization of Lisp-settable defaults
7833 and ns_expand_space.
7834 (-setPanelFromDefaultValues): Remove ns_expand_space.
7835 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7836 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7837 i.e. no additional spacing, similar to Carbon port.
7838
d93f9575
CY
7839 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7840 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7841
305018ec
JD
78422009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7843
7844 * sound.c (alsa_configure): Remove call to deprecated
7845 snd_pcm_sw_params_set_xfer_align.
7846
f761d6b6 78472009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7848
7849 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7850 after clicking in a detached tool bar.
7851 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7852
46e722a9
SM
78532009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7854
348db3dd
SM
7855 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7856 int/Lisp_Object mixup).
46e722a9 7857
a3d16f39
KH
78582009-03-13 Kenichi Handa <handa@m17n.org>
7859
7860 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7861 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7862 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7863 (set_fontset_font): Change ARG to a vector. Handle range_list in
7864 ARG correctly.
7865 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7866 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7867 the above change.
7868 (fontset_from_font): Fix previous change.
fe24f56a 7869 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7870 entry. If FONTSET is the default fontset, don't set the extra
7871 slot of the returning char-table.
7872
b066e6b6
JB
78732009-03-12 Juanma Barranquero <lekktu@gmail.com>
7874
7875 * nsfns.m (Fx_close_connection): Doc fix.
7876 (Fns_do_applescript): Reflow docstring.
7877 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7878 (Fx_display_pixel_width, Fx_display_pixel_height)
7879 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7880 Fix typos in docstrings.
7881 (Fns_set_alpha): Fix typos in error messages.
7882
d472514e 78832009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7884
d472514e 7885 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7886 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7887 were used for such events.
7888
d472514e
JB
7889 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7890 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7891
d472514e 7892 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7893 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7894
fb930676
KH
78952009-03-11 Kenichi Handa <handa@m17n.org>
7896
ff85581a
KH
7897 * font.h (font_open_by_spec): Extern it.
7898
c50b7e98
KH
7899 * font.c (font_open_by_spec): New function.
7900 (font_open_by_name): Use font_open_by_spec.
7901
fb930676
KH
7902 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7903 fontset of the frame.
7904
7905 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7906 modify the default font of frames that use this fontset.
7907 (num_auto_fontsets): New variable.
7908 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7909 name. Be sure to set FONTSET_ASCII to the correct font name.
7910 (update_auto_fontset_alist): New function.
7911
df4e8455
JB
79122009-03-11 Juanma Barranquero <lekktu@gmail.com>
7913
7914 * makefile.w32-in: Update dependencies.
7915
0a375797
AR
79162009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7917
7918 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7919
61313fa3
SM
79202009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7921
7922 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7923
b55103fb
CY
79242009-03-10 Chong Yidong <cyd@stupidchicken.com>
7925
7926 * lread.c (Feval_buffer): Doc fix.
7927
dde2559c
KH
79282009-03-09 Kenichi Handa <handa@m17n.org>
7929
7930 * charset.c (Qfile_name_handler_alist): Extern it.
7931 (load_charset_map_from_file): Temporarily bind
7932 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7933
df4e8455 79342009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7935
47f588bb
GM
7936 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7937 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7938
4ddf94bd
AR
79392009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7940
4c9bdfc2
AR
7941 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7942 (x_set_window_size): Change back to calculated method of setting
7943 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7944 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7945 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7946
fe41ae9e
AR
7947 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7948
4c9bdfc2
AR
7949 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7950 accelerator in parens under GNUstep.
7951
825d0875
KH
79522009-03-06 Kenichi Handa <handa@m17n.org>
7953
7954 These changes are to detect incorrect composition sequence without
f3b3be74 7955 looking ahead the source. (Bug#2370)
825d0875
KH
7956
7957 * coding.h: Include "composite.h".
7958 (enum compisition_state): New enum.
7959 (struct compisition_status): New struct.
7960 (struct iso_2022_spec): New member cmp_status.
7961 (struct emacs_mule_spec): New struct.
7962 (struct coding_system): New members ctext_extended_segment_len and
7963 embedded_utf_8. Change the union member
7964 spec.emacs_mule_full_support to spec.emacs_mule.
7965
7966 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7967 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7968 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7969 (ADD_COMPOSITION_DATA): New arg nbytes.
7970 (emacs_mule_char): New arg cmp_status.
7971 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7972 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7973 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7974 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7975 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7976 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7977 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7978 (EMACS_MULE_COMPOSITION_END): New macro.
7979 (emacs_mule_finish_composition): New function.
7980 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7981 (decode_coding_emacs_mule): Avoid long looking ahead while
7982 handling composition.
7983 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7984 (ENCODE_COMPOSITION_RULE): New macro.
7985 (finish_composition): New function.
7986 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7987 (DECODE_COMPOSITION_START): New implementation.
7988 (DECODE_COMPOSITION_END): Likewise.
7989 (STORE_COMPOSITION_RULE): New macro.
7990 (decode_coding_iso_2022): Avoid long looking ahead while handling
7991 composition, CTEXT extended segment, and embedded UTF-8.
7992 (setup_coding_system): For a coding of type iso-2022, reset
7993 CODING_ISO_EXTSEGMENT_LEN (coding) and
7994 CODING_ISO_EMBEDDED_UTF_8 (coding).
7995 (get_translation): Delete arguments last_block, from_nchars,
7996 to_nchars. Callers changed.
7997 (produce_chars): Don't modify charbuf. Adjusted for the change of
7998 get_translation.
98a326f7 7999 (produce_composition): Adjust for the new annotation sequence.
825d0875 8000 (handle_composition_annotation): Likewise.
98a326f7 8001 (consume_chars): Adjust for the change of get_translation.
825d0875 8002
ccbc4452
AR
80032009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8004
4ddf94bd 8005 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8006
988a7ddb
KH
80072009-03-05 Kenichi Handa <handa@m17n.org>
8008
8009 * font.c (font_select_entity): New function.
8010 (font_find_for_lface): Use font_select_entity to select a font.
8011
8012 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8013 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8014 font with C restriction.
8015
98a326f7 80162009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8017
be1bce46 8018 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8019
10ea2b82
JR
80202009-03-04 Jason Rumney <jasonr@gnu.org>
8021
2c93b248 8022 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8023 characters that have already been read. (Bug#2569)
2c93b248 8024
10ea2b82
JR
8025 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8026 Log an error message if check_image_size failed.
8027 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8028 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8029
71a0c011
EZ
80302009-03-02 Eli Zaretskii <eliz@gnu.org>
8031
8032 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8033 when decoding process output.
8034
2f63bba8
RS
80352009-03-01 Richard M Stallman <rms@gnu.org>
8036
8037 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8038
8039 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8040
0a9564cb
EZ
80412009-02-28 Eli Zaretskii <eliz@gnu.org>
8042
8043 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8044 (decode_coding_emacs_mule, decode_coding_iso_2022)
8045 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8046 (decode_coding_raw_text, decode_coding_charset)
8047 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8048 Honor inhibit-eol-conversion. (Bug #2186)
8049
449148b3
JR
80502009-02-28 Jason Rumney <jasonr@gnu.org>
8051
8052 * coding.c (detect_coding_charset): If not checking latin extra,
8053 fail on characters between 0x80 and 0xA0. (Bug#2354)
8054
a4aee864
EZ
80552009-02-28 Eli Zaretskii <eliz@gnu.org>
8056
8057 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8058 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8059
d88bee5a
GM
80602009-02-27 Glenn Morris <rgm@gnu.org>
8061
8062 * callint.c (Finteractive): Doc fix.
8063
a808f22d
KH
80642009-02-27 Kenichi Handa <handa@m17n.org>
8065
8066 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8067
caf8d60c
CY
80682009-02-27 Chong Yidong <cyd@stupidchicken.com>
8069
8070 * font.c (font_style_to_value): Set value for unknown symbols to
8071 100 instead of 255.
b61137ea
CY
8072 (weight_table, slant_table, width_table): Treat "unspecified" as
8073 the default value.
caf8d60c 8074
1a0de25c
JB
80752009-02-26 Juanma Barranquero <lekktu@gmail.com>
8076
8077 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8078
8fc45744
JB
80792009-02-25 Juanma Barranquero <lekktu@gmail.com>
8080
107bd7d1
JB
8081 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8082 error as soon as a recursive load is detected.
8fc45744 8083
f097e223
AR
80842009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8085
8086 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8087 before caching.
8088
8810a12f
KH
80892009-02-24 Kenichi Handa <handa@m17n.org>
8090
8091 * fontset.c (fontset_find_font): Fix the condition for checking
8092 unavailable font.
8093
2c7d1565
GM
80942009-02-24 Glenn Morris <rgm@gnu.org>
8095
8096 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8097 whitespace that confuses documentation.
8098
a20878b6
MB
80992009-02-23 Miles Bader <miles@gnu.org>
8100
8101 * process.c (Flist_system_processes, Fprocess_attributes)
8102 (syms_of_process): Rename `system-process-attributes' to
8103 `process-attributes'.
8104
b3b58c01
AS
81052009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8106
1b3b981b
AS
8107 * coding.h (struct coding_system): Make safe_charsets a pointer to
8108 unsigned char.
8109 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8110 being 255.
8111 (SAFE_CHARSET_P): Likewise.
8112 (setup_iso_safe_charsets): Properly setup safe_charsets.
8113 (Fdefine_coding_system_internal): Likewise.
8114 (setup_coding_system): Likewise. Remove unneeded casts.
8115 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8116 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8117 unneeded casts.
8118
b3b58c01
AS
8119 * insdel.c (del_range_2): Don't modify gap contents when called
8120 from decode_coding_object. (Bug#1809)
8121
0b6f228c
CY
81222009-02-21 Chong Yidong <cyd@stupidchicken.com>
8123
8124 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8125 Qfont_object.
8126 (Ftype_of): Recognize font objects.
8127
8128 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8129
8130 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8131 moved to data.c.
8132
52f8870b
AR
81332009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8134
8135 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8136 async_iconified. Based on a patch by Christian Lynbech
8137 <christian.lynbech@tieto.com>.
8138 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8139
7087d5e9
GM
81402009-02-20 Glenn Morris <rgm@gnu.org>
8141
8142 * syntax.c (Fskip_chars_forward): Fix doc typo.
8143
41d2ceef
CY
81442009-02-20 Chong Yidong <cyd@stupidchicken.com>
8145
8146 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8147
1a3b7ca6
CY
81482009-02-19 Chong Yidong <cyd@stupidchicken.com>
8149
8150 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8151
73cce38d
KH
81522009-02-19 Kenichi Handa <handa@m17n.org>
8153
8154 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8155 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8156
a51092ee
DN
81572009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8158
8159 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8160
c423ecca
KH
81612009-02-18 Kenichi Handa <handa@m17n.org>
8162
8163 * font.c (font_check_otf_features): Fix handling of `nil' element.
8164 (Ffont_spec): Describe :lang and :otf in the docstring.
8165
4c1958f4
AS
81662009-02-16 Andreas Schwab <schwab@suse.de>
8167
8168 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8169 string.
8170
5704f39a
KH
81712009-02-16 Kenichi Handa <handa@m17n.org>
8172
8173 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8174 (Bug#1723)
5704f39a 8175
8f0085aa
CY
81762009-02-14 Chong Yidong <cyd@stupidchicken.com>
8177
a057d86a 8178 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8179
8180 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8181 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8182
aff01dd9
EZ
81832009-02-14 Eli Zaretskii <eliz@gnu.org>
8184
8185 * msdos.c (MAX_SCREEN_BUF): New macro.
8186 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8187 Encode the entire run of glyphs sharing the same face, instead of
8188 doing that one glyph at a time (fixes a bug with displaying
8189 double-size characters).
8190
ba301db3
AR
81912009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8192
8193 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8194
8195 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8196 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8197 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8198
8199 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8200 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8201
51d861de
SM
82022009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8203
ac146f82 8204 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8205 invisible areas.
8206
7fed8996
JR
82072009-02-12 Jason Rumney <jasonr@gnu.org>
8208
631ea4fb
JR
8209 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8210 (add_font_entity_to_list): Call check_face_name even when family
8211 is unspecified.
8212
cb4a3e42
JR
8213 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8214 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8215 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8216
7fed8996 8217 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8218 raster fonts. (Bug#2219)
7fed8996 8219
895416e3
KH
82202009-02-12 Kenichi Handa <handa@m17n.org>
8221
8222 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8223 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8224 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8225 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8226 (find_automatic_composition): While looking forward and backward,
8227 check static composition. Fix where to stop looking forward.
8228 (composition_adjust_point): Fix checking of static composition.
8229 (Fcomposition_get_gstring): Pay attention to
1dacf998 8230 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8231
8232 * lisp.h (fast_looking_at): Extern it.
8233
8234 * search.c (fast_looking_at): New function.
8235
51d861de 8236 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8237 <struct glyph>.u.cmp.to.
8238 (append_composite_glyph): Likewise.
8239
51d861de 8240 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8241 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8242 composition.
51d861de 8243 (append_composite_glyph): Adjust for the change of
895416e3
KH
8244 <strcut glyph>.u.cmp.to.
8245
8510724d
JB
82462009-02-11 Juanma Barranquero <lekktu@gmail.com>
8247
8248 * casetab.c (init_casetab_once):
8249 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8250 * font.c (font_update_lface):
8251 * fontset.c (Fnew_fontset):
8252 * ftfont.c (ftfont_drive_otf):
8253 * xfont.c (xfont_open):
8254 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8255
294fa707
SM
82562009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8257
8258 * fileio.c (Fwrite_region): !NILP -> CONSP.
8259
b5bfebec
AS
82602009-02-10 Andreas Schwab <schwab@suse.de>
8261
8262 * process.c (send_process): Properly relocate pointer into data
adab88bd 8263 when using encoded data. (Bug#2272)
b5bfebec 8264
cb84a2be
KH
82652009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8266
8267 * coding.c (detect_coding_charset): Fix previous change.
8268
89e09428
JR
82692009-02-08 Jason Rumney <jasonr@gnu.org>
8270
8271 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8272 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8273
4470a277
AS
82742009-02-07 Andreas Schwab <schwab@suse.de>
8275
8276 * unexelf.c (unexec): Fix error message.
8277
3175b12a
AR
82782009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8279
8280 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8281 when modal window is active. (Bug #2152)
3175b12a
AR
8282 (applicationShouldTerminate:): Remove now-unneeded while loop
8283 around NSRunAlertPanel.
8284
8285 * nsmenu.m (popupSession): New file-global variable.
8286 (pop_down_menu): End the popupSession before closing dialog.
8287 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8288 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8289 don't query NSApp for events (just sleep instead).
8290
8434d0b8
EZ
82912009-02-07 Eli Zaretskii <eliz@gnu.org>
8292
51d861de
SM
8293 * coding.c (syms_of_coding) <translation-table-for-input>:
8294 Modify doc string to discourage use for character code unification.
8434d0b8 8295
aa82edfd
CY
82962009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8297
8298 * atimer.c (run_timers): Update pending_atimers.
8299
2d283c7c
CY
83002009-02-06 Chong Yidong <cyd@stupidchicken.com>
8301
eb306cab
CY
8302 * image.c (svg_load_image): Fix last change.
8303
2d283c7c
CY
8304 * xfns.c (Fx_create_frame): Signal an error if no font is
8305 found (Bug#2147).
8306
4d8e170e
JB
83072009-02-05 Juanma Barranquero <lekktu@gmail.com>
8308
8309 * character.c (syms_of_character) <script-representative-chars>:
8310 Fix typo in docstring.
8311
c96169a0
AR
83122009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8313
8314 * nsmenu.m (pop_down_menu): New function.
8315 (ns_popup_dialog): Call it on unwind.
8316 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8317 call timer_check() (Bug#2154).
8318 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8319 handling_signal is set.
8320 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8321
31fd7c5c 8322 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8323
8324 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8325
8326 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8327
51d861de
SM
8328 * keyboard.c (poll_for_input_1, handle_async_input):
8329 Set handling_signal under HAVE_NS.
c96169a0 8330
aacd8ba1
GM
83312009-02-04 Glenn Morris <rgm@gnu.org>
8332
8333 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8334
4cb75c4b
KH
83352009-02-04 Kenichi Handa <handa@m17n.org>
8336
8337 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8338
8339 * charset.c (Fchar_charset): New optional arg restriction.
8340
8341 * coding.h (coding_system_charset_list): Extern it.
8342
8343 * coding.c (coding_system_charset_list): New function.
8344
8345 * composite.c: Include coding.h and termhooks.h.
8346 (composition_gstring_p): Fix for the terminal case.
8347 (composition_gstring_width): Likewise.
8348 (fill_gstring_body): Likewise.
8349 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8350 the frame.
8351 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8352 is within a composition.
867d4bb3 8353 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8354
8355 * term.c (encode_terminal_code): Fix handling of composition.
8356 (produce_composite_glyph): For static composition, get pixel_width
8357 from struct composition.
8358
826ba17e
AS
83592009-02-02 Andreas Schwab <schwab@suse.de>
8360
8361 * unexelf.c (unexec): Handle unaligned bss offset.
8362
8ad093db
AR
83632009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8364
8365 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8366 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8367
8ad093db
AR
8368 * keyboard.c (handle_interrupt): Don't call
8369 quit_throw_to_read_char() under NS.
d0a76a6e 8370
8ad093db
AR
8371 * blockinput.h: Remove NS-specific code.
8372
4d18a7a2
DN
83732009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8374
db878925
DN
8375 * dispnew.c (window_change_signal): Don't try to get the size of a
8376 suspended tty frame.
8377 * term.c (Fresume_tty): Resize if the size has changed while the
8378 tty was suspended.
8379
4d18a7a2
DN
8380 * alloc.c (mark_stack): Properly conditionalize previous change.
8381
8984df7c
JB
83822009-01-30 Juanma Barranquero <lekktu@gmail.com>
8383
8384 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8385 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8386 Remove; this code is not used on Windows.
8387
75f4f1ac
EZ
83882009-01-30 Eli Zaretskii <eliz@gnu.org>
8389
8390 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8391 EOLs that also has stray ^M characters.
8392
07a1e794
JB
83932009-01-30 Juanma Barranquero <lekktu@gmail.com>
8394
8395 * atimer.c (run_timers, alarm_signal_handler):
8396 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8397 * w32inevt.c (w32_console_read_socket):
8398 * w32term.c (w32_read_socket):
8399 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8400
a8b11cc9
CY
84012009-01-30 Chong Yidong <cyd@stupidchicken.com>
8402
8403 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8404 Initialize it as a relative filename pattern.
8405 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8406 (Fcall_process_region): Simplify temp file creation using
8407 temporary-file-directory.
8408
c279587b
EZ
84092009-01-29 Eli Zaretskii <eliz@gnu.org>
8410
8411 * msdos.c: Rename pending_signals to msdos_pending_signals.
8412 (sig_suspender, sigprocmask): Adjust.
8413
a8fe3242
CY
84142009-01-29 Chong Yidong <cyd@stupidchicken.com>
8415
8416 * keyboard.c (pending_signals): New var.
8417 (poll_for_input, input_available_signal, init_keyboard): Set it.
8418 (process_pending_signals): New function.
8419
8420 * lisp.h (QUIT): Check pending_signals instead of
8421 interrupt_input_pending. Use process_pending_signals.
8422
51d861de 8423 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8424
51d861de 8425 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8426
8427 * sysdep.c (emacs_write): Use process_pending_signals.
8428
8429 * xterm.c (XTread_socket): Update pending_signals.
8430
8431 * w32term.c (w32_read_socket): Update pending_signals.
8432
8433 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8434
6570a1c4
KH
84352009-01-29 Kenichi Handa <handa@m17n.org>
8436
8437 * xftfont.c (xftfont_has_char): New function.
8438 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8439
d72a4afa
AR
84402009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8441
8442 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8443 under GNUstep.
8444 (ns_query_color): New declaration.
8445
8446 * nsterm.m (ns_confirm_quit): New variable.
8447 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8448 (EmacsApp-applicationShouldTerminate:): Use it.
8449 (EmacsPrefsController): Let user set it.
8450 (ns_query_color): New function.
8451 (ns_defined_color): Use it.
8452 (ns_initialize): Drop.
8453 (ns_term_init): Add two lines from ns_initialize(), and set
8454 input_interrupt_mode to nil.
8455
8456 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8457 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8458
9fe78804
KH
84592009-01-28 Kenichi Handa <handa@m17n.org>
8460
8461 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8462 (fontset_get_font_group): Remember that no font-group is specified
8463 for C.
9fe78804 8464
fa57de36
CY
84652009-01-27 Chong Yidong <cyd@stupidchicken.com>
8466
930600e9
CY
8467 * fns.c (concat): Check for string overflow (bug#1787).
8468
fa57de36
CY
8469 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8470 Quadruple undo limits (bug#1501).
8471
7179ce7b
KH
84722009-01-27 Kenichi Handa <handa@m17n.org>
8473
8474 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8475 directly use GT_Get_Char_index.
8476
8477 * xftfont.c (struct xftfont_info): New member `index'.
8478
8479 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8480 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8481
5be8fcc0
CY
84822009-01-26 Kenichi Handa <handa@m17n.org>
8483
8484 * fontset.c (fontset_find_font): Fix handling of non-cons return
8485 value of fontset_get_font_group.
8486 (fontset_font): Revert last change.
8487
19ae3e61
JR
84882009-01-26 Jason Rumney <jasonr@gnu.org>
8489
8490 * w32font.c (w32font_list_internal): Return quickly if registry is
8491 unknown. Simplify final return.
8492 (add_font_entity_to_list): Break complex logic down into more
8493 manageable chunks. Move unknown registry check to
8494 w32font_list_internal.
8495
8612b71a
AR
84962009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8497
8498 Changes to remove Feval calls from GUI under NS.
8499
d8038940
JB
8500 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8501 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8502 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8503
8504 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8505 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8506 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8507 instead of NON_ASCII_KEYSTROKE_EVENT.
8508 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8509 (EmacsApp-applicationShouldTerminate:): Query user.
8510 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8511 instead of Feval.
8512
8513 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8514
8515 * keyboard.c (kbd_buffer_get_event): Check for it.
8516 (keys_of_keyboard): Define lispy keys for
8517 ns-put/unput-working-text.
8518
8519 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8520 versions.
8521 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8522
6288ae55
CY
85232009-01-25 Chong Yidong <cyd@stupidchicken.com>
8524
8525 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8526 setting current_buffer directly. (Bug#2044)
6288ae55 8527
289e7f8f
CY
85282009-01-24 Chong Yidong <cyd@stupidchicken.com>
8529
5ce87308 8530 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8531 any work. (Bug#1952, bug#1990).
5ce87308 8532
64cc3cf6 8533 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8534
b3243e6f
AR
85352009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8536
8537 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8538 (ns_no_defaults): New declaration.
8539 (main): Use it.
e0d2e69a 8540
d900b2af 8541 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8542
d900b2af 8543 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8544
d900b2af
AR
8545 * nsterm.m (ns_no_defaults): New variable.
8546 (ns_initialize): Don't read defaults when ns_no_defaults.
8547 (EmacsView-readSelectionFromPasteboard:)
8548 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8549 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8550 (ns_dumpglyphs_stretch): New function.
8551 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8552 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8553
e0d2e69a
AR
8554 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8555
3ac71f5d
CY
85562009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8557
8558 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8559 call for Sparc64.
8560
3fe53a83
AR
85612009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8562
8563 * nsfns.m:
8564 * nsgui.h:
8565 * nsmenu.m:
8566 * nsselect.m:
8567 * nsterm.h:
8568 * nsterm.m: Remove '23' comments that indicated code added during
8569 update from emacs-20 -> emacs-23.
8570
10f87c6f 85712009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8572
8573 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8574 ns_alternate_modifier. (Bug#1217)
a3b53a85 8575
c7cef62d
AR
8576 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8577 Display all shortcuts, including those w/o super modifier.
8578
575fb8bd
AR
8579 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8580
918b848b
CY
85812009-01-22 Chong Yidong <cyd@stupidchicken.com>
8582
8583 * fileio.c (Vwrite_region_post_annotation_function)
8584 (Vwrite_region_annotation_buffers): New vars.
8585 (build_annotations_unwind): Just reset
8586 Vwrite_region_annotation_buffers.
8587 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8588 Call write-region-post-annotation-function.
8589 (build_annotations): Add to Vwrite_region_annotation_buffers if
8590 buffer changes.
8591
a39e2539
AR
85922009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8593
8594 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8595 Tiger.
51d861de
SM
8596 * nsfns.m (ns_do_applescript):
8597 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8598
35ed44db
AR
85992009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8600
8601 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8602
cbe0b5bf
AR
86032009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8604
8605 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8606
6049d3a0
AR
8607 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8608
8609 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8610 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8611 handle Ctrl-tab. (Bug#1841)
8612 (ns_get_color): Use unsigned long long for scanned hex string value.
8613 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8614 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8615 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8616 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8617 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8618 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8619 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8620
d3810c21 8621 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8622 DPI. (Bug#1316)
d3810c21
AR
8623 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8624 values in onTiger section.
4c7077c3 8625
e301e634
CY
86262009-01-19 Chong Yidong <cyd@stupidchicken.com>
8627
7f82490b
CY
8628 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8629 Check return value of font_spec_from_name.
64cc3cf6 8630 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8631
8632 * font.c (font_spec_from_name): Return Qnil if font name could not
8633 be parsed.
8634 (font_parse_name): Treat a `?' character as part of an XLFD.
8635
e301e634
CY
8636 * fns.c (Fsubstring): Doc fix.
8637
1c0db158
KH
86382009-01-19 Kenichi Handa <handa@m17n.org>
8639
51d861de 8640 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8641 (ftfont_list): Likewise.
8642
acf20901
JB
86432009-01-18 Juanma Barranquero <lekktu@gmail.com>
8644
fff4e459
JB
8645 * dbusbind.c (Fdbus_register_signal):
8646 * process.c (conv_sockaddr_to_lisp):
8647 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8648
acf20901
JB
8649 * callproc.c (Fgetenv_internal): Doc fix.
8650
e7abcdfb
CY
86512009-01-16 Chong Yidong <cyd@stupidchicken.com>
8652
8653 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8654 it is not even used.
8655
b60861e6
GM
86562009-01-16 Glenn Morris <rgm@gnu.org>
8657
8658 * font.c (Ffont_variation_glyphs): Silence compiler.
8659
8db52afe
JB
86602009-01-15 Juanma Barranquero <lekktu@gmail.com>
8661
8662 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8663 Reported by David Robinow <drobinow@gmail.com>.
8664
4cddb209
KH
86652009-01-15 Kenichi Handa <handa@m17n.org>
8666
51d861de 8667 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8668
f247f67b
JR
86692009-01-14 Jason Rumney <jasonr@gnu.org>
8670
8671 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8672 never a fontset. (Bug#1562)
f247f67b 8673
f56a4450
KH
86742009-01-14 Kenichi Handa <handa@m17n.org>
8675
8676 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8677 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8678
4e99855e
CY
86792009-01-13 Chong Yidong <cyd@stupidchicken.com>
8680
8681 * font.c (font_clear_prop): If clearing the family, clear the font
8682 width index too.
8683
fff4e459 8684 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8685
24f01470
JB
86862009-01-12 Juanma Barranquero <lekktu@gmail.com>
8687
8688 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8689 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8690 functions, use sizeof.
8691
a41240a3
MR
86922009-01-12 Martin Rudalics <rudalics@gmx.at>
8693
8694 * keyboard.c (read_char): Fix case where last_nonmenu_event
8695 returned a bad value with submenus. (Bug#447)
8696
944636b8
CY
86972009-01-12 Chong Yidong <cyd@stupidchicken.com>
8698
8699 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8700 family, clear the font width index too.
8701
0dad7c6f
JR
87022009-01-11 Jason Rumney <jasonr@gnu.org>
8703
8704 * keyboard.c (cmd_error_internal): Exit when errors occur before
8705 frame creation and not in daemon mode. (Bug#1836)
8706
7c2363af
CY
87072009-01-10 Chong Yidong <cyd@stupidchicken.com>
8708
8709 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8710 of a display vector, backtrack.
8711 (try_window_reusing_current_matrix): Check glyph type before
8712 referencing charpos member.
8713
97b1b294
EZ
87142009-01-10 Eli Zaretskii <eliz@gnu.org>
8715
8716 Fix Bug #876:
8717
8718 * coding.c (inhibit_null_byte_detection): New variable.
8719 (detect_coding, detect_coding_system): Don't pay attention to null
8720 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8721 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8722 <inhibit-iso-escape-detection>: Doc fix.
8723
4624b6e3
JR
87242009-01-09 Jason Rumney <jasonr@gnu.org>
8725
8726 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8727 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8728 Only report Unicode Plane 2 fonts as unicode-sip.
8729
323b840c
CY
87302009-01-09 Chong Yidong <cyd@stupidchicken.com>
8731
51d861de
SM
8732 * xfaces.c (Fx_font_family_list): Delete function.
8733 Move compatibility version to faces.el.
323b840c 8734
51d861de 8735 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8736
eba7400d
MR
87372009-01-09 Martin Rudalics <rudalics@gmx.at>
8738
8739 * frame.c (x_set_frame_parameters): Remember requested value for
8740 fullscreen before it's reset by the parameter handler.
8741
4b09796d
GM
87422009-01-09 Glenn Morris <rgm@gnu.org>
8743
8744 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8745 (last_command_event): ... and update all users.
4b09796d
GM
8746 (last_input_char): For clarity, rename to...
8747 (last_input_event): ... and update all users.
8748 (last-command-char, last-input-char): Move to subr.el as aliases.
8749 * cmds.c, commands.h: Update for last_command_char rename.
8750
14ccea62
CY
87512009-01-08 Chong Yidong <cyd@stupidchicken.com>
8752
51d861de 8753 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8754
5f004711
JR
87552009-01-08 Jason Rumney <jasonr@gnu.org>
8756
8757 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8758 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8759 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8760 Don't declare.
fff4e459 8761 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8762 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8763
b71f6f73
KH
87642009-01-07 Kenichi Handa <handa@m17n.org>
8765
50b06221 8766 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8767 remember the coding system used for decoding in
50b06221
KH
8768 coding_system (Bug#1039).
8769
b71f6f73 8770 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8771 breaking the loop. (Bug#870)
b71f6f73
KH
8772 (decode_coding_utf_16, decode_coding_emacs_mule)
8773 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8774 (decode_coding_charset): Likewise.
8775
56f668f7
MR
87762009-01-05 Martin Rudalics <rudalics@gmx.at>
8777
8778 * frame.c (x_set_frame_parameters): Make sure height (width) get
8779 applied when fullwidth (fullheight) is set. (Bug#1522)
8780
5da9424d
JB
87812009-01-04 Juanma Barranquero <lekktu@gmail.com>
8782
8783 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8784 (utc_base): Declare as ULONGLONG, not long double.
8785 (convert_time_raw): Delete.
8786 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8787 (initialize_utc_base): New function.
8788 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8789 (convert_from_time_t): Use initialize_utc_base; compute result with
8790 64-bit arithmetic.
8791 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8792
c4605e09
EZ
87932009-01-03 Eli Zaretskii <eliz@gnu.org>
8794
9acef61c 8795 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8796 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8797 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8798 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8799 [!subprocesses]: Define.
8800 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8801 (Flist_system_processes, Fsystem_process_attributes)
8802 [!subprocesses]: Call list_system_processes and
8803 system_process_attributes instead of returning Qnil.
8804
9acef61c
JB
8805 * dosfns.c (system_process_attributes, list_system_processes):
8806 New functions.
c4605e09
EZ
8807
8808 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8809
8810 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8811 Don't use the default (no-op) implementation.
8812
8b7d0a16
JR
88132009-01-03 Jason Rumney <jasonr@gnu.org>
8814
a6d46bc1
JR
8815 * keyboard.c (parse_modifiers_uncached): Wheel events are
8816 clicks (bug#687).
8817
8b7d0a16
JR
8818 * w32term.c (x_query_colors, x_query_color): New functions.
8819
8820 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8821 (svg_load_image): Cast returned pointers from dynamically loaded
8822 functions. Eliminate W32 specific code.
8823
bfe11752
DN
88242009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8825
89e2438a
DN
8826 * nsfns.m (x_set_foreground_color, x_set_background_color)
8827 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8828 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8829 x_ prefix instead of ns_. Update references.
8830 (syms_of_nsfns): Add a FIXME comment.
8831
8832 * nsterm.m (x_set_cursor_type): New prototype.
8833 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8834
bfe11752
DN
8835 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8836 for Solaris instead of incorrectly providing Qutime and Qcutime.
8837
031da700
EZ
88382009-01-02 Eli Zaretskii <eliz@gnu.org>
8839
8840 * w32.c (process_times): Compute sum of utime and stime.
8841 (system_process_attributes): Add Qtime to the alist.
8842
8843 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8844 and add them to the alist.
8845
8846 * process.c (top level) <Qtime, Qctime>: New variables.
8847 (syms_of_process): staticpro them.
8848 (Fsystem_process_attributes): Add their documentation to the doc
8849 string.
8850
8851 * process.h: Declare Qtime and Qctime.
8852
df23bf08
JR
88532009-01-02 Jason Rumney <jasonr@gnu.org>
8854
9acef61c 8855 * image.c (Qgobject): New symbol.
df23bf08
JR
8856 (syms_of_image): Initialize it.
8857 (init_svg_functions): Load some functions from gobject library.
8858
5bbdf7aa
DN
88592009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8860
8861 * frame.c (make_terminal_frame): Remove redundant code and useless
8862 block.
8863
63136da6
AS
88642009-01-01 Andreas Schwab <schwab@suse.de>
8865
8866 * process.c (conv_sockaddr_to_lisp): Add workaround for
8867 getsockname bug on BSD.
8868
9ef69046
CY
88692009-01-01 Chong Yidong <cyd@stupidchicken.com>
8870
d6fafbe0
CY
8871 * xfns.c (x_create_tip_frame): Set border width of the X window.
8872
51d861de 8873 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8874
f9c34147
JR
88752009-01-01 Jason Rumney <jasonr@gnu.org>
8876
9acef61c 8877 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8878 Don't block input, as per earlier xterm.c changes.
8879
f5497e45
AR
88802008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8881
8882 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8883 (ns_appkit_version_int): New function.
8884 (x-server-version): Use ns_appkit_version_int and follow 21+
8885 convention of returning 3 integers.
8886
c19cab20
KH
88872008-12-30 Kenichi Handa <handa@m17n.org>
8888
8889 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8890 (CHAR_SURROGATE_PAIR_P): New macro.
8891
8892 * font.h (struct font_driver): New member get_variation_glyphs.
8893
9acef61c 8894 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8895 (Ffont_variation_glyphs): New function.
8896 (syms_of_font): Defsubr it.
8897
8898 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8899 ftfont_variation_glyphs.
8900 (setup_otf_gstring): New function.
8901 (ftfont_drive_otf): Use it.
8902 (ftfont_shape_by_flt): Handle variation selector.
8903 (ftfont_variation_glyphs): New function.
8904
28cd591f
MR
89052008-12-30 Martin Rudalics <rudalics@gmx.at>
8906
8907 * frame.c (Vemacs_iconified): Remove.
8908
7f714baf
JR
89092008-12-30 Jason Rumney <jasonr@gnu.org>
8910
8911 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8912 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8913
9d2d22ab
CY
89142008-12-30 Chong Yidong <cyd@stupidchicken.com>
8915
8916 * indent.c (Fvertical_motion): Don't advance iterator if we have
8917 reseated to the desired position.
8918
8919 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8920 checking for pos match.
8921
545312c2
KH
89222008-12-30 Kenichi Handa <handa@m17n.org>
8923
1ede3eb6
KH
8924 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8925 just get the low 8-bit of the code.
8926
545312c2
KH
8927 * font.c (font_intern_prop): Validate str as multibyte.
8928
bd7bbf29
DN
89292008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8930
31e0750e
DN
8931 * dispextern.h (struct face): Move lface and hash from the middle
8932 of bitfields.
8933
bd7bbf29
DN
8934 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8935
b5672e7c
DN
89362008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8937
8938 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8939 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8940 instead of intervals.h.
8941
d704470f
AS
89422008-12-26 Andreas Schwab <schwab@suse.de>
8943
8944 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8945 cons.
8946
54b33868
MR
89472008-12-26 Martin Rudalics <rudalics@gmx.at>
8948
8949 * textprop.c (Qminibuffer_prompt): New variable.
8950 (syms_of_textprop): Initialize it.
8951 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8952 in minibuffer-prompt face. (Bug#1662)
8953
40b615d6
JR
89542008-12-25 Jason Rumney <jasonr@gnu.org>
8955
8956 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8957
baae5c2d
JR
89582008-12-24 Jason Rumney <jasonr@gnu.org>
8959
8960 * ralloc.c (r_alloc_reset_variable): New function.
8961
8962 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8963 record of what points where. (Bug#716)
baae5c2d 8964
a9051c88
DN
89652008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8966
8967 * minibuf.c (read_minibuf): Follow the non-interactive case when
8968 running as a daemon, before detaching.
8969
8b146312
AS
89702008-12-22 Andreas Schwab <schwab@suse.de>
8971
8972 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8973 * gtkutil.c (free_widget_value): Use xfree instead of free.
8974
56f2de10
MR
89752008-12-22 Martin Rudalics <rudalics@gmx.at>
8976
8977 * frame.c (delete_frame): New function derived from
8978 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8979 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8980 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8981 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8982 * frame.h: Extern delete_frame.
8983 * window.c (window_loop):
8984 * terminal.c (delete_terminal):
8985 * xterm.c (x_connection_closed):
8986 * xfns.c (Fx_hide_tip):
9acef61c 8987 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8988
1fc200d6
JR
89892008-12-21 Jason Rumney <jasonr@gnu.org>
8990
8991 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8992 when character maps to .notdef character.
8993
5e252df2
SM
89942008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8995
8996 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8997
99b72cc4
JR
89982008-12-20 Jason Rumney <jasonr@gnu.org>
8999
9000 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9001 a graphical frame on Windows. (Bug#1325)
99b72cc4 9002
acc49a52
JD
90032008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9004
9005 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9006
6ea15123
CY
90072008-12-20 Chong Yidong <cyd@stupidchicken.com>
9008
9009 * minibuf.c (Fread_buffer): Doc fix.
9010
b2dab6c8
JR
90112008-12-20 Jason Rumney <jasonr@gnu.org>
9012
54ea0c87 9013 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9014 server name in UNC paths. (Bug#719)
54ea0c87 9015
b2dab6c8 9016 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9017 charbuf. (Bug#1035)
b2dab6c8 9018
6d1921be
DN
90192008-12-19 Daniel Engeler <engeler@gmail.com>
9020
9021 * sysdep.c (serial_configure): Fix typo.
9022
53934c98
DN
90232008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9024
9025 * sysdep.c: Include alloca.h.
f4f634e8
DN
9026 (system_process_attributes): Add implementation for Solaris.
9027
9028 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9029
06e111a6
DN
90302008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9031
9032 Reorganize implementation of Flist_system_processes and
9033 Fsystem_process_attributes. No functional changes.
9034 * process.c: Don't #include pwd.h, grp.h and limits.h.
9035 (Flist_system_processes): Just call list_system_processes.
9036 (Fsystem_process_attributes): Just call system_process_attributes.
9037 (procfs_list_system_processes, time_from_jiffies)
9038 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9039 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9040
9041 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9042 (list_system_processes): Rename from
9043 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9044 Provide a do nothing implementation.
9045 (system_process_attributes): Rename from
9046 procfs_list_system_processes.
9047 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9048 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9049
9050 * w32.c (list_system_processes): Rename from
9051 w32_list_system_processes.
9052 (system_process_attributes): Rename from
9053 w32_system_process_attributes.
9054
9055 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9056
9057 * process.h (w32_list_system_processes)
9058 (w32_system_process_attributes): Remove.
362654a6
JB
9059 (list_system_processes, system_process_attributes):
9060 New prototypes.
06e111a6 9061
6a705b23
KH
90622008-12-19 Kenichi Handa <handa@m17n.org>
9063
9064 * xfont.c (xfont_decode_coding_xlfd): New function.
9065 (xfont_encode_coding_xlfd): New function.
9066 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9067 (xfont_list): Decode and encode XLFD by iso-8859-1.
9068 (xfont_match): Likewise.
9069 (xfont_list_family): Likewise.
9070 (xfont_open): Likewise.
9071
d66c0241 9072 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9073 names are utf-8.
9074
d66c0241 9075 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9076 names are utf-8.
9077
5a130941
JD
90782008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9079
9080 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9081 changed.
bfd20325
JD
9082 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9083 clicked on a detached tool bar button.
5a130941 9084
fd95644b
DN
90852008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9086
9087 * emacs.c (main): Print and error and exit when no data is read
9088 from the pipe.
9089
e6eee6ae
JR
90902008-12-17 Jason Rumney <jasonr@gnu.org>
9091
9092 * w32font.c (w32font_has_char): Always return -1.
9093
a35dd56b
KH
90942008-12-16 Kenichi Handa <handa@m17n.org>
9095
9096 * font.c (font_open_entity): Fix previous change.
9097
0e3635c2
DN
90982008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9099
9100 * process.c: Include <limits.h>.
9101
d4835507 91022008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9103
9104 * font.c (font_update_drivers): Fix mistake in reconstructing the
9105 driver list.
9106
91072008-12-16 Chong Yidong <cyd@stupidchicken.com>
9108
9109 * font.c (font_clear_cache): Fix format of font cache data.
9110
e2cbc401
CY
91112008-12-15 Chong Yidong <cyd@stupidchicken.com>
9112
9113 * xftfont.c (xftfont_open): Free Xft font pattern if
9114 XftFontOpenPattern fails.
9115
9116 * xterm.c (x_free_frame_resources): Remove extraneous call to
9117 free_frame_faces.
9118
b131d535
CY
91192008-12-13 Chong Yidong <cyd@stupidchicken.com>
9120
9121 * xterm.c (x_delete_display): Move xim_close_dpy call to
9122 x_delete_terminal.
9123 (x_delete_terminal): Call xim_close_dpy.
9124
e6df5336
JR
91252008-12-13 Jason Rumney <jasonr@gnu.org>
9126
9127 * w32font.c (intern_font_name): New function.
9128 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9129 (w32font_open_internal, Fx_select_font): Decode font name.
9130 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9131
9132 * w32font.h (intern_font_name): Declare new function.
9133
9134 * w32uniscribe.c (add_opentype_font_name_to_list):
9135 Use intern_font_name.
9136
20d68145
CY
91372008-12-13 Chong Yidong <cyd@stupidchicken.com>
9138
9f2554de
CY
9139 * frame.c (Fdelete_frame): Call free_font_driver_list.
9140
3d9bec9a
CY
9141 * font.c (free_font_driver_list): Implement missing function.
9142
20d68145
CY
9143 * w32term.c (w32_term_init): Don't initialize the image cache
9144 here; it will be done in init_frame_faces.
9145
9146 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9147 (struct x_display_info): Remove unused member null_pixel. New
9148 member xim_callback_data.
9149
9150 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9151 (xim_initialize): Save pointer to callback function data.
9152 (xim_close_dpy): Free callback function data. Call XCloseIM,
9153 reverting 2008-11-04 change by David Smith.
9154 (x_term_init): Don't initialize the image cache here; it will be
9155 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9156 (x_delete_display): Free x_dnd_atoms member.
9157
96f9306b
KH
91582008-12-13 Kenichi Handa <handa@m17n.org>
9159
6dec9044
JB
9160 * font.c (font_rescale_ratio): Moved from xfaces.c.
9161 Argument type changed. Handle a font-spec too.
96f9306b 9162 (font_score): Check Vface_font_rescale_alist.
6dec9044 9163 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9164
9165 * xfaces.c (font_rescale_ratio): Moved to font.c.
9166
8d5b4964
CY
91672008-12-13 Chong Yidong <cyd@stupidchicken.com>
9168
9169 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9170
e6df5336
JR
91712008-12-12 Jason Rumney <jasonr@gnu.org>
9172
9173 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9174 Vwindow_system_version to the real w32 major version.
9175
97c6058a
DN
91762008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9177
9178 * term.c (init_tty): Move setting the terminal name before the
9179 potential user: maybe_fatal.
9180
ec4e88d7
CY
91812008-12-11 Chong Yidong <cyd@stupidchicken.com>
9182
d4835507
JB
9183 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9184 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9185
b4233ec9
JR
91862008-12-11 Jason Rumney <jasonr@gnu.org>
9187
8ec71e23 9188 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9189 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9190
b4233ec9 9191 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9192 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9193
011a0143
JB
91942008-12-11 Juanma Barranquero <lekktu@gmail.com>
9195
9196 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9197
3c309f34
JB
91982008-12-11 Juanma Barranquero <lekktu@gmail.com>
9199
9200 * process.c (Fsystem_process_attributes, syms_of_process):
9201 Fix typo in name of Ssystem_process_attributes.
9202 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9203
fedc6ab5
JB
92042008-12-11 Juanma Barranquero <lekktu@gmail.com>
9205
9206 * syntax.c (Fmodify_syntax_entry): Doc fix.
9207
ba3de0e8
JB
92082008-12-10 Juanma Barranquero <lekktu@gmail.com>
9209
9210 * font.c (Ffont_spec): Move usage to end of docstring.
9211
174f1c74
JR
92122008-12-10 Jason Rumney <jasonr@gnu.org>
9213
9214 * w32font.c (Qcham): New symbol.
9215 (font_supported_scripts): Add cham, and comments for other new
9216 scripts in bitfield from OpenType spec.
9d32f818
JR
9217 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9218 contain characters beyond the bmp.
174f1c74 9219
7b649478
KH
92202008-12-10 Kenichi Handa <handa@m17n.org>
9221
9222 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9223 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9224 Qunicode_sip.
9225
2133e2d1
JB
92262008-12-10 Juanma Barranquero <lekktu@gmail.com>
9227
9228 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9229 (Fcoding_system_put): Use QCdefault_char.
9230 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9231
9af886ee
CY
92322008-12-09 Chong Yidong <cyd@stupidchicken.com>
9233
74d819eb
CY
9234 * xftfont.c (syms_of_xftfont): Fix typo.
9235
4ccfa1c0 9236 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9237
7c19d3ae
DN
92382008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9239
9240 * emacs.c (main): Close daemon_pipe on exec.
9241
567826bb
CY
92422008-12-08 Chong Yidong <cyd@stupidchicken.com>
9243
9244 * termchar.h (struct tty): New members termcap_term_buffer and
9245 termcap_strings_buffer.
9246
9247 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9248 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9249 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9250 All callers changed.
9251 (init_tty): Store termcap data and string buffers in new struct
9252 tty members termcap_term_buffer and termcap_strings_buffer.
9253 (delete_tty): Free them.
4ccfa1c0 9254 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9255
aa96c42b
SZ
92562008-12-07 Seiji Zenitani <zenitani@mac.com>
9257
9258 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9259 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9260
b7e1d896
CY
92612008-12-06 Chong Yidong <cyd@stupidchicken.com>
9262
9263 * coding.c (make_conversion_work_buffer): Disable buffer
9264 modification hooks in the work buffer.
9265
b5ec91a5
EZ
92662008-12-05 Eli Zaretskii <eliz@gnu.org>
9267
9268 * process.c (procfs_system_process_attributes): If `nread' has a
9269 negative value, assign zero to it.
9270
a5d2a52b
CY
92712008-12-05 Chong Yidong <cyd@stupidchicken.com>
9272
68c5540b 9273 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9274
7bf1bb21
KH
92752008-12-05 Kenichi Handa <handa@m17n.org>
9276
9277 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9278 second character is a combining character.
9279
2fdc7d00
EZ
92802008-12-05 Eli Zaretskii <eliz@gnu.org>
9281
9282 * process.c (procfs_system_process_attributes): Don't use cmd,
9283 cmdsize, and q without initializing them first.
9284
bf6bfba8
JR
92852008-12-04 Jason Rumney <jasonr@gnu.org>
9286
9287 * w32font.c (w32font_draw): Initialize orig_clip before getting
9288 it, and delete it when finished.
9289
a3b1a468
DN
92902008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9291
9292 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9293 case when running as a daemon before detaching.
9294
8b8be8eb
JB
92952008-12-03 Juanma Barranquero <lekktu@gmail.com>
9296
805f2638 9297 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9298
b1bde622
KH
92992008-12-03 Kenichi Handa <handa@m17n.org>
9300
e500c47d
KH
9301 * font.c (font_at): Set `multibyte' at first.
9302
ca516334
KH
9303 * coding.c (decode_coding_charset): Check type of an element of
9304 vector VALIDS.
7bf1bb21 9305 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9306
4ccfa1c0 9307 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9308 (font_for_char): Likewise.
9309
1e5ecd37
CY
93102008-12-03 Chong Yidong <cyd@stupidchicken.com>
9311
d5b01609 9312 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9313 (font_update_lface): Handle fonts with corrupted size specs,
9314 i.e. non-int and non-float.
d5b01609 9315
11e3a6e4 9316 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9317 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9318 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9319
ab06788b
CY
9320 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9321
1e5ecd37 9322 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9323 underline_minimum_offset for underline position.
1e5ecd37 9324
63c125ab
DN
93252008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9326
9327 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9328
9329 * character.c (c_string_width): Specify the type for LEN.
9330
3a8406e1
KH
93312008-12-03 Kenichi Handa <handa@m17n.org>
9332
4ccfa1c0 9333 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9334 (decode_coding_utf_8): Likewise.
4ccfa1c0 9335 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9336 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9337
651df7d9
CY
93382008-12-02 Chong Yidong <cyd@stupidchicken.com>
9339
9340 * keyboard.c (make_lispy_position): Only use PT if the selected
9341 window is current.
9342
1f625c6c
AS
93432008-12-02 Andreas Schwab <schwab@suse.de>
9344
f7741ce9
AS
9345 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9346
1f625c6c
AS
9347 * doprnt.c (doprnt1): Fix size of charbuf.
9348
92bc2678
CY
93492008-12-02 Chong Yidong <cyd@stupidchicken.com>
9350
9351 * keyboard.c (timer_check): Revert last change.
9352
93b9e8cc
JB
93532008-12-02 Juanma Barranquero <lekktu@gmail.com>
9354
9355 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9356
fd7a37d5
JB
93572008-12-01 Juanma Barranquero <lekktu@gmail.com>
9358
9359 * makefile.w32-in: Update dependencies.
9360 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9361
c115043b
AS
93622008-12-01 Andreas Schwab <schwab@suse.de>
9363
9364 * font.c (register_font_driver): Use xmalloc.
9365 (font_put_frame_data): Likewise.
9366
f5668d2a
CY
93672008-12-01 Chong Yidong <cyd@stupidchicken.com>
9368
860d96be
CY
9369 * xfaces.c (realize_x_face): Make abort condition clearer.
9370
f5668d2a
CY
9371 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9372
379c17e7
CY
93732008-11-30 Chong Yidong <cyd@stupidchicken.com>
9374
9375 * keyboard.c (timer_check): After a timer runs, ensure that the
9376 selected window's buffer is current.
9377
35f36d65
JB
93782008-11-30 Juanma Barranquero <lekktu@gmail.com>
9379
f952c61c
JB
9380 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9381 It was accidentally restored by the Unicode merge.
9382
35f36d65
JB
9383 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9384
b23077df
JB
93852008-11-29 Juanma Barranquero <lekktu@gmail.com>
9386
9387 * w32proc.c: Include "coding.h".
9388 (Fw32_short_file_name): Encode filename passed to Windows API.
9389 (Fw32_long_file_name): Encode filename passed to Windows API and
9390 decode back the result. (Bug#1433)
9391
b8ebe9dd
KH
93922008-11-29 Kenichi Handa <handa@m17n.org>
9393
8cc53f96
KH
9394 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9395 not before accessing it.
9396
b8ebe9dd
KH
9397 * charset.c (Fdefine_charset_internal): After calculating
9398 min_char, max_char, and fastmap, copy the charset structure again.
9399 (encode_char): Fix the previous change.
9400
59bc82c0
SZ
94012008-11-28 Seiji Zenitani <zenitani@mac.com>
9402
9403 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9404
9405 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9406
9407 * nsterm.m (x_set_frame_alpha): New function.
9408
32247e3d
EZ
94092008-11-27 Eli Zaretskii <eliz@gnu.org>
9410
9411 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9412
b003e5ff
JB
94132008-11-27 Juanma Barranquero <lekktu@gmail.com>
9414
9415 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9416 pointer to check_face_name.
9417
708550f5
KH
94182008-11-27 Kenichi Handa <handa@m17n.org>
9419
9420 * category.h (SET_CATEGORY_SET): Call set_category_set.
9421 (set_category_set): Extern it.
9422
9423 * category.c (hash_get_category_set): New function.
9424 (Fmodify_category_entry): Adjusted for the change of
9425 char_table_ref_and_range. Call hash_get_category_set to get a
9426 category set to store in the table.
9427
9428 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9429 Funify_charset.
9430
2ae37cf0 9431 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9432 (DECODE_CHAR): Check if the decoder vector is ready.
9433 (ENCODE_CHAR): Check if the encoder char-table is ready.
9434 (maybe_unify_char): Extern it.
9435
9436 * charset.c (Vchar_unified_charset_table): Delete it.
9437 (inhibit_load_charset_map): New variable.
9438 (temp_charset_work): New variable.
9439 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9440 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9441 New macros.
9442 (load_charset_map): Meaning of control_flag changed. If
9443 inhibit_load_charset_map is nonzero, setup a table in
9444 temp_charset_work.
9445 (load_charset): New argument control_flag.
9446 (map_charset_for_dump): New function.
9447 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9448 map_charset_for_dump.
9449 (Fdefine_charset_internal): If the charset method is MAP, load
9450 mapping tables by calling load_charset.
9451 (Funify_charset): Don't load a mapping table but directly set
9452 Vchar_unify_table.
9453 (maybe_unify_char): New function.
9454 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9455 Handle the case of inhibit_load_charset_map being nonzero.
9456 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9457 Handle the case of inhibit_load_charset_map being nonzero.
9458 (Fclear_charset_maps): Just free temp_charset_work.
9459 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9460 variable.
9461
9462 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9463 change of char_table_ref_and_range.
9464 (char_table_ref_and_range): Change the meaning of argument FROM
9465 and TO. Now the caller must provide initial values for *FROM
9466 and *TO.
9467
9468 * fontset.c (fontset_add): Adjusted for the change of
9469 char_table_ref_and_range.
9470 (fontset_get_font_group): Likewise.
9471 (Ffontset_info): Likewise.
9472
9473 * keymap.c (describe_vector): Adjusted for the change of
9474 char_table_ref_and_range. For char-table, put boundary between
9475 non-ASCII and 8-bit characters.
9476
9477 * print.c (print_object): For bool-vector, delete unnecessary
9478 check of ASCII_BYTE_P.
9479
9196133b
JR
94802008-11-26 Jason Rumney <jasonr@gnu.org>
9481
9482 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9483 leading in font height. (Bug#879)
9196133b 9484
9f688acf
GM
94852008-11-26 Glenn Morris <rgm@gnu.org>
9486
9487 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9488 redefinition with ifdef. (Bug#1383)
9489
90d19aff
AR
94902008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9491
9492 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9493
4ccfa1c0 94942008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9495
9496 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9497 New EmacsView methods.
9498 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9499 Fixes bug #1048,1357,1414.
9500
95012008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9502
9503 Fix bug #1362.
9504 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9505 is not an indexed color.
9506 * nsterm.m (free_indexed_color): Add argument checking.
9507 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9508
e7d5ecb3
CY
95092008-11-24 Chong Yidong <cyd@stupidchicken.com>
9510
9511 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9512 Document confirm-after-completion value for
9513 minibuffer-completion-confirm.
9514
c285743c
JR
95152008-11-24 Jason Rumney <jasonr@gnu.org>
9516
9517 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9518 warning.
9519
b0857706
JR
95202008-11-23 Jason Rumney <jasonr@gnu.org>
9521
9522 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9523 restored before returning.
9524
9525 * w32font.c (check_face_name): New function.
9526 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9527 fonts. (Bug#642)
b0857706 9528
ee50ff07
MR
95292008-11-22 Martin Rudalics <rudalics@gmx.at>
9530
9531 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9532 confirm-nonexistent-file-or-buffer in doc-string.
9533
b8ff72fa
SM
95342008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9535
9536 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9537 Fix copy/paste typo. Add checks.
9538
cee53ed4
KH
95392008-11-21 Kenichi Handa <handa@m17n.org>
9540
9541 * coding.c (detect_coding_iso_2022): Reject invalid composition
9542 sequence.
9543 (DECODE_COMPOSITION_START): If the current source is the last
9544 block, and the current composition doesn't end, regard this
9545 sequence as invalid.
9546 (decode_coding_iso_2022): Handle invalid composition sequence.
9547
f6ef1e65
MR
95482008-11-20 Martin Rudalics <rudalics@gmx.at>
9549
9550 * window.c (coordinates_in_window): Don't return
9551 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9552 line when the window is not the rightmost one. (Bug#1372)
9553
e08b1705
MR
95542008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9555
9556 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9557
ad98e89f
EZ
95582008-11-15 Eli Zaretskii <eliz@gnu.org>
9559
9560 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9561 and bright_bg if noninteractive is non-zero.
9562
fb098a4b
CY
95632008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9564
9565 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9566 x_draw_glyph_string_background.
9567
9568 * w32term.c (x_draw_glyph_string): Likewise.
9569
ce952b6e
CY
95702008-11-15 Chong Yidong <cyd@stupidchicken.com>
9571
9572 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9573 the next glyph string once past the overhang width.
9574
9575 * nsterm.m (ns_draw_glyph_string): Likewise.
9576
9577 * w32term.c (x_draw_glyph_string): Likewise.
9578
26ea7079
CY
95792008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9580
9581 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9582 double file close.
9583
1c33c906
MR
95842008-11-14 Martin Rudalics <rudalics@gmx.at>
9585
9586 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9587 dedicated status of window before attempting to display another
9588 buffer in it.
9589
8fc29035
JB
95902008-11-14 Juanma Barranquero <lekktu@gmail.com>
9591
9592 * msdos.c (Fmsdos_long_file_names):
9593 (syms_of_msdos) <dos-unsupported-char-glyph>:
9594 * dosfns.c (Fint86): Fix typos in docstrings.
9595
55fb4286
EZ
95962008-11-14 Eli Zaretskii <eliz@gnu.org>
9597
9598 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9599
3fda0315
KY
96002008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9601
9602 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9603
7e849c17
CY
96042008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9605
9606 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9607
9608 * frame.h: Negative alpha means "don't touch".
9609
9610 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9611
9612 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9613
b9fd67bd
DN
96142008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9615
9616 * hftctl.c:
9617 * chpdef.h:
9618 * acldef.h: Remove files used only for systems no longer supported.
9619
9620 * Makefile.in: Fix .o alphabetical ordering.
9621 (hftctl.o): Remove dependency, file removed.
9622 (keymap.o, print.o): Depend on charset.h.
9623
d5998e03
KH
96242008-11-10 Kenichi Handa <handa@m17n.org>
9625
2ae37cf0 9626 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9627
be70e183
CY
96282008-11-08 Chong Yidong <cyd@stupidchicken.com>
9629
9630 * dired.c (file_name_completion): If completion_ignore_case is
9631 enabled, ignore case when checking completion-regexp-list.
9632
7cf94eac
EZ
96332008-11-08 Eli Zaretskii <eliz@gnu.org>
9634
9635 * vm-limit.c (get_lim_data): Fix last change.
9636
ee107a89
KH
96372008-11-08 Kenichi Handa <handa@m17n.org>
9638
9639 * character.c (Fget_byte): New function.
9640 (syms_of_character): Defsubr Fget_byte.
9641
5fd15622
CY
96422008-11-07 Chong Yidong <cyd@stupidchicken.com>
9643
9644 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9645 cursor position is valid after scrolling.
9646
13d62fad
JB
96472008-11-06 Juanma Barranquero <lekktu@gmail.com>
9648
9649 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9650
a1dd2936
GM
96512008-11-06 Glenn Morris <rgm@gnu.org>
9652
9653 * xterm.c (handle_one_xevent): Don't let popup menus cause
9654 mouse-autoselect-window related window switching. (Bug#1261)
9655
860cd236
CY
96562008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9657
9658 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9659
653a3150
AS
96602008-11-04 Andreas Schwab <schwab@suse.de>
9661
9662 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9663
870f5cac
CY
96642008-11-03 Chong Yidong <cyd@stupidchicken.com>
9665
9666 * xfns.c (Fx_wm_set_size_hint): New function.
9667
1e02f3cb
MR
96682008-11-03 Martin Rudalics <rudalics@gmx.at>
9669
9670 * textprop.c (Fprevious_single_char_property_change): Return 0
9671 when there's no change in a string. (Bug#1301)
9672
e630dfc6
MR
96732008-11-02 Martin Rudalics <rudalics@gmx.at>
9674
9675 * frame.c (do_switch_frame): New argument NORECORD passed to
9676 Fselect_window.
9677 (Fselect_frame): New argument NORECORD passed to
9678 do_switch_frame.
9679 (Fset_frame_selected_window): New argument NORECORD passed to
9680 Fselect_frame.
9681 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9682 in call of do_switch_frame.
9683 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9684 Handle NORECORD argument in call of Fselect_frame.
9685 * lisp.h (do_switch_frame, Fselect_frame)
9686 (Fset_frame_selected_window): Adjust declarations.
9687 * window.c (select_frame_norecord): New function.
9688 (run_window_configuration_change_hook): Use it and call
9689 Fselect_frame with NORECORD set.
9690 (Fselect_window): Pass NORECORD to Fselect_frame.
9691 (Fset_window_configuration): Handle NORECORD argument in call of
9692 do_switch_frame.
9693 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9694 Fset_frame_selected_window.
9695 * keyboard.c (command_loop_1): Handle NORECORD in call of
9696 Fselect_frame (currently ifdefd).
9697
9020b223
GM
96982008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9699
9700 * emacs.c (USAGE2): Untabify.
9701
793ffee8
SM
97022008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9703
9704 * composite.c (fill_gstring_header): Fix copy/paste typo.
9705
ab6d1131
MR
97062008-10-31 Martin Rudalics <rudalics@gmx.at>
9707
9708 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9709 (Fother_window): Rename argument and rewrite doc-string.
9710 (select_window_norecord): Fix return value. (Bug#1276)
9711
601a9cf1
JB
97122008-10-30 Juanma Barranquero <lekktu@gmail.com>
9713
9714 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9715 new frames overriding foreground for tooltips. Based on similar patch
9716 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9717
813b0652
CY
97182008-10-29 Chong Yidong <cyd@stupidchicken.com>
9719
9720 * emacs.c (Fdaemon_initialized): Initialize nfd.
9721
4414f58f
MR
97222008-10-29 Martin Rudalics <rudalics@gmx.at>
9723
9724 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9725 (Fwindow_text_height): Clarify doc-strings.
9726 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9727 doc-string of window-scroll-functions.
9728
ecdcaa09
RS
97292008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9730
9731 * category.c (syms_of_category): Fix typo in docstring.
9732
23fe745a
JB
97332008-10-28 Juanma Barranquero <lekktu@gmail.com>
9734
9735 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9736 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9737 Fix typos in docstrings.
9738
ff808935
DN
97392008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9740
9741 * emacs.c (daemon_pipe): Make non-static.
9742 (IS_DAEMON): Move definition ...
9743 * lisp.h (IS_DAEMON): ... here.
9744 (daemon_pipe): Declare.
9745 (is_daemon): Remove.
9746 * dispnew.c (init_display): Use IS_DAEMON.
9747
fc012771
SM
97482008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9749
9750 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9751 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9752
9753 * emacs.c (is_daemon): Remove.
9754 (main): Don't set is_daemon.
9755 (IS_DAEMON): New macro.
9756 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9757 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9758 parent exits.
9759 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9760
d8bdbe6f
CY
97612008-10-27 Chong Yidong <cyd@stupidchicken.com>
9762
d1a072bf
CY
9763 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9764 over-sized glyph, draw it with the default glyph width.
9765
e2e325aa
CY
9766 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9767 glyph, draw it with the default glyph width.
9768
9769 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9770 glyph, draw it with the default glyph width.
9771
d8bdbe6f
CY
9772 * xdisp.c (try_scrolling): When computing the distance from the
9773 scroll margin to PT, try moving some distance past the window
9774 bottom before giving up.
9775
7bfac547
MR
97762008-10-27 Martin Rudalics <rudalics@gmx.at>
9777
9778 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9779 (Fset_window_buffer): Explain in doc-string that a window can be
9780 "strongly" dedicated to its buffer.
9781
4ff029f6
DN
97822008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9783
9784 * emacs.c (daemon_name): New variable.
9785 (main): Deal with --daemon=SERVER_NAME.
9786 (Fdaemonp): Return a name if one was passed to --daemon.
9787
5790ef40
DN
97882008-10-26 Romain Francoise <romain@orebokech.com>
9789
f9bd0df9 9790 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9791 (main): Create a pipe before forking, make the parent exit only after
9792 the child has closed its end of the pipe. Move closing the
9793 descriptors ...
9794 (Fdaemon_initialized): ... here. New function.
9795
f5385255
SM
97962008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9797
4d632321
SM
9798 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9799 the previous unoptimized table.
9800
f5385255
SM
9801 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9802 the distinction between non-nil and non-t value of `dedicated'.
9803
6c56a0f3
CY
98042008-10-25 Chong Yidong <cyd@stupidchicken.com>
9805
9806 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9807 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9808
fec89261
MR
98092008-10-25 Martin Rudalics <rudalics@gmx.at>
9810
9811 * window.c (Fget_buffer_window, Fdelete_windows_on)
9812 (Freplace_buffer_in_windows): Make buffer argument optional and
9813 rename to buffer_or_name.
9814
34fcddd0
CY
98152008-10-24 Chong Yidong <cyd@stupidchicken.com>
9816
f5385255
SM
9817 * xdisp.c (handle_single_display_spec, handle_display_prop):
9818 Undo 2005-05-16 change.
34fcddd0
CY
9819 (handle_stop): Pop iterator if it's loaded with an empty string.
9820 (get_overlay_strings_1): Don't save iterator if it's loaded with
9821 an empty string (bug#1201).
9822
064766f2
KH
98232008-10-24 Kenichi Handa <handa@m17n.org>
9824
9825 * ftfont.c (ftfont_otf_features): Fix previous change.
9826 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9827 calling ftfont_otf_features.
9828
f9bd0df9 98292008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9830
9831 * font.c (font_match_p): Fix for the case that a vector of
9832 characters is in script-representative-chars.
9833
1dae9197
MA
98342008-10-24 Michael Albinus <michael.albinus@gmx.de>
9835
9836 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9837 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9838 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9839 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9840 macro. (Bug#1186)
1dae9197 9841
f9bd0df9 98422008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9843
9844 * s/sol2-10.h: New file.
9845
878a4584
JB
98462008-10-23 Juanma Barranquero <lekktu@gmail.com>
9847
9848 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9849 poor beast has survived 9+ years and the jump from xterm.c!).
9850
cd265ca6
MR
98512008-10-23 Martin Rudalics <rudalics@gmx.at>
9852
9853 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9854 Reword doc-string.
f5385255 9855 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9856
472a4dc9
JB
98572008-10-23 Juanma Barranquero <lekktu@gmail.com>
9858
9859 * character.c (syms_of_character) <script-representative-chars>:
9860 <unicode-category-table>: Doc fixes.
9861
159bd5a2
NF
98622008-10-23 Noah Friedman <friedman@splode.com>
9863
9864 * coding.c (make_conversion_work_buffer): Check that
9865 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9866 Fget_buffer_create.
9867
49f9c344
KH
98682008-10-23 Kenichi Handa <handa@m17n.org>
9869
9870 * font.c (font_add_log): Check the values of extra properties.
9871
12bb3111
MR
98722008-10-22 Martin Rudalics <rudalics@gmx.at>
9873
9874 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9875 Reword doc-string.
9876 (Fset_window_parameter): Use NILP.
9877 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9878 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9879
bbeb4e99
JB
98802008-10-22 Juanma Barranquero <lekktu@gmail.com>
9881
9882 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9883
98842008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9885
9886 * nsfns.m (ns_appkit_version): New function.
9887 (x-server-version): Use it.
9888 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9889 (x-server-vendor): Don't check_ns().
9890
9891 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9892
a9b555d3
JB
98932008-10-22 Juanma Barranquero <lekktu@gmail.com>
9894
9895 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9896 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9897
4626499f
KH
98982008-10-22 Kenichi Handa <handa@m17n.org>
9899
e3681952
KH
9900 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9901 scripts.
9902
4626499f
KH
9903 * category.c (word_boundary_p): Check scripts instead of charset.
9904 Handle nil value in word-separating-categories and
9905 word-combining-categories.
9906 (syms_of_category): Fix docstrings of word-separating-categories
9907 and word-combining-categories.
9908
1560f91a
EZ
99092008-10-21 Eli Zaretskii <eliz@gnu.org>
9910
9911 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9912 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9913
f4668441
MR
99142008-10-21 Martin Rudalics <rudalics@gmx.at>
9915
9916 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9917 Rename arg "buffer" to "buffer_or_name".
9918 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9919 it optional.
9920 (no_switch_window): Remove since the return value is not used.
a9b555d3 9921 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9922 Consider window as dedicated when Fwindow_dedicated_p returns a
9923 non-nil value.
9924 * lisp.h: Remove prototype for no_switch_window.
9925
fd75ddb2
JD
99262008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9927
9928 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9929 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9930
07295713
KH
99312008-10-21 Kenichi Handa <handa@m17n.org>
9932
9933 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9934 check Vlatin_extra_code_table.
9935
712adc82
EZ
99362008-10-20 Eli Zaretskii <eliz@gnu.org>
9937
9938 * fileio.c (Fset_file_modes): Doc fix.
9939
f549eb0b
MA
99402008-10-19 Michael Albinus <michael.albinus@gmx.de>
9941
9942 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9943 in arrays.
9944
aac0c6e3
MR
99452008-10-19 Martin Rudalics <rudalics@gmx.at>
9946
9947 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9948 Mention kill-buffer in doc-string.
9949 (Fset_window_buffer): Reinsert tem check removed in last commit.
9950 (Fenlarge_window, Fshrink_window): Have argument names and
9951 doc-string follow Elisp manual more closely.
9952
99532008-10-18 Eli Zaretskii <eliz@gnu.org>
9954
9955 * fileio.c (Fset_file_modes): Doc fix.
9956
99572008-10-18 Martin Rudalics <rudalics@gmx.at>
9958
9959 * window.c (Fwindow_width, Fset_window_start)
9960 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9961 (Fdelete_windows_on, Freplace_buffer_in_windows):
9962 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9963 (Fwindow_dedicated_p): Make window argument optional.
9964 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9965 (Fset_window_buffer): Respect any non-nil dedicated value for
9966 window. Rename "buffer" argument to "buffer_or_name".
9967
99682008-10-18 Ulrich Mueller <ulm@gentoo.org>
9969
9970 * m/sh3.h: New file, machine description for SuperH.
9971
99722008-10-17 Martin Rudalics <rudalics@gmx.at>
9973
9974 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9975
99762008-10-17 Kenichi Handa <handa@m17n.org>
9977
9978 * ftfont.c (ftfont_otf_features): Fix indexing
9979 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9980
99812008-10-16 Magnus Henoch <mange@freemail.hu>
9982
9983 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9984 (Fdbus_call_method_asynchronously): Ditto.
9985 This change makes C-h f display the argument list.
9986
99872008-10-16 Chong Yidong <cyd@stupidchicken.com>
9988
9989 * fileio.c (Fexpand_file_name): Doc fix.
9990
9991 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9992 of :foreground and :background equivalent to unspecified (20.x
9993 compatibility).
9994
99952008-10-15 Eli Zaretskii <eliz@gnu.org>
9996
9997 * buffer.c (syms_of_buffer): Doc fix.
9998
99992008-10-14 Kenichi Handa <handa@m17n.org>
10000
10001 * font.c (font_clear_prop): When clearing font width, clear the
10002 average width field too.
10003
100042008-10-12 Andreas Schwab <schwab@suse.de>
10005
10006 * ftfont.c (ftfont_shape_by_flt): Make static.
10007 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10008
10009 * font.c: Don't include <m17n-flt.h>.
10010
100112008-10-10 Eli Zaretskii <eliz@gnu.org>
10012
10013 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10014
100152008-10-09 Eli Zaretskii <eliz@gnu.org>
10016
10017 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10018 away code.
10019
100202008-10-09 Chong Yidong <cyd@stupidchicken.com>
10021
10022 * dispnew.c (update_text_area): Avoid looping due to large glyph
10023 overhangs (bug#1070).
10024
100252008-10-09 Kenichi Handa <handa@m17n.org>
10026
10027 * fontset.c (face_for_char): If face->fontset is negative, just
10028 return ascii_face.
10029
f5385255
SM
10030 * font.c (font_delete_unmatched): Fix previous change.
10031 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10032
100332008-10-09 Martin Rudalics <rudalics@gmx.at>
10034
10035 * frame.c (Fraise_frame): On text-only terminals select frame in
10036 order to make it visible. (Bug#1061)
10037
100382008-10-08 Chong Yidong <cyd@stupidchicken.com>
10039
10040 * fontset.c (fontset_find_font): Check frame validity.
10041
100422008-10-07 Chong Yidong <cyd@stupidchicken.com>
10043
a9b555d3 10044 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10045 (xg_display_close): Allow Emacs to close all displays (bug#985).
10046
100472008-10-06 Andreas Schwab <schwab@suse.de>
10048
f5385255 10049 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10050
100512008-10-06 Chong Yidong <cyd@stupidchicken.com>
10052
f5385255 10053 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10054
a9b555d3 10055 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10056
10057 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10058 during initialization.
10059
100602008-10-04 Eli Zaretskii <eliz@gnu.org>
10061
10062 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10063 whole thing on MSDOS frames as well as on a TTY.
10064
10065 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10066 well as for TTY.
10067 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10068 well as on a TTY.
10069
10070 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10071 as well as for TTY.
10072
10073 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10074
10075 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10076 MSDOS frames as well.
10077
100782008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10079
10080 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10081 correct arguments.
b71ac3dd 10082 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10083
100842008-10-03 Glenn Morris <rgm@gnu.org>
10085
10086 * emacs.c (USAGE1): Add --daemon.
10087
100882008-10-02 Eli Zaretskii <eliz@gnu.org>
10089
10090 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10091 100, so it's in percents as advertised.
10092
100932008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10094
10095 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10096 (ns_output.current_cursor, ns_output.desired_cursor)
10097 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10098 (FRAME_NEW_CURSOR_COLOR): Remove.
10099
10100 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10101 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10102 enumeration (HOLLOW_BOX_CURSOR, etc.).
10103
10104 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10105 (draw_window_cursor): Simplify code.
f5385255
SM
10106 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10107 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10108 updates manually.
a9b555d3
JB
10109 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10110 Use core Emacs cursor types.
aac0c6e3 10111
b8ff72fa 10112 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10113
101142008-10-02 Martin Rudalics <rudalics@gmx.at>
10115
10116 * process.c (Faccept_process_output): Fix doc-string.
10117
101182008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10119
10120 * gmalloc.c (__sbrk): Also define for uClibc.
10121
10122 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10123 for uClibc.
10124
101252008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10126
10127 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10128 styles.
10129 (nsfont_open): Reenable the cache.
10130
101312008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10132
10133 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10134 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10135
101362008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10137
10138 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10139 a suspended terminal.
10140
101412008-09-30 Michael Albinus <michael.albinus@gmx.de>
10142
10143 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10144
101452008-09-30 Eli Zaretskii <eliz@gnu.org>
10146
10147 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10148
101492008-09-30 Chong Yidong <cyd@stupidchicken.com>
10150
10151 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10152 in a continued line coincides with a line beginning.
10153
101542008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10155
10156 * nsfont.m (nsfont_trait_distance): Fix bug.
10157 (nsfont_list): Return a list rather than a vector (syncs with Handa
10158 changes of 2008-05-14).
10159 (nsfont_open): Improve logging.
10160
101612008-09-29 Andreas Schwab <schwab@suse.de>
10162
10163 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10164
101652008-09-28 Martin Rudalics <rudalics@gmx.at>
10166
10167 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10168 name as char-resolve-modifiers.
10169 Reported by: Markus Triska <markus.triska@gmx.at>
10170
101712008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10172
10173 * dispnew.c (init_display): Return earlier when running as a daemon.
10174
101752008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10176
10177 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10178
101792008-09-27 Eli Zaretskii <eliz@gnu.org>
10180
10181 * composite.c (Fcomposition_get_gstring)
10182 (Fcompose_region_internal, Fcompose_string_internal)
10183 (Ffind_composition_internal): Doc fix.
10184 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10185 (syms_of_composite) <auto-composition-function>: Doc fix.
10186 (syms_of_composite) <composition-function-table>: Doc fix.
10187
101882008-09-25 Chong Yidong <cyd@stupidchicken.com>
10189
10190 * search.c (wordify): New argument for lax word-ends.
10191 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10192
101932008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10194
10195 * lisp.h (is_daemon): Declare.
10196 * dispnew.c (init_display): Do not try to initialize the terminal
10197 when running as a daemon.
10198
101992008-09-22 Chong Yidong <cyd@stupidchicken.com>
10200
10201 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10202 x_display_pixel_height.
10203
102042008-09-22 Martin Rudalics <rudalics@gmx.at>
10205
10206 * undo.c (record_point): Don't call Fundo_boundary for first
10207 change. (Bug#731)
10208
102092008-09-22 Juanma Barranquero <lekktu@gmail.com>
10210
10211 * emacs.c (Fdaemonp): Doc fix.
10212
102132008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10214
10215 * emacs.c (main): Place #ifdef in the proper place.
10216
102172008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10218
10219 * emacs.c (standard_args): Add --daemon.
10220 (main): Disconnect from the terminal when --daemon is passed.
10221 (is_daemon): New variable.
10222 (Fdaemonp): New function.
10223 (syms_of_emacs): Defsubr it.
10224
102252008-09-20 Chong Yidong <cyd@stupidchicken.com>
10226
10227 * xdisp.c (get_next_display_element): Handle string display
10228 correctly when checking for the end of a box run.
10229
102302008-09-20 Glenn Morris <rgm@gnu.org>
10231
10232 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10233 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10234 (Frename_file): Avoid copying to trash if a rename involves
10235 a delete. (Bug#964).
10236
102372008-09-20 Eli Zaretskii <eliz@gnu.org>
10238
10239 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10240 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10241 frames as well as termcap frames.
10242 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10243 get_named_tty.
10244
102452008-09-19 Eli Zaretskii <eliz@gnu.org>
10246
10247 * process.c (procfs_system_process_attributes): Fix cmdline in
10248 case /proc/PID/cmdline is empty.
10249
10250 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10251 x_display_pixel_height.
10252
102532008-09-19 Juanma Barranquero <lekktu@gmail.com>
10254
10255 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10256
10257 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10258 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10259
102602008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10261
10262 * dispextern.h (struct it): Move line_wrap away from the middle of
10263 bitfields. Move voffset in struct iterator_stack_entry after the
10264 bitfields. Move tab_width near after another short.
10265
102662008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10267
10268 * frame.h (struct frame): Move alpha from the middle of bitfields.
10269
10270 * window.h (struct window): Move frozen_window_start_p after the
10271 rest of the bitfields to reduce padding.
10272
102732008-09-18 Chong Yidong <cyd@stupidchicken.com>
10274
10275 * xterm.h (x_display_info): Remove `height' and `width' members.
10276
10277 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10278
10279 * w32term.h (w32_display_info): Remove `height', `width',
10280 `height_in', and `width_in' members.
10281
b8ff72fa
SM
10282 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10283 New functions.
aac0c6e3
MR
10284 (x_calc_absolute_position): Use them.
10285 (x_term_init): Omit removed `height' and `width' members.
10286
b8ff72fa
SM
10287 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10288 New functions.
aac0c6e3
MR
10289 (w32_read_socket, x_calc_absolute_position): Use them.
10290 (w32_initialize_display_info, w32_term_init): Omit removed members
10291 of w32_display_info.
10292
b8ff72fa
SM
10293 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10294 New functions.
10295 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10296
b8ff72fa
SM
10297 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10298 New functions.
aac0c6e3
MR
10299 (x_calc_absolute_position): Use them.
10300 (x_term_init): Omit removed `height' and `width' members.
10301
10302 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10303 (compute_tip_xy):
10304 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10305 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10306 x_display_pixel_width.
10307
103082008-09-18 Kenichi Handa <handa@m17n.org>
10309
10310 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10311 (composition_compute_stop_pos): Fix handling of static composition.
10312 (Fcomposition_get_gstring): Check FROM and TO at first.
10313
103142008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10315
46e722a9 10316 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10317 mixup (YAILOM).
10318
103192008-09-17 Chong Yidong <cyd@stupidchicken.com>
10320
10321 * indent.c (Fvertical_motion): Use position reported by iterator
10322 instead of PT for determining screen motion (bug#943).
10323
103242008-09-17 Romain Francoise <romain@orebokech.com>
10325
10326 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10327
103282008-09-17 Kenichi Handa <handa@m17n.org>
10329
10330 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10331
10332 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10333 if necessary.
10334
103352008-09-16 Kenichi Handa <handa@m17n.org>
10336
10337 * coding.c (make_conversion_work_buffer): Avoid calling
10338 Fget_buffer_create if it is not necessary.
10339
103402008-09-15 Martin Rudalics <rudalics@gmx.at>
10341
10342 * window.c (Fselect_window): Don't update window_select_count and
10343 use_time when norecord is not nil.
10344
103452008-09-14 Kenichi Handa <handa@m17n.org>
10346
10347 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10348 specpdl_ptr.
10349
103502008-09-12 Kenichi Handa <handa@m17n.org>
10351
10352 * indent.c (scan_for_column): Don't handle automatic composition
10353 if the current buffer is not associated with a window.
10354
10355 * composite.c (composition_reseat_it): If the current buffer is
10356 not associated with a window, ignore the automatic composition.
10357 (find_automatic_composition): Likewise.
10358
103592008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10360
10361 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10362 (Fgpm_mouse_stop): Use it.
10363 * termhooks.h (close_gpm): Declare.
10364 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10365 connection if Gpm_GetEvent fails.
10366
10367 * window.c (set_window_buffer): Always preserve current-buffer.
10368
103692008-09-12 Glenn Morris <rgm@gnu.org>
10370
10371 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10372
103732008-09-11 Glenn Morris <rgm@gnu.org>
10374
10375 * charset.c (charset-map-path): Doc fix.
10376
103772008-09-10 Kenichi Handa <handa@m17n.org>
10378
10379 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10380
10381 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10382 compose a grapheme cluster with the preceding base glyph.
10383
10384 * composite.c (composition_compute_stop_pos): Fix previous change.
10385 Reset cmp_it->id to -1 at first.
10386
103872008-09-10 Glenn Morris <rgm@gnu.org>
10388
10389 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10390
103912008-09-09 Chong Yidong <cyd@stupidchicken.com>
10392
10393 * keyboard.c (read_key_sequence): Reapply translation maps when
10394 switching keyboards.
10395
103962008-09-09 Kenichi Handa <handa@m17n.org>
10397
10398 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10399 characters.
10400
10401 * composite.c (FORWARD_CHAR): Fix calculation
10402 of (POSITION).pos_byte.
10403 (composition_compute_stop_pos): Limit the search of composition to
10404 at most 500 characters ahead. If we reach the limit or find a
10405 newline, set cmp_it->ch to -2 and return 0.
10406 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10407
104082008-09-08 Kenichi Handa <handa@m17n.org>
10409
10410 * indent.c (Fvertical_motion): Be sure to set
10411 it_overshoot_expected if it.cmp_it.id is non-negative.
10412
104132008-09-07 Andreas Schwab <schwab@suse.de>
10414
10415 * callproc.c (Fcall_process): Don't hold references to string data
10416 across garbage collection. Move initialisation of new_argv down
10417 to avoid compiler bug.
10418
104192008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10420
10421 * process.c (Fsystem_process_attributes): Doc fix.
10422
104232008-09-07 Chong Yidong <cyd@stupidchicken.com>
10424
10425 * callproc.c (Fcall_process): Canonicalize current directory name.
10426
10427 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10428 iterator advances to the next line if the current line ends in a
10429 continued tab.
10430
104312008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10432
10433 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10434 member to point to cmp_from.
10435
10436 * xdisp.c: Doc fix for references to gidx data member.
10437
104382008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10439
10440 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10441
104422008-09-07 Kenichi Handa <handa@m17n.org>
10443
10444 * composite.c (FORWARD_CHAR): Check STOP after
10445 incrementing (POSITION).pos.
10446
104472008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10448
10449 * process.c (Fsystem_process_attributes): Doc fix.
10450
104512008-09-06 Chong Yidong <cyd@stupidchicken.com>
10452
10453 * keyboard.c (Ftop_level): Doc fix.
10454
104552008-09-06 Eli Zaretskii <eliz@gnu.org>
10456
10457 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10458 minibuffer, don't let lower part of menu invade the echo area.
10459
10460 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10461 "char *q" to access menu text and advance through it. Revert the
10462 change that displayed ">" instead of ASCII character 0x10.
10463
104642008-09-05 Eli Zaretskii <eliz@gnu.org>
10465
10466 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10467 toggle boxes and radio buttons on MS-DOS as well.
10468
104692008-09-05 Kenichi Handa <handa@m17n.org>
10470
10471 * composite.c (autocmp_chars): Check lookback count.
10472 (composition_compute_stop_pos): Set cmp_it->lookback.
10473 (composition_reseat_it): Check lookback count.
10474 (struct position_record): New struct.
10475 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10476 (find_automatic_composition): New function.
10477 (composition_adjust_point): Use find_automatic_composition.
10478
10479 * dispextern.h (struct composition_it): New member lookback.
10480
104812008-09-02 Chong Yidong <cyd@stupidchicken.com>
10482
10483 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10484 if moving by a single line.
10485
104862008-09-02 Andreas Schwab <schwab@suse.de>
10487
10488 * xterm.c (x_delete_display): Fix merge error.
10489
10490 * fileio.c (Fexpand_file_name): Remove unused variables.
10491
104922008-09-02 Eli Zaretskii <eliz@gnu.org>
10493
10494 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10495 storage on all platforms, not just on DOS_NT.
10496
104972008-09-02 Jason Rumney <jasonr@gnu.org>
10498
b8ff72fa
SM
10499 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10500 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10501
105022008-09-01 Chong Yidong <cyd@stupidchicken.com>
10503
10504 * xfaces.c (Finternal_set_alternative_font_family_alist)
10505 (Finternal_set_alternative_font_registry_alist): Properly copy
10506 entire alist structure.
10507
105082008-09-01 Kenichi Handa <handa@m17n.org>
10509
d66c0241 10510 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10511 representative chars of the script is a vector.
d66c0241
JB
10512 (ftfont_list): Handle the case where the representative chars of
10513 the script is a vector.
aac0c6e3
MR
10514
10515 * character.c (syms_of_character): Docstring of
10516 script-representative-chars fixed.
10517
105182008-08-31 Eli Zaretskii <eliz@gnu.org>
10519
10520 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10521 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10522 the menu. Allocate larger buffer for `text', to account for
10523 possible ^C characters.
10524
105252008-08-31 Martin Rudalics <rudalics@gmx.at>
10526
10527 * xdisp.c (prepare_menu_bars): Don't call
10528 Vwindow_size_change_functions with arg Qt.
10529
105302008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10531
10532 * font.h (font_range):
10533 * fileio.c (report_file_error):
46e722a9
SM
10534 * composite.c (composition_update_it): Yet another int/Lisp_Object
10535 mixup (YAILOM).
aac0c6e3
MR
10536
105372008-08-30 Glenn Morris <rgm@gnu.org>
10538
10539 * data.c (Fmake_variable_frame_local): Doc fix.
10540
10541 * frame.c (Fmodify_frame_parameters): Doc fix.
10542
105432008-08-30 Eli Zaretskii <eliz@gnu.org>
10544
10545 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10546 needed by GetTokenInformation.
10547 (w32_system_process_attributes): Check return values of all system
10548 APIs.
10549
10550 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10551 only when the state changes.
10552 (IT_update_begin, IT_update_end): Add termscript trace.
10553
10554 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10555 clipboard is unavailable. Set dst to NULL if it doesn't point to
10556 malloc'ed data.
10557 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10558 passing random values to xfree.
10559
10560 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10561 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10562
105632008-08-29 Jason Rumney <jasonr@gnu.org>
10564
10565 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10566
105672008-08-29 Eli Zaretskii <eliz@gnu.org>
10568
10569 * composite.c (fill_gstring_body): Avoid compiler warnings.
10570
10571 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10572 LGLYPH_SET_CODE to avoid compiler warnings.
10573
2ae37cf0 10574 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10575
10576 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10577
10578 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10579 LGLYPH_SET_CODE.
10580
105812008-08-29 Kenichi Handa <handa@m17n.org>
10582
10583 * fileio.c (report_file_error): Don't downcase the first character
10584 of errstring if it is still unibyte.
10585
105862008-08-29 Kenichi Handa <handa@m17n.org>
10587
10588 These changes are to re-implement the automatic composition so
10589 that it doesn't use text properties.
10590
10591 * Makefile.in (ftfont.o): Depend on composite.h.
10592 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10593
10594 * character.h (Vunicode_category_table): Extern it.
10595
10596 * character.c (Vunicode_category_table): New variable.
10597 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10598
10599 * chartab.c (optimize_sub_char_table): Perform more greedy
10600 optimization.
10601
b8ff72fa
SM
10602 * composite.h (enum composition_method):
10603 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10604 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10605 (Vcomposition_function_table): Extern it.
10606 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10607 (composition_gstring_put_cache, composition_gstring_from_id)
10608 (composition_gstring_p, composition_gstring_width)
10609 (composition_compute_stop_pos, composition_reseat_it)
10610 (composition_update_it, composition_adjust_point): Extern them.
10611 (Fcomposition_get_gstring): EXFUN it.
10612
d66c0241 10613 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10614 (Vcomposition_function_table)
10615 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10616 (gstring_hash_table, gstring_work, gstring_work_headers):
10617 New variables.
aac0c6e3
MR
10618 (gstring_lookup_cache, composition_gstring_put_cache)
10619 (composition_gstring_from_id, composition_gstring_p)
10620 (composition_gstring_width, fill_gstring_header)
10621 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10622 (composition_reseat_it, composition_update_it)
b8ff72fa 10623 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10624 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10625 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10626 Defsubr composition_get_gstring.
aac0c6e3
MR
10627
10628 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10629 cmp_id.
10630 (struct glyph_string): Delete the member gidx. New members
10631 cmp_id, cmp_from, and cmp_to.
10632 (enum it_method): Delete GET_FROM_COMPOSITION.
10633 (struct composition_it): New struct.
10634 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10635 Delete c, len, cmp_id, cmp_len in u.comp.
10636
10637 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10638 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10639 (enum lglyph_indices): Likewise.
b8ff72fa 10640 (font_range): Adjust extern.
aac0c6e3
MR
10641 (font_fill_lglyph_metrics): Extern it.
10642
10643 * font.c (QCf): New variable.
10644 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10645 (font_prepare_composition): Delete this function.
10646 (font_range): Type and arguments changed.
10647 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10648 (font_fill_lglyph_metrics): New function.
b8ff72fa 10649 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10650 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10651 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10652 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10653
10654 * fontset.h (font_for_char): Extern it.
10655
10656 * fontset.c (font_for_char): New function.
10657
10658 * ftfont.c: Include composite.h.
10659 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10660 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10661
10662 * indent.c: Include composite.h and dispextern.h.
10663 (check_composition): Delete this function.
10664 (scan_for_column): Handle composition by
10665 composition_compute_stop_pos, composition_reseat_it, and
10666 composition_update_it.
10667 (compute_motion): Likewise.
10668 (Fvertical_motion): Fix checking of composition.
10669
10670 * keyboard.c (adjust_point_for_property): Check composition by
10671 composition_adjust_point.
10672
b8ff72fa 10673 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10674 struct glyph_string.
10675
b8ff72fa
SM
10676 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10677 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10678 struct glyph.
10679 (produce_composite_glyph): Likewise.
10680
b8ff72fa
SM
10681 * w32term.c (x_draw_composite_glyph_string_foreground):
10682 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10683 (x_draw_glyph_string): Likewise.
10684
10685 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10686 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10687
10688 * xdisp.c: Include font.h.
10689 (it_props): Delete the entry for Qauto_composed.
10690 (init_iterator): Initialize it->cmp_it.id to -1.
10691 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10692 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10693 (handle_auto_composed_prop): Delete it.
10694 (handle_composition_prop): Handle only static composition.
10695 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10696 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10697 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10698 (pop_it): Likewise.
10699 (get_next_element): Delete next_element_from_composition.
10700 (CHAR_COMPOSED_P): New macro.
10701 (get_next_display_element): For automatic composition, get a face
10702 from the font in the glyph-string.
10703 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10704 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10705 (next_element_from_string): Check if the character at the current
10706 position is composed by CHAR_COMPOSED_P.
10707 (next_element_from_buffer): Likewise.
d66c0241
JB
10708 (next_element_from_composition): Adjust for the change of struct it.
10709 Update it->cmp_it.
b8ff72fa
SM
10710 (dump_glyph): Adjust for the change of struct glyph.
10711 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10712 it and struct glyph. Don't handle automatic composition here.
10713 (fill_gstring_glyph_string): New function.
10714 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10715 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10716 (BUILD_GSTRING_GLYPH_STRING): New macro.
10717 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10718 automatic composition.
b8ff72fa 10719 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10720 struct glyph.
b8ff72fa 10721 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10722
b8ff72fa 10723 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10724 the change of struct glyph_string.
10725 (x_draw_glyph_string): Likewise.
10726
107272008-08-29 Glenn Morris <rgm@gnu.org>
10728
10729 * buffer.c (word-wrap): Doc fix.
10730 * xdisp.c (truncate-partial-width-windows): Doc fix.
10731 Increase default to 50.
10732
107332008-08-29 Chong Yidong <cyd@stupidchicken.com>
10734
10735 * xdisp.c (update_tool_bar_unwind): New function.
10736 (update_tool_bar): Temporarily set selected frame before building
10737 tool-bar items.
10738
107392008-08-28 Michael Albinus <michael.albinus@gmx.de>
10740
10741 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10742 snprintf, respectively.
10743 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10744
107452008-08-28 Chong Yidong <cyd@stupidchicken.com>
10746
10747 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10748 LDFLAGS to GNUstep CC invocation.
10749
107502008-08-27 Chong Yidong <cyd@stupidchicken.com>
10751
10752 * indent.c (Fvertical_motion): Revert last change. Handle the
10753 general case where we are moving forward, and PT spans multiple
10754 screen lines.
10755
10756 * eval.c (find_handler_clause): Temporarily increase
10757 max-lisp-eval-depth while printing the backtrace buffer, to
10758 guarantee that help-mode code can run.
10759
107602008-08-27 Eli Zaretskii <eliz@gnu.org>
10761
10762 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10763 colors under -rv.
10764 (IT_set_frame_parameters): Don't swap foreground and background
10765 colors if `(reverse . t)' is present in the frame properties.
10766 (internal_terminal_init): Call init_frame_faces only for the
10767 initial frame.
10768
107692008-08-27 Andreas Schwab <schwab@suse.de>
10770
10771 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10772
107732008-08-27 Andreas Schwab <schwab@suse.de>
10774
10775 * search.c (search_buffer): Set char_base to zero only at the end.
10776
107772008-08-27 Kenichi Handa <handa@m17n.org>
10778
b8ff72fa 10779 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10780
107812008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10782
10783 * xterm.c (x_term_init): Temporarily hide the partially
10784 initialized terminal while calling vendor-specific-keysyms.
10785
107862008-08-26 Eli Zaretskii <eliz@gnu.org>
10787
10788 * msdos.c (internal_terminal_init): Most initializations done only
10789 once, especially initial_screen_colors[] and termscript open.
10790
107912008-08-26 Chong Yidong <cyd@stupidchicken.com>
10792
10793 * eval.c (Fcondition_case): Doc fix.
10794
10795 * widgetprv.h (EmacsFramePart): Change font member to the new font
10796 struct.
10797
10798 * widget.c: Include character.h and font.h for XSETFONT.
10799 (setup_frame_gcs): Compute X font id from font struct, just once.
10800
108012008-08-26 Eli Zaretskii <eliz@gnu.org>
10802
10803 * term.c (get_named_tty): Fix last change.
10804
108052008-08-26 Chong Yidong <cyd@stupidchicken.com>
10806
10807 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10808 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10809
108102008-08-25 Eli Zaretskii <eliz@gnu.org>
10811
10812 * frame.c (do_switch_frame): Mark previously displayed frame as
10813 obscured for FRAME_MSDOS_P frames as well.
10814
108152008-08-24 Eli Zaretskii <eliz@gnu.org>
10816
10817 * frame.c (make_terminal_frame): Initialize f->terminal,
10818 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10819 Set the top frame to newly created frame.
10820 (Fmake_terminal_frame): Reuse the_only_display_info.
10821
10822 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10823 estimating available memory.
10824
b97439ce 108252008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10826
10827 * nsterm.m (ns_draw_window_cursor): Don't call
10828 NSDisableScreenUpdates and NSEnableScreenUpdates on
10829 non-NS_IMPL_COCOA systems.
10830
108312008-08-23 Andreas Schwab <schwab@suse.de>
10832
10833 * process.c (procfs_system_process_attributes): Fix use of
10834 uninitialized variables.
10835
108362008-08-23 Eli Zaretskii <eliz@gnu.org>
10837
10838 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10839
10840 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10841 calling tty-set-up-initial-frame-faces.
10842
b8ff72fa
SM
10843 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10844 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10845
10846 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10847 addition to output_termcap.
10848
10849 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10850
10851 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10852 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10853 highlight.
10854
10855 * process.c [!subprocesses]: Define QCname.
10856 (syms_of_process): Intern and staticpro it.
10857
10858 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10859 Adjust for changes in encoding/decoding routines.
10860 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10861 encode_coding and decode_coding.
10862
b8ff72fa 10863 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10864
10865 * dosfns.c: Include frame.h before termhooks.h.
10866 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10867 variable termscript.
10868
10869 * s/msdos.h (USER_FULL_NAME): Define.
10870 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10871
10872 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10873 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10874 pw->pw_gecos.
10875
10876 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10877 SELECTED_FRAME as additional (1st) argument.
10878 (tty_read_avail_input): Handle output_msdos_raw in
10879 addition to output_termcap.
10880
10881 * msdos.c: Include frame.h before termhooks.h.
10882 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10883 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10884 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10885 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10886 (IT_set_terminal_modes, IT_reset_terminal_modes)
10887 (IT_set_frame_parameters): Use tty->termscript instead of a global
10888 variable termscript.
10889 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10890 global variable terminal_coding. Don't refer to
10891 Vnonascii_translation_table.
10892 (internal_terminal_init): Set Vwindow_system in current_kboard.
10893 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10894 Announce date and time of session start, if termscript is open.
10895 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10896 term.c:init_tty). Open termscript only of not already open.
10897 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10898 here instead of dos_ttraw. Don't initialize display if this is an
10899 initial tty. Don't set FRAME_FONT.
10900 (Vwindow_system_version): Bump to 23.
10901 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10902 is available, set up mouse_position_hook.
10903 (dos_ttraw, IT_set_terminal_modes): If called with initial
10904 terminal, do nothing.
10905 (IT_set_frame_parameters): Handle the Qtty_type frame
10906 parameter by calling internal_terminal_init.
10907 (dos_set_window_size, show_mouse_face)
10908 (clear_mouse_face, IT_note_mode_line_highlight)
10909 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10910 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10911 (initialize_msdos_display): New function.
10912 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10913 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10914 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10915 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10916 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10917 (request_sigio, unrequest_sigio): Don't define, now defined on
10918 sysdep.c.
10919 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10920
10921 * term.c [MSDOS]: Include msdos.h.
10922 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10923 conditional to DOS_NT. Allow only one call to this function in a
10924 session. Don't allocate a new struct tty_display_info; instead,
10925 reuse the_only_display_info. Call get_tty_size to get screen
10926 dimensions. Call init_baud_rate to set bad_rate.
10927 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10928 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10929 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10930 (get_tty_terminal, get_named_tty, Ftty_type)
10931 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10932 output_termcap.
b8ff72fa
SM
10933 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10934 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10935 only when subprocesses are supported.
aac0c6e3
MR
10936
10937 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10938 f->output_data.x.
10939 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10940 terminal devices.
10941
5582fbc7 10942 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10943 x_output.
10944 (FRAME_FONT): Use output_data.tty.
10945 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10946 (struct x_display_info): Rename from display_info. Update all users in
10947 msdos.c.
aac0c6e3 10948 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10949 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10950 (dos_ttraw): Update prototype.
10951
10952 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10953 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10954
109552008-08-23 Jason Rumney <jasonr@gnu.org>
10956
10957 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10958 (fn_TIFFSetDirectory): New library function used.
10959 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10960 (tiff_load): Use :index to select among multiple images. Set count
10961 property when multiple images exist.
10962 (gif_format): Use :index, not :image.
10963
109642008-08-23 Chong Yidong <cyd@stupidchicken.com>
10965
10966 * xdisp.c (try_scrolling): Check INT_MAX instead of
10967 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10968 to obtain INT_MAX.
10969
109702008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10971
10972 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10973
109742008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10975
10976 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10977 GNUstep library location.
10978
109792008-08-21 Chong Yidong <cyd@stupidchicken.com>
10980
10981 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10982 before using it.
10983
10984 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10985
109862008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10987
10988 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10989 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10990 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10991 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10992 (EmacsApp-cursor_blink_handler): Remove declaration.
10993 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10994 match 01 Feb 2008 changes in xterm.c.
10995 (ns_read_socket): Add cast to avoid warning.
10996 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10997 GNUstep.
10998
109992008-08-20 Chong Yidong <cyd@stupidchicken.com>
11000
11001 * xselect.c (x_get_foreign_selection): Return nil if desired
11002 selection could not be obtained, instead of signalling an error.
11003
110042008-08-20 David Reitter <david.reitter@gmail.com>
11005
11006 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11007 * nsterm.m: Remove ns-specific code for cursor blinking.
11008 (ns_draw_window_cursor): Clear cursor properly rather than
11009 redrawing the area. Respect width of bar cursors.
11010 These changes enable the use of generic blink-cursor-mode and
11011 generic cursor types in NS and support smooth cursor movements (do
11012 not blink off after command).
11013 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11014 Nextstep, too.
11015
110162008-08-19 Kenichi Handa <handa@m17n.org>
11017
11018 * font.c (Vfont_log_deferred): New variable.
11019 (font_add_log): Check Vfont_log_deferred.
11020 (font_deferred_log): New function.
11021
11022 * font.h (font_deferred_log): Extern it.
11023
11024 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11025 for sorting.
11026 (face_for_char): Use deferred log.
11027
110282008-08-18 Kenichi Handa <handa@m17n.org>
11029
11030 * fontset.c (face_for_char): Add font log.
11031
11032 * font.c (font_add_log): Add the font properties :script, :lang,
11033 and :otf in the log.
11034
110352008-08-17 Chong Yidong <cyd@stupidchicken.com>
11036
11037 * xdisp.c: Remove dead code.
11038 (handle_invisible_prop, next_overlay_string): Defer call to
11039 setup_for_ellipsis.
11040 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11041
110422008-08-15 Chong Yidong <cyd@stupidchicken.com>
11043
11044 * xfaces.c (lookup_derived_face): Properly handle possible zero
11045 return value of get_lface_attributes.
11046 (merge_faces): Don't tell lookup_derived_face to signal an error
11047 if face is not found.
11048
11049 * dired.c (Fdirectory_files): Doc fix.
11050
11051 * process.c (make_process): Initialize kill_without_query struct
11052 member.
11053
110542008-08-15 Eli Zaretskii <eliz@gnu.org>
11055
11056 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11057 Alternative calculation of totphys for Visual Studio 6.
11058
11059 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11060
11061 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11062 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11063 All users changed.
11064 (stat): Only root directory passed to GetDriveType. Allow RAM
11065 disk as well as local fixed disk when w32-get-true-file-attributes
11066 is set to `local'.
11067 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11068 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11069 (w32_cached_id, w32_add_to_cache): New functions.
11070 (get_name_and_id): Look account names in the cache before calling
11071 lookup_account_sid.
11072 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11073 New initialization flags.
11074 (globals_of_w32): Initialize them to zero.
11075 (w32_system_process_attributes): Use w32_cached_id and
11076 w32_add_to_cache.
11077
110782008-08-14 Lawrence Mitchell <wence@gmx.li>
11079
11080 * lread.c (Fread_char, Fread_char_exclusive): If no character
11081 event is read before timeout is reached, return nil, rather than
11082 converting to a number.
11083
110842008-08-14 Chong Yidong <cyd@stupidchicken.com>
11085
11086 * fns.c (use_dialog_box): Doc fix.
11087
11088 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11089 on OS X.
11090
110912008-08-13 Chong Yidong <cyd@stupidchicken.com>
11092
11093 * frame.c (Qns_parse_geometry): New var.
11094 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11095
110962008-08-11 Chong Yidong <cyd@stupidchicken.com>
11097
11098 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11099 space character in calculating tabs.
11100
111012008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11102
11103 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11104
111052008-08-10 Glenn Morris <rgm@gnu.org>
11106
11107 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11108 silence gcc "limited range of data type" warnings in some
11109 make_fixnum_or_float calls.
11110
111112008-08-09 Eli Zaretskii <eliz@gnu.org>
11112
11113 * w32.c (w32_system_process_attributes): If the process does not
11114 exist, return nil.
11115
11116 * w32.c: Include thelp32.h, psapi.h and coding.h.
11117 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11118 declarations.
11119 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11120 (Process32Next_Proc): New typedefs.
11121 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11122 (g_b_init_process32_next, g_b_init_open_thread_token)
11123 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11124 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11125 (g_b_init_get_process_working_set_size)
11126 (g_b_init_global_memory_status_ex): New static variables.
11127 (globals_of_w32): Initialize them.
11128 (create_toolhelp32_snapshot, process32_first, process32_next)
11129 (open_thread_token, impersonate_self, revert_to_self)
11130 (get_process_memory_info, get_process_working_set_size)
11131 (global_memory_status, global_memory_status_ex): New wrapper
11132 functions.
11133 (w32_list_system_processes, w32_system_process_attributes)
11134 (enable_privilege, restore_privilege, ltime, process_times):
11135 New functions.
11136 (convert_time_raw): New function.
11137 (convert_time): Remove conversion of FILETIME into time in 100
11138 nsec units, call convert_time_raw instead.
11139
11140 * process.h (w32_list_system_processes, w32_system_process_attributes):
11141 Add prototypes.
11142 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11143 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11144 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11145 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11146
11147 * process.c (Fsystem_process_attributes): Doc fix.
11148
111492008-08-08 Chong Yidong <cyd@stupidchicken.com>
11150
11151 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11152 a continued multi-char glyph; if so, advance to the actual glyph.
11153
111542008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11155
11156 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11157
11158 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11159 (.m.o): Use it.
11160 * config.in: Regenerate.
11161
111622008-08-07 Chong Yidong <cyd@stupidchicken.com>
11163
11164 * xdisp.c (redisplay_window): Revert last change.
11165 (try_window): Check bottom scroll margin too.
11166
111672008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11168
11169 * config.in: Regenerate.
11170
11171 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11172 -list-load-path-shadows'.
11173 (nsgui.h): Reduce number of things depending on it.
11174
111752008-08-06 Chong Yidong <cyd@stupidchicken.com>
11176
11177 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11178 instead of window-end which does the wrong thing at eob.
11179 (try_cursor_movement): Minor optimization.
11180 (redisplay_window): If scroll margin is defined, don't assume
11181 window doesn't need scrolling.
11182
111832008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11184
11185 * config.in: Regenerate.
11186
11187 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11188 (mostlyclean): Don't delete *.d under NS.
11189
11190 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11191
111922008-08-06 Kenichi Handa <handa@m17n.org>
11193
11194 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11195
111962008-08-06 Andreas Schwab <schwab@suse.de>
11197
11198 * config.in: Regenerate.
11199
112002008-08-05 Chong Yidong <cyd@stupidchicken.com>
11201
11202 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11203 forcing a window start.
11204
11205 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11206 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11207
112082008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11209
11210 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11211 argument.
11212
112132008-08-05 Juanma Barranquero <lekktu@gmail.com>
11214
11215 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11216 <scroll-down-aggressively, before-change-functions>:
11217 <after-change-functions>: Reflow docstrings.
11218
112192008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11220 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11221
11222 Dock menu customization, based on a patch by Ken Raeburn, plus some
11223 other fixes.
11224 * nsmenu.m (dockMenu): New variable.
11225 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11226
11227 * nsterm.h (dockMenu): Declare.
11228
11229 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11230 (ns_term_init): Initialize dockMenu.
11231 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11232 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11233 left.
11234
11235 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11236
112372008-08-04 Chong Yidong <cyd@stupidchicken.com>
11238
11239 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11240
11241 * config.in: Regenerate.
11242
112432008-08-04 Seiji Zenitani <zenitani@mac.com>
11244
11245 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11246
112472008-08-04 Chong Yidong <cyd@stupidchicken.com>
11248
11249 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11250
112512008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11252
11253 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11254
11255 * keyboard.h: Comment an #endif.
11256
11257 * lisp.h (have_menus_p): Adjust comment.
11258
11259 * menu.c (find_and_return_menu_selection): Fix comparison with
11260 client_data.
11261
11262 * nsmenu.m (popup_activated_flag): New variable.
11263 (popup_activated): New function.
11264 (menu-or-popup-active-p): New exported lisp definition.
11265 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11266 when popup done.
11267 (ns_popup_dialog): Set popup_activated_flag.
11268
11269 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11270 version for GNUstep (handled by conditional typedef in nsterm.m).
11271 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11272 in rgb.txt).
11273
11274 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11275
11276 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11277
11278 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11279
11280 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11281 shortcircuit if popup_activated like GTK and X toolkit.
11282
11283 * m/inter386.h: Change DARWIN to DARWIN_OS.
11284
11285 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11286 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11287 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11288 comment on NO_SOCK_SIGIO.
11289
112902008-08-03 Chong Yidong <cyd@stupidchicken.com>
11291
11292 * nsterm.m (windowDidResize): Remove stopModal call.
11293
112942008-08-03 Andreas Schwab <schwab@suse.de>
11295
11296 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11297 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11298
112992008-08-02 Chong Yidong <cyd@stupidchicken.com>
11300
11301 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11302 Don't use uninitialized pointer variable when using getrlimit.
11303
113042008-08-02 Jason Rumney <jasonr@gnu.org>
11305
11306 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11307
113082008-08-02 Eli Zaretskii <eliz@gnu.org>
11309
11310 * alloc.c (NSTATICS): Bump to 0x640.
11311
11312 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11313
11314 * lisp.h: Add prototype for directory_files_internal.
11315
11316 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11317 New functions.
11318 (syms_of_process): Defsubr them. Add initializations for various
11319 Q* symbols used in procfs_system_process_attributes.
11320 (procfs_list_system_processes, procfs_system_process_attributes)
11321 [HAVE_PROCFS]: New functions.
11322 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11323 (procfs_get_total_memory): New functions.
11324
113252008-08-01 Juanma Barranquero <lekktu@gmail.com>
11326
11327 * xfaces.c (Fx_load_color_file): Fix previous change;
11328 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11329
113302008-08-01 Michael Albinus <michael.albinus@gmx.de>
11331
11332 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11333
113342008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11335
11336 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11337
113382008-08-01 Chong Yidong <cyd@stupidchicken.com>
11339
11340 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11341
11342 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11343 define NSApplicationDelegateReplySuccess.
11344 (EmacsView -converstationIdentifier): Use long instead of
11345 NSInteger for GNUstep, since it doesn't have NSInteger.
11346
11347 * xmenu.c: Revert last change.
11348
11349 * keyboard.h: Fix last change.
11350
113512008-08-01 Juanma Barranquero <lekktu@gmail.com>
11352
11353 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11354 on Windows.
11355
113562008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11357
11358 Warning clearing and clean-up in NS port.
11359 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11360 Add prototypes.
11361 * nsgui.h (FACE_DEFAULT): Remove, unused.
11362 (XGCValues): Change colors to unsigned long.
11363 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11364 nsterm.m.
11365 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11366 (ns_list_fonts): Remove, unused.
11367 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11368 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11369 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11370 (nsfont_draw): Compare face colors to 0, not nil.
11371 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11372 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11373 (-addSubmenuWithTitle:): Use NSMenuItem class.
11374 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11375 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11376 (ns_clip_to_row): Make gc arg a BOOL.
11377 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11378 ns_clip_to_row() call.
11379 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11380 used). Cast FRAME_FONT assignments.
11381 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11382 (ns_string_to_lispmod): Change arg to const char.
11383 (ns_term_init): Use NSMenuItem class.
11384 (EmacsApp -openFile:): Move to different section of file.
11385 (EmacsApp -application:openFiles:): Don't return a value, call
11386 -replyToOpenOrPrint:.
11387 (EmacsView -keyDown:): Fix up cast.
11388 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11389 (EmacsView -menuDown:): Cast tag in call to
11390 find_and_call_menu_selection().
11391 (ns_list_fonts): Remove, unused.
11392 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11393 (ns_fontname_to_xlfd): Make static.
11394 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11395 Remove prototypes (now in keyboard.h).
11396 (next_menubar_widget_id): Remove, unused.
11397 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11398 Remove prototypes (now in keyboard.h).
11399 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11400
114012008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11402
11403 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11404 (floatfns.o): Depend on syssignal.h.
11405 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11406
11407 * systty.h: Fix previous change that removed BSD_TERMIOS.
11408 Add comments to #ifdefs.
11409
114102008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11411
11412 * w32fns.c (w32-load-color-file): Remove.
11413 (x-open-connection): Use renamed Fx_load_color_file.
11414 * xfaces.c (x-load-color-file): Add.
11415 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11416 Emacs.clr.
11417 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11418
114192008-07-31 Michael Albinus <michael.albinus@gmx.de>
11420
11421 * dbusbind.c (Fdbus_call_method_asynchronously)
11422 (Fdbus_method_error_internal): New defuns.
11423 (xd_read_message): Handle also reply messages.
11424 (Vdbus_registered_functions_table): Extend docstring.
11425
114262008-07-31 Juanma Barranquero <lekktu@gmail.com>
11427
11428 * keyboard.c (gobble_input): Fix previous change.
11429
114302008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11431
11432 * bitmaps/README:
11433 * xfns.c:
11434 * termcap.c:
11435 * term.c:
11436 * syswait.h:
11437 * systty.h:
11438 * systime.h:
11439 * syssignal.h:
11440 * sysdep.c:
11441 * process.h:
11442 * process.c:
11443 * print.c:
11444 * ndir.h:
11445 * lread.c:
11446 * keyboard.c:
11447 * getpagesize.h:
11448 * floatfns.c:
11449 * fileio.c:
11450 * emacs.c:
11451 * doc.c:
11452 * dispnew.c:
11453 * dired.c:
11454 * data.c:
11455 * callproc.c:
11456 * buffer.c:
11457 * README:
11458 * Makefile.in:
11459 * s/template.h:
11460 * s/msdos.h:
11461 * m/vax.h: Remove VMS support.
11462 * s/vms.h:
11463 * vlimit.h:
11464 * uaf.h:
11465 * temacs.opt:
11466 * param.h:
11467 * ioctl.h: Remove file.
11468
114692008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11470
11471 * s/ms-w32.h (MULTI_KBOARD): Remove.
11472 * xterm.c:
11473 * xselect.c:
11474 * xfns.c:
11475 * window.c:
11476 * w32term.c:
11477 * w32fns.c:
11478 * terminal.c:
11479 * termhooks.h:
11480 * term.c:
11481 * sysdep.c:
11482 * keyboard.h:
11483 * keyboard.c:
11484 * frame.h:
11485 * frame.c:
11486 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11487 * config.in: Regenerate.
11488
114892008-07-30 Jason Rumney <jasonr@gnu.org>
11490
11491 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11492
11493 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11494 (w32font_open_internal): Get unicode version of textmetrics.
11495 Don't enable or disable glyph indices here.
11496 (w32font_open): Disable use of glyph indices.
11497
11498 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11499
115002008-07-30 Chong Yidong <cyd@stupidchicken.com>
11501
11502 * minibuf.c (Vread_buffer_function): Doc fix.
11503
115042008-07-30 John Paul Wallington <jpw@pobox.com>
11505
11506 * minibuf.c (read_buffer_completion_ignore_case): New var.
11507 (Fread_buffer): Use it.
11508
115092008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11510
11511 * systty.h (sensemode): Remove empty #if. Remove reference to
11512 BSD_TERMIOS, unused.
11513
11514 * sysdep.c: Remove reference to DGUX.
11515 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11516
11517 * config.in: Regenerate.
11518
115192008-07-30 Jason Rumney <jasonr@gnu.org>
11520
11521 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11522
115232008-07-29 Jason Rumney <jasonr@gnu.org>
11524
11525 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11526 is populated.
11527 (uniscribe_encode_char): Always use uniscribe.
11528 Avoid using context if cache is populated.
11529
115302008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11531
11532 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11533 open menu.
11534
11535 * gtkutil.c (menu_nav_ended): Remove.
11536 (create_menus): Remove signal connect for menu_nav_ended.
11537
115382008-07-28 Chong Yidong <cyd@stupidchicken.com>
11539
11540 * xdisp.c (redisplay_window): Check return value of
11541 compute_window_start_on_continuation_line before forcing a window
11542 start.
11543
115442008-07-28 Jason Rumney <jasonr@gnu.org>
11545
11546 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11547
11548 * w32term.c (w32_enable_unicode_output, cleartype_active):
11549 Remove obsolete display options.
11550 (x_draw_glyph_string_background): Don't use old cleartype_active
11551 workaround.
11552 (w32_initialize): Remove cleartype_active initialization.
11553 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11554
115552008-07-28 Andreas Schwab <schwab@suse.de>
11556
11557 * lisp.h (init_weak_hash_tables, syms_of_font)
11558 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11559 (remove_hash_entry): Don't declare.
11560 * eval.c (maybe_call_debugger): Make static and move before use.
11561 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11562 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11563 * xterm.h (x_set_frame_alpha): Declare.
11564
115652008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11566
11567 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11568 (create_menus): Connect selection-done to menu_nav_ended.
11569
115702008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11571
11572 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11573 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11574 parameter with read of 'alpha' one.
11575 (Qns_frame_parameter): Remove.
5582fbc7 11576 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11577 (next-selection-coding-system, Vselection_coding_system)
11578 (Vnext_selection_coding_system): Drop.
11579
115802008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11581
11582 * nsfns.m (do-applescript, do_applescript): Rename to
11583 ns-do-applescript, ns_do_applescript, and move within file.
11584
115852008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11586
11587 Remove support for Mac Carbon.
11588 * mactoolbox.c:
11589 * macterm.h:
11590 * macterm.c:
11591 * macselect.c:
11592 * macmenu.c:
11593 * macgui.h:
11594 * macfns.c:
11595 * mac.c: Remove file.
11596 * s/darwin.h:
11597 * m/intel386.h:
11598 * xfaces.c:
11599 * xdisp.c:
11600 * window.c:
11601 * tparam.c:
11602 * termhooks.h:
11603 * termcap.c:
11604 * term.c:
11605 * syssignal.h:
11606 * sysselect.h:
11607 * sysdep.c:
11608 * process.c:
11609 * lread.c:
11610 * lisp.h:
11611 * keyboard.c:
11612 * image.c:
11613 * fringe.c:
11614 * frame.h:
11615 * frame.c:
11616 * fontset.c:
11617 * font.h:
11618 * font.c:
11619 * fns.c:
11620 * fileio.c:
11621 * emacs.c:
11622 * dispnew.c:
11623 * dispextern.h:
11624 * config.in:
11625 * atimer.c:
2ae37cf0 11626 * Makefile.in: Remove code for Carbon.
aac0c6e3 11627
f0131492 116282008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11629
11630 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11631
116322008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11633
11634 * macterm.h (kCGBitmapByteOrder32Host): New define for
11635 non-universal SDKs.
11636
11637 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11638 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11639
11640 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11641 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11642
116432008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11644
11645 * w32inevt.c: Include dispextern.h.
11646
116472008-07-26 Andreas Schwab <schwab@suse.de>
11648
11649 * print.c (print_object): Fix off-by-one in last change.
11650
116512008-07-25 Juanma Barranquero <lekktu@gmail.com>
11652
11653 * term.c (syms_of_term): Don't initialize default_orig_pair,
11654 default_set_foreground and default_set_background on Windows.
11655
116562008-07-25 Jason Rumney <jasonr@gnu.org>
11657
11658 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11659 ScriptItemize. Clean up return value checking. Remove unused
11660 variables.
11661 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11662 shaping engine.
11663
11664 * w32font.c (w32font_has_char): Handle the case where we can't
11665 determine the script for a character.
11666
116672008-07-25 Chong Yidong <cyd@stupidchicken.com>
11668
11669 * term.c (syms_of_term): Initialize default_orig_pair,
11670 default_set_foreground, and default_set_background.
11671
11672 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11673 clash (bug#86).
11674 (getloadavg): Callers changed.
11675
11676 * image.c (svg_load_image): Fix last change.
11677 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11678 image size is valid. Use g_object_unref instead of deprecated
11679 rsvg_handle_free to free rsvg handle.
11680 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11681
116822008-07-25 Jason Rumney <jasonr@gnu.org>
11683
11684 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11685 surrogates before looking up glyph index.
11686 (w32font_text_extents): Encode as surrogates if falling back to
11687 functions that need UTF-16 wide chars.
11688
11689 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11690 BMP as surrogates before looking up glyph index.
11691
116922008-07-25 Chong Yidong <cyd@stupidchicken.com>
11693
11694 * image.c (svg_load_image): Check for failure in return value of
11695 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11696
116972008-07-25 Jason Rumney <jasonr@gnu.org>
11698
11699 * w32font.c (Fx_select_font): Reverse sense of second arg.
11700
117012008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11702
11703 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11704 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11705
11706 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11707 (PURESIZE): Use it.
11708
117092008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11710
11711 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11712 * m/alpha.h (TEXT_END):
11713 * m/ibmrs6000.h (TEXT_END):
11714 * m/macppc.h (TEXT_END):
11715 * s/darwin.h (TEXT_END):
11716 * s/msdos.h (TEXT_END): Remove, unused.
11717 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11718 * s/cygwin.h: Remove comment.
11719
11720 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11721 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11722 * m/intel386.h (DOT_GLOBAL_START):
11723 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11724 (USG): Remove, file not used on USG platforms.
11725
11726 * Makefile.in (HAVE_X11): Remove empty #else.
11727
117282008-07-24 Andreas Schwab <schwab@suse.de>
11729
11730 * fileio.c (Finsert_file_contents): Properly adjust undo list
11731 after format conversion.
11732
117332008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11734
11735 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11736 (menu_nav_ended): Remove.
11737 (create_menus): Remove signal connect for menu_nav_ended.
11738 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11739 create_menus.
11740 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11741
117422008-07-23 Jason Rumney <jasonr@gnu.org>
11743
11744 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11745 with opened font.
11746 (w32font_open): Set font type to gdi.
11747
11748 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11749
117502008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11751
11752 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11753 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11754 defines it.
11755 * unexec.c (ADDR_CORRECT): Define unconditionally.
11756
11757 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11758
11759 * unexec.c: Remove code depending on !COFF and USG, the file is
11760 not used for such systems.
11761
11762 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11763 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11764 (LD_SWITCH_SYSTEM_1): Remove, update users.
11765
11766 * s/darwin.h (DATA_END):
11767 * m/intel386.h (DATA_END):
11768 * m/ibmrs6000.h (DATA_END):
11769 * m/alpha.h (DATA_END): Remove, unused.
11770
11771 * config.in: Regenerate.
11772 * s/ms-w32.h (subprocesses): Define unconditionally.
11773 * s/template.h (subprocesses): Update comment.
11774 * s/vms.h (subprocesses):
11775 * s/usg5-4.h (subprocesses):
11776 * s/hpux10-20.h (subprocesses):
11777 * s/gnu-linux.h (subprocesses):
11778 * s/cygwin.h (subprocesses):
11779 * s/bsd-common.h (subprocesses):
11780 * s/aix4-2.h (subprocesses):
11781 * s/darwin.h (subprocesses): Do not define, defined by default now.
11782
11783 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11784 Remove all references.
11785 (temacs): Add GNUstep specific ld flags.
11786
11787 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11788 similarly to what X does.
11789
117902008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11791
11792 * nsfns.m (x-list-fonts): Remove.
11793 (syms_of_nsfns): Drop the x-list-fonts declaration.
11794 * nsterm.m: Get rid of remaining "//" comments.
11795
117962008-07-22 Chong Yidong <cyd@stupidchicken.com>
11797
11798 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11799
11800 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11801 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11802 (Fns_own_selection_internal, Fx_disown_selection_internal)
11803 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11804
11805 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11806 ... */' style of docstrings. Doc fixes.
11807
118082008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11809
11810 * terminfo.c (UP, BC, PC): Undo previous change.
11811
11812 * nsfns.m: Rename ns prefixed functions/variables to the
11813 corresponding x versions. Update references.
11814
118152008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11816
11817 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11818
118192008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11820
11821 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11822 Remove forwarding functions.
11823 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11824 non-static.
11825 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11826 non-static.
11827 (ns_frame_parm_handlers): Use the new names.
11828 (syms_of_nsfns): Move to the end of file.
11829
11830 * nsterm.m (syms_of_nsterm): Move to the end of file.
11831
11832 * dispnew.c (init_display): Remove code for X10.
11833
118342008-07-22 Jason Rumney <jasonr@gnu.org>
11835
11836 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11837 bare drive.
11838
118392008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11840
11841 * nsterm.m (syms_of_nsterm): Remove debugging println.
11842
118432008-07-22 David Reitter <david.reitter@gmail.com>
11844
11845 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11846 Carbon implementation of the same functionality: execute arbitrary
11847 AppleScript code.
11848
118492008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11850
11851 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11852 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11853 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11854 (Fx_display_mm_height, Fx_display_mm_width)
11855 (Fx_display_backing_store, Fx_display_visual_class)
11856 (Fx_display_save_under, Fx_open_connection)
11857 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11858 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11859 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11860 (Fx_display_pixel_width, Fx_display_pixel_height)
11861 (Fx_display_usable_bounds, Fx_display_planes)
11862 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11863 ... */' style of docstrings.
11864
118652008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11866
11867 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11868 on this platform.
11869 (mips):
11870 * m/iris4d.h (mips): Do not define.
11871 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11872
11873 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11874
11875 * image.c:
11876 * nsfns.m:
11877 * nsselect.m:
11878 * nsterm.h:
11879 * nsterm.m: Rename ns prefixed functions/variables to the
11880 corresponding x versions. Update references.
11881
11882 * m/ibms390x.h (NO_REMAP): Do not undefine.
11883
11884 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11885
118862008-07-21 Chong Yidong <cyd@stupidchicken.com>
11887
11888 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11889 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11890 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11891 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11892 (Fns_display_mm_height, Fns_display_mm_width)
11893 (Fns_display_backing_store, Fns_display_visual_class)
11894 (Fns_display_save_under, Fns_open_connection)
11895 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11896 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11897 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11898 (Fns_display_pixel_width, Fns_display_pixel_height)
11899 (Fns_display_usable_bounds, Fx_display_planes)
11900 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11901
119022008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11903
11904 * print.c (print_object): Check print_depth before searching for
11905 circularities.
11906
119072008-07-21 Michael Albinus <michael.albinus@gmx.de>
11908
11909 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11910 only sprintf.
11911
119122008-07-21 Kenichi Handa <handa@m17n.org>
11913
11914 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11915
119162008-07-20 Andreas Schwab <schwab@suse.de>
11917
11918 * syntax.c (find_start_pos, find_start_value)
11919 (find_start_value_byte, find_start_begv, find_defun_start)
11920 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11921
119222008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11923
11924 * s/sol2-3.h: Insert contents of s/sol2.h.
11925 (LD_SWITCH_SYSTEM): Remove redundant definition.
11926 * s/sol2.h: Remove, unused.
11927
119282008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11929
11930 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11931
119322008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11933
11934 * Makefile.in (ns_appdir): Fix typo in find command.
11935
119362008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11937
11938 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11939
11940 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11941 added not supported anymore.
11942
11943 * s/usg5-4-2.h (LIBS_SYSTEM):
11944 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11945
11946 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11947 * s/lynxos.h (GETPGRP_NO_ARG):
11948 * s/hpux10-20.h (NO_SIOCTL_H):
11949 * s/gnu.h (GETPGRP_NO_ARG):
11950 * s/gnu-linux.h (NO_SIOCTL_H):
11951 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11952 * s/cygwin.h (GETPGRP_NO_ARG):
11953 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11954 (C_DEBUG_SWITCH): Remove duplicate definition.
11955
11956 * m/ibms390.h: Remove boilerplate comments.
11957
11958 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11959
11960 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11961 (wait_reading_process_output): Remove code for SunOS, platform not
11962 supported anymore. Use SOLARIS2 instead of sun.
11963
119642008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11965
11966 * font.c (font_open_by_name): Under NS, default lface height to zero.
11967 (font_open_for_lface): Under NS, set size based on frame fontsize.
11968 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11969 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11970
119712008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11972
11973 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11974 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11975 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11976 YES/NO.
11977 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11978 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11979 * Makefile.in (clean): Clear out build destination dir.
11980
119812008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11982
11983 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11984 xterm, xselect.
11985 * lisp.h: Remove declaration of hash_remove.
11986 * nsgui.h: Remove redefinitions of hash_remove.
11987 * fns.c (hash_remove): Rename to hash_remove_from_table.
11988
119892008-07-19 Seiji Zenitani <zenitani@mac.com>
11990
11991 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11992 strdup() the family UTF8String before modifying it.
11993
119942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11995
11996 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11997 NS_FACE_BACKGROUND with 0 instead of nil.
11998 * nsfont.m (nsfont_draw): Same.
11999
120002008-07-19 Chong Yidong <cyd@stupidchicken.com>
12001
12002 * nsfns.m (ns_set_background_color): Fix crash.
12003
120042008-07-18 Chong Yidong <cyd@stupidchicken.com>
12005
12006 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12007
120082008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12009
12010 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12011
120122008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12013
12014 * gtkutil.c: Include <config.h> instead of "config.h".
12015
12016 * lisp.h (Foverlay_buffer): Add EXFUN.
12017
12018 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12019 child process to complete child_setup. Undo 2005-09-21 change.
12020
12021 * s/darwin.h: Mention setsid after vfork.
12022
120232008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12024
12025 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12026 Depend on macgui.h.
12027
12028 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12029 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12030
12031 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12032 and f19.
12033 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12034
12035 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12036 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12037 Remove enumerators.
12038
12039 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12040 Check if FACE_FROM_ID returns NULL.
12041
120422008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12043
12044 * w32inevt.c (change_frame_size): Remove extern declaration.
12045 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12046 change_frame_size.
12047
120482008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12049
12050 * getloadavg.c: Revert last change (2008-07-15).
12051
120522008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12053
12054 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12055 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12056 from configure.
12057
120582008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12059
12060 * s/sol2.h:
12061 * s/sol2-4.h: Reorganize conditionals.
12062
12063 * ecrt0.c: Remove code depending on m68000, not used anymore.
12064
12065 * fns.c (hash_remove): Make static.
12066 * lisp.h (hash_remove): Don't prototype.
12067
12068 * m/ibmrs6000.h:
12069 * m/ibms390x.h:
12070 * m/macppc.h: Remove boilerplate comments.
12071
12072 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12073 Solaris, which does not need them.
12074
12075 * m/vax.h: Remove comments about unsupported systems.
12076
12077 * s/darwin.h: Reorganize ifdefs.
12078
120792008-07-17 Andreas Schwab <schwab@suse.de>
12080
12081 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12082
120832008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12084
12085 Use SDATA. Follow coding convention of placing operators at
12086 beginning of next line rather than end of previous line, and placing
12087 spaces around infix operators.
12088
12089 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12090 in case it was defined already.
12091 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12092 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12093 ns_default.
12094 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12095 Lisp_Objects.
12096 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12097 (ns_defined_color, ns_color_to_lisp): Declare.
12098 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12099 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12100 it's accepted even with USE_LISP_UNION_TYPE.
12101 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12102 (update_frame_tool_bar): Remove apparently obsolete tests for
12103 non-integerness of f->tool_bar_lines.
12104 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12105 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12106 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12107 (nsfont_open): Don't confuse NULL for Qnil.
12108 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12109 * menu.h (find_and_call_menu_selection):
12110 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12111 (find_and_return_menu_selection): Always return something.
12112 * frame.h: Include dispextern.h for Display_Info.
12113 (display_x_get_resource): Declare.
12114
121152008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12116
12117 * syntax.c: Remove stdio.h include accidentally introduced in
12118 Emacs.app commit.
12119 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12120 NS_IMPL_COCOA.
12121 * keyboard.c (handle_async_input, input_available_signal): Remove
12122 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12123
121242008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12125
12126 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12127 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12128 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12129 Use SDATA.
12130
12131 * keymap.c: Remove all NS-specific code.
12132 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12133 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12134 where_is_preferred_modifier, return a different value depending on how
12135 preferred is the binding.
12136 (where_is_internal): Adjust accordingly.
12137 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12138 Adjust to new preferred_sequence_p.
12139 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12140 * keyboard.c (parse_solitary_modifier): Not static any more.
12141 * keyboard.h (parse_solitary_modifier): Declare.
12142
121432008-07-16 Andreas Schwab <schwab@suse.de>
12144
12145 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12146 of easymenu.
12147
121482008-07-16 Chong Yidong <cyd@stupidchicken.com>
12149
12150 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12151 that we don't move off the line.
12152
121532008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12154
12155 * keyboard.c (Qsuper): Remove.
12156 (parse_menu_item): Don't call where_is_internal specially for NS.
12157
121582008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12159
12160 * s/gnu-linux.h: Remove boilerplate comments.
12161
12162 * m/alpha.h (__ELF__): Consolidate conditions.
12163
12164 * m/m68k.h (linux): Use GNU_LINUX instead.
12165 Remove boilerplate comments.
12166
12167 * m/intel386.h: Undo refactoring from previous change.
12168 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12169 too, remove dead code.
12170 (linux): Use GNU_LINUX instead.
12171
121722008-07-16 Jason Rumney <jasonr@gnu.org>
12173
12174 * w32gui.h: Repeat 26 June changes lost by last change.
12175
121762008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12177
12178 * systty.h: Remove code for Aix on 386, unsupported platform.
12179
12180 * s/ms-w32.h: Remove boilerplate comments.
12181 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12182
12183 * s/gnu-linux.h (TERM): Remove support.
12184 (HAVE_SYSVIPC): Remove, unused.
12185 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12186 for this system.
12187
12188 * process.c: Remove support for IRIS, unused.
12189 Remove support for TERM, not relevant anymore.
12190
12191 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12192 used with the definition.
12193
12194 * s/aix4-2.h (static): Do not undef.
12195
12196 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12197 only used on Aix.
12198 (HAVE_SYSVIPC): Remove, unused.
12199
12200 * m/hp800.h (CANNOT_DUMP): Do not undef.
12201
12202 * m/alpha.h: Fix comment.
12203
12204 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12205 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12206 used by this configuration.
12207 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12208 * unexec.c: Remove code depending on HPUX and
12209 USG_SHARED_LIBRARIES, not used with this file. Remove code
12210 depending on IRIS, unused. Remove if 0-ed code.
12211
12212 * s/template.h: Remove comments about static.
12213
12214 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12215 Remove if 0-ed code.
12216 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12217 were the same as the default.
12218 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12219 Remove boilerplate comments.
12220 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12221 (HAVE_SYSVIPC): Remove, unused.
12222 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12223
12224 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12225 Remove boilerplate comments.
12226 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12227 Remove boilerplate comments.
12228 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12229 Remove boilerplate comments.
12230 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12231
12232 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12233 USG systems which do not use DATA_SEG_BITS.
12234 Refactor code. Remove boilerplate comments.
12235
12236 * m/ibms390.h:
12237 * m/m68k.h:
12238 * s/bsd-common.h:
12239 * s/cygwin.h:
12240 * s/darwin.h:
12241 * s/freebsd.h:
12242 * s/gnu.h:
12243 * s/msdos.h: Remove boilerplate comments.
12244
12245 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12246 do not use this file.
aac0c6e3
MR
12247 (IRIS_4D): Remove, unused.
12248
12249 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12250 do not use this file.
aac0c6e3
MR
12251 (SIGN_EXTEND_CHAR):
12252 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12253 * unexmips.c: Remove file, unused.
12254
12255 * editfns.c (Fuser_full_name): Replace the only use of
12256 USER_FULL_NAME with its value.
12257 * config.in: Regenerate.
12258
122592008-07-16 David Reitter <david.reitter@gmail.com>
12260
12261 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12262 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12263
122642008-07-16 Glenn Morris <rgm@gnu.org>
12265
12266 * emacs.c (system-type): Doc fix.
12267
122682008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12269
12270 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12271 If the cache doesn't work, let's fix it, rather than work around it.
12272
122732008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12274
12275 * Makefile.in: Correct additions for nsfont.o in last commit.
12276 * nsfont.m: New file (forgot last commit).
12277
122782008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12279
12280 * callproc.c (set_initial_environment): Initialize
12281 Vprocess_environment under CANNOT_DUMP (fixes crash when
12282 batch-compiling for bootstrap).
12283
122842008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12285 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12286
c4cc8b9a
JB
12287 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12288 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12289
122902008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12291
12292 Changes and additions for NeXTstep windowing system (Cocoa and
12293 GNUstep) support.
12294
12295 * Makefile.in:
12296 * config.in: Support defines and build commands for NS port.
12297 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12298 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12299 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12300 windowing.
12301 (struct face): Add synth_ital field.
12302 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12303 (init_display): Initialize Vinitial_window_system to "ns" when so
12304 compiled.
12305 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12306 (display_arg): Use under NS.
12307 (main): Under NS, allocate autorelease pool and handle command line
12308 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12309 (standard_args): Add NS-specific args.
12310 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12311 * font.c (DEFAULT_ENCODING): New variable.
12312 (font_find_for_lface): Use it.
12313 (syms_of_font): Load syms_of_nsfont under NS.
12314 * font.h: Declare nsfont_driver when compiled under NS.
12315 * fontset.c: When compiling under NS, include nsterm.h.
12316 (fontset_from_font): Autoconstruct fontset under NS.
12317 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12318 symbol, document and use it.
12319 (do_switch_frame): When for_deletion under Cocoa, add
12320 Fraise_frame(Qnil).
12321 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12322 (x_get_arg): Allow "yes" and "no" as boolean values.
12323 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12324 Qright under Cocoa.
12325 (focus-follows-mouse): Default to 0 under NS.
12326 * frame.h (enum output_method): Add output_ns.
12327 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12328 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12329 (FRAME_WINDOW_P): NS-specific definition.
12330 * fringe.c (max_used_fringe_bitmap): Make public.
12331 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12332 (getloadavg): Use NeXT code under descendant OS's.
12333 * image.c (includes and header section, x_create_bitmap_from_data)
12334 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12335 (image_background_transparent, x_clear_image_1)
12336 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12337 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12338 (x_to_xcolors, x_from_xcolors, x_disable_image)
12339 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12340 other GUIs, including XPM support using code originally written for
12341 Carbon GUI.
12342 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12343 using NS API.
12344 (image_ascent): Use font metrics macros instead of direct struct field
12345 access.
12346 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12347 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12348 Also, handle NS as GTK for menu bar purposes.
12349 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12350 toolkit where they differ.
12351 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12352 use cachelist, still needed under NS.
12353 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12354 (struct widget_value): Define it here for menu.c.
12355 * keymap.c (includes): Include modifier internals.
12356 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12357 NS.
12358 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12359 support for preferring sequences using certain modifiers, specified by
12360 the FIRSTONLY argument.
12361 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12362 under NS GNUstep implementation.
12363 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12364 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12365 * menu.c: Include nsterm.h under NS.
12366 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12367 (free_menubar_widget_tree_value, update_submenu_strings)
12368 (find_and_call_menu_selection): Treat NS as X and NT.
12369 (find_and_return_menu_selection): New function, used for popup menus.
12370 * nsgui.h:
12371 * nsterm.h:
12372 * nsfns.m:
12373 * nsimage.m:
12374 * nsmenu.m:
12375 * nsselect.m:
12376 * nsterm.m: New files.
12377 * process.c (wait_reading_process_output): Under NS, call ns_select()
12378 instead of plain select().
12379 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12380 beginning of buffer.
12381 * sysselect.h (init_process): Rename when compiling under Cocoa to
12382 avoid name conflict.
12383 * termhooks.h (display_info): Add ns_display_info to union.
12384 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12385 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12386 COCOA environment.
12387 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12388 unexec() signature. (Note, this will dump, but the resulting file
12389 crashes; unexosx is used instead; keeping around for reference and
12390 possible aid in getting dump working under GNUstep.)
12391 * w32gui.h (button_type, widget_value): Remove definitions (now in
12392 keyboard.h).
12393 * window.c: Include nsterm.h when compiling under NS.
12394 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12395 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12396 other GUI windowing systems.
12397 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12398 GTK.
12399 (x_consider_frame_title): Under NS, set icon type and frame
12400 modified-state indicator; use ns_set_name_as_filename() when using
12401 formatted title.
12402 (update_window_cursor): Make public when compiling under NS.
12403 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12404 (hourglass_atimer, Vhourglass_delay
12405 * xfaces.c (header section, init_frame_faces, clear_font_table)
12406 (defined_color, unload_color, x_face_list_fonts)
12407 (prepare_face_for_display): Add NS support parallel to other GUIs.
12408 Emulate GCs like other non-X GUIs.
12409 (split_font_name): Don't lowercase font name under NS.
12410 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12411 under NS.
12412 * s/darwin.h: Add support for compilation under NS.
12413
124142008-07-15 Jason Rumney <jasonr@gnu.org>
12415
12416 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12417 (w32_show_hourglass): Rename from show_hourglass.
12418 (w32_hide_hourglass): Rename from hide_hourglass.
12419 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12420 (Vhourglass_delay): Declare extern.
12421 (hourglass_started): Remove.
12422
12423 * xdisp.c (Vhourglass_delay): Remove static.
12424 (hourglass_started, start_hourglass, cancel_hourglass):
12425 Don't include these versions on WINDOWSNT.
12426
124272008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12428
12429 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12430 variables (formerly in xfns.c).
12431 (show_hourglass, hide_hourglass): New prototypes (same).
12432 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12433 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12434 in xfns.c).
12435 (syms_of_xdisp): Declare/initialize display-hourglass,
12436 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12437 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12438 formerly in xfns.c.
12439 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12440 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12441 (start_hourglass, cancel_hourglass): Remove.
12442 (show_hourglass, hide_hourglass): Remove prototypes and static
12443 modifiers.
12444 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12445 hourglass_atimer, hourglass_shown_p declaration/initialization.
12446 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12447 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12448 (start_hourglass, cancel_hourglass): Remove.
12449 (show_hourglass, hide_hourglass): Remove prototypes and static
12450 modifiers.
12451 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12452 hourglass_atimer, hourglass_shown_p declaration/initialization.
12453 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12454 (DEFAULT_HOURGLASS_DELAY): Remove.
12455 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12456 hourglass_shown_p declaration/initialization.
12457
124582008-07-14 Jason Rumney <jasonr@gnu.org>
12459
12460 * w32fns.c (w32_get_arg): Remove wrapper function.
12461 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12462 directly.
12463 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12464
124652008-07-14 Kenichi Handa <handa@m17n.org>
12466
12467 * xfont.c (xfont_open): Add workaround for X's bug.
12468
124692008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12470
12471 * fontset.c: Include <stdio.h> unconditionally.
12472
124732008-07-13 Michael Albinus <michael.albinus@gmx.de>
12474
12475 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12476 for filtering.
12477
124782008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12479
12480 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12481
12482 * m/macppc.h:
12483 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12484
c4cc8b9a 12485 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12486 (SPECIAL_EMACS_INT):
12487 * m/ia64.h (SPECIAL_EMACS_INT):
12488 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12489 * s/gnu.h (NLIST_STRUCT):
12490 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12491 * s/gnu-linux.h (LINUX):
12492 * s/msdos.h (HAVE_FACES):
12493 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12494
12495 * systty.h:
12496 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12497 anymore.
12498
124992008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12500
12501 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12502 always defined as int.
12503
12504 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12505 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12506 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12507 * s/freebsd.h (HAVE_WAIT_HEADER):
12508 * s/bsd-common.h (HAVE_UNION_WAIT):
12509 * s/aix4-2.h (HAVE_WAIT_HEADER):
12510 * m/mips.h (HAVE_UNION_WAIT):
12511 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12512 (COFF, static): Do not define, they are undefined later in the file.
12513
12514 * process.c (update_status): Don't use a union.
12515 (status_convert):
12516 (sigchld_handler): Use int instead of WAITTYPE.
12517
125182008-07-12 Chong Yidong <cyd@stupidchicken.com>
12519
12520 * indent.c (Fvertical_motion): Restore hscroll before moving to
12521 goal column.
12522
125232008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12524
12525 * lisp.h: Remove left over code.
12526
125272008-07-11 Andreas Schwab <schwab@suse.de>
12528
12529 * lisp.h: Fix logic in last change.
12530
12531 * menu.h: New file.
12532 * menu.c: Include it.
12533 * xmenu.c: Likewise.
12534 * Makefile.in: Update dependencies.
12535
125362008-07-11 Kenichi Handa <handa@m17n.org>
12537
12538 * fontset.c (fontset_from_font): Cancel the previous change.
12539
125402008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12541
12542 * lisp.h:
12543 * w32heap.c:
12544 * emacs.c:
12545 * alloc.c: Replace all references of NO_UNION_TYPE with
12546 USE_LISP_UNION_TYPE.
12547
12548 * m/xtensa.h (NO_UNION_TYPE):
12549 * m/vax.h (NO_UNION_TYPE):
12550 * m/template.h (NO_UNION_TYPE):
12551 * m/sparc.h (NO_UNION_TYPE):
12552 * m/mips.h (NO_UNION_TYPE):
12553 * m/macppc.h (NO_UNION_TYPE):
12554 * m/m68k.h (NO_UNION_TYPE):
12555 * m/iris4d.h (NO_UNION_TYPE):
12556 * m/intel386.h (NO_UNION_TYPE):
12557 * m/ibms390x.h (NO_UNION_TYPE):
12558 * m/ibms390.h (NO_UNION_TYPE):
12559 * m/ibmrs6000.h (NO_UNION_TYPE):
12560 * m/ia64.h (NO_UNION_TYPE):
12561 * m/hp800.h (NO_UNION_TYPE):
12562 * m/arm.h (NO_UNION_TYPE):
12563 * m/amdx86-64.h (NO_UNION_TYPE):
12564 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12565 defining it the same.
12566
125672008-07-10 Chong Yidong <cyd@stupidchicken.com>
12568
12569 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12570
125712008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12572
12573 * fileio.c:
50426a04 12574 * sysdep.c:
aac0c6e3
MR
12575 * systty.h:
12576 * m/ibmrs6000.h:
12577 * m/iris4d.h:
12578 * s/aix4-2.h:
12579 * s/freebsd.h:
12580 * s/gnu-linux.h:
12581 * s/hpux10-20.h:
12582 * s/hpux11.h:
12583 * s/netbsd.h:
12584 * s/sol2-3.h:
12585 * s/sol2-4.h:
12586 * s/sol2.h:
12587 * s/usg5-4.h:
12588 * s/vms.h: Remove references to unused variables.
12589
125902008-07-10 Andreas Schwab <schwab@suse.de>
12591
12592 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12593 pattern before matching the generic family.
12594
125952008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12596
12597 * unexec.c:
12598 * s/vms.h:
12599 * s/usg5-4-2.h:
12600 * s/sol2-5.h:
12601 * s/freebsd.h:
12602 * s/darwin.h: Remove dead code.
12603
12604 * m/template.h:
12605 * m/sparc.h:
12606 * m/mips.h:
12607 * m/m68k.h:
12608 * m/iris4d.h:
12609 * m/intel386.h:
12610 * m/ibms390x.h:
12611 * m/ibms390.h:
12612 * m/ia64.h:
12613 * m/hp800.h:
12614 * m/arm.h:
12615 * m/amdx86-64.h: Remove dead code and references to unused
12616 and compiler defined symbols.
12617
12618 * unexmips.c:
12619 * unexelf.c: Remove references to desupported systems.
12620
12621 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12622
12623 * m/powermac.h: Remove boilerplate comments.
12624 (NO_REMAP): Remove unused definition.
12625
12626 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12627 define them.
12628
126292008-07-10 Kenichi Handa <handa@m17n.org>
12630
12631 * xfont.c (xfont_open): Log the reason of failure.
12632
126332008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12634
12635 * fontset.c (fontset_get_font_group):
12636 * font.c (font_check_otf): Specify argument types.
12637
126382008-07-09 Kenichi Handa <handa@m17n.org>
12639
12640 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12641 non-ASCII char is found.
12642
12643 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12644 (reorder_font_vector): Change the arg preferred_family to font.
12645 Prefer the spec matching with font.
12646 (fontset_get_font_group): New function.
12647 (fontset_find_font): Change the format of an element of a realized
12648 fontset. Use fontset_get_font_group.
12649 (fontset_font): Try the current fontset, the default fontset, the
12650 fallbacks of the current fontset, and the fallbacks of the default
12651 fontset in this order.
12652 (face_for_char): Delete the shortcut to use the current font.
12653 (fontset_from_font): Don't set fonts for Latin in the fontset.
12654
12655 * font.h (font_make_object, font_match_p): Adjust prototypes.
12656
12657 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12658
12659 * font.c (font_make_object): New arg entity and pixelsize.
12660 (font_check_otf_features, font_check_otf): New functions.
12661 (font_match_p): Check :lang, :script, and :otf properties.
12662
12663 * xfont.c (xfont_open): Adjust it for the change of
12664 font_make_object.
12665 (xfont_text_extents): Fix initial setting of metrics.
12666
12667 * ftfont.c (struct ftfont_info): New member index, delete member
12668 fc_charset_idx. Make the member order compatible with struct
12669 xftfont_info.
12670 (fc_charset_table): Change charset names to registry names.
12671 (ftfont_pattern_entity): Delete the args registry and
12672 fc_charset_idx. Change the value of :font-entity property
12673 to (FONTNAME . INDEX). Always set :registry property to
12674 `iso10646-1'.
12675 (struct ftfont_cache_data): New struct.
12676 (ftfont_lookup_cache): New arg for_face.
12677 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12678 (ftfont_driver): Set the member otf_capability.
12679 (ftfont_get_charset): Adjust it for the change of
12680 fc_charset_table.
12681 (OTF_TAG_SYM): New macro.
12682 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12683 for the change of fc_charset_table.
12684 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12685 ftfont_pattern_entity. Add FC_INDEX to objset.
12686 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12687 and ftfont_pattern_entity.
12688 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12689 font_make_object, struct ftfont_info.
12690 (ftfont_has_char): Use ftfont_get_fc_charset.
12691 (ftfont_otf_features, ftfont_otf_capability): New functions.
12692 (ftfont_shape): Use ftfont_get_otf.
12693 (ftfont_text_extents): Fix initial setting of metrics.
12694
12695 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12696 member order compatible with struct ftfont_info.
12697 (xftfont_open): Add FC_CHARSET to the pattern. Set
12698 xftfont_info->ft_size. Don't unlock the face. Check BDF
12699 properties if appropriate.
12700 (xftfont_close): Unlock the face.
12701 (xftfont_anchor_point, xftfont_shape): Deleted.
12702 (syms_of_xftfont): Don't set members anchor_point and shape of
12703 xftfont_driver.
12704
12705 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12706 font_make_object.
12707
12708 * w32font.c (w32font_open): Adjust it for the change of
12709 font_make_object.
12710 (w32font_open_internal): Don't set properties of font_object here.
12711
127122008-07-08 Chong Yidong <cyd@stupidchicken.com>
12713
12714 * macfns.c (x_create_tip_frame):
12715 * w32fns.c (x_create_tip_frame):
12716 * xfns.c (x_create_tip_frame): Pass parameter argument to
12717 face-set-after-frame-default.
12718
12719 * xfaces.c (Finternal_merge_in_global_face): Save merged
12720 attributes for the default face back into the face vector.
12721
127222008-07-08 Andreas Schwab <schwab@suse.de>
12723
12724 * fontset.h: Declare fontset_from_font. Don't declare
12725 new_fontset_from_font and fontset_from_font_name.
12726 * xterm.c: Include "fontset.h".
12727 * Makefile.in (xterm.o): Update dependencies.
12728
127292008-07-08 Glenn Morris <rgm@gnu.org>
12730
12731 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12732 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12733
127342008-07-07 Chong Yidong <cyd@stupidchicken.com>
12735
12736 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12737 (x_set_frame_parameters): Don't bind it.
12738
127392008-07-07 Juanma Barranquero <lekktu@gmail.com>
12740
12741 * w32fns.c (map_w32_filename): Declare extern.
12742
127432008-07-07 Jason Rumney <jasonr@gnu.org>
12744
12745 * w32term.c (WS_EX_LAYERED): Define if not already.
12746
127472008-07-06 Chong Yidong <cyd@stupidchicken.com>
12748
12749 * xfaces.c (set_font_frame_param): Don't try to set the font
12750 parameter if it is still unspecified in the lface.
12751
127522008-07-05 Chong Yidong <cyd@stupidchicken.com>
12753
12754 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12755 face if it didn't already exist.
12756
12757 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12758
127592008-07-05 Andreas Schwab <schwab@suse.de>
12760
12761 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12762
127632008-07-05 Chong Yidong <cyd@stupidchicken.com>
12764
12765 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12766 word-wrapping.
12767 (IT_DISPLAYING_WHITESPACE): New macro.
12768 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12769 when word-wrapping. Simplify word-wrapping logic. Use correct
12770 pixel positions when saving copies of the iterator.
12771 (display_line): Use proper wrap point if the last character on a
12772 line was preceded by whitespace.
12773
127742008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12775
12776 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12777
127782008-07-04 Kenichi Handa <handa@m17n.org>
12779
12780 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12781
12782 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12783
127842008-07-02 Jason Rumney <jasonr@gnu.org>
12785
12786 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12787 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12788
12789 * xdisp.c (next_element_from_display_vector): Move assignment out
12790 of if statement.
12791
127922008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12793
12794 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12795
12796 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12797 (syms_of_fileio): Initialize and export them.
12798 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12799
12800 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12801 (Fsystem_move_file_to_trash): New function.
12802 (syms_of_w32fns): Export it to lisp.
12803
128042008-07-01 Jason Rumney <jasonr@gnu.org>
12805
12806 * w32font.c (w32font_text_extents): Don't count overhang as part
12807 of width.
12808
128092008-06-30 Miles Bader <miles@gnu.org>
12810
12811 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12812 Add `avoid_cursor_p' field.
12813
12814 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12815 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12816 (append_glyph, append_composite_glyph, produce_image_glyph)
12817 (append_stretch_glyph): Initialize avoid_cursor_p.
12818 (get_it_property): Rename from `get_line_height_property'.
12819 (x_produce_glyphs): Use get_it_property.
12820 (handle_line_prefix, push_display_prop): New functions.
12821 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12822 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12823 New variables.
12824 (syms_of_xdisp): Initialize them.
12825
128262008-06-30 Kenichi Handa <handa@m17n.org>
12827
12828 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12829 XftDefaultSubstitute (they are called in XftFontMatch).
12830 (xftfont_open): Fix args to ftfont_font_format.
12831
12832 * ftfont.c (fc_charset_table): New member lang.
12833 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12834 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12835 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12836 (ftfont_open): Fix args to ftfont_font_format.
12837 (ftfont_font_format): New arg filename.
12838
128392008-06-30 Chong Yidong <cyd@stupidchicken.com>
12840
12841 * xfaces.c (Finternal_merge_in_global_face): If default face was
12842 modified, realize it again. Update the font face attribute.
12843
128442008-06-29 Jason Rumney <jasonr@gnu.org>
12845
12846 * w32term.c (x_set_frame_alpha): Fix logic.
12847
128482008-06-29 Kenichi Handa <handa@m17n.org>
12849
12850 * fontset.c (Finternal_char_font): Return font-object instead of
12851 font-name.
12852
12853 * composite.c (get_composition_id): Fix the width calculation for TAB.
12854
128552008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12856
12857 * indent.c (Fvertical_motion): Properly handle float column arg.
12858
128592008-06-28 Jason Rumney <jasonr@gnu.org>
12860
12861 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12862 (pfnSetLayeredWindowAttributes): New function pointer.
12863 (w32_initialize): Initialize it when supported.
12864 (x_set_frame_alpha): New function.
12865
12866 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12867 (w32_frame_parm_handlers): Set alpha handler.
12868
12869 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12870
128712008-06-27 Jason Rumney <jasonr@gnu.org>
12872
12873 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12874 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12875 (w32_to_x_charset, x_to_w32_charset)
12876 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12877 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12878 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12879 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12880 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12881 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12882 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12883 (Qw32_charset_unicode): Remove.
12884 (syms_of_w32fns): Update for above changes.
12885
12886 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12887 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12888 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12889 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12890 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12891 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12892 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12893 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12894 (syms_of_w32font): Update for above changes.
12895
128962008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12897
12898 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12899 removed #if.
12900 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12901
129022008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12903 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12904
12905 * makefile.w32-in (LOCAL_FLAGS):
12906 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12907
12908 * sysdep.c (_spawnlp, _getpid):
12909 Declare with explicit _cdecl instead of _CRTAPI1.
12910
12911 * editfns.c (Fget_internal_run_time):
12912 Check for WINDOWSNT with #ifdef, not #if.
12913
129142008-06-26 Jason Rumney <jasonr@gnu.org>
12915
12916 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12917
12918 * w32term.c (x_draw_glyph_string_foreground)
12919 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12920 Use FONT_HANDLE macro.
12921 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12922
12923 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12924 (uniscribe_encode_char): Use FONT_HANDLE macro.
12925
12926 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12927 (w32font_text_extents): Use precast w32_font.
12928 (w32font_close): Free cached metrics.
12929 (w32font_open_internal): Allocate space for name on stack.
12930
129312008-06-26 Chong Yidong <cyd@stupidchicken.com>
12932
12933 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12934
129352008-06-26 Jason Rumney <jasonr@gnu.org>
12936
12937 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12938 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12939
129402008-06-26 Juanma Barranquero <lekktu@gmail.com>
12941
12942 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12943
129442008-06-26 Jason Rumney <jasonr@gnu.org>
12945
12946 * w32bdf.c, w32bdf.h: Remove obsolete files.
12947
12948 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12949
12950 * w32gui.h: Don't include w32bdf.h.
12951 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12952 Remove obsolete font support.
12953
12954 * w32font.h (struct w32font_info): Remove compat_w32_font.
12955 Add hfont member.
12956 (FONT_COMPAT): Remove obsolete macro.
12957
12958 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12959 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12960 (w32font_open_internal): Remove compat code. Set new hfont member.
12961 (Fx_select_font): Use new hfont member.
12962
12963 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12964 (uniscribe_encode_char): Use new hfont member.
12965
12966 * w32term.c (x_draw_glyph_string_foreground)
12967 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12968 (x_draw_glyph_string): Use metrics in w32font_info.
12969
129702008-06-26 Kenichi Handa <handa@m17n.org>
12971
12972 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12973
129742008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12975
12976 * unexnext.c:
12977 * m/ews4800.h:
12978 * m/hp9000s300.h:
12979 * m/ibm370aix.h:
12980 * m/mips-siemens.h:
12981 * m/ncr386.h:
12982 * m/next.h:
12983 * m/pmax.h:
12984 * m/powerpcle.h:
12985 * m/tandem-s2.h:
12986 * s/386bsd.h:
12987 * s/bsd386.h:
12988 * s/bsd4-1.h:
12989 * s/bsd4-2.h:
12990 * s/bsdos2-1.h:
12991 * s/bsdos2.h:
12992 * s/bsdos3.h:
12993 * s/bsdos4.h:
12994 * s/nextstep.h:
12995 * s/ultrix4-3.h:
12996 * s/usg5-0.h:
12997 * s/usg5-2-2.h:
12998 * s/usg5-2.h:
12999 * s/usg5-4-3.h:
13000 * s/ux4800.h:
13001 * s/uxpds.h:
13002 * s/uxpv.h: Remove support for obsolete systems.
13003 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13004 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13005 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13006 Remove, insert contents in s/aix4-2.h.
13007 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13008 * s/bsd4-3.h: Rename to ...
13009 * s/bsd-common.h: ... this.
13010 * data.c:
13011 * doc.c:
13012 * ecrt0.c:
13013 * emacs.c:
13014 * fileio.c:
13015 * floatfns.c:
13016 * keyboard.c:
13017 * mem-limits.h:
13018 * print.c:
13019 * process.c:
13020 * sysdep.c:
13021 * syssignal.h:
13022 * systty.h:
13023 * syswait.h:
13024 * term.c:
13025 * unexec.c:
13026 * unexelf.c:
13027 * unexhp9k800.c:
13028 * m/hp800.h:
13029 * m/ibmrs6000.h:
13030 * m/mips.h:
13031 * m/vax.h:
13032 * s/darwin.h:
13033 * s/freebsd.h:
13034 * s/gnu.h:
13035 * s/ms-w32.h:
13036 * s/msdos.h:
13037 * s/netbsd.h:
13038 * s/template.h: Remove references to obsolete variables.
13039
13040 * Makefile.in: Add dependencies for all unexec files.
13041 (admindir): Remove unused variable.
13042 (UNEXEC_SRC): Remove references.
13043
130442008-06-25 Chong Yidong <cyd@stupidchicken.com>
13045
13046 * xfns.c (x_default_font_parameter): If Xft is available, first
13047 try Monospace-12 for the default font.
13048
130492008-06-25 Jason Rumney <jasonr@gnu.org>
13050
13051 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13052
130532008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13054
13055 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13056
13057 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13058
130592008-06-25 Juanma Barranquero <lekktu@gmail.com>
13060
13061 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13062 <scroll-conservatively>: Fix typo in docstring.
13063
13064 * xselect.c (Fx_send_client_event): Doc fix.
13065
130662008-06-25 Kenichi Handa <handa@m17n.org>
13067
13068 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13069
13070 * font.c (font_parse_fcname): Remove unused variables.
13071 (font_sort_entites): Delete the arg SPEC. Caller changed.
13072 Fix for the case of ! best_only.
13073 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13074
13075 * lisp.h (Fstring_to_unibyte): EXFUN it.
13076
13077 * character.h (str_to_unibyte): Extern it.
13078
13079 * character.c (str_to_unibyte): New function.
13080
13081 * fns.c (Fstring_to_unibyte): New function.
13082 (syms_of_fns): Defsubr it.
13083
130842008-06-24 Kenichi Handa <handa@m17n.org>
13085
13086 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13087 DPI too.
13088 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13089
130902008-06-24 Andreas Schwab <schwab@suse.de>
13091
13092 * Makefile.in (${lispsource}loaddefs.el): Rename from
13093 ../lisp/loaddefs.el.
13094 (bootstrap-clean): Do what distclean does but don't remove
13095 Makefile.
13096 (distclean): Depend on bootstrap-clean and remove Makefile.
13097
130982008-06-24 Chong Yidong <cyd@stupidchicken.com>
13099
13100 * buffer.h (struct buffer): New member word_wrap.
13101
13102 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13103 word-wrap.
13104 (init_buffer_once): Initialize them.
13105
13106 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13107 line_wrap enum possessing three possible values.
13108
13109 * termopts.h: Replace truncate_partial_width_windows with
13110 Vtruncate_partial_width_windows.
13111
13112 * dispnew.c (direct_output_for_insert): Avoid direct output when
13113 inserting a space with word wrap on.
13114
13115 * indent.c (compute_motion): Obey integer values of
13116 truncate-partial-width-windows.
13117
13118 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13119 replacing truncate_partial_width_windows.
13120 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13121 truncate only if the window width is below that integer.
13122 (start_display, resize_mini_window, produce_stretch_glyph)
13123 (display_string, move_it_in_display_line_to): Use line_wrap.
13124 (back_to_previous_visible_line_start, reseat_1): Reset
13125 string_from_display_prop_p.
13126 (display_line): Extend default face to end of line when wrapping.
13127
131282008-06-24 Kim F. Storm <storm@cua.dk>
13129
13130 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13131 to wrap continued lines at word boundaries.
13132
131332008-06-24 Jason Rumney <jasonr@gnu.org>
13134
13135 * font.c (Ffont_face_attributes): Multiply pixel size before point
13136 conversion to avoid multiplying rounding error.
13137
131382008-06-23 Jason Rumney <jasonr@gnu.org>
13139
13140 * w32term.c (x_draw_glyph_string_background)
13141 (x_draw_glyph_string): Remove old bdf font code.
13142
13143 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13144
131452008-06-22 Kenichi Handa <handa@m17n.org>
13146
13147 * font.c (font_find_for_lface): Try the adstyle specified in
13148 the property of LFACE_FONT of LFACE (if any).
13149
131502008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13151 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13152
13153 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13154
131552008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13156
13157 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13158 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13159 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13160 (witness-emacs): Remove.
13161 (lisp, shortlisp): Move loaddefs.el earlier.
13162 (mostlyclean): Forget about witness-emacs.
13163
131642008-06-22 Glenn Morris <rgm@gnu.org>
13165
13166 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13167 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13168
131692008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13170
13171 * Makefile.in (PRECOMP): Remove.
13172 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13173 (witness-emacs): Run `compile-first'.
13174 (.el.elc): Use the new compile-onefile target.
13175
131762008-06-21 Kenichi Handa <handa@m17n.org>
13177
13178 * xftfont.c (xftfont_open): Handle QCembolden only when
13179 FC_EMBOLDEN is defined.
13180
131812008-06-21 Andreas Schwab <schwab@suse.de>
13182
13183 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13184 (.el.elc): Likewise.
13185
131862008-06-21 Miles Bader <miles@gnu.org>
13187
13188 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13189 build dir, not the lisp source dir.
13190
131912008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13192
13193 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13194 (bootstrapclean): Remove.
13195 (.el.elc): New rule.
13196 (PRECOMP): New var.
13197 (../lisp/subdirs.el): Remove.
13198 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13199 (witness-emacs): New target.
13200 (mostlyclean): Remove witness-emacs as well.
13201 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13202 Add witness-emacs dependency.
13203
132042008-06-20 Chong Yidong <cyd@stupidchicken.com>
13205
13206 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13207 defined by the font.
13208
132092008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13210
13211 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13212 (bootstrap-clean): New target that keeps TAGS around.
13213 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13214 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13215
132162008-06-20 Jason Rumney <jasonr@gnu.org>
13217
13218 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13219 Remove obsolete font code.
13220
13221 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13222 to determine language support.
13223
132242008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13225
13226 * sysdep.c (cfsetspeed): New fun extracted from the code.
13227 (cfmakeraw): Move before first use.
13228
132292008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13230
13231 * sysdep.c (cfmakeraw): Provide fallback implementation.
13232 (serial_configure): Provide fallback implementation of cfsetspeed.
13233
132342008-06-20 Kenichi Handa <handa@m17n.org>
13235
13236 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13237 the pattern.
13238
13239 * fontset.c (fontset_from_font): Copy font_spec before changing
13240 the elements.
13241
13242 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13243
132442008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13245
13246 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13247 for explicit `font' parameters.
13248
13249 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13250
132512008-06-19 Kenichi Handa <handa@m17n.org>
13252
13253 * frame.c: Include <ctype.h>.
13254 (x_set_font_backend): Allow spacing characters in the X resource
13255 for FontBackend.
13256
132572008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13258
13259 * w32fns.c, xfns.c (Qfont_param): New var.
13260 (syms_of_w32fns): Initialize it.
13261 (x_default_font_parameter): Record explicit `font' into
13262 `font-parameter'.
13263
132642008-06-18 Kenichi Handa <handa@m17n.org>
13265
13266 * font.c (font_parse_xlfd): Fix previous change.
13267 (font_parse_fcname): Don't use :fc-unknown-spec.
13268 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13269 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13270 (font_add_log): Prepend the driver name to the resulting fonts.
13271
13272 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13273 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13274 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13275
13276 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13277 (QCembolden): New variables.
13278 (syms_of_xftfont): DEFSYM them.
13279 (xftfont_open): Call XftFontMatch. Don't trust the result of
13280 XftTextExtents8 if the pixel_size is less than 5.
13281
132822008-06-18 Andreas Schwab <schwab@suse.de>
13283
13284 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13285 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13286
132872008-06-18 Jason Rumney <jasonr@gnu.org>
13288
13289 * w32font.c (w32font_list, w32font_match): Add logging.
13290
13291 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13292
132932008-06-17 Chong Yidong <cyd@stupidchicken.com>
13294
13295 * font.c (font_parse_fcname): Store divider characters for
13296 unknown-spec list. For known key symbols, intern using correct
13297 symbol name.
13298
132992008-06-17 Kenichi Handa <handa@m17n.org>
13300
13301 * xfaces.c (realize_default_face): If the frame is not on window
13302 system, set the fontset of face to nil.
13303
133042008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13305
13306 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13307
133082008-06-16 Juanma Barranquero <lekktu@gmail.com>
13309
13310 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13311 (build_font_name_from_vector): Delete externs.
13312
13313 * xfaces.c (struct font_name): Don't declare.
13314
133152008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13316
13317 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13318
133192008-06-16 Chong Yidong <cyd@stupidchicken.com>
13320
13321 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13322
133232008-06-16 Juanma Barranquero <lekktu@gmail.com>
13324
13325 * font.c (Ffont_spec): Fix usage in docstring.
13326 (Ffont_face_attributes): Doc fix.
13327
133282008-06-16 Andreas Schwab <schwab@suse.de>
13329
13330 * font.c (Ffont_face_attributes): Fix definition.
13331
133322008-06-16 Jason Rumney <jasonr@gnu.org>
13333
13334 * font.h (font_style_symbolic_from_value): Remove.
13335
13336 * font.c (font_style_symbolic_from_value): Remove.
13337 (font_style_symbolic): Revert to pre 2008-06-13 version.
13338
13339 * w32font.c (w32_to_fc_weight): New function.
13340 (w32font_full_name, logfont_to_fcname): Use it.
13341
133422008-06-16 Kenichi Handa <handa@m17n.org>
13343
13344 * font.c (font_check_object): Delete it.
13345 (font_clear_cache): Check if a font-object is alive.
13346 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13347 font-object to nil.
13348 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13349 (font_at): Don't call font_check_object.
13350 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13351
133522008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13353
13354 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13355
133562008-06-16 Chong Yidong <cyd@stupidchicken.com>
13357
13358 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13359
133602008-06-15 Chong Yidong <cyd@stupidchicken.com>
13361
13362 * font.c (font_parse_fcname): Only one decimal point.
13363 (font_unparse_fcname): Handle data in family and foundry indices
13364 as symbols, not strings.
13365 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13366
13367 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13368
13369 * font.h (font_unparse_gtkname): Add prototype.
13370
133712008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13372
13373 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13374
133752008-06-15 Andreas Schwab <schwab@suse.de>
13376
13377 * font.c (font_update_drivers): Fix crash when no drivers match.
13378
133792008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13380
13381 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13382 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13383
133842008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13385
13386 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13387
133882008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13389
13390 * process.c (Fserial_process_configure, Fprocess_send_eof):
13391 Use EQ to compare Lisp_Objects.
13392
133932008-06-13 Jason Rumney <jasonr@gnu.org>
13394
13395 * w32fns.c (Fw32_select_font): Remove old font API function.
13396
13397 * w32font.c (logfont_to_fcname): New function.
13398 (Fx_select_font): New font dialog function compatible with
13399 GTK/fontconfig version.
13400
13401 * font.c (font_style_symbolic_from_value): New function.
13402 (font_style_symbolic): Use it.
13403
13404 * font.h (font_style_symbolic_from_value): Declare new function.
13405
134062008-06-13 Juanma Barranquero <lekktu@gmail.com>
13407
13408 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13409 <font-width-table>: Fix typos in docstrings.
13410
134112008-06-13 Daniel Engeler <engeler@gmail.com>
13412
13413 These changes add serial port access.
13414 * process.c: Add HAVE_SERIAL.
13415 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13416 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13417 (list_processes_1, select_wrapper, Fstop_process)
13418 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13419 (status_notify): Modify to handle serial processes.
13420 [HAVE_SERIAL] (Fserial_process_configure)
13421 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13422 New functions.
13423 * process.h (struct Lisp_Process): Add `type'.
13424 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13425 New functions.
13426 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13427 serial ports.
b71ac3dd 13428 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13429 * w32.h: Add FILE_SERIAL.
13430 (struct _child_process): Add ovl_read, ovl_write.
13431
134322008-06-13 Kenichi Handa <handa@m17n.org>
13433
13434 * dispextern.h (enum lface_attribute_index): New member
13435 LFACE_FOUNDRY_INDEX.
13436
13437 * font.c (font_score): Delete arg alternate_families. Check only
13438 weight, slant, width, and size. Ignore the difference of alias
13439 style symbols.
13440 (font_sort_entites): Adjust for the above change. Reflect the
13441 order of font-driver to scores.
13442 (font_list_entities): Don't check alternate_familes here.
13443 (font_clear_prop): Handle foundry.
13444 (font_update_lface): Don't parse "foundry-family" form here.
13445 Handle FONT_FOUNDRY_INDEX.
13446 (font_find_for_lface): Likewise. Handle alternate families here.
13447 If registry is nil, try iso8859-1 and ascii-0.
13448 (font_open_for_lface): Pay attention to size in ENTITY.
13449 (font_open_by_name): Simplify by calling font_load_for_lface.
13450 (free_font_driver_list): Delete it.
13451 (font_update_drivers): Preserve the order of backends.
13452 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13453 of font_score and font_sort_entites.
13454 (font_update_sort_order): Likewise.
13455
13456 * xfaces.c (LFACE_FOUNDRY): New macro.
13457 (check_lface_attrs): Check foundry.
13458 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13459 (merge_face_vectors): Check foundry.
13460 (merge_face_ref): Likewise.
13461 (Finternal_set_lisp_face_attribute): Likewise.
13462 (x_update_menu_appearance): Likewise.
13463 (Finternal_get_lisp_face_attribute): Likewise.
13464 (lface_hash): Likewise.
13465 (lface_same_font_attributes_p): Likewise.
13466 (x_supports_face_attributes_p): Likewise.
13467 (tty_supports_face_attributes_p): Likewise.
13468 (Finternal_set_alternative_font_family_alist): Intern strings.
13469 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13470 (realize_default_face): Set LFACE_FOUNDRY (lface).
13471
13472 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13473 font-driver at first.
13474
13475 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13476
134772008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13478
13479 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13480
134812008-06-12 Jim Meyering <meyering@redhat.com>
13482
13483 Make unexec_free handle NULL the same way free does.
13484 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13485
134862008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13487
13488 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13489 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13490 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13491 (WEAK_ALIAS): Simplify.
13492 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13493 when searching a unibyte buffer.
13494
134952008-06-12 Chong Yidong <cyd@stupidchicken.com>
13496
13497 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13498
134992008-06-12 Juanma Barranquero <lekktu@gmail.com>
13500
13501 * w32font.c: Include ctype.h.
13502
135032008-06-11 Jason Rumney <jasonr@gnu.org>
13504
13505 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13506 misreported as space.
13507 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13508 as aliases for registry iso10646-1.
13509
135102008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13511
13512 * buffer.c (clone_per_buffer_values): Skip `name'.
13513
135142008-06-11 Chong Yidong <cyd@stupidchicken.com>
13515
13516 * font.c (font_parse_fcname): Fix last change; accept decimal
13517 points in font size.
13518
135192008-06-10 Jason Rumney <jasonr@gnu.org>
13520
13521 * w32uniscribe.c (add_opentype_font_name_to_list):
13522 Skip non unicode fonts.
13523
135242008-06-10 Chong Yidong <cyd@stupidchicken.com>
13525
13526 * xfns.c (Fx_font_dialog): New function.
13527
13528 * gtkutil.c (xg_dialog_response_cb): Rename from
13529 xg_file_response_callback.
13530 (pop_down_dialog): Rename from pop_down_file_dialog.
13531 (xg_get_file_name): Callers changed.
13532 (xg_get_font_name): New function.
13533
13534 * gtkutil.h (xg_get_font_name): Insert prototype.
13535
135362008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13537
13538 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13539 x_underline_minimum_display_offset.
13540 (syms_of_xdisp): Declare it here rather than in xterm.c.
13541 * dispextern.h (underline_minimum_offset): Declare it.
13542 * w32term.c (x_draw_glyph_string): Use it.
13543 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13544 (syms_of_xterm): Don't declare it any more.
13545 (x_draw_glyph_string): Adjust to the new name.
13546
8719abec 135472008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13548
13549 * xterm.c (x_underline_minimum_display_offset): New var.
13550 (x_draw_glyph_string): Use it.
13551 (syms_of_xterm): Declare it.
13552
135532008-06-10 Chong Yidong <cyd@stupidchicken.com>
13554
13555 * font.c (font_parse_fcname): Accept GTK-style font names too.
13556
135572008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13558
13559 * dired.c (file_name_completion): Don't return t if the match is exact
13560 but with different capitalization.
13561 * minibuf.c (Ftry_completion): Simplify.
13562
13563 * window.c (Vwindow_point_insertion_type): New var.
13564 (set_window_buffer): Use it.
13565 (syms_of_window): Init and export it to Lisp.
13566
135672008-06-10 Kenichi Handa <handa@m17n.org>
13568
13569 * font.h (font_intern_prop): Prototype adjusted.
13570
13571 * font.c (font_intern_prop): New arg force_symbol.
13572 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13573 Adjust for the change of font_intern_prop.
13574
13575 * ftfont.c (ftfont_pattern_entity):
13576 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13577 (w32_registry):
13578 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13579 the change of font_intern_prop.
13580
135812008-06-09 Juanma Barranquero <lekktu@gmail.com>
13582
13583 * w32menu.c (digest_single_submenu): Declare extern.
13584
135852008-06-09 Jason Rumney <jasonr@gnu.org>
13586
13587 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13588
13589 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13590 (parse_single_submenu): Remove.
13591 (digest_single_submenu): Remove.
13592 (syms_of_w32menu): Don't initialise variables that have moved
13593 to menu.c.
13594 (set_frame_menubar): Sync with version in xmenu.c.
13595 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13596
13597 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13598 Make static again.
13599
136002008-06-09 Jason Rumney <jasonr@gnu.org>
13601
13602 Changes to w32 files related to the move of common menu code
13603 to menu.c on 2008-06-08 by Chong Yidong.
13604
13605 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13606 defs to w32gui.h.
13607 (single_keymap_panes, push_menu_item, push_menu_pane):
13608 Make globally visible.
13609
13610 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13611 (local_free, malloc_widget_value, free_widget_value)
13612 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13613 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13614 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13615 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13616 (menu_items, menu_items_allocated, menu_items_used)
13617 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13618 (init_menu_items, finish_menu_items, discard_menu_items)
13619 (grow_menu_items, push_submenu_start, push_submenu_end)
13620 (push_left_right_boundary, push_menu_pane, push_menu_item)
13621 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13622 (free_menubar_widget_tree_value, parse_single_submenu)
13623 (update_submenu_strings): Remove functions.
13624 (xmalloc_widget_value): Remove and declare extern.
13625
13626 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13627 (OBJ1): Build it.
13628
13629 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13630 (local_heap, local_alloc, local_free, malloc_widget_value)
13631 (free_widget_value): Define here.
13632
136332008-06-09 Kenichi Handa <handa@m17n.org>
13634
13635 * font.h (Qascii_0): Extern it.
13636
13637 * font.c (Qascii_0): New variable.
13638 (syms_of_font): DEFSYM it.
13639 (font_open_by_name): If the registry "iso8859-1" fails, try also
13640 "ascii-0".
13641
13642 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13643
136442008-06-08 Kenichi Handa <handa@m17n.org>
13645
13646 * .gdbinit (xfont): New command.
13647
136482008-06-08 Andreas Schwab <schwab@suse.de>
13649
13650 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13651 * Makefile.in (menu.o): Update dependencies.
13652
13653 * Makefile.in (obj): Always add menu.o.
13654 * emacs.c (main): Always call syms_of_menu.
13655 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13656
136572008-06-08 Chong Yidong <cyd@stupidchicken.com>
13658
13659 * Makefile.in: Compile menu.c.
13660
13661 * lisp.h: Declare syms_of_menu.
13662
13663 * emacs.c (main): Call syms_of_menu.
13664
13665 * keyboard.h: Relocate platform-independent menu definitions from
13666 xmenu.c.
13667
13668 * menu.c: New file. Relocate platform-independent menu
13669 definitions from xmenu.c. Suggested by Adrian Robert.
13670
13671 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13672 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13673 (menu_items_used, menu_items_n_panes)
13674 (menu_items_submenu_depth): Move to keyboard.h.
13675 (init_menu_items, finish_menu_items, unuse_menu_items)
13676 (discard_menu_items, restore_menu_items, save_menu_items)
13677 (grow_menu_items, push_submenu_start, push_submenu_end)
13678 (push_left_right_boundary, push_menu_pane, push_menu_item)
13679 (keymap_panes, single_keymap_panes, single_menu_item)
13680 (list_of_panes, list_of_items, find_and_call_menu_selection)
13681 (xmalloc_widget_value, free_menubar_widget_value_tree)
13682 (parse_single_submenu, digest_single_submenu)
13683 (update_submenu_strings): Move to menu.c.
13684
136852008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13686
13687 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13688
136892008-06-06 Miles Bader <miles@gnu.org>
13690
13691 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13692 face, not frame default.
13693
136942008-06-05 Martin Rudalics <rudalics@gmx.at>
13695
13696 * window.c (pop_up_windows, pop_up_frames)
13697 (display_buffer_reuse_frames, Vpop_up_frame_function)
13698 (Vdisplay_buffer_function, Veven_window_heights)
13699 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13700 (Vspecial_display_function, Vsame_window_buffer_names)
13701 (Vsame_window_regexps, split_height_threshold)
13702 (Vsplit_window_preferred_function): Move those vars to window.el.
13703 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13704 (Fdisplay_buffer): Move those functions to window.el.
13705 (syms_of_window): Remove corresponding declarations.
13706 (display_buffer): New function.
13707 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13708 * dispnew.c (Flast_nonminibuf_frame): New function.
13709 * buffer.c (Fpop_to_buffer): Move to window.el.
13710
137112008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13712
13713 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13714
137152008-06-05 Kenichi Handa <handa@m17n.org>
13716
13717 * coding.c (detect_coding): Fix previous change.
13718 (detect_coding_system): Likewise.
13719
137202008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13721
13722 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13723
13724 * keymap.c (Vminibuffer_local_filename_must_match_map):
13725 Rename from Vminibuffer_local_must_match_filename_map.
13726 (syms_of_keymap):
13727 * minibuf.c (Fcompleting_read): Adjust accordingly.
13728 * commands.h: Rename declaration as well.
13729
137302008-06-05 Kenichi Handa <handa@m17n.org>
13731
13732 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13733 family name.
13734 (Ffont_put): Likewise.
13735
13736 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13737 current font-spec.
13738
13739 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13740 is unspecified.
13741
13742 * xfaces.c (realize_x_face): If the font-related face attributes
13743 are the same as those of default face, realize a new fontset from
13744 default->fontset.
13745 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13746
137472008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13748
13749 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13750 (move_it_in_display_line): New wrapper.
13751
13752 * window.c (window_scroll_pixel_based_preserve_x)
13753 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13754 (window_scroll_pixel_based, window_scroll_line_based):
13755 Use them to preserve column positions.
13756 (syms_of_window): Initialize them.
13757
13758 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13759 (HPOS . VPOS) pair.
13760
13761 * dispextern.h (move_it_in_display_line): Declare.
13762
137632008-06-05 Juanma Barranquero <lekktu@gmail.com>
13764
13765 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13766 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13767 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13768
137692008-06-04 Juanma Barranquero <lekktu@gmail.com>
13770
13771 * window.c (Fset_window_parameter): Doc fix.
13772 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13773
137742008-06-04 Joakim Verona <joakim@verona.se>
13775
13776 * window.h (struct window): Add new member window_parameters.
13777
13778 * window.c (Fwindow_parameters, Fwindow_parameter)
13779 (Fset_window_parameter): New defuns.
13780 (syms_of_window): Defsubr the new defuns.
13781 (make_window): Initialize window_parameters to nil.
13782
137832008-06-04 John Paul Wallington <jpw@pobox.com>
13784
13785 * eval.c (Fdefmacro): Doc fix.
13786
137872008-06-04 Kenichi Handa <handa@m17n.org>
13788
13789 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13790 Be sure to call setup_coding_system when we find a proper coding system.
13791 (detect_coding_system): Fix handling of coding->head_ascii.
13792
137932008-06-03 Andreas Schwab <schwab@suse.de>
13794
13795 * font.c (font_prop_validate_spacing): Fix last change.
13796
137972008-06-03 Kenichi Handa <handa@m17n.org>
13798
13799 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13800 (font_parse_fcname): Fix handling of unknown key.
13801
13802 * xfont.c (xfont_list): Try an alias.
13803
13804 * charset.c (char_charset): Return NULL if the arg charset_list is
13805 specified and C doesn't belong to any of them.
13806
138072008-06-02 Chip Coldwell <coldwell@redhat.com>
13808
13809 * font.c (font_pixel_size): Don't take cdr of an integer.
13810
138112008-06-02 Jim Meyering <meyering@redhat.com>
13812
13813 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13814 * alloc.c (xfree): Return right away for a NULL arg.
13815 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13816 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13817 * mac.c (create_apple_event_from_event_ref): Likewise.
13818 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13819 Likewise.
13820 * doprnt.c (doprnt1): Likewise.
13821 * frame.c (frame): Likewise.
13822 * keyboard.c (wipe_kboard): Likewise.
13823 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13824 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13825 * term.c (tty_default_color_capabilities, maybe_fatal)
13826 (delete_tty): Likewise.
13827 * w16select.c (string): Likewise.
13828 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13829 * w32bdf.c (w32_free_bdf_font): Likewise.
13830 * w32fns.c (w32_unload_font): Likewise.
13831 * w32font.c (w32font_close): Likewise.
13832 * window.c (size_window): Likewise.
13833 * xselect.c (receive_incremental_selection): Likewise.
13834 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13835 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13836 * w32.c (stat): Likewise.
13837
13838 Remove useless if-before-free tests.
13839 * editfns.c (Fset_time_zone_rule): Likewise.
13840 * lread.c (nosuffix): Likewise.
13841 * ralloc.c (get_bloc): Likewise.
13842 * regex.c (reg_free): Likewise.
13843 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13844 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13845 * xsmfns.c (smc_save_yourself_CB): Likewise.
13846
138472008-06-02 Kenichi Handa <handa@m17n.org>
13848
13849 * font.c (font_find_for_lface): Handle float font size.
13850 (font_open_for_lface): Likewise.
13851
13852 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13853 comparing the properties.
13854
138552008-06-01 Jason Rumney <jasonr@gnu.org>
13856
13857 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13858 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13859 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13860 Don't add empty script list.
13861 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13862
138632008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13864
13865 * Makefile.in (dot, dotdot): Remove, update users.
13866 ".." has been used elsewhere in the file for a long time.
13867 (LIBXT_STATIC): Remove conditional based on unused variable.
13868
138692008-06-01 Miles Bader <miles@gnu.org>
13870
13871 * xfaces.c (Vface_remapping_alist): New variable.
13872 (syms_of_xfaces): Initialize it.
13873 (enum named_merge_point_kind): New type.
13874 (struct named_merge_point): Add `named_merge_point_kind' field.
13875 (push_named_merge_point): Make cycle detection respect different
13876 named-merge-point kinds.
13877 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13878 Remove face-name alias resolution.
13879 (lface_from_face_name): New definition using
13880 `lface_from_face_name_no_resolve'.
13881 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13882 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13883 (get_lface_attributes): New definition that layers face-remapping on
13884 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13885 (lookup_basic_face): New function.
13886 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13887 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13888 `get_lface_attributes'.
13889 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13890 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13891 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13892
13893 * xdisp.c (init_iterator): Pass base_face_id through
13894 `lookup_basic_face' when we actually use it as a face-id.
13895 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13896 DEFAULT_FACE_ID.
13897
13898 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13899 lookup the initial face-id.
13900
13901 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13902
139032008-06-01 Juanma Barranquero <lekktu@gmail.com>
13904
13905 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13906 (Fremove_text_properties): Fix typos in docstrings.
13907
139082008-05-31 Kenichi Handa <handa@m17n.org>
13909
13910 * font.c (font_list_entities): Fix the car part of data to be
13911 stored in the cache.
13912
13913 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13914
139152008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13916
13917 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13918 Add a `test' argument so another predicate than `equal' can be used.
13919 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13920 (map_char_table): Remove unused vars `c' and `i'.
13921 * lisp.h (Foptimize_char_table): Adjust declaration.
13922 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13923
139242008-05-30 Kenichi Handa <handa@m17n.org>
13925
13926 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13927 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13928 defined.
13929
139302008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13931
13932 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13933 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13934 frame-local settings for the same variable.
13935
139362008-05-30 Kenichi Handa <handa@m17n.org>
13937
13938 * fontset.c (Ffont_info): Move to font.c.
13939 (syms_of_fontset): Delete defsubr of Sfont_info.
13940
13941 * font.c (font_style_to_value, font_score): Delete casting of the
13942 args to xstcasecmp.
13943 (register_font_driver): Increment num_font_drivers only when
13944 registering the driver globally.
13945 (Ffont_info): Move from fontset.c. Handle a font object too.
13946 (syms_of_font): Defsubr Sfont_info.
13947
139482008-05-29 Kenichi Handa <handa@m17n.org>
13949
13950 * coding.h (enum define_coding_utf8_arg_index): New enum.
13951 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13952 coding_attr_utf_bom.
13953 (enum utf_bom_type): Rename from utf_16_bom_type.
13954 (struct utf_16_spec): Adjust for the above change.
13955 (struct coding_system): Add utf_8_bom in `spec' union.
13956
13957 * coding.c (CODING_UTF_8_BOM): New macro.
13958 (enum coding_category): Delete coding_category_utf_8, add
13959 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13960 coding_category_utf_8_sig.
13961 (CATEGORY_MASK_UTF_8): Delete it.
13962 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13963 (CATEGORY_MASK_UTF_8_SIG): New macros.
13964 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13965 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13966 CATEGORY_MASK_UTF_8_SIG.
13967 (CATEGORY_MASK_UTF_8): New macro.
13968 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13969 (detect_coding_utf_8): Check BOM.
13970 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13971 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13972 (encode_coding_utf_16): Likewise.
13973 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13974 (detect_coding, detect_coding_system): Handle utf-8-auto.
13975 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13976 (syms_of_coding): Fix setting up of Vcoding_category_table.
13977
139782008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13979
13980 * process.c (Faccept_process_output): If `millisec' is non-nil,
13981 `seconds' default to 0.
13982 (wait_reading_process_output): Also return non-nil if we read output
13983 from a non-running process.
13984
139852008-05-29 Jason Rumney <jasonr@gnu.org>
13986
13987 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13988 `raster' specified.
13989 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13990 in the uniscribe backend, but disallow any font that has no
13991 unicode subrange support.
13992
139932008-05-29 Juanma Barranquero <lekktu@gmail.com>
13994
13995 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13996 Fix typos in docstrings.
13997
139982008-05-29 Kenichi Handa <handa@m17n.org>
13999
14000 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14001 (Fx_family_fonts): Set frame correctly.
14002
140032008-05-28 Jason Rumney <jasonr@gnu.org>
14004
14005 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14006
140072008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14008
14009 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14010 calling build_annotations.
14011
140122008-05-28 Juanma Barranquero <lekktu@gmail.com>
14013
14014 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14015 (Fencode_coding_string):
14016 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14017 <latin-extra-code-table>: Fix typos in docstrings.
14018 (syms_of_coding) <coding-system-alist>: Doc fix.
14019 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14020
140212008-05-28 Kenichi Handa <handa@m17n.org>
14022
14023 * fontset.c (Ffont_info): Don't call font_close_object.
14024
14025 * font.c (font_parse_family_registry): Use Ffont_put to validate
14026 foundry and family.
14027 (font_delete_unmatched): Don't check spacing.
14028 (font_list_entities): Add spacing to the spec to list fonts.
14029
14030 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14031 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14032
14033 * coding.c (encode_coding_raw_text): Fix previous change.
14034 (encode_coding_object): When the dst_object is a buffer and is
14035 different from src_object, move gap to PT.
14036
140372008-05-27 Chong Yidong <cyd@stupidchicken.com>
14038
14039 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14040
140412008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14042
14043 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14044 all branches. Compute it differently.
14045
14046 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14047
140482008-05-27 Juanma Barranquero <lekktu@gmail.com>
14049
14050 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14051 into "else if () ... else ...".
14052
140532008-05-27 Jason Rumney <jasonr@gnu.org>
14054
14055 * w32font.c (w32font_open_internal): Determine if glyph indices
14056 are likely to work here.
14057
140582008-05-27 Chong Yidong <cyd@stupidchicken.com>
14059
14060 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14061 draw overlap glyphs with appropriate highlighting.
14062
140632008-05-27 Kenichi Handa <handa@m17n.org>
14064
14065 * xfont.c (xfont_open): Fix calculation of font->average_width.
14066
140672008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14068
14069 * casefiddle.c (casify_object): Try to guess better whether the
14070 argument is a byte or a char.
14071
140722008-05-26 Andreas Schwab <schwab@suse.de>
14073
14074 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14075 Always send multiples of format size.
14076
14077 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14078
140792008-05-26 Jason Rumney <jasonr@gnu.org>
14080
14081 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14082 (compute_metrics): Don't set failure if we just cleared the cache.
14083 (w32_weight_table): Remove unused variable.
14084 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14085 backwards compatibility.
14086
140872008-05-25 Kenichi Handa <handa@m17n.org>
14088
14089 * w32term.c (x_draw_glyph_string):
14090 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14091
14092 * xfaces.c: Delete unused function prototypes.
14093 (xstrlwr, font_frame): Delete them.
14094 (clear_face_cache): Delete unused variable.
14095
14096 * xftfont.c (xftfont_open): Delete unused variable.
14097 If underline_thickness is not 1, adjust underline_position.
14098
14099 * ftxfont.c (ftxfont_open): Delete unused variable.
14100
14101 * fontset.c (face_for_char): Optimize for the case of no charset
14102 property.
14103
14104 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14105 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14106 (otf_open, font_otf_capability, generate_otf_features)
14107 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14108 Comment out by surrounding "#if 0" and "#endif" for the moment.
14109 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14110 (syms_of_font): Codes for accessing above commented out.
14111
141122008-05-24 Eli Zaretskii <eliz@gnu.org>
14113
14114 * w32proc.c: Include dispextern.h.
14115
14116 * w32.c: Include dispextern.h.
14117
141182008-05-23 Juanma Barranquero <lekktu@gmail.com>
14119
14120 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14121 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14122 Fix typos in docstrings.
14123
141242008-05-23 Jason Rumney <jasonr@gnu.org>
14125
14126 * xsmfns.c: Remove includes that are already included by config.h.
14127
141282008-05-23 Kenichi Handa <handa@m17n.org>
14129
14130 * charset.c (Qemacs, charset_emacs): New variables.
14131 (char_charset): Fix for non-Unicode characters.
14132 (syms_of_charset): Define charset_emacs.
14133
14134 * w32term.c (x_draw_glyph_string): Be sure to update
14135 s->underline_thickness and s->underline_position. Be sure to draw
14136 underline within the current line area.
14137
14138 * xterm.c (x_draw_glyph_string): Be sure to update
14139 s->underline_thickness and s->underline_position. Be sure to draw
14140 underline within the current line area.
14141
14142 * fontset.c: Delete unused variables and add casting for char *
14143 throughout the file.
14144 (fontset_font): Try the fallback fonts of the current fontset
14145 before consulting the default fontset.
14146
14147 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14148
14149 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14150
141512008-05-22 Jason Rumney <jasonr@gnu.org>
14152
14153 * font.c: Don't include strings.h.
14154
14155 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14156
14157 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14158 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14159 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14160 to call xstrcasecmp.
14161
14162 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14163
14164 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14165
14166 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14167
14168 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14169
141702008-05-22 Kenichi Handa <handa@m17n.org>
14171
14172 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14173
14174 * font.c (font_prop_validate_style): Adjust for the format
14175 change of font_style_table.
14176
14177 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14178 two args.
14179
14180 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14181 two args.
14182
141832008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14184
14185 * minibuf.c (keys_of_minibuf): Delete.
14186 * lisp.h (keys_of_minibuf): Delete.
14187 * emacs.c (main): Don't call keys_of_minibuf.
14188
141892008-05-22 Kenichi Handa <handa@m17n.org>
14190
14191 * ftfont.c (ftfont_resolve_generic_family): Rename from
14192 ftfont_list_generic_family. Return a single family for each
14193 generic family.
14194 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14195 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14196 Call font_add_log.
14197 (ftfont_match): Call font_add_log.
14198
14199 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14200 (FONT_DEBUG): Define it.
14201 (font_add_log): Extern it.
14202 (font_assert): Rename from xassert.
14203
14204 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14205 (xfont_list_family): Call font_add_log.
14206 (xfont_match): Likewise.
14207 (memq_no_quit): Delete.
14208
14209 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14210 call of Ffont_xlfd_name.
14211
14212 * xfaces.c (struct table_entry, slant_table, weight_table)
14213 (swidth_table): Move to font.c.
14214
14215 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14216 xassert are changed to font_assert. Delete many unused variables.
14217 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14218 New variables.
14219 (struct table_entry): Move from xfaces.c and modified.
14220 (weight_table, slant_table, width_table): Move from xfaces.c and
14221 contents adjusted for the change of struct table_entry.
14222 (font_style_to_value, font_style_symbolic): Adjust for the
14223 format change of font_style_table.
14224 (font_parse_family_registry): Don't overwrite existing foundry and
14225 family of font_spec.
14226 (font_score): Fix calculation of diff for sizes.
14227 (font_sort_entites): Call font_add_log.
14228 (font_delete_unmatched): Return a newly created list.
14229 (font_list_entities): Fix previous change. Call font_add_log.
14230 (font_matching_entity, font_open_entity, font_close_entity):
14231 Call font_add_log.
14232 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14233 (Finternal_set_font_style_table): Delete.
14234 (BUILD_STYLE_TABLE): New macro.
14235 (build_style_table): New function.
14236 (Vfont_log, font_log_env_checked): New variables.
14237 (font_add_log): New function.
14238 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14239 Declare Lisp variables "font-weight-table", "font-slant-table",
14240 "font-width-table", and "font-log". Initialize font_style_table.
14241
142422008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14243
14244 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14245
142462008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14247 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14248
14249 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14250 (Vframe_alpha_lower_limit): New variable.
14251 (x_set_alpha): New function.
14252
14253 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14254
14255 * xfns.c (x-create-frame, Qalpha):
14256 Initialize the frame parameter `alpha'.
14257 * xterm.c (OPAQUE, OPACITY): New.
14258 (x_set_frame_alpha): New function.
14259 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14260
14261 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14262 * w32fns.c (w32_frame_parm_handlers): Likewise.
14263
142642008-05-20 Jason Rumney <jasonr@gnu.org>
14265
14266 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14267 truetype fonts to opentype list.
14268
142692008-05-20 Juanma Barranquero <lekktu@gmail.com>
14270
14271 * fontset.c (Ffontset_info): Doc fix.
14272 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14273 <ignore-relative-composition>: Fix typos in docstrings.
14274
14275 * font.c (syms-of-font) <font-encoding-alist>:
14276 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14277 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14278 (Ffont_otf_alternates): Doc fixes.
14279
142802008-05-20 Kenichi Handa <handa@m17n.org>
14281
14282 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14283 font.h through out the file.
14284 (FONT_DRIVERS): Rename from FONTOBJ.
14285 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14286 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14287
14288 * emacs.c (main): Call syms_of_font unconditionally.
14289
14290 * font.h (find_font_encoding): Extern it.
14291
14292 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14293 fontset.c.
194d44e7 14294 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14295 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14296 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14297 only when HAVE_WINDOW_SYSTEM is defined.
14298 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14299 when HAVE_WINDOW_SYSTEM is defined.
14300
14301 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14302 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14303
14304 * xfaces.c: Include font.h unconditionally.
14305 (merge_face_ref, merge_face_vectors)
14306 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14307
143082008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14309
14310 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14311 indirect_variable.
14312 * eval.c (lisp_indirect_variable): New fun.
14313 (Fuser_variable_p): Use it.
14314
143152008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14316
14317 * lisp.h (indirect_variable):
14318 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14319 Use Lisp_Symbol pointers rather than Lisp_Object.
14320 Adjust callers.
14321 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14322 To this end, change calling-convention.
14323
14324 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14325 if some non-hidden buffers are selected by string&pred.
14326
143272008-05-19 Chong Yidong <cyd@stupidchicken.com>
14328
14329 * process.c (wait_reading_process_output): Always check status
14330 when in batch mode.
14331
143322008-05-19 Kenichi Handa <handa@m17n.org>
14333
14334 * font.c (font_list_entities): Fix handling of cache.
14335 (font_matching_entity): Likewise.
14336
14337 * ftfont.c (cs_iso8859_1): Delete.
14338 (ft_face_cache): New variable.
14339 (struct ftfont_info): New member fc_charset_idx.
14340 (ftfont_build_basic_charsets): Delete.
14341 (fc_charset_table): New variable.
14342 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14343 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14344 Callers changed.
14345 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14346 (ftfont_spec_pattern): New argument fc_charset_idx.
14347 Check registry more rigidly. Change callers.
14348 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14349 change of :font-entity property of the font.
14350
14351 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14352 property of the font.
14353
143542008-05-18 Juanma Barranquero <lekktu@gmail.com>
14355
14356 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14357 (Funencodable_char_position, Fcheck_coding_systems_region)
14358 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14359 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14360 (Ffind_operation_coding_system, Fset_coding_system_priority)
14361 (Fcoding_system_eol_type): Doc fixes.
14362
143632008-05-17 Glenn Morris <rgm@gnu.org>
14364
14365 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14366
143672008-05-16 Eli Zaretskii <eliz@gnu.org>
14368
14369 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14370 and st_gid.
14371
14372 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14373 HAVE_WINDOW_SYSTEM is not defined.
14374
14375 * xfaces.c (merge_face_ref, merge_face_vectors)
14376 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14377 HAVE_WINDOW_SYSTEM is defined.
14378 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14379
143802008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14381
14382 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14383
143842008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14385
14386 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14387
143882008-05-15 Kenichi Handa <handa@m17n.org>
14389
14390 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14391 preference.
14392
143932008-05-15 Glenn Morris <rgm@gnu.org>
14394
14395 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14396
143972008-05-15 Chong Yidong <cyd@stupidchicken.com>
14398
14399 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14400 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14401
14402 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14403
144042008-05-15 Kenichi Handa <handa@m17n.org>
14405
14406 * ftfont.c (ftfont_list): Downcase family name to check generic
14407 families.
14408
14409 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14410 font-spec for QCfont value.
14411
14412 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14413 buffer. Check the return value of it.
14414
144152008-05-14 Jason Rumney <jasonr@gnu.org>
14416
14417 * w32term.c (w32_get_glyph_overhangs): Remove.
14418 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14419
144202008-05-14 Kenichi Handa <handa@m17n.org>
14421
14422 * font.c (font_prop_validate): Make nil a valid value.
14423 (font_clear_cache): Check if the cached vector of entities is nil
14424 or not.
14425
144262008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14427
14428 * emacs.c (main_thread): Conditionalize on
14429 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14430 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14431
14432 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14433 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14434 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14435
144362008-05-14 Kenichi Handa <handa@m17n.org>
14437
14438 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14439 has no corresponding coding system.
14440
144412008-05-14 Jason Rumney <jasonr@gnu.org>
14442
14443 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14444
14445 * w32font.h (w32font_open_internal): Update declaration.
14446
14447 * w32font.c (w32font_open_internal): Change last argument from
14448 w32font_info struct to font object. Fill in font object from
14449 font_entity. Get Outline metrics if possible. Use them to
14450 calculate underline position and thickness. Use xlfd name as name
14451 property. Don't set codepage.
14452 (w32font_open): Pass font_object to w32font_open_internal. Don't
14453 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14454 (w32font_draw): Use s->font.
14455 (clear_cached_metrics): Don't clear non-existent blocks.
14456
14457 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14458 font was not found.
14459 (x_draw_glyph_string): Use underline position and thickness from font.
14460
14461 * w32uniscribe.c (uniscribe_open): Pass font_object to
14462 w32font_open_internal.
14463
144642008-05-14 Kenichi Handa <handa@m17n.org>
14465
14466 These changes are to delete all legacy font-handling codes, and
14467 make Emacs use only font-backends.
14468
14469 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14470 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14471
14472 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14473
14474 * charset.h (Vcharset_non_preferred_head)
14475 (Vcurrent_iso639_language): Extern them.
14476
14477 * charset.c (Vcharset_non_preferred_head): New variable.
14478 (Vcurrent_iso639_language): New variable.
14479 (syms_of_charset): Declare it as a Lisp variable.
14480 (char_charset): Don't check non preferred charsets. As a last
14481 resort, return charset_unicode.
14482 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14483
14484 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14485 conditionals. Don't check enable_font_backend. Delete all codes
14486 used only when USE_FONT_BACKEND is not defined.
14487
14488 * dispextern.h (struct glyph_string): Change type of `font' to
14489 `struct font *'.
14490 (struct glyph_string): New member underline_position and
14491 underline_thickness.
14492 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14493 (struct face): Change type of `font' to `struct font *'. Remove
14494 members `font_name', `font_info_id'.
14495 (per_char_metric, encode_char): Delete externs.
14496 (calc_pixel_width_or_height): Adjust the prototype.
14497
14498 * emacs.c (enable_font_backend): Delete extern.
14499 (main): Don't set enable_font_backend. Don't check the command
14500 line argument "-disable-font-backend".
14501
14502 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14503 (enum font_property_index): New members FONT_DPI_INDEX,
14504 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14505 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14506 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14507 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14508 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14509 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14510 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14511 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14512 (struct font_spec, struct font_entity): New structs.
14513 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14514 (struct font): Many members from old "struct font_info" moved to
14515 here. Members font and entity deleted.
14516 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14517 the new font-related objects.
14518 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14519 (CHECK_FONT_GET_OBJECT): Likewise.
14520 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14521 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14522 (struct font_driver): New members case_sensitive anc check. Type
14523 of the member list and open changed.
14524 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14525 (font_symbolic_width, font_find_object, font_get_spec)
14526 (font_set_lface_from_name): Delete extern.
14527 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14528
14529 * font.c: Include <strings.h>.
14530 (enable_font_backend): Delete it.
14531 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14532 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14533 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14534 (null_string): Delete it.
14535 (null_vector): Make it static.
14536 (font_family_alist): Delete it.
14537 (Qnormal): Extern it.
14538 (QCextra, QClanguage): Delete it.
14539 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14540 (font_make_spec, font_make_entity, font_make_object)
14541 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14542 the string. Callers changed.
14543 (font_pixel_size): Adjusted for the format change of font-related
14544 objects.
14545 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14546 (font_style_to_value, font_style_symbolic): New function.
14547 (build_font_family_alist): Delete it.
14548 (font_registry_charsets): Use Fassoc_string instead of
14549 assq_no_quit.
14550 (font_prop_validate_symbol): Don't return null_string.
14551 (font_prop_validate_style): Adjusted for the change of
14552 style-related values in a font vector.
14553 (font_property_table): Delete entries for QClanguage and
14554 QCantialias, add entries for QCavgwidth.
14555 (get_font_prop_index): Delete the 2nd argument FROM.
14556 (font_prop_validate): Arguments changed.
14557 (font_put_extra): Adjusted for the change of font-related objects.
14558 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14559 (font_parse_fcname, font_unparse_fcname)
14560 (font_prepare_composition): Likewise.
14561 (font_parse_family_registry): Renamed from font_merge_old_spec.
14562 (otf_open): Delete the 1st arg entity.
14563 (font_otf_capability): Adjusted for the above change.
14564 (font_score): New arg alternate_families. Adjusted for the change
14565 of font-related objects.
14566 (font_sort_entites): New arg best_only.
14567 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14568 Delete them.
14569 (font_match_p): Check alternate families.
14570 (font_find_object): Delete it.
14571 (font_check_object): New function.
14572 (font_clear_cache): Adjusted for the change of font-related objects.
14573 (font_delete_unmatched): New arg.
14574 (font_list_entities): Call font_driver->list with a spec that
14575 doesn't specify style-related properties.
14576 (font_matching_entity): Arguments changed. Caller changed.
14577 (font_open_entity): Adjusted for the change of font-related objects.
14578 (font_close_object, font_has_char, font_encode_char)
14579 (font_get_name, font_get_spec): Likewise.
14580 (font_spec_from_name, font_clear_prop, font_update_lface):
14581 New functions.
14582 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14583 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14584 (font_at): Adjusted for the change of font-related objects.
14585 (font_range): New function.
14586 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14587 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14588 (Fcopy_font_spec, Fmerge_font_spec): New function.
14589 (Ffont_family_list): Renamed from list-families.
14590 (Finternal_set_font_style_table): Arguments changed.
14591 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14592 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14593 change of font-related objects.
14594 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14595
14596 * fontset.h (struct font_info): Delete it. Most members go to
14597 struct font.
14598 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14599 (enum FONT_SPEC_INDEX): Delete it.
14600 (font_info, list_fonts_func, load_font_func, query_font_func)
14601 (set_frame_fontset_func, find_ccl_program_func)
14602 (get_font_repertory_func, new_fontset_from_font_name): Delete
14603 externs.
14604 (fontset_from_font_name): Extern it.
14605 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14606 (FONT_INFO_FROM_FACE): Deleted.
14607 (face_for_font): Adjust prototype.
14608
14609 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14610 conditionals. Don't check enable_font_backend. Delete all codes
14611 used only when USE_FONT_BACKEND is not defined.
14612 (get_font_info_func, list_font_func, load_font_func)
14613 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14614 (get_font_repertory_func): Delete them.
14615 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14616 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14617 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14618 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14619 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14620 (fontset_compare_rfontdef): New function.
14621 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14622 rfont-defs by qsort. Adjusted for the change of font-group vector.
14623 (load_font_get_repertory): Deleted.
14624 (fontset_find_font): Use new macros to ref/set elements of
14625 font-def and rfont-def.
14626 (fontset_font): Fix the timing of remembering that no font for C.
14627 (free_face_fontset): Do nothing if the face has no fontset.
14628 (face_suitable_for_char_p): Use new macros to ref/set elements of
14629 rfont-def.
14630 (face_for_char): Likewise. Call face_for_char with font_object.
14631 (fs_load_font): Delete. Delete #pragma surrounding it.
14632 (fs_query_fontset): Use strcasecmp instead of strcmp.
14633 (generate_ascii_font_name): Adjusted for the format change of
14634 font-spec.
14635 (Fset_fontset_font): Likewise. Use new macros to set elements of
14636 font-def.
14637 (Fnew_fontset): Use font_unparse_xlfd to generate
14638 FONTSET_ASCII (fontset).
14639 (new_fontset_from_font_name): Deleted.
14640 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14641 a fontset is already created for the font. FIx updating of
14642 Vfontset_alias_alist.
14643 (fontset_ascii_font): Deleted.
14644 (Ffont_info): Adjusted for the format change of font-spec.
14645 (Finternal_char_font): Likewise.
14646 (Ffontset_info): Likewise.
14647 (syms_of_fontset): Don't check load_font_func.
14648
14649 * fns.c (internal_equal): Handle PREV_FONT.
14650
14651 * frame.h: Delete USE_FONT_BACKEND conditional.
14652
14653 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14654 conditionals. Don't check enable_font_backend. Delete all codes
14655 used only when USE_FONT_BACKEND is not defined.
14656 (x_set_font): Call x_new_font, not x_new_fontset2.
14657 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14658 already set for the frame.
14659
14660 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14661 a font-entity by font_make_entity. Use font_intern_prop instead
14662 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14663 font property. If a font is scalable, set avgwidth property to 0.
14664 Set font-entity property by font_put_extra.
14665 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14666 (ffont_driver): Adjusted for the change of struct font_driver.
14667 (ftfont_spec_pattern): New function.
14668 (ftfont_list): Return a list, not vector.
14669 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14670 (ftfont_list_family): Don't downcase names.
14671 (ftfont_free_entity): Deleted.
14672 (ftfont_open): Return a font-object. Adjusted for the change of
14673 struct font. Get underline_thickness and underline_position from
14674 font property. Don't update dpyinfo->smallest_font_height and
14675 dpyinfo->smallest_char_width.
14676 (ftfont_close): Don't free `struct font'.
14677 (ftfont_has_char): Adjusted for the format change of font-entity.
14678 (ftfont_encode_char, ftfont_text_extents): Likewise.
14679
14680 * ftxfont.c (ftxfont_list): Return a list, not vector.
14681 (ftxfont_open): Return a font-object. Adjusted for the change of
14682 struct font. Get underline_thickness and underline_position from
14683 font property. Don't update dpyinfo->smallest_font_height and
14684 dpyinfo->smallest_char_width.
14685 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14686 (ftxfont_draw): Adjusted for the change of struct font.
14687
14688 * image.c (image_ascent): Don't include "charset.h". Include
14689 "character.h" and "font.h".
14690
14691 * lisp.h (enum pvec_type): New member PREV_FONT.
14692 (Fassoc_string): EXFUN it.
14693
14694 * print.c: Include font.h.
14695 (print_object): Handle font-related objects.
14696
14697 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14698 conditionals. Don't check enable_font_backend. Delete all codes
14699 used only when USE_FONT_BACKEND is not defined.
14700 (handle_auto_composed_prop): Do nothing if it->f is not on a
14701 window system. Check how many following characters can be
14702 displayed by the same font.
14703 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14704 'struct font *'.
14705 (get_char_face_and_encoding): Assign the whole encoding task to
14706 the `encode-char' method of a font driver.
14707 (fill_composite_glyph_string): Adjusted for the change of `struct
14708 face' and `struct glyph_string'.
14709 (fill_glyph_string): Likewise.
14710 (get_per_char_metric): Arguments changed.
14711 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14712 and `struct glyph_string'.
14713 (produce_stretch_glyph, calc_line_height_property)
14714 (x_produce_glyphs): Likewise.
14715
14716 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14717 conditionals. Don't check enable_font_backend. Delete all codes
14718 used only when USE_FONT_BACKEND is not defined. Use
14719 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14720 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14721 (Qp): Extern them.
14722 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14723 Deleted.
14724 (struct font_name): Deleted.
14725 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14726 (compare_fonts_by_sort_order): New function.
14727 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14728 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14729 Deleted.
14730 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14731 compare_fonts_by_sort_order.
14732 (Fx_font_family_list): Call Ffont_family_list.
14733 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14734 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14735 (face_symbolic_slant, face_symbolic_swidth)
14736 (split_font_name_into_vector, build_font_name_from_vector)
14737 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14738 (font_rescale_ratio, split_font_name, build_font_name)
14739 (free_font_names, sort_fonts, x_face_list_fonts)
14740 (face_font_available_p, sorted_font_list, cmp_font_names)
14741 (font_list_1, concat_font_list, font_list, remove_duplicates):
14742 Deleted.
14743 (Fx_list_fonts): Use Ffont_list.
14744 (LFACE_AVGWIDTH): Deleted.
14745 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14746 by FONTP.
14747 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14748 (set_lface_from_font_name): Delete it.
14749 (set_lface_from_font): Renamed from
14750 set_lface_from_font_and_fontset. Caller changed. Don't set
14751 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14752 for face.
14753 (merge_face_vectors): Copy font-spec if necessary.
14754 Clear properties of the font-spec if necessary.
14755 (merge_face_ref): Clear properties of the font-spec if necessary.
14756 (Finternal_set_lisp_face_attribute): Likewise.
14757 (set_font_frame_param): Use font_load_for_lface to load a
14758 font-object, and call Fmodify_frame_parameters with it.
14759 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14760 font name by Ffont_xlfd_name.
14761 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14762 QCslant, and QCwidth.
14763 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14764 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14765 Compare fonts by EQ.
14766 (lookup_non_ascii_face): Deleted.
14767 (face_for_font): The 2nd argument changed.
14768 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14769 Check atomic font properties by case insensitive.
14770 (realize_non_ascii_face): Set face->overstrike correctly.
14771 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14772 (dump_realized_face): Get font name from
14773 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14774
14775 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14776 conditionals. Don't check enable_font_backend. Delete all codes
14777 used only when USE_FONT_BACKEND is not defined.
14778 (xic_create_xfontset): Original code deleted and renamed from
14779 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14780 (x_make_gc): Don't set GCFont in GCs.
14781 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14782 opened by "fixed".
14783 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14784 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14785 get_font_repertory_func.
14786
14787 * xfont.c: Include <stdlib.h> and "ccl.h".
14788 (struct xfont_info): New structure.
14789 (xfont_query_font): Deleted.
14790 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14791 moved from xterm.c.
14792 (xfont_driver): Adjusted for the change of struct font_driver.
14793 (compare_font_names): New function.
14794 (xfont_list_pattern): Sort font names case insensitively. Make
14795 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14796 (xfont_list): Return a list, not vector.
14797 (xfont_match): If the font doesn't have QCname property, generate
14798 a name from the other font properties.
14799 (xfont_open): Return a font-object. Adjusted for the change of
14800 struct font. Get underline_thickness and underline_position from
14801 font property. Don't update dpyinfo->smallest_font_height and
14802 dpyinfo->smallest_char_width.
14803 (xfont_close): Don't free struct font.
14804 (xfont_prepare_face): Adjusted for the change of struct font.
14805 (xfont_done_face): Deleted.
14806 (xfont_has_char): Adjusted for the change of struct font.
14807 (xfont_encode_char, xfont_draw): Likewise.
14808 (xfont_check): New function.
14809
14810 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14811 callback function.
14812 (xftfont_match): Adjusted for the format change of font-entity.
14813 (xftfont_open): Adjusted for the format change of font-entity and
14814 font-object. Adjusted for the change of struct font. Return a
14815 font-object. Don't update dpyinfo->smallest_font_height and
14816 dpyinfo->smallest_char_width.
14817 (xftfont_close): Block input while calling XftFontClose.
14818 (xftfont_prepare_face): Don't block input while calling
14819 xftfont_get_colors. Adjusted for the change of struct font.
14820 (xftfont_shape): Return value of error case fixed.
14821
14822 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14823
14824 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14825 conditionals.
14826 (FONT_WIDTH): Return (f)->max_width.
14827 (struct x_display_info): Delete member `font'.
14828 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14829 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14830 (struct x_output): Change type of `font' to `struct font *'.
14831
14832 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14833 conditionals. Don't check enable_font_backend. Delete all codes
14834 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14835 (x_per_char_metric, x_encode_char): Deleted.
14836 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14837 (x_compute_glyph_string_overhangs): Adjusted for the change of
14838 `struct face'.
14839 (x_draw_glyph_string_foreground)
14840 (x_draw_composite_glyph_string_foreground): Likewise.
14841 (x_draw_glyph_string): Likewise. Use font->underline_position and
14842 font->underline_thickness.
14843 (x_new_font): Renamed from x_new_fontset2.
14844 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14845 (x_check_font): Call `check' method of a font driver.
14846 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14847 (x_query_font, x_get_font_repertory): Deleted.
14848 (x_find_ccl_program): Renamed and moved to xfont.c.
14849 (x_redisplay_interface): Adjusted for the change of `struct
14850 redisplay_interface'.
14851
14852 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14853 conditionals. Don't check enable_font_backend. Delete all codes
14854 used only when USE_FONT_BACKEND is not defined. Surround non-used
14855 code by "#ifdef OLD_FONT" and "endif".
14856 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14857
14858 * w32font.h (struct w32font_info): New member.
14859 (FONT_COMPAT): New macro.
14860 (w32font_open_internal): Prototype adjusted.
14861
14862 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14863 OLD_FONT" and "endif".
14864
14865 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14866 conditionals. Don't check enable_font_backend. Delete all codes
14867 used only when USE_FONT_BACKEND is not defined.
14868 (w32font_open): Return a font-object. Make a font-object by
14869 font_make_object. Adjusted for the change of struct w32font_info.
14870 (w32font_close): Don't free struct font. Adjusted for the change
14871 of struct w32font_info.
14872 (w32font_encode_char, w32font_text_extents, w32font_draw):
14873 Adjusted for the change of struct w32font_info.
14874 (w32font_draw): Likewise.
14875 (w32font_list_internal): Return a list, not vector.
14876 (w32font_open_internal): Change the 4th arg to font-object.
14877 Adjusted for the change of struct w32font_info and font-object format.
14878 (add_font_name_to_list): Don't downcase names.
14879 (w32_enumfont_pattern_entity): Make a font-entity by
14880 font_make_entity. Adjusted for the format change of font-entity.
14881 Use FONT_SET_STYLE to set a style-related font property. If a
14882 font is scalable, set avgwidth property to 0. Set font-entity
14883 property by font_put_extra.
14884 (font_matches_spec): Adjusted for the format change of font-entity.
14885 (w32_weight_table, w32_decode_weight): New variables.
14886 (w32_encode_weight): New function.
14887 (fill_in_logfont): Adjusted for the format change of font-spec.
14888 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14889 weight value.
14890 (w32font_driver): Adjusted for the change of struct font_driver.
14891
14892 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14893 conditionals. Don't check enable_font_backend. Surround non-used
14894 code by "#ifdef OLD_FONT" and "endif".
14895 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14896 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14897
14898 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14899 conditionals. Don't check enable_font_backend. Delete all codes
14900 used only when USE_FONT_BACKEND is not defined. Surround non-used
14901 code by "#ifdef OLD_FONT" and "endif".
14902
14903 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14904 (uniscribe_open): Return value changed to font-object.
14905 Adjusted for the format change of font-object.
14906 (uniscribe_otf_capability): Adjusted for the change of struct font.
14907 (add_opentype_font_name_to_list): Don't downcase names.
14908 (uniscribe_font_driver): Adjusted for the change of struct
14909 font_driver.
14910
149112008-05-13 Chong Yidong <cyd@stupidchicken.com>
14912
14913 * dispnew.c (update_frame_1): Check if tty output is still valid
14914 before flushing it.
14915
149162008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14917
14918 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14919 to Gtk+ menus.
14920
149212008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14922
14923 * dired.c (file_name_completion): Tweak the code so as to always do it
14924 in a single pass. Tighten the scope of some variables.
14925
14926 * dired.c (Qdefault_directory): New var.
14927 (file_name_completion): Use it instead of Fexpand_file_name.
14928 (syms_of_dired): Initialize it.
14929
149302008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14931
14932 * fileio.c (double_dollars): Remove dead code.
14933
149342008-05-10 Eli Zaretskii <eliz@gnu.org>
14935
14936 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14937 Mention w32-get-true-file-attributes in doc string.
14938
14939 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14940
149412008-05-09 Glenn Morris <rgm@gnu.org>
14942
14943 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14944 2008-04-23.
14945
149462008-05-09 Eli Zaretskii <eliz@gnu.org>
14947
14948 Support for reporting owner and group of each file on MS-Windows:
14949 * dired.c (stat_uname, stat_gname): New functions, with special
14950 implementation for w32.
14951 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14952
14953 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14954 (dflt_group_name): New static variable.
14955 (dflt_group): Rename from the_group.
14956 (init_user_info): Init dflt_group fields. Get user's group name
14957 from LookupAccountSid.
14958 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14959 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14960 New initialization states.
14961 (globals_of_w32): Initialize them to zero. Initialize the default
14962 group name to "None".
14963 (GetFileSecurity_Name): New global var, the name of the function
14964 to call for GetFileSecurity.
14965 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14966 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14967 (get_file_security, get_security_descriptor_owner)
14968 (get_security_descriptor_group, is_valid_sid)
14969 (get_file_security_desc, get_rid, get_name_and_id)
14970 (get_file_owner_and_group): New functions.
14971 (stat): Use get_file_security_desc and get_file_owner_and_group to
14972 report the owner and primary group of each file. Don't ignore the
14973 high 32 bits of file's size, now that st_size is 64-bit wide.
14974 Fix test when to get true file attributes.
14975 (init_user_info): Use get_rid instead of equivalent inline code.
14976 (fstat): Don't ignore the high 32 bits of file's size.
14977
149782008-05-09 Chong Yidong <cyd@stupidchicken.com>
14979
14980 * image.c (png_load): Use correct bit-depth for setting background
14981 color.
14982
149832008-05-08 Eli Zaretskii <eliz@gnu.org>
14984
14985 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14986 epa-hook.elc.
14987
149882008-05-08 Juanma Barranquero <lekktu@gmail.com>
14989
14990 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14991
149922008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14993
14994 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14995 because the original parameters are in pure storage now.
14996 (mac_window): Remove unused params. Update callers.
14997
149982008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14999
15000 * lread.c (substitute_object_recurse): Use lower-level primitives.
15001 Don't signal errors when traversing sub-char-tables.
15002 Don't loop over all the possible characters when traversing char-tables.
15003
15004 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15005 just like we do in print.c.
15006
150072008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15008
15009 * minibuf.c (Ftry_completion): Remove code left over from when we used
15010 scmp instead of Fcompare_strings.
15011
150122008-05-04 Juanma Barranquero <lekktu@gmail.com>
15013
15014 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15015
150162008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15017
15018 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15019 Create bitmap context in native byte order.
15020
15021 * macterm.c (XDrawLine)
15022 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15023 context in native byte order.
15024
150252008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15026
15027 * config.in: Regenerate.
15028
15029 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15030 New definitions for Image I/O support.
15031 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15032 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15033 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15034 (mac_data_provider_release_data, image_load_image_io)
15035 [USE_MAC_IMAGE_IO]: New functions.
15036 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15037 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15038 (init_image_func_pointer) [MAC_OSX]: Remove function.
15039 (image_load_quartz2d) [MAC_OSX]: Check availability of
15040 CGImageCreateWithPNGDataProvider at compile time.
15041 Use lowercase `false' for boolean constant.
15042 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15043 Use image_load_image_io.
15044 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15045 Don't check MyCGImageCreateWithPNGDataProvider.
15046 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15047 Don't call init_image_func_pointer.
15048
15049 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15050
15051 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15052 Make variable non-static.
15053 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15054 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15055
15056 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15057 (RED_FROM_ULONG): Mask off higher bits.
15058 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15059
15060 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15061 Include AvailabilityMacros.h.
15062 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15063 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15064
150652008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15066
15067 * chartab.c (Fset_char_table_range): If range is t, really set all
15068 chars to that value.
15069
150702008-05-03 Eli Zaretskii <eliz@gnu.org>
15071
15072 * dired.c (Ffile_attributes): Don't allow the device number become
15073 negative.
15074
150752008-05-02 Daiki Ueno <ueno@unixuser.org>
15076
15077 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15078
150792008-05-02 Juri Linkov <juri@jurta.org>
15080
15081 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15082 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15083 DEFAULT argument as a list of default values in docstrings.
15084
150852008-05-01 Chong Yidong <cyd@stupidchicken.com>
15086
15087 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15088
150892008-05-01 Martin Rudalics <rudalics@gmx.at>
15090
15091 * dispnew.c (change_frame_size_1): Preserve small windows when
15092 shrinking frames by calling set_window_height|width with third
15093 arg 2.
15094
15095 * window.h (struct window): Replace field too_small_ok by field
15096 resize_proportionally.
15097
15098 * window.c (make_window): Initialize resize_proportionally.
15099 (enlarge_window): Temporarily set resize_proportionally to make
15100 sure that shrink_windows does scale the window proportionally.
15101 (shrink_windows): When window has resize_proportionally set try
15102 to shrink it proportionally by stealing from other windows.
15103 (struct saved_window, Fset_window_configuration)
15104 (compare_window_configurations): Handle resize_proportionally.
15105 (WINDOW_TOTAL_SIZE): New macro.
15106 (window_min_size, shrink_windows, size_window): Use it.
15107 (check_min_window_sizes): Remove. Invalid values of
15108 window-min-height|width are handled by window_min_size_2 now.
15109 (size_window, Fsplit_window, enlarge_window)
15110 (adjust_window_trailing_edge, grow_mini_window): Don't call
15111 check_min_window_sizes.
15112 (window_min_size_2, window_min_size_1, window_min_size):
15113 New argument safe_p for retrieving "safe" minimum sizes.
15114 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15115 (adjust_window_trailing_edge, grow_mini_window):
15116 Adjust arguments of window_min_size... functions.
15117 (shrink_windows): Argument min_size removed. New argument
15118 safe_p allows shrinking windows to their safe minimum sizes.
15119 Calculate minimum size and decide whether a window shall be
15120 deleted for each window individually.
15121 (size_window): When nodelete_p equals 2, tell shrink_windows to
15122 delete windows only if their new minimum size is no more safe.
15123 (shrink_window_lowest_first): Call window_min_size_1 to make
15124 sure to preserve modeline of bottom-most window when resizing
15125 the minibuffer.
15126 (Fset_window_configuration, Fcurrent_window_configuration)
15127 (compare_window_configurations): Do not handle
15128 window-min-height|width any more.
15129 (syms_of_window): Clarify window-min-height|width doc-strings.
15130
151312008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15132
15133 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15134 some more. Copy some of the code from Ftry_completions.
15135 Remove special case code that dates back to initial revision when the
15136 slash was only added when necessary and that can't trigger nowadays.
15137
151382008-04-27 Kenichi Handa <handa@m17n.org>
15139
15140 * font.c (font_prop_validate): Signal `error' instead of `font'.
15141
151422008-04-29 Jason Rumney <jasonr@gnu.org>
15143
15144 * w32fns.c (Fw32_battery_status): New defun.
15145 (syms_of_w32fns): Defsubr it.
15146
151472008-04-28 Andreas Schwab <schwab@suse.de>
15148
15149 * dired.c (file_name_completion): Fix another mixing of encoded
15150 and decoded names.
15151
151522008-04-28 Juanma Barranquero <lekktu@gmail.com>
15153
15154 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15155
151562008-04-27 Juanma Barranquero <lekktu@gmail.com>
15157
15158 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15159
151602008-04-27 Andreas Schwab <schwab@suse.de>
15161
15162 * dired.c (file_name_completion): Fix inappropriate mixing of
15163 encoded and decoded names.
15164
15165 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15166
15167 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15168
151692008-04-26 Eli Zaretskii <eliz@gnu.org>
15170
15171 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15172 2008-03-31, it's not needed anymore with `struct stat' definition
15173 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15174 for the same reasons.
15175
151762008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15177
15178 * m/sparc.h: Additional redefinitions for GNU/Linux.
15179
151802008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15181
15182 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15183 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15184 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15185 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15186 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15187 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15188 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15189 Likewise.
15190
15191 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15192 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15193 (mac_ax_number_of_characters): Add externs.
15194 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15195 [USE_MAC_TSM]: Likewise.
15196 (mac_handle_text_input_event) [MAC_OSX]:
15197 Handle kEventTextInputOffsetToPos for no active input area case.
15198 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15199 (mac_handle_document_access_event)
15200 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15201 (install_application_handler) [MAC_OSX]: Register handlers for
15202 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15203 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15204 Register mac_handle_document_access_event.
15205
15206 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15207 Make functions non-static.
15208
152092008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15210
15211 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15212 (read_file_name_completion_ignore_case, insert_default_directory)
15213 (Qdefault_directory): Move to minibuffer.el.
15214 (Fread_file_name): Call the new `read-file-name' instead.
15215
152162008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15217
15218 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15219 Make function non-static.
15220 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15221 Remove function.
15222 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15223 Move to mactoolbox.c.
15224 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15225
15226 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15227 (mac_rect_make): New macro.
15228
15229 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15230 instead of float.
15231 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15232 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15233 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15234 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15235 CGRectMake.
15236 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15237 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15238 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15239 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15240 instead of WindowRef in argument type.
15241 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15242 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15243 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15244 instead of DISPLAY. All uses changed.
15245 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15246 (x_calc_absolute_position): Simplify so as not to use
15247 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15248
15249 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15250 instead of WindowRef in argument type.
15251 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15252 [TARGET_API_MAC_CARBON]: Remove externs.
15253 (create_apple_event, mac_event_parameters_to_lisp)
15254 [TARGET_API_MAC_CARBON]: Add externs.
15255
15256 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15257 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15258 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15259 is clicked.
15260 (x_activate_menubar): Remove extern for saved_menu_event_location.
15261 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15262 Move from mac.c.
15263
152642008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15265
15266 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15267 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15268
152692008-04-23 Jason Rumney <jasonr@gnu.org>
15270
15271 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15272 attributes only for local files.
15273
15274 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15275 default to Qlocal.
15276
152772008-04-22 Juri Linkov <juri@jurta.org>
15278
15279 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15280 read-buffer-to-switch instead of using the letter "B".
15281
152822008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15283
15284 * fileio.c (Qdefault_directory): New variable.
15285 (Fread_file_name): Use it to pass `dir' to the completion functions.
15286
152872008-04-20 Chong Yidong <cyd@stupidchicken.com>
15288
15289 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15290
152912008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15292
15293 * keyboard.c (Vpre_help_message): Remove.
15294 (show_help_echo): Remove default C code.
15295
15296 * dired.c (directory_files_internal, file_name_completion):
15297 Only call ENCODE_FILE if the string is indeed decoded.
15298
152992008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15300
15301 * Makefile.in (TOOLKIT_DEFINES): Remove.
15302 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15303
153042008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15305
15306 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15307 (mactoolbox.o): New target.
15308
15309 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15310 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15311
15312 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15313 Use mac_set_frame_window_background instead of XSetWindowBackground.
15314 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15315 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15316 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15317 instead of SetWindowTitleWithCFString.
15318 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15319 Move function to mactoolbox.c.
15320 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15321 Use mac_set_window_modified instead of SetWindowModified.
15322 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15323 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15324 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15325 FrontNonFloatingWindow. Use mac_activate_window instead of
15326 ActivateWindow. Use mac_active_non_floating_window instead of
15327 ActiveNonFloatingWindow.
15328 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15329 Use mac_show_hourglass and mac_hide_hourglass.
15330 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15331 instead of GetGlobalMouse.
15332 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15333 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15334 Use mac_bring_window_to_front instead of BringToFront.
15335 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15336 mactoolbox.c.
15337 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15338 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15339 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15340 mactoolbox.c.
15341
15342 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15343 (XtPointer): Move typedef from macmenu.c.
15344 (enum button_type): Move enum from macmenu.c.
15345 (widget_value): Move typedef from macmenu.c.
15346 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15347 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15348 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15349 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15350 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15351 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15352 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15353 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15354 (Selection): Move typedef from macselect.c.
15355 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15356 macterm.c.
15357 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15358 (mac_is_window_collapsed, mac_bring_window_to_front)
15359 (mac_send_window_behind, mac_hide_window, mac_show_window)
15360 (mac_collapse_window, mac_front_non_floating_window)
15361 (mac_active_non_floating_window, mac_activate_window)
15362 (mac_move_window_structure, mac_move_window, mac_size_window)
15363 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15364
15365 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15366 (enum mac_menu_kind): Move enum to mactoolbox.c.
15367 (min_menu_id): Move variable to mactoolbox.c.
15368 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15369 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15370 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15371 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15372 [TARGET_API_MAC_CARBON]: Likewise.
15373 (XtPointer): Move typedef to macgui.h.
15374 (enum button_type): Move enum to macgui.h.
15375 (widget_value): Move typedef to macgui.h.
15376 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15377 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15378 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15379 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15380 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15381 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15382 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15383 (popup_activated_flag): Make variable non-static.
15384 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15385 (add_menu_item, fill_menu, dispose_menus):
15386 Move functions to mactoolbox.c.
15387 (restore_show_help_function, menu_target_item_handler)
15388 (install_menu_target_item_handler, mac_handle_dialog_event)
15389 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15390 [TARGET_API_MAC_CARBON]: Likewise.
15391 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15392 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15393 (find_and_call_menu_selection, name_is_separator): Make function
15394 non-static.
15395 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15396 to mactoolbox.c.
15397 (set_frame_menubar): Don't call install_menu_quit_handler.
15398 (menu_item_selection): New variable.
15399 (mac_menu_show): Use create_and_show_popup_menu.
15400 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15401 selection but set variable menu_item_selection. All uses changed.
15402 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15403 Call install_menu_quit_handler. Move to mactoolbox.c.
15404
15405 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15406 (Selection): Move typedef to macgui.h.
15407 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15408 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15409 Make variables non-static.
15410 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15411 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15412 Make functions non-static.
15413 (Vmac_service_selection) [MAC_OSX]: Likewise.
15414 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15415 (mac_valid_selection_target_p, mac_clear_selection)
15416 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15417 (mac_put_selection_value, mac_selection_has_target_p)
15418 (mac_get_selection_value, mac_get_selection_target_list)
15419 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15420 Move functions to mactoolbox.c.
15421 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15422 Likewise.
15423 (copy_scrap_flavor_data, mac_handle_service_event)
15424 (install_service_handler) [MAC_OSX]: Likewise.
15425 (syms_of_macselect) <Vmac_dnd_known_types>:
15426 Use mac_dnd_default_known_types.
15427
15428 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15429 Move to mactoolbox.c.
15430 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15431 (Fx_selection_owner_p): Add EXFUN.
15432 (install_window_handler, remove_window_handler, XSetWindowBackground):
15433 Remove externs.
15434 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15435 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15436 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15437 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15438 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15439 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15440 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15441 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15442 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15443 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15444 (mac_valid_selection_target_p, mac_clear_selection)
15445 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15446 (mac_put_selection_value, mac_selection_has_target_p)
15447 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15448 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15449 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15450 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15451 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15452 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15453 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15454 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15455 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15456
15457 * mactoolbox.c: New file.
15458
154592008-04-18 Jason Rumney <jasonr@gnu.org>
15460
15461 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15462
154632008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15464
15465 * character.c (Fmultibyte_char_to_unibyte):
15466 Return latin1 chars unchanged.
15467
15468 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15469 relocated if it points to `name'.
15470
154712008-04-17 Kenichi Handa <handa@m17n.org>
15472
15473 * data.c (Faset): Allow setting a multibyte character in an
15474 ASCII-only unibyte string.
15475
15476 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15477
154782008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15479
15480 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15481 done in config.h.
15482
154832008-04-16 Juanma Barranquero <lekktu@gmail.com>
15484
15485 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15486 (Fchar_direction): Add usage in the docstring.
15487
154882008-04-15 Chong Yidong <cyd@stupidchicken.com>
15489
15490 * keyboard.c (read_key_sequence): Remove always-true checks.
15491
154922008-04-14 Jason Rumney <jasonr@gnu.org>
15493
15494 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15495 compatibility struct, for better underline positioning.
15496
154972008-04-13 David Hansen <david.hansen@gmx.net>
15498
15499 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15500 string.
15501
155022008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15503
15504 * m/hp800.h (XUINT, XSET): Remove.
15505
155062008-04-12 Juanma Barranquero <lekktu@gmail.com>
15507
15508 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15509 previous change.
15510
155112008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15512
15513 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15514 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15515
155162008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15517
15518 * keymap.h (map_keymap_canonical): Declare.
15519 * xmenu.c (single_keymap_panes): Use it.
15520
155212008-04-11 Glenn Morris <rgm@gnu.org>
15522
15523 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15524 set the target's value to that of the alias.
15525
155262008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15527
15528 * term.c (set_tty_color_mode): Left over typo.
15529
155302008-04-10 Michael Albinus <michael.albinus@gmx.de>
15531
15532 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15533 only after check for file name handler functions. Signal, when
15534 native functionality is not supported.
15535 (syms_of_fileio): Declare it unconditionally.
15536
155372008-04-10 Jason Rumney <jasonr@gnu.org>
15538
15539 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15540 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15541
15542 * w32.c (logon_network_drive): Also logon to remote drives that
15543 are mapped to drive letters.
15544
155452008-04-10 Glenn Morris <rgm@gnu.org>
15546
15547 * xdisp.c (truncate-partial-width-windows): Doc fix.
15548
155492008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15550
15551 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15552 Move functions to minibuffer.el.
15553 (syms_of_fileio): Don't declare them.
15554
155552008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15556
15557 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15558 (syms_of_minibuf): Remove its initialization.
15559
15560 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15561
155622008-04-09 Juanma Barranquero <lekktu@gmail.com>
15563
15564 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15565
155662008-04-09 Jason Rumney <jasonr@gnu.org>
15567
15568 * makefile.w32-in (distclean): Delete makefile too.
15569 (maintainer-clean): New target.
15570
15571 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15572
15573 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15574 for new font backend and composite cases.
15575
155762008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15577
15578 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15579 Most of the code moved to run_timers.
15580 (do_pending_atimers): Call run_timers.
15581 (run_timers): New function.
15582
15583 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15584 run atimers.
15585
15586 * process.c (wait_reading_process_output): The same as above.
15587
155882008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15589
15590 * minibuf.c (last_exact_completion): Remove variable.
15591 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15592 (complete_and_exit_1, complete_and_exit_2)
15593 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15594 (Fdisplay_completion_list, display_completion_list_1)
15595 (Fminibuffer_completion_help, Fself_insert_and_exit)
15596 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15597 minibuffer.el.
15598 (syms_of_minibuf): Remove corresponding initializations.
15599
15600 * keyboard.c (Qdeactivate_mark): New var.
15601 (command_loop_1): Use it to call `deactivate-mark'.
15602 (syms_of_keyboard): Initialize it.
15603
15604 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15605 to another frame.
15606 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15607 Don't call set_tty_color_mode.
15608 (store_frame_param): Reset previous_frame rather than call
15609 set_tty_color_mode.
15610 * term.c (set_tty_color_mode): Rewrite.
15611 * dispextern.h (set_tty_color_mode): New type.
15612 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15613
156142008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15615
15616 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15617 for generic chars, which do not exist any more in emacs-unicode.
15618
156192008-04-08 Michael Albinus <michael.albinus@gmx.de>
15620
15621 * coding.c (detect_coding_emacs_mule)
15622 (Ffind_operation_coding_system): Fix typo.
15623
156242008-04-08 Jason Rumney <jasonr@gnu.org>
15625
15626 * w32uniscribe.c (SNAME): Extract only symbol name.
15627
15628 * w32font.h (struct w32_metric_cache): New struct.
15629 (w32font_info): Use it.
15630 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15631 (CACHE_BLOCKSIZE): New constants.
15632
15633 * w32font.c (Qja, Qko, Qzh): New symbols.
15634 (syms_of_w32font): Initialise them.
15635 (font_matches_spec): Use them to filter by language.
15636 (recompute_cached_metrics): Remove function.
15637 (compute_metrics, clear_cached_metrics): New functions.
15638 (w32font_encode_char): Use them to manage metric cache.
15639 (w32font_text_extents): Cache metrics for all glyphs on demand.
15640 Delay converting glyph indices to WORD until needed.
15641 (w32font_open_internal): Initialize metric cache to empty.
15642 (registry_to_w32_charset): Charset should always be a symbol.
15643 (fill_in_logfont, list_all_matching_fonts): Family should
15644 always be a symbol.
15645
156462008-04-06 Jason Rumney <jasonr@gnu.org>
15647
15648 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15649 Give up if glyph indices not supported. Use uniscribe obtained
15650 ABC widths for individual metrics. Map glyph clusters back to
15651 characters using fClusterStart flag. Return number of glyphs
15652 produced, not chars processed.
15653 (uniscribe_shape): Map char at FROM to current glyph.
15654
156552008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15656
15657 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15658 Use SetMenuItemHierarchicalMenu.
15659
156602008-04-05 Jason Rumney <jasonr@gnu.org>
15661
15662 * image.c (pbm_load): Allow color values up to 65535.
15663 Throw an error if max_color_idx is outside the supported range.
15664 Report an error when image size is invalid.
15665 Read two bytes at a time when raw images have max_color_idx above 255.
15666
aac0c6e3
MR
156672008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15668
15669 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15670 append "CCL: Quitted" when the CCL program is quitted.
15671 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15672
15673 * ccl.h (struct ccl_program): New member quit_silently.
15674
156752008-04-05 Chong Yidong <cyd@stupidchicken.com>
15676
15677 * search.c (compile_pattern_1): Treat non-nil and non-string of
15678 search-spaces-regexp as nil.
15679
15680 * minibuf.c (Fassoc_string): Tweak docstring.
15681
156822008-04-05 Eli Zaretskii <eliz@gnu.org>
15683
15684 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15685 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15686 2008-03-14 to force inode be positive.
15687
15688 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15689 _S_* ones, since we now use our own sys/stat.h.
15690 (stat, fstat): Don't mangle the inode number.
15691 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15692
156932008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15694
15695 * frame.h (struct frame): Give one more bit to `visible' since we use
15696 values larger than 1 to indicate obscured frames on ttys.
15697
15698 * keymap.c (Qkeymap_canonicalize): New var.
15699 (Fmap_keymap_internal): New fun.
15700 (describe_map): Use keymap-canonicalize.
15701
15702 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15703 (Fundo_boundary): Set them.
15704 (syms_of_undo): Initialize them.
15705 (record_point): Use them instead of last_point_position*.
15706 (last_undo_buffer): Change type.
15707
157082008-04-04 Jason Rumney <jasonr@gnu.org>
15709
15710 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15711 (recompute_cached_metrics): Don't set ascent and descent per char.
15712
15713 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15714 (uniscribe_check_otf): Add GC protection before consing.
15715 Rearrange loop for counting features.
15716
157172008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15718
15719 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15720 buffer with byte-size of source buffer.
15721
157222008-04-03 Chong Yidong <cyd@stupidchicken.com>
15723
15724 * callint.c (Fcall_interactively): Handle temporary region even
15725 when shift-select-mode is off.
15726
157272008-04-03 Jason Rumney <jasonr@gnu.org>
15728
15729 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15730
157312008-04-03 Kenichi Handa <handa@m17n.org>
15732
15733 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15734 (CATEGORY_MASK_UTF_16): Likewise.
15735 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15736 binary file.
15737 (detect_coding): Add null-byte detection for a binary file.
15738 (detect_coding_system): Likewise.
15739
157402008-04-03 Jason Rumney <jasonr@gnu.org>
15741
15742 * w32uniscribe.c: New file.
15743
15744 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15745
15746 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15747
15748 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15749 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15750 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15751 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15752 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15753 (Qphonetic): New symbols.
15754 (syms_of_w32font): Initialize them.
15755 (font_supported_scripts): Use them.
15756 (w32font_list_family): List all charsets.
15757 (w32font_text_extents, recompute_cached_metrics): Fix metric
15758 calculations.
15759 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15760 Give opentype fonts their own format.
15761 (font_matches_spec): New arguments backend and logfont.
15762 Handle :otf spec for uniscribe backend.
15763 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15764 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15765
15766 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15767 font backend.
15768 (globals_of_w32fns): Initialize uniscribe font backend.
15769
15770 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15771 dependencies.
15772 (w32uniscribe.$(O)): New file to build.
15773 (FONT_OBJ): Include w32uniscribe.$(O).
15774 (LIBS): Add uniscribe libraries.
15775
15776 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15777
157782008-04-02 Chong Yidong <cyd@stupidchicken.com>
15779
15780 * callint.c (Vshift_select_mode): New var.
15781 (Finteractive): Document new ^ spec.
15782 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15783 is present.
15784
15785 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15786 (command_loop_1): Avoid running the direct display versions of
15787 forward-char and backward-char if shift-selection may occur.
15788 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15789 shift-translation takes place.
15790
15791 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15792 avoid clobbering by define-minor-mode.
15793
15794 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15795 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15796
15797 * syntax.c (Fforward_word): Add ^ interactive spec.
15798
15799 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15800 (Fscroll_right): Add ^ interactive spec.
15801
158022008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15803
15804 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15805
15806 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15807
15808 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15809
158102008-03-31 Juri Linkov <juri@jurta.org>
15811
15812 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15813
158142008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15815
15816 * gtkutil.c (xg_set_geometry): Fix indentation.
15817 (xg_resize_outer_widget): Remove.
15818 (x_wm_size_hint_off): Fix indentation.
15819 (xg_frame_set_char_size): Call flush_and_sync after
15820 gtk_window_resize.
15821 (x_wm_set_size_hint): Pass NULL as geometry window to
15822 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15823 Add menu bar and tool bar height to base height.
15824 (xg_update_frame_menubar, free_frame_menubar)
15825 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15826 (update_frame_tool_bar, free_frame_tool_bar):
15827 Change xg_resize_outer_widget to xg_frame_set_char_size.
15828
158292008-03-30 Michael Albinus <michael.albinus@gmx.de>
15830
15831 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15832 (Fdbus_call_method): New parameter TIMEOUT.
15833 (dbus-send-signal): Optimize UNGCPRO call.
15834
158352008-03-29 Juri Linkov <juri@jurta.org>
15836
15837 * window.c (Fdisplay_buffer): Move call to
15838 Vsplit_window_preferred_function out of conditions that check
15839 if window is eligible for vertical splitting.
15840 When Vsplit_window_preferred_function is non-nil, call it and use
15841 its non-nil return value as window. Otherwise, continue doing
15842 vertical splitting using Fsplit_window with arg horflag=nil.
15843 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15844 default value from `split-window' to nil.
15845
158462008-03-29 Juri Linkov <juri@jurta.org>
15847
15848 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15849 for interactive code letters 'b' and 'B'.
15850
158512008-03-29 Eli Zaretskii <eliz@gnu.org>
15852
15853 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15854 multibyte string.
15855
158562008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15857
15858 * keyboard.c (pending_funcalls): New var.
15859 (timer_check): Run it.
15860 (syms_of_keyboard): Initialize it.
15861 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15862 (Vdelete_terminal_functions): New vars.
15863 (syms_of_terminal): Initialize them.
15864 (Fdelete_terminal): Run delete-terminal-functions.
15865 * xdisp.c (safe_eval): Rewrite.
15866 (safe_call2): New fun.
15867 * frame.c (Qdelete_frame_functions): New var.
15868 (syms_of_frame): Initialize it.
15869 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15870 * lisp.h (safe_call2, pending_funcalls): Declare.
15871
158722008-03-28 Andreas Schwab <schwab@suse.de>
15873
15874 * indent.c (Fmove_to_column): Move declaration before statements.
15875
158762008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15877
15878 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15879 (struct frame): Use bit fields for boolean vars.
15880
15881 * process.c (server_accept_connection): Simplify naming.
15882 (emacs_get_tty_pgrp): Use SDATA.
15883
15884 * coding.c (decode_coding_object): Fix last change.
15885
158862008-03-27 Jason Rumney <jasonr@gnu.org>
15887
15888 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15889
158902008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15891
15892 * charset.c (Fdefine_charset_internal): Change the way of
15893 registering charsets in Vcharset_order_list.
15894 (syms_of_charset): Make the charset `eight-bit' supplementary.
15895
158962008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15897
15898 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15899 operations, to avoid having the difference between pointers
15900 overflow.
15901
159022008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15903
15904 * indent.c (check_display_width): New fun.
15905 (scan_for_column): Use it.
15906
15907 * data.c (syms_of_data): Mark most-positive-fixnum and
15908 most-negative-fixnum as constants.
15909
15910 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15911
15912 * indent.c (scan_for_column): Extract from current_column_1.
15913 Merge with the same code from Fmove_to_column.
15914 (current_column_1, Fmove_to_column): Use it.
15915
159162008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15917
15918 * keymap.c (map_keymap_internal): New fun.
15919 (map_keymap): Use it.
15920 (Fmap_keymap_internal): New fun.
15921 (Fmap_keymap): Remove left-out test from before make_save_value.
15922
15923 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15924
15925 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15926 Use XCAR/XCDR.
15927
15928 * process.h (struct Lisp_Process): Remove filter_multibyte.
15929 * process.c (QCfilter_multibyte): Remove.
15930 (setup_process_coding_systems): Don't use filter_multibyte.
15931 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15932 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15933 (Fset_process_filter_multibyte): Change the coding-system to
15934 approximate the previous behavior.
15935 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15936 coding-system.
15937
15938 * coding.c (decode_coding_object): When not decoding into a buffer,
15939 obey the coding system's preference of (uni|multi)byte.
15940
159412008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15942
15943 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15944 every char is changed and has a different byte-length.
15945 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15946 Fix int -> EMACS_INT.
15947
159482008-03-23 David Hansen <david.hansen@gmx.net>
15949
15950 * dbusbind.c (xd_read_message): Remove extra copying of message
15951 strings. Check for NULL `interface' or `member'.
15952
159532008-03-22 Eli Zaretskii <eliz@gnu.org>
15954
15955 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15956 cFileName a file name that includes `?' characters, use the 8+3
15957 alias in cAlternateFileName instead.
15958
159592008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15960
15961 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15962
159632008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15964
15965 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15966 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15967 work on current_buffer only instead (that was already the case
15968 for some of the code anyway).
15969 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15970 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15971 (SET_PT, SET_PT_BOTH): Adjust.
15972 * intervals.h (set_point, temp_set_point, set_point_both)
15973 (temp_set_point_both): Remove redundant declarations.
15974
159752008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15976
15977 * fileio.c (Finsert_file_contents):
15978 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15979 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15980 when buffer != current_buffer anyway.
15981
159822008-03-20 Andreas Schwab <schwab@suse.de>
15983
15984 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15985 as default.
15986
159872008-03-19 Jason Rumney <jasonr@gnu.org>
15988
15989 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15990 (syms_of_w32fns): Initialize them.
15991 (HOURGLASS_ID): New constant.
15992 (x_window_to_frame): Don't check hourglass_window.
15993 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15994 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15995 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15996 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15997 Only change the cursor if hourglass is not active.
15998 (Fx_create_frame): Initialize frame's current_cursor.
15999 (hourglass_atimer): Remove.
16000 (hourglass_started): New function.
16001 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16002 (show_hourglass): Adapt to w32, changing argument to frame.
16003
16004 * w32term.h (struct w32_output): Remove hourglass_window.
16005 Add current_cursor.
16006
16007 * eval.c (call_debugger, Fsignal):
16008 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16009 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16010 (Fexecute_extended_command, cancel_hourglass_unwind):
16011 * minibuf.c (read_minibuf):
16012 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16013
160142008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16015
16016 * window.c (run_funs): New fun.
16017 (run_window_configuration_change_hook): Use it to run the buffer-local
16018 and the global part of the hook.
16019
16020 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16021 (unwind_format_mode_line): Restore selected window.
16022 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16023
160242008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16025
16026 * editfns.c (Fchar_equal): Check they are valid characters.
16027
16028 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16029
160302008-03-17 Andreas Schwab <schwab@suse.de>
16031
16032 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16033 against a charset.
16034
16035 * lisp.h (Fbuffer_list): Declare.
16036
160372008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16038
aac0c6e3
MR
16039 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16040 handlebox_widget is != 0.
16041
160422008-03-16 Juri Linkov <juri@jurta.org>
16043
16044 * callint.c (Fcall_interactively): For interactive code letters
16045 'b' and 'B' put the buffer list into the list of default "future"
16046 values of the minibuffer.
16047
160482008-03-16 Andreas Schwab <schwab@suse.de>
16049
16050 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16051 modifiers.
16052
16053 * regex.c (re_match_2_internal): Correct matching of a charset
16054 against latin-1 characters.
16055
160562008-03-16 Kenichi Handa <handa@m17n.org>
16057
16058 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16059 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16060 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16061 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16062 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16063 CHAR_STRING_ADVANCE.
16064 (produce_chars): Fix for the case that the source and the
16065 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16066 instead of CHAR_STRING_ADVANCE.
16067 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16068 STRING_CHAR_ADVANCE.
16069
160702008-03-15 Andreas Schwab <schwab@suse.de>
16071
16072 * regex.c (re_match_2_internal): Correct matching of eight bit
16073 characters in unibyte strings.
16074
160752008-03-15 Martin Rudalics <rudalics@gmx.at>
16076
16077 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16078 at end of range when it coincides with the end of the buffer.
16079
160802008-03-14 Eli Zaretskii <eliz@gnu.org>
16081
16082 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16083
16084 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16085
160862008-03-14 Jason Rumney <jasonr@gnu.org>
16087
16088 * editfns.c (initial_tz): New variable.
16089 (syms_of_editfns): Initialize it.
16090 (Fset_time_zone_rule): Set it when first called.
16091 Use it when TZSTRING is nil.
16092
16093 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16094 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16095 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16096 (globals_of_w32fns): Initialize them.
16097 (compute_tip_xy): Use them to position tooltips.
16098
160992008-03-14 Glenn Morris <rgm@gnu.org>
16100
16101 * emacs.c (main): Revert previous change.
16102 (standard_args): Revert -internal-script back to -scriptload,
16103 and remove the long-option form.
16104
161052008-03-13 Glenn Morris <rgm@gnu.org>
16106
16107 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16108 Remove option -enable-font-backend.
16109
161102008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16111
16112 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16113
161142008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16115
16116 * xterm.c (x_connection_closed): For GTK: If this is the last
16117 terminal just exit without closing the display.
16118
161192008-03-11 Jason Rumney <jasonr@gnu.org>
16120
16121 * w32font.c (w32font_full_name): Use floor to round.
16122
f0131492 161232008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16124
16125 * sound.c (alsa_configure): Declare vol at beginning of block.
16126
16127 * fontset.c (Ffontset_info): Remove extra semicolon.
16128
161292008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16130
16131 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16132 size of resulting string.
16133
161342008-03-10 Jason Rumney <jasonr@gnu.org>
16135
16136 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16137
161382008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16139
16140 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16141 Don't pretend as if characters with display property haven't been
16142 consumed for string-replacing-string case.
16143
161442008-03-08 Kim F. Storm <storm@cua.dk>
16145
16146 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16147 (get_next_display_element, next_element_from_string)
16148 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16149
161502008-03-08 Andreas Schwab <schwab@suse.de>
16151
16152 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16153
161542008-03-06 Jason Rumney <jasonr@gnu.org>
16155
16156 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16157 when charset not specified. Only translate ANSI to unicode when
16158 font_type is truetype.
16159 (w32font_coverage_ok): New function.
16160 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16161
161622008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16163
16164 * lread.c (Fread_char): Resolve modifiers.
16165 (Fread_char_exclusive): Likewise.
16166
16167 * character.c (char_resolve_modifier_mask): New function.
16168 (char_string): Use char_resolve_modifier_mask.
16169 (Fchar_resolve_modifiers): New function.
16170 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16171 function.
16172
161732008-03-04 Jason Rumney <jasonr@gnu.org>
16174
16175 * makefile.w32-in: Always include w32font.c in the build.
16176 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16177
161782008-03-04 Andreas Schwab <schwab@suse.de>
16179
16180 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16181 (versionclean): Likewise.
16182
161832008-03-04 Juanma Barranquero <lekktu@gmail.com>
16184
16185 * .cvsignore: Add oo.
16186
161872008-03-03 Andreas Schwab <schwab@suse.de>
16188
16189 * coding.c (decode_coding_object): Inhibit gap shrinking while
16190 decoding in place.
16191
161922008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16193
16194 * w32term.c: Remove unused include "gnu.h".
16195 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16196
16197 * gnu.h: Rename to ...
16198 * emacs-icon.h: ... this.
16199 * xterm.c: Use emacs-icon.h instead of gnu.h.
16200 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16201
162022008-03-03 Juanma Barranquero <lekktu@gmail.com>
16203
16204 * w32font.c: Include math.h.
16205
162062008-03-03 Jason Rumney <jasonr@gnu.org>
16207
16208 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16209 Compute options separately.
16210 (w32font_open_internal): Set glyph_idx before caching metrics.
16211
16212 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16213 Define if system headers don't.
16214 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16215 (w32font_encode_char): Don't declare here.
16216
16217 * w32font.c (Quniscribe, QCformat): New symbols.
16218 (syms_of_w32font): Define them.
16219 (w32font_has_char): Indicate uncertainty.
16220 (w32font_encode_char): Encode as glyph point. Make static.
16221 (recompute_cached_metrics): New function.
16222 (w32font_open_internal): Use it. Set font to use glyph points
16223 initially. Set format based on type of font.
16224 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16225 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16226 on it. Set format based on information available here.
16227 (add_font_entity_to_list): Identify backend based on opentype_only.
16228
162292008-03-02 Andreas Schwab <schwab@suse.de>
16230
16231 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16232
16233 * coding.c (decode_coding_big5, produce_chars):
16234 Fix typos in last change.
16235
162362008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16237
16238 * gnu.h: New icon.
16239
162402008-03-02 Kenichi Handa <handa@m17n.org>
16241
16242 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16243 `dos', don't decode '\r' if that is the last in the source.
16244 (decode_coding_utf_16, decode_coding_emacs_mule)
16245 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16246 (decode_coding_raw_text, decode_coding_charset): Likewise.
16247 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16248
162492008-03-01 Jason Rumney <jasonr@gnu.org>
16250
16251 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16252
162532008-03-01 Kim F. Storm <storm@cua.dk>
16254
16255 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16256
162572008-03-01 Jason Rumney <jasonr@gnu.org>
16258
16259 * w32font.c (w32font_full_name): New function.
16260 (w32font_open_internal): Use it.
16261
162622008-03-01 Kim F. Storm <storm@cua.dk>
16263
16264 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16265
162662008-03-01 Jason Rumney <jasonr@gnu.org>
16267
16268 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16269
162702008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16271
16272 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16273 xg_frame_resized when the event is for the edit widget.
16274
16275 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16276
16277 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16278 set_char_size.
16279 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16280 operations on widgets here. Just set frame size if needed.
16281 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16282 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16283 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16284 the whole frame.
16285 (xg_create_tool_bar): Move attachment of the tool bar to
16286 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16287 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16288
162892008-03-01 Jason Rumney <jasonr@gnu.org>
16290
16291 * w32fns.c (w32_msg_pump): Disable debug code.
16292
162932008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16294
16295 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16296
162972008-02-29 Chong Yidong <cyd@stupidchicken.com>
16298
16299 * xdisp.c (next_overlay_string): Don't set
16300 overlay_strings_at_end_processed_p if we're currently reading from
16301 a display string.
16302
163032008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16304
16305 * xdisp.c (get_overlay_strings_1): Fix typo.
16306
163072008-02-29 Chong Yidong <cyd@stupidchicken.com>
16308
16309 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16310
163112008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16312
16313 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16314
16315 * xdisp.c (display_mode_element): Cancel the previous change.
16316 (decode_mode_spec): Likewise.
16317 (handle_auto_composed_prop): Don't make composition if it->string
16318 is a string.
16319
163202008-02-27 Kim F. Storm <storm@cua.dk>
16321
16322 * lisp.h (GLYPH): Change type from int to struct with separate char
16323 and face_id members.
16324 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16325 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16326 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16327 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16328 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16329 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16330 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16331 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16332 handle new Lisp glyph code encoding, either an integer or a cons.
16333
16334 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16335 (GLYPH_ALIAS): Delete.
16336 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16337 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16338 (GLYPH_FROM_CHAR): Replace macro by ...
16339 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16340
16341 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16342 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16343 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16344 (GLYPH_INVALID_P): New macro.
16345 (spec_glyph_lookup_face): Update prototype.
16346
16347 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16348 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16349 new glyph code encoding.
16350 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16351 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16352
16353 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16354 Adapt to new glyph type and new glyph code encoding.
16355
16356 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16357
16358 * indent.c (current_column, current_column_1, Fmove_to_column)
16359 (compute_motion): Adapt to new glyph code encoding.
16360
16361 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16362
163632008-02-27 Chong Yidong <cyd@stupidchicken.com>
16364
16365 * process.c (wait_reading_process_output): Check for window
16366 changes caused by timers.
16367 Suggested by Johan Bockgård.
16368
163692008-02-27 Glenn Morris <rgm@gnu.org>
16370
16371 * emacs.c (USAGE1): Add `--disable-font-backend'.
16372
163732008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16374
16375 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16376 is made to the buffer.
16377
163782008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16379
16380 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16381 (face_at_string_position):
16382 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16383 (face_at_string_position):
16384 * xdisp.c (display_string, next_overlay_change):
16385 * buffer.h (overlays_at):
16386 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16387 Update callers.
16388
163892008-02-26 Chong Yidong <cyd@stupidchicken.com>
16390
16391 * editfns.c (Fformat): Doc fix.
16392
163932008-02-26 Juanma Barranquero <lekktu@gmail.com>
16394
16395 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16396 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16397 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16398
163992008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16400
16401 * buffer.c (Fbuffer_swap_text): New function.
16402 (syms_of_buffer): Defsubr it.
16403
164042008-02-25 Chong Yidong <cyd@stupidchicken.com>
16405
16406 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16407
164082008-02-25 Jason Rumney <jasonr@gnu.org>
16409
16410 * w32font.c (w32font_draw): Draw one character at a time when padding.
16411
164122008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16413
16414 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16415 Handle a nil arg. Use run_window_configuration_change_hook.
16416 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16417 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16418 Use run_window_configuration_change_hook.
16419
164202008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16421
16422 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16423 1-pixel width.
16424
164252008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16426
16427 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16428 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16429 if the glyph in the font is zero pixel with.
16430
16431 * dispextern.h (struct glyph_string): New member padding_p.
16432
16433 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16434
16435 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16436
16437 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16438
16439 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16440
16441 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16442
164432008-02-25 Jason Rumney <jasonr@gnu.org>
16444
16445 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16446
164472008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16448
16449 Allow fine-grained image-cache flushing.
16450 * dispextern.h (struct image): Add `dependencies' field.
16451 (clear_image_caches): Change arg to Lisp_Object.
16452 * image.c (make_image): Initialize `dependencies' field.
16453 (clear_image_cache): Change arg to allow fine-grained flushing.
16454 Perform the flush even if image-cache-eviction-delay is nil.
16455 (clear_image_caches): Change arg to Lisp_Object.
16456 (Fclear_image_cache): Expand meaning of the argument.
16457 (mark_image): Mark `dependencies' field.
16458 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16459 (lface_hash): Use XHASH rather than XFASTINT.
16460 (face_at_buffer_position): Fix int -> EMACS_INT position.
16461 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16462 (select_frame_for_redisplay): Remove code duplication.
16463 (redisplay_internal): Adapt arg to call to clear_image_caches.
16464
164652008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16466
16467 * s/vms4-0.h:
16468 * s/vms4-2.h:
16469 * s/vms4-4.h:
16470 * s/vms5-5.h: Remove, unused.
16471
16472 * s/irix5-2.h:
16473 * s/irix6-0.h:
16474 * s/riscos5.h:
16475 * s/mach-bsd4-3.h:
16476 * m/mips4.h: Remove files for obsolete systems.
16477
16478 * Makefile.in:
16479 * filelock.c:
16480 * unexmips.c:
16481 * m/hp9000s300.h:
16482 * m/iris4d.h:
16483 * s/aix3-1.h:
16484 * s/hpux.h:
16485 * s/msdos.h:
16486 * s/usg5-0.h:
16487 * s/usg5-2-2.h:
16488 * s/usg5-2.h:
16489 * s/usg5-3.h: Remove references to obsolete variables.
16490
16491 * s/irix5-0.h: Remove, move all the contents ...
16492 * s/irix6-5.h: ... here. Simplify.
16493 * config.in: Regenerate.
16494
164952008-02-24 Jason Rumney <jasonr@gnu.org>
16496
16497 * w32term.c (x_draw_glyph_string_background): Clear the background
16498 manually when cleartype is in use.
16499 (x_draw_glyph_string_foreground): Draw text transparently when
16500 cleartype is in use.
16501
16502 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16503 a font into it unless we have to.
16504
165052008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16506
16507 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16508 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16509
aac0c6e3
MR
165102008-02-18 Jason Rumney <jasonr@gnu.org>
16511
16512 * w32fns.c (Fw32_shell_execute): Encode parameters.
16513
165142008-02-09 Eli Zaretskii <eliz@gnu.org>
16515
16516 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16517
165182008-02-05 Juanma Barranquero <lekktu@gmail.com>
16519
16520 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16521
165222008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16523
16524 * xterm.c (x_set_offset): Don't change the gravity if
16525 CHANGE_GRAVITY is -1.
16526
165272008-02-23 Chong Yidong <cyd@stupidchicken.com>
16528
16529 * fileio.c (auto_save_error_occurred): New var.
16530 (auto_save_error): Set it.
16531 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16532 error occurred.
16533
165342008-02-23 Eli Zaretskii <eliz@gnu.org>
16535
16536 * w32.c (globals_of_w32): Add initializations for
16537 g_b_init_get_sid_sub_authority and
16538 g_b_init_get_sid_sub_authority_count.
16539
165402008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16541
16542 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16543 (font_parse_xlfd): Use them for sanity check.
16544 (Finternal_set_font_style_table): Make sure the table is bijective.
16545
16546 Consolidate the image_cache to the terminal struct.
16547 * termhooks.h (P_): Remove redundant def.
16548 (struct terminal): New field `image_cache'.
16549 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16550 of FRAME_X_IMAGE_CACHE.
16551 * xterm.h (struct x_display_info): Remove image_cache field.
16552 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16553 * w32term.h (struct w32_display_info): Remove image_cache field.
16554 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16555 * macterm.h (struct mac_display_info): Remove image_cache field.
16556 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16557 * xterm.c (x_term_init):
16558 * w32term.c (w32_term_init):
16559 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16560 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16561 Remove declarations.
16562 (clear_image_caches, mark_image_cache): New declarations.
16563 * xfaces.c (clear_face_cache):
16564 * xdisp.c (redisplay_internal): Use clear_image_caches.
16565 * image.c (clear_image_cache): Don't check that a frame is on
16566 a window-system before checking if it shares the same cache.
16567 (clear_image_caches): New function.
16568 (Fclear_image_cache): Use it.
16569 (mark_image): Move from allo.c.
16570 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16571 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16572 (mark_object): Don't call mark_image_cache for frames.
16573 (mark_terminals): Call mark_image_cache.
16574
16575 * lisp.h (Fdelete_terminal): Declare.
16576
16577 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16578 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16579 wrong_type_argument.
16580
165812008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16582
16583 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16584 malayalam.el, and tamil.el. Add sinhala.el.
16585
165862008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16587
16588 * xterm.c (x_connection_closed): Consolidate identical tests.
16589 (x_delete_terminal): Don't crash if called via x_connection_closed.
16590
165912008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16592
16593 * xdisp.c (decode_mode_spec): New arg string.
16594 (display_mode_element): Adjust for the above change.
16595
165962008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16597
16598 * callint.c (Fcall_interactively): Use AREF.
16599
166002008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16601
16602 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16603
166042008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16605
16606 * xfns.c (Fx_show_tip): Set string to " " if empty.
16607
166082008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16609
16610 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16611 with Qt.
16612
166132008-02-17 Kenichi Handa <handa@m17n.org>
16614
16615 * ftfont.c (ftfont_shape): Return Lispy number.
16616
16617 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16618 for GCs.
16619 (Finternal_set_font_selection_order): Call font_update_sort_order
16620 only when enable_font_backend is set.
16621 (realize_x_face): Set face->font_info to that of default face only
16622 when enable_font_backend is set.
16623
16624 * xdisp.c (handle_composition_prop): Set it->c to the fist
16625 character of the composed region.
16626 (fill_composite_glyph_string): Set base_face->font_info to
16627 s->font_info. Get a face for ascii from base_face->ascii_face.
16628 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16629 with a face already decided.
16630 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16631 non-negative.
16632 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16633 call font_prepare_composition unconditionally.
16634
16635 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16636
16637 * xterm.h (struct x_display_info): New member font.
16638
16639 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16640 (x_set_mouse_face_gc, x_new_font): Likewise.
16641 (x_term_init): Setup display_info->font.
16642 (x_delete_terminal): Free display_info->font.
16643
16644 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16645
16646 * ftxfont.c (ftxfont_default_fid): Delete it.
16647 (ftxfont_open): Set xfont->fid to 0.
16648 (ftxfont_end_for_frame): Clear data specific to the frame and the
16649 font-driver.
16650
16651 * xftfont.c (xftfont_default_fid): Delete it.
16652 (xftfont_open): Set xfont->fid to 0.
16653
16654 * fontset.c (FONTSET_OBJLIST): New macro.
16655 (fontset_find_font): Update font-object list of the fontset.
16656 (free_realized_fontset): New function.
16657 (free_face_fontset): Call free_realized_fontset.
16658 (Ffont_info): Call font_close_object only when enable_font_backend
16659 is set.
16660
16661 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16662 [HAVE_NTGUI]: Include w32term.h.
16663 [MAC_OS]: Include macterm.ch.
16664 (font_otf_ValueRecord): Use make_number.
16665 (font_finish_cache): Fix handling of reference count.
16666 (font_clear_cache): Update num_fonts.
16667 (font_open_entity): Update smallest_char_width and
16668 smallest_font_height of the frame.
16669 (font_close_object): Update num_fonts.
16670 (Fclear_font_cache): Fix finding the target cache data.
16671
166722008-02-16 Glenn Morris <rgm@gnu.org>
16673
16674 * fontset.c (Finternal_char_font): Fix compilation warning.
16675
166762008-02-16 Eli Zaretskii <eliz@gnu.org>
16677
16678 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16679 instead of char arrays. Enlarge the size of array passed to
16680 get_token_information.
16681
16682 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16683 warnings.
16684
166852008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16686
16687 * .gdbinit: Don't set `args', it breaks gdb --args.
16688
166892008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16690
16691 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16692 within a narrowed buffer.
16693
166942008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16695
16696 * coding.c (decode_coding_object, encode_coding_object):
16697 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16698
166992008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16700
16701 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16702 hardcoding 1.
16703 (detect_coding_system):
16704 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16705 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16706 * insdel.c (insert_from_gap):
16707 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16708 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16709 (string_to_multibyte):
16710 * character.c (chars_in_text, multibyte_chars_in_text):
16711 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16712
16713 * character.h (FETCH_STRING_CHAR_ADVANCE)
16714 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16715 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16716 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16717
16718 * casefiddle.c (casify_region): Only call after-change and composition
16719 functions on the part of the region that was changed.
16720
16721 * keyboard.c (read_avail_input):
16722 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16723
167242008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16725
16726 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16727 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16728
167292008-02-11 Juanma Barranquero <lekktu@gmail.com>
16730
16731 * w32menu.c (push_submenu_start, push_submenu_end)
16732 (push_left_right_boundary, push_menu_pane, push_menu_item):
16733 * keyboard.c (read_key_sequence): Don't pass args with side effects
16734 to AREF, it fails when compiling with -DENABLE_CHECKING.
16735
167362008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16737
16738 * Makefile.in (${lispsource}international/charprop.el):
16739 Delete this target.
16740
16741 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16742 emacs-unicode-2.
16743
167442008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16745
16746 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16747
167482008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16749
16750 * frame.c (Qnoelisp): New symbol.
16751 (syms_of_frame): Initialize it.
16752 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16753 harmless Elisp code, from a strong `force' from x_connection_closed.
16754 * frame.h (Qnoelisp): Declare.
16755 * xterm.c (x_connection_closed): Pass `noelisp'.
16756
16757 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16758 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16759 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16760 rather than `int' for the type of `type'.
16761
167622008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16763
16764 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16765
16766 * Makefile.in (GNUC): Remove support for gcc-1.x.
16767
167682008-02-10 Richard Stallman <rms@gnu.org>
16769
16770 * lisp.h (ASET): Use AREF, not ASLOT.
16771
167722008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16773
16774 * lisp.h (ASET): Check bounds.
16775
167762008-02-10 Glenn Morris <rgm@gnu.org>
16777
16778 * buffer.c (mode-name): Doc fix.
16779
167802008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16781
16782 * Makefile.in:
16783 * emacs.c:
16784 * gmalloc.c:
16785 * keyboard.c:
16786 * lisp.h:
16787 * m/ibm370aix.h:
16788 * process.c:
16789 * regex.c:
16790 * s/hpux.h:
16791 * sysdep.c:
16792 * sysselect.h:
16793 * systty.h:
16794 * unexec.c:
16795 * w32term.c:
16796 * xsmfns.c:
16797 * xterm.c: Remove code that deals with obsolete variables.
16798
16799 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16800
16801 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16802 nothing else needs it anymore.
16803
168042008-02-09 Eli Zaretskii <eliz@gnu.org>
16805
16806 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16807 instead of unibyte_char_to_multibyte.
16808
168092008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16810
16811 * s/gnu-linux.h: Remove commented out code.
16812
16813 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16814
16815 * Makefile.in: Update what RMS says about using autoconf.
16816 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16817 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16818 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16819 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16820
168212008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16822
16823 * keymap.c (Fkey_description): Move side effect outside of macro call.
16824
16825 * xfaces.c (Finternal_make_lisp_face):
16826 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16827
16828 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16829 (syms_of_fontset): Use ASET.
16830
16831 * fns.c (concat): Move side effect outside of macro call.
16832 (hash_clear): Use ASET.
16833
168342008-02-08 Richard Stallman <rms@gnu.org>
16835
16836 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16837 If FORCE, and frame has a surrogate minibuffer for another frame,
16838 delete the other frame first.
16839
168402008-02-07 Timo Savola <timo.savola@iki.fi>
16841
16842 * xterm.c (x_detect_focus_change): Handle embed client message.
16843 (handle_one_xevent): Ditto.
16844 (handle_one_xevent): If embedded and we get a button press/release,
16845 request focus.
16846 (xembed_set_info, xembed_send_message): New functions.
16847 (x_make_frame_visible): Call xembed_set_info if embedded.
16848 (x_make_frame_invisible): Call xembed_set_info if embedded.
16849 (x_term_init): Initialize Xatom_XEMBED.
16850 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16851 (x_iconify_frame): Ditto.
16852
16853 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16854 (enum xembed_info, enum xembed_message, enum xembed_focus)
16855 (enum xembed_modifier, enum xembed_accelerator): New.
16856 (xembed_set_info, xembed_send_message): Declare.
16857 (FRAME_X_EMBEDDED_P): New.
16858
16859 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16860 gtk_plug_new.
16861
16862 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16863 window ID of a frame.
16864 (x_window): Reparent frame if embedded.
16865 (Fx_create_frame): Don't set border width if embedded.
16866
16867 * emacs.c (USAGE3): Add --parent-id.
16868 (standard_args): Ditto.
16869
168702008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16871
16872 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16873
168742008-02-07 Jim Meyering <meyering@redhat.com>
16875
16876 Use "do...while (0)", not "if (1)...else" in macro definitions.
16877 The latter provokes a warning from gcc about the empty else, when
16878 followed by ";". Also, without that trailing semicolon, it would
16879 silently swallow up any following statement.
16880 * syntax.h (SETUP_SYNTAX_TABLE)
16881 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16882 * buffer.h (DECODE_POSITION): Likewise.
16883 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16884 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16885 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16886 (FETCH_CHAR_ADVANCE): Likewise.
16887 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16888
168892008-02-07 Jim Meyering <meyering@redhat.com>
16890
16891 * lread.c [lint]: Don't include <sys/inode.h>.
16892
168932008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16894
16895 * xselect.c (x_handle_dnd_message):
16896 * xmenu.c (digest_single_submenu, xmenu_show):
16897 * xdisp.c (with_echo_area_buffer_unwind_data)
16898 (format_mode_line_unwind_data, unwind_format_mode_line)
16899 (display_menu_bar):
16900 * eval.c (Ffetch_bytecode):
16901 * doc.c (store_function_docstring):
16902 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16903 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16904 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16905
169062008-02-07 Kenichi Handa <handa@m17n.org>
16907
16908 * ftxfont.c (ftxfont_open): Don't set
16909 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16910
16911 * ftfont.c (ftfont_open): Fix previous change.
16912
169132008-02-06 Jason Rumney <jasonr@gnu.org>
16914
16915 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16916 Use cached metrics for ASCII characters.
16917 (w32font_open_internal): Don't set font's owning_frame.
16918 Cache metrics for ASCII characters.
16919
16920 * w32font.h (struct w32font_info): Add ascii_metrics.
16921 Remove owning_frame.
16922
169232008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16924
16925 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16926 to negative value.
16927
16928 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16929
16930 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16931
16932 * charset.c (syms_of_charset): Set QCtest and Qeq.
16933
169342008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16935
16936 * process.c (Fstart_process):
16937 * callproc.c (Fcall_process): Handle the case where
16938 Funhandled_file_name_directory returns nil.
16939
16940 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16941 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16942 * font.c (check_gstring): Use them and AREF to access the vector before
16943 we know it's really a gstring.
16944 (Ffont_shape_text): Fix typo.
46e722a9 16945 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16946
16947 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16948 Declare.
16949
16950 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16951
169522008-02-05 Jason Rumney <jasonr@gnu.org>
16953
16954 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16955 Set smallest_font_height and smallest_char_width in display info.
16956
169572008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16958
16959 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16960
169612008-02-05 Miles Bader <miles@gnu.org>
16962
16963 * xfaces.c (get_lface_attributes, merge_named_face)
16964 (lookup_named_face, lookup_derived_face, realize_named_face):
16965 Revert 2008-02-01 change by cyd@stupidchicken.com.
16966
169672008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16968
16969 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16970 fallback fonts.
16971 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16972
169732008-02-04 Jason Rumney <jasonr@gnu.org>
16974
16975 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16976 set full_name.
16977 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16978
169792008-02-03 Jason Rumney <jasonr@gnu.org>
16980
16981 * makefile.w32-in (OBJ1): Include font.o here.
16982 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16983
169842008-02-02 Jason Rumney <jasonr@gnu.org>
16985
16986 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16987
169882008-02-01 Jason Rumney <jasonr@gnu.org>
16989
16990 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16991
16992 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16993
169942008-02-01 Andreas Schwab <schwab@suse.de>
16995
16996 * Makefile.in (shortlisp, lisp): Update for rename of
16997 ../lisp/language/myanmar.el.
16998
169992008-02-01 Chong Yidong <cyd@stupidchicken.com>
17000
17001 * xfaces.c (get_lface_attributes): Delete function.
17002 (merge_named_face, lookup_named_face, lookup_derived_face)
17003 (realize_named_face): Call lface_from_face_name directly, and use
17004 the fact that merge_face_vectors does not alter its FROM argument.
17005
170062008-02-01 Jason Rumney <jasonr@gnu.org>
17007
17008 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17009 input in the default locale. Handle non-Unicode multibyte input.
17010
170112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17012
17013 * fontset.c (reorder_font_vector): Exclude nil elements from the
17014 font group. Don't try multiple fonts.
17015 (fontset_font): Adjust for the above change.
17016 (Finternal_char_font): Return nil if the found font doesn't
17017 contain the character ch.
17018
17019 * Makefile.in (lisp, shortlisp): Add cham.el.
17020
170212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17022
17023 * font.h (FONTP): Make it return 1 also for a font-object.
17024
17025 * .gdbinit (xfontset): New function.
17026
17027 * font.c (font_find_for_lface): Check if the character C is
17028 supported or not only for the first font.
17029
17030 * fontset.c (reorder_font_vector): Fix typo.
17031 (fontset_find_font): Don't add a font-spec specifying a script.
17032 Use 0 (not Qt) for the indication of empty font-group. Change the
17033 format of RFONT-DEF. Return Qt if no font in the font-group
17034 support the character.
17035 (fontset_font): Adjust for the above change. If no font was
17036 found the character, remember that.
17037 (face_for_char): Adjust for the change of RFONT-DEF.
17038 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17039 no font for the target.
17040 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17041
170422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17043
17044 * font.c (font_load_for_face): Handle the case that the font in
17045 face->lface is a string.
17046
170472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17048
17049 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17050
170512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17052
17053 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17054 Fix previous change. If the frame is not on a window system,
17055 signal an error.
17056
170572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17058
17059 * coding.c (decode_coding_object, encode_coding_object): Adjust
17060 marker positions after conversion.
17061
17062 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17063
170642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17065
17066 * font.c (font_find_for_lface): Fix the handling of the return
17067 value of font_has_char.
17068 (Ffont_shape_text): Fix previous change.
17069
17070 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17071 (fontset_ref_and_range): Delete it.
17072 (fontset_find_font): Call char_table_ref_and_range instead of
17073 FONTSET_REF_AND_RANGE.
17074 (make_fontset): Don't setup font groups of Latin here.
17075 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17076 (new_fontset_from_font): Make the specified font the default for
17077 all Latin characters.
17078
170792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17080
17081 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17082 is on a window system before accessing the fontset of the frame.
17083
170842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17085
17086 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17087
17088 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17089 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17090
17091 * font.c (Ffont_shape_text): If the font driver doesn't have a
17092 shaper function, make zero-width glyphs to have at least one-pixel
17093 width. Fix setting of `to' field of glyphs.
17094
170952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17096
17097 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17098 glyphs.
17099
17100 * font.h (struct font_driver): Improve docstring of member `shape'.
17101
171022008-02-01 Kenichi Handa <handa@m17n.org>
17103
17104 * composite.c (syms_of_composite): Fix docstring of
17105 auto-composition-function.
17106
17107 * font.h (LGLYPH_SIZE): New macro.
17108
17109 * font.c (Ffont_fill_gstring): Stop filling when a character not
17110 supported by the font is found.
17111 (Ffont_shape_text): When a shape callback function returns nil,
17112 try at most two more times with larger gstring.
17113 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17114
17115 * xdisp.c (handle_auto_composed_prop): Change the argument to
17116 auto-composition-function.
17117
17118 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17119 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17120 Lispy glyph and store it in the lgstring.
17121
17122 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17123
17124 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17125
171262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17127
17128 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17129
17130 * fontset.c (Vfont_encoding_charset_alist): New variable.
17131 (syms_of_fontset): DEFVAR it.
17132 (reorder_font_vector, fontset_find_font): Optimize for the case of
17133 no need of reordering.
17134 (face_for_char): Map the charset property by
17135 Vfont_encoding_charset_alist.
17136
171372008-02-01 Jason Rumney <jasonr@gnu.org>
17138
17139 * w32font.c (logfonts_match): Don't check adstyle here.
17140 (font_matches_spec): Check here against physical font instead.
17141 (add_font_entity_to_list): Avoid some substitutions.
17142
17143 * font.c (font_parse_fcname): Default weight and slant to normal.
17144 (font_score): Prefer normal fonts if weight or slant unspecified.
17145 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17146 match freetype scores.
17147
171482008-02-01 Jason Rumney <jasonr@gnu.org>
17149
17150 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17151 font, as it may have been deleted.
17152 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17153 most common hyphenless variation.
17154 (logfonts_match): Check generic family.
17155 (font_matches_spec): Don't check generic family here.
17156 (fill_in_logfont): Set generic family based on adstyle.
17157
17158 * w32font.h (w32font_get_cache): Update declaration.
17159
171602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17161
17162 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17163
17164 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17165 If none of the new drivers are available, call font_update_drivers
17166 with the old drivers.
17167
17168 * w32font.c (w32font_get_cache): Adjust the argument type.
17169
17170 * xfont.c (xfont_get_cache): Adjust the argument type.
17171
17172 * font.h (struct font_driver): Change argument type of get_cache.
17173
17174 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17175
17176 * font.c (Ffont_get): Fix arguments to Fassoc.
17177 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17178 (font_clear_cache): New function.
17179 (font_list_entities, font_matching_entity): Use font_get_cache.
17180 (font_update_drivers): Call font_clear_cache when finishing a driver.
17181
17182 * fontset.c (fontset_find_font): Fix previous change.
17183
171842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17185
17186 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17187 dpyinfo->font_table.
17188 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17189 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17190
17191 * font.c (font_at): Handle the case that the arg C is negative.
17192 Handle the unibyte case.
17193 (Ffont_at): Call font_at with the arg C -1.
17194
17195 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17196 the position here, and call font_at with the arg C -1.
17197 Don't check the range of the existing composition at the point.
17198
171992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17200
17201 * fontset.c (fontset_add): New args charset_id and family.
17202 Change caller.
17203 (load_font_get_repertory, fontset_find_font): Assume that
17204 font_spec is always a font-spec object.
17205 (Fset_fontset_font): Always store a font-spec object in a fontset.
17206
17207 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17208 instead of get_property_and_range.
17209
172102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17211
17212 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17213 (xftfont_open): Don't keep locking face.
17214 (xftfont_close): Don't unlock face.
17215 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17216
17217 * fontset.c (fontset_find_font): Don't prefer a font of
17218 supplementary charset.
17219
172202008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17223 script, langsys_tag to langsys, new member script.
17224 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17225 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17226 listing to the script specified in that property. Fix arg to
17227 OTF_check_features.
17228
172292008-02-01 Jason Rumney <jasonr@gnu.org>
17230
17231 * w32font.h: New file.
17232
17233 * w32font.c: Include it.
17234 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17235 (w32font_open): Set owning_frame.
17236 (w32font_text_extents): Use owning_frame.
17237 (struct font_callback_data): Add opentype_only field.
17238 (add_font_entity_to_list): Use it to filter fonts.
17239 Don't check against full name.
17240 (w32font_list_internal): New function.
17241 (w32font_list): Use it.
17242 (w32font_match_internal): New function.
17243 (w32font_match): Use it.
17244 (w32font_open_internal): New function.
17245 (w32font_open): Use it.
17246 (w32font_get_cache, w32font_close, w32font_has_char)
17247 (w32font_encode_char, w32font_text_extents, w32font_draw):
17248 Make non-static.
17249
17250 * makefile.w32-in (w32font.o): Depend on w32font.h.
17251
172522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17253
17254 * charset.c (Fdefine_charset_internal): Record a supplementary
17255 charset at the tail of Vcharset_order_list.
17256
17257 * font.c (Ffont_shape_text): Fix the return value.
17258
17259 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17260
17261 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17262
172632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17264
17265 * ftfont.c (struct OpenTypeSpec): New struct.
17266 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17267 (ftfont_get_open_type_spec): New function.
17268 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17269
17270 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17271
172722008-02-01 Jason Rumney <jasonr@gnu.org>
17273
17274 * w32font.c (add_font_entity_to_list): Compare only the beginning
17275 of full name.
17276
172772008-02-01 Kenichi Handa <handa@m17n.org>
17278
17279 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17280 Never return HANDLED_RECOMPUTE_PROPS.
17281
172822008-02-01 Kenichi Handa <handa@m17n.org>
17283
17284 * font.c (font_gstring_produce): Delete it.
17285
17286 * composite.h (COMPOSITION_METHOD):
17287 Handle COMPOSITION_WITH_GLYPH_STRING.
17288
172892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17290
17291 * xfont.c (Qx): Delete.
17292 (syms_of_xfont): Don't initialize Qx.
17293
17294 * composite.h (enum composition_method):
17295 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17296
172972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17298
17299 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17300 (choose_face_font): Accept new form of font-spec.
17301
17302 * frame.h (font_driver_list): Declare it unconditionally.
17303 (struct frame): Define members font_driver_list and font_data_list
17304 unconditionally.
17305
17306 * fontset.c: Include "font.h" unconditionally.
17307 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17308 (Fset_fontset_font): Accept a font-spec object.
17309
17310 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17311 PIXEL_SIZE part a wild card.
17312
17313 * dispextern.h (struct glyph_string): Define members clip and
17314 num_clips unconditionally.
17315 (struct face): Define members font_info and extra unconditionally.
17316
17317 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17318 ftfont_info only when HAVE_LIBOTF is defined.
17319
173202008-02-01 Andreas Schwab <schwab@suse.de>
17321
17322 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17323 and end.
17324
173252008-02-01 Jason Rumney <jasonr@gnu.org>
17326
17327 * w32font.c (w32font_driver): Add new fields.
17328
173292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17330
17331 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17332 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17333 (LIBES): Add @M17N_FLT_CFLAGS@.
17334
17335 * composite.c (compose_text): Don't treat the new style
17336 composition specially.
17337
17338 * emacs.c (main): Call syms_of_font unconditionally.
17339
17340 * font.h (FONT_ENTITY_NOT_LOADABLE)
17341 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17342 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17343 (struct font_driver): New member shape.
17344 (font_registry_charsets): Extern it.
17345 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17346 (font_otf_capability, font_drive_otf): Delete their externs.
17347
17348 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17349 (font_charset_alist, font_registry_charsets): Move from xfont.c
17350 and rename.
17351 (font_prop_validate_otf): New function.
17352 (font_property_table): Register it for QCotf.
17353 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17354 (font_drive_otf): Delete.
17355 (font_prepare_composition): New arg F. Adjust for the change of
17356 lispy gstring.
17357 (font_find_for_lface): New arg C.
17358 (font_load_for_face): Adjust for the change of font_find_for_lface.
17359 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17360 lispy gstring.
17361 (Ffont_shape_text): New function.
17362 (Fopen_font): If the font size is not given, use 12-pixel.
17363 (Ffont_at): New arg STRING.
17364 (syms_of_font): Initalize font_charset_alist.
17365 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17366 conditionally.
17367
17368 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17369 fonts of the same font-spec. Change the format of RFONT-DEF.
17370 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17371 Adjust for the change of RFONT-DEF.
17372 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17373
17374 * ftfont.h: New file.
17375
17376 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17377 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17378 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17379 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17380 font_otf_capability and font_drive_otf, set ftfont_shape.
17381 (ftfont_list): Adjust for the change of :otf property value.
17382 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17383 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17384 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17385 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17386 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17387 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17388
17389 * w32term.c (x_draw_composite_glyph_string_foreground):
17390 Adjust for the change of lispy gstring.
17391
17392 * xdisp.c (handle_composition_prop): Adjust for the change of
17393 lispy gstring. Call a function for auto-composition with the
17394 third arg it->window.
17395 (fill_composite_glyph_string): Adjust for the change of lispy string.
17396 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17397
17398 * xfaces.c (set_font_frame_param): Adjust for the change of
17399 font_find_for_lface.
17400
17401 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17402 (xfont_registry_charsets): Likewise. Change caller.
17403 (syms_of_xfont): Don't handle x_font_charset_alist.
17404
17405 * xftfont.c: Include "ftfont.h".
17406 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17407 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17408 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17409 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17410 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17411 Set xftfont_driver.shape to xftfont_shape.
17412
17413 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17414 the change of lispy gstring.
17415
174162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17417
17418 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17419
174202008-02-01 Jason Rumney <jasonr@gnu.org>
17421
17422 * w32font.c (w32font_draw): Fill background manually.
17423
174242008-02-01 Jason Rumney <jasonr@gnu.org>
17425
17426 * font.c (Qfontp): Remove unused symbol.
17427 (QCantialias): New symbol.
17428 (syms_of_font): Define it.
17429 (font_property_table): Set a validator for QCantialias.
17430
17431 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17432 Define if not already.
17433 (QCfamily): Share with xfaces.c.
17434 (Qstandard, Qsubpixel, Qnatural): New symbols.
17435 (syms_of_w32font): Define them. Don't define QCfamily here.
17436 (w32_antialias_type, lispy_antialias_type): New functions.
17437 (w32_enumfont_pattern_entity): New arg requested_font.
17438 Set antialias parameter if non-default was requested.
17439 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17440
174412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17442
17443 * lread.c (read1): Undo the previous change.
17444
174452008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17446
17447 * frame.c (Fdelete_frame): Call font_update_drivers only when
17448 USE_FONT_BACKEND is defined.
17449
174502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17451
17452 * font.h (struct font_bitmap): New member bits_per_pixel.
17453 (struct font_driver): New members start_for_frame and end_for_frame.
17454 (struct font_data_list): New struct.
17455 (font_put_frame_data, font_get_frame_data): Extern them.
17456
17457 * frame.h (struct frame): New member font_data_list.
17458
17459 * font.c (font_update_drivers): Call driver->start_for_frame and
17460 driver->end_for_frame at proper timings.
17461 (font_put_frame_data, font_get_frame_data): New functions.
17462 (Ffont_spec): Add usage in the docstring.
17463
17464 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17465 (Fdelete_frame): Call font_update_drivers.
17466
17467 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17468 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17469 (xftfont_get_xft_draw): New function.
17470 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17471 (xftfont_end_for_frame): New function.
17472 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17473
17474 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17475 Change argument. Cache GCs in the per-frame data.
17476 (struct ftxfont_frame_data): New struct.
17477 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17478 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17479 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17480 (ftxfont_end_for_frame): New function.
17481 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17482
17483 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17484
174852008-02-01 Kenichi Handa <handa@m17n.org>
17486
17487 * xselect.c (Vselection_coding_system)
17488 (Vnext_selection_coding_system): Delete them.
17489 (syms_of_xselect): Don't declare selection-coding-system and
17490 next-selection-coding-system. They are declared in select.el.
17491
174922008-02-01 Jason Rumney <jasonr@gnu.org>
17493
17494 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17495
17496 * w32fns.c: Include imm.h.
17497 (get_composition_string_fn, get_ime_context_fn): New optional
17498 system functions.
17499 (globals_of_w32fns): Load them from imm32.dll.
17500 (ignore_ime_char): New flag.
17501 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17502 WM_IME_ENDCOMPOSITION messages.
17503
17504 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17505 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17506
175072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17508
17509 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17510 (READCHAR_REPORT_MULTIBYTE): New macro.
17511 (readchar): New 2nd arg MULTIBYTE.
17512 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17513 Make symbol's name multibyte according to the multibyteness of the
17514 source.
17515
175162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17517
17518 * xfaces.c (face_for_overlay_string): Call lookup_face with
17519 correct arguments (fix of synching with the trunk).
17520
175212008-02-01 Kenichi Handa <handa@m17n.org>
17522
17523 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17524 (font_prop_validate_non_neg, font_prop_validate_spacing):
17525 Delete argument prop_index.
17526 (font_property_table): Change arguments to validater. Change Callers.
17527 (font_lispy_object): Delete.
17528 (font_at): Use font_find_object instead fo font_lispy_object.
17529
175302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17531
17532 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17533 and file names.
17534
175352008-02-01 Jason Rumney <jasonr@gnu.org>
17536
17537 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17538 (font_matches_spec): Remove debug output.
17539 (add_font_entity_to_list): Avoid using substituted fonts.
17540
175412008-02-01 Jason Rumney <jasonr@gnu.org>
17542
17543 * doc.c (Fsnarf_documentation):
17544 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17545
175462008-02-01 Miles Bader <miles@gnu.org>
17547
17548 * dispextern.h (struct glyph_row): Only define "clip" field if
17549 HAVE_WINDOW_SYSTEM is defined.
17550
175512008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17552
17553 Fix up multi-tty merge.
17554
17555 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17556 and indentation.
17557
17558 * xfaces.c (free_realized_face, clear_face_gcs):
17559 Include font_done_for_face in the input_blocked section, just in case.
17560
17561 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17562 (get_char_face_and_encoding): Undo last change and remove the *other*
17563 duplicate definition (i.e. keep the one that's better scoped and that
17564 includes code for the font-backend).
17565
17566 * terminal.c (create_terminal): Default keyboard_coding to
17567 `no-conversion' and terminal_coding to `undecided'.
17568
17569 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17570
17571 * fontset.c (free_realized_fontsets): Check that the table entry does
17572 contain a fontset before trying to compare it to `base'.
17573
17574 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17575 syms_of_charset, and syms_of_coding earlier because init_window_once
17576 now needs Vcoding_system_hash_table to be setup.
17577
17578 * coding.h (default_buffer_file_coding): Remove.
17579
17580 * coding.c (default_buffer_file_coding): Remove.
17581 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17582 than ->symbol, and use the terminal-local coding system.
17583 (syms_of_coding): Don't setup the coding-systems that are not
17584 terminal-local.
17585 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17586
17587 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17588 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17589
17590 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17591 in chartab.c and were re-added here by mistake.
17592 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17593
17594 * doc.c (Fsnarf_documentation):
17595 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17596 src to etc.
17597
17598 * ChangeLog.10: Add mistakenly removed entry.
17599
176002008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17601
17602 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17603
176042008-02-01 Miles Bader <miles@gnu.org>
17605
17606 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17607 Add extra args to FACE_FOR_CHAR.
17608
176092008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17612 in sequence.
17613
17614 * chartab.c (map_sub_char_table, map_char_table): If the range
17615 contains just one character, call the function with that character
17616 even if the depth is not 3.
17617
176182008-02-01 Jason Rumney <jasonr@gnu.org>
17619
17620 * w32font.c (w32font_text_extents): Calculate metrics for the
17621 whole string.
17622
176232008-02-01 Jason Rumney <jasonr@gnu.org>
17624
17625 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17626
176272008-02-01 Jason Rumney <jasonr@gnu.org>
17628
17629 * w32term.c (x_set_glyph_string_clipping): Use
17630 get_glyph_string_clip_rects.
17631 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17632 Adjust for the change of struct glyph_string.
17633
17634 * w32font.c (w32font_draw): Do clipping here.
17635
176362008-02-01 Kenichi Handa <handa@m17n.org>
17637
17638 * xftfont.c (xftfont_draw): Adjust for the change of struct
17639 glyph_string.
17640
17641 * xterm.c (x_set_glyph_string_clipping): Use
17642 get_glyph_string_clip_rects.
17643 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17644 Adjust for the change of struct glyph_string.
17645
17646 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17647 the resulting clip(s}.
17648 (expose_overlaps): Add arg r. Change callers. Set it to
17649 row->clip temporarily.
17650 (expose_window): Redraw rows overlapping the exposed area.
17651
17652 * dispextern.h (struct glyph_row): New member clip.
17653 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17654 clip_height, new member clip, and num_clips.
17655
176562008-02-01 Kenichi Handa <handa@m17n.org>
17657
17658 * data.c (Fchar_or_string_p): Fix docstring.
17659
176602008-02-01 Kenichi Handa <handa@m17n.org>
17661
17662 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17663 create a temporary XftDraw object.
17664
176652008-02-01 Kenichi Handa <handa@m17n.org>
17666
17667 * font.c (Ffontp): Fix docstring.
17668
17669 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17670 strong evidence of ISO-2022.
17671
176722008-02-01 Kenichi Handa <handa@m17n.org>
17673
17674 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17675 SYNTAX_ENTRY_FOLLOW_PARENT.
17676
176772008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17678
17679 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17680 its type.
17681 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17682 Update to the new type of weak_hash_tables and next_weak.
17683
17684 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17685 a plain C pointer to Lisp_Hash_Table.
17686
17687 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17688 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17689 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17690 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17691 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17692 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17693 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17694 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17695 (GC_EQ): Remove since they've been identical to their non-GC_
17696 alter-egos ever since the markbit was eradicated.
17697
17698 * alloc.c:
17699 * buffer.c:
17700 * buffer.h:
17701 * data.c:
17702 * fileio.c:
17703 * filelock.c:
17704 * fns.c:
17705 * frame.h:
17706 * lisp.h:
17707 * macterm.c:
17708 * print.c:
17709 * process.c:
17710 * w32fns.c:
17711 * w32menu.c:
17712 * w32term.c:
17713 * xfns.c:
17714 * xmenu.c:
17715 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17716
177172008-02-01 Kenichi Handa <handa@m17n.org>
17718
17719 * chartab.c (map_sub_char_table): Make it work for the top-level
17720 char-table. Fix handling of parent char-table.
17721 (map_char_table): Adjust for the above change.
17722
177232008-02-01 Jason Rumney <jasonr@gnu.org>
17724
17725 * w32font.c (Qgdi): Rename from Qw32.
17726
177272008-02-01 Jason Rumney <jasonr@gnu.org>
17728
17729 * w32bdf.c (get_quoted_string): Make function static.
17730
177312008-02-01 Kenichi Handa <handa@m17n.org>
17732
17733 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17734 bigger ascent and descent than those of the font, use them as
17735 font's ascent and descent.
17736
177372008-02-01 Kenichi Handa <handa@m17n.org>
17738
17739 * Makefile.in (${lispsource}international/charprop.el): Move this
17740 target within "#ifdef HAVE_UNIDATA" and "#endif".
17741
177422008-02-01 Kenichi Handa <handa@m17n.org>
17743
17744 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17745 (shortlisp): Add ../lisp/language/tai-viet.el.
17746
177472008-02-01 Ulrich Mueller <ulm@gentoo.org>
17748
17749 * Makefile.in (${lispsource}international/charprop.el): Depend on
17750 temacs${EXEEXT}.
17751
177522008-02-01 Jason Rumney <jasonr@gnu.org>
17753
17754 * w32font.c (w32font_close): Delete the GDI font object.
17755
17756 * w32menu.c: Include character.h.
17757
17758 * w32proc.c: Likewise.
17759
17760 * w32select.c: Likewise.
17761
17762 * makefile.w32-in (w32proc.o): Depend on character.h.
17763
177642008-02-01 Jason Rumney <jasonr@gnu.org>
17765
17766 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17767
17768 * w32menu.c (syms_of_w32menu): Likewise.
17769
17770 * w32proc.c (syms_of_ntproc): Likewise.
17771
17772 * w32select.c (syms_of_w32select): Likewise.
17773
17774 * w32term.c (syms_of_w32term): Likewise.
17775
177762008-02-01 Jason Rumney <jasonr@gnu.org>
17777
17778 * w32font.c (w32font_draw): Delete brush after using it.
17779
177802008-02-01 Jason Rumney <jasonr@gnu.org>
17781
17782 * w32font.c (w32font_open): Don't set font_idx.
17783 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17784 to font settings.
17785 (w32font_draw): Fill background explicitly.
17786
177872008-02-01 Jason Rumney <jasonr@gnu.org>
17788
17789 * w32term.c (w32_initialize): Don't call w32font_initialize.
17790
17791 * w32font.c (w32font_info): Remove subranges.
17792 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17793 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17794 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17795 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17796 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17797 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17798 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17799 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17800 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17801 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17802 New symbols.
17803 (font_callback_data): New struct.
17804 (w32font_list, w32font_match): Use it.
17805 (w32font_open): Don't populate subranges.
17806 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17807 (w32font_encode_char): Always return unicode code-point as-is.
17808 (w32font_text_extents): Supply a transformation matrix to
17809 GetGlyphOutline. Never look up by glyph index. Avoid looping
17810 twice. Use unicode version of GetTexExtentPoint32 instead of
17811 glyph index version.
17812 (set_fonts_frame): Remove.
17813 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17814 set frame parameter. Use backward compatible fake foundries.
17815 Save generic family in extra slot under QCfamily. Make width slot
17816 constant. Save QCspacing value. Save list of scripts instead of
17817 binary subranges.
17818 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17819 (add_font_entity_to_list): Use font_callback_data struct. Filter
17820 unwanted fonts.
17821 (add_one_font_entity_to_list): Use font_callback_data struct.
17822 (w32_registry): Default to iso10646_1.
17823 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17824 string font registries. Don't fill in font name if it is a generic
17825 family name, fill family instead. Use spacing, family and script
17826 extra info to fill pitch, family and charset fields.
17827 (list_all_matching_fonts): Use font_callback_data struct.
17828 (unicode_range_for_char): Remove.
17829 (font_supported_scripts): New function.
17830 (w32font_initialize): Remove.
17831 (syms_of_w32font): Update which symbols are defined.
17832
178332008-02-01 Jason Rumney <jasonr@gnu.org>
17834
17835 * font.c (font_pixel_size): Reverse assq_no_quit args.
17836
17837 * w32term.h (FONT_WIDTH): Report max width, not average.
17838 (FONT_MAX_WIDTH): Remove.
17839 (FONT_AVG_WIDTH): New macro.
17840
17841 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17842 redefinition of FONT_WIDTH.
17843
17844 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17845 (w32_cache_char_metrics): Use FONT_WIDTH.
17846
17847 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17848
178492008-02-01 Jason Rumney <jasonr@gnu.org>
17850
17851 * w32font.c (w32font_open): Make lfHeight negative.
17852
17853 * w32fns.c (x_default_font_parameter): Use new style font name.
17854 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17855
178562008-02-01 Jason Rumney <jasonr@gnu.org>
17857
17858 * w32font.c (QCsubranges): New symbol.
17859 (w32font_open, w32font_has_char): Get subranges from subproperty
17860 of extra.
17861 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17862 (syms_of_w32font): Define :subranges symbol.
17863
17864 * font.c (font_put_extra): Expose externally.
17865
17866 * font.h (font_put_extra): Move declaration from font.c.
17867
17868 * font.c (Ffont_get): Use font driver to determine otf capability.
17869 (adjust_anchor): Check if driver defines anchor_point before using.
17870
17871 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17872 (w32font_draw): Use options.
17873 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17874 Fix detection of truetype fonts.
17875 (registry_to_w32_charset): Handle charsets other than iso8859-1
17876 expressed as lisp symbols.
17877 (w32_registry): Express charset as lisp symbol.
17878 (fill_in_logfont): Reverse pixel and point height logic.
17879 Don't set width here. Set quality to default.
17880
17881 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17882 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17883
17884 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17885 Remove redundant loop and allocation.
17886
17887 * makefile.w32-in (font.o, w32font.o): New objects.
17888 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17889 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17890
17891 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17892 STORE_XCHARB a valid l-value.
17893
17894 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17895 calculations for non-Truetype fonts.
17896 (x_draw_glyph_string): Sync with xterm.c.
17897 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17898 Remove redundant code.
17899 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17900
17901 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17902 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17903
17904 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17905 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17906
17907 * w32font.c: New file for w32 font backend.
17908
179092008-02-01 Kenichi Handa <handa@m17n.org>
17910
17911 * term.c: Don't include "buffer.h" twice.
17912
179132008-02-01 Kenichi Handa <handa@m17n.org>
17914
17915 * character.c (Funibyte_string): New function.
17916 (syms_of_character): Defsubr it.
17917
179182008-02-01 Jason Rumney <jasonr@gnu.org>
17919
17920 * w32term.c [USE_FONT_BACKEND]:
17921 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17922 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17923 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17924 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17925 (x_free_frame_resources): Sync with xterm.c.
17926
179272008-02-01 Andreas Schwab <schwab@suse.de>
17928
17929 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17930 char-table size.
17931
179322008-02-01 Kenichi Handa <handa@m17n.org>
17933
17934 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17935
179362008-02-01 Kenichi Handa <handa@m17n.org>
17937
17938 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17939 font_otf_gpos, add font_drive_otf.
17940
17941 * fontset.c (fontset_find_font): Pay attention to font size
17942 specified for a font.
17943 (reorder_font_vector): Check contents of font_def.
17944
17945 * font.c (struct otf_list): Delete it.
17946 (otf_list): Make it a lisp variable.
17947 (otf_open): Use lispy otf_list.
17948 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17949 (check_otf_features): New function.
17950 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17951 New functions.
17952 (font_drive_otf): New function merging font_otf_gsub and
17953 font_otf_gpos.
17954 (font_open_for_lface): New arg spec. Change argument order.
17955 (font_load_for_face): Adjust for the change of font_open_for_lface.
17956 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17957 Ffont_otf_gpos.
17958 (syms_of_font): Staticpro otf_list. Delete defsubr of
17959 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17960
17961 * xfaces.c (set_font_frame_param): Adjust for the change of
17962 font_open_for_lface.
17963
17964 * font.h (font_open_for_lface): Adjust prototype.
17965 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17966 member otf_drive.
17967 (font_otf_gsub, font_otf_gpos): Delete externs.
17968 (font_drive_otf): Extern it.
17969
179702008-02-01 Kenichi Handa <handa@m17n.org>
17971
17972 * font.c (font_at): If the window W is not on a window system,
17973 return Qnil.
17974
17975 * coding.c (produce_chars, encode_coding): Don't call
17976 insert_from_gap if no characters to produce.
17977
179782008-02-01 Kenichi Handa <handa@m17n.org>
17979
17980 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17981 Fclear_face_cache.
17982
17983 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17984
179852008-02-01 Miles Bader <miles@gnu.org>
17986
17987 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17988 Parse "--disable-font-backend" option.
17989 (standard_args): Add "--disable-font-backend" option.
17990
179912008-02-01 Kenichi Handa <handa@m17n.org>
17992
17993 * fontset.c (fontset_find_font): New function.
17994 (fontset_font): Use fontset_find_font.
17995 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17996 Register the specified font for all Latin characters.
17997 (new_fontset_from_font): Register the specified font for all Latin
17998 characters.
17999 (dump_fontset): For a realized fontset, include the base fontset
18000 name in the returned vector.
18001
180022008-02-01 Kenichi Handa <handa@m17n.org>
18003
18004 * character.h (CHAR_STRING): Cast C to unsigned on calling
18005 char_string.
18006
18007 * character.c (char_string): Type of arg C changed to unsigned.
18008 Signal an error if C is an invalid character code.
18009
18010 * editfns.c (general_insert_function, Fchar_to_string):
18011 Use CHARACTERP, not INTEGERP.
18012
180132008-02-01 Kenichi Handa <handa@m17n.org>
18014
18015 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18016 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18017
18018 * regex.c (analyse_first): Fix for multibyte characters in "case
18019 charset:" and "case categoryspec:".
18020
180212008-02-01 Andreas Schwab <schwab@suse.de>
18022
18023 * Makefile.in (LIBES): Move standard libraries to the end.
18024
180252008-02-01 Kenichi Handa <handa@m17n.org>
18026
18027 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18028 nonzero, don't shrink the buffer nextb.
18029
18030 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18031
18032 * coding.c (coding_alloc_by_making_gap): New arg offset.
18033 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18034 offset.
18035 (decode_coding_iso_2022): Update coding->safe_charsets.
18036 (decode_coding_gap): Temporarily set
18037 current_buffer->text->inhibit_shrinking to 1.
18038
180392008-02-01 Kenichi Handa <handa@m17n.org>
18040
18041 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18042 indexing into elements of s->cmp and s->char2b.
18043
180442008-02-01 Juanma Barranquero <lekktu@gmail.com>
18045
18046 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18047
180482008-02-01 Kenichi Handa <handa@m17n.org>
18049
18050 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18051 target_multibyte instead of multibyte.
18052 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18053 (bcmp_translate): Change the argument name from multibyte to
18054 target_multibyte.
18055
180562008-02-01 Kenichi Handa <handa@m17n.org>
18057
18058 These changes are to compile a regexp into a pattern that can be
18059 used both for multibyte and unibyte targets.
18060
18061 * Makefile.in (search.o): Depend on charset.h.
18062
18063 * character.c (multibyte_char_to_unibyte_safe): New function.
18064
18065 * search.c: Include "charset.h".
18066 (compile_pattern_1): Delete argument multibyte. Don't set
18067 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18068 (compile_pattern): Don't compare cp->buf.target_multibyte.
18069 Compare cp->buf.charset_unibyte.
18070 (compile_pattern): Set cp->buf.target_multibyte.
18071
18072 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18073
18074 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18075
18076 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18077 multibyte. Change callers.
18078 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18079 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18080 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18081 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18082 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18083 (regex_compile): Make the compiled pattern usable both for
18084 multibyte and unibyte targets.
18085 (analyse_first): Make the fastmap usable both for multibyte and
18086 unibyte targets.
18087 (TRANSLATE_VIA_MULTIBYTE): Delete.
18088 (re_match_2_internal): Pay attention to the case that the
18089 multibyteness of bufp and target may be different.
18090
180912008-02-01 Kenichi Handa <handa@m17n.org>
18092
18093 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18094 empty box occupy at least one column width.
18095
180962008-02-01 Miles Bader <miles@gnu.org>
18097
18098 * Makefile.in: Remove redundant HAVE_XFT clause.
18099
181002008-02-01 Kenichi Handa <handa@m17n.org>
18101
18102 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18103
181042008-02-01 Kenichi Handa <handa@m17n.org>
18105
18106 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18107 being nil.
18108
181092008-02-01 Kenichi Handa <handa@m17n.org>
18110
18111 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18112
181132008-02-01 Kenichi Handa <handa@m17n.org>
18114
18115 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18116
181172008-02-01 Kenichi Handa <handa@m17n.org>
18118
18119 * search.c (simple_search): Fix previous change.
18120
181212008-02-01 Kenichi Handa <handa@m17n.org>
18122
18123 * xftfont.c (ftfont_font_format): Extern declaration.
18124
18125 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18126
18127 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18128 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18129
18130 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18131 (ftfont_font_format): Fix previous change.
18132
18133 * font.h (Ffont_xlfd_name): EXFUN it.
18134
18135 * font.c (font_parse_xlfd): Fix the array size of `f'.
18136 (register_font_driver): Use EQ to compare driver->type.
18137
18138 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18139 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18140 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18141
181422008-02-01 Kenichi Handa <handa@m17n.org>
18143
18144 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18145 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18146
181472008-02-01 Kenichi Handa <handa@m17n.org>
18148
18149 * xfont.c (xfont_open): Set font->format.
18150
18151 * xftfont.c (xftfont_open): Set font->format.
18152
18153 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18154 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18155 (ftfont_open): Set font->format.
18156 (ftfont_font_format): New function.
18157
18158 * font.h (struct font): New member format.
18159
18160 * font.c (Qopentype): New variable.
18161 (syms_of_font): Defsym it.
18162 (Fquery_font): Change the format of the last element of the return
18163 value.
18164
181652008-02-01 Kenichi Handa <handa@m17n.org>
18166
18167 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18168 last resort.
18169
181702008-02-01 Kenichi Handa <handa@m17n.org>
18171
18172 * coding.c (detect_coding_charset): Fix detection of multi-byte
18173 charset.
18174
181752008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18176
18177 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18178
181792008-02-01 Kenichi Handa <handa@m17n.org>
18180
18181 * xdisp.c (get_next_display_element): Set it->face_id for the
18182 first component of a composition.
18183 (x_produce_glyphs): Check if the font is changed or not for composition.
18184
181852008-02-01 Kenichi Handa <handa@m17n.org>
18186
18187 * fontset.c (Qlatin): New variable.
18188 (syms_of_fontset): Define it as a lisp symbol.
18189 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18190
181912008-02-01 Kenichi Handa <handa@m17n.org>
18192
18193 * font.c (font_unparse_fcname): Pay attention to the case that
18194 some of font property is a null string.
18195
181962008-02-01 Kenichi Handa <handa@m17n.org>
18197
18198 * term.c: Include "composite.h".
18199 (encode_terminal_code): Output all components of composition.
18200 Check the size of encode_terminal_src.
18201 (produce_glyphs): For composition, call produce_composite_glyph.
18202 (append_composite_glyph, produce_composite_glyph): New functions.
18203
18204 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18205 is not found, get font_info from the current ascii face.
18206
182072008-02-01 Kenichi Handa <handa@m17n.org>
18208
18209 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18210 buffer-file-name to Qnil before calling insert_from_buffer.
18211
18212 * font.c (font_unparse_fcname): Pay attention to the case that
18213 foundry is a null string.
18214
182152008-02-01 Kenichi Handa <handa@m17n.org>
18216
18217 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18218
18219 * font.c (Qunicode_sip): New variable.
18220 (syms_of_font): Declare it as a Lisp symbol.
18221
18222 * font.h (Qunicode_sip): Extern it.
18223
182242008-02-01 Kenichi Handa <handa@m17n.org>
18225
18226 * composite.c (get_composition_id): Pay attention to TAB component.
18227
18228 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18229 TAB. Adjust for the change of s->char2b which always points to
18230 the first element of allocated memory.
18231
18232 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18233
18234 * xdisp.c (handle_composition_prop): Set it->c to the first
18235 non-TAB component.
18236 (fill_composite_glyph_string): Change argument.
18237 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18238 (x_produce_glyphs): Fix handling of left/right padding.
18239
182402008-02-01 Kenichi Handa <handa@m17n.org>
18241
18242 * coding.c (detect_coding_system): Fix for handling off
18243 inhibit_iso_escape_detection. Fix for the case that no coding
18244 system is defined for a specific coding category.
18245
182462008-02-01 Kenichi Handa <handa@m17n.org>
18247
18248 * font.c (font_matching_entity): Delete unused local var.
18249
18250 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18251 opening a font.
18252
18253 * fileio.c (Finsert_file_contents): On recovering a file, assume
18254 Unix-like eol.
18255 (choose_write_coding_system): On auto-saving a file, force
18256 Unix-like eol.
18257
18258 * coding.c (setup_coding_system): Fix setting of
18259 coding->common_flags based on eol_type.
18260 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18261 inherit from it.
18262
182632008-02-01 Kenichi Handa <handa@m17n.org>
18264
18265 * alloc.c (NSTATICS): Increas to 0x600.
18266
182672008-02-01 Kenichi Handa <handa@m17n.org>
18268
18269 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18270 (ftfont_list): Don't check :name property.
18271 (ftfont_match): New function.
18272 (ftfont_pattern_entity): If the pattern doesn't contain
18273 FC_SPACING, don't assume FC_MONO.
18274
18275 * font.h (struct font_driver): New member `match'.
18276 (font_update_drivers): Adjust prototype.
18277
18278 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18279 property of FONT.
18280 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18281 them unconditionally.
18282 (font_matching_entity): New function.
18283 (font_open_by_name): Try font_matching_entity if exact match is
18284 not found.
18285 (font_update_drivers): Delete the arg FONT. Return a list of
18286 actually used backends. Don't free faces, font caches here.
18287 Don't store data in frame parameters. Don't call x_set_font.
18288 (Ffont_spec): Store :name property as is.
18289 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18290 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18291 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18292 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18293 Call font->driver->otf_gsub instead of font_otf_gsub.
18294
18295 * frame.c (x_set_font_backend): Do more works that were done in
18296 font_update_drivers before.
18297
18298 * xfont.c (xfont_match): New function.
18299 (xfont_driver): Set xfont_driver.match to xfont_match.
18300 (xfont_draw): Set font in GC if necessary.
18301
18302 * ftxfont.c (ftxfont_match): New function.
18303 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18304
18305 * xftfont.c (xftfont_match): New function.
18306 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18307
183082008-02-01 Kenichi Handa <handa@m17n.org>
18309
18310 * font.h (struct font): New member scalable.
18311 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18312 (font_otf_gsub): Adjust prototype.
18313
18314 * font.c (font_otf_capability): Fix handling of the default langsys.
18315 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18316 Check the contents of SPEC.
18317 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18318 (check_gstring): New function.
18319 (REPLACEMENT_CHARACTER): New macro.
18320 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18321 glyph codes of GSTRING.
18322 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18323 (font_prepare_composition): Set cmp->glyph_len.
18324 (font_open_entity): Set font->scalable.
18325 (Ffont_get): Handle :otf property.
18326 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18327 functions.
18328 (Fquery_font): Use font->font.full_name.
18329 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18330 Sfont_otf_alternates.
18331
18332 * ftfont.c (ftfont_open): Set font->font.full_name and
18333 font->font.name properly. Fix calculation of font->font.height
18334 and font->min_width.
18335
18336 * ftxfont.c (ftxfont_create_gcs): New function.
18337 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18338 (ftxfont_draw_backgrond): Fix filling region.
18339 (ftxfont_default_fid): New function.
18340 (ftxfont_open): Set xfont->fid to the return value of
18341 ftxfont_default_fid.
18342 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18343 (ftxfont_done_face): Free only GCs that are created by
18344 ftxfont_create_gcs.
18345 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18346
18347 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18348 Clip to src->width, etc (not src->clip_XXX).
18349
18350 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18351 FontBackend frame parameter.
18352
183532008-02-01 Kenichi Handa <handa@m17n.org>
18354
18355 * font.h (struct font_driver_list): New member `on'.
18356 (Fclear_font_cache): EXFUN it.
18357 (font_update_drivers): Extern it.
18358
18359 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18360 (font_list_entities): Check driver_list->on.
18361 (register_font_driver): Initalize `on' member to 0.
18362 (font_update_drivers): New function.
18363 (Fclear_font_cache): Check driver_list->on.
18364
18365 * frame.h (Qfont_backend): Extern it.
18366 (x_set_font_backend): Extern it.
18367
18368 * frame.c (Qfont_backend): New variable.
18369 (frame_parms): New element for font-backend.
18370 (x_set_font_backend): New function.
18371
18372 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18373 FontBackend frame parameter.
18374 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18375 x_set_font_backend.
18376
18377 * xfont.c (xfont_list): Don't try listing by :name property if the
18378 name is not for XLFD.
18379
183802008-02-01 Kenichi Handa <handa@m17n.org>
18381
18382 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18383 (LGLYPH_SET_TO): New macros.
18384 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18385 element of G is vector or not.
18386 (font_at): Extern it.
18387
18388 * font.c: Include window.h.
18389 (font_lispy_object): New function.
18390 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18391 end of valid glyph.
18392 (font_close_object): Fix getting (struct font *).
18393 (font_at): New function.
18394 (Ffont_get): If FONT is a font-object, get entity from it.
18395 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18396 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18397 range check.
18398 (Ffont_at): New function.
18399 (syms_of_font): Defsubr Sfont_at.
18400
18401 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18402 before the entry for Qcomposition.
18403 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18404 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18405 the font in gstring.
18406 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18407 LGLYPH_FORM (g) to detect the end of valid glyph.
18408 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18409 we are composing with gstring.
18410
18411 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18412 Check if adjustment is vector or not.
18413
18414 * Makefile.in (font.o): Make it depends on window.h.
18415
184162008-02-01 Kenichi Handa <handa@m17n.org>
18417
18418 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18419 adjustment is vector or not.
18420
184212008-02-01 Miles Bader <miles@gnu.org>
18422
18423 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18424
184252008-02-01 Kenichi Handa <handa@m17n.org>
18426
18427 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18428 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18429 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18430
18431 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18432 (DEVICE_DELTA): Fix typo.
18433 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18434 LGLYPH format.
18435
18436 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18437 the change of LGLYPH format.
18438
184392008-02-01 Kenichi Handa <handa@m17n.org>
18440
18441 * ftfont.c (ftfont_list): Fix typo.
18442 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18443
184442008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18445
18446 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18447
18448 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18449 xftface_info is non-NULL.
18450
184512008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18452
18453 * ftfont.c (ftfont_list): Move misplaced #endif.
18454
184552008-02-01 Kenichi Handa <handa@m17n.org>
18456
18457 * ftfont.c (ftfont_list): Pay attention to the case that
18458 FC_CAPABILITY is not defined.
18459
184602008-02-01 Kenichi Handa <handa@m17n.org>
18461
18462 * xftfont.c (xftfont_open): Set charset related members to -1.
18463
18464 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18465 QCname.
18466 (ftfont_open): Set charset related members to -1.
18467
18468 * fontset.c (Votf_script_alist): New variable.
18469 (syms_of_fontset): Initialize it.
18470 (fontset_font): Delete unused variable.
18471
18472 * fontset.h (Votf_script_alist): Extern it.
18473
18474 * font.c (font_find_for_lface): Optimize code.
18475
18476 * font.h (font_close_object, font_merge_old_spec): Extern them.
18477
184782008-02-01 Kenichi Handa <handa@m17n.org>
18479
18480 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18481 (syms_of_font): Initialize them.
18482 (font_pixel_size): Allow float value in dpi.
18483 (font_prop_validate_type): Delete.
18484 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18485 Change caller.
18486 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18487 (font_prop_validate_extra): Delete.
18488 (font_prop_validate_spacing): New function.
18489 (font_property_table): Add elements for all known properties.
18490 (get_font_prop_index): Rename from check_font_prop_name. New
18491 argument FROM. Change caller.
18492 (font_prop_validate): Validate all known properties.
18493 (font_put_extra): Delete argument force. Change caller.
18494 (font_expand_wildcards): Make it static. Fix the way of shrinking
18495 the possible range.
18496 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18497 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18498 Change caller.
18499 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18500 (font_parse_fcname): Delete argument merge. Fix parsing of point
18501 size. Don't validate properties values here. Change caller.
18502 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18503 (font_open_by_name): Delete unused variable.
18504 (Ffont_spec): Likewise. Validate property values.
18505 (Ffont_match_p): New function.
18506
18507 * font.h (QCscalable): Extern it.
18508 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18509
18510 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18511
18512 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18513 (xfont_list_pattern): New function.
18514 (xfont_list): Use xfont_list_pattern.
18515
185162008-02-01 Kenichi Handa <handa@m17n.org>
18517
18518 * font.h (Flist_fonts): EXFUN it.
18519
185202008-02-01 Jason Rumney <jasonr@gnu.org>
18521
18522 * w32term.c (w32_initialize): Add back smoothing_type and
18523 smoothing_enabled definitions.
18524
185252008-02-01 Kenichi Handa <handa@m17n.org>
18526
18527 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18528 s->face->font on determining underline position.
18529
185302008-02-01 Kenichi Handa <handa@m17n.org>
18531
18532 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18533 (font_has_char): Accept font-object too.
18534 (font_find_for_lface): Try at first with a size specified in face.
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18539 font_open_by_name.
18540
185412008-02-01 Kenichi Handa <handa@m17n.org>
18542
18543 * font.h (QCspacing, QCdpi): Extern them.
18544 (enum font_spacing): New enum.
18545 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18546
18547 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18548 (QCspacing, QCdpi): New variables.
18549 (syms_of_font): Initialize them.
18550 (font_pixel_size): New function.
18551 (font_put_extra): New function.
18552 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18553 in FONT_EXTRA.
18554 (font_parse_fcname): Handle enumerated values (e.g. bold).
18555 Fix handling font size. Add QCname property that contains only
18556 unknown properties.
18557 (font_score): Change argument. Change caller. Pay attention to
18558 FONT_PIXEL_SIZE_QUANTUM.
18559 (font_sort_entites, font_list_entities, font_find_for_lface)
18560 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18561 (Ffont_spec): Add QCname property that contains only unknown properties.
18562
18563 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18564 include weight in listing pattern, instead check weight of each
18565 listed font. Don't include scalable in pattern. Pay attention to
18566 FONT_PIXEL_SIZE_QUANTUM.
18567
185682008-02-01 Kenichi Handa <handa@m17n.org>
18569
18570 * font.c (font_parse_fcname): Fix parsing of point-size.
18571 (font_unparse_fcname): Produce symbolic names for style properties.
18572 (font_list_entities): Handle float size correctly.
18573 (font_open_by_name): Prefer `normal' property values if the name
18574 doesn't specify them.
18575
18576 * fontset.c (Finternal_char_font): Use font_get_name, not
18577 Ffont_xlfd_name.
18578
18579 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18580 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18581 pattern. Don't force scalable.
18582
18583 * xftfont.c (xftfont_open): For generating a name, start from
18584 96-byte buffer.
18585
185862008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18587
18588 * frame.h (x_new_fontset2): Fix prototype.
18589
185902008-02-01 Kenichi Handa <handa@m17n.org>
18591
18592 * font.h (struct font_driver): Delete member parse_name.
18593 (font_match_p, font_get_spec, font_parse_fcname)
18594 (font_unparse_fcname): Extern them.
18595 (font_get_name): Adjust prototype.
18596
18597 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18598 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18599 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18600 unnecessary checks for weight, slant, and swidth.
18601 (font_parse_fcname): New function.
18602 (font_unparse_fcname): New function.
18603 (font_parse_name): New function.
18604 (font_match_p): New function.
18605 (font_get_name): Change return value to Lisp string.
18606 (font_get_spec): New function.
18607 (Qunspecified, Qignore_defface): Don't extern them.
18608 (font_find_for_lface): Assume that LFACE is fully specified.
18609 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18610 object, use it for FACE.
18611 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18612 driver->parse_name.
18613 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18614
18615 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18616 prototype.
18617
18618 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18619 argument F. Don't call Fnew_fontset. Instead, directly call
18620 make_fontset.
18621
18622 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18623
18624 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18625 of x_new_fontset2.
18626
18627 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18628 (Qsans__serif): New variables.
18629 (ftfont_generic_family_list): New variable.
18630 (syms_of_ftfont): Initialize the above variables.
18631 (ftfont_pattern_entity): Delete argument NAME.
18632 (ftfont_list_generic_family): New function.
18633 (ftfont_parse_name): Delete this function.
18634 (ftfont_list): Try generic family only when FcFontList found no font.
18635 (ftfont_list_family): Fix args to FcObjectSetBuild.
18636
18637 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18638 object in attrs[LFACE_FONT_INDEX].
18639 (set_lface_from_font_name): Cancel all changes for font-backend.
18640 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18641 function.
18642 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18643 font object in QCfont attribute.
18644 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18645 (realize_default_face) [USE_FONT_BACKEND]: Call
18646 set_lface_from_font_and_fontset.
18647
18648 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18649 "fixed", and signal error here if no suitable font was found.
18650
18651 * xfont.c (xfont_parse_name): Delete this function.
18652
18653 * xftfont.c (xftfont_open): Change coding style of error
18654 handling. Generate fontconfig's fontname pattern.
18655
18656 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18657 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18658
18659 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18660 Both args FONTSET and FONT_OBJECT must be existing ones.
18661
186622008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18663
18664 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18665
186662008-02-01 Kenichi Handa <handa@m17n.org>
18667
18668 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18669
18670 * font.h (struct font): Fix typo.
18671
18672 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18673 XLFD_XXX_INDEX.
18674 (enum xlfd_field_mask): New enum.
18675 (intern_font_field): Changed argument. Change caller. If digits
18676 are followed by non-digits, return a symbol.
18677 (font_expand_wildcards): New function.
18678 (font_parse_xlfd): Fix wildcard handling.
18679 (Ffont_spec): If :name is specified, reflect the info in the other
18680 properties.
18681
18682 * ftfont.c (ftfont_pattern_entity): Fix typo.
18683 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18684 locale.
18685
186862008-02-01 Kenichi Handa <handa@m17n.org>
18687
18688 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18689
18690 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18691 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18692 registry doesn't specify encoding part.
18693 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18694 (font_open_by_name): At first try parsing the name.
18695 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18696 as Lisp symbols.
18697
18698 * fontset.c (reorder_font_vector): Pay attention to the case that
18699 the 3rd element of font_def is nil.
18700 (fontset_font): For the default fontset, append one more fontset
18701 elements for a script-based font specification. Don't add script
18702 attribute on finding a font.
18703 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18704 font name.
18705 (fontset_ascii_font): If a font can't be opened, return nil.
18706
18707 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18708 (ftfont_pattern_entity): New function.
18709 (ftfont_get_cache): Assume that freetype_font_cache is already
18710 initialized.
18711 (ftfont_list): Handle the case that a file is specified in font
18712 name. Use ftfont_pattern_entity to generate entities.
18713 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18714 (syms_of_ftfont): Initialize freetype_font_cache.
18715
18716 * xftfont.c (xftfont_open): Make the font name fontconfig's
18717 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18718 (xftfont_close): Free font->font.name if not NULL.
18719
18720 * xfont.c (xfont_list): If script is specified for a font, return
18721 null_vector.
18722 (xfont_list_family): Declare argument type.
18723
18724 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18725 name, set LFACE_FONT (lface) to nil.
18726
18727 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18728 return Qnil.
18729
187302008-02-01 Kenichi Handa <handa@m17n.org>
18731
18732 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18733 (standard_args): Add "-enable-font-backend".
18734
187352008-02-01 Kenichi Handa <handa@m17n.org>
18736
18737 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18738 (struct xftdraw_list, xftdraw_list): Delete them.
18739 (register_xftdraw, check_xftdraw): Delete them.
18740 (xftfont_prepare_face): Don't call register_xftdraw.
18741 (xftfont_done_face): Don't call check_xftdraw.
18742 (xftfont_draw): Get background color only when with_background is
18743 nonzero.
18744
18745 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18746
187472008-02-01 Kenichi Handa <handa@m17n.org>
18748
18749 These changes are for the new font handling codes.
18750
18751 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18752 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18753 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18754 (FONTSRC, FONTOBJ): New variables.
18755 (obj): Add $(FONTOBJ).
18756 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18757 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18758 @LIBOTF_LIBS@.
18759 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18760 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18761
18762 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18763
18764 * character.h (Vscript_representative_chars): Extern it.
18765
18766 * character.c (Vscript_representative_chars): New variable.
18767 (syms_of_character): Declare it as a Lisp variable.
18768
18769 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18770 enable_font_backend is nonzero, accept the composition method
18771 COMPOSITION_WITH_GLYPH_STRING.
18772
18773 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18774 enumeration COMPOSITION_WITH_GLYPH_STRING.
18775
18776 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18777 members clip_x, clip_y, clip_width, and clip_height.
18778 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18779
18780 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18781 --enable-font-backend. Call syms_of_font.
18782
18783 * fns.c (assoc_no_quit): New function.
18784
18785 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18786 (face_for_font, new_fontset_from_font)
18787 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18788
18789 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18790 (fontset_font, fontset_ascii, face_for_char)
18791 (make_fontset_for_ascii_face, Ffont_info)
18792 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18793 is nonzero, use font-backend mechanism.
18794 (find_font_encoding): Make it non-static.
18795 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18796 New functions.
18797
18798 * frame.h (struct frame): New members resx and resy.
18799 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18800 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18801
18802 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18803 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18804
18805 * lisp.h (assoc_no_quit): Extern it.
18806
18807 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18808 Through out the file, use FONT_INFO_FROM_FACE instead of
18809 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18810 rif->per_char_metric.
18811 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18812 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18813 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18814 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18815 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18816 nonzero, use font-backend mechanism.
18817 (get_per_char_metric): New function.
18818
18819 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18820 (set_lface_from_font_name)
18821 (set_font_frame_param, free_realized_face)
18822 (prepare_face_for_display, clear_face_gcs)
18823 (Finternal_set_font_selection_order, realize_x_face)
18824 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18825 font-backend mechanism.
18826 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18827 (load_face_font) [USE_FONT_BACKEND]: Abort.
18828 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18829 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18830
18831 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18832 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18833 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18834 nonzero, register all available font drivers. Call
18835 x_default_font_parameter for deciding a font.
18836 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18837
18838 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18839 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18840 (x_set_glyph_string_clipping_exactly)
18841 (x_compute_glyph_string_overhangs)
18842 (x_draw_glyph_string_foreground)
18843 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18844 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18845 enable_font_backend is nonzero, use font-backend mechanism.
18846 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18847
188482008-02-01 Kenichi Handa <handa@m17n.org>
18849
18850 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18851 system_eol_type.
18852 (syms_of_coding): Initialize system_eol_type.
18853
18854 * process.c (Fset_process_coding_system): Inherit system's eol
18855 format if necessary.
18856
188572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18858
18859 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18860
188612008-02-01 Kenichi Handa <handa@m17n.org>
18862
18863 * coding.c (decode_eol): Pay attention to buffer relocation in
18864 del_range_2.
18865 (decode_coding): Call decode_eol before restoring undo_list.
18866
188672008-02-01 Kenichi Handa <handa@m17n.org>
18868
18869 * charset.c (Fdefine_charset_internal): Fix setting of
18870 emacs_mule_bytes.
18871
188722008-02-01 Kenichi Handa <handa@m17n.org>
18873
18874 * keyboard.c (read_char): Check if C is a character or not before
18875 looking up Vkeyboard_translate_table.
18876
188772008-02-01 Kenichi Handa <handa@m17n.org>
18878
18879 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18880 condition to terminate the loop.
18881
188822008-02-01 Kenichi Handa <handa@m17n.org>
18883
18884 * coding.c (produce_composition): Compare charbuf[i] instead of
18885 args[i] against 0.
18886 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18887
188882008-02-01 Kenichi Handa <handa@m17n.org>
18889
18890 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18891 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18892 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18893 detect_coding.
18894 (emacs_mule_char): Handle old style (Emacs 20) component character
18895 of a composition.
18896 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18897 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18898 composition rule.
18899 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18900
189012008-02-01 Kenichi Handa <handa@m17n.org>
18902
18903 * coding.c (encode_coding_ccl): Allocate destination dynamically
18904 when necessary.
18905
189062008-02-01 Kenichi Handa <handa@m17n.org>
18907
18908 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18909 the loop. When quitted, show a proper error message.
18910
189112008-02-01 Kenichi Handa <handa@m17n.org>
18912
18913 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18914 src->clip_head and src->clip_tail temporarily instead of src->hl.
18915
18916 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18917 character sequence.
18918 (Fccl_execute_on_string): Use ASET, not XSET.
18919
189202008-02-01 Kenichi Handa <handa@m17n.org>
18921
18922 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18923
189242008-02-01 Kenichi Handa <handa@m17n.org>
18925
18926 * coding.c (decode_coding): Fix the condition of terminating the
18927 decoding loop.
18928
189292008-02-01 Kenichi Handa <handa@m17n.org>
18930
18931 * data.c (Faset): On setting a character bigger than 255 in a
18932 unibyte string, signal an error instead of make the string multibyte.
18933
189342008-02-01 Kenichi Handa <handa@m17n.org>
18935
18936 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18937 made by a mapping table.
18938
189392008-02-01 Kenichi Handa <handa@m17n.org>
18940
18941 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18942 not.
18943 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18944 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18945
18946 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18947 s->face is NULL or not.
18948
189492008-02-01 Kenichi Handa <handa@m17n.org>
18950
18951 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18952 (x_draw_glyph_string): Fix drawing of right_overhang and
18953 left_overhang around/on cursor.
18954
18955 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18956
189572008-02-01 Kenichi Handa <handa@m17n.org>
18958
18959 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18960
189612008-02-01 Kenichi Handa <handa@m17n.org>
18962
18963 * coding.c (Fdefine_coding_system_internal)
18964 (Fdefine_coding_system_alias): Avoid a duplicated element in
18965 Vcoding_system_alist.
18966
189672008-02-01 Kenichi Handa <handa@m17n.org>
18968
18969 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18970
18971 * coding.c (Qcoding_system_define_form): New variable.
18972 (syms_of_coding): Intern and staticpro it.
18973 (Fcoding_system_p): Check Qcoding_system_define_form.
18974 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18975
18976 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18977 Fcoding_system_p.
18978 (CHECK_CODING_SYSTEM): If ID is not available, call
18979 Fcheck_coding_system.
18980 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18981 Try also Fcheck_coding_system.
18982
189832008-02-01 Kenichi Handa <handa@m17n.org>
18984
18985 * coding.c (code_conversion_restore): GCPRO arg.
18986
189872008-02-01 Kenichi Handa <handa@m17n.org>
18988
18989 * character.c (lisp_string_width): Check multibyteness of STRING.
18990
189912008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18992
18993 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18994 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18995 (decode_mac_font_name): Use decode_coding_c_string instead of
18996 decode_coding.
18997 (x_load_font): Initialize fontp->fontset to -1. Set
18998 fontp->encoding_type.
18999
190002008-02-01 Kenichi Handa <handa@m17n.org>
19001
19002 * search.c (search_buffer): Give up BM search on case-fold-search
19003 if one of a target character has a case-equivalence of different
19004 byte length even if that target charcter is an ASCII.
19005 (simple_search): Fix calculation of byte length of matched text.
19006 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19007
190082008-02-01 Kenichi Handa <handa@m17n.org>
19009
19010 * coding.c (decode_coding): Fix handling of invalid bytes.
19011
190122008-02-01 Kenichi Handa <handa@m17n.org>
19013
19014 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19015 Unicode characters.
19016
190172008-02-01 Kenichi Handa <handa@m17n.org>
19018
19019 * coding.c (encode_coding_object): If a pre-write-conversion
19020 function makes a new buffer, kill it.
19021
190222008-02-01 Kenichi Handa <handa@m17n.org>
19023
19024 * coding.c (QCascii_compatible_p): New variable.
19025 (syms_of_coding): Initialize it.
19026 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19027 calling string_char.
19028 (record_conversion_result): Add `default:' case.
19029 (coding_charset_list): Delete unused variable `coding_type'.
19030 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19031 property in the plist of the coding system.
19032 (Fcoding_system_put): Check QCascii_compatible_p.
19033
190342008-02-01 Miles Bader <miles@gnu.org>
19035
19036 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19037 removed calculation of frame `f', as it's now used.
19038
190392008-02-01 Kenichi Handa <handa@m17n.org>
19040
19041 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19042 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19043 (UNIDATA): New variable.
19044 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19045 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19046 $(RUN_TEMACS) unconditionally.
19047
190482008-02-01 Kenichi Handa <handa@m17n.org>
19049
19050 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19051 (admindir): New variable.
19052 ($(lispsource)international/charprop.el): New target.
19053
190542008-02-01 Miles Bader <miles@gnu.org>
19055
19056 * character.c (chars-in-region): Remove obsolete function.
19057 (syms_of_character): Remove its initialization.
19058
190592008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19060
19061 * w32select.c (validate_coding_system)
19062 (setup_windows_coding_system): New functions.
19063 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19064 setup_windows_coding_system.
19065 (setup_config, Fw32_get_clipboard_data): Use
19066 validate_coding_system.
19067 (Fx_selection_exists): Move call to setup_config to a place
19068 where signals are allowed.
19069
19070 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19071 (Fcheck_coding_system): Add declarations.
19072
190732008-02-01 Kenichi Handa <handa@m17n.org>
19074
19075 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19076
190772008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19078
19079 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19080 string as the second argument for x_new_fontset.
19081
190822008-02-01 Kenichi Handa <handa@m17n.org>
19083
19084 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19085 (encode_coding_object): Use safe_call instead of call2.
19086
190872008-02-01 Kenichi Handa <handa@m17n.org>
19088
19089 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19090
19091 * Makefile.in (lisp): Include charprop.el.
19092
190932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19094
19095 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19096 Not sure if it's unnecessary.
19097
190982008-02-01 Steven Tamm <steventamm@mac.com>
19099
19100 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19101 some possibly unnecessary fontset checking code that crashed
19102 when creating a new frame.
19103
191042008-02-01 Kenichi Handa <handa@m17n.org>
19105
19106 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19107 lookup_face.
19108
19109 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19110
19111 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19112
191132008-02-01 Kenichi Handa <handa@m17n.org>
19114
19115 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19116 (coding_charset_list): New function.
19117
19118 * coding.h (coding_charset_list): Extern it.
19119
191202008-02-01 Kenichi Handa <handa@m17n.org>
19121
19122 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19123 concatenation of family and registry.
19124
191252008-02-01 Kenichi Handa <handa@m17n.org>
19126
19127 * character.h (BYTE8_STRING): Fix typo.
19128
19129 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19130 string to multibyte (sync to HEAD).
19131
19132 * casefiddle.c (casify_region): Handle changes in byte-length
19133 using replace_range_2 (sync to HEAD).
19134
191352008-02-01 Andreas Schwab <schwab@suse.de>
19136
19137 * chartab.c (map_char_table): GCPRO table and arg.
19138
191392008-02-01 Kenichi Handa <handa@m17n.org>
19140
19141 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19142 already at limit.
19143
191442008-02-01 Kenichi Handa <handa@m17n.org>
19145
19146 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19147 instead of fast_c_string_match_ignore_case.
19148 (find_font_encoding): Change argument to Lisp_Object. Use
19149 fast_string_match_ignore_case instead of
19150 fast_c_string_match_ignore_case. Change caller.
19151
191522008-02-01 Kenichi Handa <handa@m17n.org>
19153
19154 * xdisp.c (get_next_display_element): In unibyte case, decide to
19155 display in octal form by checking a character by
19156 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19157
19158 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19159
19160 * character.c (unibyte_has_multibyte_table): New variable.
19161
19162 * character.h (unibyte_has_multibyte_table): Extern it.
19163 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19164
191652008-02-01 Kenichi Handa <handa@m17n.org>
19166
19167 * coding.c (encode_coding_iso_2022): Fix handling of charset
19168 annotation.
19169
191702008-02-01 Kenichi Handa <handa@m17n.org>
19171
19172 * coding.c (setup_coding_system): If coding_system is nil, use
19173 Qundecided.
19174 (Fterminal_coding_system): Return nil if terminal coding system is
19175 `undecided'.
19176 (syms_of_coding): Define coding-system `undecided' here. Setup
19177 terminal_coding as `undecided'.
19178
191792008-02-01 Kenichi Handa <handa@m17n.org>
19180
19181 * xdisp.c (message_dolog, set_message_1): Call
19182 unibyte_char_to_multibyte with arg type int.
19183
19184 * lread.c (read1): Fix reading of a char-table.
19185
19186 * print.c (print_object): Include sub char-table in circularities
19187 detection.
19188
191892008-02-01 Kenichi Handa <handa@m17n.org>
19190
19191 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19192 Append the found sequences in car of ARGS instead of prepending.
19193
191942008-02-01 Kenichi Handa <handa@m17n.org>
19195
19196 * fileio.c (report_file_error): Make a unibyte string from
19197 strerror (errorno).
19198 (Fsubstitute_in_file_name): Fix the arg to
19199 unibyte_char_to_multibyte. It is evaluated twice.
19200
192012008-02-01 Kenichi Handa <handa@m17n.org>
19202
19203 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19204
192052008-02-01 Kenichi Handa <handa@m17n.org>
19206
19207 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19208 BOM is not found.
19209 (detect_coding, detect_coding_system): Optimization for ISO-2022
19210 when no 8-bit data is found.
19211
192122008-02-01 Jason Rumney <jasonr@gnu.org>
19213
19214 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19215
192162008-02-01 Kenichi Handa <handa@m17n.org>
19217
19218 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19219 CHARS.
19220
192212008-02-01 Steven Tamm <steventamm@mac.com>
19222
19223 * macterm.c (mac_encode_char): Add charset argument and update
19224 to use encoding_type.
19225 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19226 switch to pure fontset.
19227 (decode_mac_font_name): Temporarily remove decoding.
19228 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19229 (x_load_font): Temporarily remove encoding.
19230
192312008-02-01 Kenichi Handa <handa@m17n.org>
19232
19233 * xfaces.c (Fface_font): If frame is not on a window system,
19234 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19235 refer to face->font.
19236 (split_font_name_into_vector, build_font_name_from_vector)
19237 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19238 when HAVE_WINDOW_SYSTEM is defined.
19239
192402008-02-01 Kenichi Handa <handa@m17n.org>
19241
19242 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19243 (x_produce_glyphs): Fix setting of members of cmp in case
19244 cmp->glyph_len is zero.
19245
19246 * fontset.c (Fset_fontset_font): Fix docstring.
19247 (Ffontset_info): Make it backward compatible. New arg ALL.
19248
192492008-02-01 Kim F. Storm <storm@cua.dk>
19250
19251 * process.c (read_process_output): Grow decoding_buf when needed;
19252 this could cause a crash in allocate_string and compact_small_strings.
19253
192542008-02-01 Kenichi Handa <handa@m17n.org>
19255
19256 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19257
192582008-02-01 Kenichi Handa <handa@m17n.org>
19259
19260 * coding.c (setup_coding_system): Set coding->common_flags
19261 correctly for raw-text.
19262 (consume_chars): On encoding unibyte text by raw-text, don't check
19263 multibyte form.
19264 (encode_coding): On encoding by raw-text, never use translation tables.
19265
19266 * fileio.c (e_write): Short cut for the case of no encoding.
19267
192682008-02-01 Kenichi Handa <handa@m17n.org>
19269
19270 * coding.c (detect_coding, detect_coding_system): Delete unused
19271 variables.
19272
192732008-02-01 Kenichi Handa <handa@m17n.org>
19274
19275 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19276 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19277
192782008-02-01 Kenichi Handa <handa@m17n.org>
19279
19280 * coding.c (Ffind_coding_systems_region_internal): Include
19281 raw-text and no-conversion in the result.
19282
192832008-02-01 Kenichi Handa <handa@m17n.org>
19284
19285 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19286 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19287 FONT_DEF.
19288 (font_def_arg, add_arg, from_arg, to_arg): New args.
19289 (set_fontset_font): Change argument.
19290 (Fset_fontset_font): Fix for the case that TARGET is a script
19291 name and charset name.
19292 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19293
192942008-02-01 Kenichi Handa <handa@m17n.org>
19295
19296 * fontset.c (fontset_font): Rename from fontset_face. Change return
19297 value.
19298 (face_suitable_for_char_p, face_for_char): Adjust for the change
19299 of fontset_font.
19300 (make_fontset_for_ascii_face): Fix setting of the fontset element
19301 for ASCII.
19302 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19303 to get a font name.
19304 (Ffontset_info): Adjust for the change of fontset_font.
19305
19306 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19307
19308 * character.h (LEADING_CODE_LATIN_1_MIN)
19309 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19310
193112008-02-01 Kenichi Handa <handa@m17n.org>
19312
19313 * editfns.c (check_translation): New function.
19314 (Ftranslate_region_internal): Handle M:N mapping.
19315
193162008-02-01 Kenichi Handa <handa@m17n.org>
19317
19318 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19319
193202008-02-01 Kenichi Handa <handa@m17n.org>
19321
19322 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19323 goto invalid_code.
19324 (decode_coding_iso_2022): Fix handling of invalid designation.
19325
19326 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19327 after calling code_conversion_save.
19328
193292008-02-01 Kenichi Handa <handa@m17n.org>
19330
19331 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19332
19333 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19334
19335 * fontset.c: Include "intervals.h".
19336 (fontset_face): Fix comparing of Lisp_Objects.
19337 (free_face_fontset, new_fontset_from_font_name): Fix
19338 Lisp_Object/int mixup.
19339
19340 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19341
19342 * coding.c: Add many prototypes for static functions.
19343 (get_translation_table): Allow max_lookup to be NULL.
19344 (decode_coding, Ffind_coding_systems_region_internal)
19345 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19346 get_translation_table with max_lookup NULL.
19347
193482008-02-01 Kenichi Handa <handa@m17n.org>
19349
19350 * coding.c (get_translation_table): Declare it as Lisp_Object.
19351 (LOOKUP_TRANSLATION_TABLE): New macro.
19352 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19353 instead of CHAR_TABLE_REF.
19354
193552008-02-01 Kenichi Handa <handa@m17n.org>
19356
19357 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19358 annotation data format.
19359 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19360 Change arguments FROM and TO to single argument NCHARS. Change caller.
19361 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19362 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19363 (decode_coding_ccl, decode_coding_charset): Pay attention to
19364 coding->charbuf_used.
19365 (get_translation): New function.
19366 (produce_chars): New arguments translation_table and last_block.
19367 Translate characters here. Return number of carryover chars.
19368 Change caller.
19369 (produce_composition): New argument pos. Change caller.
19370 Adjust for the change of annotation data format.
19371 (produce_charset, produce_annotation): Likewise.
19372 (decode_coding, encode_coding): Don't call translate_chars.
19373 (consume_chars): New arg translation_table. Change caller.
19374 (translate_chars): Delete.
19375 (syms_of_coding): Make translation-table's number of extra slots 2.
19376
193772008-02-01 Kenichi Handa <handa@m17n.org>
19378
19379 * search.c (simple_search): Fix setting this_pos_byte in backward
19380 search.
19381
19382 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19383 byte sequence.
19384 (detect_coding_ccl): Fix setting of the variable valids.
19385
193862008-02-01 Kenichi Handa <handa@m17n.org>
19387
19388 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19389
19390 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19391
19392 * editfns.c (Ftranslate_region_internal): Rename from
19393 Ftranslate_region. Accept a char-table in TABLE.
19394 (syms_of_editfns): Defsubr Stranslate_region_internal.
19395
19396 * xfaces.c (set_lface_from_font_name): If a font is specified for
19397 a frame, generate a fontset from the font.
19398 (build_scalable_font_name): If the scalable font is requested for
19399 a specific size, don't change that size.
19400 (try_font_list): Try a scalable font also in the case that a
19401 pattern string is specified.
19402
194032008-02-01 Kenichi Handa <handa@m17n.org>
19404
19405 * xfaces.c (Fface_font): New optional arg CHARACTER.
19406
194072008-02-01 Kenichi Handa <handa@m17n.org>
19408
19409 * charset.h (CHARSET_OFFSET): New macro.
19410
194112008-02-01 Kenichi Handa <handa@m17n.org>
19412
19413 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19414
19415 * fontset.c (fontset_face): Handle the case that repertory is a
19416 char-table.
19417 (find_font_encoding): Return nil for unknown encoding.
19418 (Fset_fontset_font): Ignore a font of unknown encoding.
19419
194202008-02-01 Kenichi Handa <handa@m17n.org>
19421
19422 * keymap.c (describe_vector): Handle default value of a char table.
19423
19424 * fontset.c (fontset_face): Handle fallback fonts correctly.
19425 (Ffontset_info): Return infomation about fallback fonts.
19426
194272008-02-01 Kenichi Handa <handa@m17n.org>
19428
19429 * fontset.c (FONTSET_DEFAULT): New macro.
19430 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19431 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19432 the case that it is nil.
19433 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19434 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19435
19436 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19437 subset or superset.
19438
194392008-02-01 Kenichi Handa <handa@m17n.org>
19440
19441 * emacs.c (main): Call init_charset after syms_of_XXX.
19442
19443 * charset.c (Vcharset_map_directory): Delete.
19444 (Vcharset_map_path): New variable.
19445 (load_charset_map_from_file): Use Vcharset_map_path instead.
19446 (init_charset): Initialize Vcharset_map_path.
19447 (syms_of_charset): Delete declaration of "charset-map-directory",
19448 add declaration of "charset-map-path".
19449
194502008-02-01 Kenichi Handa <handa@m17n.org>
19451
19452 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19453 ASCII only string.
19454
19455 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19456
19457 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19458 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19459
194602008-02-01 Kenichi Handa <handa@m17n.org>
19461
19462 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19463
19464 * coding.c (QCmnemonic, QCdefalut_char)
19465 (QCdecode_translation_table, QCencode_translation_table)
19466 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19467 (get_translation_table): Return a list of translation tables if
19468 necessary.
19469 (decode_coding): Call get_translation_table with ENCODEP 0.
19470 (char_encodable_p): If translation_table is non-nil, always call
19471 translate_char.
19472 (Fdefine_coding_system_internal): Accept list of translation
19473 tables as :encode-translation-table and :decode-translation-table.
19474 (Fcoding_system_put): New function.
19475 (syms_of_coding): Declare new symbols. Defsubr
19476 Scoding_system_put.
19477 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19478 typically JISX0212.
19479
19480 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19481 when the charset is superset type.
19482
19483 * character.c (translate_char): Accept list of translation tables.
19484
194852008-02-01 Kenichi Handa <handa@m17n.org>
19486
19487 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19488 (CODING_ATTR_TRANS_TBL): New macro.
19489
19490 * coding.c (get_translation_table): New function.
19491 (translate_chars): Fix the bug of skipping annotation data.
19492 (decode_coding, encode_coding): Utilize get_translation_table.
19493 (char_encodable_p, Funencodable_char_position): Translate char if
19494 necessary.
19495 (Ffind_coding_systems_region_internal)
19496 (Fcheck_coding_systems_region): Setup translation table for encode
19497 in a coding system attribute vector in advance.
19498 (Fdefine_coding_system_internal): Allow a symbol as translation
19499 table. For shift-jis type coding system, allow 4th charset.
19500
195012008-02-01 Kenichi Handa <handa@m17n.org>
19502
19503 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19504
19505 * xdisp.c (get_next_display_element): Pass -1 as POS to
19506 FACE_FOR_CHAR if displaying a C-string.
19507
195082008-02-01 Kenichi Handa <handa@m17n.org>
19509
19510 * composite.c (get_composition_id): Handle xoff and yoff in a
19511 composition rule.
19512
19513 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19514 (struct composition): New member lbearing and rbearing.
19515
19516 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19517 (x_get_glyph_overhangs): Handle a composition glyph.
19518 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19519
19520 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19521 composition glyph.
19522
195232008-02-01 Kenichi Handa <handa@m17n.org>
19524
19525 * print.c: Include charset.h.
19526 (Vprint_charset_text_property): New variable.
19527 (Qdefault): Extern it.
19528 (PRINT_STRING_NON_CHARSET_FOUND)
19529 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19530 (print_check_string_result): New variable.
19531 (print_check_string_charset_prop): New function.
19532 (print_prune_charset_plist): New variable.
19533 (print_prune_string_charset): New function.
19534 (print_object): Call print_prune_string_charset if
19535 Vprint_charset_text_property is not t.
19536 (print_interval): Print nothing if interval->plist is nil.
19537 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19538 variable. Init and staticpro print_prune_charset_plist.
19539
195402008-02-01 Kenichi Handa <handa@m17n.org>
19541
19542 * fontset.c (new_fontset_from_font_name): Use the specified font
19543 for all characters in the new fontset.
19544
19545 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19546 OBJECT args.
19547
19548 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19549 OBJECT args for composition too.
19550
19551 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19552 OBJECT args.
19553
195542008-02-01 Kenichi Handa <handa@m17n.org>
19555
19556 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19557
19558 * fontset.c (reorder_font_vector): Adjust for the change of
19559 FONT_DEF format.
19560 (fontset_face): New arg id. Change caller.
19561 (face_for_char): New args pos and object.
19562 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19563 (fs_query_fontset): Check NAME by Fassoc too.
19564 (Fset_fontset_font): Allow non-XLFD font name.
19565 (Ffontset_info): Adjust for the change of FONT_DEF format.
19566
19567 * fontset.h (face_for_char): Adjust prototype.
19568
19569 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19570 (append_space, extend_face_to_end_of_line)
19571 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19572 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19573
19574 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19575 POS and OBJECT args.
19576
19577 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19578 POS and OBJECT args.
19579
195802008-02-01 Jason Rumney <jasonr@gnu.org>
19581
19582 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19583 of GlobalAlloc'ed memory.
19584
195852008-02-01 Kenichi Handa <handa@m17n.org>
19586
19587 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19588
19589 * charset.h (charset_table_used): Delete extern.
19590
19591 * charset.c (charset_table_used): Make it static.
19592 (map_charset_chars): Fix args to c_function with.
19593
19594 * chartab.c (map_sub_char_table_for_charset): Fix args to
19595 c_function with.
19596
19597 * coding.h (enum coding_result_code): Delete
19598 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19599
19600 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19601 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19602 (Vlast_code_conversion_error): New variables.
19603 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19604 (ONE_MORE_BYTE): Record error if any instead of signaling an
19605 error. If non-ASCII multibyte char is found, return the negative
19606 value of the code. All callers changed to check it.
19607 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19608 (record_conversion_result): New function. Change all codes setting
19609 coding->result to call this function.
19610 (detect_coding_utf_8, decode_coding_utf_8)
19611 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19612 Don't use the local variable incomplete.
19613 (emacs_mule_char): Change the second arg to `const'.
19614 (decode_coding): Fix of flushing out unprocessed data.
19615 (make_conversion_work_buffer): Fix making of a work buffer.
19616 (decode_coding_object): Return coding->dst_object.
19617
19618 * fontset.c (set_fontset_font): Fix args.
19619
19620 * lisp.h (CHARACTERBITS): Define as 22.
19621
19622 * process.c (send_process): Be sure to set coding->src_multibyte.
19623
19624 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19625
196262008-02-01 Kenichi Handa <handa@m17n.org>
19627
19628 * xdisp.c (handle_auto_composed_prop): Give limit to
19629 Fnext_single_char_property_change.
19630
196312008-02-01 Kenichi Handa <handa@m17n.org>
19632
19633 * composite.c (syms_of_composite): Don't make the composition hash
19634 table weak.
19635
19636 * fontset.c (Fset_fontset_font): Fix docstring.
19637
19638 * lisp.h (detect_coding_system): Adjust prototype.
19639
19640 * fileio.c (kill_workbuf_unwind): Delete this function.
19641 (Finsert_file_contents): Adjust the call of detect_coding_system.
19642 Get conversion_buffer by code_conversion_save. Use the macro
19643 CODING_MAY_REQUIRE_DECODING. After decoding, update
19644 coding_system.
19645
19646 * coding.h (make_conversion_work_buffer): Delete extern.
19647 (code_conversion_save): Extern it.
19648
19649 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19650 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19651 (decode_coding_utf_8): Don't do eol converion.
19652 (detect_coding_utf_16): Check coding->src_chars, not
19653 coding->src_bytes. Add heuristics for those that have no signature.
19654 (decode_coding_emacs_mule, decode_coding_iso_2022)
19655 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19656 Don't do eol converion.
19657 (adjust_coding_eol_type): Return a new coding system.
19658 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19659 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19660 each change.
19661 (decode_coding): Pay attention to undo_list. Do eol conversion for
19662 all types of coding-systems (if necessary).
19663 (Vcode_conversion_work_buf_list): Delete it.
19664 (Vcode_conversion_reused_workbuf): Rename from
19665 Vcode_conversion_reused_work_buf.
19666 (Vcode_conversion_workbuf_name): New variable.
19667 (reused_workbuf_in_use): New variable.
19668 (make_conversion_work_buffer): Delete the arg DEPTH.
19669 (code_conversion_restore): Change argument to cons.
19670 (code_conversion_save): Delete the argument BUFFER. Change callers.
19671 (detect_coding_system): New argument src_chars. Change callers.
19672 Fix for utf-16 detection.
19673 (init_coding_once): Don't use ISO_carriage_return.
19674 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19675 reused_workbuf_in_use.
19676
196772008-02-01 Kenichi Handa <handa@m17n.org>
19678
19679 * keymap.c (store_in_keymap): Pay attention to the case that idx
19680 is a cons specifying a character range.
19681
196822008-02-01 Kenichi Handa <handa@m17n.org>
19683
19684 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19685 HANDLED_RECOMPUTE_PROPS.
19686
19687 * coding.c (Fdefine_coding_system_internal): Fix checking of
19688 ascii compatibility.
19689
196902008-02-01 Kenichi Handa <handa@m17n.org>
19691
19692 * charset.c (find_charsets_in_text): Delete unused locale variable.
19693 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19694
19695 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19696 Resync charset_list to Vemacs_mule_charset_list.
19697
19698 * keymap.c (store_in_keymap): Pay attention to the case that idx
19699 is a cons specifying a character range.
19700
197012008-02-01 Kenichi Handa <handa@m17n.org>
19702
19703 * composite.c (update_compositions): Bind inhibit-read-only, etc
19704 to t before calling remove-list-of-text-properties.
19705
19706 * print.c (print_object): Always print ASCII chars as is.
19707
197082008-02-01 Kenichi Handa <handa@m17n.org>
19709
19710 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19711
19712 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19713 is a char table.
19714
197152008-02-01 Kenichi Handa <handa@m17n.org>
19716
19717 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19718
197192008-02-01 Kenichi Handa <handa@m17n.org>
19720
19721 * xfaces.c (set_lface_from_font_name): Fix for the case that
19722 FONTNAME is not fontset name.
19723
197242008-02-01 Kenichi Handa <handa@m17n.org>
19725
19726 * fns.c (base64_encode_1): Fix previous change.
19727
197282008-02-01 Kenichi Handa <handa@m17n.org>
19729
19730 * fontset.c (set_fontset_font): New function.
19731 (Fset_fontset_font): If a font is specified for a charset, use
19732 map_charset_chars to store the font spec in a fontset.
19733
197342008-02-01 Kenichi Handa <handa@m17n.org>
19735
19736 * fontset.c (fontset_face): Create a fallback fontset on demand.
19737 (make_fontset): Don't create a fallback fontset here.
19738 (free_face_fontset): Free a fallback fontset (if any) too.
19739 (n_auto_fontsets): Delete this variable.
19740 (auto_fontset_alist): New variable.
19741 (new_fontset_from_font_name): Check auto_fontset_alist.
19742 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19743 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19744 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19745 Defsubr Sfontset_list_all.
19746
197472008-02-01 Kenichi Handa <handa@m17n.org>
19748
19749 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19750
197512008-02-01 Kenichi Handa <handa@m17n.org>
19752
19753 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19754
197552008-02-01 Kenichi Handa <handa@m17n.org>
19756
19757 * editfns.c (Fgoto_char): Fix docstring.
19758
197592008-02-01 Kenichi Handa <handa@m17n.org>
19760
19761 * insdel.c (insert_from_gap): Adjust intervals correctly.
19762
197632008-02-01 Jason Rumney <jasonr@gnu.org>
19764
19765 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19766 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19767 (w32_initialize): Try to load it.
19768 (x_get_font_repertory): Use it if available.
19769 (w32_encode_char): Add shortcut for unicode output.
19770
19771 * w32fns.c (w32_load_system_font): Default charset to -1.
19772 (x_to_w32_charset): Match all fonts for unicode.
19773 (w32_to_x_charset): New parameter matching. Don't return partial
19774 or wildcard charsets.
19775 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19776 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19777 (w32_to_x_font): Match charset to real charset.
19778 (enum_font_cb2): Always list unicode versions.
19779
19780 * makefile.w32-in (temacs): Increase EMHEAP.
19781
197822008-02-01 Jason Rumney <jasonr@gnu.org>
19783
19784 * w32term.c (w32_encode_char): New charset parameter.
19785 font_info.encoding becomes encoding_type.
19786 (x_get_font_repertory): New function. Warning: stub only!
19787 (x_new_font): Return quickly if font already set.
19788 (x_new_fontset): fontsetname parameter is Lisp_Object.
19789 Use new fs_query_fontset. Try new_fontset_from_font_name.
19790 Use fontset_name for return value.
19791
19792 * w32term.h: Declare x_get_font_repertory.
19793
19794 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19795 place of find_charset_in_text. Use encode_coding_object in place
19796 of encode_coding.
19797 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19798 decode_coding.
19799
19800 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19801 of x_new_fontset.
19802 (w32_load_system_font): Initialize charset as unicode.
19803 font_info.encoding becomes encoding_type.
19804 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19805 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19806 (syms_of_w32fns): Set get_font_repertory_func.
19807
19808 * w32console.c: Include character.h. Use terminal_encode_buffer
19809 from term.c.
19810 (write_glyphs): Use new version of encode_terminal_code. Use
19811 encode_coding_object in place of encode_coding.
19812
19813 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19814 encoding becomes encoding_type.
19815
19816 * term.c (terminal_encode_buffer): Make externally visible.
19817
19818 * makefile.w32-in: Add character.h dependancies.
19819 (character.o, chartab.o): New targets.
19820
198212008-02-01 Kenichi Handa <handa@m17n.org>
19822
19823 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19824 CODING_ID_EOL_TYPE.
19825
198262008-02-01 Andreas Schwab <schwab@suse.de>
19827
19828 * coding.c (produce_chars): Revert last change.
19829
198302008-02-01 Kenichi Handa <handa@m17n.org>
19831
19832 * charset.h (charset_unicode): Extern it.
19833
19834 * charset.c (string_xstring_p): Check by (C >= 0x100).
19835 (find_charsets_in_text): Change format of the arc CHARSETS. New
19836 arg MULTIBYTE.
19837 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19838 change of find_charsets_in_text.
19839 (Fsplit_char): Fix doc. Never return unknown.
19840
19841 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19842
19843 * coding.c (Fdefine_coding_system_alias): Update
19844 Vcoding_system_list.
19845
19846 * fontset.c (load_font_get_repertory): Pay attention to the case
19847 that ENCODING of a font is specified by a char-table.
19848
19849 * xterm.c (x_get_font_repertory): Handle the case that the
19850 encoding of font is other than Unicode.
19851
198522008-02-01 Kenichi Handa <handa@m17n.org>
19853
19854 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19855 if a character is encodable by the terminal coding system. If
19856 not, produces proper number of `?'s. Update
19857 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19858 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19859
198602008-02-01 Kenichi Handa <handa@m17n.org>
19861
19862 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19863 variables.
19864 (encode_terminal_code): Change argument. Encode multiple
19865 characters at once. Store the result of encoding in
19866 terminal_encode_buffer.
19867 (write_glyphs, insert_glyphs): Adjust for the change of
19868 encode_terminal_code.
19869 (term_init): Initialize terminal_encode_buffer and
19870 terminal_encode_buf_size.
19871
19872 * coding.c (consume_chars): If coding->src_object is nil, don't
19873 check annotation.
19874
198752008-02-01 Kenichi Handa <handa@m17n.org>
19876
19877 * character.c (char_string): Use ASCII_CHAR_P instead of
19878 SINGLE_BYTE_CHAR_P.
19879
198802008-02-01 Kenichi Handa <handa@m17n.org>
19881
19882 * xdisp.c (handle_auto_composed_prop): Check if the last
19883 characters of auto-composed region is newly composed with the
19884 following characters.
19885 (handle_composition_prop): Fix checking of point being inside
19886 composition.
19887
198882008-02-01 Kenichi Handa <handa@m17n.org>
19889
19890 * fns.c (concat): Don't change multibyteness of the result by
19891 concatenating an 8-bit character.
19892
19893 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19894 multibyteness of the result when newelt is an 8-bit character.
19895
198962008-02-01 Dave Love <fx@gnu.org>
19897
19898 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19899 EMACS_INT.
19900
19901 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19902
19903 * xfaces.c (face_numeric_value): Declare dim size_t.
19904 (Finternal_lisp_face_equal_p): Remove unused f.
19905
19906 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19907 (MATRIX_ROW): Remove unused vars.
19908 (draw_glyphs, x_insert_glyphs, fast_find_position)
19909 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19910 byte/char counts.
19911
19912 * regex.c (regex_compile): Remove unused var.
19913
19914 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19915
19916 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19917 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19918
19919 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19920
19921 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19922
19923 * fileio.c (Fwrite_region): Remove unused var.
19924
19925 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19926 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19927
19928 * composite.c (Fremove_list_of_text_properties): Declare.
19929
19930 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19931 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19932 (coding_inherit_eol_type): Remove unused attrs.
19933 (detect_coding): Cast arg of detect_eol.
19934
19935 * charset.c (syms_of_charset): Remove unused var p.
19936 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19937 byte/char counts.
19938
19939 * casetab.c (set_case_table): Remove unused var.
19940
19941 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19942 unused vars.
19943
199442008-02-01 Dave Love <fx@gnu.org>
19945
19946 * xterm.c (x_bitmap_mask): Declare.
19947
199482008-02-01 Dave Love <fx@gnu.org>
19949
19950 * xterm.c (x_term_init): Fix type error.
19951
19952 * lisp.h: Add Funibyte_char_to_multibyte.
19953
19954 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19955 (Fset_coding_system_priority): Doc fix.
19956
19957 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19958
19959 * indent.c (check_composition): Make start and end EMACS_INT.
19960
19961 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19962
19963 * xdisp.c (handle_composition_prop, check_point_in_composition):
19964 Make buffer positions EMACS_INT.
19965
19966 * composite.c (find_composition, run_composition_function)
19967 (update_compositions, Ffind_composition_internal): Make buffer
19968 positions EMACS_INT.
19969
19970 * composite.h (find_composition, update_compositions): Make
19971 position args EMACS_INT.
19972
19973 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19974
19975 * intervals.c (get_property_and_range):
19976 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19977
19978 * unexalpha.c: Don't include varargs.h.
19979
199802008-02-01 Dave Love <fx@gnu.org>
19981
19982 * coding.h (ENCODE_UTF_8): New.
19983
19984 * Makefile.in (gtkutil.o): Depend on coding.h.
19985
19986 * coding.c (Fset_coding_system_priority): Doc fix.
19987
199882008-02-01 Kenichi Handa <handa@m17n.org>
19989
19990 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19991 the case of auto saving.
19992
199932008-02-01 Andreas Schwab <schwab@suse.de>
19994
19995 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19996 `range' from GC.
19997
199982008-02-01 Kenichi Handa <handa@m17n.org>
19999
20000 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20001
200022008-02-01 Kenichi Handa <handa@m17n.org>
20003
20004 * fileio.c (choose_write_coding_system): Return a decided coding system.
20005 (Fwrite_region): Set Vlast_coding_system_used to the return value
20006 of choose_write_coding_system.
20007
200082008-02-01 Kenichi Handa <handa@m17n.org>
20009
20010 * charset.c (Fset_charset_priority): Pay attention to duplicated
20011 arguments.
20012
20013 * coding.c (QCcategory): New variable.
20014 (syms_of_coding): Defsym it. Set all elements of
20015 Vcoding_category_table and their symbol values.
20016 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20017 coding-category-XXX, and coding-category-list.
20018 (Fdefine_coding_system_internal): Add category in the plist.
20019
200202008-02-01 Kenichi Handa <handa@m17n.org>
20021
20022 * callproc.c (Fcall_process): Handle carryover correctly.
20023
20024 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20025 (raw_text_coding_system): Check NILP (coding_system).
20026 (coding_inherit_eol_type): Check NILP (coding_system) and
20027 NILP (parent).
20028 (consume_chars): Fix for the case of raw-text.
20029
20030 * process.c (read_process_output): Handle carryover correctly.
20031
200322008-02-01 Dave Love <fx@gnu.org>
20033
20034 * regex.c (re_search_2): Fix last change.
20035
200362008-02-01 Kenichi Handa <handa@m17n.org>
20037
20038 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20039 target_multibyte. Even in a unibyte case, return a converted
20040 multibyte char.
20041 (GET_CHAR_AFTER): New macro.
20042 (PATFETCH): Translate via multibyte char.
20043 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20044 (SETUP_MULTIBYTE_RANGE): New macro.
20045 (regex_compile): Setup compiled code so that its multibyteness
20046 matches that of a target. Fix the handling of "[X-YZ]" using
20047 SETUP_MULTIBYTE_RANGE.
20048 (analyse_first) <charset>: For filling fastmap for all multibyte
20049 characters, don't check by BASE_LEADING_CODE_P.
20050 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20051 the same as RE_MULTIBYTE_P (bufp) now.
20052 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20053 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20054 (TRANSLATE_VIA_MULTIBYTE): New macro.
20055 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20056 It is the same as RE_MULTIBYTE_P (bufp) now.
20057 <exactn>: Translate via multibyte.
20058 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20059 translate it.
20060 <charset, charset_not>: Fetch a character by
20061 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20062 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20063 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20064 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20065 by GET_CHAR_AFTER.
20066 (bcmp_translate): Likewise.
20067
20068 * search.c (compile_pattern): Check the member target_multibyte,
20069 not the member multibyte of buf.
20070
20071 * lread.c (read1): While reading a string, set force_singlebyte
20072 and force_multibyte correctly.
20073
20074 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20075 up of unibyte_to_multibyte_table.
20076
200772008-02-01 Kenichi Handa <handa@m17n.org>
20078
20079 * coding.c (setup_coding_system): If coding has
20080 post-read-conversion or pre-write-conversion, set
20081 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20082 respectively.
20083 (decode_coding_gap): Run post-read-conversion if any.
20084
20085 * fileio.c (Finsert_file_contents): Even if we read into a
20086 unibyte buffer, check if we must decode the result or not.
20087
200882008-02-01 Kenichi Handa <handa@m17n.org>
20089
20090 * coding.c (make_conversion_work_buffer): Change the work buffer
20091 name to the same one as that of Emacs 21.
20092
200932008-02-01 Kenichi Handa <handa@m17n.org>
20094
20095 * coding.h (make_conversion_work_buffer): Adjust prototype.
20096 (code_conversion_restore): Don't extern it.
20097
20098 * coding.c (detected_mask): Delete unused variable.
20099 (decode_coding_iso_2022): Pay attention to the byte sequence of
20100 CTEXT extended segment, and retain those bytes as is.
20101 (decode_coding_ccl): Delete unused variable `valids'.
20102 (setup_coding_system): Delete unused variable `category'.
20103 (consume_chars): Delete unused variable `category'. Make it work
20104 for non-multibyte case.
20105 (make_conversion_work_buffer): Change argument.
20106 (saved_coding): Delete unused variable.
20107 (code_conversion_restore): Don't check saved_coding->destination.
20108 (code_conversion_save): New function.
20109 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20110 instead of record_unwind_protect.
20111 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20112 (detect_coding_system): Delete unused variable `mask'.
20113 (Fdefine_coding_system_internal): Delete unused variable id.
20114
20115 * fileio.c (kill_workbuf_unwind): New function.
20116 (Finsert_file_contents): On replacing, call
20117 make_conversion_work_buffer with correct args, and call
20118 record_unwind_protect with the first arg kill_workbuf_unwind.
20119
20120 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20121
201222008-02-01 Kenichi Handa <handa@m17n.org>
20123
20124 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20125 (fontset_add): Fix for the case that TO is less than TO1.
20126 (Ffontset_info): Don't use fallback fontset on checking the
20127 default fontset.
20128 (dump_fontset): New function for debugging.
20129
20130 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20131 coding_type is Qcharset.
20132
201332008-02-01 Kenichi Handa <handa@m17n.org>
20134
20135 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20136 (map_char_table): Don't inherit the value from the parent on
20137 initializing VAL. Adjust for the above change.
20138
201392008-02-01 Kenichi Handa <handa@m17n.org>
20140
20141 * coding.c (Qsignature, Qendian): Delete these variables.
20142 (syms_of_coding): Don't initialize them.
20143 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20144 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20145 detect_info->found.
20146 (decode_coding_utf_16): Don't detect BOM here.
20147 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20148 is NOT utf_16_without_bom.
20149 (setup_coding_system): For a coding system of type utf-16, check
20150 if the attribute :endian is Qbig or not (not nil or not), and set
20151 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20152 (detect_coding): If coding type is utf-16 and BOM detection is
20153 required, detect it.
20154 (Fdefine_coding_system_internal): For a coding system of type
20155 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20156
201572008-02-01 Kenichi Handa <handa@m17n.org>
20158
20159 * coding.c (coding_set_source): Fix for the case that the current
20160 buffer is different from coding->src_object.
20161 (decode_coding_object): Don't use the conversion work buffer if
20162 DST_OBJECT is a buffer.
20163
201642008-02-01 Dave Love <fx@gnu.org>
20165
20166 * lread.c (read_emacs_mule_char) [len==2]: Index
20167 emacs_mule_charset correctly.
20168
201692008-02-01 Dave Love <fx@gnu.org>
20170
20171 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20172 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20173 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20174 treated specially.)
20175 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20176 (detected_mask): Remove Big5 bits.
20177
201782008-02-01 Kenichi Handa <handa@m17n.org>
20179
20180 The following changes are to make the font rescaling facility
20181 compatible with Emacs 21.
20182
20183 * xfaces.c (Vface_font_rescale_alist): Rename from
20184 Vface_resizing_fonts.
20185 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20186 (font_rescale_ratio): Rename from font_resizing_ratio.
20187 (split_font_name): Set font->rescale_ratio.
20188 (better_font_p): Pay attention to font->rescale_ratio.
20189 (build_scalable_font_name): Likewise. Change RESX, and RESY
20190 fields.
20191 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20192
201932008-02-01 Kenichi Handa <handa@m17n.org>
20194
20195 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20196 (Qutf_16_le): Remove these variables.
20197 (syms_of_coding): Don't DEFSYM them.
20198 (decode_coding_utf_16): Fix handling of BOM.
20199 (encode_coding_utf_16): Fix handling of BOM.
20200
202012008-02-01 Kenichi Handa <handa@m17n.org>
20202
20203 * fileio.c (Finsert_file_contents): On replacing, before decoding
20204 the file into the work buffer, set point of the work buffer to the end.
20205
202062008-02-01 Dave Love <fx@gnu.org>
20207
20208 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20209
202102008-02-01 Dave Love <fx@gnu.org>
20211
20212 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20213 and fix C types.
20214
202152008-02-01 Kenichi Handa <handa@m17n.org>
20216
20217 * xdisp.c (SKIP_GLYPHS): New macro.
20218 (set_cursor_from_row): Pay attention to string display properties.
20219
20220 * category.c (copy_category_entry): Fix for the case that RANGE
20221 is an integer.
20222
20223 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20224
20225 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20226
202272008-02-01 Kenichi Handa <handa@m17n.org>
20228
20229 * charset.c (Fcharset_id_internal): New function.
20230 (syms_of_charset): Defsubr it.
20231
20232 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20233 with the last arg charset_list acquired from coding.
20234 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20235 the attribute coding_attr_ccl_valids.
20236
20237 * coding.h (enum define_coding_ccl_arg_index): Set the first
20238 member coding_arg_ccl_decoder to coding_arg_max.
20239
20240 * ccl.h (ccl_driver): Adjust prototype.
20241
20242 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20243 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20244 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20245 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20246 last arg Qnil.
20247
202482008-02-01 Kenichi Handa <handa@m17n.org>
20249
20250 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20251 call encode_char.
20252
20253 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20254
202552008-02-01 Dave Love <fx@gnu.org>
20256
20257 * composite.c (syms_of_composite): Make composition_hash_table weak.
20258
202592008-02-01 Kenichi Handa <handa@m17n.org>
20260
20261 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20262 (font_name_registry): Don't extern them.
20263 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20264
20265 * fontset.h (Qfontset): Don't extern it.
20266 (new_fontset_from_font_name): Extern it.
20267
20268 * fontset.c: Give 8 extra slots to fontset objects.
20269 (Qfontset_info): New variable.
20270 (syms_of_fontset): Defsym it.
20271 (FONTSET_FALLBACK): New macro.
20272 (fontset_face): Try also the default fontset.
20273 (make_fontset): Realize a fallback fontset from the default fontset.
20274 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20275 using split_font_name_into_vector and build_font_name_from_vector.
20276 (Fset_fontset_font): Access the elements of font_spec by enum
20277 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20278 name by using split_font_name_into_vector.
20279 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20280 generate a proper font name from the fontset name. Update
20281 Vfontset_alias_alist.
20282 (n_auto_fontsets): New variable.
20283 (new_fontset_from_font_name): New function.
20284 (Ffont_info): Store the information about fonts generated from the
20285 default fontset in the first extra slot of the returned char-table.
20286
20287 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20288 (font_name_registry): Delete function.
20289 (split_font_name_into_vector): New function.
20290 (build_font_name_from_vector): New function.
20291 (font_list): The argument REGISTRY is now a list of registry names.
20292 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20293 specifies an explicit font name, return the name as is. Make a
20294 list of registy names.
20295
20296 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20297 of x_new_fontset.
20298 (Fx_create_frame): Don't call x_new_fontset here. Just use
20299 x_list_fonts to check the existence of fonts.
20300
20301 * xterm.h (x_new_fontset): Adjust prototype.
20302
20303 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20304 string. Use new_fontset_from_font_name to create a fontset from a
20305 font name.
20306
203072008-02-01 Kenichi Handa <handa@m17n.org>
20308
20309 * syntax.c (Vfind_word_boundary_function_table): New name for
20310 Vnext_word_boundary_function_table.
20311 (find-word-boundary-function-table): New name for
20312 next-word-boundary-function-table.
20313
203142008-02-01 Dave Love <fx@gnu.org>
20315
20316 * Makefile.in: Fix some dependencies.
20317
20318 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20319 set it to nil before returning.
20320
20321 * composite.c (update_compositions): Fix type error.
20322
20323 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20324
203252008-02-01 Kenichi Handa <handa@m17n.org>
20326
20327 * xterm.c (x_new_font): Optimize for the case that the font is
20328 already set for the frame.
20329
203302008-02-01 Kenichi Handa <handa@m17n.org>
20331
20332 * chartab.c (char_table_ascii): Check if the char table contents
20333 is sub-char-table or not.
20334 (char_table_set, char_table_set_range): Fix argument to
20335 char_table_ascii.
20336
20337 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20338 (detect_coding_utf_8, detect_coding_utf_16)
20339 (detect_coding_emacs_mule, detect_coding_iso_2022)
20340 (detect_coding_sjis, detect_coding_big5)
20341 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20342 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20343 sequence is valid in this coding system. Change callers.
20344 (MAX_ANNOTATION_LENGTH): New macro.
20345 (ADD_ANNOTATION_DATA): New macro.
20346 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20347 ADD_ANNOTATION_DATA. Change the format of annotation data.
20348 (ADD_CHARSET_DATA): New macro.
20349 (emacs_mule_char): New argument ID. Change callers.
20350 (decode_coding_emacs_mule, decode_coding_iso_2022)
20351 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20352 Produce charset annotation data in coding->charbuf.
20353 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20354 to charset annotation data in coding->charbuf.
20355 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20356 coding->common_flags if the coding system is iso-2022 based and
20357 uses designation.
20358 (produce_composition): Adjust for the new annotation data format.
20359 (produce_charset): New function.
20360 (produce_annotation): Handle charset annotation.
20361 (handle_composition_annotation, handle_charset_annotation): New
20362 functions.
20363 (consume_chars): Handle charset annotation. Utilize the above two
20364 functions.
20365 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20366 buffer, get the deleted text as a string and set
20367 coding->src_object to that string.
20368 (detect_coding, detect_coding_system): Use the new struct
20369 coding_detection_info.
20370
20371 * coding.h (struct coding_detection_info): New structure.
20372 (struct coding_system): Adjust prototype of the member `detector'.
20373 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20374
203752008-02-01 Kenichi Handa <handa@m17n.org>
20376
20377 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20378
203792008-02-01 Dave Love <fx@gnu.org>
20380
20381 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20382 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20383 to new local and nullify apropos_accumulate before returning.
20384 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20385
203862008-02-01 Kenichi Handa <handa@m17n.org>
20387
20388 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20389 correctly.
e3eea1fc 20390
aac0c6e3
MR
203912008-02-01 Dave Love <fx@gnu.org>
20392
20393 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20394
203952008-02-01 Kenichi Handa <handa@m17n.org>
20396
20397 The following changes are to make character composition happen
20398 automatically on displaying.
20399
20400 * Makefile.in (lisp, shortlisp): Add composite.elc.
20401
20402 * composite.h (Qauto_composed, Vauto_composition_function)
20403 (Qauto_composition_function): Extern them.
20404
20405 * composite.c (Vcomposition_function_table)
20406 (Qcomposition_function_table): Delete variables.
20407 (Qauto_composed, Vauto_composition_function)
20408 (Qauto_composition_function): New variables.
20409 (run_composition_function): Don't call
20410 compose-chars-after-function.
20411 (update_compositions): Clear `auto-composed' text property.
20412 (compose_chars_in_text): Delete this function.
20413 (syms_of_composite): Staticpro Qauto_composed and
20414 Qauto_composition_function. Declare Vauto_composition_function as
20415 a Lisp variable.
20416
20417 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20418
20419 * xdisp.c (it_props): Add an entry for Qauto_composed.
20420 (handle_auto_composed_prop): New function.
20421
20422 * xselect.c (selection_data_to_lisp_data): Don't call
20423 compose_chars_in_text.
20424
204252008-02-01 Dave Love <fx@gnu.org>
20426
20427 * keyboard.c (read_char): Modify checking around use of
20428 Vkeyboard_translate_table.
20429
20430 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20431 and fix C types.
20432
204332008-02-01 Kenichi Handa <handa@m17n.org>
20434
20435 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20436 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20437 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20438 the case that the last byte is '\r' correctly.
20439 (decode_coding): Flush out the unprocessed data correctly.
20440 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20441
204422008-02-01 Dave Love <fx@gnu.org>
20443
20444 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20445 Add XK_ISO... case.
20446 (xaw_scroll_callback): Revert last change.
20447
204482008-02-01 Kenichi Handa <handa@m17n.org>
20449
20450 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20451
204522008-02-01 Kenichi Handa <handa@m17n.org>
20453
20454 * xfaces.c (Vface_resizing_fonts): New variable.
20455 (struct font_name): New member `resizing_ratio'.
20456 (font_resizing_ratio): New function.
20457 (split_font_name): Set font->resizing_ratio.
20458 (better_font_p): Pay attention to font->resizing_ratio.
20459 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20460 RESX, and RESY fields.
20461 (try_alternative_families): Try scalable fonts if
20462 Vscalable_fonts_allowed is not Qt.
20463 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20464
204652008-02-01 Dave Love <fx@gnu.org>
20466
20467 * xterm.c (xaw_scroll_callback): Cast correctly.
20468
204692008-02-01 Dave Love <fx@gnu.org>
20470
20471 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20472 (lispy_kana_keys): Comment out.
20473 (make_lispy_event) [XK_kana_A]: Comment out.
20474
20475 * xterm.c (xaw_scroll_callback): Cast call_data.
20476 (XTread_socket): Deal with ASCII keysyms.
20477 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20478
204792008-02-01 Dave Love <fx@gnu.org>
20480
20481 * xterm.c (Vx_keysym_table): New.
20482 (syms_of_xterm): Initialize it.
20483 (XTread_socket): Use it.
20484 From head: Eliminate incorrect optimization that tried to avoid
20485 decoding the output of X*LookupString.
20486 (x_get_font_repertory): Delete charset declaration.
20487
204882008-02-01 Kenichi Handa <handa@m17n.org>
20489
20490 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20491 return 0.
20492 (Fdefine_coding_system_internal): Setup
20493 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20494
204952008-02-01 Dave Love <fx@gnu.org>
20496
20497 * coding.c (Fcheck_coding_system): Doc fix.
20498
20499 * editfns.c (Finsert_byte): Return a proper value.
20500
205012008-02-01 Kenichi Handa <handa@m17n.org>
20502
20503 * coding.c (decode_coding): Fix args to translate_chars. Pay
20504 attention to Vstandard_translation_table_for_decode.
20505 (encode_coding): Fix args to translate_chars. Pay attention to
20506 Vstandard_translation_table_for_encode.
20507
20508 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20509 SINGLE_BYTE_CHAR_P.
20510
20511 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20512 not by SINGLE_BYTE_CHAR_P.
20513
20514 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20515 SINGLE_BYTE_CHAR_P.
20516
20517 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20518 SINGLE_BYTE_CHAR_P.
20519
20520 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20521 by SINGLE_BYTE_CHAR_P.
20522
20523 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20524 SINGLE_BYTE_CHAR_P.
20525
205262008-02-01 Dave Love <fx@gnu.org>
20527
20528 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20529
205302008-02-01 Dave Love <fx@gnu.org>
20531
20532 * fns.c (Flanginfo): Fix typo.
20533
20534 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20535
205362008-02-01 Kenichi Handa <handa@m17n.org>
20537
20538 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20539 (detect_coding_emacs_mule, detect_coding_iso_2022)
20540 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20541 incomplete byte sequence. Don't update *mask when correctly detected.
20542 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20543 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20544 (detect_coding, detect_coding_system): Adjust for the changes above.
20545
205462008-02-01 Kenichi Handa <handa@m17n.org>
20547
20548 * character.c (char_string): Rename from
20549 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20550 (string_char): Rename from string_char.
20551
20552 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20553 if C is greater than MAX_3_BYTE_CHAR.
20554 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20555 string_char instead of string_char_with_unification.
20556
205572008-02-01 Dave Love <fx@gnu.org>
20558
20559 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20560
205612008-02-01 Kenichi Handa <handa@m17n.org>
20562
20563 * keymap.c (push_key_description): Pay attention to force_multibyte.
20564
20565 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20566
205672008-02-01 Dave Love <fx@gnu.org>
20568
20569 * charset.c (define_charset_internal): Rename `supprementary'.
20570
20571 * Makefile.in (lisp, shortlisp): Remove latin-N.
20572
205732008-02-01 Dave Love <fx@gnu.org>
20574
20575 * xfns.c (x_window, x_window): Use use_xim.
20576
20577 * xterm.c (use_xim): Initialize.
20578 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20579 (x_term_init): Maybe set use_xim.
20580
20581 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20582
205832008-02-01 Kenichi Handa <handa@m17n.org>
20584
20585 * search.c (search_buffer): Fix case-fold-search of multibyte
20586 characters.
20587 (boyer_moore): Rename the last argument to char_high_bits.
20588
205892008-02-01 Kenichi Handa <handa@m17n.org>
20590
20591 * xdisp.c (display_string): Fix for the case of zero width glyph.
20592
20593 * xfns.c (x_set_font): Change the error message of the case that
20594 x_new_fontset returns Qt.
20595
20596 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20597 (Finternal_set_lisp_face_attribute): Use signal_error for the
20598 error of invalid fontset.
20599
20600 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20601 fontset, return Qt.
20602
206032008-02-01 Dave Love <fx@gnu.org>
20604
20605 * unexelf.c (unexec): Make .got handling not SGI-specific.
20606
20607 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20608
20609 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20610
20611 * keyboard.c (read_key_sequence): Fix type error.
20612
20613 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20614 type error.
20615
20616 * fontset.c (fontset_add): Return Lisp_Object.
20617
206182008-02-01 Dave Love <fx@gnu.org>
20619
20620 * charset.h (charset_ordered_list_tick): Declare extern.
20621
206222008-02-01 Kenichi Handa <handa@m17n.org>
20623
20624 The following changes (and some of 2008-02-01 changes of mine) are
20625 for handling syntax, category, and case conversion for unibyte
20626 characters by converting them to multibyte on the fly. With these
20627 changes, we don't have to setup syntax and case tables for unibyte
20628 characters in each language environment.
20629
20630 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20631 multibyte if necessary.
20632
20633 * bytecode.c (Fbyte_code): Likewise.
20634
20635 * character.h (LEADING_CODE_LATIN_1_MIN)
20636 (LEADING_CODE_LATIN_1_MAX): New macros.
20637 (unibyte_to_multibyte_table): Extern it.
20638 (unibyte_char_to_multibyte): New macro.
20639 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20640 (CHAR_LEADING_CODE): New macro.
20641 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20642
20643 * character.c (unibyte_to_multibyte_table): New variable.
20644 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20645 (multibyte_char_to_unibyte): If C is an eight-bit character,
20646 convert it to the corresponding byte value.
20647
20648 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20649 not 1, signals an error. Update the elements of
20650 unibyte_to_multibyte_table.
20651 (init_charset_once): Initialize unibyte_to_multibyte_table.
20652 (syms_of_charset): Define the charset `iso-8859-1'.
20653
20654 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20655 as is without converting it to unibyte. In a unibyte buffer,
20656 convert C to multibyte before checking the syntax.
20657
20658 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20659
20660 * minibuf.c (Fminibuffer_complete_word): Use the macro
20661 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20662
20663 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20664
20665 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20666 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20667 that is zero, convert an eight-bit char to multibyte.
20668 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20669 non-emacs case.
20670 (PATFETCH): Convert an eight-bit char to multibyte.
20671 (HANDLE_UNIBYTE_RANGE): New macro.
20672 (regex_compile): Setup the compiled pattern for multibyte chars
20673 even if the given regex string is unibyte. Use PATFETCH_RAW
20674 instead of PATFETCH in many places. To handle `charset'
20675 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20676 only for ASCII chars.
20677 (analyse_first) <exactn>: Simplify because the compiled pattern
20678 is multibyte.
20679 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20680 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20681 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20682 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20683 multibyte always 1.
20684 (re_search_2): In emacs, set the locale variable multibyte to 1,
20685 otherwise to 0. New local variable target_multibyte. Check it
20686 to decide the multibyteness of STR1 and STR2. If
20687 target_multibyte is zero, convert unibyte chars to multibyte
20688 before translating and checking fastmap.
20689 (TARGET_CHAR_AND_LENGTH): New macro.
20690 (re_match_2_internal): In emacs, set the locale variable multibyte
20691 to 1, otherwise to 0. New local variable target_multibyte. Check
20692 it to decide the multibyteness of STR1 and STR2. Use
20693 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20694 <charset, charset_not>: If multibyte is nonzero, check fastmap
20695 only for ASCII chars. Call bcmp_translate with
20696 target_multibyte, not with multibyte.
20697 <begline>: Declare the local variable C as `unsigned'.
20698 (bcmp_translate): Change the last arg name to target_multibyte.
20699
20700 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20701 the regexp pattern and the matching target. Set cp->buf.multibyte
20702 to the multibyteness of the regexp pattern. Set
20703 cp->but.target_multibyte to the multibyteness of the matching target.
20704 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20705 FETCH_STRING_CHAR_ADVANCE.
20706 (Freplace_match): Convert unibyte chars to multibyte.
20707
20708 * syntax.c (char_quoted, back_comment, scan_words)
20709 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20710 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20711 unibyte chars to multibyte.
20712 (skip_chars): Delete the arg syntaxp, and move the code for
20713 handling syntaxes to skip_syntaxes. Change callers.
20714 Fix the case that the multibyteness of STRING and the current
20715 buffer doesn't match.
20716 (skip_syntaxes): New function.
20717 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20718 SINGLE_BYTE_CHAR_P.
20719
207202008-02-01 Kenichi Handa <handa@m17n.org>
20721
20722 * xfaces.c (QCfontset): New variable.
20723 (LFACE_FONTSET): New macro.
20724 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20725 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20726 (Finternal_set_lisp_face_attribute)
20727 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20728 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20729 check also LFACE_FONTSET_INDEX.
20730 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20731 attrs[LFACE_FONT_INDEX].
20732 (syms_of_xfaces): Intern and staticpro QCfontset.
20733
20734 * dispextern.h (enum lface_attribute_index): New member
20735 LFACE_FONTSET_INDEX.
20736
20737 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20738
207392008-02-01 Kenichi Handa <handa@m17n.org>
20740
20741 * coding.c (coding_set_destination): Fix coding->destination for
20742 the case converting a region.
20743 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20744 (encode_coding_object): Fix coding->dst_pos and
20745 coding->dst_pos_byte for the case converting a region.
20746
20747 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20748
20749 * character.h (BYTE8_STRING): New macro.
20750
20751 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20752
207532008-02-01 Kenichi Handa <handa@m17n.org>
20754
20755 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20756 characters by octal form.
20757
20758 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20759
20760 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20761 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20762 _fetch_multibyte_char_len.
20763 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20764
20765 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20766
20767 * casefiddle.c (casify_object): Simplify. Handle the case that
20768 the case conversion change the byte length.
20769 (casify_region): Likewise.
20770
20771 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20772
20773 * character.c (_fetch_multibyte_char_len): Delete this variable.
20774 (syms_of_character): Setup Vprintable_chars.
20775
20776 * editfns.c (Fchar_equal): Fix for the unibyte case.
20777 (Finsert_byte): New function.
20778 (syms_of_editfns): Defsubr it.
20779
20780 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20781 of direct code 0x3ffff.
20782
20783 * search.c (Freplace_match): Fix for the unibyte case.
20784
207852008-02-01 Kenichi Handa <handa@m17n.org>
20786
20787 * lread.c (safe_to_load_p): Fix the logic.
20788
20789 * syntax.c (scan_words): Don't treat characters belonging to
20790 different scripts as constituting a word.
20791
20792 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20793
20794 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20795
20796 * emacs.c (main): In the case of --unibyte, instead of aborting on
20797 finding non-empty buffer, make it unibyte.
20798
207992008-02-01 Kenichi Handa <handa@m17n.org>
20800
20801 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20802 to create a fontset.
20803
208042008-02-01 Dave Love <fx@gnu.org>
20805
20806 * character.c (Funibyte_char_to_multibyte): Doc fix.
20807
20808 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20809
208102008-02-01 Kenichi Handa <handa@m17n.org>
20811
20812 * fontset.c (fontset_add): Make the type `int'.
20813 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20814
20815 * character.c (unibyte_char_to_multibyte)
20816 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20817 charset_unibyte, not charset_primary.
20818
20819 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20820
20821 * charset.c (charset_unibyte): Rename from charset_primary.
20822 (Funibyte_charset): Rename from Fprimary_charset.
20823 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20824 (syms_of_charset): Adjust for the above changes.
20825
20826 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20827 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20828 it->multibyte_p is zero.
20829
20830 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20831 Delete extern.
20832
208332008-02-01 Kenichi Handa <handa@m17n.org>
20834
20835 * coding.c (Fdefine_coding_system_internal): Fix category setting
20836 for a coding system of type iso-2022.
20837
208382008-02-01 Kenichi Handa <handa@m17n.org>
20839
20840 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20841
208422008-02-01 Kenichi Handa <handa@m17n.org>
20843
20844 * syntax.c (Vnext_word_boundary_function_table): New variable.
20845 (next-word-boundary-function-table): Declare it as a Lisp variable
20846 in syms_of_syntax.
20847 (scan_words): Call functions in Vnext_word_boundary_function_table
20848 if any.
20849
20850 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20851
20852 * fontset.c (fs_load_font): If fontp->charset is not negative,
20853 return fontp without setting its members.
20854
208552008-02-01 Dave Love <fx@gnu.org>
20856
20857 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20858
20859 * m/sparc.h (HAVE_ALLOCA): Delete.
20860
20861 * s/irix6-5.h: Don't include strings.h.
20862 (bcopy, bzero, bcmp): Don't undef.
20863
20864 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20865
20866 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20867 (TIOCSIGSEND): Don't test IRIX6.
20868 (bcopy, bzero, bcmp): Define conditionally.
20869
208702008-02-01 Kenichi Handa <handa@m17n.org>
20871
20872 * buffer.c (Qas, Qmake, Qto): New variables.
20873 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20874 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20875
20876 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20877 we are inserting a process output into a multibyte buffer.
20878
20879 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20880 multibyte_char_to_unibyte.
20881
20882 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20883 by the primary charset, make it eight-bit char.
20884 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20885
20886 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20887 (charset_8_bit__control, charset_8_bit_graphic)
20888 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20889 (define_charset_internal): New function.
20890 (syms_of_charset): Call define_charset_internal for pre-defined
20891 charsets.
20892
20893 * charset.h (charset_8_bit): Extern it.
20894
20895 * coding.c (make_conversion_work_buffer): Adjust for the change
20896 of Fset_buffer_multibyte.
20897 (encode_coding_raw_text): Increment p0 in the loop.
20898
20899 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20900
20901 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20902 for the change of Fset_buffer_multibyte.
20903
20904 * fns.c (Fstring_to_multibyte): New function.
20905 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20906
209072008-02-01 Dave Love <fx@gnu.org>
20908
20909 * xfns.c (x_put_x_image): Declare args.
20910
20911 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20912 (try_font_list): Declare an arg.
20913
20914 * xdisp.c (message2_nolog, set_message): Declare an arg.
20915
20916 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20917
20918 * syntax.c (scan_sexps_forward): Declare an arg.
20919
20920 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20921 Declare an arg.
20922
20923 * lisp.h (Fnew_fontset): Declare.
20924
20925 * keymap.c (push_key_description): Call CHARACTERP correctly.
20926
20927 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20928 (face_for_char): Delete unused vars.
20929 (Fset_fontset_font): Doc fix. Delete unused vars.
20930
20931 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20932
20933 * composite.c (update_compositions): Declare arg.
20934
20935 * cm.c (calccost, cmgoto): Declare args.
20936
20937 * charset.c: Remove `emacs' conditional. Doc fixes.
20938 (map_char_table_for_charset): Declare.
20939
20940 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20941
20942 * ccl.c: Remove `emacs' conditional.
20943
209442008-02-01 Kenichi Handa <handa@m17n.org>
20945
20946 The following changes are to allow specifying multiple font
20947 patterns for a character range (specified by script or charset).
20948
20949 * Makefile.in (abbrev.o): Depend on syntax.h.
20950 (xfaces.o): Depend on charset.h.
20951
20952 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20953 SINGLE_BYTE_CHAR_P.
20954
20955 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20956
20957 * character.h (Vchar_script_table): Extern it.
20958
20959 * character.c (Vscript_alist): Delete.
20960 (Vchar_script_table, Qchar_script_table): New variable.
20961 (syms_of_character): Declare Vchar_script_table as a lisp variable
20962 and initialize it.
20963
20964 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20965 have property char-table-extra-slots, make no extra slot.
20966
20967 * dispextern.h (struct face): Delete member `charset'.
20968 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20969 SINGLE_BYTE_CHAR_P.
20970 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20971 Add prototypes.
20972 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20973 (generate_ascii_font_name): Rename from generate_ascii_font.
20974
20975 * fontset.h (get_font_repertory_func): New prototype.
20976 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20977 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20978
20979 * fontset.c (Qprepend, Qappend): New variables.
20980 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20981 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20982 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20983 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20984 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20985 (load_font_get_repertory): New functions.
20986 (fontset_set): Delete.
20987 (fontset_face): New arg FACE. Return face ID, not face.
20988 Complete re-write to handle new fontset structure. Change caller.
20989 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20990 (face_for_char): Don't call lookup_face.
20991 (make_fontset_for_ascii_face): New arg FACE.
20992 (fs_load_font): New arg CHARSET_ID. Don't check
20993 Vfont_encoding_alist here.
20994 (find_font_encoding): New function.
20995 (list_fontsets): Use STRINGP, not ! NILP.
20996 (accumulate_script_ranges): New function.
20997 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20998 re-written to handle new fontset structure.
20999 (Ffontset_font): Return a copy of element.
21000 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21001 docstring of font-encoding-alist.
21002
21003 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21004 (Fset_fotset_font): Fix arguments to 5.
21005
21006 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21007
21008 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21009 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21010 (highlight_trailing_whitespace): Adjust for the change of
21011 lookup_named_face.
21012
21013 * xfaces.c: Include charset.h.
21014 (load_face_font): Delete argument C. Change caller.
21015 (generate_ascii_font_name): Rename from generate_ascii_font.
21016 (font_name_registry): New function.
21017 (cache_face): Store ascii faces before non-ascii faces in buckets.
21018 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21019 Lookup only ascii faces.
21020 (lookup_non_ascii_face): New function.
21021 (lookup_named_face): Delete argument C. Change caller.
21022 (lookup_derived_face): Delete argument C. Change caller.
21023 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21024 a string, just call font_list with it.
21025 (choose_face_font): Delete arguments FACE and C. New arg
21026 FONT_SPEC. Change caller.
21027 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21028 Change caller.
21029 (realize_non_ascii_face): New function.
21030 (realize_x_face): Call load_face_font here.
21031 (realize_tty_face): Delete argument C. Change caller.
21032 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21033 get a face ID.
21034 (dump_realized_face): Don't print charset of FACE.
21035
21036 * xfns.c (x_set_font): Always call x_new_fontset and
21037 store_frame_parameter.
21038 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21039 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21040
21041 * xterm.h (x_get_font_repertory): Extern it.
21042
21043 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21044 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21045 it->multibyte_p is zero.
21046 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21047 (x_new_fontset): If FONTSETNAME doesn't match any existing
21048 fontsets, create a new one.
21049 (x_get_font_repertory): New function.
21050
210512008-02-01 Kenichi Handa <handa@m17n.org>
21052
21053 * coding.c (Ffind_coding_systems_region_internal): Detect an
21054 ASCII only string correctly.
21055
21056 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21057 version is 0.
21058
210592008-02-01 Kenichi Handa <handa@m17n.org>
21060
21061 * lread.c: Include "coding.h".
21062 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21063 (load_each_byte, unread_char): New variables.
21064 (readchar_backlog): Delete.
21065 (readchar): Return a character unless load_each_byte is nonzero.
21066 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21067 cons. If unread_char is not -1, simply return it.
21068 (unreadchar): Handle the case that readcharfun is
21069 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21070 (read_multibyte): Delete.
21071 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21072 (read_emacs_mule_char): New functions.
21073 (Fload): Even if the file doesn't have the extension ".elc", if
21074 safe_to_load_p returns a positive version number, assume that the
21075 file contains bytecompiled code. If the version is less than 22,
21076 load the file while decoding multibyte sequences by emacs-mule.
21077 (readevalloop): Don't use readchar_backlog.
21078 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21079 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21080 (read_escape): Delete the arg BYTEREP.
21081 (read1): Set load_each_byte to 1 temporarily while handling
21082 #@NUMBER. Don't call read_multibyte.
21083 (read_vector): Call Fread with a cons. If readcharfun is
21084 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21085 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21086 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21087 and Qload_force_doc_strings.
21088
210892008-02-01 Kenichi Handa <handa@m17n.org>
21090
21091 * xdisp.c (face_before_or_after_it_pos): Call
21092 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21093
210942008-02-01 Kenichi Handa <handa@m17n.org>
21095
21096 * character.h (TRAILING_CODE_P): New macro.
21097 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21098 (string_char_with_unification): Fix prototype.
21099 (Vscript_alist): Extern it.
21100
21101 * character.c (Vscript_alist): New variable.
21102 (string_char_with_unification, str_as_unibyte)
21103 (string_escape_byte8): Add `const' to local variables.
21104 (syms_of_character): Declare script-alist as a Lisp variable.
21105
21106 * charset.h (Vcharset_ordered_list): Extern it.
21107 (charset_ordered_list_tick): Extern it.
21108 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21109 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21110 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21111 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21112 (Funify_charset): Adjust for the change of Funify_charset.
21113
21114 * charset.c (charset_ordered_list_tick): New variable.
21115 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21116 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
21117 deunify intead of unify a charset.
21118 (string_xstring_p): Add `const' to local variables.
21119 (find_charsets_in_text): Add `const' to arguments and local variables.
21120 (encode_char): Adjust for the change of Funify_charset. Fix
21121 detecting of invalid code.
21122 (Fset_charset_priority): Increment charset_ordered_list_tick.
21123 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21124 and TO_CODE.
21125
21126 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21127 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21128 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21129 (decode_coding_ccl, consume_chars)
21130 (Ffind_coding_systems_region_internal)
21131 (Fcheck_coding_systems_region): Add `const' to local variables.
21132
21133 * print.c (print_object): Use octal form for printing the
21134 contents of a bool vector.
21135
211362008-02-01 Dave Love <fx@gnu.org>
21137
21138 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21139 <version == 20>: Refuse to load.
21140
211412008-02-01 Dave Love <fx@gnu.org>
21142
21143 * fns.c: Move coding.h.
21144 (Qcodeset, Qdays, Qmonths): New.
21145 (concat): Use CHARACTERP instead of INTEGERP.
21146 (Flocale_codeset): Delete.
21147 (Flanginfo): New function.
21148 (syms_of_fns): Change accordingly.
21149
21150 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21151
211522008-02-01 Dave Love <fx@gnu.org>
21153
21154 * casetab.c (init_casetab_once, init_casetab_once): Fix
21155 CHAR_TABLE_SET call.
21156
21157 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21158
21159 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21160
21161 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21162 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21163 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21164
21165 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21166
21167 * coding.c (ENCODE_DESIGNATION, decode_eol)
21168 (make_conversion_work_buffer, code_conversion_restore)
21169 (Fdefine_coding_system_internal): Convert Lisp types.
21170 (code_conversion_restore): Use EQ, not ==.
21171 (Fencode_coding_string): Fix code_convert_string call.
21172
21173 * coding.h (code_convert_region): Fix prototype.
21174
21175 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21176
21177 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21178 (Ffontset_info): Convert Lisp types.
21179
21180 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21181
21182 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21183
21184 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21185
21186 * chartab.c: Include "...h", not <...h> in some cases.
21187
21188 * callproc.c (Fcall_process): Remove unused variables.
21189
211902008-02-01 Dave Love <fx@gnu.org>
21191
21192 * coding.c (Fset_coding_system_priority): Allow null arg list.
21193
211942008-02-01 Dave Love <fx@gnu.org>
21195
21196 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21197 (Fself_insert_and_exit): Use CHARACTERP.
21198
21199 * callproc.c (Fcall_process): Remove unused vars.
21200
21201 * xterm.c (XTread_socket): Add extra dead keysyms.
21202
21203 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21204
21205 * dispextern.h: Remove prototypes for redraw_frame,
21206 redraw_garbaged_frames.
21207
21208 * cmds.c (Fself_insert_command): Use CHARACTERP.
21209
21210 * chartab.c (make_sub_char_table): Remove unused var.
21211 (Fset_char_table_default, Fmap_char_table): Doc fix.
21212
21213 * keymap.c (access_keymap): Remove generic char code.
21214 (push_key_description): Use CHARACTERP.
21215
212162008-02-01 Dave Love <fx@gnu.org>
21217
21218 * charset.c: Doc fixes.
21219 (Funify_charset): Extra checking.
21220
212212008-02-01 Dave Love <fx@gnu.org>
21222
21223 * lread.c: Remove some unused variables.
21224 (safe_to_load_p): If safe, return the magic number version byte.
21225 (Fload): Maybe use load-with-code-conversion.
21226
212272008-02-01 Kenichi Handa <handa@m17n.org>
21228
21229 * category.c (Fmodify_category_entry): Don't modify the contents
21230 of category_set for characters out of the range. Avoid
21231 unnecessary modification.
21232
21233 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21234 Vchar_unify_table. The default value of the table is now nil.
21235
21236 * character.c (syms_of_character): Setup Vchar_width_table for
21237 eight-bit-control and raw-byte chars.
21238
21239 * charset.h (enum define_charset_arg_index): Delete
21240 charset_arg_parents and add charset_arg_subset and
21241 charset_arg_superset.
21242 (enum charset_attr_index): Delete charset_parents and add
21243 charset_subset and charset_superset.
21244 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21245 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21246 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21247 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21248 (CHARSET_SUPERSET): New macros.
21249 (charset_work): Extern it.
21250 (ENCODE_CHAR): Use charset_work.
21251 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21252 (map_charset_chars): Extern it.
21253
21254 * charset.c (load_charset_map): Set the default value of encoder
21255 and deunifier char-tables to nil.
21256 (map_charset_chars): Change argument. Change callers. Use
21257 map_char_table_for_charset instead of map_char_table.
21258 (Fmap_charset_chars): New optional args from_code and to_code.
21259 (Fdefine_charset_internal): Adjust for the change of
21260 `define-charset' (:parents -> :subset or :superset).
21261 (charset_work): New variable.
21262 (encode_char, syms_of_charset): Adjust for the change of
21263 Fdefine_charset_internal.
21264 (Ffind_charset_string): Setup the vector `charsets' correctly.
21265
21266 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21267 the previous change.
21268 (char_table_ref_and_range): Adjust for the above change.
21269 (map_sub_char_table_for_charset): New function.
21270 (map_char_table_for_charset): New function.
21271
21272 * keymap.c (describe_vector): Handle a char-table directly here.
21273 (describe_char_table): Delete.
21274
21275 * lisp.h (map_charset_chars): Delete.
21276
212772008-02-01 Dave Love <fx@gnu.org>
21278
21279 * fns.c (count_combining): Comment out (unused).
21280 (Flocale_codeset): New.
21281 (syms_of_fns): Defsubr it.
21282
21283 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21284 (size_t): Remove.
21285
212862008-02-01 Dave Love <fx@gnu.org>
21287
21288 * Makefile.in (chartab.o): Depend on charset.h.
21289
212902008-02-01 Kenichi Handa <handa@m17n.org>
21291
21292 * character.c (syms_of_character): Set the default value of
21293 Vprintable_chars to Qnil.
21294
212952008-02-01 Dave Love <fx@gnu.org>
21296
21297 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21298
212992008-02-01 Kenichi Handa <handa@m17n.org>
21300
21301 * charset.c (load_charset_map): Handle the case that from < to
21302 correctly.
21303
21304 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21305 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21306 Pay attention to raw-8-bit chars.
21307
213082008-02-01 Kenichi Handa <handa@m17n.org>
21309
21310 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21311 It is not bytecompiled now.
21312
21313 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21314 (charset_jisx0208): New variables.
21315 (Fdefine_charset_internal): Setup them if appropriate.
21316 (init_charset_once): Initialize them to -1.
21317
21318 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21319 (charset_jisx0208): Extern them.
21320
21321 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21322 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21323 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21324 (setup_iso_safe_charsets): Fix arguments to Fassq.
21325 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21326 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21327 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21328 (encode_coding_iso_2022): Change the 1st arg to
21329 ENCODE_ISO_CHARACTER to a variable.
21330
213312008-02-01 Kenichi Handa <handa@m17n.org>
21332
21333 * charset.h (enum define_charset_arg_index): New enums
21334 charset_arg_min_code and charset_arg_max_code.
21335 (struct charset): New member char_index_offset.
21336
21337 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21338 Take charset->char_index_offset into account.
21339 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21340 args[charset_arg_max_code]. Setup charset.char_index_offset.
21341 (syms_of_charset): Fix args to Fdefine_charset_internal.
21342
213432008-02-01 Dave Love <fx@gnu.org>
21344
21345 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21346
213472008-02-01 Dave Love <fx@gnu.org>
21348
21349 * coding.c: Doc fixes.
21350 (Fcoding_system_aliases): Fix return value.
21351 (Qmac): Remove (duplicated) definition.
21352
213532008-02-01 Dave Love <fx@gnu.org>
21354
362654a6
JB
21355 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21356 New functions.
aac0c6e3
MR
21357
21358 * character.c (Fstring): Doc fix.
21359
21360 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21361
362654a6 21362 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21363 (font-encoding-alist): Doc fix.
21364
213652008-02-01 Dave Love <fx@gnu.org>
21366
21367 * term.c (costs_set): Declare static, non-initialized for pcc.
21368 (encode_terminal_code): Remove unused var.
21369
21370 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21371 for K&R.
21372
21373 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21374
21375 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21376 (suffixes): Move out of make_subsidiaries for K&R.
21377
21378 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21379
21380 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21381
213822008-02-01 Dave Love <fx@gnu.org>
21383
21384 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21385
21386 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21387
213882008-02-01 Yong Lu <lyongu@asia-infonet.com>
21389
21390 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21391
21392 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21393
213942008-02-01 Kenichi Handa <handa@m17n.org>
21395
21396 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21397 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21398
213992008-02-01 Kenichi Handa <handa@m17n.org>
21400
21401 * coding.c (decode_coding_charset): Adjust for the change of
21402 Fdefine_coding_system_internal.
21403 (Fdefine_coding_system_internal): For a coding system of
21404 `charset' type, store a list of charset IDs in
21405 `charset_attr_charset_valids' element of coding attributes.
21406
214072008-02-01 Kenichi Handa <handa@m17n.org>
21408
21409 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21410 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21411 caller. Handle 2-byte and 3-byte charsets correctly.
21412 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21413 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21414 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21415 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21416 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21417 sequence.
21418 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21419 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21420 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21421 and alt&rule composition.
21422 (decode_coding_iso_2022): Handle composition correctly.
21423 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21424
21425 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21426 re-defining a charset. If the charset has :emacs-mule-id, setup
21427 emacs_mule_bytes.
21428 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21429
214302008-02-01 Kenichi Handa <handa@m17n.org>
21431
21432 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21433 (encode_coding_big5, encode_coding_charset): If coding requires safe
21434 encoding, produce a character specified by
21435 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21436
214372008-02-01 Dave Love <fx@gnu.org>
21438
21439 * xterm.c (XSetIMValues): Declare.
21440
21441 * process.c: Conditionally include sys/wait.h, pty.h.
21442
21443 * print.c (print_object): Fix print format for 64-bit systems.
21444
21445 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21446
21447 * buffer.c (emacs_strerror): Declare.
21448
21449 * fontset.c (Fclear_face_cache): Declare.
21450 (accumulate_font_info): Comment-out (unused).
21451 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21452 variables.
21453
21454 * character.h (string_escape_byte8): Declare.
21455
21456 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21457 unused vars.
21458 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21459 (Fmap_charset_chars): Doc fix.
21460
21461 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21462 (Fset_coding_system_priority, Fset_coding_system_priority)
21463 (Fdefine_coding_system_internal): Doc fix.
21464
214652008-02-01 Dave Love <fx@gnu.org>
21466
21467 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21468
214692008-02-01 Kenichi Handa <handa@m17n.org>
21470
21471 * character.c (string_escape_byte8): Make multibyte string with
21472 correct size.
21473
21474 * charset.c (Fmake_char): Delete unnecessary code.
21475
214762008-02-01 Kenichi Handa <handa@m17n.org>
21477
21478 * xfns.c (x_encode_text): Allocate coding.destination here, and
21479 call encode_coding_object with dst_object Qnil.
21480
21481 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21482 multibyte form correctly.
21483
21484 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21485 against Vfont_encoding_alist.
21486
21487 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21488 handling of charset list.
21489 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21490 (decode_coding_object): Move point to coding->dst_pos before
21491 calling post-read-conversion function.
21492 (encode_coding_object): Give correct arguments to
21493 pre-write-conversion. Ignore the return value of
21494 pre-write-conversion function. Pay attention to the case that
21495 pre-write-conversion changes the current buffer. If dst_object is
21496 Qt, even if coding->src_bytes is zero, allocate at least one byte
21497 to coding->destination.
21498
21499 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21500
21501 * charset.c (Fmake_char): Make it more backward compatible.
21502 (Fmap_charset_chars): Fix docstring.
21503
215042008-02-01 Dave Love <fx@gnu.org>
21505
21506 * coding.c: Doc fixes.
21507 (Fdefine_coding_system_alias): Use names, not symbols, in
21508 coding-system-alist.
21509
215102008-02-01 Kenichi Handa <handa@m17n.org>
21511
21512 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21513 of calling free_realized_face.
21514
215152008-02-01 Yong Lu <lyongu@asia-infonet.com>
21516
21517 * charset.c (read_hex): Don't treat SPC as a comment starter.
21518 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21519 (Fdecode_char): Fix typo.
21520
215212008-02-01 Kenichi Handa <handa@m17n.org>
21522
21523 * charset.h (struct charset): New member `code_space_mask'.
21524
21525 * coding.c (coding_set_source): Delete the local variable beg_byte.
21526 (encode_coding_charset, Fdefine_coding_system_internal):
21527 Delete the local variable charset.
21528 (Fdefine_coding_system_internal): Setup
21529 attrs[coding_attr_charset_valids] correctly.
21530
21531 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21532 member to check if CODE is valid or not.
21533 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21534 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21535 is within the range of charset->min_code and carset->max_code.
21536
215372008-02-01 Dave Love <fx@gnu.org>
21538
21539 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21540
21541 * dispextern.h (generate_ascii_font): Fix return type.
21542
21543 * xfaces.c (generate_ascii_font): Fix arg declaration.
21544
21545 * coding.c (coding_inherit_eol_type)
21546 (Fset_terminal_coding_system_internal)
21547 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21548
215492008-02-01 Kenichi Handa <handa@m17n.org>
21550
21551 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21552 multiple charsets correctly.
21553
215542008-02-01 Kenichi Handa <handa@m17n.org>
21555
21556 * search.c (boyer_moore): Fix handling of multibyte character
21557 translation.
21558
21559 * xdisp.c (display_mode_element): When the variable `elt' is
21560 changed, update `this' and `lisp_string'.
21561
215622008-02-01 Kenichi Handa <handa@m17n.org>
21563
21564 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21565
21566 * callproc.c (Fcall_process): Be sure to give the current buffer
21567 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21568
21569 * charset.c (struct charset_map_entries): New struct.
21570 (load_charset_map): Rename from parse_charset_map. New args
21571 entries and n_entries. Change caller.
21572 (load_charset_map_from_file): Rename from load_charset_map.
21573 Change caller. New arg control_flag. Call load_charset_map at
21574 the tail.
21575 (load_charset_map_from_vector): New function.
21576 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21577 (encode_char): If the charset is compact, change a character index
21578 to a code point.
21579
21580 * coding.c (coding_alloc_by_making_gap): Check the case that the
21581 source and destination are the same correctly.
21582 (decode_coding_raw_text): Set coding->consumed_char and
21583 coding->consumed to 0.
21584 (produce_chars): If coding->chars_at_source is nonzero, update
21585 coding->consumed_char and coding->consumed before calling
21586 alloc_destination.
21587 (Fdefine_coding_system_alias): Register ALIAS in
21588 Vcoding_system_alist.
21589 (syms_of_coding): Define `no-conversion' coding system at the tail.
21590
21591 * fileio.c (Finsert_file_contents): Set coding_system instead of
21592 val. If the current buffer is multibyte, always call
21593 decode_coding_gap.
21594
21595 * xfaces.c (try_font_list): Give higher priority to fontset's
21596 family than face's family.
21597
215982008-02-01 Kenichi Handa <handa@m17n.org>
21599
21600 * callproc.c (Fcall_process): Be sure to give the current buffer
21601 to decode_coding_c_string.
21602
21603 * xfaces.c (try_font_list): Give a family specified in a fontset
21604 higher priority than a family specified in a face.
21605
216062008-02-01 Kenichi Handa <handa@m17n.org>
21607
21608 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21609 Fix arguments to insert_from_buffer.
21610
21611 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21612
216132008-02-01 Kenichi Handa <handa@m17n.org>
21614
21615 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21616 (decode_coding_gap): Set coding->dst_multibyte correctly.
21617
216182008-02-01 Kenichi Handa <handa@m17n.org>
21619
21620 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21621 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21622 (encode_coding_utf_16): Substitute coding->default_char for
21623 non-Unicode characters.
21624 (decode_coding): Don't call record_insert here.
21625 (setup_coding_system): Initialize `surrogate' of
21626 coding->spec.utf_16 to 0.
21627 (EMIT_ONE_BYTE): Fix for multibyte case.
21628
21629 * insdel.c (insert_from_gap): Call record_insert.
21630
216312008-02-01 Kenichi Handa <handa@m17n.org>
21632
21633 * casefiddle.c (casify_region): Fix multibyte case.
21634
21635 * character.c (c_string_width): Add return type `int'.
21636 (char_string_with_unification): Delete arg ADVANCED.
21637
21638 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21639 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21640 (CHAR_STRING_ADVANCE): Make it do-while statement.
21641
21642 * chartab.c (sub_char_table_set_range): Optimize for the case
21643 DEPTH == 3. Add workaround code for a GCC optimization bug.
21644
21645 * charset.c (parse_charset_map): Remove an unused variable.
21646
21647 * coding.c: Delete unused variables.
21648
21649 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21650 earlier. If inserted is zero and the coding system doesn't
21651 require flushing, don't call decode_coding_gap.
21652
21653 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21654
216552008-02-01 Kenichi Handa <handa@m17n.org>
21656
21657 The following changes are for using Unicode as an internal
21658 character model, and use UTF-8 format for buffer/string
21659 representation.
21660
21661 * .gdbinit (xchartable): Adjust for the change of char table structure.
21662 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21663
21664 * Makefile.in (obj): Add character.o and chartab.o.
21665 (lisp, shortlisp): Remove utf-8.elc.
21666 (*.o): For many files, change dependency on charset.h to
21667 character.h, and add dependency on character.h.
21668 (character.o, chartab.o): New targets.
21669
21670 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21671 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21672 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21673 of "charset.h".
21674
21675 * dired.c, filelock.c: Include "character.h".
21676
21677 * alloc.c: Include "character.h" instead of "charset.h".
21678 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21679 (syms_of_alloc): Remove defsubr for Smake_char_table.
21680
21681 * buffer.c: Include "character.h" instead of "charset.h", don't
21682 include "coding.h".
21683 (Fset_buffer_multibyte): Adjust for UTF-8.
21684
21685 * buffer.h: EXFUN Fbuffer_live_p.
21686
21687 * callproc.c: Include "character.h" instead of "charset.h".
21688 (Fcall_process): Big change for the new code-conversion APIs.
21689
21690 * casetab.c: Include "character.h" instead of "charset.h".
21691 (set_canon, set_identity, shuffle): Adjust for the new
21692 map_char_table spec.
21693 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21694 accessing the char table structure.
21695
21696 * chartab.c: New file that implements char table.
21697
21698 * category.c: Include "character.h".
21699 (copy_category_entry): New function.
21700 (copy_category_table): Call map_char_table and copy_category_entry.
21701 (Fmake_category_table): Initialize all top-level slots.
21702 (char_category_set): New function.
21703 (modify_lower_category_set): Delete.
21704 (Fmodify_category_entry): Call char_table_ref_and_range.
21705
21706 * category.h (CATEGORY_SET): Just call char_category_set.
21707
21708 * ccl.c: Include "character.h".
21709 (Qccl, Qcclp): New variables.
21710 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21711 it's less than 256.
21712 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21713 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21714 and DST type.
21715 (ccl_driver): Change types of argument, adjust code accordingly.
21716 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21717 ccl_driver.
21718 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21719
21720 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21721 New members src_multibyte, dst_multibyte, consumed, and produced.
21722 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21723 (CODING_SPEC_CCL_PROGRAM): New macro.
21724 (ccl_driver): Update prototype.
21725 (Qccl, Qcclp, Fccl_program_p): Extern them.
21726 (CHECK_CCL_PROGRAM): New macro.
21727
21728 * character.c, character.h, chartab.c: New files.
21729
21730 * charset.c: Mostly re-written. Move character and multibyte sequence
21731 handling codes to character.c.
21732
21733 * charset.h: Mostly re-written. Move character and multibyte sequence
21734 handling codes to character.h.
21735
21736 * coding.c, coding.h: Mostly re-written.
21737
21738 * composite.c: Include "character.h" instead of "charset.h".
21739 (CHAR_WIDTH): Move to character.h.
21740 (HASH_KEY, HASH_VALUE): Delete.
21741
21742 * composite.h (enum composition_method): Change order of enumeration
21743 symbols.
21744
21745 * data.c: Include "character.h" instead of "charset.h".
21746 (Faref): Call CHAR_TABLE_REF for a char table.
21747 (Faset): Call CHAR_TABLE_SET for a char table.
21748
21749 * dispextern.h (free_realized_face, check_face_attribytes)
21750 (generate_ascii_font): Extern them.
21751 (free_realized_multibyte_face): Delete extern.
21752
21753 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21754 table structure.
21755
21756 * editfns.c: Include "character.h" instead of "charset.h".
21757 (Fchar_to_string): Always call CHAR_STRING.
21758
21759 * emacs.c (main): Call init_charset_once, init_charset,
21760 syms_of_chartab, and syms_of_character.
21761
21762 * fileio.c: Include "character.h" instead of "charset.h".
21763 (Finsert_file_contents): Big change for the new code-conversion API.
21764 (choose_write_coding_system, Fwrite_region): Likewise.
21765 (build_annotations_2): Delete.
21766 (e_write): Big change for the new code-conversion API.
21767
21768 * fns.c: Include "character.h" instead of "charset.h".
21769 (copy_sub_char_table): Move to chartab.c.
21770 (Fcopy_sequence): Call copy_char_table for a char table.
21771 (concat): Delete codes calling count_multibyte.
21772 (string_char_to_byte, string_byte_to_char): Adjust for the new
21773 multibyte form.
21774 (internal_equal): Adjust for the change of char table structure.
21775 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21776 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21777 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21778 (char_table_translate, optimize_sub_char_table)
21779 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21780 chartab.c.
21781 (char_table_ref_and_index): Delete.
21782 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21783 (Fmd5): Call preferred_coding_system instead of accessing
21784 Vcoding_category_list. Adjust for the new code-conversion API.
21785 (syms_of_fns): Move defsubr for char table related functions to
21786 chartab.c.
21787
21788 * fontset.c: Mostly re-written.
21789
21790 * fontset.h (struct font_info): Change type of the member encoding_type.
21791 (enum FONT_SPEC_INDEX): New enum.
21792 (fontset_font_pattern, fs_load_font): Update prototype.
21793 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21794
21795 * indent.c: Include "character.h" instead of "charset.h".
21796 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21797
21798 * insdel.c: Include "character.h" instead of "charset.h".
21799 (copy_text): Don't refer to Vnonascii_translation_table.
21800 (insert_from_gap): New function.
21801
21802 * keyboard.c: Include "character.h" instead of "charset.h".
21803 (command_loop_1): Never call direct_output_forward_char before
21804 a non-ASCII character.
21805 (read_char): If Vkeyboard_translate_table is a char table, always
21806 translate a character.
21807
21808 * keymap.c: Include "character.h".
21809 (store_in_keymap): Handle the case that IDX is a cons.
21810 (Fdefine_key): Handle the case that KEY is a cons and the car part
21811 is also a cons (range).
21812 (push_key_description): Adjust for the new character code.
21813 (describe_vector): Call describe_char_table for a char table.
21814 (describe_char_table): New function.
21815
21816 * keymap.h (describe_char_table): Extern it.
21817
21818 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21819 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21820 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21821 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21822 Delete.
21823 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21824 structure.
21825 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21826 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21827 (CHARTAB_SIZE_BITS_3): New macros.
21828 (chartab_size): Extern it.
21829 (struct Lisp_Char_Table): Re-design.
21830 (struct Lisp_Sub_Char_Table): New structure.
21831 (HASH_KEY, HASH_VALUE): Move from fns.c.
21832 (CHARACTERBITS): Define as 22.
21833 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21834 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21835 (GC_SUB_CHAR_TABLE_P): New macro.
21836 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21837 (code_convert_string_norecord): Deleted extern.
21838 (init_character_once, syms_of_character, init_charset)
21839 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21840
21841 * lread.c: Include "character.h".
21842 (read_multibyte): New arg NBYTES.
21843 (read_escape): Change the meaning of returned *BYTEREP.
21844 (to_multibyte): Delete.
21845 (read1): Adjust the handling of char table and string.
21846
21847 * print.c: Include "character.h" instead of "charset.h".
21848 (print_string): Convert 8-bit raw bytes to octal form by
21849 string_escape_byte8.
21850 (print_object): Adjust for the new multibyte form. Print 8-bit
21851 raw bytes always in octal form. Handle sub char table correctly.
21852
21853 * process.c: Include "character.h" instead of "charset.h".
21854 (read_process_output, send_process): Adjust for the new
21855 code-conversion API.
21856
21857 * puresize.h (BASE_PURESIZE): Increase.
21858
21859 * regex.c: Include "character.h" instead of "charset.h".
21860 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21861 (regex_compile): Accept a range whose starting and ending
21862 character have different leading bytes.
21863 (analyse_first): Adjust for the above change.
21864
21865 * search.c: Include "character.h" instead of "charset.h".
21866 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21867 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21868
21869 * syntax.c: Include "character.h" instead of "charset.h".
21870 (syntax_parent_lookup): Delete.
21871 (Fmodify_syntax_entry): Accept a cons as CHAR.
21872 (skip_chars): Adjust for the new multibyte form.
21873 (init_syntax_once): Call char_table_set_range instead of directly
21874 accessing the structure of a char table.
21875
21876 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21877 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21878 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21879 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21880
21881 * term.c: Include "buffer.h" and "character.h".
21882 (encode_terminal_code, write_glyphs): Adjust for the new
21883 code-conversion API.
21884 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21885
21886 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21887
21888 * xdisp.c: Include "character.h".
21889 (get_next_display_element): Adjust for the new multibyte form.
21890 (disp_char_vector): Adjust for the new char table structure.
21891 (decode_mode_spec_coding): Adjust for the new structure of
21892 coding system.
21893 (decode_mode_spec): Adjust for the new code-conversion API.
21894
21895 * xfaces.c: Include "character.h" instead of "charset.h".
21896 (load_face_font): Adjust for the change of choose_face_font and
21897 FS_LOAD_FONT.
21898 (generate_ascii_font): New function.
21899 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21900 (set_font_frame_param): Adjust for the change of choose_face_font.
21901 (free_realized_face): Make it public.
21902 (free_realized_faces_for_fontset): Rename from
21903 free_realized_multibyte_face. Free also faces realized for ASCII.
21904 (choose_face_font): Change arguments. Adjust for the change of
21905 fontset_font_pattern and FS_LOAD_FONT.
21906
21907 * xfns.c: Include "character.h".
21908 (x_encode_text): Adjust for the new code-conversion API.
21909
21910 * xselect.c: Don't include "charset.h".
21911 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21912
21913 * xterm.c: Include "character.h".
21914 (x_encode_char): New argument CHARSET. Change caller.
21915 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21916 Call ENCODE_CHAR instead of SPLIT_CHAR.
21917 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21918 CHAR_WIDTH instead of CHARSET_WIDTH.
21919 (XTread_socket): Adjust for the new code-conversion API.
21920 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21921 (x_load_font): Adjust for the change of struct font.
21922
219232008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21924
21925 * xfaces.c (face_at_buffer_position): Remove unused vars.
21926
219272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21928
21929 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21930 Fix overflow checking.
21931
219322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21933
21934 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21935 Cancel previous change.
21936
219372008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21938
21939 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21940 ccl->eight_bit_control. Fix check for buffer overflow.
21941 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21942 (ccl_driver): Initialize extra_bytes to 0.
21943
219442008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21945
21946 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21947 return it ORed with ctrl_modifier.
21948
219492008-01-29 Miles Bader <miles@gnu.org>
21950
21951 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21952
219532008-01-28 Jason Rumney <jasonr@gnu.org>
21954
21955 * w32.c (stat): Don't double check for networked drive.
21956
219572008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21958
21959 * window.c (run_window_configuration_change_hook): New function.
21960 Code extracted from set_window_buffer. Set the selected frame.
21961 (set_window_buffer): Use it.
21962 * window.h (run_window_configuration_change_hook): Declare.
21963 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21964
21965 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21966
219672008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21968
21969 * Makefile.in: Remove references to unused macros.
21970
219712008-01-26 Eli Zaretskii <eliz@gnu.org>
21972
21973 * w32.c (g_b_init_get_sid_sub_authority)
21974 (g_b_init_get_sid_sub_authority_count): New static variables.
21975 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21976 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21977 (init_user_info): Use them to retrieve uid and gid.
21978 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21979 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21980 st_uid and st_gid of the file.
21981
219822008-01-26 Jason Rumney <jasonr@gnu.org>
21983
21984 * w32.c (logon_network_drive): New function.
21985 (stat): Use it.
21986
219872008-01-26 Chong Yidong <cyd@stupidchicken.com>
21988
21989 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21990 invisible text covered with an ellipsis.
21991
219922008-01-25 Richard Stallman <rms@gnu.org>
21993
21994 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21995 jump back to beginning. Move some other initializations after that.
21996 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21997 New variables.
21998 (syms_of_xdisp): Init them.
21999
22000 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22001
22002 * buffer.c (reset_buffer_local_variables):
22003 Implement `permanent-local-hook'.
22004 (Qpermanent_local_hook): New variable.
22005 (syms_of_buffer): Init and staticpro it.
22006
220072008-01-25 Michael Albinus <michael.albinus@gmx.de>
22008
22009 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22010
220112008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22012
22013 * fns.c (Fclrhash): Return TABLE.
22014
220152008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22016
22017 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22018 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22019 is set even without positional changes.
22020 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22021
22022 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22023
220242008-01-23 Jason Rumney <jasonr@gnu.org>
22025
22026 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22027
22028 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22029 the unicode range available in MULE by locale-coding-system.
22030 Improve dbcs lead byte detection. Set event timestamp and modifiers
22031 earlier.
22032
220332008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22034
22035 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22036 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22037 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22038 when used on child processes.
22039
220402008-01-21 Michael Albinus <michael.albinus@gmx.de>
22041
22042 * dbusbind.c (Fdbus_method_return_internal): Rename from
22043 Fdbus_method_return.
22044 (Fdbus_unregister_object): Move to dbus.el.
22045 (Fdbus_call_method, Fdbus_method_return_internal)
22046 (Fdbus_send_signal): Improve debug messages.
22047
220482008-01-20 Martin Rudalics <rudalics@gmx.at>
22049
22050 * undo.c (undo_inhibit_record_point): New variable.
22051 (syms_of_undo): Initialize it.
22052 (record_point): Don't record point when undo_inhibit_record_point
22053 is set.
22054
220552008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22056
22057 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22058
22059 * xdisp.c (Qauto_hscroll_mode): New var.
22060 (syms_of_xdisp): Initialize it.
22061 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22062 window's buffer.
22063 (hscroll_windows): Don't check automatic_hscrolling_p here.
22064
22065 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22066 vscroll if we're setting window-buffer to the value it already has.
22067
220682008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22069
22070 * m/intel386.h: Remove references to XENIX.
22071
220722008-01-17 Andreas Schwab <schwab@suse.de>
22073
22074 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22075 instead of HAVE_X86_64_LIB64_DIR.
22076 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22077
220782008-01-17 Glenn Morris <rgm@gnu.org>
22079
22080 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22081 to HAVE_X86_64_LIB64_DIR.
22082
220832008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22084
22085 * s/irix3-3.h:
22086 * s/irix4-0.h:
22087 * s/386-ix.h:
22088 * s/domain.h:
22089 * s/hpux9-x11r4.h:
22090 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22091
22092 * sysdep.c: Remove code containing references to symbols defined
22093 by unsupported systems.
22094
220952008-01-16 Glenn Morris <rgm@gnu.org>
22096
22097 * coding.c (select-safe-coding-system-function): Doc fix.
22098
220992008-01-15 Glenn Morris <rgm@gnu.org>
22100
22101 * config.in: Revert 2008-01-13 change: this is a generated file.
22102
221032008-01-13 Tom Tromey <tromey@redhat.com>
22104
22105 * lisp.h: Fix typo.
22106
221072008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22108
22109 * m/sequent-ptx.h:
22110 * m/sequent.h:
22111 * s/ptx.h:
22112 * s/ptx4-2.h:
22113 * s/ptx4.h: Remove files for systems no longer supported.
22114
22115 * callproc.c (Fcall_process): Fix previous change.
22116
221172008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22118
22119 * unexsunos4.c: Remove file, system not supported anymore.
22120
22121 * m/mips.h:
22122 * m/intel386.h:
22123 * callproc.c:
22124 * config.in:
22125 * ecrt0.c:
22126 * emacs.c:
22127 * fileio.c:
22128 * frame.c:
22129 * getpagesize.h:
22130 * keyboard.c:
22131 * lread.c:
22132 * process.c:
22133 * puresize.h:
22134 * sysdep.c:
22135 * systty.h:
22136 * syswait.h:
22137 * unexec.c:
22138 * xdisp.c:
22139 * alloc.c: Remove code containing references to symbols defined by
22140 unsupported systems.
22141
221422008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22143
22144 * coding.c (detect_coding_mask): Fix previous change.
22145
221462008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22147
22148 * coding.c (detect_coding_iso2022): New arg
22149 latin_extra_code_state. Allow Latin extra codes only
22150 when *latin_extra_code_state is nonzero.
22151 (detect_coding_mask): If there is a NULL byte, detect the encoding
22152 as UTF-16 or binary. If Latin extra codes exist, detect the
22153 encoding as ISO-2022 only when there's no other proper encoding is
22154 found.
22155
221562008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22157
22158 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22159 #ifdef MAC_OS.
22160
221612008-01-08 Richard Stallman <rms@gnu.org>
22162
22163 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22164
221652008-01-06 Nick Roberts <nickrob@snap.net.nz>
22166
22167 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22168 menu bar in parentheses.
22169
221702008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22171
22172 * m/7300.h:
22173 * m/acorn.h:
22174 * m/alliant-2800.h:
22175 * m/alliant.h:
22176 * m/alliant1.h:
22177 * m/alliant4.h:
22178 * m/altos.h:
22179 * m/amdahl.h:
22180 * m/apollo.h:
22181 * m/att3b.h:
22182 * m/aviion-intel.h:
22183 * m/aviion.h:
22184 * m/celerity.h:
22185 * m/clipper.h:
22186 * m/cnvrgnt.h:
22187 * m/convex.h:
22188 * m/cydra5.h:
22189 * m/delta88k.h:
22190 * m/dpx2.h:
22191 * m/dual.h:
22192 * m/elxsi.h:
22193 * m/f301.h:
22194 * m/gould-np1.h:
22195 * m/gould.h:
22196 * m/i860.h:
22197 * m/ibmps2-aix.h:
22198 * m/ibmrt-aix.h:
22199 * m/ibmrt.h:
22200 * m/irist.h:
22201 * m/is386.h:
22202 * m/isi-ov.h:
22203 * m/mega68.h:
22204 * m/mg1.h:
22205 * m/news-r6.h:
22206 * m/news-risc.h:
22207 * m/news.h:
22208 * m/nh3000.h:
22209 * m/nh4000.h:
22210 * m/ns16000.h:
22211 * m/ns32000.h:
22212 * m/nu.h:
22213 * m/orion.h:
22214 * m/orion105.h:
22215 * m/paragon.h:
22216 * m/pfa50.h:
22217 * m/plexus.h:
22218 * m/pyramid.h:
22219 * m/pyrmips.h:
22220 * m/sh3el.h:
22221 * m/sps7.h:
22222 * m/sr2k.h:
22223 * m/stride.h:
22224 * m/sun1.h:
22225 * m/sun2.h:
22226 * m/sun3-68881.h:
22227 * m/sun3-fpa.h:
22228 * m/sun3-soft.h:
22229 * m/sun3.h:
22230 * m/sun386.h:
22231 * m/symmetry.h:
22232 * m/tad68k.h:
22233 * m/tahoe.h:
22234 * m/targon31.h:
22235 * m/tek4300.h:
22236 * m/tekxd88.h:
22237 * m/tower32.h:
22238 * m/tower32v3.h:
22239 * m/ustation.h:
22240 * m/wicat.h:
22241 * m/xps100.h:
22242 * s/cxux.h:
22243 * s/cxux7.h:
22244 * s/dgux.h:
22245 * s/dgux4.h:
22246 * s/dgux5-4-3.h:
22247 * s/dgux5-4r2.h:
22248 * s/esix.h:
22249 * s/esix5r4.h:
22250 * s/hiuxmpp.h:
22251 * s/hiuxwe2.h:
22252 * s/iris3-5.h:
22253 * s/iris3-6.h:
22254 * s/isc2-2.h:
22255 * s/isc3-0.h:
22256 * s/isc4-0.h:
22257 * s/isc4-1.h:
22258 * s/newsos5.h:
22259 * s/newsos6.h:
22260 * s/osf1.h:
22261 * s/osf5-0.h:
22262 * s/riscix1-1.h:
22263 * s/riscix12.h:
22264 * s/sco4.h:
22265 * s/sco5.h:
22266 * s/sunos4-0.h:
22267 * s/sunos4-1.h:
22268 * s/sunos413.h:
22269 * s/sunos4shr.h:
22270 * s/umax.h:
22271 * s/unipl5-2.h:
22272 * s/xenix.h:
22273 * cxux-crt0.s:
22274 * unexapollo.c:
22275 * unexconvex.c:
22276 * unexenix.c:
22277 * unexsni.c: Remove files for systems no longer supported.
22278
22279 * m/intel386.h: Remove references to unsupported systems.
22280
22281 * w32.c (get_emacs_configuration): Remove reference to i860.
22282
22283 * sysdep.c: Remove dead code.
22284
222852008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22286
22287 * s/rtu.h:
22288 * m/masscomp.h: Remove files. Platform is obsolete.
22289
222902008-01-04 Michael Albinus <michael.albinus@gmx.de>
22291
22292 * dbusbind.c (Fdbus_method_return): New function.
22293 (xd_read_message): Add the serial number to the event.
22294 (Fdbus_register_method): Activate the function.
22295
222962008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22297
22298 * keyboard.c (read_key_sequence): Fix typo.
22299
223002008-01-03 Michael Albinus <michael.albinus@gmx.de>
22301
22302 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22303 (xd_signature, xd_append_arg): Handle element type detection for
22304 empty arrays.
22305 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22306 SDATA () calls; this must be solved more general.
22307 (Fdbus_register_signal): Use SBYTES instead of strlen.
22308
223092008-01-03 Magnus Henoch <magnus@zemdatav>
22310
22311 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22312 unsigned int for byte values (necessary for big-endian platform).
22313 (Fdbus_call_method): Handle the case of no returned arguments.
22314
223152007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22316
22317 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22318
223192007-12-31 Magnus Henoch <mange@freemail.hu>
22320
22321 * dbusbind.c (xd_signature): Signature of variant is just "v".
22322
223232007-12-30 Michael Albinus <michael.albinus@gmx.de>
22324
22325 * dbusbind.c: Fix several errors and compiler warnings.
22326 Reported by Tom Tromey <tromey@redhat.com>.
22327 (XD_ERROR, XD_DEBUG_MESSAGE)
22328 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22329 (xd_append_arg): Part for basic D-Bus types rewritten.
22330 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22331 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22332 appropriate.
22333 (xd_read_message): Return Qnil. Don't signal an error; it is not
22334 useful during event reading.
22335 (Fdbus_register_signal): Signal an error if the check for
22336 FUNCTIONP fails.
22337 (Fdbus_register_method): New function. The implementation is not
22338 complete, the call of the function signals an error therefore.
22339 (Fdbus_unregister_object): New function, renamed from
22340 Fdbus_unregister_signal. The initial check signals an error, if
22341 the object is not well formed.
22342
223432007-12-30 Richard Stallman <rms@gnu.org>
22344
22345 * textprop.c (get_char_property_and_overlay):
22346 Signal error if POSITION is out of range in a buffer.
22347
223482007-12-29 Martin Rudalics <rudalics@gmx.at>
22349
22350 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22351 because the original parameters are in pure storage now.
22352
223532007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22354
22355 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22356
223572007-12-22 Eli Zaretskii <eliz@gnu.org>
22358
22359 * callint.c (syms_of_callint) <command-history>: Add reference to
22360 history-length in the doc string.
22361
223622007-12-17 Jason Rumney <jasonr@gnu.org>
22363
22364 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22365 before passing as wParam.
22366
223672007-12-22 Michael Albinus <michael.albinus@gmx.de>
22368
22369 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22370 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22371 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22372 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22373 as number.
22374 (Fdbus_call_method): Fix docstring.
22375
223762007-12-21 Michael Albinus <michael.albinus@gmx.de>
22377
22378 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22379 New macros.
22380 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22381 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22382 Simplify.
22383 (xd_signature): New function.
22384 (xd_append_arg): Compute also signatures. Major rewrite.
22385 (xd_retrieve_arg): Make debug messages friendly.
22386 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22387 Check for signatures of arguments.
22388
223892007-12-19 Michael Albinus <michael.albinus@gmx.de>
22390
22391 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22392 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22393 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22394 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22395 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22396 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22397 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22398 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22399 (xd_retrieve_value): Remove. Functionality included in ...
22400 (xd_append_arg): New function.
22401 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22402
224032007-12-16 Michael Albinus <michael.albinus@gmx.de>
22404
22405 * dbusbind.c (top): Include <stdio.h>.
22406 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22407 dbus_message_new_method_call and dbus_message_new_signal.
22408 (Fdbus_register_signal): Rename unique_name to uname.
22409 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22410 non-existing unique name. Fix typos in matching rule. Return an
22411 object which is useful in Fdbus_unregister_signal.
22412 (Fdbus_unregister_signal): Reimplementation, in order to remove
22413 only the corresponding entry.
22414 (Vdbus_registered_functions_table): Change the order of entries.
22415 Apply these changes in xd_read_message and Fdbus_register_signal.
22416
224172007-12-16 Andreas Schwab <schwab@suse.de>
22418
22419 * fileio.c (Finsert_file_contents): Fix overflow check to not
22420 depend on undefined integer overflow.
22421
224222007-12-14 Jason Rumney <jasonr@gnu.org>
22423
22424 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22425 for characters above 127.
22426
224272007-12-13 Jason Rumney <jasonr@gnu.org>
22428
22429 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22430 before dereferencing array.
22431 (lookup_vk_code): Remove zero comparison.
22432
224332007-12-14 Michael Albinus <michael.albinus@gmx.de>
22434
22435 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22436 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22437 Use `unsigned int' instead of `uint'.
22438 (xd_read_message, Fdbus_register_signal): Split expressions into
22439 multiple lines before operators "&&" and "||", according to the
22440 GNU Coding Standards.
22441
224422007-12-14 Eli Zaretskii <eliz@gnu.org>
22443
22444 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22445
224462007-12-12 Juri Linkov <juri@jurta.org>
22447
22448 * buffer.c (Frename_buffer): In interactive spec replace
22449 `read-buffer' with `read-string' that uses `buffer-name-history'
22450 as history, and the current buffer's name as default.
22451
224522007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22453
22454 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22455 manipulating the backtrace manually.
22456 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22457 (struct backtrace, backtrace_list): Remove.
22458 (command_loop_1): Remove dead var `no_direct'.
22459
22460 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22461 preserve non-built-in buffer-local variables.
22462 (Fkill_all_local_variables): Don't re-create&re-set permanent
22463 buffer-local variables.
22464
224652007-12-09 Juri Linkov <juri@jurta.org>
22466
22467 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22468 Lisp code that uses `read-buffer' with current buffer as default.
22469
224702007-12-08 Michael Albinus <michael.albinus@gmx.de>
22471
22472 * dbusbind.c (xd_read_message): Generate an event for every
22473 registered handler. There might be several handlers registered
22474 for the same signal.
22475 (Fdbus_register_signal): Don't overwrite a registration for the
22476 same signal. Add a new registration if handlers are different.
22477 (Vdbus_registered_functions_table): Rework doc string.
22478
224792007-12-07 Michael Albinus <michael.albinus@gmx.de>
22480
22481 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22482 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22483 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22484 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22485 Unify argument lists.
22486 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22487 arguments and hash table keys. Use unique name for service.
22488 (Fdbus_unregister_signal): Remove checks.
22489 (Vdbus_registered_functions_table): Fix doc string.
22490
224912007-12-05 Magnus Henoch <mange@freemail.hu>
22492
22493 * process.c (make_process): Initialize pty_flag to 0.
22494
224952007-12-05 Jason Rumney <jasonr@gnu.org>
22496
22497 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22498 specified XBMs.
22499
225002007-12-05 Richard Stallman <rms@gnu.org>
22501
22502 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22503
225042007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22505
22506 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22507 New variable.
22508 (mac_try_close_socket) [MAC_OSX]: New function.
22509 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22510 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22511
22512 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22513 Use mac_try_close_socket.
22514
225152007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22516
22517 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22518 reloc_base.
22519 (copy_dysymtab): Compute relocation base here.
22520 (rebase_reloc_address) [__ppc64__]: New function.
22521 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22522 changed.
22523
225242007-12-05 Jason Rumney <jasonr@gnu.org>
22525
22526 * w32proc.c (sys_spawnve): Quote args with wildcards.
22527
225282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22529
22530 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22531 __objc_* sections.
22532 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22533
225342007-12-05 Michael Albinus <michael.albinus@gmx.de>
22535
22536 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22537 Move check for Vdbus_registered_functions_table to
22538 xd_read_queued_messages.
22539 (xd_read_queued_messages): Protect xd_read_message calls by
22540 internal_condition_case_1.
22541
225422007-12-04 Michael Albinus <michael.albinus@gmx.de>
22543
22544 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22545 Qdbus_system_bus and Qdbus_session_bus, respectively.
22546 (Vdbus_intern_symbols): Remove.
22547 (Vdbus_registered_functions_table): New hash table.
22548 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22549 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22550 Rewrite in order to manage registered functions by hash table
22551 Vdbus_registered_functions_table.
22552
225532007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22554
22555 * xterm.c: Update URL to Window Manager Specification in comment.
22556
225572007-12-02 Michael Albinus <michael.albinus@gmx.de>
22558
22559 * config.in (HAVE_DBUS): Add.
22560
22561 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22562 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22563 (obj): Add $(DBUS_OBJ).
22564 (LIBES): Add $(DBUS_LIBS).
22565 (dbusbind.o): New target.
22566
22567 * dbusbind.c: New file.
22568
22569 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22570
22571 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22572 (Qdbus_event): New Lisp symbol.
22573 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22574 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22575 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22576
22577 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22578
225792007-12-01 Richard Stallman <rms@gnu.org>
22580
22581 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22582
225832007-11-30 Jason Rumney <jasonr@gnu.org>
22584
22585 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22586 (w32con_reset_terminal_modes): Clear screen buffer.
22587 (w32_face_attributes): Don't use color indexes that are out of range.
22588 Only reverse the default colors.
22589
22590 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22591 WINDOWSNT.
22592
22593 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22594
225952007-11-29 Jason Rumney <jasonr@gnu.org>
22596
22597 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22598 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22599 if the terminal colors are initialized.
22600 (unspecified_fg, unspecified_bg): Remove unused declarations.
22601
226022007-11-29 Andreas Schwab <schwab@suse.de>
22603
22604 * keyboard.c (apply_modifiers): Fix typo.
22605
226062007-11-29 Richard Stallman <rms@gnu.org>
22607
22608 * keymap.c (Fcurrent_local_map): Doc fix.
22609
226102007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22611
22612 * s/gnu-kfreebsd.h: New file.
22613
226142007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22615
22616 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22617 Don't cast redundantly.
22618
22619 * keyboard.c (KEY_TO_CHAR): New macro.
22620 (parse_modifiers, apply_modifiers): Accept integer arguments.
22621 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22622 for chars and symbol keys.
22623 After doing such remapping, apply function-key-map again.
22624
226252007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22626
22627 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22628 compiled anymore.
22629
226302007-11-26 Andreas Schwab <schwab@suse.de>
22631
22632 * process.c (list_processes_1): Fix indentation level of the
22633 command column.
22634
226352007-11-23 Andreas Schwab <schwab@suse.de>
22636
22637 * editfns.c (Fformat): Handle %c specially since it requires the
22638 argument to be of type int.
22639
226402007-11-23 Markus Triska <markus.triska@gmx.at>
22641
22642 * emacs.c (main): Call init_editfns before init_process, since
22643 init_process sets Vprocess_connection_type depending on OS release.
22644
226452007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22646
22647 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22648 (find_symbol_value): Use do_symval_forwarding.
22649
22650 * data.c (set_internal): Set the value in the `cons-cell' (for
22651 Buffer_Local_values) not only for frame-local variables.
22652
226532007-11-22 Andreas Schwab <schwab@suse.de>
22654
22655 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22656 values to sprintf.
22657 * keymap.c (Fsingle_key_description): Likewise.
22658 * print.c (print_object): Likewise.
22659
226602007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22661
22662 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22663 file for image is nil.
22664
226652007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22666
22667 * term.c: Include stdarg.h.
22668 (fatal): Implement using varargs.
22669 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22670
226712007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22672
22673 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22674 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22675 Update call to buffer_slot_type_mismatch.
22676 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22677 (buffer_slot_type_mismatch): Update.
22678 * buffer.c (buffer_local_types): Remove.
22679 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22680 (defvar_per_buffer): Set the type in the buffer_objfwd.
22681
226822007-11-21 Jason Rumney <jasonr@gnu.org>
22683
22684 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22685 CreateFileMapping returns NULL on failure.
22686
226872007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22688
22689 * search.c (Fset_match_data): Remove the `evaporate' feature.
22690 (unwind_set_match_data): Don't use the `evaporate' feature.
22691
226922007-11-21 Jason Rumney <jasonr@gnu.org>
22693
22694 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22695
22696 * w32console.c (w32con_write_glyphs): Remove unused variables.
22697
226982007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22699
22700 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22701
22702 * s/darwin.h (MULTI_KBOARD): Remove.
22703
22704 * macfns.c (x_create_tip_frame, Fx_create_frame)
22705 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22706
227072007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22708
22709 * buffer.c (Fbuffer_local_value): Remove redundant test.
22710 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22711 than in `current-buffer' to match the comment.
22712 Do the swap using swap_in_global_binding.
22713
22714 * data.c (store_symval_forwarding, set_internal):
22715 * eval.c (specbind): Remove dead code.
22716
22717 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22718 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22719 Since we do not want to see internal Lisp_*fwd objects here.
22720
227212007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22722
22723 * sysdep.c (init_system_name): Use getaddrinfo if available.
22724
22725 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22726 (x_scroll_bar_note_movement): start, end, with, height in struct
22727 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22728
227292007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22730
22731 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22732
227332007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22734
22735 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22736 This undoes Richard's change of 14-Oct-2002.
22737
22738 * alloc.c (allocate_other_vector):
22739 * lisp.h (allocate_other_vector): Remove.
22740
22741 * window.c (struct save_window_data): Move non-lisp data to the end
22742 and make it `int' rather than Lisp_Object.
22743 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22744 Done wrap/unwrap integer values.
22745 (Fset_window_configuration, compare_window_configurations):
22746 Update use of fields to their new types.
22747
22748 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22749 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22750 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22751 (SET_SCROLL_BAR_X_WINDOW): Remove.
22752 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22753 Access the new x_window field directly.
22754 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22755 Don't wrap/unwrap integers into Lisp_Objects.
22756 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22757 (x_scroll_bar_report_motion):
22758 Don't wrap/unwrap integers into Lisp_Objects.
22759 (x_term_init): Use SDATA.
22760 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22761 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22762 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22763 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22764 * xfns.c (x_set_background_color):
22765 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22766 Access the new x_window field directly.
22767
22768 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22769 (allocate_pseudovector): Make non-static.
22770
22771 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22772 (allocate_pseudovector): Declare.
22773 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22774
227752007-11-15 Andreas Schwab <schwab@suse.de>
22776
22777 * editfns.c (Fformat): Correctly format EMACS_INT values.
22778 Also take precision into account when formatting an integer.
22779
22780 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22781
227822007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22783
22784 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22785 (syms_of_keyboard): Defsubr it.
22786
22787 * data.c (swap_in_global_binding): Fix longstanding bug where
22788 store_symval_forwarding was not called with the right second argument,
22789 thus causing objfwd-ing from being dropped.
22790
227912007-11-14 Juanma Barranquero <lekktu@gmail.com>
22792
22793 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22794 (Fx_display_pixel_height, Fx_display_planes)
22795 (Fx_display_color_cells, Fx_server_max_request_size)
22796 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22797 (Fx_display_visual_class, Fx_display_save_under):
22798 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22799 (Fx_display_pixel_height, Fx_display_planes)
22800 (Fx_display_color_cells, Fx_server_max_request_size)
22801 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22802 (Fx_display_mm_height, Fx_display_mm_width)
22803 (Fx_display_backing_store, Fx_display_visual_class)
22804 (Fw32_select_font, Fx_display_save_under):
22805 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22806 (Fx_display_pixel_height, Fx_display_planes)
22807 (Fx_display_color_cells, Fx_server_max_request_size)
22808 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22809 (Fx_display_save_under): Fix typos in docstrings.
22810
228112007-11-14 Juanma Barranquero <lekktu@gmail.com>
22812
22813 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22814 corresponding to deleted entries; they are an implementation detail.
22815 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22816 Remove variables.
22817 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22818 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22819 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22820 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22821 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22822 (Fw32_define_rgb_color, Fw32_load_color_file)
22823 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22824 Fix typos in docstrings.
22825 (Fx_server_version): Reflow docstring.
22826 (Fw32_shell_execute): Doc fixes.
22827
228282007-11-13 Juanma Barranquero <lekktu@gmail.com>
22829
22830 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22831 if w32_parse_hot_key returned nil.
22832
228332007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22834
22835 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22836
228372007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22838
aac0c6e3
MR
22839 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22840
22841 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22842
22843 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22844 Remove W32_SCROLL_BAR_CLICK_EVENT.
22845
22846 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22847 Add MULTIMEDIA_KEY_EVENT.
22848
22849 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22850 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22851 (make_lispy_event) [WINDOWSNT]: Use it to translate
22852 MULTIMEDIA_KEY_EVENT.
22853
22854 * w32term.h (WM_APPCOMMAND): Define if not already.
22855 (GET_APPCOMMAND_LPARAM): Likewise.
22856
22857 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22858 WM_APPCOMMAND.
22859
22860 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22861 (syms_of_w32fns): Export and initialize it.
22862 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22863
228642007-11-09 Chong Yidong <cyd@stupidchicken.com>
22865
22866 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22867 twice.
22868
22869 * xdisp.c (handle_face_prop): Fix last change.
22870
228712007-11-09 Richard Stallman <rms@gnu.org>
22872
22873 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22874 not just for after-strings and before-strings.
22875 Call face_for_overlay_string and pass the overlay to it.
22876 (handle_display_prop): Determine whether property came from an overlay.
22877 Pass OVERLAY arg to handle_single_display_spec.
22878 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22879 (load_overlay_strings): Fill in it->string_overlays.
22880 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22881
22882 * xfaces.c (face_for_overlay_string): Function renamed from
22883 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22884
22885 * dispextern.h (struct it): New elt string_overlays.
22886 New elt from_overlay, also in stack.
22887 Rearrange a few elements.
22888 (face_for_overlay_string): Decl renamed from
22889 face_at_buffer_position_no_overlays, and add argument.
22890
228912007-11-09 Richard Stallman <rms@gnu.org>
22892
22893 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22894 to get the base face for an overlay string.
22895
22896 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22897
22898 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22899
22900 * xdisp.c (handle_stop): Move some code out of loop.
22901
229022007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22903
22904 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22905 Fix conversion from Lisp object to ATSUFontID.
22906
229072007-11-09 Jason Rumney <jasonr@gnu.org>
22908
22909 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22910
229112007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22912
22913 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22914 Don't assume regions are aligned to page boundary.
22915 (print_load_command_name): Add LC_UUID if defined.
22916
229172007-11-09 Richard Stallman <rms@gnu.org>
22918
22919 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22920
229212007-11-07 Jason Rumney <jasonr@gnu.org>
22922
22923 * s/windows95.h: Remove.
22924
229252007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22926
22927 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22928 abort with a message on unhandled store_type values.
22929
229302007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22931
22932 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22933 Remove HAVE_X11R5 and HAVE_X11R4.
22934
229352007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22936
22937 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22938
229392007-11-01 Johan Bockgård <bojohan@gnu.org>
22940
22941 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22942 Don't set s->stippled_p here, since it has already been set by
22943 x_set_glyph_string_gc from x_draw_glyph_string.
22944
229452007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22946
22947 * sunfns.c: Remove file.
22948
22949 * m/sun386.h:
22950 * m/sun2.h:
22951 * m/sparc.h: Remove Sun windows code.
22952
229532007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22954
22955 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22956 (init_keyboard): Set current_kboard's window-system to nil.
22957 (tty_read_avail_input): Typo.
22958 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22959
229602007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22961
22962 * s/usg5-4.h:
22963 * s/usg5-3.h:
22964 * s/ptx.h:
22965 * m/is386.h:
22966 * m/ibmps2-aix.h:
22967 * Makefile.in: Remove all mentions of X10.
22968
22969 * dispnew.c (syms_of_display): Don't mention version 10.
22970
229712007-10-28 Juanma Barranquero <lekktu@gmail.com>
22972
22973 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22974 ($(BLD)/abbrev.$(O)): Remove.
22975
229762007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22977
22978 Rewrite abbrev.c in Elisp.
22979 * image.c (Qcount): Don't declare as extern.
22980 (syms_of_image): Initialize and staticpro `Qcount'.
22981 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22982 * emacs.c (main): Don't call syms_of_abbrev.
22983 * Makefile.in (obj): Remove abbrev.o.
22984 (abbrev.o): Remove.
22985 * abbrev.c: Remove.
22986
229872007-10-26 Martin Rudalics <rudalics@gmx.at>
22988
22989 * window.c (window_min_size_2): Don't count header-line.
22990
229912007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22992
22993 * frame.h (struct frame): Move all bit fields after the first bit
22994 field to take advantage of the available space. Group all the
22995 chars together to reduce wasted space due to padding.
22996
229972007-10-26 Juanma Barranquero <lekktu@gmail.com>
22998
22999 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23000
23001 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23002 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23003 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23004 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23005 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23006 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23007 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23008 (last_marked, mark_object_loop_halt): Make static.
23009
23010 * frame.c (syms_of_frame) <delete-frame-functions>:
23011 Fix typo in docstring.
23012
230132007-10-25 Juanma Barranquero <lekktu@gmail.com>
23014
23015 * w32.c (init_environment): Fix tiny memory leak.
23016 (w32_get_resource): Remove unused variable `ok'.
23017
230182007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23019
23020 Make `window-system' into a keyboard-local variable (rather than
23021 frame-local as done originally by multi-tty).
23022
23023 * keyboard.h (struct kboard): Add Vwindow_system.
23024 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23025 (mark_kboards): Mark Vwindow_system.
23026
23027 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23028 (init_display): Don't set the obsolete `window-system' frame-param.
23029
23030 * xterm.c (x_term_init):
23031 * w32term.c (w32_create_terminal):
23032 * term.c (init_tty): Set Vwindow_system.
23033 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23034 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23035
23036 * xfns.c (Fx_create_frame, x_create_tip_frame):
23037 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23038 * macfns.c (Fx_create_frame):
23039 Don't set the obsolete `window-system' frame-param.
23040
23041 * frame.h (Qwindow_system): Remove.
23042 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23043 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23044
230452007-10-24 Richard Stallman <rms@gnu.org>
23046
23047 * frame.c (x_figure_window_size): For fullscreen case,
23048 set USPosition | PPosition without clobbering rest of window_prompting.
23049
23050 * keyboard.c (Fcurrent_idle_time): Doc fix.
23051
23052 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23053
230542007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23055
23056 * process.c (unwind_request_sigio): Only define if __ultrix__.
23057
23058 * callproc.c (child_setup): Remove spurious *.
23059
23060 * lisp.h (Fget_text_property): Declare.
23061 (have_menus_p): Declare it here rather than in sys-dep header files.
23062 * macterm.h (have_menus_p):
23063 * msdos.h (have_menus_p):
23064 * xterm.h (have_menus_p): Remove.
23065
23066 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23067 (Fmake_variable_frame_local): Just check the variable's const-ness
23068 rather than checking nil or t.
23069
230702007-10-22 Jason Rumney <jasonr@gnu.org>
23071
23072 * w32fns.c: Include math.h.
23073 (w32_abort): Declaration moved to nt/config.nt.
23074
23075 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23076 (abort): Redefinition moved to nt/config.nt.
23077
23078 * m/windowsnt.h: Remove.
23079
230802007-10-22 Juanma Barranquero <lekktu@gmail.com>
23081
23082 * emacs.c (Fdump_emacs): Fix typo in message.
23083 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23084 <installation-directory>: Reflow docstring.
23085
230862007-10-22 Juri Linkov <juri@jurta.org>
23087
23088 * minibuf.c: Allow minibuffer default to be a list of default values.
23089 With empty input use the first element of this list as returned default.
23090 (string_to_object)
23091 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23092 (read_minibuf): If defalt is cons, set histstring to its car.
23093 (Fread_string): If default_value is cons, set val to its car.
23094 (Fread_buffer): If def is cons, use its car.
23095 (Fcompleting_read): If defalt is cons, set val to its car.
23096
230972007-10-21 Michael Albinus <michael.albinus@gmx.de>
23098
23099 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23100
231012007-10-20 Juanma Barranquero <lekktu@gmail.com>
23102
23103 * doc.c (Fdocumentation): Check for advice in all cases.
23104
231052007-10-19 Chong Yidong <cyd@stupidchicken.com>
23106
23107 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23108
231092007-10-19 Richard Stallman <rms@gnu.org>
23110
23111 * doc.c (Fdocumentation): Check for and handle an advised function.
23112
231132007-10-19 Juanma Barranquero <lekktu@gmail.com>
23114
23115 * process.c (Fset_process_filter): Doc fix.
23116
231172007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23118
23119 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23120 which caused key-translation-map to applied repeatedly (thus breaking
23121 double-mode).
23122
231232007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23124
23125 * xselect.c (x_own_selection, x_handle_selection_clear)
23126 (x_clear_frame_selections):
23127 * w32menu.c (list_of_panes, list_of_items):
23128 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23129 * textprop.c (validate_plist, interval_has_all_properties)
23130 (interval_has_some_properties, interval_has_some_properties_list)
23131 (add_properties, text_property_list):
23132 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23133 * minibuf.c (Fassoc_string):
23134 * macselect.c (x_own_selection, x_clear_frame_selections)
23135 (Fx_disown_selection_internal):
23136 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23137 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23138
231392007-10-17 Chong Yidong <cyd@stupidchicken.com>
23140
23141 * process.c: Link to libs for calling res_init() if available.
23142 (Fmake_network_process): Call res_init() before getaddrinfo or
23143 gethostbyname, if possible.
23144
231452007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23146
23147 * lread.c (read1): Set pvectype for char_tables.
23148
23149 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23150 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23151 Add type checks.
23152 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23153
23154 * alloc.c (free_misc): Use XMISCTYPE.
23155 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23156
231572007-10-17 Glenn Morris <rgm@gnu.org>
23158
23159 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23160 (syms_of_minibuf): Add Qcompletion_ignore_case.
23161 * dired.c (Qcompletion_ignore_case): Change to external.
23162 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23163 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23164 (Fread_file_name): Use it rather than intern'ing.
23165
23166 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23167 (Fread_coding_system): Ignore case of user input.
23168
231692007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23170
23171 * xdisp.c (handle_display_prop): Ignore display specs after
23172 replacing one when string text is being replaced.
23173 (handle_single_display_spec): Pretend as if characters with display
23174 property haven't been consumed only when buffer text is being replaced.
23175
231762007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23177
23178 * xfns.c (Fx_create_frame, Fx_display_list):
23179 * window.c (window_fixed_size_p, enlarge_window)
23180 (shrink_window_lowest_first):
23181 * macterm.c (init_font_name_table):
23182 * macfns.c (Fx_create_frame, Fx_display_list):
23183 * lread.c (close_load_descs):
23184 * keyboard.c (read_char_x_menu_prompt):
23185 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23186 * coding.c (code_convert_region_unwind): Test the type of an object
23187 rather than just !NILP before extracting data from it.
23188
23189 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23190
23191 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23192 (XMISCANY): New macro.
23193 (XMISCTYPE): Use it.
23194 (struct Lisp_Misc_Any): New type.
23195 (union Lisp_Misc): Use it.
23196 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23197 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23198 (find_symbol_value, set_internal, default_value, Fset_default)
23199 (Fmake_variable_buffer_local, Fmake_local_variable)
23200 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23201 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23202 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23203 * alloc.c (allocate_buffer): Set the size and tag.
23204 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23205 Use XMISCANY.
23206 (die): Follow the GNU convention for error messages.
23207 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23208 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23209 tag any more.
23210 (set_buffer_internal_1):
23211 * frame.c (store_frame_param):
23212 * eval.c (specbind):
23213 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23214
23215 * doc.c (Fsnarf_documentation): Simplify.
23216
232172007-10-14 Juanma Barranquero <lekktu@gmail.com>
23218
23219 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23220 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23221
232222007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23223
23224 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23225
232262007-10-14 Juanma Barranquero <lekktu@gmail.com>
23227
23228 * eval.c (do_autoload): Don't save autoloads.
23229
23230 * data.c (Ffset): Save autoload of the function being set.
23231
232322007-10-07 John Paul Wallington <jpw@pobox.com>
23233
23234 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23235 parameter before setting up faces.
23236
232372007-10-13 Eli Zaretskii <eliz@gnu.org>
23238
23239 * ccl.c (Fregister_code_conversion_map):
23240 * keyboard.c (append_tool_bar_item): Reformat last change.
23241
23242 * lisp.h (eabs): Rename from `abs'. All callers changed.
23243
232442007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23245
23246 * buffer.c (add_overlay_mod_hooklist):
23247 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23248 * fontset.c (make_fontset):
23249 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23250 (append_tool_bar_item):
23251 * macmenu.c (grow_menu_items):
23252 * w32menu.c (grow_menu_items):
23253 * xmenu.c (grow_menu_items): Use larger_vector.
23254
232552007-10-13 Eli Zaretskii <eliz@gnu.org>
23256
23257 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23258 selected frame'' on MSDOS).
23259
232602007-10-12 Martin Rudalics <rudalics@gmx.at>
23261
23262 * frame.c (Qexplicit_name): New variable.
23263 (x_report_frame_params): Report it in parameter alist.
23264 (syms_of_frame): Intern and staticpro it.
23265
232662007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23267
23268 * macfns.c (x_create_tip_frame): Set terminal for frame.
23269
232702007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23271
23272 * frame.c (Qenvironment): Remove.
23273 (syms_of_frame) <Qenvironment>: Don't initialize.
23274 (Fdelete_frame): Don't treat the `environment' param specially.
23275 * frame.h (Qenvironment): Don't declare.
23276 * callproc.c (set_initial_environment): Don't set unused frame param.
23277
23278 * frame.c (Fframe_with_environment): Remove.
23279 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23280
23281 * lisp.h (Fframe_with_environment): Don't declare.
23282
232832007-10-10 Juanma Barranquero <lekktu@gmail.com>
23284
23285 * indent.c (indent_tabs_mode, last_known_column)
23286 (last_known_column_modified): Make static.
23287 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23288
232892007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23290
23291 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23292
232932007-10-09 Jason Rumney <jasonr@gnu.org>
23294
23295 * w32term.c (x_set_window_size): Disable code that attempts to tell
23296 Lisp code about a size change before it actually happens.
23297
232982007-10-09 Richard Stallman <rms@gnu.org>
23299
23300 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23301 return HANDLED_RETURN.
23302
233032007-10-08 Martin Rudalics <rudalics@gmx.at>
23304
23305 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23306 when there's an unread command event.
23307
23308 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23309 window autoselection act appropriately when leaving selected frame.
23310 (syms_of_frame): Initialize focus_follows_mouse.
23311 * frame.h (focus_follows_mouse): Extern it.
23312 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23313 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23314 * msdos.c (dos_rawgetc): Likewise.
23315 * w32term.c (w32_read_socket): Likewise.
23316 * xterm.c (handle_one_xevent): Likewise.
23317 * xdisp.c (syms_of_xdisp): In doc-string of
23318 mouse-autoselect-window mention focus-follows-mouse.
23319
233202007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23321
23322 * macterm.c (mac_load_query_font): Fix missing return value.
23323 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23324 Add BLOCK_INPUT.
23325
233262007-10-08 Richard Stallman <rms@gnu.org>
23327
23328 * xdisp.c (get_window_cursor_type): Implement documented behavior
23329 for cursor-in-non-selected-windows = t.
23330
233312007-10-08 Jason Rumney <jasonr@gnu.org>
23332
23333 * w32.c (w32_get_resource): Always close registry keys.
23334
233352007-10-08 Jason Rumney <jasonr@gnu.org>
23336
23337 * makefile.w32-in (LIBS): Add COMCTL32.
23338
23339 * w32fns.c (globals_of_w32fns): Init common controls.
23340
233412007-10-08 Richard Stallman <rms@gnu.org>
23342
23343 * image.c (our_memory_buffer): Rename from omfib_buffer.
23344
233452007-10-08 Richard Stallman <rms@gnu.org>
23346
23347 * buffer.c (Foverlays_at): Doc fix.
23348
233492007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23350
23351 * fns.c (Fplist_put): Preserve uneven tail data.
23352
233532007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23354
23355 * termhooks.h (enum event_kind): Remove trailing comma.
23356
23357 * frame.h (enum): Remove trailing comma.
23358
233592007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23360
23361 * w32proc.c (delete_child): Don't terminate threads of zombies.
23362
233632007-10-08 Martin Rudalics <rudalics@gmx.at>
23364
23365 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23366
23367 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23368 last-repeatable-command.
23369 (init_kboard): Initialize Vlast_repeatable_command.
23370 (command_loop_1): Set it to real_this_command unless that was
23371 bound to an input event.
23372 (mark_kboards): Mark it.
23373
233742007-10-08 Richard Stallman <rms@gnu.org>
23375
23376 * eval.c (condition-case): Doc fix.
23377
233782007-10-08 Masatake YAMATO <jet@gyve.org>
23379
23380 * xfaces.c (tty_supports_face_attributes_p): Fix code
23381 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23382 was copied and not edited.
23383
233842007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23385
23386 Add new `input-decode-map' keymap and use it for terminal
23387 escape sequences.
23388 * keyboard.h (struct kboard): Add Vinput_decode_map.
23389 Remove Vlocal_key_translation_map.
23390 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23391 (init_kboard): Init input-decode-map.
23392 Replace local-key-translation-map back with key-translation-map.
23393 (syms_of_keyboard): Declare input-decode-map.
23394 Remove local-key-translation-map. Update docstrings.
23395 (mark_kboards): Mark Vinput_decode_map.
23396 Don't mark Vlocal_key_translation_map.
23397 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23398 Replace local-key-translation-map back with key-translation-map.
23399 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23400 Bind in input-decode-map rather than function-key-map.
23401
23402 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23403 This was made redundant by the previous introduction of XSETPVECTYPE.
23404
234052007-10-09 Richard Stallman <rms@gnu.org>
23406
23407 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23408
234092007-09-29 Richard Stallman <rms@gnu.org>
23410
23411 * eval.c (internal_condition_case_2, internal_condition_case_1)
23412 (internal_condition_case): Reenable abort if x_catching_errors ()
23413 to see if that really happens and why.
23414
234152007-10-06 Andreas Schwab <schwab@suse.de>
23416
23417 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23418
234192007-10-04 Juanma Barranquero <lekktu@gmail.com>
23420
23421 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23422
234232007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23424
23425 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23426
234272007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23428
23429 * window.h (struct window):
23430 * window.c (struct save_window_data, struct saved_window):
23431 * termhooks.h (struct terminal):
23432 * process.h (struct Lisp_Process):
23433 * frame.h (struct frame):
23434 * buffer.h (struct buffer):
23435 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23436 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23437 The size field of (pseudo)vectors is now unsigned.
23438 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23439
23440 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23441 Turn `count' into an integer.
23442
23443 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23444 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23445 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23446 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23447 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23448
23449 * alloc.c (allocate_pseudovector): New fun.
23450 (ALLOCATE_PSEUDOVECTOR): New macro.
23451 (allocate_window, allocate_terminal, allocate_frame)
23452 (allocate_process): Use it.
23453 (mark_vectorlike): New function.
23454 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23455 (mark_terminals): Use it.
23456 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23457 (Fmake_byte_code): Use XSETPVECTYPE.
23458
23459 * frame.c (Fframe_parameters): Minor simplification.
23460
23461 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23462
23463 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23464
23465 * buffer.c (Fget_buffer_create, init_buffer_once):
23466 * lread.c (defsubr):
23467 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23468
23469 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23470 defined differently in the m/*.h files.
23471 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23472 (XSETPVECTYPE): New macro.
23473 (XSETPSEUDOVECTOR): Use it.
23474
23475 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23476 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23477
23478 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23479 * lread.c (defvar_per_buffer):
23480 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23481
23482 * window.c (candidate_window_p): Only consider as visible frames that
23483 are on the same terminal.
23484
23485 * m/ibms390x.h (MARKBIT): Remove unused macro.
23486
234872007-10-01 Juanma Barranquero <lekktu@gmail.com>
23488
23489 * lread.c (Fload): Fix typo in docstring.
23490
234912007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23492
23493 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23494 of a non-zero value can't yield zero.
23495
234962007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23497
23498 * term.c (term_clear_mouse_face, term_mouse_highlight)
23499 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23500
23501 * print.c (safe_debug_print): Use XHASH.
23502
23503 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23504 Lisp elements such as tags.
23505 (XHASH): New macro.
23506 (EQ): Use it.
23507 (SREF, SSET, STRING_COPYIN): Use SDATA.
23508 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23509
23510 * alloc.c (mark_terminal): Remove left-over declaration.
23511 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23512 (allocate_vectorlike): Remove type argument. Adjust callers.
23513 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23514 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23515
23516 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23517 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23518 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23519 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23520 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23521 Use them.
23522
23523 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23524 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23525 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23526
235272007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23528
23529 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23530 loaded by default.
23531
235322007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23533
23534 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23535 on this tty.
23536 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23537
23538 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23539 Update all users.
23540 (handle_one_term_event): Use Gpm_DrawPointer.
23541 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23542 Signal errors instead of returning nil. Always return nil.
23543 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23544 Make it a noop if gpm-mouse was not activated.
23545 (syms_of_term): Update names.
23546
235472007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23548
23549 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23550 (init_sys_modes): Check that gpm_tty is the current tty.
23551
23552 * alloc.c (allocate_terminal): Set the vector size to only count the
23553 lisp fields. Initialize those to nil.
23554 (mark_object): Don't treat terminals specially.
23555 (mark_terminal): Remove.
23556 (mark_terminals): Use mark_object instead.
23557
23558 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23559 the GC to the beginning.
23560
23561 * indent.h:
23562 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23563
23564 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23565
235662007-09-25 Jason Rumney <jasonr@gnu.org>
23567
23568 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23569
23570 * w32console.c (create_w32cons_output): Remove.
23571
23572 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23573
23574 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23575 (reset_sys_modes): Use reset_terminal_modes_hook.
23576
235772007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23578
23579 * eval.c (do_autoload): Don't output any message.
23580
235812007-09-24 Juri Linkov <juri@jurta.org>
23582
23583 * emacs.c (standard_args): Change priority of "--no-splash"
23584 from 40 to 3. Add "--no-desktop" with the same priority.
23585
235862007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23587
23588 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23589 and optimize the case where they are all 1.
23590
235912007-09-23 Johannes Weiner <hannes@saeurebad.de>
23592
23593 * lisp.h (abs): Define if not defined.
23594 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23595 Don't define `abs', since it's defined in lisp.h.
23596
235972007-09-22 Eli Zaretskii <eliz@gnu.org>
23598
23599 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23600 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23601 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23602 (init_tty): Use DEV_TTY instead of "/dev/tty".
23603 [WINDOWSNT]: No need to protect from NAME arg being null.
23604
236052007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23606
23607 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23608 up the tty state.
23609
236102007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23611
23612 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23613 (gpm_tty): Change its type.
23614 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23615 (gpm_tty): Change its type and initialize it.
23616 (Fterm_open_connection): Check the frame is indeed a tty.
23617 Use the new gpm_tty.
23618 (Fterm_close_connection): Use the new gpm_tty.
23619 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23620 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23621
236222007-09-21 Juanma Barranquero <lekktu@gmail.com>
23623
23624 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23625 underline_color, to draw strike-through.
23626
236272007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23628
23629 * lisp.h (allocate_terminal): Declare.
23630
23631 * window.c (candidate_window_p): Consider frames that are being placed
23632 by the user as somewhere between visible and iconified.
23633 (window_loop): Prefer windows on the current frame.
23634 (Fselect_window): Move the use of select-frame to the beginning so we
23635 can just delegate all the work (it'll call us back anyway).
23636
23637 * frame.c (Qdisplay_environment_variable):
23638 * frame.h (Qdisplay_environment_variable): Delete.
23639
23640 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23641 of the first arg, since that value may be a union.
23642
23643 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23644 parameter rather than Qdisplay_environment_variable. If all else
23645 fails, look for DISPLAY in initial-environment.
23646
236472007-09-21 Glenn Morris <rgm@gnu.org>
23648
23649 * Makefile.in (emacstool): Remove target.
23650 (lisp, shortlisp): Remove termdev.elc.
23651
236522007-09-21 Markus Triska <markus.triska@gmx.at>
23653
23654 * xterm.c (x_delete_display): Compile session management conditionally.
23655
236562007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23657
23658 * callproc.c (getenv_internal_1): New function.
23659 (getenv_internal): Use it.
23660 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23661
23662 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23663 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23664 (Fset_terminal_parameter): Work with dead terminals as well.
23665 (Fmodify_terminal_parameters): Remove.
23666
23667 * terminal.c (get_terminal): Handle terminals.
23668 Make sure the terminal returned is live.
23669 (create_terminal): Use allocate_terminal.
23670 (mark_terminals): Move to alloc.c.
23671 (delete_terminal): Use terminal->name as liveness status.
23672 NULL out fields after freeing their contents.
23673 Don't deallocate the object.
23674 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23675 rather than an int.
23676 (Fterminal_live_p): Accept non-integer arguments.
23677 (Fterminal_list): Return terminal objects rather than an ints.
23678
23679 * alloc.c (enum mem_type): New member for `terminal' objects.
23680 (allocate_terminal): New function.
23681 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23682 Handle terminals.
23683 (mark_terminal): New fun.
23684 (mark_terminals): Move from terminal.c.
23685
23686 * term.c (get_tty_terminal): Don't treat output_initial specially.
23687 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23688 (delete_tty): Use terminal->name as liveness status.
23689
23690 * termhooks.h (struct terminal): Make it into a pseudovector.
23691 Remove `deleted' replaced by checking `name's nullness.
23692
23693 * print.c (print_object): Handle terminals.
23694
23695 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23696 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23697
23698 * frame.c (make_terminal_frame):
23699 * keyboard.c (tty_read_avail_input):
23700 * w32term.c (x_delete_terminal):
23701 * xfns.c (Fx_create_frame, x_create_tip_frame):
23702 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23703
237042007-09-20 Glenn Morris <rgm@gnu.org>
23705
23706 * process.c (Fmake_network_process): Doc fix.
23707
237082007-09-19 Jason Rumney <jasonr@gnu.org>
23709
23710 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23711
237122007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23713
23714 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23715 Fix a C warning regarding variable constness.
23716
23717 * xterm.c (handle_one_xevent): Fix a C warning.
23718
237192007-09-18 Jason Rumney <jasonr@gnu.org>
23720
23721 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23722
237232007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23724
23725 * gtkutil.c (gdpy_def): New variable.
23726 (xg_initialize): Initialize gdpy_def.
23727 (xg_display_close): If no other display exists, set gdpy_def to a
23728 new connection.
23729
237302007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23731
23732 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23733 when we have no file name for the icon.
23734 (xg_tool_bar_expose_callback): Remove.
23735 (xg_create_tool_bar): Don't connect expose signal to
23736 xg_tool_bar_expose_callback.
23737 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23738
237392007-09-16 Andreas Schwab <schwab@suse.de>
23740
23741 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23742 values instead of zapping them.
23743
237442007-09-14 Glenn Morris <rgm@gnu.org>
23745
23746 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23747 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23748 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23749 scope and rename to omfib_buffer for clarity.
23750 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23751
237522007-09-14 Kenichi Handa <handa@m17n.org>
23753
23754 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23755
237562007-09-13 Jason Rumney <jasonr@gnu.org>
23757
23758 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23759
23760 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23761
23762 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23763 (mac_term_init): Call here instead, passing rif.
23764
237652007-09-13 Glenn Morris <rgm@gnu.org>
23766
23767 * s/hpux.h: No longer define `static' as nothing.
23768
237692007-09-13 Johan Bockgård <bojohan@gnu.org>
23770
23771 * callint.c (Fcall_interactively): Remove unused var `fun'.
23772
237732007-09-12 Romain Francoise <romain@orebokech.com>
23774
23775 * window.c (prefer_window_split_horizontally, display_buffer):
23776 Revert 2007-09-08 change.
23777
237782007-09-12 Glenn Morris <rgm@gnu.org>
23779
23780 * alloca.c: Remove file.
23781 * Makefile.in (alloca): Do not undef.
23782 (allocaobj, alloca.o): Remove.
23783 (otherobj): Remove allocaobj.
23784 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23785 * regex.c (C_ALLOCA): Remove all references and code that was only
23786 used when this was defined.
23787 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23788 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23789 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23790
23791 * Makefile.in (SOURCES, unlock, relock): Delete.
23792
23793 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23794 (menu_grab_callback): All uses changed.
23795
23796 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23797 (x_reply_selection_request): All uses changed.
23798
237992007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23800
23801 * lread.c (load_warn_old_style_backquotes): Change message to look
23802 better when it appears in the middle of byte-compiler messages.
23803
238042007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23805
23806 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23807
23808 * xterm.c (x_create_terminal): Add comment.
23809
23810 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23811
238122007-09-10 Richard Stallman <rms@gnu.org>
23813
23814 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23815
238162007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23817
23818 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23819 (DEFUN): Document `intspec', use it instead of `prompt'.
23820
23821 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23822
23823 * data.c (Finteractive_form): If the interactive specification starts
23824 with a `(', use it as a Lisp form.
23825
23826 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23827 name and file modes.
23828
23829 * callint.c (Fcall_interactively): Comment fixes.
23830
238312007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23832
23833 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23834 and compiled functions.
23835
238362007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23837
23838 * window.c (prefer_window_split_horizontally): New variable.
23839 (display_buffer): Consider splitting window horizontally depending
23840 on prefer_window_split_horizontally.
23841
238422007-09-08 Eli Zaretskii <eliz@gnu.org>
23843
23844 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23845
238462007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23847
23848 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23849
23850 * frame.c (x_set_frame_parameters): Check number is positive before
23851 using XFASTINT.
23852
23853 * window.c (freeze_window_start): Don't presume selected_window holds
23854 a window object.
23855 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23856
238572007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23858
23859 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23860
238612007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23862
23863 * window.c (Vsplit_window_preferred_function): New var.
23864 (Fdisplay_buffer): Use it.
23865 (syms_of_window): Export, and initialize it.
23866
238672007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23868
23869 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23870
238712007-09-06 Glenn Morris <rgm@gnu.org>
23872
23873 * gtkutil.c (menu_grab_callback) <cnt>:
23874 * xselect.c (x_reply_selection_request) <cnt>: Move static
23875 variable to file scope.
23876
238772007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23878
23879 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23880 consistent values of selected_frame and selected_window.
23881
238822007-09-04 Jason Rumney <jasonr@gnu.org>
23883
23884 * w32console.c (initialize_w32_display): Zero unused hooks.
23885
238862007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23887
23888 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23889 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23890
238912007-09-04 Jason Rumney <jasonr@gnu.org>
23892
23893 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23894 in w32console.c. Set up input. Remove XXX comments that have been
23895 confirmed as correct.
23896
23897 * s/ms-w32.h (MULTI_KBOARD): Define.
23898
23899 * w32console.c (one_and_only_w32cons): Remove.
23900 (initialize_w32_display): Take terminal argument.
23901
23902 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23903 initialize_w32_display.
23904 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23905
23906 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23907
23908 * keyboard.c (discard_mouse_events): Discard it.
23909 (make_lispy_event): Translate it to a lisp event.
23910 (lispy_wheel_names): Add wheel-left and right events.
23911 (syms_of_keyboard): Enlarge wheel_syms.
23912
23913 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23914 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23915
23916 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23917
23918 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23919 from WM_MOUSEHWHEEL.
23920 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23921
23922 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23923 terminal.
23924
23925 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23926 keyboard for the terminal.
23927
239282007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23929
23930 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23931 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23932 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23933 and resume-tty-function to resume-tty-hook.
23934 (Fsuspend_tty, Fresume_tty): Use new names.
23935
239362007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23937
23938 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23939 if it starts with "n:".
23940
239412007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23942
23943 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23944
239452007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23946
23947 * frame.h:
23948 * frame.c (Qterm_environment_variable): Remove.
23949 (syms_of_frame): Don't init and staticpro it.
23950
23951 * callproc.c (getenv_internal): Remove special case for $TERM.
23952
23953 * callproc.c (Vinitial_environment): New variable.
23954 (set_initial_environment): Initialize it.
23955 (syms_of_callproc): Declare it.
23956 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23957 TERM under which a process runs is never related to the TERM in which
23958 Emacs is running.
23959
239602007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23961
23962 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23963 * s/darwin.h: ... do it here.
23964
239652007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23966
23967 * lisp.h (set_initial_environment): Rename from set_global_environment.
23968
23969 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23970 removed by mistake on the multi-tty branch.
23971
23972 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23973 (Fmodify_frame_parameters): Return a value.
23974
23975 * image.c (png_load): Comment-out var only used in commented-out code.
23976
23977 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23978 before passing it to mark_object.
23979
23980 * xfaces.c (internal_resolve_face_name): Return a value.
23981 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23982
23983 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23984 (x_icon): Comment-out var only used in commented-out code.
23985
239862007-08-29 Romain Francoise <romain@orebokech.com>
23987
23988 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23989 QUIT hasn't been provided.
23990
239912007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23992
23993 * callproc.c (child_setup, getenv_internal): Use the
23994 display-environment-variable and term-environment-variable frame params.
23995 (set_initial_environment): Initialise Vprocess_environment.
23996
23997 * config.in: Disable multi-keyboard support on a mac.
23998
23999 * frame.c (Qterm_environment_variable)
24000 (Qdisplay_environment_variable): New variables.
24001 (syms_of_frame): Intern and staticpro them.
24002 (Fmake_terminal_frame): Disable output method test.
24003
24004 * frame.h: Declare them here.
24005
24006 * macfns.c (x_set_mouse_color): Get rif from the frame.
24007 (x_set_tool_bar_lines): Don't use updating_frame.
24008 (mac_window): Add 2 new parameters for consistency with other systems.
24009 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24010 frame parameters following what is done in X11 and w32. Don't use
24011 FRAME_MAC_DISPLAY_INFO.
24012 (Fx_open_connection, start_hourglass): Remove window-system check.
24013 (x_create_tip_frame): Get the keyboard from the terminal.
24014
24015 * macmenu.c: Reorder includes.
24016 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24017
24018 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24019 terminal parameter.
24020 (x_clear_frame): Add a frame parameter.
24021 (note_mouse_movement): Get rif from the frame.
24022 (mac_term_init): Initialize the terminal.
24023 (mac_initialize): Make static and move terminal initialization ...
24024 (mac_create_terminal): ... to this new function.
24025
24026 * macterm.h (struct mac_display_info): Add terminal.
24027 (mac_initialize): Delete declaration.
24028
24029 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24030
24031 * sysdep.c: Comment out text after #endif.
24032
24033 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24034 is defined. Better initialize ttys in windows. Use terminal
24035 specific mouse_position_hook.
24036
24037 * termhooks.h (union display_info): Add mac_display_info.
24038
24039 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24040 Set the default minibuffer frame, window_system and the rest of the
24041 frame parameters following what is done in X11.
24042
24043 * w32term.c (w32_initialize): Make static.
24044
24045 * xselect.c (x_handle_selection_clear): Only access
24046 terminal->kboard when MULTI_KBOARD is defined.
24047
24048 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24049 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24050
240512007-08-29 Jason Rumney <jasonr@gnu.org>
24052
24053 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24054 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24055
24056 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24057 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24058
24059 * keyboard.c (restore_kboard_configuration): Only define when
24060 MULTI_KBOARD defined.
24061
24062 * makefile.w32-in: Update dependancies from Makefile.in.
24063 (OBJ1): Add terminal.$(O)
24064
24065 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24066 Don't define function body.
24067 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24068
24069 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24070
24071 * w32.c (request_sigio, unrequest_sigio): Remove.
24072
24073 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24074 (w32con_clear_frame, w32con_clear_end_of_line)
24075 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24076 (w32con_delete_glyphs, w32con_set_terminal_window)
24077 (scroll_line, w32_sys_ring_bell): Add frame arg.
24078 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24079 Add terminal arg.
24080 (PICK_FRAME): Remove.
24081 (w32con_write_glyphs): Use frame specific terminal coding.
24082 (one_and_only_w32cons): New global variable.
24083 (initialize_w32_display): Use it for storing hooks.
24084 (create_w32cons_output): New function.
24085
24086 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24087 arg a frame.
24088
24089 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24090 Set window_system.
24091 (x_set_tool_bar_lines): Don't use updating_frame.
24092 (Fx_create_frame): Set terminal and ref count.
24093 (Fx_open_connection): Remove window-system check.
24094
24095 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24096
24097 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24098 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24099 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24100 Add frame arg.
24101 (x_delete_terminal, w32_create_terminal): New functions.
24102 (w32_term_init): Create a terminal.
24103 (w32_initialize): Move terminal specific initialization to
24104 w32_create_terminal.
24105
24106 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24107 (w32_clear_rect, w32_clear_area): Use background from frame.
24108 (w32_display_info): Add terminal.
24109 (w32_sys_ring_bell, x_delete_display): Declare here.
24110
24111 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24112
24113 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24114
241152007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24116
24117 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24118 Fix get_named_tty calls for the controlling tty.
24119
241202007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24121
194d44e7 24122 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24123
241242007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24125
24126 * term.c (tty_insert_glyphs): Add missing first parameter.
24127
241282007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24129
24130 * buffer.c (Fbuffer_list, Fbury_buffer):
24131 Take frame->buried_buffer_list into account.
24132
24133 * cm.c (current_tty): New variable, for cmputc().
24134 (cmputc): Use it.
24135 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24136 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24137 (cmgoto): Add tty parameter. Pass it on to calccost().
24138 Use emacs_tputs() instead of tputs().
24139
24140 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24141 tputs().
24142 (current_tty): New variable, for cmputc().
24143 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24144
24145 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24146 (internal_condition_case, internal_condition_case_1)
24147 (internal_condition_case_2): Don't abort when x_catching_errors.
24148
24149 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24150 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24151 prevent crashes caused by bogus longjmps in read_char.
24152
24153 * keymap.h (Fset_keymap_parent): Add EXFUN.
24154
24155 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24156 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24157 Remove redundant definition.
24158
24159 * macfns.c (x_set_mouse_color, x_make_gc):
24160 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24161
24162 * w32term.c (x_free_frame_resources):
24163 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24164 (w32_initialize): Use the accessor macros for terminal characteristics.
24165
24166 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24167 Use the accessor macros for terminal characteristics.
24168 * msdos.c (internal_terminal_init): Use the accessor macros for
24169 terminal characteristics.
24170 (ScreenVisualBell, internal_terminal_init):
24171 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24172
24173 * termopts.h (no_redraw_on_reenter): Declare.
24174
24175 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24176 (mark_terminals, mark_ttys): Declare.
24177 (Fgarbage_collect): Call them.
24178 (mark_object): Mark buried_buffer_list.
24179
24180 * prefix-args.c: Include stdlib.h for exit.
24181
24182 * syssignal.h: Add comment.
24183
24184 * indent.c: Include stdio.h.
24185
24186 * window.h (Vinitial_window_system): Declare.
24187 (Vwindow_system): Delete declaration.
24188
24189 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24190
24191 * image.c (lookup_image): Don't initialize `c' until the xasserts
24192 have been run.
24193
24194 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24195 FRAME_FOREGROUND_PIXEL.
24196
24197 * print.c (print_preprocess): Don't lose print_depth levels while
24198 iterating.
24199
24200 * widget.c (update_from_various_frame_slots):
24201 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24202
24203 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24204 frames.
24205 (window_internal_height): Remove bogus make_number call.
24206 (init_window_once): Call make_terminal_frame with two zero parameters.
24207
24208 * fileio.c (Fread_file_name): Update comment.
24209
24210 * callint.c (Fcall_interactively):
24211 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24212 Make sure it is correctly unwound.
24213
24214 * xsmfns.c (x_session_close): New function.
24215
24216 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24217 Delete declarations.
24218
24219 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24220 (x_output): Remove background_pixel and foreground_pixel fields.
24221 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24222 (x_delete_device, x_session_close): Declare.
24223
24224 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24225 (read_filtered_event): Call `read_char' with a local
24226 `wrong_kboard_jmpbuf'.
24227
24228 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24229 Don't call single_kboard_state. Use FRAME_RIF.
24230
24231 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24232 systems.
24233
24234 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24235 (Fframe_with_environment, Fset_input_meta_mode)
24236 (Fset_quit_char): EXFUN.
24237 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24238 (init_sys_modes, reset_sys_modes): Update prototypes.
24239 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24240
24241 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24242 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24243 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24244 Delete declarations.
24245 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24246 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24247 New declarations.
24248
24249 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24250 already does that during init_display(). Call syms_of_keymap
24251 before syms_of_keyboard. Call `syms_of_terminal'.
24252 Call set_initial_environment, not set_process_environment.
24253 (shut_down_emacs): Call reset_all_sys_modes() instead of
24254 reset_sys_modes().
24255
24256 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24257 (internal_resolve_face_name, resolve_face_name_error): New functions.
24258 (resolve_face_name): Protect against loops and errors thrown by Fget.
24259 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24260 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24261
24262 * scroll.c: Replace CURTTY() with local variables throughout the
24263 file (where applicable).
24264 (calculate_scrolling, calculate_direct_scrolling)
24265 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24266 characteristics.
24267
24268 * keymap.c (Vfunction_key_map): Remove.
24269 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24270 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24271 (Vkey_translation_map): Remove.
24272 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24273 (Fdescribe_buffer_bindings)
24274 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24275 Update for terminal-local key-translation-map.
24276
24277 * Makefile.in (callproc.o): Update dependencies.
24278 (lisp, shortlisp): Add termdev.elc.
24279 (obj): Add terminal.o.
24280 (terminal.o): Add dependencies.
24281 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24282 (data.o, fns.o): Add termhooks.h dependency.
24283 (SOME_MACHINE_LISP): Add dnd.elc.
24284 (minibuf.o): Fix typo.
24285 Update dependencies.
24286
24287 * data.c (do_symval_forwarding, store_symval_forwarding)
24288 (find_symbol_value): Use the selected frame's keyboard, not
24289 current_kboard.
24290
24291 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24292 Vwindow_system.
24293
24294 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24295 Fmenu_bar_open.
24296 (syms_of_xmenu): Update defsubr.
24297 (mouse_position_for_popup, Fx_popup_menu)
24298 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24299 (set_frame_menubar, free_frame_menubar)
b97439ce 24300 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24301 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24302 an X frame.
24303
24304 * xselect.c (x_own_selection): Abort if not an X frame.
24305 (some_frame_on_display): Check if it is an X frame.
24306 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24307
24308 * coding.c: Include frame.h and termhooks.h.
24309 (terminal_coding, keyboard_coding): Delete.
24310 (Fset_terminal_coding_system_internal)
24311 (Fset_keyboard_coding_system_internal)
24312 (Fkeyboard_coding_system)
24313 (Fterminal_coding_system): Add a terminal parameter.
24314 Get terminal_coding from the terminal.
24315 (init_coding_once): Don't call setup_coding_system here.
24316
24317 * dispextern.h (set_scroll_region, turn_off_insert)
24318 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24319 (tty_clear_end_of_line, tty_setup_colors)
24320 (delete_tty, updating_frame)
24321 (produce_special_glyphs, produce_glyphs, write_glyphs)
24322 (insert_glyphs): Remove.
24323 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24324 (tty_turn_off_highlight, get_tty_size): Add declaration.
24325 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24326
24327 * frame.h (enum output_method): Add output_initial.
24328 (struct x_output): Delete.
24329 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24330 Access foreground_pixel and background_pixel directly from the frame.
24331 (tty_display): Delete.
24332 (struct frame): Add buried_buffer_list, foreground_pixel,
24333 background_pixel and terminal. Delete kboard.
24334 (union output_data): Add tty.
24335 (FRAME_KBOARD): Get the kboard from the terminal.
24336 (FRAME_INITIAL_P): New macro.
24337 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24338 (Qterm_environment_variable, Qdisplay_environment_variable)
24339 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24340 New declarations.
24341
24342 * termchar.h (tty_output, tty_display_info): New structures.
24343 (tty_list): Declare.
24344 (FRAME_TTY, CURTTY): New macros.
24345 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24346 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24347 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24348 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24349
24350 * callproc.c: Include frame.h and termhooks.h, for terminal
24351 parameters.
24352 (add_env): New function.
24353 (child_setup): Use it.
24354 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24355 (getenv_internal): Fix get_terminal_param call.
24356 (Fgetenv_internal, egetenv): Update doc.
24357 (syms_of_callproc): Initialize Vprocess_environment to nil.
24358 Register and initialize them. Remove obsolete defvars. Update doc
24359 strings.
24360 (child_setup): Handle Vlocal_environment_variables.
24361 (getenv_internal): Add terminal parameter.
24362 Handle Vlocal_environment_variables.
24363 (Fgetenv_internal): Add terminal parameter.
24364 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24365 environment in a frame (not terminal) parameter. Update doc strings.
24366 (set_initial_environment): Rename from set_global_environment.
24367 Store Emacs environment in initial frame parameter.
24368
24369 * xdisp.c (redisplay_internal): Update references to
24370 `previous_terminal_frame'.
24371 (display_mode_line, Fformat_mode_line): Replace calls to
24372 `push_frame_kboard' with `push_kboard'.
24373 (get_glyph_string_clip_rects): Add extra parentheses and
24374 braces to prevent compiler warnings.
24375 (calc_pixel_width_or_height): Add xassert to check that the
24376 frame is alive. Don't call `lookup_image' on a termcap frame.
24377 (message2_nolog, message3_nolog, redisplay_internal)
24378 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24379 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24380 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24381 (Fx_display_pixel_width, Fx_display_pixel_height)
24382 (Fx_display_planes, Fx_display_color_cells)
24383 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24384 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24385 (Fx_display_backing_store, Fx_display_visual_class)
24386 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24387 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24388
24389 * xfns.c (x_set_foreground_color x_set_background_color)
24390 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24391 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24392 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24393 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24394 terminal that is being deleted.
24395 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24396 frame parameter, and make sure it overrides any user-supplied setting.
24397 (Fx_close_connection, Fx_synchronize): Unify argument names with
24398 the rest of the DEFUNs.
24399
24400 * dispnew.c (Fsend_string_to_terminal): Update call to
24401 `get_tty_terminal'.
24402 (Fredraw_frame, Fsend_string_to_terminal)
24403 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24404 FRAME_TERMCAP_P and FRAME_TTY.
24405 (window_change_signal): Don't believe width/height values that are
24406 impossibly small.
24407 (Vinitial_window_system): Rename from Vwindow_system.
24408 (termscript, Wcm, rif): Delete.
24409
24410 * termhooks.h (struct terminal): New struct containing the
24411 previously global text display hooks and new members NAME,
24412 DELETED and PARAM_ALIST.
24413 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24414 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24415 (FRAME_RIF): New macros.
24416 (get_terminal_param, get_device): New declarations.
24417 (termscript): Delete declaration.
24418
24419 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24420 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24421 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24422 FRAME_FOREGROUND_PIXEL.
24423 (x_fully_uncatch_errors): Disable definition.
24424 (x_scroll_bar_expose): Fix reference to foreground pixel.
24425 (XTread_socket): Disable loop on all X displays.
24426 (x_delete_terminal): Don't set terminal->deleted and let
24427 delete_terminal delete the frames on the terminal.
24428 (x_delete_display): Doc update to reflect changes in
24429 delete_terminal.
24430 (x_display_info) <terminal>: Move member earlier in the struct.
24431 (deleting_tty): Remove old variable.
24432 (Fsuspend_tty): Call clear_tty_hooks.
24433 (Fresume_tty, init_tty): Call set_tty_hooks.
24434 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24435 errors on X frames.
24436 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24437 (handle_one_xevent): Initialize `f' to NULL.
24438 (x_delete_terminal, x_create_terminal): New functions.
24439 (XTset_terminal_modes, XTreset_terminal_modes)
24440 (XTread_socket, x_connection_closed, x_term_init)
24441 (x_term_init, x_delete_display): Add terminal parameter.
24442 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24443 X connections.
24444
24445 * frame.c: Include termchar.h.
24446 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24447 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24448 (Qdisplay_environment_variable): New vars.
24449 (Fframep): Deal with output_initial.
24450 (Fframe-live-p): Doc fix.
24451 (Fwindow-system): New function.
24452 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24453 (make_terminal_frame): Don't create frames on a terminal that is
24454 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24455 (store_frame_param): Check for found_for_frame before calling XFRAME.
24456 (Fmake_terminal_frame): Handle NULL tty names correctly.
24457 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24458 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24459 frames to refer to a deleted frame in their 'environment parameter.
24460 (Fframe_with_environment): New function.
24461 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24462 (get_future_frame_param): New function.
24463 (Fmake_terminal_frame): Use it.
24464 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24465
24466 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24467 * sysdep.c (reset_sys_modes): Update for renames.
24468
24469 * keyboard.c (tty_read_avail_input): New function.
24470 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24471 (syms_of_keyboard): Defsubr them.
24472 (Fset_input_meta_mode, Fset_quit_char): New functions.
24473 (Fset_input_mode): Split to above functions.
24474 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24475 parameter. Use it in call to `read_char'.
24476 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24477 Set wrong_kboard_jmpbuf correctly in recursive calls.
24478 Use current_kboard to access Vkeyboard_translate_table.
24479 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24480 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24481 Update longjmp invocations. Remember the original current_kboard,
24482 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24483 changes it. Comment out unnecessary calls to
24484 `record_single_kboard_state' and `any_kboard_state'.
24485 Update recursive calls.
24486 (wrong_kboard_jmpbuf): Remove global variable.
24487 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24488 Handle deleted interrupted_kboards correctly; that is a legal
24489 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24490 and read_char calls. Abort if interrupted_kboard died in read_char.
24491 (any_kboard_state, single_kboard_state)
24492 (push_frame_kboard): Remove function.
24493 (pop_kboard): Switch out of single_kboard mode if the kboard has
24494 been deleted. Remove unused variable. Help debugging by not
24495 changing current_kboard unnecessarily. Set current_kboard to the
24496 kboard of the selected frame when the stored kboard object has
24497 been deleted before pop_kboard.
24498 (temporarily_switch_to_single_kboard): Change first parameter to a
24499 frame pointer. Throw an error when caller wants to change kboards
24500 while in single_kboard mode. Don't push_kboard if we weren't in
24501 single kboard state. Don't pop_kboard if we popped into any
24502 kboard state.
24503 (restore_kboard_configuration): Abort if pop_kboard changed the
24504 kboard in single_kboard mode. Call pop_kboard only after setting
24505 up single_kboard mode.
24506 (Frecursive_edit): Switch to single_kboard mode only in nested
24507 command loops.
24508 (cmd_error, command_loop, command_loop_1, timer_check):
24509 Comment out unnecessary call to `any_kboard_state' and
24510 `record_single_kboard_state'.
24511 (delete_kboard): Exit single_kboard mode if we have just deleted
24512 that kboard. Use FRAME_KBOARD.
24513 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24514 `fatal_error_signal'.
24515 (record_single_kboard_state): Don't push_kboard if we weren't in
24516 single kboard state. Don't pop_kboard if we popped into any
24517 kboard state.
24518 (push_frame_kboard): Rename to push_kboard.
24519 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24520 (read_avail_input): Read input from all terminals.
24521 (mark_kboards): Also mark Vkeyboard_translate_table.
24522 (kbd_buffer_store_event_hold): Simplify condition.
24523 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24524 (Vkeyboard_translate_table): Move to struct kboard.
24525 (init_kboard): Initialize Vkeyboard_translate_table.
24526 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24527 Vkeyboard_translate_table. Update doc strings. Update docs of
24528 local-function-key-map and function-key-map.
24529
24530 * terminal.c: New file.
24531
24532 * term.c: Include errno.h.
24533 (Vring_bell_function, device_list, initial_device)
24534 (next_device_id, ring_bell, update_begin, update_end)
24535 (set_terminal_window, cursor_to, raw_cursor_to)
24536 (clear_to_end, clear_frame, clear_end_of_line)
24537 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24538 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24539 (syms_of_term): Move their initialization to terminal.c.
24540 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24541 (Ftty_display_color_cells)
24542 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24543 (clear_tty_hooks, set_tty_hooks)
24544 (init_tty, maybe_fatal): New functions.
24545 (Ftty_type): Return nil if terminal is not on a tty instead of
24546 throwing an error. Doc update.
24547 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24548 Doc update. Initialize new subrs and variables.
24549 (delete_tty): Use terminal->deleted.
24550 (tty_set_terminal_modes): Rename from set_terminal_modes.
24551 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24552 (set_scroll_region): Rename to `tty_set_scroll_region'.
24553 (turn_on_insert): Rename to `tty_turn_on_insert'.
24554 (turn_off_insert): Rename to `tty_turn_off_insert'.
24555 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24556 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24557 (toggle_highligh): Rename to `tty_toggle_highlight'.
24558 (background_highlight): Rename to `tty_background_highlight'.
24559 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24560 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24561 (tty_set_scroll_region, tty_background_highlight)
24562 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24563 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24564 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24565 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24566 Add static modifier.
24567 (tty_reset_terminal_modes, tty_set_terminal_window)
24568 (tty_set_scroll_region, tty_background_highlight)
24569 (tty_highlight_if_desired, tty_cursor_to)
24570 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24571 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24572 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24573 renames.
24574
245752007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24576
24577 * keyboard.c: Qrtl is new.
24578 (parse_tool_bar_item): Handle :rtl keyword.
24579 (syms_of_keyboard): Intern :rtl keyword.
24580
24581 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24582
24583 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24584 so no Lisp code is executed.
24585 (file_for_image, find_rtl_image): New functions.
24586 (xg_get_image_for_pixmap): Use file_for_image.
24587 (update_frame_tool_bar): If direction is RTL, use RTL image if
24588 defined. Use Gtk stock images if defined.
24589
245902007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24591
24592 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24593 for nonexistent or zero-width glyph in composition glyph.
24594
245952007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24596
24597 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24598
24599 * xdisp.c (Finvisible_p): New function.
24600 (syms_of_xdisp): defsubr it.
24601
246022007-08-24 Juanma Barranquero <lekktu@gmail.com>
24603
24604 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24605 Doc fixes.
24606
246072007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24608
24609 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24610
246112007-08-24 Martin Rudalics <rudalics@gmx.at>
24612
24613 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24614 whether decoding has modified buffer contents.
24615
246162007-08-24 Jason Rumney <jasonr@gnu.org>
24617
24618 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24619 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24620 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24621 (init_svg_functions) [HAVE_NTGUI]: New function.
24622 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24623 (svg_load_image): Use them.
24624 (svg_load_image) [HAVE_NTGUI]: Implement background.
24625
246262007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24627
24628 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24629 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24630 (LIBX): Remove @RSVG_LIBS@.
24631 (LIBES): Add $(RSVG_LIBS).
24632
24633 * image.c (svg_load_image): Blend with specified background if exists.
24634 Use IMAGE_BACKGROUND. Add Mac OS Support.
24635
24636 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24637 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24638 Remove macros.
24639 [MAC_OSX] (socket_callback): Do nothing.
24640 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24641 ReceiveNextEvent.
24642 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24643 socket_callback.
24644 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24645
246462007-08-22 Glenn Morris <rgm@gnu.org>
24647
24648 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24649
246502007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24651
24652 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24653
24654 * image.c: Add support for SVG images. Some additional comments
24655 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24656 (svg_image_p): New function to test for SVG image.
24657 (svg_load): New function to load SVG image.
24658 (svg_load_image): New function, helper for svg_load.
24659 (Qsvg): New Lisp_object.
24660 (svg_keyword_index): New enum.
24661 (svg_format): New static `image_keyword' struct.
24662 (svg_type): New static `image_type' struct.
24663 (librsvg/rsvg.h): Include it.
24664
246652007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24666
24667 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24668
246692007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24670
24671 * lread.c (Qold_style_backquotes): New var.
24672 (syms_of_lread): Init and staticpro it.
24673 (load_warn_old_style_backquotes): New fun.
24674 (Fload): Use them to warn about old style backquotes.
24675 (end_of_file_error, Fload): Remove unused vars.
24676
24677 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24678
24679 * lread.c (Vold_style_backquotes): New var.
24680 (syms_of_lread): Init and export it to Elisp.
24681 (read1): Set it when we find an old-style (back)quote.
24682
246832007-08-22 Jason Rumney <jasonr@gnu.org>
24684
24685 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24686
246872007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24688
24689 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24690
246912007-08-19 Richard Stallman <rms@gnu.org>
24692
24693 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24694
246952007-08-19 Andreas Schwab <schwab@suse.de>
24696
24697 * alloc.c (pure): Round PURESIZE up.
24698
246992007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24700
24701 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24702 active frame.
24703
247042007-08-16 Richard Stallman <rms@gnu.org>
24705
24706 * eval.c (Fcommandp): Add parens to clarify.
24707
24708 * minibuf.c (Fall_completions): Use enum for type of table.
24709
24710 * emacs.c (USAGE2): Improve text.
24711
247122007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24713
24714 * term.c (tty_default_color_capabilities): Declare static
24715 variables in file scope, to avoid HPUX compiler problem.
24716
247172007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24718
24719 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24720 to gtk_toolbar_insert.
24721
247222007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24723
24724 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24725
24726 * insdel.c (reset_var_on_error): New fun.
24727 (signal_before_change, signal_after_change):
24728 Use it to reset (after|before)-change-functions to nil in case of error.
24729 Bind inhibit-modification-hooks to t.
24730 Don't bind (after|before)-change-functions to nil while they run.
24731
247322007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24733
24734 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24735 filling pixmap with stippled background.
24736
247372007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24738
24739 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24740 Don't use invisible frame as parent window for repositioning.
24741
247422007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24743
24744 * print.c (new_backquote_output): Rename from old_backquote_output.
24745 (print): Inverse its logic (according to its name) so as to match the
24746 behavior of new_backquote_flag in lread.c.
24747
247482007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24749
24750 * gmalloc.c (posix_memalign): New function.
24751
24752 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24753 ActivateControl/DeactivateControl here.
24754 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24755 frame-notice-user-settings is non-nil.
24756 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24757 for kEventParamFMFontStyle.
24758 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24759 mac_pass_command_to_system and mac_pass_control_to_system here.
24760 (XTread_socket): Call ActivateControl/DeactivateControl here.
24761 (XTread_socket) [TARGET_API_MAC_CARBON]:
24762 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24763 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24764 for window repositioning.
24765
247662007-08-08 Glenn Morris <rgm@gnu.org>
24767
24768 * Replace `iff' in doc-strings and comments.
24769
247702007-08-07 Chong Yidong <cyd@stupidchicken.com>
24771
24772 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24773
247742007-08-07 Martin Rudalics <rudalics@gmx.at>
24775
24776 * fileio.c (Finsert_file_contents): Run format-decode and
24777 after_insert_file_functions on entire buffer when REPLACE is
24778 non-nil and inhibit modification_hooks and point_motion_hooks.
24779 For consistency, run after_insert_file_functions iff something
24780 got inserted. Move signal_after_change and update_compositions
24781 after code running after_insert_file_functions. Make sure that
24782 undo_list doesn't record intermediate steps of the decoding process.
24783
247842007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24785
24786 * emacs.c (main)
24787 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24788 Call malloc_enable_thread on interactive startup.
24789
24790 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24791 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24792 [USE_PTHREAD]: Conditionalize with it.
24793 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24794 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24795 New functions.
24796
247972007-08-06 Chong Yidong <cyd@stupidchicken.com>
24798
24799 * xdisp.c (redisplay_window): When restoring original buffer
24800 position, make sure it is still valid.
24801
24802 * image.c (png_load): Ignore png-supplied background color.
24803
248042007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24805
24806 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24807 Use kCFAbsoluteTimeIntervalSince1970.
24808
24809 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24810 New variable.
24811 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24812 event loop should be quit.
24813 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24814 Quit dialog event loop if quit_dialog_event_loop is set.
24815
24816 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24817 (Selection): New typedef. Use instead of ScrapRef.
24818 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24819 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24820 (mac_clear_selection): Rename from clear_scrap.
24821 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24822 scrap_has_target_type. All uses changed.
24823 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24824 (mac_selection_has_target_p): New functions.
24825 (mac_put_selection_value): Rename from put_scrap_string.
24826 (mac_get_selection_value): Rename from get_scrap_string.
24827 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24828 (put_scrap_private_timestamp, scrap_has_target_type)
24829 (get_scrap_private_timestamp): Remove functions.
24830 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24831 (x_own_selection, x_get_local_selection):
24832 Use mac_valid_selection_value_p.
24833 (x_own_selection): Don't use put_scrap_private_timestamp.
24834 Record OWNERSHIP-INFO into Vselection_alist instead.
24835 (x_get_local_selection): Don't check type if request is local.
24836 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24837 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24838
248392007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24840
24841 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24842 add comment explaining why.
24843
248442007-08-03 Richard Stallman <rms@gnu.org>
24845
24846 * fileio.c (Fvisited_file_modtime): Use make_time.
24847
248482007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24849
24850 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24851 build.
24852
248532007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24854
24855 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24856
248572007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24858
24859 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24860
248612007-07-30 Richard Stallman <rms@gnu.org>
24862
24863 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24864
248652007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24866
24867 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24868
248692007-07-28 Nick Roberts <nickrob@snap.net.nz>
24870
24871 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24872 remote default-directory.
24873
24874 * buffer.c (mode-line-format): Update doc string.
24875
248762007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24877
24878 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24879 scroll bar gap.
24880 (x_scroll_bar_create): Set bar->fringe_extended_p.
24881 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24882 on frame edge. Check fringe background extension. Don't clear
24883 extended fringe background area.
24884
24885 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24886 (w32_fill_area): Enclose multiple statements with do ... while (0).
24887
24888 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24889 Extend fringe background to scroll bar gap.
24890 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24891 Set bar->fringe_extended_p.
24892 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24893 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24894 background extension. Don't clear extended fringe background area.
24895
24896 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24897 New member fringe_extended_p.
24898
248992007-07-25 Glenn Morris <rgm@gnu.org>
24900
24901 * Relicense all FSF files to GPLv3 or later.
24902
24903 * COPYING: Switch to GPLv3.
24904
249052007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24906
24907 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24908
24909 * data.c (Finteractive_form): Check for the presence of an
24910 `interactive-form' symbol property more thoroughly.
24911
24912 * data.c (Finteractive_form): Use an `interactive-form' property if
24913 present, analogous to the function-documentation property.
24914
249152007-07-24 Jason Rumney <jasonr@gnu.org>
24916
24917 * w32fns.c (x_real_positions): Get real position from OS instead of
24918 calculating it.
24919
249202007-07-23 Jason Rumney <jasonr@gnu.org>
24921
24922 * filelock.c (current_lock_owner): Allow for @ sign in username.
24923
249242007-07-22 Nick Roberts <nickrob@snap.net.nz>
24925
24926 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24927 remote default-directory.
24928
24929 * buffer.c (mode-line-format): Describe above case in doc string.
24930
249312007-07-20 Eli Zaretskii <eliz@gnu.org>
24932
24933 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24934 Define if not defined.
24935
249362007-07-18 Jason Rumney <jasonr@gnu.org>
24937
24938 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24939
249402007-07-18 Richard Stallman <rms@gnu.org>
24941
24942 * data.c (Fsetq_default): Doc fix.
24943
24944 * eval.c (Fsetq): Doc fix.
24945
249462007-07-18 Juanma Barranquero <lekktu@gmail.com>
24947
24948 * coding.c (Ffind_operation_coding_system):
24949 * eval.c (For, Fand): Doc fixes.
24950 Reported by Johan Bockgård.
24951
249522007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24953
24954 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24955
24956 * xterm.h: Declare x_ewmh_activate_frame.
24957
24958 * xterm.c (x_ewmh_activate_frame): New function.
24959 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24960
249612007-07-17 Martin Rudalics <rudalics@gmx.at>
24962
24963 * window.c (Fdisplay_buffer): If largest or LRU window is the
24964 only window, split it even if it is not eligible for splitting.
24965 This restores the original behavior broken by the 2007-07-15
24966 change.
24967
249682007-07-17 Glenn Morris <rgm@gnu.org>
24969
24970 * abbrev.c (abbrev_check_chars): New function.
24971 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24972 Call abbrev_check_chars to check abbrev characters are word
24973 constituents. Doc fix.
24974
249752007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24976
24977 * process.c (Fstart_process, Fmake_network_process)
24978 (read_process_output): Fix up last changes.
24979
249802007-07-16 Eli Zaretskii <eliz@gnu.org>
24981
24982 * makefile.w32-in (clean): Don't delete *~.
24983
249842007-07-16 Andreas Schwab <schwab@suse.de>
24985
24986 * window.c (Fdisplay_buffer): Use NILP.
24987 (Fset_window_scroll_bars): Likewise.
24988
249892007-07-15 Martin Rudalics <rudalics@gmx.at>
24990
24991 * window.c (window_min_size_2): New function.
24992 (window_min_size_1, size_window, Fdisplay_buffer)
24993 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24994 windows without mode- or header-lines when window-min-height is
24995 too small.
24996 (size_window): Reset nodelete_p after testing it, following an
24997 earlier note by Kim F. Storm.
24998 (display_buffer): Do not set split_height_threshold to twice the
24999 value of window_min_height to avoid changing the value of a
25000 customizable variable. Rather explicitly check whether the
25001 height of the window that shall be splitted is at least as large
25002 as split_height_threshold.
25003 (Fwindow_full_width_p): New defun.
25004 (syms_of_window): Defsubr it.
25005
25006 * window.h: Add EXFUN for Fwindow_full_width_p.
25007
250082007-07-14 Jason Rumney <jasonr@gnu.org>
25009
25010 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25011
250122007-07-14 Richard Stallman <rms@gnu.org>
25013
25014 * eval.c (maybe_call_debugger): New function.
25015 (find_handler_clause): Use maybe_call_debugger.
25016 Call it when the handler says `debug'.
25017 Eliminate DEBUGGER_VALUE_PTR.
25018 (Fsignal): Eliminate debugger_value.
25019 (Qdebug): New variable.
25020 (syms_of_eval): Initialize it.
25021
250222007-07-14 Juanma Barranquero <lekktu@gmail.com>
25023
25024 * eval.c (Fprogn):
25025 * keyboard.c (Ftrack_mouse):
25026 * print.c (Fwith_output_to_temp_buffer):
25027 * window.c (Fsave_window_excursion): Doc fix.
25028
250292007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25030
25031 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25032
250332007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25034
25035 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25036 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25037 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25038 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25039 Remove unused encoding_carryover.
25040 * process.c: Adjust all functions accordingly.
25041
250422007-07-12 Richard Stallman <rms@gnu.org>
25043
25044 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25045
250462007-07-11 Jason Rumney <jasonr@gnu.org>
25047
25048 * makefile.w32-in (LIBS): Include OLE32.
25049
25050 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25051 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25052
250532007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25054
25055 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25056 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25057 from a Lisp_Object into a bare pointer.
25058 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25059 Adjust the code correspondingly.
25060
25061 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25062
25063 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25064 (term_show_mouse_face): Remove unused var `j'.
25065 (handle_one_term_event): Remove unused vars `i' and `j'.
25066 Don't cast return value of ttyname since it's not necessary.
25067
250682007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25069
25070 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25071 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25072
25073 * fns.c (map_char_table): Use an array of int for `indices' rather than
25074 an array of Lisp_Objects (which are only ever integers anyway).
25075 (Fmap_char_table): Update caller.
25076 * lisp.h: Update prototype.
25077 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25078 * fontset.c (Ffontset_info):
25079 * casetab.c (set_case_table): Update callers.
25080
25081 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25082
25083 * keymap.c (struct accessible_keymaps_data)
25084 (struct where_is_internal_data): New structures.
25085 (accessible_keymaps_1, where_is_internal_1): Use them to change
25086 interface to adhere to the one used by map_keymap.
25087 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25088 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25089
25090 * keymap.h (map_keymap_function_t): More informative prototype.
25091
250922007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25093
25094 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25095 (looking_at_1): Don't change search_regs and last_thing_searched
25096 if `inhibit-changing-match-data' is non-nil.
25097 (string_match_1, search_buffer, set_search_regs): Likewise.
25098 (syms_of_search): Add Lisp level definition for
25099 `inhibit-changing-match-data' and set it to nil.
25100 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25101 start and end of the match, instead of using values in search_regs.
25102
251032007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25104
25105 * minibuf.c (Fcompleting_read): New value `confirm-only'
25106 for `require-match'.
25107
251082007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25109
25110 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25111 part of the 2007-06-27 change to syms_of_fileio.
25112
251132007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25114
25115 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25116 Check WINDOWP before using XWINDOW. Consolidate return statements.
25117
251182007-06-27 Richard Stallman <rms@gnu.org>
25119
25120 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25121
251222007-06-27 Juanma Barranquero <lekktu@gmail.com>
25123
25124 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25125
251262007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25127
25128 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25129 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25130 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25131 (_free_internal, memalign): Use them.
25132 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25133 Initialize to PTHREAD_MUTEX_INITIALIZER.
25134 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25135 (morecore_nolock): Rename from morecore. All uses changed.
25136 Use only nolock versions of internal allocation functions.
25137 (_malloc_internal_nolock, _realloc_internal_nolock)
25138 (_free_internal_nolock): New functions created from
25139 _malloc_internal, _realloc_internal, and _free_internal.
25140 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25141 Copy hook value to automatic variable before its use.
25142 (memalign): Copy hook value to automatic variable before its use.
25143
251442007-06-26 Kenichi Handa <handa@m17n.org>
25145
25146 * coding.c (Ffind_operation_coding_system): Docstring improved.
25147 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25148
251492007-06-25 David Kastrup <dak@gnu.org>
25150
25151 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25152 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25153 cater for additional parameter.
25154
25155 * keymap.h: Adjust number of parameters to `current-active-maps'.
25156
25157 * doc.c (Fsubstitute_command_keys): Adjust call of
25158 `current-active-maps'.
25159
251602007-06-25 David Kastrup <dak@gnu.org>
25161
25162 * callint.c (Fcall_interactively): Make the parsing of interactive
25163 specs somewhat more readable.
25164
251652007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25166
25167 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25168 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25169 if extended background has already been filled.
25170
251712007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25172
25173 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25174 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25175
25176 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25177 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25178 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25179 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25180 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25181 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25182 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25183 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25184 Run timers during dialog popup.
25185 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25186
251872007-06-21 Jason Rumney <jasonr@gnu.org>
25188
25189 * image.c (convert_mono_to_color_image): Swap fore and background.
25190
251912007-06-20 Jason Rumney <jasonr@gnu.org>
25192
25193 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25194 (w32_free_bdf_font): Unmap memory not handle.
25195
251962007-06-20 Sam Steingold <sds@gnu.org>
25197
25198 * gmalloc.c (__morecore): Fix the declaration to comply with the
25199 definition.
25200
252012007-06-20 Juanma Barranquero <lekktu@gmail.com>
25202
25203 * w32term.c (w32_delete_display): Remove leftover declaration.
25204 (w32_define_cursor, w32_initialize): Make static.
25205
25206 * w32.c (_wsa_errlist): Fix typo in error message.
25207 (init_environment): Ignore any environment variable from the
25208 registry having a null value.
25209
252102007-06-20 Glenn Morris <rgm@gnu.org>
25211
25212 * Makefile.in (LIBGIF): Default to -lgif.
25213
252142007-06-17 Jason Rumney <jasonr@gnu.org>
25215
25216 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25217 unicode strings.
25218
252192007-06-16 Juanma Barranquero <lekktu@gmail.com>
25220
25221 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25222 Fix typo in docstring.
25223
252242007-06-16 Eli Zaretskii <eliz@gnu.org>
25225
25226 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25227 and their keybindings.
25228
252292007-06-15 Chong Yidong <cyd@stupidchicken.com>
25230
25231 * composite.c (update_compositions): Fix last fix.
25232
252332007-06-14 Jason Rumney <jasonr@gnu.org>
25234
25235 * w32.c (get_process_times_fn): New function pointer.
25236 (globals_of_w32): Intialize it if present in kernel32.dll.
25237 (w32_get_internal_run_time): New function.
25238
25239 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25240
252412007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25242
25243 * composite.c (update_compositions): Check the validness of
25244 compositions.
25245
252462007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25247
25248 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25249 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25250
25251 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25252 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25253
25254 * macgui.h (USE_MAC_TOOLBAR): New define.
25255
25256 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25257 Return immediately unless popup is activated.
25258
25259 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25260 background to scroll bar gap.
25261 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25262 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25263 scroll bars on frame edge. Check fringe background extension.
25264 Don't clear extended fringe background area.
25265 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25266 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25267 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25268 [USE_MAC_TOOLBAR]: New macros.
25269 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25270 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25271 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25272 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25273 [USE_MAC_TOOLBAR]: New functions.
25274 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25275 manually if previous repositioning has failed.
25276 (mac_handle_keyboard_event): Use precomputed event kind.
25277 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25278 as tool bar item click. Handle mouse movement over tool bar items.
25279
25280 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25281 toolbar_win_gravity.
25282 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25283 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25284 Add externs.
25285
25286 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25287 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25288
252892007-06-14 Chong Yidong <cyd@stupidchicken.com>
25290
25291 * image.c (search_image_cache): Remove unused variable.
25292
252932007-06-13 Chong Yidong <cyd@stupidchicken.com>
25294
25295 * xfns.c, xmenu.c: Link to xaw3d if available.
25296
252972007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25298
25299 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25300 frame_foreground and frame_background.
25301
25302 * image.c (lookup_image): Save frame foreground and background colors.
25303 (search_image_cache): Check if saved and current frame colors match.
25304
253052007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25306
25307 * regex.c (regex_compile): Remove the `regnum' counter.
25308 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25309
253102007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25311
25312 * term.c: Include intervals.h to declare Fget_text_property.
25313
253142007-06-10 Jason Rumney <jasonr@gnu.org>
25315
25316 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25317
253182007-06-08 Juanma Barranquero <lekktu@gmail.com>
25319
25320 * callint.c (Fcall_interactively):
25321 * editfns.c (Fdelete_and_extract_region):
25322 * fileio.c (Fread_file_name):
25323 * fns.c (Fmapconcat):
25324 * keyboard.c (cmd_error_internal):
25325 * keymap.c (Fkey_description):
25326 * lread.c (openp):
25327 * minibuf.c (read_minibuf):
25328 * search.c (wordify):
25329 * sunfns.c (sel_read):
25330 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25331 * xfns.c (x_default_scroll_bar_color_parameter):
25332 * xmenu.c (menu_help_callback):
25333 * xselect.c (Fx_get_atom_name):
25334 * xterm.c (x_term_init): Use empty_unibyte_string.
25335
253362007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25337
25338 * alloc.c (init_strings): Initialize canonical empty strings.
25339 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25340 canonical empty string when the requested size is 0.
25341
25342 * emacs.c (empty_unibyte_string): Rename from empty_string.
25343 (empty_multibyte_string): New canonical empty string.
25344 (syms_of_emacs): Don't initialize empty_string.
25345
25346 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25347 string, if appropriate.
25348 (empty_unibyte_string, empty_multibyte_string): New externs.
25349 (empty_string): Remove extern.
25350
25351 * lread.c (syms_of_lread): Use empty_unibyte_string.
25352
253532007-06-07 Jason Rumney <jasonr@gnu.org>
25354
25355 * s/ms-w32.h: Don't define HAVE_TZNAME.
25356
25357 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25358
253592007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25360
25361 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25362
25363 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25364 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25365
25366 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25367 Don't call next handler.
25368 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25369 Remove argument. Install handler to application.
25370 (set_frame_menubar): Don't change deep_p.
25371 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25372 FRAME_OUTER_TO_INNER_DIFF_Y.
25373 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25374 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25375 [HAVE_DIALOGS]: New macros.
25376 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25377 Use them.
25378 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25379
25380 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25381 init_service_handler. All callers changed. Return OSStatus value.
25382
25383 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25384 All callers changed so as not to call SetPortWindowPort.
25385 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25386 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25387 mac_draw_string_common.
25388 (mac_draw_image_string_qd): Likewise.
25389 (mac_draw_string_common): Use them. Add INLINE.
25390 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25391 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25392 GetGlobalMouse.
25393 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25394 and FRAME_OUTER_TO_INNER_DIFF_Y.
25395 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25396 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25397 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25398 repositioning window to mac_handle_window_event.
25399 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25400 saving window location to mac_handle_window_event
25401 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25402 (install_menu_target_item_handler): Remove argument in extern.
25403 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25404 Also accept command events.
25405 (do_keystroke): New function created from XTread_socket.
25406 (init_command_handler): Remove functions.
25407 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25408 and save window location by kEventWindowShowing and kEventWindowHiding
25409 handlers here. Don't call next handler for window state change and
25410 focus events.
25411 (mac_handle_application_event, mac_handle_keyboard_event)
25412 [TARGET_API_MAC_CARBON]: New functions.
25413 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25414 kEventWindowShowing and kEventWindowHiding events. Move installation
25415 of mouse, font, text input and menu target item handlers to
25416 install_application_handler.
25417 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25418 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25419 New function.
25420 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25421 Register it.
25422 (XTread_socket) [TARGET_API_MAC_CARBON]:
25423 Consolidate SendEventToEventTarget calls.
25424 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25425 Move application activation handler to mac_handle_application_event.
25426 Move keyboard handler to mac_handle_keyboard_event.
25427 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25428 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25429 init_command_handler. Call install_application_handler.
25430
25431 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25432 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25433
254342007-06-07 Glenn Morris <rgm@gnu.org>
25435
25436 * emacs.c (main): Use `emacs-copyright' in --version output.
25437
254382007-06-06 Chong Yidong <cyd@stupidchicken.com>
25439
25440 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25441
254422007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25443
25444 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25445
25446 * macgui.h: Replace WindowPtr with WindowRef.
25447
25448 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25449 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25450 Replace ControlHandle with ControlRef.
25451 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25452
25453 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25454 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25455 Replace ControlHandle with ControlRef.
25456 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25457 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25458
25459 * macterm.h (struct scroll_bar): Rename member control_handle_low
25460 and control_handle_high to control_ref_low and control_ref_high.
25461 All uses changed.
25462 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25463 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25464 respectively. All uses changed.
25465 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25466 (install_window_handler, remove_window_handler): Replace WindowPtr
25467 with WindowRef in externs.
25468
254692007-06-05 Juanma Barranquero <lekktu@gmail.com>
25470
25471 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25472
254732007-06-03 Nick Roberts <nickrob@snap.net.nz>
25474
25475 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25476
25477 * frame.c (Fmouse_position, Fmouse_pixel_position):
25478 Condition on HAVE_GPM too.
25479
25480 * term.c (term_mouse_highlight): Remove unused variables.
25481 (Fterm_open_connection): Set gpm_zerobased to 1.
25482 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25483 Use zero based co-ordinates.
25484 (handle_one_term_event): Report a drag as mouse movement too.
25485
25486 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25487
254882007-06-03 Chong Yidong <cyd@stupidchicken.com>
25489
25490 * image.c (search_image_cache): New function. Require background
25491 color match if background color is unspecified in the image spec.
25492 (uncache_image, lookup_image): Use it.
25493
254942007-06-01 Juanma Barranquero <lekktu@gmail.com>
25495
25496 * window.c (Fshrink_window): Reflow docstring.
25497
254982007-06-02 Chong Yidong <cyd@stupidchicken.com>
25499
25500 * Version 22.1 released.
25501
255022007-06-01 Richard Stallman <rms@gnu.org>
25503
25504 * xfns.c (x_encode_text): Add GCPRO.
25505
255062007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25507
25508 * xfns.c (x_set_name_internal): Save encoded name before
25509 x_encode_text in case string data is relocated.
25510
255112007-05-31 Richard Stallman <rms@gnu.org>
25512
25513 * buffer.c (syms_of_buffer): Doc fix.
25514
255152007-05-30 Nick Roberts <nickrob@snap.net.nz>
25516
25517 * sysdep.c (init_sys_modes): Add rather than replace with
25518 O_NONBLOCK.
25519
25520 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25521 term_mouse_moveto.
25522
25523 * termhooks.h (term_mouse_moveto): New extern.
25524
25525 * term.c (mouse_face_window): Rename...
25526 (Qmouse_face_window): ...to this.
25527 (term_show_mouse_face, term_clear_mouse_face)
25528 (term_mouse_highlight): Use Qmouse_face_window.
25529 (term_mouse_moveto): New function.
25530 (term_mouse_position): Make it work.
25531 (syms_of_term): Uncomment assignment to mouse_position_hook.
25532 Staticpro Qmouse_face_window.
25533
255342007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25535
25536 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25537 around current_column call.
25538
255392007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25540
25541 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25542 * xdisp.c (next_element_from_buffer):
25543 * window.c (delete_window):
25544 * term.c (term_mouse_highlight):
25545 * msdos.c (getdefdir):
25546 * macterm.c (mac_create_bitmap_from_bitmap_data)
25547 (init_font_name_table):
25548 * fns.c (Fsxhash):
25549 * data.c (Fmake_local_variable):
25550 * ccl.c (ccl_driver): Likewise.
25551
255522007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25553
25554 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25555 Call mac_wakeup_from_rne on window size change.
25556
255572007-05-25 Chong Yidong <cyd@stupidchicken.com>
25558
25559 * image.c (uncache_image): Fix typo.
25560
255612007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25562
25563 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25564
255652007-05-22 Richard Stallman <rms@gnu.org>
25566
25567 * xterm.c (x_connection_closed): Remove NO_RETURN.
25568
255692007-05-22 Martin Rudalics <rudalics@gmx.at>
25570
25571 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25572
255732007-05-21 Chong Yidong <cyd@stupidchicken.com>
25574
25575 * image.c (uncache_image): New function.
25576 (Fimage_refresh): New function.
25577
255782007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25579
25580 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25581
255822007-05-20 Nick Roberts <nickrob@snap.net.nz>
25583
25584 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25585 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25586
255872007-05-20 Nick Roberts <nickrob@snap.net.nz>
25588
25589 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25590 conditional on [HAVE_GPM_H].
25591
255922007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25593
25594 * syntax.c (skip_chars): Update syntax-table only after we checked that
25595 the new location is valid.
25596
255972007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25598
25599 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25600 mac_get_window_bounds.
25601
256022007-05-20 Nick Roberts <nickrob@snap.net.nz>
25603
25604 * Makefile.in (LIBGPM): Allow it to be set from configure.
25605 If set then link Emacs with it.
25606
25607 * config.in: Regenerate.
25608
25609 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25610 New externs.
25611
25612 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25613 Include gpm.h.
25614 (handle_one_term_event, term_gpm): New externs.
25615
25616 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25617 and allow it to be interrupted by SIGIO.
25618
25619 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25620 (wait_reading_process_output): Wait on gpm_fd too.
25621 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25622 (add_gpm_wait_descriptor_called_flag): New variable.
25623 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25624
25625 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25626 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25627 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25628 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25629 (make_lispy_event): Add case GPM_CLICK_EVENT.
25630 (read_avail_input): Handle mouse input.
25631
25632 * term.c (write_glyphs_with_face): New function.
25633 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25634 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25635 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25636 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25637 (last_mouse_x, last_mouse_y): New variables.
25638 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25639 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25640 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25641 (Fterm_close_connection): New functions.
25642 (term_init): Initialise mouse_face_window.
25643
256442007-05-19 Chong Yidong <cyd@stupidchicken.com>
25645
25646 * xdisp.c (redisplay_window): If first window line is a
25647 continuation line, recompute the new window start instead of
25648 recentering.
25649
256502007-05-18 Glenn Morris <rgm@gnu.org>
25651
25652 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25653 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25654
256552007-05-17 Glenn Morris <rgm@gnu.org>
25656
25657 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25658
256592007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25660
25661 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25662 dead key repeat and up events.
25663
256642007-05-14 Chong Yidong <cyd@stupidchicken.com>
25665
25666 * image.c (pbm_load): Check image size for monochrome pbm.
25667
256682007-05-13 Chong Yidong <cyd@stupidchicken.com>
25669
25670 * xterm.c (XTread_socket): Revert last change.
25671
256722007-05-12 Chong Yidong <cyd@stupidchicken.com>
25673
25674 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25675
25676 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25677
256782007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25679
25680 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25681 mixup (YAILOM).
25682
256832007-05-07 Andreas Schwab <schwab@suse.de>
25684
25685 * keymap.c (Flookup_key): Fix typo in last change.
25686
256872007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25688
25689 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25690 mapping for unibyte strings.
25691
256922007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25693
25694 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25695 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25696
256972007-04-29 Richard Stallman <rms@gnu.org>
25698
25699 * insdel.c (replace_range): For undo, record insertion first.
25700
257012007-04-29 Andreas Schwab <schwab@suse.de>
25702
25703 * lisp.h (VECSIZE): Use OFFSETOF.
25704
257052007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25706
25707 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25708 disabled lines.
25709
257102007-04-28 Richard Stallman <rms@gnu.org>
25711
25712 * lread.c (read_escape): In a string, \s is always space.
25713
257142007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25715
25716 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25717
25718 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25719 submenu for menu bar items.
25720
25721See ChangeLog.10 for earlier changes.
25722
25723;; Local Variables:
25724;; coding: utf-8
25725;; add-log-time-zone-rule: t
aac0c6e3
MR
25726;; End:
25727
e3eb1dae 25728 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25729
25730 This file is part of GNU Emacs.
25731
25732 GNU Emacs is free software: you can redistribute it and/or modify
25733 it under the terms of the GNU General Public License as published by
25734 the Free Software Foundation, either version 3 of the License, or
25735 (at your option) any later version.
25736
25737 GNU Emacs is distributed in the hope that it will be useful,
25738 but WITHOUT ANY WARRANTY; without even the implied warranty of
25739 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25740 GNU General Public License for more details.
25741
25742 You should have received a copy of the GNU General Public License
25743 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25744
25745;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40