Clean up include guards.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
313d9eb2
DN
12010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2
295d0d8f
DN
3 Clean up include guards.
4 * tparam.c: Remove include guards for config.h, string.h and code
5 that assumes #ifndef emacs.
6 * termcap.c:
7 * unexalpha.c:
8 * sysdep.c:
9 * filemode.c:
10 * filelock.c:
11 * bidi.c: Likewise.
12
49d9e6b0
DN
13 Remove prefix-args.c
14 * prefix-args.c: Remove file.
15 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
16 * Makefile.in (temacs${EXEEXT}): Remove references to
17 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
18 (mostlyclean): Remove reference to prefix-args.
19 (prefix-args): Remove.
20
313d9eb2
DN
21 Simplify cstart_of_data, start_of_code and related code.
22 * mem-limits.h: Remove !emacs and _LIBC conditional code.
23 (start_of_data): Merge into start_of_data function.
24 * sysdep.c (start_of_text): Remove. Move simplified versions of
25 it in the only users: unexaix.c and unexec.c.
26 (read_input_waiting): Remove local declaration of quit_char.
27 (start, etext): Remove declarations.
28 (start_of_data): Merge with the version in mem-limits.h and move
29 to vm-limits.c.
30 * vm-limit.c (start_of_data): Merged and simplified version of the
31 code formerly in mem-limits.h and sysdep.c.
32 * unexec.c (start): New declaration, moved from sysdep.c.
33 (start_of_text): Simplified version of the code formerly in sysdep.c.
34 * unexaix.c (start_of_text): Simplified version of the code
35 formerly in sysdep.c.
36 * m/alpha.h (HAVE_TEXT_START): Remove.
37 (TEXT_START): Move ...
38 * unexalpha.c (TEXT_START): ... here.
39 * s/hpux10-20.h (TEXT_START): Remove.
40 * s/darwin.h (TEXT_START):
41 * m/mips.h (TEXT_START):
42 * m/macppc.h (HAVE_TEXT_START):
43 * m/m68k.h (TEXT_START):
44 * m/iris4d.h (TEXT_START):
45 * m/intel386.h (TEXT_START):
46 * m/ibmrs6000.h (TEXT_START):
47 * m/ia64.h (HAVE_TEXT_START):
48 * s/msdos.h (TEXT_START): Likewise.
49
72af86bd
AS
502010-07-07 Andreas Schwab <schwab@linux-m68k.org>
51
52 * alloc.c (overrun_check_malloc, overrun_check_realloc)
53 (overrun_check_free, xstrdup, allocate_string)
54 (allocate_string_data, compact_small_strings, Fmake_string)
55 (make_unibyte_string, make_multibyte_string)
56 (make_string_from_bytes, make_specified_string, make_float)
57 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
58 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
59 memcpy, memmove, memset, memcmp.
60 * atimer.c (start_atimer, set_alarm): Likewise.
61 * buffer.c (clone_per_buffer_values, report_overlay_modification)
62 (mmap_realloc, init_buffer_once): Likewise.
63 * callint.c (Fcall_interactively): Likewise.
64 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
65 (getenv_internal_1): Likewise.
66 * casefiddle.c (casify_object): Likewise.
67 * ccl.c (ccl_driver): Likewise.
68 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
69 * charset.c (load_charset_map_from_file)
70 (load_charset_map_from_file, load_charset_map_from_vector)
71 (Fdefine_charset_internal): Likewise.
72 * cm.c (Wcm_clear): Likewise.
73 * coding.c (decode_eol, decode_coding_object)
74 (Fset_coding_system_priority, make_subsidiaries): Likewise.
75 * data.c (Faset): Likewise.
76 * dired.c (directory_files_internal, file_name_completion_stat):
77 Likewise.
78 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
79 (clear_glyph_row, copy_row_except_pointers)
80 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
81 (save_current_matrix, restore_current_matrix)
82 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
83 (mirror_line_dance, scrolling_window): Likewise.
84 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
85 Likewise.
86 * doprnt.c (doprnt): Likewise.
87 * editfns.c (Fuser_full_name, make_buffer_string_both)
88 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
89 * emacs.c (sort_args): Likewise.
90 * eval.c (Fapply, Ffuncall): Likewise.
91 * fileio.c (Ffile_name_directory, make_temp_name)
92 (Fexpand_file_name, search_embedded_absfilename)
93 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
94 (auto_save_error): Likewise.
95 * fns.c (Fstring_equal, Fcopy_sequence, concat)
96 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
97 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
98 (Fmake_hash_table): Likewise.
99 * fringe.c (Fdefine_fringe_bitmap): Likewise.
100 * ftfont.c (ftfont_text_extents): Likewise.
101 * getloadavg.c (getloadavg): Likewise.
102 * image.c (define_image_type, make_image, make_image_cache)
103 (x_create_x_image_and_pixmap, xbm_image_p)
104 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
105 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
106 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
107 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
108 (tiff_image_p, tiff_read_from_memory, gif_image_p)
109 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
110 Likewise.
111 * indent.c (scan_for_column, compute_motion): Likewise.
112 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
113 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
114 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
115 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
116 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
117 (store_user_signal_events, menu_bar_items, tool_bar_items)
118 (process_tool_bar_item, append_tool_bar_item)
119 (read_char_minibuf_menu_prompt, read_key_sequence)
120 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
121 Likewise.
122 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
123 Likewise.
124 * lisp.h (STRING_COPYIN): Likewise.
125 * lread.c (Fload, read1, oblookup): Likewise.
126 * msdos.c (Frecent_doskeys): Likewise.
127 * nsfns.m (Fx_create_frame): Likewise.
128 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
129 Likewise.
130 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
131 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
132 Likewise.
133 * nsmenu.m (ns_update_menubar): Likewise.
134 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
135 * print.c (print_unwind, printchar, strout, print_string)
136 (print_error_message): Likewise.
137 * process.c (conv_lisp_to_sockaddr, set_socket_option)
138 (Fmake_network_process, Fnetwork_interface_list)
139 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
140 (init_process): Likewise.
141 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
142 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
143 Likewise.
144 * scroll.c (do_scrolling, do_direct_scrolling)
145 (scrolling_max_lines_saved): Likewise.
146 * search.c (search_buffer, wordify, Freplace_match): Likewise.
147 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
148 * syntax.c (skip_chars, skip_syntaxes): Likewise.
149 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
150 (emacs_set_tty): Likewise.
151 * term.c (encode_terminal_code, calculate_costs)
152 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
153 Likewise.
154 * termcap.c (tgetst1, gobble_line): Likewise.
155 * termhooks.h (EVENT_INIT): Likewise.
156 * tparam.c (tparam1): Likewise.
157 * unexalpha.c (unexec): Likewise.
158 * unexec.c (write_segment): Likewise.
159 * unexmacosx.c (unexec_write_zero): Likewise.
160 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
161 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
162 * w32font.c (w32font_list_family, w32font_text_extents)
163 (w32font_list_internal, w32font_match_internal)
164 (w32font_open_internal, compute_metrics, Fx_select_font):
165 Likewise.
166 * w32menu.c (set_frame_menubar, add_menu_item)
167 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
168 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
169 * w32uniscribe.c (uniscribe_list_family): Likewise.
170 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
171 * window.c (make_window, replace_window, set_window_buffer)
172 (Fsplit_window): Likewise.
173 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
174 (add_to_log, message3, x_consider_frame_title)
175 (append_space_for_newline, extend_face_to_end_of_line)
176 (decode_mode_spec_coding, init_glyph_string): Likewise.
177 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
178 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
179 (face_attr_equal_p, make_realized_face, make_face_cache)
180 (free_realized_faces, lookup_named_face, smaller_face)
181 (face_with_height, lookup_derived_face)
182 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
183 (Finternal_set_font_selection_order, realize_default_face)
184 (compute_char_face, face_at_buffer_position)
185 (face_for_overlay_string, face_at_string_position, merge_faces):
186 Likewise.
187 * xfns.c (xic_create_fontsetname, Fx_create_frame)
188 (Fx_window_property, x_create_tip_frame)
189 (Fx_backspace_delete_keys_p): Likewise.
190 * xfont.c (xfont_list, xfont_match, xfont_list_family)
191 (xfont_text_extents): Likewise.
192 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
193 * xrdb.c (magic_file_p, x_get_resource): Likewise.
194 * xselect.c (x_queue_event, x_get_window_property)
195 (receive_incremental_selection): Likewise.
196 * xsmfns.c (x_session_check_input): Likewise.
197 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
198 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
199 Likewise.
200 * character.h (BCOPY_SHORT): Removed.
201 * config.in: Regenerate.
202 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
203 * emacs.c (main) [PROFILING]: Don't declare
204 dump_opcode_frequencies.
205 * lisp.h (safe_bcopy): Remove declaration.
206 (memset) [!HAVE_MEMSET]: Declare.
207 (memcpy) [!HAVE_MEMCPY]: Likewise.
208 (memmove) [!HAVE_MEMMOVE]: Likewise.
209 (memcmp) [!HAVE_MEMCMP]: Likewise.
210 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
211 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
212 Don't define.
213 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
214 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
215 (BCOPY_DOWNWARD_SAFE): Don't define.
216 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
217 (memcpy) [!HAVE_MEMCPY]: Define.
218 (memmove) [!HAVE_MEMMOVE]: Define.
219 (memcmp) [!HAVE_MEMCMP]: Define.
220
cb768704
J
2212010-07-07 Jan Djärv <jan.h.d@swipnet.se>
222
223 * process.c (kbd_is_on_hold): New variable.
224 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
225 functions.
226 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
227 select on empty input mask.
228 (init_process): Initialize kbd_is_on_hold to 0.
229
230 * process.h (hold_keyboard_input, unhold_keyboard_input)
231 (kbd_on_hold_p): Declare.
232
233 * keyboard.c (input_available_signal): Declare.
234 (kbd_buffer_nr_stored): New function.
235 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
236 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
237 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
238 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
239 (tty_read_avail_input): If input is on hold, return.
240 Don't read more that free slots in kbd_buffer (Bug#6571).
241
3a8ce822
EZ
2422010-07-07 Eli Zaretskii <eliz@gnu.org>
243
244 * msdos.h:
245 * msdos.c:
246 * dosfns.c:
247 * w16select.c: Convert function definitions to ANSI C.
248
249 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
250 unused prototypes.
251
cf84bb53
JB
2522010-07-07 Juanma Barranquero <lekktu@gmail.com>
253
254 * coding.c, sysdep.c: Convert some more functions to standard C.
255
1a4990fb
JB
2562010-07-07 Juanma Barranquero <lekktu@gmail.com>
257
258 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
259 (encode_coding_object): Use SPECPDL_INDEX.
260 (syms_of_coding): Use DOS_NT.
261
c0f2f16b
DN
2622010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
263
48fb6855
DN
264 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
265
c0f2f16b
DN
266 Make the function member of Lisp_Subr use standard C prototypes.
267 * lisp.h (struct Lisp_Subr): Use a union for the function member.
268 (DECL_ALIGN): Add a cast for the function.
269 * eval.c (Feval, Ffuncall): Use the proper type for each type
270 function call.
271
67aecef9
CY
2722010-07-06 Chong Yidong <cyd@stupidchicken.com>
273
274 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
275 fringe face id, so face-remapping-alist works (Bug#6091).
276
b56ceb92
JB
2772010-07-06 Juanma Barranquero <lekktu@gmail.com>
278
279 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
280 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
281 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
282
7af07b96
AS
2832010-07-06 Andreas Schwab <schwab@linux-m68k.org>
284
285 * xterm.c (x_get_keysym_name): Change type of parameter to int.
286 * lisp.h: Declare x_get_keysym_name.
287 * keyboard.c (modify_event_symbol): Don't declare
288 x_get_keysym_name here.
289
69e24e34
DN
2902010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
291
292 * ecrt0.c: Revert conversion to standard C.
293
d3da34e0 2942010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
295
296 * vm-limit.c (memory_warnings):
297 * keyboard.c (modify_event_symbol):
298 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
299 (round2, emacs_rint):
300 * process.c (send_process, old_sigpipe): Convert function
301 definitions and declarations to standard C.
302
3032010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
304
305 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
306 * xdisp.c: Convert function definitions to standard C.
307
308 * cm.c (cmputc): Arg C is now int, not char.
309 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
310
00be444c
J
3112010-07-05 James Cloos <cloos@jhcloos.com>
312
313 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
314
315 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
316 _NET_WM_ICON_NAME atoms.
317
318 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
319 and _NET_WM_ICON_NAME properties, too, matching what is
320 done in the Gtk+ case.
321
e4c8d29a
J
3222010-07-05 Jan Djärv <jan.h.d@swipnet.se>
323
ff919460
J
324 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
325
e4c8d29a
J
326 * xsmfns.c (SSDATA): New macro.
327 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
328 passed to strlen/strcpy/strcat.
329 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
330 7:th arg to XChangeProperty to (unsigned char *)
331
332 * xsettings.c (something_changedCB, parse_settings)
333 (apply_xft_settings): Reformat prototype.
334 (something_changedCB, init_gconf): Remove unused variable i.
335 (read_settings): Remove unused variable long_len.
336
337 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
338 (xg_get_image_for_pixmap, create_dialog)
339 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
340 (menuitem_highlight_callback, make_menu_item)
341 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
342 (xg_create_scroll_bar, xg_update_scrollbar_pos)
343 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
344 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
345 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
346 (xg_tool_bar_item_expose_callback): Reformat prototype.
347 (xg_update_menubar): GList *group => GSList *group.
348 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
349 before use.
350 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
351 to GTK_IMAGE (wimage).
352
dd4c5104
DN
3532010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
354
898b4c5c
DN
355 * atimer.c: Use "" instead of <> for local includes for
356 consistency with the rest of the code.
357
dd4c5104
DN
358 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
359 * xrdb.c (get_system_name):
360 * window.c (shrink_windows):
361 * syntax.c (forw_comment):
362 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
363 (ins_del_costs):
364 * mem-limits.h (start_of_data):
365 * lread.c (readevalloop):
366 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
367 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
368 * frame.c (x_get_focus_frame):
369 * floatfns.c (fmod_float):
370 * fileio.c (choose_write_coding_system):
371 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
372 (malloc_initialize_hook, sort_args, synchronize_locale):
373 * doprnt.c (doprnt):
374 * dired.c (compile_pattern):
375 * data.c (fmod_float):
376 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
377 (map_char_table_for_charset):
378 * charset.c (define_charset_internal):
379 * alloc.c (Fgarbage_collect): Convert declarations or definitions
380 to standard C.
381
9a39b306 3822010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 383 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
384
385 * lread.c (read1): Fix up last change to not mess up `c'.
386
e6cb2cbb
JB
3872010-07-04 Juanma Barranquero <lekktu@gmail.com>
388
389 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
390
438105ed
JB
3912010-07-04 Juanma Barranquero <lekktu@gmail.com>
392
393 Fix prototypes.
394
e5447b22 395 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 396 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
397 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
398 arg, as required by internal_condition_case_1.
dcc7404b 399 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
400 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
401 (analyse_first): Fix "const const".
e5447b22 402 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 403 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 404 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 405
971de7fb
DN
4062010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
407
408 * alloc.c: Convert function definitions to standard C.
409 * atimer.c:
410 * bidi.c:
411 * bytecode.c:
412 * callint.c:
413 * callproc.c:
414 * casefiddle.c:
415 * casetab.c:
416 * category.c:
417 * ccl.c:
418 * character.c:
419 * charset.c:
420 * chartab.c:
421 * cmds.c:
422 * coding.c:
423 * composite.c:
424 * data.c:
425 * dbusbind.c:
426 * dired.c:
427 * dispnew.c:
428 * doc.c:
429 * doprnt.c:
430 * ecrt0.c:
431 * editfns.c:
432 * fileio.c:
433 * filelock.c:
434 * filemode.c:
435 * fns.c:
436 * font.c:
437 * fontset.c:
438 * frame.c:
439 * fringe.c:
440 * ftfont.c:
441 * ftxfont.c:
442 * gtkutil.c:
443 * indent.c:
444 * insdel.c:
445 * intervals.c:
446 * keymap.c:
447 * lread.c:
448 * macros.c:
449 * marker.c:
450 * md5.c:
451 * menu.c:
452 * minibuf.c:
453 * prefix-args.c:
454 * print.c:
455 * ralloc.c:
456 * regex.c:
457 * region-cache.c:
458 * scroll.c:
459 * search.c:
460 * sound.c:
461 * strftime.c:
462 * syntax.c:
463 * sysdep.c:
464 * termcap.c:
465 * terminal.c:
466 * terminfo.c:
467 * textprop.c:
468 * tparam.c:
469 * undo.c:
470 * unexelf.c:
471 * window.c:
472 * xfaces.c:
473 * xfns.c:
474 * xfont.c:
475 * xftfont.c:
476 * xgselect.c:
477 * xmenu.c:
478 * xrdb.c:
479 * xselect.c:
480 * xsettings.c:
481 * xsmfns.c:
482 * xterm.c: Likewise.
483
ae492bec
EZ
4842010-07-03 Eli Zaretskii <eliz@gnu.org>
485
76ea4cc9
EZ
486 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
487 frames other than the initial one. Fix reversal of colors when
488 `reverse' is specified in the frame parameters. Call
489 update_face_from_frame_parameter instead of
490 internal-set-lisp-face-attribute. Initialize screen colors from
491 initial_screen_colors[] when f->default_face_done_p is zero,
492 instead of depending on being called with default-frame-alist as
493 the alist argument.
494
495 * xfaces.c (update_face_from_frame_parameter): Move out of
496 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
497 with HAVE_WINDOW_SYSTEM.
498
1e6255ae
EZ
499 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
500 to menu-bar-mode, if not set in the frame parameters or in
501 default-frame-alist.
502
ae492bec
EZ
503 * w32console.c (sys_tputs): Adjust argument list to prototype in
504 term.c.
505
3a35a84c
JB
5062010-07-03 Juanma Barranquero <lekktu@gmail.com>
507
508 * lisp.h (memory_warnings): Fix prototype.
509
510 * cm.h (evalcost): Fix prototype.
511
512 * cm.c (evalcost): Fix arg type.
513
c532d349
DN
5142010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
515
516 * term.c (term_clear_mouse_face, Fidentity):
517 * syssignal.h (signal_handler_t):
518 * lisp.h (memory_warnings):
519 * coding.h (preferred_coding_system):
520 * cm.h (evalcost):
521 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
522
c0b36d46
EZ
5232010-07-02 Eli Zaretskii <eliz@gnu.org>
524
525 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
526 from prototypes.
527
528 * msdos.h (load_pixmap): Don't define away.
529
383e0970
J
5302010-07-02 Jan Djärv <jan.h.d@swipnet.se>
531
f57e2426
J
532 * lisp.h:
533 * atimer.h: Remove define for P_.
534
535 * alloc.c: Remove __P and P_ from .c and .m files.
536 * atimer.c:
537 * buffer.c:
538 * callint.c:
539 * category.c:
540 * charset.c:
541 * chartab.c:
542 * cm.c:
543 * coding.c:
544 * composite.c:
545 * data.c:
546 * dired.c:
547 * dispnew.c:
548 * doc.c:
549 * editfns.c:
550 * emacs.c:
551 * eval.c:
552 * fileio.c:
553 * filelock.c:
554 * fns.c:
555 * font.c:
556 * fontset.c:
557 * frame.c:
558 * ftfont.c:
559 * ftxfont.c:
560 * gmalloc.c:
561 * gtkutil.c:
562 * image.c:
563 * indent.c:
564 * intervals.c:
565 * keyboard.c:
566 * keymap.c:
567 * lread.c:
568 * marker.c:
569 * menu.c:
570 * minibuf.c:
571 * print.c:
572 * process.c:
573 * scroll.c:
574 * search.c:
575 * sound.c:
576 * strftime.c:
577 * syntax.c:
578 * sysdep.c:
579 * term.c:
580 * terminal.c:
581 * textprop.c:
582 * unexalpha.c:
583 * w32console.c:
584 * w32fns.c:
585 * w32font.c:
586 * w32menu.c:
587 * w32term.c:
588 * w32uniscribe.c:
589 * window.c:
590 * xdisp.c:
591 * xfaces.c:
592 * xfns.c:
593 * xfont.c:
594 * xftfont.c:
595 * xmenu.c:
596 * xselect.c:
597 * xterm.c: Likewise.
598
383e0970 599 Remove P_ and __P macros.
f57e2426
J
600 * atimer.h: Remove P_ and __P macros.
601 * buffer.h:
383e0970
J
602 * category.h:
603 * ccl.h:
604 * character.h:
605 * charset.h:
606 * cm.h:
607 * coding.h:
608 * composite.h:
609 * dispextern.h:
610 * disptab.h:
9e892c8d 611 * dosfns.h:
383e0970
J
612 * font.h:
613 * fontset.h:
614 * frame.h:
615 * gtkutil.h:
616 * indent.h:
617 * intervals.h:
618 * keyboard.h:
619 * keymap.h:
620 * lisp.h:
621 * macros.h:
622 * md5.h:
623 * menu.h:
624 * msdos.h:
625 * nsterm.h:
626 * puresize.h:
627 * region-cache.h:
628 * syntax.h:
629 * syssignal.h:
630 * systime.h:
631 * termhooks.h:
9e892c8d 632 * w32font.h:
383e0970
J
633 * w32term.h:
634 * widget.h:
635 * window.h:
636 * xgselect.h:
637 * xsettings.h:
638 * xterm.h: Likewise.
639
98601119
DN
6402010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
641
d9170db5
DN
642 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
643
98601119
DN
644 Cleanup old code.
645 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
646 * syssignal.h: Remove code for Lynx, not supported anymore.
647 * vm-limit.c: Remove unused code the depends on emacs not being
648 defined and NO_LIM_DATA being defined.
649 * mem-limits.h: Remove dead code.
650
1f984e12
J
6512010-07-01 Jan Djärv <jan.h.d@swipnet.se>
652
c49d071a
J
653 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
654
9d5405ec
J
655 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
656 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
657
7a18115b
J
658 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
659 parameters, they are already absolute.
660
581a8100
J
661 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
662 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
663
664 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
665
666 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
667 FRAME_TOOLBAR_HEIGHT.
668
1f984e12
J
669 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
670 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
671
c1ef4455
CY
6722010-06-30 Chong Yidong <cyd@stupidchicken.com>
673
674 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
675 check default-frame-alist.
676
ce8f5a9a
AS
6772010-06-30 Andreas Schwab <schwab@linux-m68k.org>
678
679 * process.c (create_process): Avoid using invalid file descriptors.
680
681 * callproc.c (child_setup): Avoid closing a file descriptor twice.
682
bf935339
J
6832010-06-30 Jan Djärv <jan.h.d@swipnet.se>
684
685 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
686 Improve documentation. Return font regardless of use_system_font.
687 (syms_of_xsettings): Improve documentation for font-use-system-font.
688
769e9d47
KH
6892009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
690
691 * xftfont.c (xftfont_open): Check font width one by one also when
692 spacing is dual.
693
694 * ftfont.c (ftfont_open): Ditto.
695
6259c2ec
GM
6962010-06-30 Glenn Morris <rgm@gnu.org>
697
a46007e9
GM
698 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
699
6259c2ec
GM
700 * Makefile.in (CANNOT_DUMP): Update for configure name change.
701
702 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
703 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
704 * s/darwin.h (SYSTEM_MALLOC):
705 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
706
5d1d3d04
J
7072010-06-29 Jan Djärv <jan.h.d@swipnet.se>
708
709 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
710 (ns_get_screen): Don't assign integer to f.
711 (Fx_display_color_cells): Declarations before statements.
712
e547b051
J
7132010-06-28 Jan Djärv <jan.h.d@swipnet.se>
714
5fc8e5bc
J
715 * xfns.c (x_default_font_parameter): Remove got_from_system
716 (Bug#6526).
717
e547b051
J
718 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
719 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
720 defines based on what configure finds.
721
722 * xterm.c (XTflash): Use gtk_widget_get_window.
723 (xg_scroll_callback): Use gtk_adjustment_get_upper and
724 gtk_adjustment_get_page_size.
725 (handle_one_xevent): Use gtk_widget_get_mapped.
726 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
727 messages.
728
729 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
730
731 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
732 HAVE_GTK_FILE_SELECTION_NEW.
733
734 * gtkutil.c (xg_display_open, xg_display_close): Remove
735 HAVE_GTK_MULTIDISPLAY, it is always defined.
736 (xg_display_open): Return type is void.
737 (gtk_widget_set_has_window)
738 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
739 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
740 (gtk_adjustment_set_page_increment)
741 (gtk_adjustment_get_step_increment): #define these if not found
742 by configure.
743 (remove_submenu): New define based on Gtk+ version.
744 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
745 gtk_widget_get_window.
746 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
747 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
748 (create_dialog): Use gtk_dialog_get_action_area and
749 gtk_dialog_get_content_area.
750 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
751 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
752 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
753 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
754 g_object_ref and g_object_unref.
755 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
756 gtk_widget_get_sensitive.
757 (xg_update_submenu): Use remove_submenu.
758 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
759 properties instead to get old x and y position.
760 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
761 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 762 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
763 (xg_get_tool_bar_widgets): New function.
764 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
765 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
766 (toolbar_set_orientation): New #define based on if configure
767 finds gtk_orientable_set_orientation.
768 (xg_create_tool_bar): Call toolbar_set_orientation.
769 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
770 instead of gtk_box_pack_start_defaults.
771
b9229673
CY
7722010-06-28 Chong Yidong <cyd@stupidchicken.com>
773
774 * cmds.c (Fdelete_backward_char): Move into Lisp.
775
bbc803b0
DN
7762010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
777
778 * s/freebsd.h (BSD4_2): Remove redundant definition.
779 bsd-common.h defines it already.
780
6431f2e6
CY
7812010-06-27 Chong Yidong <cyd@stupidchicken.com>
782
783 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
784 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
785 tool-bar-mode, which are now set using these X resources at
786 startup, to determine the defaults (Bug#2249).
787
788 * w32fns.c (Fx_create_frame):
789 * nsfns.m (Fx_create_frame): Likewise.
790
791 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
792
8c079ebb
JB
7932010-06-24 Juanma Barranquero <lekktu@gmail.com>
794
795 * gtkutil.c (xg_update_scrollbar_pos):
796 Avoid C99 mid-block variable declaration.
797
e9b7ab96
JD
7982010-06-22 Jan Djärv <jan.h.d@swipnet.se>
799
bc869eca
JD
800 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
801
2b7e356a 802 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
803
804 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
805 if height is less than scroll bar min size.
806 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
807
e9b7ab96
JD
808 * xfns.c (x_default_font_parameter): Try to open font from system
809 before using it (bug#6478). Rename got_from_gconf to got_from_system.
810
32a679fd
JD
8112010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
812
813 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
814
70c4cfbb
EZ
8152010-06-20 Eli Zaretskii <eliz@gnu.org>
816
817 * xdisp.c (try_scrolling): When scroll-conservatively is set to
818 most-positive-fixnum, be extra accurate when scrolling window
819 start, to avoid missing the cursor line.
820
ad5a12b5
EZ
8212010-06-19 Eli Zaretskii <eliz@gnu.org>
822
823 * xdisp.c (try_scrolling): Compute the limit for searching point
824 in forward scroll from scroll_max, instead of an arbitrary limit
825 of 10 screen lines. See
826 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
827 and
828 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
829 for details.
830
2a64315a 8312010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
832
833 * editfns.c (Fbyte_to_string): Pacify compiler.
834
288cf4e9
SM
8352010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
836
837 * lread.c (read1): Phase out old-style backquotes a bit more.
838
6e6e5760
EZ
8392010-06-12 Eli Zaretskii <eliz@gnu.org>
840
cbc4fd20
EZ
841 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
842 bidimirror.h.
843
844 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
845
317fbf33
EZ
846 * bidi.c (bidi_initialize): Remove explicit initialization of
847 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 848 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 849 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
850
851 * biditype.h: New file.
852
cbc4fd20
EZ
853 * bidimirror.h: New file.
854
6e6e5760
EZ
855 * window.c (syms_of_window): Doc fix (bug#6409).
856
4176cba2
RF
8572010-06-12 Romain Francoise <romain@orebokech.com>
858
859 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
860 ediff-hook.
861
cb4bfcb5
GM
8622010-06-10 Glenn Morris <rgm@gnu.org>
863
64c60c2f
GM
864 * editfns.c (Fbyte_to_string): Pacify compiler.
865
cb4bfcb5
GM
866 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
867
e454a4a3
SM
8682010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
869
870 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
871 Check `object's type before accessing its guts.
872
c1b1acc2
DN
8732010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
874
875 * s/usg5-4.h: Fix previous change.
876 Suggested by Lawrence Mitchell <wence@gmx.li>
877
657d4c0b
AS
8782010-06-08 Andreas Schwab <schwab@linux-m68k.org>
879
880 * minibuf.c (Fall_completions): Add more checks.
881
9b27fd9f
JB
8822010-06-08 Juanma Barranquero <lekktu@gmail.com>
883
884 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
885
a99ebb40
DN
8862010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
887
d7c5d87d
DN
888 * lread.c (X_OK): Remove, unused.
889
0263a941
DN
890 * dispnew.c: Remove obsolete comment.
891
a99ebb40
DN
892 Remove INCLUDED_FCNTL.
893 * xterm.c (INCLUDED_FCNTL):
894 * callproc.c (INCLUDED_FCNTL):
895 * alloc.c (INCLUDED_FCNTL):
896 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
897 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
898
13b5221f
MR
8992010-06-07 Martin Rudalics <rudalics@gmx.at>
900
901 * window.c (Fselect_window): Move `record_buffer' up to the
902 beginning of this function, so the buffer gets recorded
903 even if the selected window does not change.
904 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
905
5220357f
JB
9062010-06-07 Juanma Barranquero <lekktu@gmail.com>
907
908 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
909 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
910
3085237c
DN
9112010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
912
913 Remove BSTRING related code, all platforms define it.
914 * s/usg5-4.h (BSTRING): Remove definition.
915 * s/template.h (BSTRING):
916 * s/msdos.h (BSTRING):
917 * s/ms-w32.h (BSTRING):
918 * s/hpux10-20.h (BSTRING):
919 * s/gnu-linux.h (BSTRING):
920 * s/darwin.h (BSTRING):
921 * s/cygwin.h (BSTRING):
922 * s/bsd-common.h (BSTRING):
923 * s/aix4-2.h (BSTRING): Likewise.
924 * sysdep.c: Remove code depending on BSTRING not being defined.
925
409f2919
JB
9262010-06-05 Juanma Barranquero <lekktu@gmail.com>
927
928 Remove obsolete macro BASE_LEADING_CODE_P.
929 * character.h (BASE_LEADING_CODE_P): Remove.
930 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
931 * buffer.c (Fset_buffer_multibyte):
932 * indent.c (scan_for_column, compute_motion):
933 * insdel.c (count_combining_before, count_combining_after):
934 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
935
087fc47a
JB
9362010-06-04 Juanma Barranquero <lekktu@gmail.com>
937
938 Turn `directory-sep-char' into a noop.
939
940 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
941 (DIRECTORY_SEP): Define unconditionally.
942
943 * s/ms-w32.h (DIRECTORY_SEP): Remove.
944
945 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
946 call dostounix_filename directly.
947
948 * fileio.c (CORRECT_DIR_SEPS): Remove.
949 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
950 (Fsubstitute_in_file_name): Use dostounix_filename instead.
951 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
952 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
953
954 * w32proc.c (CORRECT_DIR_SEPS): Remove.
955 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
956
0eb7675e
AS
9572010-06-03 Andreas Schwab <schwab@linux-m68k.org>
958
959 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 960 address. (Bug#6346)
0eb7675e 961
78edd3b7
JB
9622010-06-03 Juanma Barranquero <lekktu@gmail.com>
963
964 * ccl.c (Fccl_program_p): Fix typo in docstring.
965
eb697db5
DN
9662010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
967
968 Move UNEXEC definition to autoconf.
969 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
970 * s/sol2-10.h (UNEXEC):
971 * s/irix6-5.h (UNEXEC):
972 * s/hpux10-20.h (UNEXEC):
973 * s/gnu-linux.h (UNEXEC):
974 * s/darwin.h (UNEXEC):
975 * s/cygwin.h (UNEXEC):
976 * s/bsd-common.h (UNEXEC):
977 * s/aix4-2.h (UNEXEC):
978 * m/alpha.h (UNEXEC): Likewise.
979 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
980
aa3830c4
JB
9812010-06-03 Juanma Barranquero <lekktu@gmail.com>
982
983 Remove obsolete pre-unicode2 macros.
984 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
985 * composite.c (composition_reseat_it):
986 * data.c (Faset):
987 * fns.c (Ffillarray):
988 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
989 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
990
d234d13e
JL
9912010-06-03 Juri Linkov <juri@jurta.org>
992
993 * buffer.c (Fother_buffer): Add CHECK_FRAME.
994 (Fswitch_to_buffer): Remove unused variable `err'.
995
0d4bcf4d
GM
9962010-06-03 Glenn Morris <rgm@gnu.org>
997
e23dc1e2
GM
998 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
999
05b09564
GM
1000 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1001 now that AH_BOTTOM does it.
1002
824e2978
GM
1003 * m/hp800.h (HAVE_ALLOCA):
1004 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1005
0d4bcf4d
GM
1006 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1007 Remove NOT_C_CODE tests, it is always true now.
1008
c55d2abf
DN
10092010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1010
08a494a3
DN
1011 Fix config.h includes.
1012 * xsettings.c:
1013 * xgselect.c:
1014 * nsterm.m:
1015 * nsselect.m:
1016 * nsimage.m:
1017 * nsfont.m:
1018 * nsfns.m:
1019 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1020 other files do.
1021
75934b1d
DN
1022 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1023
9f32a766
DN
1024 * s/sol2-6.h: Remove obsolete comments.
1025
c55d2abf
DN
1026 Remove unnecessary alloca.h includes.
1027 * keymap.c: Do not include alloca.h, config.h does that.
1028 * sysdep.c: Likewise. Do not define fwrite, not used.
1029
06ac62b4
SM
10302010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1031
1032 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1033 the HAVE_TERMIO where it belongs (bug#6149).
1034
1ab8293c
SM
10352010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1036
1037 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1038 of bug#6305).
1039
6dcfd253
EZ
10402010-05-30 Eli Zaretskii <eliz@gnu.org>
1041
1042 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1043 state is always cached (bug#6306).
1044
6d26bbb2
EZ
10452010-05-29 Eli Zaretskii <eliz@gnu.org>
1046
06fa4a23
EZ
1047 Fix cursor motion in bidi-reordered continued lines.
1048 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1049 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1050 over continuation lines in bidi-reordered buffers. Return
1051 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1052 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1053
f5783df3
MA
10542010-05-28 Michael Albinus <michael.albinus@gmx.de>
1055
1056 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1057
7d56b2dd
KH
10582010-05-28 Kenichi Handa <handa@m17n.org>
1059
1060 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1061 Don't sheck SPEC if it is nil.
1062 (font_list_entities): Call font_delete_unmatched if
b925d231 1063 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1064
e58d4ff7
GM
10652010-05-28 Glenn Morris <rgm@gnu.org>
1066
1067 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1068
f1a5d776
CY
10692010-05-27 Chong Yidong <cyd@stupidchicken.com>
1070
1071 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1072 whether to trash.
1073 (internal_delete_file, Frename_file): Callers changed.
1074 (delete_by_moving_to_trash): Doc fix.
1075 (Fdelete_directory_internal): Don't move to trash.
1076
1077 * callproc.c (delete_temp_file):
1078 * buffer.c (Fkill_buffer): Callers changed.
1079
1080 * lisp.h: Update prototype.
1081
f44a59e6
CY
10822010-05-27 Chong Yidong <cyd@stupidchicken.com>
1083
1084 * xdisp.c (redisplay_window): After redisplay, check if point is
1085 still valid before setting it (Bug#6177).
1086
81ac4f35
GM
10872010-05-27 Glenn Morris <rgm@gnu.org>
1088
1089 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1090 Convert comments to Makefile format.
1091
1092 * Makefile.in (bootstrap-clean): No more Makefile.c.
1093
ccd89fb3
GM
10942010-05-26 Glenn Morris <rgm@gnu.org>
1095
90278cb6
GM
1096 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1097 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1098
ccd89fb3
GM
1099 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1100 Remove.
1101 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1102
b7050583
KH
11032010-05-26 Kenichi Handa <handa@m17n.org>
1104
1105 * composite.c (composition_compute_stop_pos): Fix condition for
1106 backward scanning.
1107
e5458003
GM
11082010-05-25 Glenn Morris <rgm@gnu.org>
1109
c345fe90
GM
1110 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1111 Move before TEMACS_LDFLAGS.
1112 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1113 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1114
2e0689ab
GM
1115 * Makefile.in (NOT_C_CODE): No longer define.
1116 (config.h): No longer include.
1117
8009a5e8
GM
1118 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1119 variables it may reference.
1120
e5458003
GM
1121 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1122 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1123
10f72a37
KH
11242010-05-25 Kenichi Handa <handa@m17n.org>
1125
1126 * dispextern.h (struct composition_it): New members rule_idx and
1127 charpos.
1128
1129 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1130 that the character positions of IT point the last character of the
1131 current grapheme cluster.
1132 (next_element_from_composition): Don't change character positions
1133 of IT.
1134 (append_composite_glyph): Set glyph->charpos to
1135 it->cmp_it.charpos.
1136
1137 * composite.c (autocmp_chars): Change the first argument to RULE,
1138 and try composition with RULE only.
1139 (composition_compute_stop_pos): Record the index number of the
1140 composition rule in CMP_IT->rule_idx.
1141 (composition_reseat_it): Call autocmp_chars repeatedly until the
1142 correct rule of the composition is found.
1143 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1144 is at the last character of the current grapheme cluster when
1145 CMP_IT->reversed_p is nonzero.
1146
171eda53 11472010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1148
171eda53
SM
1149 * editfns.c (Fbyte_to_string): New function.
1150
66a9f7f4
SM
11512010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1152
1153 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1154 Suggested by Masatake YAMATO <yamato@redhat.com>.
1155
d8c315d1
EZ
11562010-05-23 Eli Zaretskii <eliz@gnu.org>
1157
171eda53 1158 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1159
f5b416d2 11602010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1161
1162 * s/netbsd.h: If terminfo is found, use it in preference to
1163 termcap. (Bug#6190) [Backport from trunk]
1164
0416466c
EZ
11652010-05-19 Eli Zaretskii <eliz@gnu.org>
1166
11117830 1167 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1168
1169 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1170 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1171 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1172 and maxpos members instead of start.pos and end.pos, respectively.
1173
1174 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1175 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1176 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1177 (try_window_reusing_current_matrix, try_window_id):
1178 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1179 (init_from_display_pos, init_iterator): Use EMACS_INT for
1180 character and byte positions.
66a9f7f4 1181 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1182 arguments for minimum and maximum buffer positions seen by
1183 display_line for this row. Don't use iterator to find the
1184 position following the maximum one; instead, increment the
11117830
EZ
1185 position found by display_line directly. Fix logic; eol_pos
1186 should be tested before the rest. Handle the case of characters
1187 delivered from display vector (bug#6036). Fix tests related to
1188 it->method. Handle the truncated_on_right_p rows.
1189 (RECORD_MAX_MIN_POS): New macro.
1190 (display_line): Use it to record the minimum and maximum buffer
1191 positions for glyphs in the row being assembled. Record the
1192 position of the newline that terminates the line. If word wrap is
1193 in effect, restore minimum and maximum positions seen up to the
1194 wrap point, when iterator returns to it.
1195 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1196 row and cursor not already at point. Restore original pre-bidi
1197 code for unidirectional buffers.
d36fe237
EZ
1198
1199 * dispnew.c (increment_row_positions, check_matrix_invariants):
1200 Increment and check row->start.pos and row->end.pos, in addition
1201 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1202
11117830
EZ
1203 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1204 Display truncated_on_left_p and truncated_on_right_p flags.
1205 Formatting fixes.
1206 (pmtxrows): Display the ordinal number of each row. Don't display
1207 rows beyond the last one.
1208
1209 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1210 it is not copied by bidi_copy_it.
1211
6e83d800
EZ
12122010-05-22 Eli Zaretskii <eliz@gnu.org>
1213
1214 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1215 (Bug#6237)
1216
110683ad
CY
12172010-05-22 Chong Yidong <cyd@stupidchicken.com>
1218
1219 * image.c (Fimage_flush): Rename from image-refresh.
1220
98fe5161
CY
12212010-05-21 Chong Yidong <cyd@stupidchicken.com>
1222
1223 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1224 just one window.
1225
1226 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1227 (clear_image_cache): If the number of cached images is unusually
1228 large, decrease the cache eviction delay (Bug#6230).
1229
e8752c66
GM
12302010-05-21 Glenn Morris <rgm@gnu.org>
1231
66dbf213
GM
1232 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1233 Move these rules to ns.mk.
1234 * ns.mk: New file.
1235
04384b2d
GM
1236 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1237
e8752c66
GM
1238 * Makefile.in (CANNOT_DUMP): New, set by configure.
1239 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1240
2e2bbddb
JL
12412010-05-20 Juri Linkov <juri@jurta.org>
1242
1243 * fileio.c (Fdelete_file): Change interative spec to use
1244 `read-file-name' like in `find-file-read-args' where the default
1245 value is `default-directory' instead of `buffer-file-name'.
1246 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1247
31c4aaf6
KR
12482010-05-20 Kevin Ryde <user42@zip.com.au>
1249
1250 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1251 (Voverriding_terminal_local_map, Vsystem_key_alist)
1252 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1253
9d5cf9b6
GM
12542010-05-20 Glenn Morris <rgm@gnu.org>
1255
1256 * Makefile.in (DEPDIR): New constant.
1257 (DEPFLAGS): Set with configure, not cpp.
1258 (MKDEPDIR): New, set by configure.
1259 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1260 (clean): Use $DEPDIR.
1261 (deps_frag): Include from configure.
1262 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1263 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1264
ead6f8f5
EZ
1265 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1266 reallocation of the cache. (Bug#6210)
1267
7f34aec3
GM
12682010-05-19 Glenn Morris <rgm@gnu.org>
1269
d494e8f2
GM
1270 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1271
c1d0dcfd
GM
1272 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1273 (GNULIB_VAR): Remove.
1274 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1275
1276 * m/ibms390x.h (LINKER):
1277 * m/macppc.h (LINKER) [GNU_LINUX]:
1278 * s/aix4-2.h (ORDINARY_LINK):
1279 * s/cygwin.h (LINKER):
1280 * s/darwin.h (ORDINARY_LINK):
1281 * s/gnu.h (ORDINARY_LINK):
1282 * s/netbsd.h (LINKER):
1283 * s/usg5-4.h (ORDINARY_LINK):
1284 Move to configure.
1285
7f34aec3
GM
1286 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1287
754790b6
CY
12882010-05-18 Chong Yidong <cyd@stupidchicken.com>
1289
1290 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1291 prevent stack overflow if number of arguments is too large
1292 (Bug#6214).
1293
161e44d1
JB
12942010-05-18 Juanma Barranquero <lekktu@gmail.com>
1295
1296 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1297
be4ff9da
GM
12982010-05-18 Glenn Morris <rgm@gnu.org>
1299
9539dc5d
GM
1300 * s/gnu-linux.h: Combine two conditionals.
1301
1302 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1303 $(POST_ALLOC_OBJ).
1304
40dc6bf4
GM
1305 * Makefile.in (RALLOC_OBJ): New, set by configure.
1306 (rallocobj): Replace with the previous variable.
1307 (otherobj): Use $RALLOC_OBJ.
1308
1309 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1310 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1311
be4ff9da
GM
1312 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1313 (gmallocobj, vmlimitobj): Replace with previous two variables.
1314 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1315
16455a85
GM
13162010-05-17 Glenn Morris <rgm@gnu.org>
1317
1318 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1319 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1320
5fdb7468
GM
13212010-05-16 Glenn Morris <rgm@gnu.org>
1322
7ca1f3f9
GM
1323 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1324
7541dad5
GM
1325 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1326
da53fab9
GM
1327 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1328 trailing "/".
1329
b02a6645
GM
1330 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1331 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1332
8877ca0f
GM
1333 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1334 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1335 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1336 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1337 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1338
5fdb7468
GM
1339 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1340 Remove ${STARTFLAGS}, nothing ever sets it.
1341
95adb4b1
DN
13422010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1343
1344 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1345
676b6304
GM
13462010-05-16 Glenn Morris <rgm@gnu.org>
1347
9beab9ce
GM
1348 * Makefile.in (LIBX_BASE): Always define.
1349
8a95f0e7
GM
1350 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1351
676b6304
GM
1352 * Makefile.in (LIBXT): Always define.
1353
6e546d18
GM
13542010-05-15 Glenn Morris <rgm@gnu.org>
1355
4235ca47 1356 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1357
6e546d18
GM
1358 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1359 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1360
8c5ff6dd
KR
13612010-05-15 Ken Raeburn <raeburn@raeburn.org>
1362
560bb7ae 1363 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1364 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1365
8b4eb796
KR
1366 * emacs.c (main): Initialize initial-environment and
1367 process-environment before generating from env, not after.
1368
8c5ff6dd
KR
1369 Handle --version reasonably in CANNOT_DUMP configuration.
1370 * emacs.c (emacs_version, emacs_copyright): New string variables.
1371 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1372 (syms_of_emacs): Defvar them, and initialize them from the C
1373 string variables.
1374 (main): If initialization hasn't been done, print initial version
1375 info from the C strings, instead of starting an interactive session.
1376
dbd3f723
EZ
13772010-05-15 Eli Zaretskii <eliz@gnu.org>
1378
d20e1419
EZ
1379 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1380 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1381 (bidi_paragraph_init): Remove redundant assertion that we are at
1382 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1383
1384 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1385 (syms_of_xdisp): Defsubr it.
1386
d36fe237
EZ
1387 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1388
dbd3f723
EZ
1389 * Makefile.in: Fix MSDOS-related comments.
1390
02be533b
GM
13912010-05-15 Glenn Morris <rgm@gnu.org>
1392
1a82cca9
GM
1393 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1394 (really-lwlib, really-oldXMenu): Always define.
1395 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1396
3df7b338
GM
1397 * Makefile.in: Simplify cpp conditional.
1398
2b5f541b
GM
1399 * Makefile.in (${ns_appdir}): Simplify using umask.
1400
02be533b
GM
1401 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1402
4e2db1fe
SM
14032010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1404
1405 * eval.c (specbind): Remove left-over duplicate test.
1406 Disallow let-binding frame-local vars. Add comment.
1407
4b292a22
EZ
14082010-05-14 Eli Zaretskii <eliz@gnu.org>
1409
2fe72643 1410 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1411 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1412 (bidi_init_it): Call it.
1413 (bidi_cache_iterator_state): Enlarge the cache if needed.
1414
4e2db1fe 1415 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1416 bidi_get_next_char_visually. All callers changed.
1417
82ebc97b
KH
14182010-05-14 Kenichi Handa <handa@m17n.org>
1419
1420 * dispextern.h (struct composition_it): New member reversed_p.
1421
1422 * composite.c (composition_compute_stop_pos): Search backward if
1423 ENDPOS < CHARPOS.
1424 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1425 Set CMP_IT->reversed_p.
b4b6e17e 1426 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1427
4e2db1fe
SM
1428 * xdisp.c (set_iterator_to_next):
1429 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1430 scanning backward. Call composition_compute_stop_pos if scan
1431 direction is changed.
1432 (next_element_from_buffer): Call composition_compute_stop_pos with
1433 negative ENDPOS if we are scanning backward.
1434 (next_element_from_composition): Pay attention to
1435 IT->cmp_it.reversed_p.
1436
0e5d7800
KH
14372010-05-14 Kenichi Handa <handa@m17n.org>
1438
560bb7ae 1439 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1440
cb027b32
GM
14412010-05-14 Glenn Morris <rgm@gnu.org>
1442
177b0288
GM
1443 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1444
fbc00890
GM
1445 * Makefile.in (mktime, X11, register): Move undefs to configure.
1446
f14d1dfd
GM
1447 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1448 (MSDOS_X_OBJ): New variable.
1449 (MSDOS_SUPPORT_REAL): New constant.
1450 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1451 (obj): Use MSDOS_X_OBJ.
1452 (lisp): Use MSDOS_SUPPORT as a variable.
1453
11842bd8
GM
1454 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1455 (GPM_MOUSE_SUPPORT): Now it's a constant.
1456 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1457 not cpp.
1458
489d31a4 1459 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1460 (ns_appresdir): Remove, unused.
e20f1f07 1461
489d31a4
GM
1462 * Makefile.in (SHELL): Move outside cpp section.
1463
cb027b32
GM
1464 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1465
5a903aa9
GM
14662010-05-13 Glenn Morris <rgm@gnu.org>
1467
3369c79f
GM
1468 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1469 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1470
d5e982a6
GM
1471 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1472 HAVE_WINDOW_SYSTEM must be too.
1473
6192e163
GM
1474 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1475 (lisp): Remove WINNT_SUPPORT.
1476
472c5d6b
GM
1477 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1478 Let configure set these variables (to empty) in this case as well.
1479
0116466b
GM
1480 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1481 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1482
5a903aa9
GM
1483 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1484 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1485 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1486 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1487 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1488 the values output by configure.
5a903aa9
GM
1489 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1490
1a0d7c06
GM
14912010-05-12 Glenn Morris <rgm@gnu.org>
1492
b5457f14
GM
1493 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1494 (LINKER_WAS_SPECIFIED): Remove.
1495
1a0d7c06
GM
1496 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1497 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1498 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1499 * s/cygwin.h (LIB_GCC):
1500 * s/freebsd.h (LIB_GCC):
1501 * s/gnu-linux.h (LIB_GCC):
1502 * s/msdos.h (LIB_GCC):
1503 * s/netbsd.h (LIB_GCC):
1504 Move to configure.
1505
3ffd4615 15062010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1507
1508 * ftfont.c: Fix incorrect parentheses of #if condition for
1509 definining M17N_FLT_USE_NEW_FEATURE.
1510
acddf8ae
GM
15112010-05-11 Glenn Morris <rgm@gnu.org>
1512
1513 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1514 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1515
ae5e04fa
EZ
15162010-05-10 Eli Zaretskii <eliz@gnu.org>
1517
1518 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1519 unibyte buffers. See
1520 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1521
7490175b
GM
15222010-05-10 Glenn Morris <rgm@gnu.org>
1523
97efb629
GM
1524 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1525 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1526 (LIBES): Use LIBS_SYSTEM as a variable.
1527 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1528 * s/aix4-2.h (LIBS_SYSTEM):
1529 * s/freebsd.h (LIBS_SYSTEM):
1530 * s/hpux10-20.h (LIBS_SYSTEM):
1531 * s/sol2-6.h (LIBS_SYSTEM):
1532 * s/unixware.h (LIBS_SYSTEM):
1533 Move to configure.
1534
7490175b
GM
1535 * s/aix4-2.h (MAIL_USE_LOCKF):
1536 * s/bsd-common.h (MAIL_USE_FLOCK):
1537 * s/darwin.h (MAIL_USE_FLOCK):
1538 * s/gnu-linux.h (MAIL_USE_FLOCK):
1539 * s/irix6-5.h (MAIL_USE_FLOCK):
1540 * s/template.h (MAIL_USE_FLOCK):
1541 Move to configure.
1542
0235128c 15432010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1544
1545 * Version 23.2 released.
1546
0235128c 15472010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1548
1549 * composite.c (autocmp_chars): Save point as marker before calling
1550 auto-composition-function (Bug#5984).
1551
1552 * lisp.h (restore_point_unwind): Add prototype.
1553
1554 * fileio.c (restore_point_unwind): Remove static attribute.
1555
0235128c 15562010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1557
1558 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1559 new feature of libotf and m17n-flt.
0235128c
SM
1560 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1561 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1562 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1563 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1564 that OUT is NULL. Use OTF_drive_gsub_with_log and
1565 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1566 OTF_drive_gpos.
1567 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1568 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1569 Setup mflt_enable_new_feature and mflt_try_otf.
1570
4721152c
J
15712010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1572
1573 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1574
1575 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1576 box and toolbar (Bug #6139).
1577 (xg_create_tool_bar): Remove comment (Bug #6139).
1578 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1579 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1580
ee0a16cf
JB
15812010-05-08 Juanma Barranquero <lekktu@gmail.com>
1582
1583 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1584 Update dependencies.
1585
96d79611
EZ
15862010-05-08 Eli Zaretskii <eliz@gnu.org>
1587
1588 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1589 R2L lines.
1590
40c17879
GM
15912010-05-08 Glenn Morris <rgm@gnu.org>
1592
7b42b29f
GM
1593 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1594
40c17879
GM
1595 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1596 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1597 (termcapobj): Replace with TERMCAP_OBJ.
1598 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1599 (LIBES): Use LIBS_TERMCAP as a variable.
1600
1601 * s/freebsd.h (osreldate.h): No longer include, since this file
1602 does not use __FreeBSD_version any more.
1603
1604 * s/aix4-2.h (TERMINFO):
1605 * s/cygwin.h (TERMINFO):
1606 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1607 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1608 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1609 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1610 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1611 * s/irix6-5.h (TERMINFO):
1612 * s/netbsd.h (LIBS_TERMCAP):
1613 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1614 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1615 * s/usg5-4.h (TERMINFO):
1616 Move to configure.
1617
94b612ad
SM
16182010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1619
1620 * eval.c (unbind_to): Don't unbind a local binding into the global
1621 binding when the local binding disappeared. Inversely, don't unbind
1622 a global binding into a newly created local binding.
1623 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1624 can specify the frame to use, when applicable. Adjust callers.
1625
15e12598 16262010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1627 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1628
1629 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1630
f724825e
EZ
16312010-05-07 Eli Zaretskii <eliz@gnu.org>
1632
5cba3209
EZ
1633 * w32fns.c: Include w32.h.
1634 (Fw32_shell_execute): Decode the error message before passing it
1635 to `error'. (Bug#6126)
1636
d16bdfc3
EZ
1637 * msdos.c (dos_set_window_size):
1638 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1639 instead of `XSYMBOL (foo)->value'.
1640
59d93e87
EZ
16412010-05-07 Eli Zaretskii <eliz@gnu.org>
1642
9fdec8bc
EZ
1643 Fix the MS-DOS build, broken by autoconfiscation.
1644
1645 * Makefile.in: Don't use Make-style comments past the "start of
1646 cpp stuff" line.
1647 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1648
1649 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1650 edited directly by msdos/sed1v2.inp).
f724825e 1651
2f86b22b
GM
16522010-05-07 Glenn Morris <rgm@gnu.org>
1653
1654 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1655 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1656 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1657 move out of cpp section.
1658 * s/freebsd.h (LD_SWITCH_SYSTEM):
1659 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1660 * s/netbsd.h (LD_SWITCH_SYSTEM):
1661 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1662
49ebbd65
DN
16632010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1664
1665 Define LIB_STANDARD and START_FILES using autoconf.
1666 * s/usg5-4.h (LIB_STANDARD):
1667 * s/netbsd.h (START_FILES):
1668 * s/irix6-5.h (LIB_STANDARD):
1669 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1670 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1671 * s/freebsd.h (START_FILES):
1672 * s/darwin.h (START_FILES):
1673 * s/cygwin.h (START_FILES):
1674 * s/aix4-2.h (LIB_STANDARD):
1675 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1676 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1677 autoconf, not cpp.
1678
d43c06d6
DN
16792010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1680
28823648
DN
1681 Remove NEED_BSDTTY and NEED_UNISTD_H.
1682 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1683 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1684 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1685 <sys/ptyio.h> and <unistd.h>.
1686
aca00430
DN
1687 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1688
d43c06d6
DN
1689 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1690 * s/gnu.h (START_FILES): Remove empty definition.
1691
3e56b11d
JD
16922010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1693
1694 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1695
e3cf0cde
GM
16962010-05-06 Glenn Morris <rgm@gnu.org>
1697
1698 * Makefile.in (CPP, LN_S): Remove unused variables.
1699
774b9a60
SM
17002010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1701
1702 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1703
4ab92842
LM
17042010-05-05 Lawrence Mitchell <wence@gmx.li>
1705
1706 * m/sparc.h: Fix typo in earlier change.
1707
178f2507
SM
17082010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1709
1710 Misc tweaks.
1711 * eval.c (Fdefvaralias): Remove unintended nested if.
1712 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1713
80f00217 17142010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1715
1716 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1717
ef03a4e6
DN
17182010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1719
58eb6cf0
DN
1720 Remove BSD_PGRPS.
1721 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1722 * s/gnu-linux.h (BSD_PGRPS): Remove.
1723 * term.c (dissociate_if_controlling_tty):
1724 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1725 (init_sys_modes, reset_sys_modes):
1726 * emacs.c (main):
1727 * callproc.c (Fcall_process, child_setup): Remove code depending
1728 on BSD_PGRPS.
1729
ef03a4e6
DN
1730 Remove POSIX_SIGNALS.
1731 * s/usg5-4.h (POSIX_SIGNALS):
1732 * s/netbsd.h (POSIX_SIGNALS):
1733 * s/msdos.h (POSIX_SIGNALS):
1734 * s/ms-w32.h (POSIX_SIGNALS):
1735 * s/hpux11.h (POSIX_SIGNALS):
1736 * s/gnu.h (POSIX_SIGNALS):
1737 * s/gnu-linux.h (POSIX_SIGNALS):
1738 * s/freebsd.h (POSIX_SIGNALS):
1739 * s/darwin.h (POSIX_SIGNALS):
1740 * s/cygwin.h (POSIX_SIGNALS):
1741 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1742 * s/unixware.h:
1743 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1744 * process.c (create_process):
1745 * syssignal.h:
1746 * sysdep.c (wait_for_termination, init_signals):
1747 * process.c (create_process):
1748 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1749 remove all code that assumes the contrary.
1750
49628785
GM
17512010-05-04 Glenn Morris <rgm@gnu.org>
1752
27a2cdfc
GM
1753 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1754 variable.
1755 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1756 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1757 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1758 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1759 LD_SWITCH_SYSTEM_tmp.
1760 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1761 New variables, set by configure.
1762
eb21eab5
GM
1763 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1764 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1765 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1766 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1767 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1768
49628785
GM
1769 * s/aix4-2.h (C_SWITCH_SYSTEM):
1770 * m/alpha.h (C_SWITCH_MACHINE):
1771 Move to configure.in.
1772 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1773 New variables, set by configure.
1774 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1775 $c_switch_machine and $c_switch_system.
1776
7dff330b
DN
17772010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1778
1779 * s/hpux10-20.h (LIB_STANDARD): New definition.
1780 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1781 on it, not used anymore.
1782
53967e09
CY
17832010-05-03 Chong Yidong <cyd@stupidchicken.com>
1784
1785 * eval.c (internal_condition_case_n): Rename from
1786 internal_condition_case_2.
1787 (internal_condition_case_2): New function.
1788
1789 * xdisp.c (safe_call): Use internal_condition_case_n.
1790
1791 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1792 (internal_delete_file, Frename_file): Callers changed.
1793
1794 * buffer.c (Fkill_buffer):
1795 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1796
1797 * lisp.h: Update prototypes.
1798
3dee6fdb
GM
17992010-05-03 Glenn Morris <rgm@gnu.org>
1800
1801 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1802 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1803 (LIBXT): Set with configure, not cpp.
1804 (LIBX): Remove.
1805 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1806
a101e0fb
DN
18072010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1808
1809 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1810 The FreeBSD is not needed, the default works, Solaris version is
1811 not needed, and the remaining case is not supported by configure.
1812
f63d0028
JD
18132010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1814
1815 * xsmfns.c (CHDIR_OPT): New define.
1816 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1817 restarting emacs.
1818
1819 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1820 shut_down_emacs.
1821
1822 * emacs.c (USAGE1): Mention --chdir.
1823 (main): Handle --chdir.
1824 (standard_args): Add --chdir.
1825 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1826 #5552).
1827
e4814a9f
DN
18282010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1829
cd03c74a
DN
1830 Remove LD_SWITCH_MACHINE.
1831 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1832 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1833
c3a398a1
DN
1834 Clean up IRIX code.
1835 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1836 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1837
87e7285c
DN
1838 Clean up AIX code.
1839 * m/ibmrs6000.inp: Remove file, unused.
1840 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1841 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1842 definition ...
1843 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1844
80f00217
JB
1845 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1846 unused.
e4814a9f 1847
59ca28de
EZ
18482010-05-01 Eli Zaretskii <eliz@gnu.org>
1849
197daef4
EZ
1850 Emulate POSIX_SIGNALS on MS-Windows.
1851
1852 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1853 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1854
1855 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1856 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1857 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1858
80f00217
JB
1859 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1860 New stubs.
197daef4 1861
af7c7572
EZ
1862 Miscellaneous fixes of bidi display.
1863
59ca28de
EZ
1864 * xdisp.c (find_row_end): New function, refactored from display_line.
1865 (display_line): Use it.
017ea819
EZ
1866 (extend_face_to_end_of_line): In almost-filled rows, extend only
1867 if the row is R2L and not continued.
166e930d 1868 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1869 Preserve overlay and string info in row->end.
166e930d
EZ
1870 (insert_left_trunc_glyphs): Support addition of left truncation
1871 glyphs to R2L rows.
b47e0dcf 1872 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1873 glyph between adjacent windows. Fix a crash when a display string
1874 is continued to the next line. Don't return zero if cursor was
1875 found by `cursor' property of a display string.
b47e0dcf
EZ
1876 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1877 test for that explicitly.
59ca28de 1878
7acac9f4
GM
18792010-05-01 Glenn Morris <rgm@gnu.org>
1880
1881 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1882 for clarity.
1883 (OTHER_OBJ): Remove.
1884 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1885 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1886
45841e65
KK
18872010-05-01 Karel Klíč <kklic@redhat.com>
1888
1889 * fileio.c (Ffile_selinux_context): Context functions may return null.
1890
afc61943
DN
18912010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1892
80f00217 1893 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1894
5a1bb006
GM
18952010-04-30 Glenn Morris <rgm@gnu.org>
1896
1897 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1898 (OTHER_OBJ): Define as a separate variable, for clarity.
1899
210af043
J
19002010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1901
1902 * xsettings.c: include limits.h and update file comment.
1903
0a7df391
GM
19042010-04-30 Glenn Morris <rgm@gnu.org>
1905
d5096f16
GM
1906 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1907 Set with configure, not cpp.
1908 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1909
7eb1ac33
GM
1910 * Makefile.in (mallocobj): Remove.
1911 (otherobj): Simplify using @OTHER_OBJ@.
1912
517d086b
GM
1913 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1914 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1915 Don't bother making nsgui.h dependency platform-specific.
1916
0a7df391
GM
1917 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1918
d6d23852
SM
19192010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1920
d2630aef
SM
1921 * process.c (read_process_output, exec_sentinel): Don't burp if the
1922 sentinel/filter kills the current buffer (bug#6060).
1923
f9dddf52 1924 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1925 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1926 Remove unused var `args'.
1927 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1928 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1929 * doc.c (store_function_docstring): Use XSETCAR.
1930
f1e3642a
GM
19312010-04-28 Glenn Morris <rgm@gnu.org>
1932
faf535f8
GM
1933 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1934 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1935
c40f9449
GM
1936 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1937
658f86ca
GM
1938 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1939 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1940
bc0b5f61
GM
1941 * Makefile.in (FONT_OBJ): New, set by configure.
1942 (FONT_DRIVERS): Use $FONT_OBJ.
1943
294c50a0
GM
1944 * Makefile.in (LIBXMU): Set with configure, not cpp.
1945 * s/aix4-2.h (LIBXMU):
1946 * s/hpux10-20.h (LIBXMU):
1947 Remove definition, now set in configure.
1948
e6ec4e99
GM
1949 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1950
f1e3642a
GM
1951 * m/amdx86-64.h [i386]: Move this test to configure.in.
1952
c6ea2936
GM
19532010-04-27 Glenn Morris <rgm@gnu.org>
1954
8fdac2c3
GM
1955 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1956 * s/unixware.h (NEED_LIBW): Remove definition.
1957
986fb647
GM
1958 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1959 (TOOLKIT_LIBW): New, set by configure.
1960 (@X_TOOLKIT_TYPE@): No longer define it.
1961
c6ea2936
GM
1962 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1963 (MOTIF_LIBW): Set with configure, not cpp.
1964 * s/aix4-2.h (LIB_MOTIF):
1965 * s/gnu-linux.h (LIB_MOTIF):
1966 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1967
aaa36002
DN
19682010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1969
1970 Reduce CPP usage.
1971 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1972 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1973 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1974 definitions and undefs. Inline definitions in the only user.
1975 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1976
b678dd8b
GM
19772010-04-27 Glenn Morris <rgm@gnu.org>
1978
76cda504
GM
1979 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1980 since the defaults (set by the system file) are fine in most cases.
1981 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1982 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1983 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1984 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1985 Remove definitions, since they are set correctly in s/gnu-linux.h.
1986 * s/freebsd.h (START_FILES, LIB_STANDARD):
1987 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1988 * s/hpux10-20.h (START_FILES):
1989 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1990 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1991
b678dd8b
GM
1992 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1993 (MOTIF_LIBW): Use $LIBXP.
1994 (otherobj): Use $WIDGET_OBJ.
1995
9452ded1
DN
19962010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1997
7e10844c
DN
1998 * Makefile.in (LIBS_MACHINE): Remove, unused.
1999
9452ded1
DN
2000 Use autoconf instead of cpp for LIB_MATH.
2001 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2002 * s/cygwin.h (LIB_MATH): Likewise.
2003 * Makefile.in (LIB_MATH): Do not define with cpp.
2004 (LIBES): Use autoconf for LIB_MATH.
2005
fcebfc6a
KH
20062010-04-26 Kenichi Handa <handa@m17n.org>
2007
2008 * composite.c (Ffind_composition_internal): Fix the return value
2009 for an automatic composition.
2010
39e2ad1b
DN
20112010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2012
2013 Remove all NO_ARG_ARRAY uses.
2014 * fns.c (concat2, concat3, nconc2):
2015 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2016 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2017 * m/xtensa.h (NO_ARG_ARRAY):
2018 * m/template.h (NO_ARG_ARRAY):
2019 * m/sparc.h (NO_ARG_ARRAY):
2020 * m/sh3.h (NO_ARG_ARRAY):
2021 * m/mips.h (NO_ARG_ARRAY):
2022 * m/macppc.h (NO_ARG_ARRAY):
2023 * m/iris4d.h (NO_ARG_ARRAY):
2024 * m/intel386.h (NO_ARG_ARRAY):
2025 * m/ibms390x.h (NO_ARG_ARRAY):
2026 * m/ibms390.h (NO_ARG_ARRAY):
2027 * m/ibmrs6000.h (NO_ARG_ARRAY):
2028 * m/ia64.h (NO_ARG_ARRAY):
2029 * m/hp800.h (NO_ARG_ARRAY):
2030 * m/arm.h (NO_ARG_ARRAY):
2031 * m/amdx86-64.h (NO_ARG_ARRAY):
2032 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2033
adf4f59c
EZ
20342010-04-25 Eli Zaretskii <eliz@gnu.org>
2035
6bdf5d65
EZ
2036 * xdisp.c (display_line): Don't assume 2nd call to
2037 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2038 (iterate_out_of_display_property): New function, body from pop_it.
2039 (pop_it): Use it.
adf4f59c 2040
dfbbda83
GM
20412010-04-24 Glenn Morris <rgm@gnu.org>
2042
2043 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2044 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2045 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2046 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2047
2d4018aa
EZ
20482010-04-24 Eli Zaretskii <eliz@gnu.org>
2049
a49884a6
EZ
2050 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2051 use `get_next_display_element' and `set_iterator_to_next' to
2052 advance to the next character, when looking for the character that
2053 begins the next row.
2054
76db6fcc 2055 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2056 definition of "struct Lisp_Symbol".
2057
70eab5c1
GM
20582010-04-24 Glenn Morris <rgm@gnu.org>
2059
2060 * Makefile.in (CRT_DIR): New variable, set by configure.
2061 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2062 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2063
1ad4cc3d
DN
20642010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2065
e769f484
DN
2066 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2067
4196ff33
DN
2068 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2069
879b0ee4
DN
2070 Remove redundant flags.
2071 * s/freebsd.h (C_SWITCH_SYSTEM):
2072 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2073 * s/netbsd.h (C_SWITCH_SYSTEM):
2074 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2075 of these.
2076
03cbbcb8
DN
2077 Simplify m/intel386.h.
2078 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2079 user: ecrt0.c.
2080 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2081 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2082 the only user: s/unixware.h.
2083 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2084 from m/intel386.h.
2085 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2086 moved here from m/intel386.h.
2087
1ad4cc3d
DN
2088 * m/mips.h: Remove #if 0 code.
2089
8785b888
EZ
20902010-04-23 Eli Zaretskii <eliz@gnu.org>
2091
728588cc
EZ
2092 Fix display of composed characters from L2R scripts in bidi buffers.
2093 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2094 After advancing IT past the composition, resync the bidi iterator
2095 with IT's position. (Bug#5977)
2096
a63f80b4
DN
20972010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2098
2099 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2100 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2101
ff5dec5c
SM
21022010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2103
2104 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2105
8785b888
EZ
21062010-04-23 Eli Zaretskii <eliz@gnu.org>
2107
58ccf243 2108 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2109 * xdisp.c (pop_it): When the stack is popped after displaying
2110 from a string, bidi-iterate to exit from the text portion covered
2111 by the `display' property or overlay. (Bug#5988, bug#5920)
2112
feeb1604
DN
21132010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2114
8e324eb6
DN
2115 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2116 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2117
809fcaba
DN
2118 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2119 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2120
ed710380
DN
2121 Simplify STARTFILES definition.
2122 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2123 relying on Makefile.in to define it.
2124 * s/cygwin.h (START_FILES): Likewise.
2125 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2126
feeb1604
DN
2127 Clean up Solaris code.
2128 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2129 (LIB_MOTIF): Remove, configure takes care of this.
2130 (NOT_USING_MOTIF): Remove, unused.
2131 * xrdb.c: Remove #if 0-ed #include.
2132 (SYSV): Remove conditional for old SysV.
2133 * sysdep.c (closedir): Remove conditional code for Solaris,
2134 Solaris has closedir.
2135
a0d0b563
JD
21362010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2137
2138 * xsettings.c (read_and_apply_settings): Check if current_font is
2139 NULL before strcmp (Bug#6001).
2140
56bae7c7
DN
21412010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2142
2143 Clean up HP-UX files.
2144 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2145 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2146 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2147 * s/hpux10-20.h: ... to the only user, here.
2148
372b7a95
EZ
21492010-04-21 Eli Zaretskii <eliz@gnu.org>
2150
2151 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2152 use buffer-local values of paragraph-start and paragraph-separate.
2153 <paragraph_start_re, paragraph_separate_re>: Rename from
2154 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2155 (Bug#5992)
2156
f904c0f9
JD
21572010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2158
2159 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2160 current_tool_bar_style are new.
2161 (store_config_changed_event): Rename from store_font_changed_event.
2162 (XSETTINGS_TOOL_BAR_STYLE): New define.
2163 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2164 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2165 HAVE_XFT.
2166 (something_changedCB): store_font_changed_event is now
2167 store_config_changed_event
2168 (parse_settings): Rename from parse_xft_settings. Read
2169 non-xft xsettings outside #ifdef HAVE_XFT.
2170 (read_settings): Renamed from read_xft_settings.
2171 (apply_xft_settings): Take current settings as parameter. Do not
2172 call read_(xft)_settings.
2173 (read_and_apply_settings): New function.
2174 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2175 read_and_apply_settings if there are settings to be read.
2176 (init_xsettings): Renamed from init_xfd_settings.
2177 Call read_and_apply_settings unconditionally.
2178 (xsettings_initialize): Call init_xsettings.
2179 (Ftool_bar_get_system_style): New function.
2180 (syms_of_xsettings): Define Qmonospace_font_name and
2181 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2182 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2183 dynamic-setting.
31a01b90 2184 Move misplaced HAVE_GCONF
f904c0f9
JD
2185
2186 * xsettings.h (Ftool_bar_get_system_style): Declare.
2187
2188 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2189 Qtext, Qboth, Qboth_horiz are new.
2190 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2191 Vtool_bar_style, tool_bar_max_label_size.
2192
2193 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2194
2195 * keyboard.c: QClabel is new.
2196 (parse_tool_bar_item): Take out QClabel from tool bar items.
2197 Try to construct a label if ther is no QClabel.
2198 (syms_of_keyboard): Intern :label as QClabel.
2199
2200 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2201 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2202 New.
2203
2204 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2205 dynamic-setting.el.
2206
2207 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2208 (xg_make_tool_item, xg_show_toolbar_item): New function.
2209 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2210 Call xg_make_tool_item to make a tool bar item.
2211 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2212
2213 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2214 into account for toolbars.
2215
c632dfda
JD
22162010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2217
2218 * data.c (make_blv): Declarations before code (Bug#5993).
2219
10efe302
GM
22202010-04-21 Glenn Morris <rgm@gnu.org>
2221
2222 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2223 Define using autoconf, not cpp.
2224 (LIBXSM): New variable, set by autoconf.
2225 (LIBXT): Use $LIBXSM.
2226
4285ac5a
DN
22272010-04-21 Dan Nicolaescu <local_user@dannlt>
2228
3ec759e7
DN
2229 Remove NOMULTIPLEJOBS, unused.
2230 * s/template.h (NOMULTIPLEJOBS):
2231 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2232
4285ac5a
DN
2233 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2234 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2235 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2236 detects -znocombreloc and passes it to the linker
2237 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2238
2807228d
GM
22392010-04-21 Glenn Morris <rgm@gnu.org>
2240
2241 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2242
574c05e2
KK
22432010-04-21 Karel Klíč <kklic@redhat.com>
2244
2245 * Makefile.in (LIBSELINUX_LIBS): New.
2246 (LIBES): Add $LIBSELINUX_LIBS.
2247 * eval.c, lisp.h (call7): New function.
2248 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2249 (Ffile_selinux_context, Fset_file_selinux_context):
2250 New functions.
2251 (Fcopy_file): New parameter preserve-selinux-context.
2252 (Frename_file): Preserve selinux context when renaming by copy-file.
2253
91eac4bb 22542010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2255 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2256
50426a04
JB
2257 Don't depend on cm.c or termcap.c on Windows, use stubs.
2258 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2259 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2260 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2261 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2262 (sys_tputs, sys_tgetstr): New stubs.
2263 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2264 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2265
938efb77
JB
22662010-04-20 Juanma Barranquero <lekktu@gmail.com>
2267
2268 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2269
b4bf28b7
SM
22702010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2271
8b1e1112
SM
2272 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2273 Just signal a warning rather than an error when inside a let.
2274 (Fmake_variable_frame_local): Add the same test.
2275
933ac235
SM
2276 * font.c (syms_of_font): Make the style table vars read-only.
2277
b4bf28b7
SM
2278 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2279 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2280
2281 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2282
93d68d0c
EZ
22832010-04-20 Eli Zaretskii <eliz@gnu.org>
2284
2285 Fix R2L paragraph display on TTY.
2286
2287 * xdisp.c (unproduce_glyphs): New function.
2288 (display_line): Use it when produced glyphs are discarded from R2L
2289 glyph rows.
2290 (append_composite_glyph): In R2L rows, prepend the glyph rather
2291 than appending it.
2292
2293 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2294 rather than append it. Set up the resolved_level and bidi_type
2295 attributes of the appended glyph.
283ccc18
EZ
2296 (produce_special_glyphs): Mirror the backslash continuation
2297 character in R2L lines.
93d68d0c 2298
283ccc18 2299 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2300
283ccc18
EZ
2301 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2302 append_stretch_glyph.
2303 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2304 off-by-one error in computing x at end of text in the row.
2305 (append_stretch_glyph): In reversed row, prepend the glyph rather
2306 than append it. Set resolved_level and bidi_type of the glyph.
2307 (extend_face_to_end_of_line): If the row is reversed, prepend a
2308 stretch glyph whose width is such that the rightmost glyph will be
2309 drawn at the right margin of the window. Fix off-by-one error on
2310 TTY frames in testing whether a line needs face extension. Fix
2311 face extension at ZV. If this is the last glyph row, use
2312 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2313 region face.
2314 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2315 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2316 row->continuation_lines_width.
283ccc18
EZ
2317 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2318 are at ZV. Fixes a crash when reseated to ZV by
2319 try_window_reusing_current_matrix.
45903529
EZ
2320 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2321 which happens with R2L glyph rows. Fixes a crash when inserting a
2322 character at end of an R2L line.
283ccc18
EZ
2323 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2324 treat them as having zero-width characters. Improve comments.
2325 Don't reverse pos_before and pos_after for reversed glyph rows.
2326 Set cursor.x to negative value when the cursor might be on the
2327 left fringe.
2328 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2329 left fringe, not the right one.
f951a506
EZ
2330 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2331 (erase_phys_cursor): For reversed cursor_row, support cursor on
2332 the left fringe.
2333
283ccc18
EZ
2334 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2335 of continuation indicators on the fringes.
2336 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2337 left fringe.
2338
f951a506
EZ
2339 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2340 draw cursor on the left fringe.
2341
2342 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2343 cursor on the left fringe.
2344
f951a506
EZ
2345 * dispnew.c (update_text_area): Handle reversed desired rows when
2346 the cursor is on the left fringe.
2347 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2348 below, not by 0, for when the cursor is on the left fringe.
2349
3bb49aaf
JD
23502010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2351
2352 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2353 widget is a scrollbar.
2354
c0be27fd
KH
23552010-04-20 Kenichi Handa <handa@m17n.org>
2356
2357 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2358 only when the arg CHARSET_LIST is nil.
2359
ce5b453a
SM
23602010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2361
2362 Make variable forwarding explicit rather the using special values.
2363 Basically, this makes the structure of buffer-local values and object
2364 forwarding explicit in the type of Lisp_Symbols rather than use
2365 special Lisp_Objects for that. This tends to lead to slightly more
2366 verbose code, but is more C-like, simpler, and makes it easier to make
2367 sure we handled all cases, among other things by letting the compiler
2368 help us check it.
2369 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2370 Removing forwarding objects.
2371 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2372 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2373 explicit rather than hiding them inside Lisp_Object "values".
2374 (XFWDTYPE): New macro.
2375 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2376 (XBUFFER_LOCAL_VALUE): Remove.
2377 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2378 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2379 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2380 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2381 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2382 Remove the Lisp_Misc_* header.
2383 (struct Lisp_Buffer_Local_Value): Redefine.
2384 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2385 (struct Lisp_Misc_Any): Add filler to get the right size.
2386 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2387 Lisp_Intfwd.
2388 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2389 (DEFVAR_KBOARD): Allocate a forwarding object.
2390 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2391 (let_shadows_global_binding_p): New function.
2392 (union Lisp_Val_Fwd): New type.
2393 (make_blv): New function.
2394 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2395 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2396 (swap_in_symval_forwarding, find_symbol_value, Fset)
2397 (let_shadows_buffer_binding_p, set_internal, default_value)
2398 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2399 (Fkill_local_variable, Fmake_variable_frame_local)
2400 (Flocal_variable_p, Flocal_variable_if_set_p)
2401 (Fvariable_binding_locus):
2402 * xdisp.c (select_frame_for_redisplay):
2403 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2404 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2405 * frame.c (store_frame_param):
2406 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2407 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2408 value structure.
2409 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2410 (clone_per_buffer_values): Only adjust markers into the current buffer.
2411 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2412 (Fbuffer_local_value, set_buffer_internal_1)
2413 (swap_out_buffer_local_variables):
2414 Adapt to the new symbol value structure.
2415 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2416 (defvar_per_buffer): Take a new arg for the fwd object.
2417 (buffer_lisp_local_variables): Return a proper alist (different fix
2418 for bug#4138).
2419 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2420 (Fgarbage_collect): Don't handle buffer_defaults specially.
2421 (mark_object): Handle new symbol value structure rather than the old
2422 special Lisp_Misc_* objects.
2423 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2424 * term.c (set_tty_color_mode):
2425 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2426 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2427 a buffer_local_flags.
2428 * print.c (print_object): Get rid of impossible forwarding objects.
2429
fd3998ff
EZ
24302010-04-19 Eli Zaretskii <eliz@gnu.org>
2431
2432 * bidi.c (bidi_get_type, bidi_get_category)
2433 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2434 (bidi_type_of_next_char, bidi_level_of_next_char):
2435 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2436
e42cd1a7
JB
24372010-04-19 Juanma Barranquero <lekktu@gmail.com>
2438
2439 * dired.c (Ffile_attributes): Fix typo in docstring.
2440
6e104790 24412010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2442
2443 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2444 NSInteger (Bug#5811).
2445
6e104790 24462010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2447
2448 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2449 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2450
6e104790 24512010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2452
2453 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2454
6e104790
SM
24552010-04-19 Chong Yidong <cyd@stupidchicken.com>
2456
2457 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2458 terminal frames (Bug#5837).
2459
37dcfea0
EZ
24602010-04-19 Eli Zaretskii <eliz@gnu.org>
2461
d1da276f
EZ
2462 * .gdbinit (xsubchartable): New command.
2463
37dcfea0
EZ
24642010-04-19 Eli Zaretskii <eliz@gnu.org>
2465
2466 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2467 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2468 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2469 and
2470 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2471
e9515805
SM
24722010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2473
2474 * alloc.c (Fpurecopy): Hash-cons if requested.
2475 (syms_of_alloc): Update purify-flag docstring.
2476
22aa44a8
JD
24772010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2478
2479 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2480 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2481
ebb5722e
EZ
24822010-04-17 Eli Zaretskii <eliz@gnu.org>
2483
2484 Fix a crash when an NSM character is inserted at BEGV.
2485
2486 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2487 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2488 NEUTRAL_B or UNKNOWN_BT.
2489
0f4442ef
EZ
24902010-04-16 Eli Zaretskii <eliz@gnu.org>
2491
2492 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2493 other rows with cursor unless they are different from this row and
2494 this row is part of a continued line. (Bug#5943)
2495
7d4e45f8
DN
24962010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2497
2498 * s/freebsd.h: Restore osreldate.h include.
2499 Suggested by Naohiro Aota.
2500
5ba5ec85
J
25012010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2502
2503 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2504
20af301d
CY
25052010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2506
2507 * s/cygwin.h: Avoid linking against static libgcc.
2508
a4b000fb
JL
25092010-04-15 Juri Linkov <juri@jurta.org>
2510
2511 * window.c: Add Qscroll_command.
2512 Remove Vscroll_preserve_screen_position_commands.
2513 (window_scroll_pixel_based, window_scroll_line_based): Check the
2514 `scroll-command' property on the last command instead of searching
2515 the last command in Vscroll_preserve_screen_position_commands.
2516 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2517 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2518 (scroll-preserve-screen-position): Doc fix.
2519 (Vscroll_preserve_screen_position_commands): Remove variable.
2520
bc319ba4
DN
25212010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2522
6bb24457
DN
2523 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2524
19d4c244
DN
25252010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2526
2527 Reduce cpp use in Makefile.in.
2528 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2529 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2530 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2531 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2532 (CRT0_COMPILE): Remove, inline it in the only user.
2533
32129746
JL
25342010-04-14 Juri Linkov <juri@jurta.org>
2535
2536 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2537 `scroll-up-command' and `M-v' from `scroll-down' to
2538 `scroll-down-command'.
2539
9013a7f8
JL
25402010-04-14 Juri Linkov <juri@jurta.org>
2541
2542 * window.c (Vscroll_preserve_screen_position_commands): New variable
2543 with the default value as the list of Qscroll_down and Qscroll_up.
2544 (window_scroll_pixel_based, window_scroll_line_based): Search the
2545 last command in the list Vscroll_preserve_screen_position_commands
2546 instead of comparing with Qscroll_up and Qscroll_down.
2547
4bef8d26
JD
25482010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2549
92848133
JD
2550 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2551 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2552 does that.
2553
4bef8d26
JD
2554 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2555 to zero.
2556
58b963f7
SM
25572010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2558
84164a0d
SM
2559 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2560
2b0a91e7
SM
2561 Try to solve the problem of spurious EOF chars in long lines of text
2562 sent to interactive subprocesses.
2563 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2564 (system_process_attributes): Remove unused var `ttotal'.
2565 * process.c (send_process): Don't bother breaking long line with EOF
2566 chars when talking to ttys any more.
2567 (wait_reading_process_output): Output a warning when called in such
2568 a way that it could block without being interruptible.
2569
58b963f7
SM
2570 Try to detect file modification within the same second.
2571 * buffer.h (struct buffer): New field modtime_size.
2572 * buffer.c (reset_buffer): Initialize it.
2573 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2574 (Fverify_visited_file_modtime): Check it.
2575 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2576 (Fset_visited_file_modtime): Set (or clear) it.
2577
01f5787b
SM
25782010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2579
2580 * process.c (status_notify): Remove unused var `ro'.
2581
83725342
JD
25822010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2583
2584 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2585 more than one visual (Bug#5938).
2586
b9465836
DN
25872010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2588
50426a04
JB
2589 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2590 Undefine.
b9465836 2591
8d9c8ece
DN
25922010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2593
b1f52161
DN
2594 Remove C_SWITCH_SYSTEM_TEMACS.
2595 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2596 (malloc, realloc, free): Use emacs, not temacs for conditional
2597 definition.
2598
2599 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2600 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2601
8d9c8ece
DN
2602 Use autoconf, not cpp for some variables.
2603 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2604 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2605 (ALL_CFLAGS): Use them as make variables.
2606 (really-lwlib, really-oldXMenu): Do not pass them.
2607
1ecb2d3f
JD
26082010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2609
2610 * xmenu.c (apply_systemfont_to_dialog): New.
2611 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2612
3a4fa2f2
SM
26132010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2614
97e53006
SM
2615 * process.c (exec_sentinel): Preserve current-buffer.
2616
3a4fa2f2
SM
2617 * process.c (read_process_output): Move the save-current-buffer to
2618 apply to both the filter and the non-filter branches.
2619
88df7221
DN
26202010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2621
2622 * s/msdos.h (UNEXEC): New definition.
2623
5634ff85
YM
26242010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2625
6eff5c3d
YM
2626 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2627 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2628
2629 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2630 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2631 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2632 TRY_WINDOW_CHECK_MARGINS.
2633
2634 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2635 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2636 width only when it is for padding.
5634ff85 2637
b13aef54
J
26382010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2639
2640 * xfns.c (Fx_show_tip): Call try_window in a loop until
2641 fonts_changed_p is zero (Bug#2423).
2642
21d28484
EZ
26432010-04-08 Eli Zaretskii <eliz@gnu.org>
2644
2645 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2646 the end of TEXT_AREA. (Bug#5856)
2647
0269ef77
JD
26482010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2649
2650 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2651 HAVE_GCONF.
2652
5930fe97
EZ
26532010-04-08 Eli Zaretskii <eliz@gnu.org>
2654
2655 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2656 prev.orig_type, for resolving type of NSM. (Bug#5858)
2657
99852628
JD
26582010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2659
2660 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2661 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2662 in current_font.
2663 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2664 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2665 New functions.
2666 (syms_of_xsettings): Initialize current_font.
2667 defsubr Sfont_get_system_normal_font.
99852628
JD
2668
2669 * xsettings.h (Ffont_get_system_normal_font,
2670 xsettings_get_system_normal_font): Declare.
2671
2672 * xfns.c (extern xlwmenu_default_font): Remove.
2673 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2674 to xlwmenu.c.
2675
2676 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2677 menu items in UTF-8.
2678
2679 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2680 (apply_systemfont_to_menu): New function.
2681 (set_frame_menubar, create_and_show_popup_menu): Call
2682 apply_systemfont_to_menu.
2683
7fc874c4
J
26842010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2685
2686 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2687 FRAME_LINE_TO_PIXEL_Y.
2688
2689 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2690 pixelwidth/height.
2691
863bf481
DN
26922010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2693
5e5a3b92
DN
2694 Simplify code for HP machines.
2695 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2696 for GNU_LINUX, not needed.
2697 (UNEXEC, NEED_BSDTTY): Move definitions...
2698 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2699
863bf481
DN
2700 * m/iris4d.h (UNEXEC): Move definition ...
2701 * s/irix6-5.h (UNEXEC): ... here.
2702
3e6bec3b
JD
27032010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2704
2705 * xfns.c (set_machine_and_pid_properties): New function.
2706 (Fx_create_frame): Call set_machine_and_pid_properties.
2707
2912322b
SM
27082010-04-03 Eli Zaretskii <eliz@gnu.org>
2709
1502b819
EZ
2710 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2711 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2712 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2713
2912322b
SM
2714 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2715 in this function. (Bug#5703)
2716
27172010-04-03 Chong Yidong <cyd@stupidchicken.com>
2718
2719 * nsterm.h: Fix last change.
2720
c435b432
DN
27212010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2722
a568f507
DN
2723 * m/intel386.h (NO_REMAP): Move definition ...
2724 * s/msdos.h (NO_REMAP): ... here.
2725
4cd9f6c2
DN
2726 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2727
c435b432
DN
2728 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2729 used on those platforms.
2730
42a2c622
DN
27312010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2732
2733 Remove extern errno declarations.
2734 * xterm.c:
2735 * xrdb.c:
2736 * w32term.c:
2737 * unexec.c:
2738 * unexaix.c:
2739 * sysdep.c:
2740 * process.c:
2741 * lread.c:
2742 * keyboard.c:
2743 * floatfns.c:
2744 * filelock.c:
2745 * fileio.c:
2746 * emacs.c (main):
2747 * ecrt0.c:
2748 * dispnew.c:
2749 * callproc.c:
2750 * buffer.c: Remove errno extern declarations.
2751 * s/netbsd.h (NEED_ERRNO): Remove.
2752
8224f93d
DN
27532010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2754
2755 Remove all uses of LIBX11_SYSTEM.
2756 * Makefile.in (LIBX11_SYSTEM): Remove.
2757 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2758 instead.
2759
814062c7
EZ
27602010-04-01 Eli Zaretskii <eliz@gnu.org>
2761
ed68db4d
EZ
2762 Remove support for DJGPP v1.x (bug#5813).
2763
2764 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2765 * s/msdos.h:
2766 * unexec.c (make_hdr, copy_text_and_data):
2767 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2768 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2769 (IT_set_terminal_modes, __write, _rename, gethostname)
2770 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2771 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2772 the value of __DJGPP__.
ed68db4d
EZ
2773 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2774 compatibility code.
8224f93d
DN
2775 * lread.c:
2776 * gmalloc.c (memalign):
2777 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2778 * emacs.c (main):
2779 * dosfns.c (init_dosfns):
ed68db4d
EZ
2780 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2781
52f4d8d5
EZ
27822010-04-01 Eli Zaretskii <eliz@gnu.org>
2783
814062c7
EZ
2784 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2785 string with `cursor' property comes from an `after-string'
2786 overlay. (Bug#5816)
2787
0dc2e11d
GM
27882010-04-01 Glenn Morris <rgm@gnu.org>
2789
2790 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2791 Define as Makefile variables.
2792 (LIBX): Use above variables rather than directly using autoconf.
2793
1d29df59
DN
27942010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2795
2796 Clean up BSD_SYSTEM use.
2797 * xterm.c:
2798 * process.c:
2799 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2800 for including <sys/ioctl.h>.
2801 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2802 code is only used for MSDOS.
2803
1546c559
JL
28042010-03-31 Juri Linkov <juri@jurta.org>
2805
2806 * image.c: Add `Qextension_data'.
2807 (syms_of_image): Initialize and staticpro `Qextension_data'.
2808 (Fimage_metadata): Rename from `Fimage_extension_data'.
2809 (gif_load): Put GIF extension data to the property
2810 `Qextension_data'.
2811
6521c534
CY
28122010-03-31 Chong Yidong <cyd@stupidchicken.com>
2813
2814 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2815 * nsterm.h: Fix prototype.
2816
52c30783
EZ
28172010-03-31 Eli Zaretskii <eliz@gnu.org>
2818
2819 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2820 trailing whitespace in right-to-left rows.
2821
855a0da7
SM
28222010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2823
2824 Get rid of the direct_output optimizations.
2825 * keyboard.c (nonundocount): Remove extern declaration.
2826 (command_loop_1): Remove brittle optimisation for cheap and
2827 common operations.
2828 * xdisp.c (redisplay_internal): Don't bother checking
2829 redisplay_performed_directly_p any more.
2830 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2831 any more.
2832 * dispnew.c (redisplay_performed_directly_p)
2833 (direct_output_for_insert, direct_output_forward_char):
2834 * dispextern.h (redisplay_performed_directly_p)
2835 (direct_output_for_insert, direct_output_forward_char): Remove.
2836 * cmds.c (nonundocount): Make it static.
2837
85738751 28382010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2839
2840 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2841
85738751 28422010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2843
2844 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2845 invisible (Bug#5766).
2846
85738751 28472010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2848
855a0da7
SM
2849 * xdisp.c (x_consider_frame_title, update_window_cursor):
2850 Remove HAVE_NS conditionals.
194d44e7 2851 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2852
2853 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2854 filename for the title.
2855 (ns_set_doc_edited): Do nothing if the selected window is a
2856 minibuffer window.
2857
2858 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2859 ns_set_doc_edited.
2860
2861 * nsterm.m: Remove unneeded prototype.
2862
85738751 28632010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2864
2865 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2866 in the DOC file. (Bug#5336)
2867
85738751 28682010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2869
2870 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2871
75d1428c
SM
28722010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2873
2874 * window.c (keys_of_window): Remove redundant/overridden bindings.
2875
82043cfb
EZ
28762010-03-30 Eli Zaretskii <eliz@gnu.org>
2877
2878 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2879 Restore original behavior when the iterator is not bidi_p.
2880
b5dd0ae7
DN
28812010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2882
2883 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2884
bd924a5d
EZ
28852010-03-30 Eli Zaretskii <eliz@gnu.org>
2886
2887 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2888 are outside the range of cached character positions.
2889
3580374b
JB
28902010-03-30 Juanma Barranquero <lekktu@gmail.com>
2891
2892 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2893
a7b02820
EZ
28942010-03-30 Eli Zaretskii <eliz@gnu.org>
2895
2896 Initial support for bidirectional editing.
2897
2898 * Makefile.in (obj): Include bidi.o.
2899 (bidi.o): New target.
2900
2901 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2902 ($(BLD)/bidi.$(O)): New target.
2903
2904 * bidi.c: New file.
2905
2906 * buffer.h (struct buffer): New members bidi_display_reordering
2907 and bidi_paragraph_direction.
2908
2909 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2910 and bidi_paragraph_direction.
2911 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2912 and bidi-paragraph-direction.
2913 (Fbuffer_swap_text): Swap the values of
2914 bidi_display_reordering and bidi_paragraph_direction.
2915
2916 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2917 (bidi_type_t, bidi_dir_t): New types.
2918 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2919 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2920 prev_stop, base_level_stop, and eol_pos.
2921 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2922 (IT_STACK_SIZE): Enlarge to 5.
2923 (struct glyph_row): New member reversed_p.
2924 <string_buffer_position>: Update prototype.
2925 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2926 glyph_row if bidi_it.paragraph_dir == R2L.
2927 (struct glyph): New members resolved_level and bidi_type.
2928
2929 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2930 processing or buffer's direction is right-to-left.
2931 (prepare_desired_row): Preserve the reversed_p flag.
2932 (row_equal_p): Compare the reversed_p attributes as well.
2933
2934 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2935 bidi_init_it and set it->paragraph_embedding from the current
2936 buffer's value of bidi_paragraph_direction.
2937 (reseat_1): Initialize bidi_it.first_elt.
2938 (set_iterator_to_next, next_element_from_buffer): Use the value of
2939 paragraph_embedding to determine the paragraph direction.
2940 (set_iterator_to_next): Under bidi reordering, call
2941 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2942 new_paragraph flag is set in the bidi iterator.
2943 (next_element_from_buffer): If bidi_it.first_elt is set,
2944 initialize paragraph direction and find the first character to
2945 display in the visual order. If reseated to a middle of a line,
2946 prime the bidi iterator starting at the line's beginning. Handle
2947 the situation where we overstepped stop_charpos due to
2948 non-linearity of the bidi iteration. Likewise for when we back up
2949 beyond the previous stop_charpos. When moving across stop_charpos,
2950 record it in prev_stop.
2951 (display_line): Set row->end and it->start for the next row to the
2952 next character in logical order. Always extend reversed_p rows to
2953 the end of line, even if they end at ZV. Copy the reversed_p flag
2954 to the next glyph row. Keep calling set_cursor_from_row for
2955 bidi-reordered rows even if we already have a possible candidate
2956 for cursor position. Set row_end after all the row's glyphs have
2957 been produced, by looping over the glyphs. Record the position
2958 after EOL in it->eol_pos, and use it to set end_pos of the last
2959 row produced for a continued line.
2960 <Qright_to_left, Qleft_to_right>: New variables.
2961 (syms_of_xdisp): Initialize and staticpro them.
2962 (string_buffer_position_lim): New function.
2963 (string_buffer_position): Most of code moved to
2964 string_buffer_position_lim. Last argument and return value are
2965 now EMACS_INT; all callers changed.
2966 (set_cursor_from_row): Rewritten to support bidirectional text and
2967 reversed glyph rows.
2968 (text_outside_line_unchanged_p, try_window_id): Disable
2969 optimizations if we are reordering bidirectional text and the
2970 paragraph direction can be affected by the change.
2971 (append_glyph, append_composite_glyph)
2972 (produce_image_glyph, append_stretch_glyph): Set the
2973 resolved_level and bidi_type members of each glyph.
2974 (append_glyph): If the glyph row is reversed, prepend the glyph
2975 rather than appending it.
2976 (handle_stop_backwards): New function.
2977 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2978 (reseat): call handle_stop_backwards to recompute prev_stop and
2979 base_level_stop for the new position.
2980 (handle_invisible_prop): Under bidi iteration, skip invisible text
2981 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2982 paragraph direction. Update IT->prev_stop after skipping
2983 invisible text.
2984 (move_it_in_display_line_to): New variables prev_method
2985 and prev_pos. Compare for strict equality in
2986 BUFFER_POS_REACHED_P.
2987 (try_cursor_movement): Examine all the candidate rows that occlude
2988 point, to return the best match. If rows are bidi-reordered
2989 and point moved backwards, back up to the row that is not a
2990 continuation line, and start looking for a suitable row from
2991 there.
2992
2993 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2994 rather than appending, if the glyph_row's reversed_p flag is set.
2995 Set the resolved_level and bidi_type members of each glyph.
2996
2997 * .gdbinit (pbiditype): New command.
2998 (pgx): Use it to display bidi level and type of the glyph.
2999 (pitx): Display some bidi information about the iterator.
3000 (prowlims, pmtxrows): New commands.
3001
32a8894e
DN
30022010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3003
3004 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3005 * s/usg5-4.h (LIBS_DEBUG):
3006 * s/irix6-5.h (C_DEBUG_SWITCH):
3007 * s/gnu-linux.h (LIBS_DEBUG):
3008 * s/darwin.h (LIBS_DEBUG):
3009 * s/bsd-common.h (LIBS_DEBUG):
3010 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3011 * m/iris4d.h (LIBS_DEBUG):
3012 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3013
3014 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3015 (LIBS_DEBUG): Remove definition.
3016
649dbf36
CY
30172010-03-27 Chong Yidong <cyd@stupidchicken.com>
3018
3019 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3020 Windows.
3021
cad4261f
YM
30222010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3023
3024 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3025 `connect' (Bug#5723).
3026
cd591dbc
HE
30272010-03-25 Helmut Eller <eller.helmut@gmail.com>
3028
3029 * process.c (Fmake_network_process): Call `select' for interrupted
3030 `connect' rather than creating new socket (Bug#5173).
3031
e867cb5d 30322010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3033
3034 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3035
3036 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3037
3038 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3039
e867cb5d 30402010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3041
3042 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3043 XLoadQueryFont.
3044
e867cb5d 30452010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3046
3047 * coding.c (decode_coding_ccl): Fix previous change for the
3048 multibyte case.
fb608df3
KH
3049 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3050 case that the output buffer is fullfilled.
3051 (encode_coding): Setup ccl program here.
fbdc1721 3052
5845f0ed
DN
30532010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3054
814fb708
DN
3055 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3056
5845f0ed
DN
3057 Simplify LIBS_MACHINE definitions.
3058 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3059 * m/iris4d.h (LIBS_MACHINE): Likewise.
3060 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3061 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3062 * s/netbsd.h: Remove commented out code.
5845f0ed 3063
b7064064
DN
30642010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3065
df7734b2
DN
3066 Remove dead code dealing with POSIX_SIGNALS.
3067 * atimer.c (set_alarm): Remove dead code, all USG systems define
3068 POSIX_SIGNALS.
3069 * data.c (arith_error): Likewise.
3070 * keyboard.c (input_available_signal, handle_user_signal)
3071 (interrupt_signal): Likewise.
3072 * process.c (sigchld_handler): Likewise.
3073 (create_process): Remove if 0 code. Remove HPUX conditional when
3074 !defined (POSIX_SIGNALS), it cannot be true.
3075 * syssignal.h: Remove USG5_4 and USG conditionals when
3076 !POSIX_SIGNALS, they cannot be true.
3077
b7064064
DN
3078 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3079 NO_SOCK_SIGIO, not used anymore.
3080
55da5ee3
DN
30812010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3082
0be96e3a
DN
3083 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3084 support vax on BSDs.
3085
55da5ee3
DN
3086 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3087 * s/aix4-2.h (ORDINARY_LINK): ... here.
3088
c0282183
AS
30892010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3090
82c3d67a
AS
3091 * Makefile.in (abs_builddir): Define.
3092 (bootstrap_exe): Use it.
3093 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3094
3613edce
SM
30952010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3096
3097 * Makefile.in (bootstrap_exe): Use an absolute name.
3098
7f110ddc
DN
30992010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3100
22e87574
DN
3101 Remove support for old GNU/Linux using libc version 5.
3102 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3103 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3104
05a670e6
DN
3105 Consolidate redundant definitions in s/bsd-common.h.
3106 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3107 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3108 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3109 doing it in all files that include this one.
3110 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3111 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3112 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3113 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3114 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3115 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3116 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3117 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3118 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3119
2968f561
DN
3120 Consolidate redundant definitions.
3121 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3122 it's undefined in all files that include this one.
3123 (POSIX_SIGNALS): Define here instead of doing it in all files that
3124 include this one.
3125 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3126 (POSIX_SIGNALS): Do not define.
3127 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3128 (POSIX_SIGNALS): Do not define.
3129 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3130 (POSIX_SIGNALS): Do not define.
3131
15d25dc0
DN
3132 Remove support for old UNIX System V systems.
3133 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3134 * s/usg-5-4-2.h: Remove.
3135
07e339e4
DN
3136 Remove support for Solaris on PPC and for old versions.
3137 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3138 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3139 that cancel each other.
3140 * s/sol2-3.h:
3141 * s/sol2-4.h:
3142 * s/sol2-5.h: Remove.
3143 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3144 (NO_REMAP): Remove, unused.
3145 (UNEXEC): Move definition ...
3146 * s/aix4-2.h (UNEXEC): ... here.
3147
7f110ddc
DN
3148 * s/openbsd.h: Remove support for non-ELF and for systems that do
3149 not support shared libraries.
3150 * s/netbsd.h:
3151 * s/freebsd.h: Likewise.
3152
605f35cd
DN
31532010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3154
3155 Remove non-working support for lynxos 3.0.
3156 * s/lynxos.h: Remove file.
3157
3158 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3159 COFF_BSD_SYMBOLS, nothing defines it anymore.
3160
aed71cf4
DN
31612010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3162
3163 Remove obsolete uses of HAVE_SHM.
3164 * emacs.c (standard_args):
3165 (Fdump_emacs):
3166 (syms_of_emacs): Remove code depending on HAVE_SHM.
3167
3168 * alloc.c: Remove HAVE_SHM dependent definition.
3169
3170 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3171
aded53ff
GM
31722010-03-18 Glenn Morris <rgm@gnu.org>
3173
17284745
GM
3174 * emacs.c (USAGE4): Hard-code bug address.
3175 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3176 (bug_reporting_address): Remove.
3177 (main): Don't call bug_reporting_address.
3178
aded53ff
GM
3179 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3180 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3181
303500aa
CY
31822010-03-15 Chong Yidong <cyd@stupidchicken.com>
3183
3184 * xfns.c (Fx_create_frame):
3185 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3186 on left.
3187
cef3058f
CY
31882010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3189
3190 * editfns.c (Fformat): Account for string precision when computing
3191 field width (Bug#5710).
3192
a647d59d
CY
31932010-03-12 Chong Yidong <cyd@stupidchicken.com>
3194
4fa42018
CY
3195 * xfns.c (Fx_create_frame): Set default to Qright.
3196
a647d59d
CY
3197 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3198 all window systems.
3199
6da23aaa
EZ
32002010-03-12 Eli Zaretskii <eliz@gnu.org>
3201
a96f6398 3202 These changes remove termcap.c from the build on Posix platforms.
83d02def 3203 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3204 (MSDOS_OBJ): ...to here.
3205 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3206 now identical to when LIBS_TERMCAP is defined.
3207
3208 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3209
3210 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3211
a96f6398 3212 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3213
288f9fc0
CY
32142010-03-10 Chong Yidong <cyd@stupidchicken.com>
3215
3216 * Branch for 23.2.
3217
d48cd3f4
SM
32182010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3219
3220 Cleanup setup of gl_state in various parts of the code.
3221 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3222 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3223 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3224 (skip_chars):
3225 * regex.c (regex_compile): Use it.
3226 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3227 it's now set in regex_compile when/if we need it.
3228
618db430
SM
32292010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3230
c0335e02
SM
3231 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3232 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3233 (QUIT): Use it to consolidate code and remove redundancy.
3234 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3235
254c06a8
SM
3236 * regex.c (regex_compile): Setup gl_state as well.
3237
618db430
SM
3238 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3239 (in_classes): Use CONSP before XCAR/XCDR.
3240
233f0c9f
CY
32412010-03-03 Chong Yidong <cyd@stupidchicken.com>
3242
3243 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3244 definitions, so that keyboard macros are correctly handled
3245 (Bug#5481).
3246
75f80e63
EZ
32472010-03-02 Eli Zaretskii <eliz@gnu.org>
3248
3249 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3250 text that could be relocated inside the call to emacs_mule_char.
3251 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3252 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3253
dcfb9bc4
KH
32542010-03-02 Kenichi Handa <handa@m17n.org>
3255
fc9a17bc
KH
3256 * character.c (parse_str_as_multibyte): Fix handling of the
3257 multibyte form of raw-bytes.
3258 (str_as_multibyte): Likewise.
3259
dcfb9bc4
KH
3260 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3261 form of raw-bytes.
3262
412c01b6
CY
32632010-02-28 Chong Yidong <cyd@stupidchicken.com>
3264
3265 * charset.c (load_charset_map_from_file)
3266 (load_charset_map_from_vector): Zero out allocated
3267 charset_map_entries before using them.
3268
df7e1ea0
AS
32692010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3270
3271 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3272
fe69a722
CY
32732010-02-27 Chong Yidong <cyd@stupidchicken.com>
3274
4ed28cf4
CY
3275 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3276 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3277
7379cfce
KH
32782010-02-26 Kenichi Handa <handa@m17n.org>
3279
f88cc4d6
KH
3280 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3281
7379cfce
KH
3282 * xdisp.c (reseat_to_string): Fix previous change.
3283
cf2fdcfb
CY
32842010-02-26 David Reitter <david.reitter@gmail.com>
3285
3286 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3287 Lisp_Object (Bug#4736).
3288
cc6c7c75
KH
32892010-02-25 Kenichi Handa <handa@m17n.org>
3290
3291 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3292
32e737d7
JD
32932010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3294
3295 * xterm.c (XTflash): Move declarations before statements.
3296
3297 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3298 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3299 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3300 (xg_create_tool_bar): Remove unused variables.
3301 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3302 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3303
676cae9f
CY
33042010-02-21 Chong Yidong <cyd@stupidchicken.com>
3305
3306 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3307
886cc2b8
SM
33082010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3309
3310 * term.c (fatal): Add a final \n if needed (bug#5596).
3311
ddb2d8e2
CY
33122010-02-18 Chong Yidong <cyd@stupidchicken.com>
3313
3314 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3315
2a4f8d3d
GM
33162010-02-18 Glenn Morris <rgm@gnu.org>
3317
3318 * callint.c (Finteractive): Doc fix.
3319
ebaf11b6
KH
33202010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3321
886cc2b8
SM
3322 * coding.c (record_conversion_result):
3323 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3324 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3325 memory allocation error.
3326
d0396581
KH
33272010-02-17 Kenichi Handa <handa@m17n.org>
3328
886cc2b8
SM
3329 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3330 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3331 (decode_coding): Setup ccl program here. Keep looping when the
3332 decoder stopped because the output buffer is
3333 fullfilled (bug#5534).
3334
3335 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3336
98599f74
JD
33372010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3338
471e4f04 3339 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3340 bug #5571.
886cc2b8 3341 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3342 overdrawn.
98599f74 3343
182659ae
JD
33442010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3345
3346 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3347 doing_interact here.
3348 (ice_connection_closed): New function.
3349 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3350 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3351 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3352 returns I/O error.
3353 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3354 bug #5512.
3355
9be32c4e 33562010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3357
3358 * nsfont.m (nsfont_open): The system's value for the font descent
3359 is negative, so round it down to avoid clipping.
3360
a2f3eb19
CY
33612010-02-06 Chong Yidong <cyd@stupidchicken.com>
3362
3363 * charset.c (load_charset_map_from_file)
3364 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3365 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3366
3088147c
CY
33672010-02-05 Chong Yidong <cyd@stupidchicken.com>
3368
3369 * charset.c (load_charset_map_from_file): Allocate large
3370 charset_map_entries structure on the heap rather than the stack.
3371 (Bug#5526).
3372
b57d9029
KH
33732010-01-31 Kenichi Handa <handa@m17n.org>
3374
3375 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3376 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3377
c67d885b
CY
33782010-01-31 Chong Yidong <cyd@stupidchicken.com>
3379
3380 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3381 <deactivated@gmail.com> (Bug#3605).
3382
8fab2362
CY
33832010-01-31 David De La Harpe Golden <david@harpegolden.net>
3384
3385 * fileio.c (Frename_file): Correctly rename symlinks to
3386 directories (Bug#5496).
3387
cb2a62f2
CY
33882010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3389
3390 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3391
944c7a26
AS
33922010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3393
3394 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3395
c024ac08
CY
33962010-01-29 Chong Yidong <cyd@stupidchicken.com>
3397
3398 * frame.c (DEFAULT_ROWS): Change default to 35.
3399
3400 * xfns.c (x_default_font_parameter): Change default XFT font to
3401 monospace-10 (Bug#3643).
3402
af93af83
EZ
34032010-01-29 Eli Zaretskii <eliz@gnu.org>
3404
3405 * w32inevt.c (key_event): Remove unnecessary comparison of
3406 event->uChar.AsciiChar with 128.
3407
ca0eb708
CY
34082010-01-28 Chong Yidong <cyd@stupidchicken.com>
3409
b242dbfc
CY
3410 * fileio.c (Frename_file): Fix last change (Bug#5487).
3411
ca0eb708
CY
3412 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3413
3414 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3415
45d45af5
JD
34162010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3417
3418 * xfns.c (Fx_create_frame): Remove window size matching code from
3419 2010-01-15.
a73f9c9d 3420 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3421
7e233730
JR
34222010-01-27 Jason Rumney <jasonr@gnu.org>
3423
3424 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3425 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3426
86e893e3
KH
34272010-01-27 Kenichi Handa <handa@m17n.org>
3428
3429 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3430 pattern string (Bug#4209).
86e893e3 3431
8719abec
CY
34322010-01-27 David De La Harpe Golden <david@harpegolden.net>
3433
3434 * fileio.c (Frename_file): Call copy-directory and
3435 delete-directory for directories, in order to handle cross-device
3436 renaming (Bug#3353).
3437
844794c8
JD
34382010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3439
aa3e13b5 3440 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3441 sizes 24 and 10. Bug #3643.
844794c8 3442
bd4b5750
SM
34432010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3444
8dc1adf6 3445 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3446 * keymap.c (shadow_lookup): Add `remap' arg.
3447 (describe_map, describe_vector): Update calls to shadow_lookup.
3448 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3449 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3450 perform remapping during shadow_lookup check of remapped_sequences.
3451
285d07e2
CY
34522010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3453
3454 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3455 png_check_sig, which has been removed in libpng 1.4.
3456
c6d09b8d
CY
34572010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3458
3459 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3460 lacks this header file).
3461
3d782998
YM
34622010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3463
3464 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3465 as in Emacs 22.
3466
2aff7c53
YM
34672010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3468
3469 * lisp.h (make_pure_string): String pointer arg now points to const.
3470
3471 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3472 args now point to const.
3473
74327f7a
EZ
34742010-01-22 Eli Zaretskii <eliz@gnu.org>
3475
3476 * lread.c (Fload): Don't treat files without .elc extension as
3477 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3478 them. (bug#5303)
3479
4d1e6632
KH
34802010-01-20 Kenichi Handa <handa@m17n.org>
3481
3482 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3483 treat the source as actual byte sequence.
3484
1fdede8f
AM
34852010-01-19 Alan Mackenzie <acm@muc.de>
3486
3487 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3488 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3489 `signal_after_change_p' to `coherent_change_p', and make the
3490 invocation of `modify_region' conditional on it.
3491
67477f30
JD
34922010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3493
3494 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3495 for debug purpose.
3496 (syms_of_xsettings): Declare xft-settings.
3497
244b023e
CY
34982010-01-18 Chong Yidong <cyd@stupidchicken.com>
3499
3500 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3501
617364fe
CY
35022010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3503
3504 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3505
4fe22cdf
CY
35062010-01-16 Chong Yidong <cyd@stupidchicken.com>
3507
3508 * emacs.c (standard_args): Adjust arg priorities to reflect how
3509 they are processed in startup.el.
3510
e118d2be
AS
35112010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3512
3513 * Makefile.in (lisp, shortlisp): Update.
3514
523ae620
SM
35152010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3516
3517 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3518 code, link the new kboard into all_kboard before running Lisp code,
3519 and protect the new terminal with GCPRO (Bug#5365).
3520 (x_term_init): Remove unused var `atom'.
3521 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3522
f0d13888
JD
35232010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3524
3525 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3526 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3527 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3528 this. Bug #3643.
f0d13888 3529
cc320f07
KH
35302010-01-15 Kenichi Handa <handa@m17n.org>
3531
3532 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3533
7ffdf101
CY
35342010-01-15 Chong Yidong <cyd@stupidchicken.com>
3535
3536 * nsterm.m (Qnone): Define.
3537
3538 * nsfns.m (Qnone): Move definition to nsterm.m.
3539
d12bd917
KH
35402010-01-14 Kenichi Handa <handa@m17n.org>
3541
3542 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3543 systems.
3544
d9a7c140
KH
35452010-01-14 Kenichi Handa <handa@m17n.org>
3546
3547 Make auto-composition work on all buffers even if they are
3548 fundamental mode.
3549
3550 * composite.c (Vauto_composition_mode): New variable.
3551 (composition_compute_stop_pos): Check Vauto_composition_mode
3552 instead of Vauto_composition_function.
3553 (composition_adjust_point, Ffind_composition_internal): Likewise.
3554 (syms_of_composite): Declare Lisp variable
3555 "auto-composition-mode" here.
3556
63286bb2
CY
35572010-01-13 Chong Yidong <cyd@stupidchicken.com>
3558
3559 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3560 during call to vendor-specific-keysyms (Bug#5365).
3561
c2623ee7
YM
35622010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3563
3564 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3565 Call SIGNAL_THREAD_CHECK (Bug#5333).
3566
3567 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3568 Call SIGNAL_THREAD_CHECK.
3569
0b5397c2
SM
35702010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3571
3572 Try to fix bug#5314. This is probably not the final word, tho.
3573 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3574 recent-auto-save-p as a side-effect.
3575 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3576 * buffer.c (Fkill_buffer, reset_buffer):
3577 * editfns.c (Fsubst_char_in_region):
3578 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3579 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3580
dc954cb2
KH
35812010-01-13 Kenichi Handa <handa@m17n.org>
3582
3583 Display buffer name, etc. in mode line by composing correctly.
3584
3585 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3586 STRING is not nil.
0b5397c2 3587 (display_mode_element): Adjust for the change of
dc954cb2
KH
3588 decode_mode_spec and display_line.
3589 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3590 (display_string): Handle the case that STRING is non-null and
3591 LISP_STRING is not nil.
3592
0b5397c2
SM
3593 * xterm.c (x_draw_composite_glyph_string_foreground):
3594 Pay attention to s->face->overstrike.
dc954cb2
KH
3595
3596 * composite.c (composition_reseat_it): Don't check PT if STRING is
3597 non nil.
3598
4a00eaca
YM
35992010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3600
3601 * keyboard.c (read_char): Don't apply previous change when current
3602 buffer is unchanged by command execution.
3603
60abb287
JD
36042010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3605
3606 * keyboard.c (read_char): Return after executing from special map.
3607
893db5bc
GM
36082010-01-12 Glenn Morris <rgm@gnu.org>
3609
3610 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3611 bug-gnu-emacs rather than emacs-pretest-bug.
3612
4d03ece0
CY
36132010-01-11 Chong Yidong <cyd@stupidchicken.com>
3614
3615 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3616 initializing the Lisp variables that depend on them.
3617
1df47e38
YM
36182010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3619
3620 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3621 Clear areas that will not be updated after change of menu bar lines.
3622 Clear the menu bar window's current matrix when the window gets empty.
3623
2f1c6384
CY
36242010-01-09 Chong Yidong <cyd@stupidchicken.com>
3625
e398c61c
CY
3626 * intervals.h, textprop.c (extend_property_ranges): Return value
3627 and args changed. Discard properties that begin at or after the
3628 new end (Bug#5306).
3629
3630 * editfns.c (Fformat): Caller changed.
3631
e5a29a10
CY
3632 * nsterm.m (ns_set_default_prefs): Delete function.
3633 (syms_of_nsterm): Initialize ns_command_modifier,
3634 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3635 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3636
2f1c6384
CY
3637 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3638 position (Bug#4040).
3639
d427a9fa
EZ
36402010-01-09 Eli Zaretskii <eliz@gnu.org>
3641
3642 * editfns.c (Ffloat_time): Doc fix.
3643
21b9df2f
JD
36442010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3645
3646 * xfns.c (Fx_create_frame): Don't create frame larger than display
3647 by default bug#3643.
3648
4b00d3b1
YM
36492010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3650
3651 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3652 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3653 windows above internal border.
3654
3655 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3656 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3657 windows above internal border.
3658
3659 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3660 tool bar windows specially.
3661
3662 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3663
3664 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3665 specially.
3666 (XTflash): Take account of menu bar height.
3667
3668 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3669 specially.
3670
5075d853
JD
36712010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3672
ac146f82 3673 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3674 also be true before we can return early (bug #5339).
3675
474217c8
CY
36762010-01-06 David Reitter <david.reitter@gmail.com>
3677
3678 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3679 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3680 (Bug#3233).
3681
c0e6d47d
JD
36822010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3683
d0cf45b7
JD
3684 * font.c (font_open_entity): Enable chache and call cached_font_ok
3685 for the driver if defined.
3686 (QCuser_spec): New symbol.
3687 (font_spec_from_name): Save name as user-spec.
3688 (font_load_for_lface): Keep user-spec instead of name.
3689 (font_open_by_name): Save name as user-spec.
3690 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3691 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3692
3693 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3694 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3695 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3696
3697 * font.h (struct font_driver): Add cached_font_ok.
3698
c0e6d47d
JD
3699 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3700
7c583cd8
JD
37012010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3702
3703 * xterm.c (x_new_font): Move code for setting rows/cols before
3704 resizing ...
ac146f82 3705 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3706
3707 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3708 (xg_frame_resized, xg_frame_set_char_size):
3709 Call xg_clear_under_internal_border.
7c583cd8 3710 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3711
03f77f0a
CY
37122010-01-05 Chong Yidong <cyd@stupidchicken.com>
3713
3714 * keyboard.c (read_key_sequence): Catch keyboard switch after
3715 making a new tty frame (Bug#5095).
3716
2a1ef5be
KH
37172010-01-05 Kenichi Handa <handa@m17n.org>
3718
3719 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3720
e3eb1dae
SM
37212010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3722
3723 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3724 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3725 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3726
777013f2
MA
37272010-01-03 Michael Albinus <michael.albinus@gmx.de>
3728
3729 * dbusbind.c (xd_add_watch): Improve debug message.
3730 (xd_remove_watch): Improve debug message. If DATA is the session
3731 bus, unset D-Bus session environment.
3732 (Fdbus_init_bus): Pass the bus as argument to
3733 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3734
8932b1c2
CY
37352010-01-01 Chong Yidong <cyd@stupidchicken.com>
3736
87231e2c
CY
3737 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3738
4801c5fa
CY
3739 * lread.c (syms_of_lread): Make it clearer that these are the
3740 names of loaded files (Bug#5068).
3741
8932b1c2
CY
3742 * eval.c (run_hook_with_args): Handle the case where the global
3743 value has the obsolete single-function form (Bug#5026).
3744
11e3c684
CY
37452009-12-27 Chong Yidong <cyd@stupidchicken.com>
3746
3747 * minibuf.c (Fall_completions): Minor optimization.
3748
5b28ce35
EZ
37492009-12-26 Eli Zaretskii <eliz@gnu.org>
3750
5ce6e4f4
JB
3751 * .gdbinit (pgx): Fix display of composite glyphs.
3752 Display cmp.from and cmp.to as well.
3753 (pitx): Fix last change.
5b28ce35 3754
bcffff46
KH
37552009-12-25 Kenichi Handa <handa@m17n.org>
3756
3757 * composite.h (composition_adjust_point): Update prototype.
3758
3759 * composite.c (composition_reseat_it): Don't make a composition
3760 spanning over point.
3761 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3762 composable characters.
3763 (composition_adjust_point): New arg NEW_PT. Callers changed.
3764
3765 * keyboard.c (command_loop_1): Force redisplay if the last point
3766 was within a composition.
3767 (adjust_point_for_property): Don't adjust point for automatic
3768 composition when called after buffer modification.
3769
3f670e9a
EZ
37702009-12-19 Eli Zaretskii <eliz@gnu.org>
3771
5ce6e4f4
JB
3772 * .gdbinit (pitx): Don't use enum names, use their values.
3773 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3774 (pgx): Don't use enum names, use their values.
3775 (pitmethod): New helper command.
3776 (pitx): Use it to display iteration method.
3777 (pgrowit): New command.
3778
ad903955
EZ
3779 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3780
3f670e9a
EZ
3781 Update dependencies in Makefile.in.
3782
3783 * Makefile.in (alloc.o): Depend on termhooks.h.
3784 (atimer.o): Depend on blockinput.h.
3785 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3786 and frame.h.
3787 (callint.o): Depend on systime.h, coding.h, and composite.h.
3788 (callproc.o): Depend on buffer.h.
3789 (casefiddle.o): Don't depend on charset.h.
3790 (casetab.o): Depend on character.h.
3791 (ccl.o): Depend on composite.h.
3792 (chartab.o): Depend on ccl.h.
3793 (cm.o): Depend on dispextern.h.
3794 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3795 (coding.o): Don't depend on $(INTERVALS_H).
3796 (composite.o): Don't depend on dispextern.h explicitly (it's in
3797 $(INTERVALS_H)). Depend on ccl.h.
3798 (data.o): Depend on systime.h, coding.h, composite.h,
3799 dispextern.h, font.h, and ccl.h.
3800 (dired.o): Depend on composite.h.
3801 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3802 composite.h (it's in $(INTERVALS_H)).
3803 (doc.o): Depend on systime.h, coding.h, and composite.h.
3804 (editfns.o): Don't depend explicitly on dispextern.h.
3805 (emacs.o): Depend on frame.h and coding.h.
3806 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3807 (fileio.o): Depend on frame.h and commands.h. Don't depend
3808 explicitly on dispextern.h.
3809 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3810 composite.h.
3811 (fns.o): Don't depend on termhooks.h.
3812 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3813 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3814 coding.h, $(INTERVALS_H), window.h, xterm.h.
3815 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3816 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3817 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3818 fontset.h, ccl.h, and ftfont.h.
3819 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3820 (gtkutil.o): Depend on dispextern.h and composite.h.
3821 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3822 termhooks.h, and ccl.h.
3823 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3824 (intervals.o): Depend on systime.h and coding.h.
3825 (keyboard.o): Depend on composite.h and coding.h.
3826 (keymap.o): Depend on coding.h and frame.h.
3827 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3828 (macros.o): Depend on systime.h, coding.h, and composite.h.
3829 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3830 and atimer.h.
3831 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3832 dispextern.h explicitly.
0b5397c2
SM
3833 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3834 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3835 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3836 (regex.o): Don't depend on charset.h.
3837 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3838 (search.o): Don't depend explicitly on composite.h.
3839 (sound.o): Depend on atimer.h and systime.h.
3840 (syntax.o): Don't depend explicitly on composite.h.
3841 (sysdep.o): Depend on coding.h and composite.h.
3842 (term.o): Depend on xterm.h and buffer.h.
3843 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3844 (textprop.o): Don't depend on dispextern.h explicitly.
3845 (undo.o): Depend on dispextern.h.
3846 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3847 dispextern.h and composite.h explicitly.
3848 (xdisp.o): Depend on ccl.h.
3849 (xfaces.o): Depend on coding.h and ccl.h.
3850 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3851 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3852 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3853 ftfont.h.
3854 (xgselect.o): New dependency.
3855 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3856 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3857 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3858 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3859 (xsmfns.o): Depend on frame.h and dispextern.h.
3860 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3861 sysselect.h.
3862
7a6f7fea
AS
38632009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3864
3865 * font.c (Fclear_font_cache): Pass correct cache argument to
3866 font_clear_cache.
3867
f4c21026
AS
38682009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3869
3870 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3871 twice.
3872
f7ab0997
CY
38732009-12-15 Chong Yidong <cyd@stupidchicken.com>
3874
3875 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3876 calling file-remote-p. Reported by Jim Meyering.
3877
fa8e045a
MA
38782009-12-15 Michael Albinus <michael.albinus@gmx.de>
3879
3880 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3881 avoid compiler warnings. (Bug #5217)
fa8e045a 3882
a63dba42
KH
38832009-12-14 Kenichi Handa <handa@m17n.org>
3884
3885 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3886 in 8-bit encoding.
3887
5ce6e4f4 38882009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3889
3890 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3891 tooltip windows.
3892
223e5fc6
JD
38932009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3894
36acb2a7
JD
3895 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3896 Xatom_net_window_type.
3897
3898 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3899 Xatom_net_window_type.
3900
b8f00677
JD
3901 * xterm.c (my_log_handler): New function.
3902 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3903 so we can filter out buggy messages. (Bug #5120).
b8f00677 3904
e5f0bc9a
JD
3905 * xterm.c (xg_scroll_callback): Parameter list changed,
3906 use parameter GtkScrollType to determine scroll/line/page.
3907 Only allow dragging if a button < 4 is grabbed (bug #5177).
3908 (xg_end_scroll_callback): New function.
3909 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3910 xg_create_scroll_bar.
3911
3912 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3913 (scroll_end_callback): Remove.
3914 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3915 button-release-event. Replace value-changed event with change-value,
3916 bug #5177,
3917 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3918 bug #5177.
3919
3920 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3921 (xg_create_scroll_bar): Add GCallback end_callback.
3922
223e5fc6
JD
3923 * xftfont.c (QClcdfilter): New variable.
3924 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3925 (syms_of_xftfont): Initialize QClcdfilter.
3926
3c055b77
JD
39272009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3928
3929 * xsettings.c (struct xsettings): Add member seen.
3930 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3931 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3932 (apply_xft_settings): Only update Xft settings with what member seen
3933 indicates as new.
3934
05fe33ff
EZ
39352009-12-12 Eli Zaretskii <eliz@gnu.org>
3936
3937 * dispextern.h (struct text_pos): Use EMACS_INT;
3938 (struct glyph): Use EMACS_INT for charpos.
3939 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3940 region_beg_charpos, region_end_charpos,
3941 redisplay_end_trigger_charpos, and also for
3942 iterator_stack_entry.end_charpos and
3943 iterator_stack_entry.stop_charpos.
3944
e8d7886a
JD
39452009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3946
5ce6e4f4 3947 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3948 (xg_create_scroll_bar): Call scroll_end_callback on button release
3949 event (bug #5177).
3950 (xg_event_is_for_scrollbar): != replaced with ==.
3951
d0db2ec8
KH
39522009-12-12 Kenichi Handa <handa@m17n.org>
3953
3954 * ftfont.c (struct ftfont_info): New member matrix.
3955 (ftfont_open): Setup xftfont_info->matrix.
3956 (MFLTFontFT): New member matrix.
3957 (FLOOR, CEIL, ROUND): New macros.
3958 (ftfont_get_metrics): Handle matrix transformation.
3959 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3960
3961 * xftfont.c (struct xftfont_info): New member matrix.
3962 (xftfont_open): Setup xftfont_info->matrix.
3963
39642009-12-10 Kenichi Handa <handa@m17n.org>
3965
3966 * xdisp.c (append_space_for_newline): Consider face-remapping.
3967
2cc7b62f
AS
39682009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3969
b87dd913
AS
3970 * xsettings.c: Include "keyboard.h".
3971
eba5eb94
AS
3972 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3973
2cc7b62f
AS
3974 Fix implicit function declarations.
3975 * cmds.c: Include "frame.h".
3976 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3977 * frame.h: Move declaration of delete_frame outside of
3978 HAVE_WINDOW_SYSTEM.
3979
a4ef73c8
CY
39802009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3981
3982 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3983
3984 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3985 GTK builds.
3986
944a300c
AS
39872009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3988
3989 * unexelf.c (unexec): Don't search for .data twice.
3990
022eef62
CY
39912009-12-05 Chong Yidong <cyd@stupidchicken.com>
3992
426ac949
CY
3993 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3994 if push failed.
3995 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3996 of push_display_prop (Bug#5000).
3997
022eef62
CY
3998 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3999 value of font_list_entities (Bug#5085).
4000
be95bee9
JB
40012009-12-04 Juanma Barranquero <lekktu@gmail.com>
4002
4003 Fix `string-to-number' to deal consistently with integers and floats.
4004 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4005 trailing characters, not just whitespace.
4006 (read1): Pass new arg 0 to keep old behavior.
4007 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4008 trailing chars, as it is already done for integers. Doc fixes.
4009 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4010
24c2d7ce
EZ
40112009-12-04 Eli Zaretskii <eliz@gnu.org>
4012
0b5397c2
SM
4013 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4014 Delete unused enumeration value.
24c2d7ce 4015
7e694795
EZ
40162009-12-03 Eli Zaretskii <eliz@gnu.org>
4017
4018 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4019
84b31826
SM
40202009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4021
4022 * process.c (Fmake_network_process): Fix up the tests for
4023 "connectionless socket", so they DTRT for seqpacket sockets as well.
4024
f00c449b
SM
40252009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4026
4027 * process.c (Qseqpacket): New symbol.
4028 (HAVE_SEQPACKET): New macro.
4029 (Fmake_network_process): Accept new :type `seqpacket'.
4030 (init_process): Add `seqpacket' feature when applicable.
4031 (syms_of_process): Initialize Qseqpacket.
4032
8096a0ff
YM
40332009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4034
4035 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4036 if entity is Qnil.
4037
3e0de07f
SM
40382009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4039
4040 * print.c (print_preprocess): Preprocess the key_and_value table of
4041 hashtables, even tho they're "hidden" (bug#5082).
4042
abeafb2a
JD
40432009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4044
4045 * frame.c (frame_make_pointer_invisible)
4046 (frame_make_pointer_visible): Declare f before statements.
4047
4bf47195
EZ
40482009-11-28 Eli Zaretskii <eliz@gnu.org>
4049
4050 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4051 omitted dependencies on lisp.h.
4052
c525b3f2
JD
40532009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4054
ece2d4ed
JD
4055 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4056 is NULL.
4057
4058 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4059
4060 * frame.c (frame_make_pointer_invisible)
3e0de07f 4061 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4062 frame.
4063
c525b3f2
JD
4064 * search.c (simple_search): Remove warning by making *p const.
4065
2f00e299
DN
40662009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4067
4068 * xdisp.c (power_letter): Remove duplicate const.
4069
084b049b
JD
40702009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4071
a1fadc6f
JD
4072 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4073
5ce6e4f4 4074 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4075 defaults (bug #5025).
4076
28259cac
SM
40772009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4078
4079 * insdel.c (adjust_markers_for_delete): Move it in the
4080 right direction! (bug#4803)
4081
e8e14166
YM
40822009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4083
4084 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4085
4086 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4087
86677b58
GM
40882009-11-24 Glenn Morris <rgm@gnu.org>
4089
4090 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4091
581e51e8
JD
40922009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4093
cfc86c7a
JD
4094 * Makefile.in: Must create deps for ecrt0.o in its rule.
4095
581e51e8
JD
4096 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4097 because that is what Gtk+ font dialog understands.
4098
4099 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4100 of Fcopy_sequence.
4101 (font_open_by_name): Put name given into QCname for font-object returned.
4102
4103 * frame.c (x_set_font): Save original font name as frame parameter
4104 font-parameter.
4105
4106 * xsettings.c (set_default_xft_settings): New function.
4107 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4108 is found.
4109
8b264ecb
AS
41102009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4111
4112 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4113 searching backwards through multibyte buffer.
4114
872870b2
JD
41152009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4116
4117 * xterm.c: #include xgselect.h.
4118 (x_initialize): Call xgselect_initialize.
4119
4120 * xsettings.c (something_changedCB): C++ comments => C comments.
4121 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4122 does that now.
4123
4124 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4125 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4126 (scroll_bar_button_cb): Remove.
5ce6e4f4 4127 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4128 event.
4129 (xg_create_scroll_bar): Don't bind button-press-event and
4130 button-release-event.
4131
4132 * process.c: Include xgselect.h if defined (USE_GTK) ||
4133 defined (HAVE_GCONF).
4134 (wait_reading_process_output): Call xg_select for the same condition.
4135
4136 * xgselect.c (xg_select): New function to better integrate with
4137 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4138
4139 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4140
4141 * Makefile.in (XOBJ): Add xgselect.o.
4142
62a6e103
AS
41432009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4144
0b5397c2
SM
4145 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4146 Remove ignored second argument. All callers changed.
62a6e103
AS
4147 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4148 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4149 * xdisp.c (string_char_and_length): Likewise.
4150
b0ca0f33
DN
41512009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4152
4153 * xterm.c (x_new_font):
4154 * print.c (print_object):
4155 * cmds.c (Fself_insert_command): Move declarations before statements.
4156
dd5a6279
CY
41572009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4158
4159 * s/cygwin.h: Remove unneeded linker flags.
4160
4a8e097d
JD
41612009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4162
0d1d0d26
JD
4163 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4164
4165 * xsettings.h: Declare xsettings_get_system_font.
4166
4167 * xsettings.c (xsettings_get_system_font): New function.
4168 (init_gconf): No use initiating gconf unless we have Xft also.
4169 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4170 HAVE_GCONF.
4171
4a8e097d
JD
4172 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4173 add a blank entry so it doesn't collapse into nothing.
4174
8ab1650e
SM
41752009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4176
4177 * lread.c (Funintern): Comment out last change.
4178
82c602f0
RS
41792009-11-19 Richard Stallman <rms@gnu.org>
4180
4181 * lread.c (Funintern): Error if symbol is t or nil.
4182
87e32266
SM
41832009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4184
4185 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4186 representation of Lisp integers.
4187 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4188
1b9ac145
AS
41892009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4190
4191 * lisp.h: Remove declaration of Ffont_get_system_font.
4192 * xfns.c: Move include of "xsettings.h".
4193 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4194
dfb3c4c6
JD
41952009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4196
87e32266
SM
4197 * xsettings.c (something_changedCB, Ffont_get_system_font):
4198 Check use_system_font.
dfb3c4c6
JD
4199 (syms_of_xsettings): DEFVAR font-use-system-font.
4200
9370c1d8
AS
42012009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4202
25fe851a
AS
4203 * xfns.c (x_default_font_parameter): Remove dead assignment.
4204
9370c1d8
AS
4205 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4206
637fa988
JD
42072009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4208
87e32266 4209 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4210 not have FC_LCD_*. #define them if not there.
a6eb20d8 4211
87e32266 4212 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4213
637fa988
JD
4214 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4215
4216 * xterm.c (handle_one_xevent): Call xft_settings_event for
4217 ClientMessage, PropertyNotify and DestroyNotify.
4218 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4219 Call xsettings_initialize.
4220
4221 * xftfont.c (xftfont_fix_match): New function.
4222 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4223 Call xftfont_fix_match after XftFontMatch.
4224
4225 * xfont.c (xfont_driver): Initialize all members.
4226
87e32266
SM
4227 * xfns.c (x_default_font_parameter):
4228 Try font from Ffont_get_system_font.
637fa988
JD
4229 Do not get font from x_default_parameter if we got one from
4230 Ffont_get_system_font.
87e32266 4231 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4232
4233 * w32font.c (w32font_driver): Initialize all members.
4234
4235 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4236
4237 * lisp.h: Declare syms_of_xsettings.
4238
87e32266
SM
4239 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4240 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4241
4242 * ftfont.c (ftfont_filter_properties): New function.
4243
4244 * frame.c (x_set_font): Remove unused variable lval.
4245
87e32266 4246 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4247
4248 * font.c (font_put_extra): Don't return if val is nil, it means
4249 boolean option is off.
4250 (font_parse_fcname): Collect all extra properties in extra_props
4251 and call filter_properties for all drivers with extra_props and
4252 font as parameter.
87e32266
SM
4253 (font_open_entity): Do not use cache, it does not pick up new
4254 fontconfig settings like hinting.
637fa988
JD
4255 (font_load_for_lface): If spec had a name in it, store it in entity.
4256
a73f9c9d 4257 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4258
4259 * config.in: HAVE_GCONF is new.
4260
4261 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4262 xsettings.o is new.
4263
5a942932
KH
42642009-11-17 Kenichi Handa <handa@m17n.org>
4265
4266 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4267 back to the default font in case that no suitable font is found.
4268
b7c7a4d1
SM
42692009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4270
4271 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4272 Suggested by Chad Brown <yandros@mit.edu>.
4273 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4274
072f1e39
JD
42752009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4276
4277 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4278
5d1e70a2
AS
42792009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4280
87e32266 4281 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4282
a53cfbe5
JD
42832009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4284
473a99b7
JD
4285 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4286 has a parent.
4287
a53cfbe5 4288 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4289 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4290
4291 * config.in: Generated (AUTO_DEPEND).
4292
f04bb9b2
MA
42932009-11-13 Michael Albinus <michael.albinus@gmx.de>
4294
b7c7a4d1 4295 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4296 Vdbus_registered_functions_table, because it contains also
4297 properties. Fix docstring.
b7c7a4d1 4298 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4299
8f11f7ec
SM
43002009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4301
4302 * alloc.c (mark_object): Don't reprocess marked strings.
4303 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4304 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4305
8a605fe8
KH
43062009-11-13 Kenichi Handa <handa@m17n.org>
4307
8f11f7ec 4308 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4309 semantics of Vword_combining_categories.
4310 (Vword_combining_categories): Describe the slight change of the
4311 semantics.
4312
241c4680
EZ
43132009-11-13 Eli Zaretskii <eliz@gnu.org>
4314
4315 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4316
4317 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4318
5d58e44c
SM
43192009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4320
4321 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4322
5e13f9d3
JB
43232009-11-12 Juanma Barranquero <lekktu@gmail.com>
4324
4325 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4326
cf54c754
DR
43272009-11-11 David Reitter <david.reitter@gmail.com>
4328
4329 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4330 variables to fix 2009-11-09 change.
4331
a4ada374
DN
43322009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4333
91433552
DN
4334 * process.c (ifflag_def): Make flag_sym constant.
4335 (Fnetwork_interface_info): Use a constant pointer.
4336 (ifflag_table):
4337 * xfns.c (cursor_bits):
4338 * xdisp.c (power_letter):
4339 * termcap.c (speeds, esctab):
4340 * sysdep.c (baud_convert):
4341 * keyboard.c (lispy_accent_codes, modifier_names):
4342 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4343 (jpeg_format, tiff_format, gif_format, svg_format)
4344 (interlace_start, interlace_increment, gs_format):
4345 * gtkutil.c (separator_names):
4346 * fringe.c (swap_nibble):
4347 * fns.c (base64_value_to_char, base64_char_to_value):
4348 * fileio.c (make_temp_name_tbl):
4349 * coding.c (suffixes): Make constant.
4350
f4265f6c
DN
4351 * frame.c (make_initial_frame):
4352 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4353 build_string.
4354 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4355
04420943
DN
4356 * s/freebsd.h:
4357 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4358
0a5d24ae
DN
4359 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4360 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4361
a4ada374
DN
4362 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4363 * xterm.c (syms_of_xterm):
4364 * xfaces.c (syms_of_xfaces):
4365 * xdisp.c (syms_of_xdisp):
4366 * lread.c (syms_of_lread):
4367 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4368 build_string.
91433552 4369
a4ada374
DN
4370 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4371
af98fc7f
SM
43722009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4373
8ab1650e 4374 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4375
e90292a9
JD
43762009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4377
4378 * keyboard.h: Declare timer_check.
4379
4380 * keyboard.c (timer_check_2): New function that does what the old
4381 timer_check did.
4382 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4383 returned, i.e. don't return -1 with timers pending.
4384
4385 * process.c: Remove extern declaration of timer_check.
4386
4387 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4388 even if timer_check returned -1.
4389
af98fc7f
SM
4390 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4391 xg_dialog_data.
e90292a9
JD
4392 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4393 the event loop.
4394 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4395 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4396 Destroy the dialog after xg_dialog_run.
4397
045b83c0
SM
43982009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4399
4400 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4401
1fb99a3a
JD
44022009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4403
4404 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4405
04e452cb
JB
44062009-11-09 Juanma Barranquero <lekktu@gmail.com>
4407
4408 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4409
ef7417fd
SM
44102009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4411
4412 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4413 w32menu.c, and nsmenu.m.
4414 Simplify the obsolete case where position is nil.
4415 (cleanup_popup_menu): New function, moved from nsmenu.m.
4416 (struct skp): Remove slot `notreal'.
4417 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4418 adjust callers.
4419 (single_menu_item): Adjust call to parse_menu_item.
4420 (syms_of_menu): Defsubr x-popup-menu.
4421 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4422 (keymap_panes): Don't export any more.
4423 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4424 (xmenu_show): Declare.
4425 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4426 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4427 * keyboard.h (parse_menu_item): Update declaration.
4428 * xmenu.c (Fx_popup_menu): Remove.
4429 (syms_of_xmenu): Don't defsubr x-popup-menu.
4430 * w32menu.c (Fx_popup_menu): Remove.
4431 (syms_of_w32menu): Don't defsubr x-popup-menu.
4432 * nsmenu.m (cleanup_popup_menu): Remove.
4433 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4434 moved to menu.c's Fx_popup_menu.
4435 (Fx_popup_menu): Remove.
4436 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4437 menu_items (it's done in menu.c already).
4438
424d6179
SM
44392009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4440
4441 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4442 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4443
c0df13a6 44442009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4445
4446 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4447 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4448 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4449 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4450
2de9f71c
SM
44512009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4452
4453 Let integers use up 2 tags to give them one extra bit and thus double
4454 their range.
4455 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4456 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4457 New macros.
4458 (enum Lisp_Type): Use them. Give explicit values.
4459 (Lisp_Type_Limit): Remove.
4460 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4461 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4462 Pay attention to USE_2_TAGS_FOR_INTS.
4463 (INTEGERP): Use LISP_INT_TAG_P.
4464 * fns.c (internal_equal): Simplify the default case.
4465 (sxhash): Use case_Lisp_Int.
4466 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4467 any more.
4468 (Ftype_of): Use case_Lisp_Int.
4469 (store_symval_forwarding): Take into account the fact that Ints can
4470 now have more than one tag.
4471 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4472 buffer_slot_type_mismatch):
4473 * xfaces.c (face_attr_equal_p):
4474 * print.c (print_object):
4475 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4476 Use case_Lisp_Int.
4477
323637a2
EZ
44782009-11-06 Eli Zaretskii <eliz@gnu.org>
4479
7ac65b38
EZ
4480 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4481
323637a2
EZ
4482 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4483 warning.
4484
e511451f
JD
44852009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4486
4487 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4488
4489 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4490
4491 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4492 ButtonPressRelease and MotionNotify (bug#4870).
4493
5e2327cf
DN
44942009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4495
5adc433e
DN
4496 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4497
d67b4f80
DN
4498 * xterm.c (syms_of_xterm):
4499 * xselect.c (syms_of_xselect):
4500 * xmenu.c (syms_of_xmenu):
4501 * xfns.c (syms_of_xfns):
4502 * xfaces.c (syms_of_xfaces):
4503 * xdisp.c (syms_of_xdisp):
4504 * window.c (syms_of_window):
4505 * w32fns.c (syms_of_w32fns):
4506 * undo.c (syms_of_undo):
4507 * textprop.c (syms_of_textprop):
4508 * terminal.c (syms_of_terminal):
4509 * syntax.c (syms_of_syntax):
4510 * sound.c (syms_of_sound):
4511 * search.c (syms_of_search):
4512 * print.c (syms_of_print):
4513 * minibuf.c (syms_of_minibuf):
4514 * macros.c (syms_of_macros):
4515 * keymap.c (syms_of_keymap, initial_define_key)
4516 (initial_define_lispy_key):
4517 * keyboard.c (syms_of_keyboard):
4518 * insdel.c (syms_of_insdel):
4519 * image.c (syms_of_image):
4520 * fringe.c (syms_of_fringe):
4521 * frame.c (syms_of_frame):
4522 * fontset.c (syms_of_fontset):
4523 * fns.c (syms_of_fns):
4524 * fns.c (syms_of_fns):
4525 * fileio.c (syms_of_fileio):
4526 * fileio.c (syms_of_fileio):
4527 * eval.c (syms_of_eval):
4528 * doc.c (syms_of_doc):
4529 * dispnew.c (syms_of_display):
4530 * dired.c (syms_of_dired):
4531 * dbusbind.c (syms_of_dbusbind):
4532 * data.c (syms_of_data):
4533 * composite.c (syms_of_composite):
4534 * coding.c (syms_of_coding):
4535 * cmds.c (syms_of_cmds):
4536 * charset.c (define_charset_internal, syms_of_character):
4537 * ccl.c (syms_of_ccl):
4538 * category.c (syms_of_category, init_category_once):
4539 * casetab.c (syms_of_casetab):
4540 * casefiddle.c (syms_of_casefiddle):
4541 * callint.c (syms_of_callint):
4542 * bytecode.c (syms_of_bytecode):
4543 * buffer.c (keys_of_buffer, syms_of_buffer):
4544 * alloc.c (syms_of_alloc):
4545 * process.c (syms_of_process, init_process):
4546 * lread.c (syms_of_lread, init_obarray):
4547 * font.c (build_style_table):
4548 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4549 intern_c_string, calls to make_pure_string with
4550 make_pure_c_string. Use pure_cons instead of Fcons.
4551
5e2327cf
DN
4552 * process.c (socket_options): Make it const.
4553 (set_socket_option, init_process): Use a const pointer.
4554
4555 * lread.c (intern_c_string): New function.
4556 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4557 (defvar_int): Uset it. Make the name const char*.
4558
4559 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4560 (defvar_int): Update prototypes.
4561 (DEFUN, EXFUN): Support for prototypes is now required.
4562 (intern_c_string): New prototype.
4563 (struct Lisp_Subr): Make symbol_name constant.
4564
4565 * font.c (struct table_entry): Remove unused member. Make NAMES
4566 constant.
4567 (weight_table, slant_table, width_table): Make constant.
4568
4569 * emacs.c (struct standard_args): Make name and longname constant.
4570
4571 * character.h (DEFSYM): Use intern_c_string.
4572
a56eaaef
DN
45732009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4574
4575 * alloc.c (make_pure_c_string): New function.
4576
4577 * eval.c (Fautoload): Purecopy all arguments.
4578
f6a07420
KH
45792009-11-05 Kenichi Handa <handa@m17n.org>
4580
4581 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4582 the buffer in case of replace.
4583
5d28d4b1
DN
45842009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4585
4586 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4587
b349d111
SM
45882009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4589
d528b1ce
SM
4590 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4591 when applicable (bug#4851).
4592
b349d111
SM
4593 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4594 (P_): Support for prototypes is now required.
4595
c38eb027
CY
45962009-10-31 Chong Yidong <cyd@stupidchicken.com>
4597
4598 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4599 (Bug#4827).
4600
0405f8d9
EZ
46012009-10-30 Eli Zaretskii <eliz@gnu.org>
4602
d528b1ce 4603 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4604
ca0a881a
DN
46052009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4606
4607 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4608
d528b1ce
SM
4609 * lread.c (Fload): Purecopy the file name when building
4610 Vpreloaded_file_list.
ca0a881a 4611
47e0e0e4
JR
46122009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4613
4614 * w32fns.c (syms_of_w32fns): Change default value of
4615 w32-scroll-lock-modifier to nil. (Bug#2827)
4616
057bce6f
JB
46172009-10-26 Juanma Barranquero <lekktu@gmail.com>
4618
782a943e 4619 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4620
242bc74c
AS
46212009-10-26 Andreas Schwab <schwab@redhat.com>
4622
4623 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4624
522d013a
JB
46252009-10-26 Juanma Barranquero <lekktu@gmail.com>
4626
4627 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4628 For delta < 0, skip check that only makes sense when the mini-window
4629 is going to be enlarged. (Bug#4534)
4630
18060980
CY
46312009-10-25 Chong Yidong <cyd@stupidchicken.com>
4632
4633 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4634 string in menu maps (Bug#4471).
4635
fec8f0fe
CY
46362009-10-24 Chong Yidong <cyd@stupidchicken.com>
4637
4638 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4639 FRAME_NS_VIEW on terminal frames (Bug#4765).
4640
10d66ec0
AS
46412009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4642
1cae01f7
AS
4643 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4644 DBUS_TYPE_UINTnn separately to get proper sign extension.
4645
58a12889
AS
4646 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4647 can properly handle unsigned types.
d528b1ce 4648 (make_uid, make_gid): Remove.
58a12889 4649
987c9327
AS
4650 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4651 types again.
4652
522d013a 4653 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4654 (system_process_attributes): Likewise.
4655
905a9ed3
DN
46562009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4657
4658 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4659
4660 * eval.c (Fautoload): Purecopy the filename. Simplify.
4661
4662 * category.c (Fdefine_category): Purecopy docstring.
4663
a599b3e8
AS
46642009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4665
7b792fc9
AS
4666 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4667
a599b3e8
AS
4668 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4669
b35ac83e
CY
46702009-10-23 Chong Yidong <cyd@stupidchicken.com>
4671
4672 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4673 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4674 (Bug#4775).
4675
e8903e00
SM
46762009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4677
4678 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4679 (init_fileio_once):
4680 * lisp.h (init_fileio_once): Remove.
4681 * emacs.c (main): Don't call init_fileio_once.
4682
8f43cbf3
DN
46832009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4684
4685 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4686
26898943
AS
46872009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4688
4689 * doprnt.c (doprnt): Fix overflow check.
4690
5c646d5a
JD
46912009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4692
3132a7ea
JD
4693 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4694
5c646d5a
JD
4695 * xterm.h (x_wait_for_event): Declare it.
4696
4697 * xterm.c (pending_event_wait): New variable.
4698 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4699 see pending_event_wait.eventtype.
4700 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4701 (x_new_font): Call change_frame_size with new rows/columns before we
4702 try to resize the frame.
5c646d5a 4703 (x_wait_for_event): New function.
d528b1ce
SM
4704 (x_set_window_size_1): Don't change gravity unless change_gravity
4705 is set.
5c646d5a
JD
4706 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4707 don't change frame size, instead wait for the ConfigureNotify.
4708 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4709 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4710 (x_initialize): Initialize pending_event_wait.
4711
4712 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4713 size.
4714
4715 * widget.c (EmacsFrameSetValues): Add comment.
4716 (EmacsFrameSetCharSize): Just call x_set_window_size.
4717
4718 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4719 x_wait_for_event.
d528b1ce 4720 (flush_and_sync): Remove again.
5c646d5a
JD
4721 (xg_get_font_name): Suggest monospace if no previous font is known.
4722
e9c1637d
SM
47232009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4724
4725 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4726 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4727
5a72cccb
YM
47282009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4729
4730 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4731 processing pending events when event is filtered for input method.
ab04798f 4732 (Bug#3681)
5a72cccb 4733
2629aa37
JB
47342009-10-20 Juanma Barranquero <lekktu@gmail.com>
4735
4736 * fns.c: Add #endif accidentally removed in previous change.
4737
c3417a74
DN
47382009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4739
4740 * fns.c: Remove code for unsupported system: MAC_OS.
4741 * image.c: Likewise. Include setjmp.h.
4742
9685cef2
JD
47432009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4744
4745 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4746 pixel -1 (bug #4742).
4747
d7306fe6
DN
47482009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4749
019d2c4c
DN
4750 * process.c (create_pty): Remove conditionals for no longer
4751 supported systems: UNIPLUS and RTU.
4752
ee6bacd4
DN
4753 * xterm.c:
4754 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4755
d7306fe6
DN
4756 * alloc.c: Do not define struct catchtag.
4757 * eval.c: Move struct catchtag definition ...
4758 * lisp.h: ... here.
4759
4760 * image.c: Move png.h #include earlier to avoid warnings.
4761
4762 * xterm.c:
4763 * xsmfns.c:
4764 * xselect.c:
4765 * xrdb.c:
4766 * xmenu.c:
4767 * xftfont.c:
4768 * xfont.c:
4769 * xfns.c:
4770 * xfaces.c:
4771 * xdisp.c:
4772 * window.c:
4773 * widget.c:
4774 * w32xfns.c:
4775 * w32uniscribe.c:
4776 * w32term.c:
4777 * w32select.c:
4778 * w32reg.c:
4779 * w32proc.c:
4780 * w32menu.c:
4781 * w32inevt.c:
4782 * w32heap.c:
4783 * w32font.c:
4784 * w32fns.c:
4785 * w32console.c:
4786 * w32.c:
4787 * w16select.c:
4788 * vm-limit.c:
4789 * unexsol.c:
4790 * unexec.c:
4791 * unexcw.c:
4792 * unexaix.c:
4793 * undo.c:
4794 * tparam.c:
4795 * textprop.c:
4796 * terminfo.c:
4797 * terminal.c:
4798 * termcap.c:
4799 * term.c:
4800 * syntax.c:
4801 * sound.c:
4802 * sheap.c:
4803 * search.c:
4804 * scroll.c:
4805 * region-cache.c:
4806 * regex.c:
4807 * ralloc.c:
4808 * process.c:
4809 * print.c:
b024548b
DN
4810 * nsterm.m:
4811 * nsselect.m:
4812 * nsmenu.m:
4813 * nsimage.m:
4814 * nsfont.m:
4815 * nsfns.m:
d7306fe6
DN
4816 * msdos.c:
4817 * minibuf.c:
4818 * menu.c:
4819 * marker.c:
4820 * macros.c:
4821 * keymap.c:
4822 * keyboard.c:
4823 * intervals.c:
4824 * insdel.c:
4825 * indent.c:
4826 * gtkutil.c:
4827 * ftxfont.c:
4828 * ftfont.c:
4829 * fringe.c:
4830 * frame.c:
4831 * fontset.c:
4832 * font.c:
4833 * fns.c:
4834 * floatfns.c:
4835 * filelock.c:
4836 * fileio.c:
4837 * emacs.c:
4838 * editfns.c:
4839 * dosfns.c:
4840 * doprnt.c:
4841 * doc.c:
4842 * dispnew.c:
4843 * dired.c:
4844 * dbusbind.c:
4845 * data.c:
4846 * composite.c:
4847 * coding.c:
4848 * cmds.c:
4849 * cm.c:
4850 * chartab.c:
4851 * charset.c:
4852 * character.c:
4853 * ccl.c:
4854 * category.c:
4855 * casetab.c:
4856 * casefiddle.c:
4857 * callproc.c:
4858 * callint.c:
4859 * bytecode.c:
4860 * buffer.c:
4861 * atimer.c: Include setjmp.h. (Bug#4643)
4862
fd5f21e6
SM
48632009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4864
4c0354d7
SM
4865 Remove leftover table unibyte_to_multibyte_table.
4866 * character.c (unibyte_to_multibyte_table): Remove.
4867 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4868 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4869 * character.h (UNIBYTE_TO_CHAR): New macro.
4870 (MAKE_CHAR_MULTIBYTE): Use it.
4871 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4872 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4873 (message_dolog, set_message_1):
4874 * search.c (Freplace_match):
4875 * editfns.c (Fcompare_buffer_substrings):
4876 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4877 (concat):
4878 * insdel.c (copy_text, count_size_as_multibyte):
4879 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4880 * term.c (produce_glyphs):
4881 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4882 * regex.c (RE_CHAR_TO_MULTIBYTE):
4883 * cmds.c (internal_self_insert):
4884 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4885
fd5f21e6
SM
4886 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4887
4418646e
DN
48882009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4889
4890 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4891
35f5c1d2
JB
48922009-10-16 Juanma Barranquero <lekktu@gmail.com>
4893
4894 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4895
a0cd8f6b
AR
48962009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4897
4898 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4899 still needed under Tiger.
4900
4901 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4902
4903 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4904 __Apple__.
4905
4906 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4907
01a8d3fa
KH
49082009-10-15 Kenichi Handa <handa@m17n.org>
4909
4910 * print.c (print_object): Escape a symbol like "2E10" too.
4911
bf6c75c9 49122009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4913
4914 Cleanups and changes for 64-bit compile under Snow Leopard.
4915 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4916
4917 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4918
c5959062 4919 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4920 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4921 cast argument.
4922 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4923 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4924
4925 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4926
4927 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4928 where appropriate.
4929
4930 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4931 where appropriate.
6e4780c5
JB
4932 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4933 Use stringWithUTF8String.
bf6c75c9
AR
4934 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4935
6e4780c5
JB
4936 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4937 Add formal protocol mention to inheritance.
bf6c75c9
AR
4938 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4939
6e4780c5
JB
4940 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4941 Fix printf format.
bf6c75c9
AR
4942 (ns_query_color): Use CGFloat where appropriate.
4943 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4944 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4945 argument.
4946
3d87f118
AR
4947 * config.in (NS_HAVE_NSINTEGER): Drop.
4948
a95c8102
AR
4949 * dbusbind.c (dbus-method-return-internal)
4950 (dbus-method-error-internal): Use long format in printf, and cast
4951 argument.
4952
4953 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4954 in printf, and cast argument.
4955
6873acca 4956 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4957 cast argument.
4958
9ec6f100
GM
49592009-10-11 Glenn Morris <rgm@gnu.org>
4960
4961 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4962
5be883cd
JD
49632009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4964
4965 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4966 menu bar with a small width so it doesn't enlarge the frame.
4967
d7a39b51
JB
49682009-10-08 Juanma Barranquero <lekktu@gmail.com>
4969
4970 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4971
0c2b6f8e
GM
49722009-10-06 Glenn Morris <rgm@gnu.org>
4973
4974 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4975 SOME_MACHINE_LISP (this enters indirectly via DOC).
4976
e02131a2
EZ
49772009-10-05 Eli Zaretskii <eliz@gnu.org>
4978
4979 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4980
b4744254
EZ
49812009-10-04 Eli Zaretskii <eliz@gnu.org>
4982
4983 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4984 Doc fix.
4985
dbf64827
JB
49862009-10-03 Martin Rudalics <rudalics@gmx.at>
4987
4988 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4989
e9a0aef8
MA
49902009-10-02 Michael Albinus <michael.albinus@gmx.de>
4991
d528b1ce 4992 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4993 used anymore outside fileio.c.
4994
4995 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4996
64eb2b56
JB
49972009-10-01 Juanma Barranquero <lekktu@gmail.com>
4998
4999 * lisp.h (Qdelete_directory_internal):
5000 Declare, instead of Qdelete_directory.
5001
5002 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5003
9d28c33e
SM
50042009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5005
5006 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5007
9d8f3bd9
MA
50082009-10-01 Michael Albinus <michael.albinus@gmx.de>
5009
9d28c33e 5010 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5011 Fdelete_directory. It is not a command anymore. It has no file
5012 name handler.
5013
9694740b
SM
50142009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5015
5016 * xdisp.c (get_next_display_element): Use an enum in last change.
5017
748e162f
KH
50182009-09-28 Kenichi Handa <handa@m17n.org>
5019
9694740b 5020 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5021 unibyte_display_via_language_environment in handling
5022 Vnobreak_char_display.
5023
17efd58d
AR
50242009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5025
5026 * nsterm.h (ns_app_name): New extern variable.
5027
5028 * nsterm.m (ns_app_name): New variable.
5029 (ns_term_init): Set and use it.
5030 (ns_term_shutdown): Use it.
5031
5032 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5033 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5034
5035 * nsfns.m (ns_set_name_iconic, ns_set_name)
5036 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5037 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5038
9694740b
SM
5039 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5040 Remove double-casting in client_data comparison.
31c2d412 5041
3208cb35
YM
50422009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5043
5044 * keyboard.c (make_lispy_event): Remember last wheel direction.
5045 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5046
b7d552d6
GM
50472009-09-26 Glenn Morris <rgm@gnu.org>
5048
5049 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5050 internal.elc. Add term/pc-win.elc.
5051 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5052 term/x-win.elc.
5053 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5054 term/w32-win.elc.
5055 (NS_SUPPORT): New.
5056 (lisp): Add NS_SUPPORT.
5057 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5058
4ff670a8
DR
50592009-09-25 David Reitter <david.reitter@gmail.com>
5060
5061 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5062 on Mac OS X 10.6+ (bug#4513).
5063
feabfb6c
JB
50642009-09-24 Juanma Barranquero <lekktu@gmail.com>
5065
5066 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5067 some parts of Emacs code (like font selection) don't grok them.
5068 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5069
de59072a
AS
50702009-09-24 Andreas Schwab <schwab@redhat.com>
5071
5072 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5073
a489517b
JB
50742009-09-24 Juanma Barranquero <lekktu@gmail.com>
5075
5076 * dired.c (Fdirectory_files): Fix typo in docstring.
5077
0592970c
AR
50782009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5079
5080 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5081 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5082 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5083 under GNUstep.
5084 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5085
5086 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5087 glyph advancement.
5088
48e8a88b
AR
50892009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5090
5091 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5092 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5093
5094 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5095 deleted (bug #4492).
5096
e14f0a78
AR
5097 * nsfont.m (Vns_reg_to_script): New lisp variable.
5098 (syms_of_nsfont): Declare it.
5099 (ns_registry_to_script): New function.
5100 (ns_get_req_script): Call it.
5101 (ns_findfonts): Don't give up on non-unicode registry.
5102
5103 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5104
5b650faa
SM
51052009-09-20 Tom Tromey <tromey@redhat.com>
5106
5107 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5108 batch mode (bug#4228).
5109
a489517b 51102009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5111
5112 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5113 carefully. (Bug #4339)
0bae4e09 5114
fcfe06f3
CY
51152009-09-18 Chong Yidong <cyd@stupidchicken.com>
5116
d798ba87 5117 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5118
31642728
AR
51192009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5120
5121 * emacs.c (inhibit_x_resources): Update doc string for NS.
5122 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5123 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5124
5125 * nsterm.h (ns_no_defaults): Remove.
5126
5127 * nsterm.m (ns_no_defaults): Remove.
5128 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5129 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5130 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5131 don't update the NSWindow itself.
5132 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5133 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5134
5135 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5136 ns_use_qd_smoothing.
5137
5138 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5139 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5140 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5141 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5142
8686ac71
JB
51432009-09-17 Juanma Barranquero <lekktu@gmail.com>
5144
5145 * emacs.c (inhibit_x_resources): New variable.
5146 (main) [HAVE_NS]: Don't process --quick command line option.
5147 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5148
5149 * lisp.h (inhibit_x_resources): Declare it extern.
5150
5151 * w32reg.c (x_get_string_resource):
5152 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5153
e227ba05
EZ
51542009-09-17 Eli Zaretskii <eliz@gnu.org>
5155
362654a6
JB
5156 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5157 Add lisp/term/internal.elc.
e227ba05 5158
742d40e8
SM
51592009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5160
5161 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5162 (bug#4461).
5163
005bd5a2
DN
51642009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5165
5166 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5167
5168 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5169 (OBJECTS_MACHINE): Remove, unused.
5170
f9af9719
SM
51712009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5172
5173 * frame.c (x_get_resource_string): Remove unused.
5174
0307c7d2
JD
51752009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5176
5177 * xterm.c (x_new_font): Call change_frame_size before calling
5178 x_set_window_size, in case frame size won't change.
5179
5180 * frame.c (x_set_font): Remove dead code.
5181
428b13d6
SM
51822009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5183
5184 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5185
5766c380
SM
51862009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5187
5188 * lread.c (Fload): Don't output a message after loading an obsolete
5189 package any more (done in Lisp now).
5190
2fd0161b
CY
51912009-09-12 Chong Yidong <cyd@stupidchicken.com>
5192
5193 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5194
bc5e75b6
SM
51952009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5196
5197 * keymap.c (Fwhere_is_internal): Use nconc2.
5198
c31c985e
AM
51992009-09-11 Alan Mackenzie <acm@muc.de>
5200
5201 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5202 batch mode.
5203
78012bd2
AS
52042009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5205
5206 * xdisp.c (display_mode_element): Detect cycles.
5207
9d889332
SM
52082009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5209
5210 * keymap.c (where_is_internal): Don't erroneously return nil right after
5211 filling the cache.
5212 (where_is_internal_1): Fix up typo.
5213
7ab5d780
GM
52142009-09-11 Glenn Morris <rgm@gnu.org>
5215
5216 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5217 share a common doc-string.
5218
5238a749
SM
52192009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5220
66d77eda
SM
5221 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5222 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5223
5238a749
SM
5224 * keymap.c (QCadvertised_binding): New constant.
5225 (syms_of_keymap): Initialize it.
5226 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5227 if applicable.
5228
19f48442
SM
52292009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5230
50d4ba39
SM
5231 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5232 (parse_menu_item): Streamline since bindings are recomputed all the
5233 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5234 more and don't support lmenu's menu-alias any more either.
5235
a88a5372
SM
5236 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5237 (where_is_internal): Strip it down to only traverse the keymaps.
5238 Move the cache handling from Fwhere_is_internal to here.
5239 (Fwhere_is_internal): Move the handling of remapping and the choice of
5240 the best binding from where_is_internal to here.
5241 Unify the cached/noncached paths, so remapping is also handled
5242 correctly when the cache is used, and so the cache can be used to
5243 speed up remap-handling when applicable.
5244 Give preference to non-remapped bindings.
5245 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5246 non-remapped bindings.
5247 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5248 command remapping.
5249
19f48442
SM
5250 * xdisp.c (display_mode_element): Move list length limit from 50 to
5251 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5252
599498c3 52532009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5254
5255 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5256
f9b7b5ac
SM
52572009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5258
a53af587
JB
5259 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5260 (Bug#4334)
5261
f9b7b5ac
SM
5262 * keymap.c (where_is_internal): Filter out shadowed remappings.
5263 Assume that where_is_internal returns unshadowed bindings to simplify
5264 the code and get rid of the gotos. Use ASIZE.
5265
04f4b72d
JD
52662009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5267
4da146f2
JD
5268 * xterm.c (x_focus_changed): If we get a focusout and pointer
5269 is invisible, make it visible.
5270
04f4b72d
JD
5271 * xterm.h: Remove condition for declaration of
5272 x_*_window_to_frame.
5273
7cef7ce3
SM
52742009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5275
5276 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5277 initial terminal as well.
5278
a54fa5b7
JD
52792009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5280
5281 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5282 x_menubar_window_to_frame.
a54fa5b7 5283
50426a04 5284 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5285 (XTmouse_position): Do not return valid positions
5286 for clicks in the menubar and the toolbar for Gtk+.
5287
5288 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5289 if the widget for the event has the same top level as a frame,
5290 return the frame.
5291 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5292 internal windows, bug #4122.
5293 (x_non_menubar_window_to_frame): Remove.
5294
5a021dd0
GM
52952009-09-02 Glenn Morris <rgm@gnu.org>
5296
5297 * buffer.c (default-major-mode): Move most of the doc from here...
5298 (major-mode): ... to here.
5299
548fe2f3
NR
53002009-08-30 Nick Roberts <nickrob@snap.net.nz>
5301
5302 * process.c (wait_reading_process_output): Keep the descriptor
5303 when pty is used by a non-child process, e.g., in I/O buffer of
5304 GDB this allows inferior to be restarted.
5305
e0840eef
EZ
53062009-08-29 Eli Zaretskii <eliz@gnu.org>
5307
5308 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5309 both branches into one.
5310
82e98df4
SM
53112009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5312
5313 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5314 (main): Use enable-multibyte-characters rather than
5315 default-enable-multibyte-characters. Output a warning message when
5316 running a unibyte session.
5317
890617cb
YM
53182009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5319
5320 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5321 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5322 (copy_data_segment): Also copy __program_vars section.
5323 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5324 (dump_it) [LC_DYLD_INFO]: Use it.
5325
5326 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5327
e7adeadc
EZ
53282009-08-28 Eli Zaretskii <eliz@gnu.org>
5329
5330 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5331 $(SRC)/buildobj.h.
5332 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5333 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5334 $(SRC)/buildobj.h.
5335 (clean): Add buildobj.h.
5336
3ed8bbdc
TZ
53372009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5338
5339 * print.c (print_object): Set escapeflag to 1 when printing
5340 hashtable keys and values.
5341
155a6764
SM
53422009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5343
5344 * lread.c (read_integer): Use doubles (and potentially return a float
5345 number) as we do in string-to-number.
5346 (read1): Use strtol to read integers, signal errors on strtol's
5347 overflow and use floats if strtol's output is too large for
5348 Elisp integers.
5349
877610de
EZ
53502009-08-27 Eli Zaretskii <eliz@gnu.org>
5351
5352 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5353 (make-buildobj-SH): Fix last change.
5354 (SRC): Move to before where it's first used.
5355
ef73e7be
KH
53562009-08-27 Kenichi Handa <handa@m17n.org>
5357
550c8289
KH
5358 * process.c (send_process): Use encode_coding_object instead of
5359 encode_coding_string to perform eol-conversion even if the string
5360 is unibyte.
5361
60afa08d
KH
5362 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5363 character.
5364
ef73e7be 5365 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5366 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5367
7b3a82d7
DN
53682009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5369
5654bf63
DN
5370 * callproc.c (Fcall_process): Remove always true #if.
5371
7b3a82d7
DN
5372 * lisp.h: Replace #if 0 code for checking with text pointing to
5373 the --enable-checking configure flag.
5374
5375 * emacs.c (main): Mention the --enable-profiling configure flag
5376 instead of using CFLAGS.
5377
878bde49
KR
53782009-08-26 Ken Raeburn <raeburn@raeburn.org>
5379
5380 * Makefile.in (buildobj.h): New target.
5381 (doc.o): Depend on it.
5382 (temacs${EXEEXT}): Don't generate buildobj.lst.
5383 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5384 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5385 ($(BLD)/doc.$(O)): Depend on it.
5386 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5387 provided by Eli Zaretskii.)
5388 ($(TEMACS)): Don't generate buildobj.lst.
5389 * doc.c: Include buildobj.h.
5390 (buildobj): New static variable.
5391 (Fsnarf_documentation): Use it, instead of opening and reading
5392 buildobj.lst.
5393
1574224c
MA
53942009-08-25 Michael Albinus <michael.albinus@gmx.de>
5395
5396 * dbusbind.c (Fdbus_call_method)
5397 (Fdbus_call_method_asynchronously): Use English numeric format for
5398 timeout values in doc string.
5399
d9da2f45
KH
54002009-08-25 Kenichi Handa <handa@m17n.org>
5401
ef73e7be
KH
5402 * alloc.c (mark_char_table): New function.
5403 (mark_object): Use mark_char_table for a char-table.
5404
d9da2f45
KH
5405 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5406 (CHAR_TABLE_REF): Use it.
5407
c8edcc01
KR
54082009-08-23 Ken Raeburn <raeburn@raeburn.org>
5409
5410 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5411 before invoking the newly build emacs to check for load-path
5412 shadowing.
5413
7763401b
GM
54142009-08-22 Glenn Morris <rgm@gnu.org>
5415
5416 * Makefile.in (bootstrap_exe): New variable.
5417 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5418 Use ${bootstrap_exe}.
5419
729eadda
EZ
54202009-08-22 Eli Zaretskii <eliz@gnu.org>
5421
5422 * coding.h (encode_coding_string): Don't encode unibyte strings.
5423 (Bug#4047)
5424
eb4c6ace
MA
54252009-08-22 Michael Albinus <michael.albinus@gmx.de>
5426
5427 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5428
5429 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5430 intended as hotfix only.
5431 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5432
36e34d1b
AR
54332009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5434
5435 * nsterm.m (ns_get_color): Update documentation properly for last
5436 change, and clean up loose ends in the code left by it. Fix
5437 longstanding bug with 16-bit hex parsing, and add support for
5438 yet another X11 format (rgb:r/g/b) for compatibility.
5439 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5440 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5441
f983eb8a
SM
54422009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5443
5444 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5445
3f56d3c6
MA
54462009-08-20 Michael Albinus <michael.albinus@gmx.de>
5447
5448 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5449 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5450 (xd_initialize, xd_pending_messages): Check, whether
5451 $DBUS_SESSION_BUS_ADDRESS is set.
5452
fb641d68
YM
54532009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5454
5455 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5456
5457 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5458
cf59a374
GM
54592009-08-20 Glenn Morris <rgm@gnu.org>
5460
5461 * emacs.c (system-type): Doc fix.
5462
1373f3be
SM
54632009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5464
5465 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5466 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5467
058ed861
MA
54682009-08-18 Michael Albinus <michael.albinus@gmx.de>
5469
1373f3be
SM
5470 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5471 New functions.
058ed861
MA
5472 (xd_initialize): Revert change from 2009-08-16.
5473
563a866e 54742009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5475
5476 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5477 font-group vector, return nil.
5fc05db0 5478
e42bdf01
CY
54792009-08-17 Chong Yidong <cyd@stupidchicken.com>
5480
5481 * process.c (status_notify): Don't perform redisplay.
5482 (Fdelete_process, list_processes_1, process_send_signal):
5483 Expliticly perform redisplay.
5484 (wait_reading_process_output): Always check process status, but
5485 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5486
4230ab74
KR
54872009-08-17 Ken Raeburn <raeburn@raeburn.org>
5488
1373f3be 5489 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5490 (XFLOAT_INIT): New macro for storing a float value.
5491 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5492 * fns.c (sxhash): Copy out the value of a float in order to
5493 examine its bytes.
5494 * dbusbind.c (xd_append_arg): Likewise.
5495
4230ab74
KR
5496 * emacs.c (main): Don't call syms_of_data twice.
5497
a0645cdd
MA
54982009-08-16 Michael Albinus <michael.albinus@gmx.de>
5499
5500 * dbusbind.c (xd_initialize): Add connection file descriptor to
5501 input_wait_mask, in order to let select() detect, whether a new
5502 message has been arrived.
ca4f31ea 5503 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5504
485db0ba
MA
55052009-08-15 Michael Albinus <michael.albinus@gmx.de>
5506
1373f3be
SM
5507 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5508 New functions.
485db0ba
MA
5509
5510 * lisp.h (xd_pending_messages): Declare.
5511
5512 * keyboard.c (readable_events): Call xd_pending_messages.
5513
b5b98ff4
CY
55142009-08-15 Chong Yidong <cyd@stupidchicken.com>
5515
1373f3be 5516 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5517
f8354c6e
CY
5518 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5519
b5b98ff4
CY
5520 * buffer.c (set_buffer_internal_1)
5521 (swap_out_buffer_local_variables): Check for unbound local
5522 variables (Bug#4138).
5523
8b9fc636
EZ
55242009-08-14 Eli Zaretskii <eliz@gnu.org>
5525
5526 * process.c (create_pty): Fix last change.
5527
ce959360
CY
55282009-08-13 Chong Yidong <cyd@stupidchicken.com>
5529
5530 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5531 (xbm_load_image): Caller changed.
64b807c9 5532 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5533
c7baf7e9
NR
55342009-08-13 Nick Roberts <nickrob@snap.net.nz>
5535
5536 * process.c (create_pty): New function.
5537 (Fstart_process): Use it to allow Emacs to just associate a pty
5538 with the buffer. See associated change in gdb-mi.el.
5539 (list_processes_1): Deal with no program name.
5540 (start_process_unwind): Use pid == -2 to mean no process.
5541
1ac9108a
SM
55422009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5543
5544 * cmds.c (nonundocount): New global variable.
5545 (keys_of_cmds): Initialize it.
5546 (Fself_insert_command): Use it to combine upto 20 sequential chars
5547 into a single undo entry, just like the Qself_insert_command code in
5548 keyboard.c does.
5549 Call frame_make_pointer_invisible, also like the Qself_insert_command
5550 code in keyboard.c does.
5551 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5552 than its own local replacement for it.
5553
e267324c
KR
55542009-08-10 Ken Raeburn <raeburn@raeburn.org>
5555
1ac9108a 5556 * fns.c (concat): Don't re-set string length to its current value.
77437343 5557
1ac9108a
SM
5558 * coding.h (decode_coding_string, encode_coding_string):
5559 Use SBYTES macro.
f0bed503 5560
1ac9108a 5561 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5562 (doprnt): Merge with doprnt1, discarding lispstrings code.
5563 * lisp.h (doprnt_lisp): Don't declare.
5564
416e006d
JL
55652009-08-07 Juri Linkov <juri@jurta.org>
5566
5567 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5568
6f7d5780
DN
55692009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5570
5571 * print.c (syms_of_print): Undo previous change.
5572
f19a0f5b
TZ
55732009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5574
5575 * lread.c (read1, syms_of_lread): Read hashtables back from the
5576 readable format.
5577
5578 * print.c (print_preprocess, print_object): Print hashtables fully
5579 and readably.
5580 (syms_of_print): Provide 'hashtable-print-readable.
5581
b9173dc2
AR
55822009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5583
5584 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5585 no family set.
5586 (nsfont_open): Handle case when entity has no family.
5587
1586503c
AR
55882009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5589
5590 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5591 element, not a list, for match case.
5592
087048cd
KH
55932009-07-28 Kenichi Handa <handa@m17n.org>
5594
5595 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5596 rigidly.
5597
5598 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5599 font_parse_xlfd. Check font properties more rigidly.
5600
780c2506
DN
56012009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5602
31fd7c5c
JB
5603 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5604 bsd-common.h.
780c2506 5605
a8c0cc18
KH
56062009-07-27 Kenichi Handa <handa@m17n.org>
5607
5608 * xfaces.c (face_with_height): Call font_clear_prop.
5609
4fbe2306
CY
56102009-07-26 Chong Yidong <cyd@stupidchicken.com>
5611
111d9af3
CY
5612 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5613
5614 * xterm.c (x_term_init): Use Qx.
5615
4fbe2306
CY
5616 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5617
1ac9108a 5618 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5619 (ns_get_color): Revert 2009-07-16 change.
5620
beb0b7f9
EZ
56212009-07-25 Eli Zaretskii <eliz@gnu.org>
5622
5623 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5624 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5625
2baf5e76
KR
56262009-07-25 Ken Raeburn <raeburn@raeburn.org>
5627
1ac9108a
SM
5628 * coding.h (decode_coding_string, encode_coding_string):
5629 Use SCHARS macro.
8890e5f5 5630
2baf5e76 5631 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5632 (load_depth): Delete.
2baf5e76
KR
5633 (Qload_in_progress): New variable.
5634 (load_unwind): Don't reference load_depth or load_in_progress.
5635 (Fload): Likewise; specbind Qload_in_progress instead.
5636 (init_lread): Don't initialize load_depth.
5637 (syms_of_lread): Initialize and protect Qload_in_progress.
5638
1395c6f5
AR
56392009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5640
5641 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5642
4e2f36cf
AR
56432009-07-23 Yavor Doganov <yavor@gnu.org>
5644
5645 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5646
5dd9a6f7
AR
56472009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5648
5649 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5650 Bugs 3792, 3720, 2402.
5651 (ns_lookup_indexed_color): Check for bad index.
5652 (ns_index_color): Init unused slot to 0.
5653 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5654 Bug 3714, possibly 3082.
5dd9a6f7 5655
c902b920
JR
56562009-07-22 Jason Rumney <jasonr@gnu.org>
5657
1ac9108a
SM
5658 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5659 Position IME window at cursor (Bug#2570).
c902b920
JR
5660 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5661 (globals_of_w32fns): Dynamically load functions required above.
5662
5663 * w32term.c (w32_draw_window_cursor): Send message to reposition
5664 any IME window.
5665
090101cf
CY
56662009-07-21 Chong Yidong <cyd@stupidchicken.com>
5667
5668 * fileio.c: Revert 2009-07-16 changes.
5669 (Vauto_save_include_big_deletions): New variable.
5670 (Fdo_auto_save): Disable auto-save only if
5671 auto-save-include-big-deletions is nil.
5672
e6583e3d
CY
56732009-07-21 Chong Yidong <cyd@stupidchicken.com>
5674
5675 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5676 the overflowed pixels into account (Bug#3879).
5677
ece435a5
KR
56782009-07-21 Ken Raeburn <raeburn@raeburn.org>
5679
5680 * lread.c (load_depth): New variable.
5681 (Fload, load_unwind, init_lread): Set it to the load recursion
5682 depth; set load_in_progress as a simple boolean based on the
5683 current load_depth. (Bug#3892)
5684
40b2d973
AR
56852009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5686
5687 * nsfont.m (ns_has_attribute): Remove.
5688 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5689
10be7e0d
JL
56902009-07-18 Juri Linkov <juri@jurta.org>
5691
5692 * process.c (Fset_process_query_on_exit_flag): Mention killing
5693 a buffer in docstring.
5694
fa055055
KH
56952009-07-17 Kenichi Handa <handa@m17n.org>
5696
5697 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5698
042f7b69
YM
56992009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5700
5701 * nsfns.m (Fns_set_alpha): Remove function.
5702 (syms_of_nsfns): Don't defsubr it.
5703
5704 * nsterm.m (ns_get_color): Remove incompatible color formats.
5705 (ns_color_to_lisp): Generate #rrggbb color format string.
5706
4be941e3
RS
57072009-07-16 Richard Stallman <rms@gnu.org>
5708
5709 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5710 (Fset_buffer_auto_saved): Handle save_length = -2.
5711
4e6b227d
CY
57122009-07-16 Chong Yidong <cyd@stupidchicken.com>
5713
5714 * xterm.c (Qx_gtk_map_stock): New var.
5715
5716 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5717 of calling intern each time.
5718
a1856973
YM
57192009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5720
5721 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5722 does tiling.
5723
5724 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5725
497e54d8
KH
57262009-07-14 Kenichi Handa <handa@m17n.org>
5727
72d36834
KH
5728 * font.c (font_vconcat_entity_vectors): New function.
5729 (struct font_sort_data): New member font_driver_preference.
5730 (font_compare): Check font_driver_preference.
5731 (font_sort_entities): The format of the first argument changed.
5732 (font_delete_unmatched): Likewise.
5733 (font_list_entities): The return type changed.
5734 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5735 (font_find_for_lface): Adjuste for the above changes.
5736 Don't suppress the checking of C even if the repertory supports it.
5737 (Flist_fonts): Adjust for the above changes.
72d36834 5738
1ac9108a
SM
5739 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5740 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5741 Reject a font who has adstyle property that is different from a
5742 langname derived from registry property.
1ac9108a 5743 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5744
b6046155
EZ
57452009-07-13 Eli Zaretskii <eliz@gnu.org>
5746
5747 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5748 local copy of dirfilename.
5749
fb6b6049
KH
57502009-07-13 Kenichi Handa <handa@m17n.org>
5751
e2402a5e
KH
5752 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5753 against max_char.
5754
fb6b6049
KH
5755 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5756 calling XSYMBOL (sym).
5757
65156807
EZ
57582009-07-11 Eli Zaretskii <eliz@gnu.org>
5759
1ac9108a
SM
5760 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5761 New function.
5762 (directory_files_internal) [WINDOWSNT]:
5763 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5764 the filesystem of the directory is fast or slow.
5765
5766 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5767 file name.
5768 (is_slow_fs): New function.
5769 (stat): Use it to determine whether to issue more system calls to
5770 get accurate file attributes, when w32-get-true-file-attributes is
5771 `local'.
5772
e0ab5fcf
JD
57732009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5774
5775 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5776 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5777 parameter font-parameter as default to the font dialog.
5778
784ceded
KH
57792009-07-10 Kenichi Handa <handa@m17n.org>
5780
5781 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5782
fb8edc0b
EZ
57832009-07-09 Eli Zaretskii <eliz@gnu.org>
5784
1ac9108a 5785 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5786
fb8edc0b
EZ
5787 * w32.c (stat): Treat UNC file names as residing on remote
5788 drives. (Bug#3542)
5789
635c75b1
KH
57902009-07-09 Kenichi Handa <handa@m17n.org>
5791
5792 * fontset.c (fontset_find_font): Fix previous change.
5793
c1d5ce94
MA
57942009-07-08 Michael Albinus <michael.albinus@gmx.de>
5795
5796 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5797 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5798 error flag.
5799
edb61b39
KH
58002009-07-08 Kenichi Handa <handa@m17n.org>
5801
374bf7e4
KH
5802 * fontset.c (fontset_find_font): Fix the logic of handling
5803 charset_matched.
5804 (font_for_char): Delete unused var.
5805 (generate_ascii_font_name): Delete it.
5806
edb61b39
KH
5807 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5808
5809 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5810 (encode_coding_sjis): Fix the code range check.
5811
0f3f018c
CY
58122009-07-07 Chong Yidong <cyd@stupidchicken.com>
5813
5814 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5815 (Fexpand_file_name): Copy string data properly (Bug#3772).
5816
fcaf6f3a
JD
58172009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5818
5819 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5820 first MapNotify.
5821
6809ca75
KH
58222009-07-07 Kenichi Handa <handa@m17n.org>
5823
5824 * character.h (unibyte_has_multibyte_table): Delete extern.
5825 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5826
5827 * charset.c (Fset_charset_priority): Update charset_unibyte.
5828 (syms_of_charset): Initialize charset_unibyte.
5829
5830 * character.c (unibyte_has_multibyte_table): Delete it.
5831 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5832 charset_unibyte.
5833 (multibyte_char_to_unibyte_safe): Likewise.
5834 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5835
1ac9108a 5836 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5837 (x_produce_glyphs): Likewise.
5838
5839 * .gdbinit (xcharset): Fix the treating $arg0.
5840
ad9e2d54
EZ
58412009-07-04 Eli Zaretskii <eliz@gnu.org>
5842
5843 Emulation of `getloadavg' on MS-Windows.
50426a04 5844 * w32.c: Include float.h.
ad9e2d54
EZ
5845 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5846 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5847 (get_native_system_info, get_system_times): New functions.
5848 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5849 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5850 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5851 g_b_init_get_system_times, and num_of_processors.
5852
0a3472c7
JR
58532009-07-03 Jason Rumney <jasonr@gnu.org>
5854
5855 * w32term.c (w32_initialize): Use standard types.
5856
80904120
EZ
58572009-07-03 Eli Zaretskii <eliz@gnu.org>
5858
5859 * dired.c (Ffile_attributes): Decode user and group names by the
5860 locale's encoding. (Bug#3443)
5861
6978862d
DN
58622009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5863
f8d23104
DN
5864 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5865 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5866
5867 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5868
5869 * term.c (init_tty): Remove spurious #ifdef.
5870
6978862d
DN
5871 * m/mips.h: Mention this file is also used for netbsd.
5872 * m/pmax.h: Remove file.
5873
e044e4fc
JD
58742009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5875
5876 * xterm.h (struct x_display_info): Add invisible_cursor.
5877 (struct x_output): Add current_cursor.
5878
5879 * xterm.c (XTtoggle_invisible_pointer): New function.
5880 (x_define_frame_cursor): Don't define cursor if invisible or the
5881 same as before. Set current_cursor.
5882 (x_create_terminal): Set toggle_invisible_pointer_hook.
5883
5884 * xfns.c (make_invisible_cursor): New function.
5885 (x_set_mouse_color): Call make_invisible_cursor.
5886 Set current_cursor.
5887 (x_window): Set current_cursor.
5888
5889 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5890
5891 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5892 inserting a character.
5893 (read_avail_input): Call frame_make_pointer_visible.
5894
5895 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5896 (frame_make_pointer_invisible, frame_make_pointer_visible):
5897 New functions.
e044e4fc
JD
5898 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5899
5900 * frame.h: Declare frame_make_pointer_invisible and
5901 frame_make_pointer_visible.
5902 (struct frame): Add pointer_invisible.
5903
574c8efa
JD
59042009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5905
7b507248
JD
5906 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5907 frame isn't visible.
5908 (xg_frame_resized): If width/height is -1, get size of window
5909 from X server.
5910
5911 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5912 for MapNotify.
5913
835bdaa7 5914 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5915 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5916 (flush_and_sync): Reintroduce.
574c8efa 5917
3f1c6666 59182009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5919
31fd7c5c 5920 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5921
5922 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5923 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5924
5925 * frame.h: Declare Qsticky.
5926
cad9ef74
JD
5927 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5928
5929 * nsfns.m (ns_frame_parm_handlers): Ditto.
5930
5931 * frame.c: Declare Qsticky.
5932 (frame_parms): Add sticky.
5933
5934 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5935
5936 * xterm.h: Declare x_set_sticky.
5937
5938 * xterm.c (x_set_sticky): New function.
5939
69b16610
JD
5940 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5941 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5942 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5943
5944 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5945
5946 * frame.c: Qmaximized is new.
5947 (x_set_frame_parameters): Do not handle fullscreen specially.
5948 Only set width and height if explicitly set.
5949 (x_set_fullscreen): Handle Qmaximized.
5950 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5951 (syms_of_frame): Initialize Qmaximized.
5952
1ac9108a
SM
5953 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5954 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5955
5956 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5957 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5958 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5959 set gravity to NorthWestGravity when USE_GTK.
5960 (set_wm_state): New function.
31fd7c5c 5961 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5962 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5963 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5964 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5965 to x_real_positions and x_fullscreen_adjust.
5966
5967 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5968 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5969 flush_and_sync.
5970 (xg_height_changed): New function.
5971 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5972 and gtk_window_set_policy. Set frame gravity after parsing the
5973 geometry string.
3f1c6666
JD
5974 (xg_update_frame_menubar, free_frame_menubar)
5975 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5976 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5977 Remove calls to xg_frame_set_char_size.
5978
fd503d99
KH
59792009-07-01 Kenichi Handa <handa@m17n.org>
5980
5981 * keyboard.c (decode_keyboard_code): New function.
5982 (tty_read_avail_input): Decode the input bytes if necessary.
5983
1ac9108a
SM
5984 * coding.c (setup_coding_system):
5985 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5986 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5987 use Qno_conversion.
5988
24ed93fb
YM
59892009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5990
5991 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5992
99061dfc
CY
59932009-06-30 Chong Yidong <cyd@stupidchicken.com>
5994
1ac9108a 5995 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5996
ff90fbde
JR
59972009-06-30 Jason Rumney <jasonr@gnu.org>
5998
5999 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6000 is already loaded.
6001 Set user model ID if supported (bug#1849).
6002
5f445726
JM
60032009-06-29 Jim Meyering <meyering@redhat.com>
6004
6005 Remove useless if-before-xfree test.
6006 * nsfont.m (nsfont_close): Remove useless test.
6007 * term.c (delete_tty): Likewise.
6008 * w32.c (system_process_attributes): Likewise.
6009 * w32font.c (w32font_close): Likewise.
6010 * xfaces.c (x_free_gc): Likewise.
6011 * xselect.c (buffer): Likewise.
6012
b9607587
AS
60132009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6014
6015 * process.c (send_process): Keep decoded string in a local
6016 variable and protect it from GC. (Bug#3521)
6017
89ba96f4
EZ
60182009-06-28 Eli Zaretskii <eliz@gnu.org>
6019
6020 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6021 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6022
098a1589
CY
60232009-06-28 Chong Yidong <cyd@stupidchicken.com>
6024
485422be
CY
6025 * xdisp.c (start_display, handle_face_prop)
6026 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6027 (redisplay_window, try_window_id, produce_image_glyph):
6028 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6029
098a1589
CY
6030 * xterm.c (x_update_window_begin, x_new_focus_frame)
6031 (x_scroll_bar_handle_click, handle_one_xevent)
6032 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6033 (x_make_frame_visible, x_make_frame_invisible)
6034 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6035 code chunks that are now obsolete.
6036
78c38319
MA
60372009-06-28 Michael Albinus <michael.albinus@gmx.de>
6038
6039 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6040 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6041 for hours, when optimzation is enabled.
6042 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6043 (xd_read_message): Make them static.
6044
4189ed40
CY
60452009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6046
6047 * term.c (turn_on_face): Allow simultaneously bold and dim
6048 terminal faces (Bug#3530).
6049
cd9b5e16
CY
60502009-06-27 Chong Yidong <cyd@stupidchicken.com>
6051
4e23bedb
CY
6052 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6053
cd9b5e16
CY
6054 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6055 truncation glyphs (Bug#3686).
6056
07cc3c35
GM
60572009-06-27 Glenn Morris <rgm@gnu.org>
6058
6059 * m/pmax.h: Restore file, with only netbsd portions.
6060
31fd7c5c 60612009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6062
cd9b5e16 6063 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6064
42d4a64f
KH
60652009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6066
6067 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6068 the arg FORCE_SYMBOL.
6069
930fe55b 60702009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6071
6072 * fontset.c (fontset_find_font): When a usable rfont_def is found
6073 in a fallback font-group, make it the first element of the group.
6074
57ebc3fd
CY
60752009-06-24 Chong Yidong <cyd@stupidchicken.com>
6076
6077 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6078
f084f942
KH
60792009-06-24 Kenichi Handa <handa@m17n.org>
6080
6081 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6082 set for C.
6083 (fontset_font): Record the availability of a font for C both in
6084 the realized fontsets of the current one and the default one.
6085
2f686c87
DN
60862009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6087
6088 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6089 conditional, it is always defined on AIX.
6090
666e158e
MB
60912009-06-23 Miles Bader <miles@gnu.org>
6092
6093 * window.c (Vrecenter_redisplay): New variable.
6094 (syms_of_window): Initialize it.
6095 (Qtty): New extern declaration.
6096 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6097
c6da7cd2
JM
60982009-06-23 Jim Meyering <meyering@redhat.com>
6099
1ac9108a
SM
6100 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6101 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6102 pointer dereferences are guaranteed to be valid.
c6da7cd2 6103
678dca3d
KH
61042009-06-23 Kenichi Handa <handa@m17n.org>
6105
74d75424
KH
6106 * emacs.c (main): Call init_font ().
6107
6108 * font.h (Vfont_log): Extern it.
6109 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6110
6111 * font.c (font_sort_entities, font_list_entities)
6112 (font_matching_entity, font_open_entity)
6113 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6114 (Vfont_log): Delete static.
6115 (font_log_env_checked): Delete this variable.
6116 (font_add_log): Don't check font_log_env_checked.
6117 (font_deferred_log): Check Vfont_log.
6118 (init_font): New function.
6119
678dca3d
KH
6120 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6121
6122 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6123
6124 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6125
6126 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6127
6128 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6129 (face_for_char): Don't call font_deferred_log here.
6130 (font_for_char): Likewise.
6131
8a668709
CY
61322009-06-22 Chong Yidong <cyd@stupidchicken.com>
6133
9a01ee33
CY
6134 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6135 rather than its background_width for drawing the overline and
6136 underline (Bug#489).
6137
6138 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6139 rather than its background_width for drawing the overline and
6140 underline (Bug#489).
ec7c9926
CY
6141 (xg_default_icon_file): New variable.
6142 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6143 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6144
8a668709
CY
6145 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6146 (load_overlay_strings): Remove externs.
6147 (fast_find_position): Function deleted.
6148 (mouse_face_from_buffer_pos): New function, based on
6149 fast_find_position. Correctly handle before-strings,
6150 display-strings, and after-strings (Bug#1220).
6151 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6152
4d4c02d8
CY
61532009-06-21 Chong Yidong <cyd@stupidchicken.com>
6154
1ac9108a 6155 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6156 (move_it_in_display_line_to, move_it_in_display_line_to)
6157 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6158
70243478
CY
61592009-06-21 Chong Yidong <cyd@stupidchicken.com>
6160
6161 * Branch for 23.1.
6162
13087e59
JR
61632009-06-21 Jason Rumney <jasonr@gnu.org>
6164
6165 * w32term.c (keyboard_codepage): New static variable.
6166 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6167 (w32_read_socket) [WM_CHAR]: Use it to decode character
6168 input (bug#3237).
6169 (w32_initialize): Initialize it.
6170 (codepage_for_locale): New function.
6171
4735b74e
KR
61722009-06-20 Ken Raeburn <raeburn@raeburn.org>
6173
6174 * process.c (status_message): Pass Faset index argument as a lisp
6175 object, so as to work with USE_LISP_UNION_TYPE.
6176
0e727afa
YM
61772009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6178
6179 * coding.c (Ffind_coding_systems_region_internal):
6180 Cache checked characters.
6181
cf299835
KH
61822009-06-18 Kenichi Handa <handa@m17n.org>
6183
1ac9108a 6184 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6185
90f20d94
AS
61862009-06-18 Andreas Schwab <aschwab@redhat.com>
6187
6188 * xdisp.c (redisplay_internal): Check that the frame is still
6189 live after redisplay of its windows.
6190 (redisplay_windows): Check that the window is still live.
6191
7f1faf1c
KH
61922009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6193
6194 * coding.c (detect_coding_utf_16): Fix previous change.
6195
cc13543e
KH
61962009-06-16 Kenichi Handa <handa@m17n.org>
6197
6198 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6199 UTF-16 by checking the dispersion of Eth and Oth bytes.
6200
977b85f4
AS
62012009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6202
6203 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6204
66bd43d1
KH
62052009-06-15 Kenichi Handa <handa@m17n.org>
6206
6207 * process.c (status_message): Fix previous change. Be sure to
6208 decode a localized string.
6209
cb5ca9c5
YM
62102009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6211
6212 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6213 add comment explaining why.
6214
ec7709ba 62152009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6216
ec7709ba 6217 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6218
4b7f335c
AR
62192009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6220
6221 * nsfont.m (ns_attribute_value): Remove.
6222 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6223 (ns_has_attribute): Shrink the normal range.
6224 (ns_findfonts): Don't worry about requested spec in determining
6225 need for synthItal.
e41820ee 6226 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6227
73b26103
SZ
62282009-06-14 Seiji Zenitani <zenitani@mac.com>
6229
6230 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6231
5753e4da
KH
62322009-06-11 Kenichi Handa <handa@m17n.org>
6233
6234 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6235 overhang for the static composition case.
6236
3561b671
KH
62372009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6238
5753e4da
KH
6239 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6240 overhang for the automatic composition case.
6241
3561b671
KH
6242 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6243 composition case.
6244
852bbd41
CY
62452009-06-10 Chong Yidong <cyd@stupidchicken.com>
6246
6247 * xdisp.c (get_next_display_element): When handling wrap-prefix
6248 and line-prefix, treat \n as a control character (bug#3502).
6249
9903d1e6
KH
62502009-06-10 Kenichi Handa <handa@m17n.org>
6251
6252 * font.c (font_parse_family_registry): Fix for one-char foundry.
6253 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6254
0bcbaaaa
CY
62552009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6256
6257 * process.c (status_message): Fix handling of multibyte signal
6258 string (Bug#3499).
6259
40aa3f13
JM
62602009-06-09 Jim Meyering <meyering@redhat.com>
6261
1f80c7e2
CY
6262 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6263 color name is missing.
40aa3f13 6264
72d51285
KH
62652009-06-09 Kenichi Handa <handa@m17n.org>
6266
6267 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6268 FROM-CODE and TO-CODE are codepoints of CHARSET.
6269
c1d04d84
AR
62702009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6271
6272 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6273
62742009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6275
6276 Changes to support :script/:lang/:otf in NS font driver.
6277 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6278 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6279 indicate not part of font driver interface, and change callers.
6280 (ns_get_family): Remove pointless null check.
6281 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6282 ns_spec_to_descriptor, ns_descriptor_to_entity.
6283 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6284 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6285 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6286 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6287 (ns_get_req_script, ns_accumulate_script_ranges)
6288 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6289 New functions.
6290 (nsfont_list, nsfont_match): Use ns_findfonts.
6291 (nsfont_open): Use font descriptor instead of traits.
6292 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6293 (dump_glyphstring): Rename to ns_dump_glyphstring.
6294
c7eb9816
AR
6295 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6296
c1d04d84
AR
6297 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6298
6299 * fontset.c (fontset_from_font): Remove NS-specific code.
6300
ec7709ba 63012009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6302
6303 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6304 nonactive windows.
6305
31fd7c5c 63062009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6307
1ac9108a 6308 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6309
68852c13 63102009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6311
6312 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6313
6756cd1d
CY
63142009-06-07 Chong Yidong <cyd@stupidchicken.com>
6315
6316 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6317 account for the overflowing of newlines into the last glyph on the
6318 display line (Bug#3482).
6319
28bf482a
DR
63202009-06-05 David Reitter <david.reitter@gmail.com>
6321
ec7709ba
JB
6322 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6323 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6324 Fns_selection_exists_p, Fns_selection_owner_p.
6325
fdb55376
JR
63262009-06-03 Jason Rumney <jasonr@gnu.org>
6327
6328 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6329 available. (Bug#3379)
6330
05129fbe
KH
63312009-05-29 Kenichi Handa <handa@m17n.org>
6332
1ac9108a
SM
6333 * coding.c (get_translation_table):
6334 Check Venable_character_translation.
05129fbe 6335
ec7709ba 63362009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6337
ec7709ba
JB
6338 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6339 (x_make_frame_visible): Move frame to front rather than calling
15891144 6340 ns_raise_frame().
ec7709ba 6341 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6342 isn't key window.
ec7709ba 6343 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6344 drawRect may be called by NSView even if the frame is hidden.
6345
ec7709ba
JB
6346 * nsfns.m (Fx_create_frame): Follow other ports in
6347 determining visibility; default to t. Ensure async_visible is set.
15891144 6348
21f73755
EZ
63492009-05-23 Eli Zaretskii <eliz@gnu.org>
6350
6351 * dired.c (Ffile_attributes): Doc fix.
6352
34001e41
CY
63532009-05-22 Chong Yidong <cyd@stupidchicken.com>
6354
6355 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6356
46306a17
SM
63572009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6358
6359 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6360 and xfont_scratch_props.
6361 (syms_of_xfont): Do it here instead.
6362 (xfont_find_ccl_program): Delete, unused.
6363 (xfont_open): Delete unused var `i'.
6364
ef6e0694
KH
63652009-05-21 Kenichi Handa <handa@m17n.org>
6366
6367 * fontset.c (Qlatin): Don't make it static.
6368
46306a17
SM
6369 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6370 New functions.
ef6e0694
KH
6371 (xfont_scripts_cache, xfont_scratch_props): New variables.
6372 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6373 (xfont_list_pattern): Argument changed. Callers changed.
6374 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6375 (xfont_list): Don't reject a font spec with :script property.
6376 (xfont_has_char): Fix setting of encoding.
6377 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6378 xfont_scratch_props.
6379
63802009-05-19 Kenichi Handa <handa@m17n.org>
6381
46306a17 6382 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6383 Callers changed.
6384
63852009-05-18 Kenichi Handa <handa@m17n.org>
6386
6387 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6388
ac71ced7
SM
63892009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6390
6391 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6392 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6393
1c6d1051
YM
63942009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6395
6396 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6397 (x_delete_terminal): Dissociate resource database from display and
6398 then call XrmDestroyDatabase before closing display.
6399
9b9b779c
AR
64002009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6401
6402 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6403 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6404 whether selected frame is viable before raising it (based on patch
6405 by David Reitter), and improve commentary.
6406 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6407
cccd42d5
KH
64082009-05-15 Kenichi Handa <handa@m17n.org>
6409
6410 * font.c (Ffont_spec): Check arguments.
6411
337fbd17
CY
64122009-05-14 Chong Yidong <cyd@stupidchicken.com>
6413
6414 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6415 weight when testing attributes (Bug#3282).
6416
47a6002f
JD
64172009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6418
6419 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6420 what we expect to get in the next ConfigureNotify event.
6421
9cb363db
YM
6422 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6423 before Xft one (Bug#1696).
6424
b9126609
CY
64252009-05-07 David Reitter <david.reitter@gmail.com>
6426
6427 * nsfns.m (Fx_display_planes): Compute bitplanes using
6428 NSBitsPerPixelFromDepth (Bug#3207).
6429
27a69fd9
CY
64302009-05-10 Chong Yidong <cyd@stupidchicken.com>
6431
6432 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6433
00f37552
TTN
64342009-05-10 Ulrich Mueller <ulm@gentoo.org>
6435
6436 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6437
2d82a920
DR
64382009-05-07 David Reitter <david.reitter@gmail.com>
6439
ec7709ba
JB
6440 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6441 Respect mouse face background.
2d82a920 6442
46b0d52d
DR
64432009-05-07 David Reitter <david.reitter@gmail.com>
6444
ec7709ba
JB
6445 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6446 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6447 in ns_update_begin and ns_update_end.
6448
ce1b23bb
SM
64492009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6450
5996e1b7
SM
6451 * nsfns.m (ns_get_screen): Rewrite.
6452 Don't presume selected-frame is of type `ns'.
6453
ba98e3a0
SM
6454 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6455 all drivers.
6456
ce1b23bb
SM
6457 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6458
bcda200f
YM
64592009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6460
6461 * keyboard.h (add_user_signal): Fix typo in extern.
6462
6463 * lisp.h (add_user_signal): Remove extern.
6464
6465 * unexelf.c (unexec): Consider a section to precede the .bss section
6466 if its addresses overlap that of .bss.
6467 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6468 instead of dumping process.
6469
864660a2
SM
64702009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6471
6472 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6473
50da4e56
SM
64742009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6475
6476 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6477
51520a1a
DN
64782009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6479
6480 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6481 any statements.
6482
409ea3a1
AS
64832009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6484
59c4c60f
AS
6485 * process.c (read_process_output): Make sure the current buffer is
6486 always restored.
6487
409ea3a1
AS
6488 * coding.c (record_conversion_result): Don't modify
6489 Vlast_code_conversion_error for successful result.
6490 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6491
56f00ed2
KH
64922009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6493
6494 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6495 (load_charset_map): Remove unnecessary code.
56f00ed2 6496
4491c9d2
DR
64972009-04-30 David Reitter <david.reitter@gmail.com>
6498
35f5b128 6499 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6500 through f24.
6501
6970f632
CY
65022009-04-30 Chong Yidong <cyd@stupidchicken.com>
6503
6504 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6505
6506 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6507 face_at_buffer_position.
6508 (face_before_or_after_it_pos, get_next_display_element)
6509 (note_mouse_highlight): Update face_at_buffer_position call.
6510
6511 * term.c (term_mouse_highlight):
6512 * msdos.c (IT_note_mouse_highlight):
6513 * fontset.c (Finternal_char_font):
35f5b128 6514 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6515
6516 * dispextern.h (face_at_buffer_position): Update prototype.
6517
0c616f63
KH
65182009-04-30 Kenichi Handa <handa@m17n.org>
6519
35f5b128 6520 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6521
ad3aaf33
AS
65222009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6523
6524 * callproc.c (Fcall_process): Fix GC protection. Make sure
6525 current buffer is always restored.
6526
c3c963a0
YM
65272009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6528
6529 * atimer.c (init_atimer): Also clear stopped_atimers.
6530
6531 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6532
7e3386cb
YM
6533 * process.c (create_process): Clean up merger residues of
6534 2008-07-17 change.
6535
91f68422
CY
65362009-04-29 Ulrich Mueller <ulm@gentoo.org>
6537
6538 * lread.c (Vread_circle): New variable.
6539 (read1): Disable recursive read if Vread_circle is nil.
6540
24b34550
KH
65412009-04-29 Kenichi Handa <handa@m17n.org>
6542
6543 * fontset.h (set_default_ascii_font): Delete extern.
6544
6545 * fontset.c (set_default_ascii_font): Delete this unused function.
6546
6547 * frame.c (x_set_font): When ARG is a font-object, check if the
6548 font-object matches with the ASCII font-spec of the frame's
9c358bda 6549 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6550
77bf07e1
AS
65512009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6552
6553 * fns.c (Flocale_info): Protect vector from GC during decoding.
6554
6555 * process.c (Fstart_process): Protect argv strings from GC during
6556 encoding.
6557
2c55aacf
AS
65582009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6559
6560 * sysdep.c: Include <ctype.h>.
6561
b892d3c9
DR
65622009-04-27 David Reitter <david.reitter@gmail.com>
6563
35f5b128 6564 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6565 Remove commented-out code.
6566
9d0644c4
JB
65672009-04-26 Johan Bockgård <bojohan@gnu.org>
6568
6569 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6570
b7053016
JR
65712009-04-25 Jason Rumney <jasonr@gnu.org>
6572
6573 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6574
4e8231f3
YM
65752009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6576
6577 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6578 Swap bytes in short integer if fringe bitmap width > 8.
6579
493dcf2c
KH
65802009-04-23 Kenichi Handa <handa@m17n.org>
6581
6582 * xfaces.c (Fx_list_fonts): If a font size is specified in
6583 PATTERN, set it in returned scalable fonts.
6584
401e9e57
CY
65852009-04-22 Chong Yidong <cyd@stupidchicken.com>
6586
708e05dc
CY
6587 * keyboard.c (Fset_input_meta_mode): Doc fix.
6588
6589 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6590
1ac9108a 6591 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6592
6593 * coding.c (Fterminal_coding_system): Doc fix.
6594
6595 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6596 (Fx_display_pixel_height, Fx_display_planes)
6597 (Fx_display_color_cells, Fx_server_max_request_size)
6598 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6599 (Fx_display_mm_height, Fx_display_mm_width)
6600 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6601 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6602 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6603 (check_x_display_info): Handle terminal objects instead of
6604 terminal ids.
6605
401e9e57
CY
6606 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6607 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6608 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6609 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6610
df80c7f0
KH
66112009-04-21 Kenichi Handa <handa@m17n.org>
6612
5a8f12af 6613 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6614 (font_score): Check AVGWIDTH too.
908567ef 6615
df80c7f0
KH
6616 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6617 worst case.
1ac9108a
SM
6618 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6619 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6620
705af33f
JR
66212009-04-19 Jason Rumney <jasonr@gnu.org>
6622
6623 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6624 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6625
6626 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6627 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6628 get_phys_cursor_geometry.
6629
b71ac3dd 6630 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6631 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6632 using get_phys_cursor_geometry.
6633
6634 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6635 correctly calculated.
6636
dc2933eb
JD
66372009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6638
1ac9108a
SM
6639 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6640 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6641 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6642 is deprecated.
6643
973e7849
AS
66442009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6645
6646 * font.c (font_put_frame_data): Use xfree instead of free.
6647
314d66f4
JB
66482009-04-17 Juanma Barranquero <lekktu@gmail.com>
6649
6650 * w32font.c (Qja, Qko): Remove declarations.
6651 (syms_of_w32font): Don't DEFSYM them.
6652
cf702558
CY
66532009-04-17 Chong Yidong <cyd@stupidchicken.com>
6654
6655 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6656
6657 * font.h (Qja, Qko): Extern them.
6658
6659 * ftfont.c (Qja, Qko): Remove declarations.
6660
6661 * xfont.c (Qja, Qko): Remove declarations.
6662
b50504f5
KH
66632009-04-17 Kenichi Handa <handa@m17n.org>
6664
bde25748
KH
6665 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6666 string from a vector to handle Latin-1 characters correctly.
6667
b50504f5
KH
6668 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6669 entity even if the cache hits.
6670
f4646fff
AS
66712009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6672
6673 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6674 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6675
e7deaab0
AS
6676 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6677 * lisp.h: Adjust prototypes.
6678
0a0e7d49
CY
66792009-04-16 Chong Yidong <cyd@stupidchicken.com>
6680
6681 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6682 change (Bug#3003).
6683
3c908a57
KH
66842009-04-16 Kenichi Handa <handa@m17n.org>
6685
1ac9108a 6686 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6687
6688 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6689 adstyle.
6690
6691 * ftfont.c (Qja, Qko): Don't make them static.
6692 (enum ftfont_cache_for): New enum.
6693 (fc_charset_table): Undo the previous change.
6694 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6695 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6696 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6697 non-scarable font, try to get AVERAGE_WIDTH.
6698 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6699 Change ft_face_cache from a list of a hash-table. Don't check
6700 `ja' and `ko' adstyle here.
6701 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6702 FTFONT_CACHE_FOR_CHARET.
6703 (ftfont_get_charset): Undo the previous change.
1ac9108a 6704 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6705 (ftfont_close): Likewise.
6706 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6707
6708 * font.c (font_sort_entites): Change the meaning of the arg
6709 BEST-ONLY. Don't optimize for VEC of lenght 1.
6710 (font_select_entity): Just return the value of font_sort_entites.
6711
6712 * xfaces.c (merge_face_vectors): Reflect font properties in
6713 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6714 font_clear_prop if a face attribute doesn't change.
6715
3c908a57
KH
6716 * charset.h (charset_ksc5601): Extern it.
6717
6718 * charset.c (charset_ksc5601): New variable.
6719 (Fdefine_charset_internal): Set charset_ksc5601.
6720 (init_charset_once): Initialize charset_ksc5601 to -1.
6721
d65859c3
DN
67222009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6723
6724 * fileio.c (history_delete_duplicates): Remove unused declaration.
6725
6726 * callint.c (history_delete_duplicates): New declaration.
6727 (Fcall_interactively): Remove command history duplicates when
6728 history_delete_duplicates is true.
6729
3ba010e5
EZ
67302009-04-14 Eli Zaretskii <eliz@gnu.org>
6731
6732 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6733
06f19b91
KH
67342009-04-14 Kenichi Handa <handa@m17n.org>
6735
6736 * font.c (Ffont_info): Fix docstring. Fix the second element of
6737 the returned value (bug#2949).
6738
2cce8bfc
CY
67392009-04-14 Chong Yidong <cyd@stupidchicken.com>
6740
6741 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6742
d156542d
KH
67432009-04-14 Kenichi Handa <handa@m17n.org>
6744
6745 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6746 encoding charset is ascii_compatible.
6747
6748 * charset.c (Fdefine_charset_internal): Make charset
6749 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6750 code_offset is 0, and covers all ASCII characters.
6751
86fa089e
SM
67522009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6753
6754 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6755 (ns_string_to_pasteboard_internal):
6756 * nsmenu.m (process_dialog):
6757 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6758 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6759 * lisp.h (Fx_load_color_file): Declare.
6760
a8a3728b
KH
67612009-04-13 Kenichi Handa <handa@m17n.org>
6762
1ac9108a 6763 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6764 (font_select_entity): Suppress the code to optimize for the same
6765 kind of fonts.
6766 (font_load_for_lface): Get a font that supports at least ASCII
6767 characters.
6768
6769 * ftfont.c (Qja, Qko): New variables.
6770 (fc_charset_table): Delete uniquifier data for iso8859-1.
6771 (ftfont_get_latin1_charset): New function.
6772 (get_adstyle_property): New function.
6773 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6774 bitmap fonts.
6775 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6776 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6777 `ko' or `ja'.
6778 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6779 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6780 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6781 property.
6782 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6783 (syms_of_ftfont): DEFSYM Qja and Qko.
6784
483670b5
KH
67852009-04-09 Kenichi Handa <handa@m17n.org>
6786
12b55765
KH
6787 * charset.c (map_charset_chars): For a charset of `superset'
6788 method, fix calculation of code range.
6789
483670b5
KH
6790 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6791 from the list of extra properties.
6792 (font_clear_prop): Be sure to delete `:name' font property.
6793
57d3b93b
KH
67942009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6795
b4b2c2ca
YM
6796 * dispnew.c (redraw_overlapping_rows): Fix detection of
6797 overlapping for topmost and bottommost rows.
6798
1ac9108a 6799 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6800
472c3609
JR
68012009-04-06 Jason Rumney <jasonr@gnu.org>
6802
6803 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6804
ab193662
KH
68052009-04-06 Kenichi Handa <handa@m17n.org>
6806
6807 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6808
6809 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6810
0c26f026
KH
68112009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6812
6813 * ftfont.c (ftfont_open): Fix checking of the return value of
6814 FT_Load_Char. Fix setting font->underline_thickness.
6815
e173bbce
CY
68162009-04-04 Chong Yidong <cyd@stupidchicken.com>
6817
6818 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6819 (Fterminal_parameters, Fterminal_parameter)
6820 (Fset_terminal_parameter): In doc string, refer to terminal
6821 objects rather than terminal ids.
6822
693a2698
EZ
68232009-04-04 Eli Zaretskii <eliz@gnu.org>
6824
6825 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6826 ret_lim_data. (Bug#2867)
6827
d5221487
CY
68282009-04-03 Chong Yidong <cyd@stupidchicken.com>
6829
6830 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6831 so they don't get wider than the window, matching 2006-01-23
6832 change to the partner function in xdisp.c (Bug#2800).
6833
223509a3
KH
68342009-04-03 Kenichi Handa <handa@m17n.org>
6835
6836 * print.c (print_object): Make each lowest sub_char_table start a
6837 new line (Bug#2866).
6838
74fcd0b1
KH
68392009-04-02 Kenichi Handa <handa@m17n.org>
6840
6841 * fontset.c (fontset_font): Record no-font when a fontset
6842 explicitly tells not to try another font-specs.
6843
c542407d
SM
68442009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6845
6846 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6847
e3869731
KH
68482009-03-30 Kenichi Handa <handa@m17n.org>
6849
d8d2f142
KH
6850 * fontset.c (fontset_from_font): Specify only registry in a
6851 font-spec for all characters supported by that registry.
6852
e3869731
KH
6853 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6854 even if HAVE_M17N_FLT is not defined.
6855
5da5f805
CY
68562009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6857
6858 * ftfont.c: Conditionalize prototyping and use of
6859 ftfont_variation_glyphs.
6860
ab226c50
SM
68612009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6862
9628fed7
SM
6863 * frame.c (delete_frame): Work around compiler bug.
6864
6865 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6866 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6867 Some more EMACS_INT.
6868 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6869
6870 * xdisp.c (dump_glyph): Fix typo.
6871
ae19ba7c
SM
6872 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6873 (adjust_markers_gap_motion, adjust_markers_for_delete)
6874 (adjust_markers_for_insert, adjust_point)
6875 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6876 (make_gap, copy_text, count_size_as_multibyte, insert)
6877 (insert_and_inherit, insert_before_markers)
6878 (insert_before_markers_and_inherit, insert_1)
6879 (count_combining_before, count_combining_after, insert_1_both)
6880 (insert_from_string, insert_from_string_before_markers)
6881 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6882 (insert_from_buffer_1, adjust_after_replace)
6883 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6884 (replace_range_2, del_range, del_range_1, del_range_byte)
6885 (del_range_both, del_range_2, modify_region)
6886 (prepare_to_modify_buffer, signal_before_change)
6887 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6888 for buffer positions and sizes.
6889 * lisp.h: Adjust prototypes accordingly.
6890
6891 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6892 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6893 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6894
ab226c50
SM
6895 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6896
46dfb8fb
JD
68972009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6898
6899 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6900 lines and columns so we keep the same pixel height and width.
6901
6902 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6903 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6904 (x_handle_net_wm_state): New function to update frame parameter
6905 fullscreen.
6906 (x_term_init): Initialize atoms for _NET_WM_STATE.
6907
6908 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6909
d347e494
SM
69102009-03-27 Kevin Ryde <user42@zip.com.au>
6911
6912 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6913 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6914 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6915 (Fgpm_mouse_stop): Pass that new parameter.
6916 * termhooks.h (close_gpm): Adjust prototype.
6917
84db11d6
SM
69182009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6919
c95a5008
SM
6920 * lisp.h (Fx_focus_frame): Declare.
6921
84db11d6
SM
6922 * callint.c (Fcall_interactively): For '^' just delegate the work to
6923 handle-shift-selection.
6924 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6925
0a1958d6
CY
69262009-03-24 Chong Yidong <cyd@stupidchicken.com>
6927
0bfdff23
CY
6928 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6929
0a1958d6
CY
6930 * data.c (Qinteractive_form): New variable.
6931 (Finteractive_form): Use it.
6932
6933 * eval.c (Fcommandp): Use Qinteractive_form.
6934
58aec0d6
JR
69352009-03-24 Jason Rumney <jasonr@gnu.org>
6936
6937 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6938 Calculate total size precisely. Decode environment variables
6939 before substituting. (Bug#38)
6940
553dd618
KH
69412009-03-24 Kenichi Handa <handa@m17n.org>
6942
6943 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6944 encoding (Bug#2722).
553dd618 6945
c39ea606
JD
69462009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6947
6948 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6949 that gdpy is set.
6950
bc9b2b5e
AM
69512009-03-22 Alan Mackenzie <acm@muc.de>
6952
6953 * callint.c (Finteractive): Clarify the doc string - even
6954 promptless elements need \n separators.
6955
9f995a76
JR
69562009-03-22 Jason Rumney <jasonr@gnu.org>
6957
6958 * w32term.c (syms_of_w32term): Doc fix for
6959 x-use-underline-position-properties.
6960
22749e9a
EZ
69612009-03-21 Eli Zaretskii <eliz@gnu.org>
6962
6963 * w32.c (getpwuid): Change argument type to unsigned.
6964 (struct w32_id): Change type of `rid' member to unsigned.
6965 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6966 argument ID to unsigned. All callers changed.
6967 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6968
e00553bf
EZ
69692009-03-20 Eli Zaretskii <eliz@gnu.org>
6970
6971 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6972 negative, produce a float value.
6973
6974 * dired.c (make_uid, make_gid): New functions.
6975 (Ffile_attributes): Use them to avoid negative UID and GID.
6976
f761d6b6
JB
69772009-03-20 Juanma Barranquero <lekktu@gmail.com>
6978
6979 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6980 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6981 Fix typos in docstrings.
6982
d507f8d7
KH
69832009-03-19 Kenichi Handa <handa@m17n.org>
6984
6985 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6986 changed, use font_load_for_lface to get a new font object.
6987 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6988
6989 * frame.c (x_set_font): Handle the case that ARG is a cons.
6990
c68845e0
GM
69912009-03-19 Glenn Morris <rgm@gnu.org>
6992
6993 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6994
bfa49dd1
CY
69952009-03-19 Chong Yidong <cyd@stupidchicken.com>
6996
6997 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6998
8458d4c1
KH
69992009-03-19 Kenichi Handa <handa@m17n.org>
7000
7001 * charset.c (load_charset_map_from_file): When a mapfile can't be
7002 loaded, signal an error.
7003
78e7d1fe
EZ
70042009-03-18 Eli Zaretskii <eliz@gnu.org>
7005
7006 * dired.c (Ffile_attributes): Make sure UID and GID are always
7007 positive, even if the value is too large for a positive EMACS_INT.
7008 Doc fix.
7009
7010 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7011
5da9fdfa
YM
70122009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7013
7014 * xmenu.c (xdialog_show): Move Fredisplay call ...
7015 (Fx_popup_dialog): ... here.
7016
7519c40d
SM
70172009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7018
7019 * dired.c (file_name_completion): Disable the first optimization just
7020 installed, since it is not implemented correctly.
7021
2cd298e2
SM
70222009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7023
7024 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7025 only if the entry can affect bestmatch.
2cd298e2
SM
7026 Stop the search early, as Ftry_completion already does.
7027
48d37adf
CY
70282009-03-17 Chong Yidong <cyd@stupidchicken.com>
7029
e10c9c93 7030 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7031
9286b16a
CY
70322009-03-15 Chong Yidong <cyd@stupidchicken.com>
7033
7034 * keyboard.c (parse_menu_item): Don't display remappings as menu
7035 equivalent bindings (Bug#788).
7036
f7b146dc
JR
70372009-03-15 Jason Rumney <jasonr@gnu.org>
7038
7039 * w32term.h (WM_EMACS_PAINT): New message.
7040 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7041 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7042 before passing to lisp thread. (Bug#950)
7043
f761d6b6 70442009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7045
d93f9575
CY
7046 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7047 variable as it was never reset.
7048 (ns_term_init): Remove initialization of Lisp-settable defaults
7049 and ns_expand_space.
7050 (-setPanelFromDefaultValues): Remove ns_expand_space.
7051 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7052 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7053 i.e. no additional spacing, similar to Carbon port.
7054
d93f9575
CY
7055 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7056 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7057
305018ec
JD
70582009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7059
7060 * sound.c (alsa_configure): Remove call to deprecated
7061 snd_pcm_sw_params_set_xfer_align.
7062
f761d6b6 70632009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7064
7065 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7066 after clicking in a detached tool bar.
7067 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7068
46e722a9
SM
70692009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7070
348db3dd
SM
7071 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7072 int/Lisp_Object mixup).
46e722a9 7073
a3d16f39
KH
70742009-03-13 Kenichi Handa <handa@m17n.org>
7075
7076 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7077 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7078 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7079 (set_fontset_font): Change ARG to a vector. Handle range_list in
7080 ARG correctly.
7081 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7082 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7083 the above change.
7084 (fontset_from_font): Fix previous change.
fe24f56a 7085 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7086 entry. If FONTSET is the default fontset, don't set the extra
7087 slot of the returning char-table.
7088
b066e6b6
JB
70892009-03-12 Juanma Barranquero <lekktu@gmail.com>
7090
7091 * nsfns.m (Fx_close_connection): Doc fix.
7092 (Fns_do_applescript): Reflow docstring.
7093 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7094 (Fx_display_pixel_width, Fx_display_pixel_height)
7095 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7096 Fix typos in docstrings.
7097 (Fns_set_alpha): Fix typos in error messages.
7098
d472514e 70992009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7100
d472514e 7101 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7102 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7103 were used for such events.
7104
d472514e
JB
7105 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7106 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7107
d472514e 7108 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7109 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7110
fb930676
KH
71112009-03-11 Kenichi Handa <handa@m17n.org>
7112
ff85581a
KH
7113 * font.h (font_open_by_spec): Extern it.
7114
c50b7e98
KH
7115 * font.c (font_open_by_spec): New function.
7116 (font_open_by_name): Use font_open_by_spec.
7117
fb930676
KH
7118 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7119 fontset of the frame.
7120
7121 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7122 modify the default font of frames that use this fontset.
7123 (num_auto_fontsets): New variable.
7124 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7125 name. Be sure to set FONTSET_ASCII to the correct font name.
7126 (update_auto_fontset_alist): New function.
7127
df4e8455
JB
71282009-03-11 Juanma Barranquero <lekktu@gmail.com>
7129
7130 * makefile.w32-in: Update dependencies.
7131
0a375797
AR
71322009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7133
7134 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7135
61313fa3
SM
71362009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7137
7138 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7139
b55103fb
CY
71402009-03-10 Chong Yidong <cyd@stupidchicken.com>
7141
7142 * lread.c (Feval_buffer): Doc fix.
7143
dde2559c
KH
71442009-03-09 Kenichi Handa <handa@m17n.org>
7145
7146 * charset.c (Qfile_name_handler_alist): Extern it.
7147 (load_charset_map_from_file): Temporarily bind
7148 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7149
df4e8455 71502009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7151
47f588bb
GM
7152 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7153 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7154
4ddf94bd
AR
71552009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7156
4c9bdfc2
AR
7157 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7158 (x_set_window_size): Change back to calculated method of setting
7159 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7160 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7161 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7162
fe41ae9e
AR
7163 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7164
4c9bdfc2
AR
7165 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7166 accelerator in parens under GNUstep.
7167
825d0875
KH
71682009-03-06 Kenichi Handa <handa@m17n.org>
7169
7170 These changes are to detect incorrect composition sequence without
f3b3be74 7171 looking ahead the source. (Bug#2370)
825d0875
KH
7172
7173 * coding.h: Include "composite.h".
7174 (enum compisition_state): New enum.
7175 (struct compisition_status): New struct.
7176 (struct iso_2022_spec): New member cmp_status.
7177 (struct emacs_mule_spec): New struct.
7178 (struct coding_system): New members ctext_extended_segment_len and
7179 embedded_utf_8. Change the union member
7180 spec.emacs_mule_full_support to spec.emacs_mule.
7181
7182 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7183 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7184 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7185 (ADD_COMPOSITION_DATA): New arg nbytes.
7186 (emacs_mule_char): New arg cmp_status.
7187 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7188 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7189 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7190 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7191 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7192 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7193 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7194 (EMACS_MULE_COMPOSITION_END): New macro.
7195 (emacs_mule_finish_composition): New function.
7196 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7197 (decode_coding_emacs_mule): Avoid long looking ahead while
7198 handling composition.
7199 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7200 (ENCODE_COMPOSITION_RULE): New macro.
7201 (finish_composition): New function.
7202 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7203 (DECODE_COMPOSITION_START): New implementation.
7204 (DECODE_COMPOSITION_END): Likewise.
7205 (STORE_COMPOSITION_RULE): New macro.
7206 (decode_coding_iso_2022): Avoid long looking ahead while handling
7207 composition, CTEXT extended segment, and embedded UTF-8.
7208 (setup_coding_system): For a coding of type iso-2022, reset
7209 CODING_ISO_EXTSEGMENT_LEN (coding) and
7210 CODING_ISO_EMBEDDED_UTF_8 (coding).
7211 (get_translation): Delete arguments last_block, from_nchars,
7212 to_nchars. Callers changed.
7213 (produce_chars): Don't modify charbuf. Adjusted for the change of
7214 get_translation.
98a326f7 7215 (produce_composition): Adjust for the new annotation sequence.
825d0875 7216 (handle_composition_annotation): Likewise.
98a326f7 7217 (consume_chars): Adjust for the change of get_translation.
825d0875 7218
ccbc4452
AR
72192009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7220
4ddf94bd 7221 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7222
988a7ddb
KH
72232009-03-05 Kenichi Handa <handa@m17n.org>
7224
7225 * font.c (font_select_entity): New function.
7226 (font_find_for_lface): Use font_select_entity to select a font.
7227
7228 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7229 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7230 font with C restriction.
7231
98a326f7 72322009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7233
be1bce46 7234 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7235
10ea2b82
JR
72362009-03-04 Jason Rumney <jasonr@gnu.org>
7237
2c93b248 7238 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7239 characters that have already been read. (Bug#2569)
2c93b248 7240
10ea2b82
JR
7241 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7242 Log an error message if check_image_size failed.
7243 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7244 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7245
71a0c011
EZ
72462009-03-02 Eli Zaretskii <eliz@gnu.org>
7247
7248 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7249 when decoding process output.
7250
2f63bba8
RS
72512009-03-01 Richard M Stallman <rms@gnu.org>
7252
7253 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7254
7255 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7256
0a9564cb
EZ
72572009-02-28 Eli Zaretskii <eliz@gnu.org>
7258
7259 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7260 (decode_coding_emacs_mule, decode_coding_iso_2022)
7261 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7262 (decode_coding_raw_text, decode_coding_charset)
7263 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7264 Honor inhibit-eol-conversion. (Bug #2186)
7265
449148b3
JR
72662009-02-28 Jason Rumney <jasonr@gnu.org>
7267
7268 * coding.c (detect_coding_charset): If not checking latin extra,
7269 fail on characters between 0x80 and 0xA0. (Bug#2354)
7270
a4aee864
EZ
72712009-02-28 Eli Zaretskii <eliz@gnu.org>
7272
7273 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7274 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7275
d88bee5a
GM
72762009-02-27 Glenn Morris <rgm@gnu.org>
7277
7278 * callint.c (Finteractive): Doc fix.
7279
a808f22d
KH
72802009-02-27 Kenichi Handa <handa@m17n.org>
7281
7282 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7283
caf8d60c
CY
72842009-02-27 Chong Yidong <cyd@stupidchicken.com>
7285
7286 * font.c (font_style_to_value): Set value for unknown symbols to
7287 100 instead of 255.
b61137ea
CY
7288 (weight_table, slant_table, width_table): Treat "unspecified" as
7289 the default value.
caf8d60c 7290
1a0de25c
JB
72912009-02-26 Juanma Barranquero <lekktu@gmail.com>
7292
7293 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7294
8fc45744
JB
72952009-02-25 Juanma Barranquero <lekktu@gmail.com>
7296
107bd7d1
JB
7297 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7298 error as soon as a recursive load is detected.
8fc45744 7299
f097e223
AR
73002009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7301
7302 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7303 before caching.
7304
8810a12f
KH
73052009-02-24 Kenichi Handa <handa@m17n.org>
7306
7307 * fontset.c (fontset_find_font): Fix the condition for checking
7308 unavailable font.
7309
2c7d1565
GM
73102009-02-24 Glenn Morris <rgm@gnu.org>
7311
7312 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7313 whitespace that confuses documentation.
7314
a20878b6
MB
73152009-02-23 Miles Bader <miles@gnu.org>
7316
7317 * process.c (Flist_system_processes, Fprocess_attributes)
7318 (syms_of_process): Rename `system-process-attributes' to
7319 `process-attributes'.
7320
b3b58c01
AS
73212009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7322
1b3b981b
AS
7323 * coding.h (struct coding_system): Make safe_charsets a pointer to
7324 unsigned char.
7325 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7326 being 255.
7327 (SAFE_CHARSET_P): Likewise.
7328 (setup_iso_safe_charsets): Properly setup safe_charsets.
7329 (Fdefine_coding_system_internal): Likewise.
7330 (setup_coding_system): Likewise. Remove unneeded casts.
7331 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7332 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7333 unneeded casts.
7334
b3b58c01
AS
7335 * insdel.c (del_range_2): Don't modify gap contents when called
7336 from decode_coding_object. (Bug#1809)
7337
0b6f228c
CY
73382009-02-21 Chong Yidong <cyd@stupidchicken.com>
7339
7340 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7341 Qfont_object.
7342 (Ftype_of): Recognize font objects.
7343
7344 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7345
7346 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7347 moved to data.c.
7348
52f8870b
AR
73492009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7350
7351 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7352 async_iconified. Based on a patch by Christian Lynbech
7353 <christian.lynbech@tieto.com>.
7354 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7355
7087d5e9
GM
73562009-02-20 Glenn Morris <rgm@gnu.org>
7357
7358 * syntax.c (Fskip_chars_forward): Fix doc typo.
7359
41d2ceef
CY
73602009-02-20 Chong Yidong <cyd@stupidchicken.com>
7361
7362 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7363
1a3b7ca6
CY
73642009-02-19 Chong Yidong <cyd@stupidchicken.com>
7365
7366 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7367
73cce38d
KH
73682009-02-19 Kenichi Handa <handa@m17n.org>
7369
7370 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7371 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7372
a51092ee
DN
73732009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7374
7375 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7376
c423ecca
KH
73772009-02-18 Kenichi Handa <handa@m17n.org>
7378
7379 * font.c (font_check_otf_features): Fix handling of `nil' element.
7380 (Ffont_spec): Describe :lang and :otf in the docstring.
7381
4c1958f4
AS
73822009-02-16 Andreas Schwab <schwab@suse.de>
7383
7384 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7385 string.
7386
5704f39a
KH
73872009-02-16 Kenichi Handa <handa@m17n.org>
7388
7389 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7390 (Bug#1723)
5704f39a 7391
8f0085aa
CY
73922009-02-14 Chong Yidong <cyd@stupidchicken.com>
7393
a057d86a 7394 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7395
7396 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7397 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7398
aff01dd9
EZ
73992009-02-14 Eli Zaretskii <eliz@gnu.org>
7400
7401 * msdos.c (MAX_SCREEN_BUF): New macro.
7402 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7403 Encode the entire run of glyphs sharing the same face, instead of
7404 doing that one glyph at a time (fixes a bug with displaying
7405 double-size characters).
7406
ba301db3
AR
74072009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7408
7409 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7410
7411 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7412 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7413 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7414
7415 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7416 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7417
51d861de
SM
74182009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7419
ac146f82 7420 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7421 invisible areas.
7422
7fed8996
JR
74232009-02-12 Jason Rumney <jasonr@gnu.org>
7424
631ea4fb
JR
7425 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7426 (add_font_entity_to_list): Call check_face_name even when family
7427 is unspecified.
7428
cb4a3e42
JR
7429 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7430 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7431 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7432
7fed8996 7433 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7434 raster fonts. (Bug#2219)
7fed8996 7435
895416e3
KH
74362009-02-12 Kenichi Handa <handa@m17n.org>
7437
7438 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7439 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7440 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7441 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7442 (find_automatic_composition): While looking forward and backward,
7443 check static composition. Fix where to stop looking forward.
7444 (composition_adjust_point): Fix checking of static composition.
7445 (Fcomposition_get_gstring): Pay attention to
1dacf998 7446 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7447
7448 * lisp.h (fast_looking_at): Extern it.
7449
7450 * search.c (fast_looking_at): New function.
7451
51d861de 7452 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7453 <struct glyph>.u.cmp.to.
7454 (append_composite_glyph): Likewise.
7455
51d861de 7456 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7457 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7458 composition.
51d861de 7459 (append_composite_glyph): Adjust for the change of
895416e3
KH
7460 <strcut glyph>.u.cmp.to.
7461
8510724d
JB
74622009-02-11 Juanma Barranquero <lekktu@gmail.com>
7463
7464 * casetab.c (init_casetab_once):
7465 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7466 * font.c (font_update_lface):
7467 * fontset.c (Fnew_fontset):
7468 * ftfont.c (ftfont_drive_otf):
7469 * xfont.c (xfont_open):
7470 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7471
294fa707
SM
74722009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7473
7474 * fileio.c (Fwrite_region): !NILP -> CONSP.
7475
b5bfebec
AS
74762009-02-10 Andreas Schwab <schwab@suse.de>
7477
7478 * process.c (send_process): Properly relocate pointer into data
adab88bd 7479 when using encoded data. (Bug#2272)
b5bfebec 7480
cb84a2be
KH
74812009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7482
7483 * coding.c (detect_coding_charset): Fix previous change.
7484
89e09428
JR
74852009-02-08 Jason Rumney <jasonr@gnu.org>
7486
7487 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7488 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7489
4470a277
AS
74902009-02-07 Andreas Schwab <schwab@suse.de>
7491
7492 * unexelf.c (unexec): Fix error message.
7493
3175b12a
AR
74942009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7495
7496 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7497 when modal window is active. (Bug #2152)
3175b12a
AR
7498 (applicationShouldTerminate:): Remove now-unneeded while loop
7499 around NSRunAlertPanel.
7500
7501 * nsmenu.m (popupSession): New file-global variable.
7502 (pop_down_menu): End the popupSession before closing dialog.
7503 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7504 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7505 don't query NSApp for events (just sleep instead).
7506
8434d0b8
EZ
75072009-02-07 Eli Zaretskii <eliz@gnu.org>
7508
51d861de
SM
7509 * coding.c (syms_of_coding) <translation-table-for-input>:
7510 Modify doc string to discourage use for character code unification.
8434d0b8 7511
aa82edfd
CY
75122009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7513
7514 * atimer.c (run_timers): Update pending_atimers.
7515
2d283c7c
CY
75162009-02-06 Chong Yidong <cyd@stupidchicken.com>
7517
eb306cab
CY
7518 * image.c (svg_load_image): Fix last change.
7519
2d283c7c
CY
7520 * xfns.c (Fx_create_frame): Signal an error if no font is
7521 found (Bug#2147).
7522
4d8e170e
JB
75232009-02-05 Juanma Barranquero <lekktu@gmail.com>
7524
7525 * character.c (syms_of_character) <script-representative-chars>:
7526 Fix typo in docstring.
7527
c96169a0
AR
75282009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7529
7530 * nsmenu.m (pop_down_menu): New function.
7531 (ns_popup_dialog): Call it on unwind.
7532 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7533 call timer_check() (Bug#2154).
7534 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7535 handling_signal is set.
7536 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7537
31fd7c5c 7538 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7539
7540 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7541
7542 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7543
51d861de
SM
7544 * keyboard.c (poll_for_input_1, handle_async_input):
7545 Set handling_signal under HAVE_NS.
c96169a0 7546
aacd8ba1
GM
75472009-02-04 Glenn Morris <rgm@gnu.org>
7548
7549 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7550
4cb75c4b
KH
75512009-02-04 Kenichi Handa <handa@m17n.org>
7552
7553 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7554
7555 * charset.c (Fchar_charset): New optional arg restriction.
7556
7557 * coding.h (coding_system_charset_list): Extern it.
7558
7559 * coding.c (coding_system_charset_list): New function.
7560
7561 * composite.c: Include coding.h and termhooks.h.
7562 (composition_gstring_p): Fix for the terminal case.
7563 (composition_gstring_width): Likewise.
7564 (fill_gstring_body): Likewise.
7565 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7566 the frame.
7567 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7568 is within a composition.
867d4bb3 7569 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7570
7571 * term.c (encode_terminal_code): Fix handling of composition.
7572 (produce_composite_glyph): For static composition, get pixel_width
7573 from struct composition.
7574
826ba17e
AS
75752009-02-02 Andreas Schwab <schwab@suse.de>
7576
7577 * unexelf.c (unexec): Handle unaligned bss offset.
7578
8ad093db
AR
75792009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7580
7581 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7582 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7583
8ad093db
AR
7584 * keyboard.c (handle_interrupt): Don't call
7585 quit_throw_to_read_char() under NS.
d0a76a6e 7586
8ad093db
AR
7587 * blockinput.h: Remove NS-specific code.
7588
4d18a7a2
DN
75892009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7590
db878925
DN
7591 * dispnew.c (window_change_signal): Don't try to get the size of a
7592 suspended tty frame.
7593 * term.c (Fresume_tty): Resize if the size has changed while the
7594 tty was suspended.
7595
4d18a7a2
DN
7596 * alloc.c (mark_stack): Properly conditionalize previous change.
7597
8984df7c
JB
75982009-01-30 Juanma Barranquero <lekktu@gmail.com>
7599
7600 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7601 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7602 Remove; this code is not used on Windows.
7603
75f4f1ac
EZ
76042009-01-30 Eli Zaretskii <eliz@gnu.org>
7605
7606 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7607 EOLs that also has stray ^M characters.
7608
07a1e794
JB
76092009-01-30 Juanma Barranquero <lekktu@gmail.com>
7610
7611 * atimer.c (run_timers, alarm_signal_handler):
7612 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7613 * w32inevt.c (w32_console_read_socket):
7614 * w32term.c (w32_read_socket):
7615 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7616
a8b11cc9
CY
76172009-01-30 Chong Yidong <cyd@stupidchicken.com>
7618
7619 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7620 Initialize it as a relative filename pattern.
7621 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7622 (Fcall_process_region): Simplify temp file creation using
7623 temporary-file-directory.
7624
c279587b
EZ
76252009-01-29 Eli Zaretskii <eliz@gnu.org>
7626
7627 * msdos.c: Rename pending_signals to msdos_pending_signals.
7628 (sig_suspender, sigprocmask): Adjust.
7629
a8fe3242
CY
76302009-01-29 Chong Yidong <cyd@stupidchicken.com>
7631
7632 * keyboard.c (pending_signals): New var.
7633 (poll_for_input, input_available_signal, init_keyboard): Set it.
7634 (process_pending_signals): New function.
7635
7636 * lisp.h (QUIT): Check pending_signals instead of
7637 interrupt_input_pending. Use process_pending_signals.
7638
51d861de 7639 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7640
51d861de 7641 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7642
7643 * sysdep.c (emacs_write): Use process_pending_signals.
7644
7645 * xterm.c (XTread_socket): Update pending_signals.
7646
7647 * w32term.c (w32_read_socket): Update pending_signals.
7648
7649 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7650
6570a1c4
KH
76512009-01-29 Kenichi Handa <handa@m17n.org>
7652
7653 * xftfont.c (xftfont_has_char): New function.
7654 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7655
d72a4afa
AR
76562009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7657
7658 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7659 under GNUstep.
7660 (ns_query_color): New declaration.
7661
7662 * nsterm.m (ns_confirm_quit): New variable.
7663 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7664 (EmacsApp-applicationShouldTerminate:): Use it.
7665 (EmacsPrefsController): Let user set it.
7666 (ns_query_color): New function.
7667 (ns_defined_color): Use it.
7668 (ns_initialize): Drop.
7669 (ns_term_init): Add two lines from ns_initialize(), and set
7670 input_interrupt_mode to nil.
7671
7672 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7673 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7674
9fe78804
KH
76752009-01-28 Kenichi Handa <handa@m17n.org>
7676
7677 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7678 (fontset_get_font_group): Remember that no font-group is specified
7679 for C.
9fe78804 7680
fa57de36
CY
76812009-01-27 Chong Yidong <cyd@stupidchicken.com>
7682
930600e9
CY
7683 * fns.c (concat): Check for string overflow (bug#1787).
7684
fa57de36
CY
7685 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7686 Quadruple undo limits (bug#1501).
7687
7179ce7b
KH
76882009-01-27 Kenichi Handa <handa@m17n.org>
7689
7690 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7691 directly use GT_Get_Char_index.
7692
7693 * xftfont.c (struct xftfont_info): New member `index'.
7694
7695 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7696 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7697
5be8fcc0
CY
76982009-01-26 Kenichi Handa <handa@m17n.org>
7699
7700 * fontset.c (fontset_find_font): Fix handling of non-cons return
7701 value of fontset_get_font_group.
7702 (fontset_font): Revert last change.
7703
19ae3e61
JR
77042009-01-26 Jason Rumney <jasonr@gnu.org>
7705
7706 * w32font.c (w32font_list_internal): Return quickly if registry is
7707 unknown. Simplify final return.
7708 (add_font_entity_to_list): Break complex logic down into more
7709 manageable chunks. Move unknown registry check to
7710 w32font_list_internal.
7711
8612b71a
AR
77122009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7713
7714 Changes to remove Feval calls from GUI under NS.
7715
d8038940
JB
7716 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7717 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7718 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7719
7720 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7721 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7722 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7723 instead of NON_ASCII_KEYSTROKE_EVENT.
7724 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7725 (EmacsApp-applicationShouldTerminate:): Query user.
7726 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7727 instead of Feval.
7728
7729 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7730
7731 * keyboard.c (kbd_buffer_get_event): Check for it.
7732 (keys_of_keyboard): Define lispy keys for
7733 ns-put/unput-working-text.
7734
7735 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7736 versions.
7737 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7738
6288ae55
CY
77392009-01-25 Chong Yidong <cyd@stupidchicken.com>
7740
7741 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7742 setting current_buffer directly. (Bug#2044)
6288ae55 7743
289e7f8f
CY
77442009-01-24 Chong Yidong <cyd@stupidchicken.com>
7745
5ce87308 7746 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7747 any work. (Bug#1952, bug#1990).
5ce87308 7748
64cc3cf6 7749 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7750
b3243e6f
AR
77512009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7752
7753 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7754 (ns_no_defaults): New declaration.
7755 (main): Use it.
e0d2e69a 7756
d900b2af 7757 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7758
d900b2af 7759 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7760
d900b2af
AR
7761 * nsterm.m (ns_no_defaults): New variable.
7762 (ns_initialize): Don't read defaults when ns_no_defaults.
7763 (EmacsView-readSelectionFromPasteboard:)
7764 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7765 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7766 (ns_dumpglyphs_stretch): New function.
7767 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7768 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7769
e0d2e69a
AR
7770 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7771
3ac71f5d
CY
77722009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7773
7774 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7775 call for Sparc64.
7776
3fe53a83
AR
77772009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7778
7779 * nsfns.m:
7780 * nsgui.h:
7781 * nsmenu.m:
7782 * nsselect.m:
7783 * nsterm.h:
7784 * nsterm.m: Remove '23' comments that indicated code added during
7785 update from emacs-20 -> emacs-23.
7786
10f87c6f 77872009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7788
7789 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7790 ns_alternate_modifier. (Bug#1217)
a3b53a85 7791
c7cef62d
AR
7792 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7793 Display all shortcuts, including those w/o super modifier.
7794
575fb8bd
AR
7795 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7796
918b848b
CY
77972009-01-22 Chong Yidong <cyd@stupidchicken.com>
7798
7799 * fileio.c (Vwrite_region_post_annotation_function)
7800 (Vwrite_region_annotation_buffers): New vars.
7801 (build_annotations_unwind): Just reset
7802 Vwrite_region_annotation_buffers.
7803 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7804 Call write-region-post-annotation-function.
7805 (build_annotations): Add to Vwrite_region_annotation_buffers if
7806 buffer changes.
7807
a39e2539
AR
78082009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7809
7810 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7811 Tiger.
51d861de
SM
7812 * nsfns.m (ns_do_applescript):
7813 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7814
35ed44db
AR
78152009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7816
7817 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7818
cbe0b5bf
AR
78192009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7820
7821 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7822
6049d3a0
AR
7823 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7824
7825 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7826 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7827 handle Ctrl-tab. (Bug#1841)
7828 (ns_get_color): Use unsigned long long for scanned hex string value.
7829 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7830 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7831 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7832 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7833 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7834 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7835 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7836
d3810c21 7837 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7838 DPI. (Bug#1316)
d3810c21
AR
7839 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7840 values in onTiger section.
4c7077c3 7841
e301e634
CY
78422009-01-19 Chong Yidong <cyd@stupidchicken.com>
7843
7f82490b
CY
7844 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7845 Check return value of font_spec_from_name.
64cc3cf6 7846 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7847
7848 * font.c (font_spec_from_name): Return Qnil if font name could not
7849 be parsed.
7850 (font_parse_name): Treat a `?' character as part of an XLFD.
7851
e301e634
CY
7852 * fns.c (Fsubstring): Doc fix.
7853
1c0db158
KH
78542009-01-19 Kenichi Handa <handa@m17n.org>
7855
51d861de 7856 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7857 (ftfont_list): Likewise.
7858
acf20901
JB
78592009-01-18 Juanma Barranquero <lekktu@gmail.com>
7860
fff4e459
JB
7861 * dbusbind.c (Fdbus_register_signal):
7862 * process.c (conv_sockaddr_to_lisp):
7863 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7864
acf20901
JB
7865 * callproc.c (Fgetenv_internal): Doc fix.
7866
e7abcdfb
CY
78672009-01-16 Chong Yidong <cyd@stupidchicken.com>
7868
7869 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7870 it is not even used.
7871
b60861e6
GM
78722009-01-16 Glenn Morris <rgm@gnu.org>
7873
7874 * font.c (Ffont_variation_glyphs): Silence compiler.
7875
8db52afe
JB
78762009-01-15 Juanma Barranquero <lekktu@gmail.com>
7877
7878 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7879 Reported by David Robinow <drobinow@gmail.com>.
7880
4cddb209
KH
78812009-01-15 Kenichi Handa <handa@m17n.org>
7882
51d861de 7883 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7884
f247f67b
JR
78852009-01-14 Jason Rumney <jasonr@gnu.org>
7886
7887 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7888 never a fontset. (Bug#1562)
f247f67b 7889
f56a4450
KH
78902009-01-14 Kenichi Handa <handa@m17n.org>
7891
7892 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7893 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7894
4e99855e
CY
78952009-01-13 Chong Yidong <cyd@stupidchicken.com>
7896
7897 * font.c (font_clear_prop): If clearing the family, clear the font
7898 width index too.
7899
fff4e459 7900 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7901
24f01470
JB
79022009-01-12 Juanma Barranquero <lekktu@gmail.com>
7903
7904 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7905 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7906 functions, use sizeof.
7907
a41240a3
MR
79082009-01-12 Martin Rudalics <rudalics@gmx.at>
7909
7910 * keyboard.c (read_char): Fix case where last_nonmenu_event
7911 returned a bad value with submenus. (Bug#447)
7912
944636b8
CY
79132009-01-12 Chong Yidong <cyd@stupidchicken.com>
7914
7915 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7916 family, clear the font width index too.
7917
0dad7c6f
JR
79182009-01-11 Jason Rumney <jasonr@gnu.org>
7919
7920 * keyboard.c (cmd_error_internal): Exit when errors occur before
7921 frame creation and not in daemon mode. (Bug#1836)
7922
7c2363af
CY
79232009-01-10 Chong Yidong <cyd@stupidchicken.com>
7924
7925 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7926 of a display vector, backtrack.
7927 (try_window_reusing_current_matrix): Check glyph type before
7928 referencing charpos member.
7929
97b1b294
EZ
79302009-01-10 Eli Zaretskii <eliz@gnu.org>
7931
7932 Fix Bug #876:
7933
7934 * coding.c (inhibit_null_byte_detection): New variable.
7935 (detect_coding, detect_coding_system): Don't pay attention to null
7936 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7937 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7938 <inhibit-iso-escape-detection>: Doc fix.
7939
4624b6e3
JR
79402009-01-09 Jason Rumney <jasonr@gnu.org>
7941
7942 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7943 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7944 Only report Unicode Plane 2 fonts as unicode-sip.
7945
323b840c
CY
79462009-01-09 Chong Yidong <cyd@stupidchicken.com>
7947
51d861de
SM
7948 * xfaces.c (Fx_font_family_list): Delete function.
7949 Move compatibility version to faces.el.
323b840c 7950
51d861de 7951 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7952
eba7400d
MR
79532009-01-09 Martin Rudalics <rudalics@gmx.at>
7954
7955 * frame.c (x_set_frame_parameters): Remember requested value for
7956 fullscreen before it's reset by the parameter handler.
7957
4b09796d
GM
79582009-01-09 Glenn Morris <rgm@gnu.org>
7959
7960 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7961 (last_command_event): ... and update all users.
4b09796d
GM
7962 (last_input_char): For clarity, rename to...
7963 (last_input_event): ... and update all users.
7964 (last-command-char, last-input-char): Move to subr.el as aliases.
7965 * cmds.c, commands.h: Update for last_command_char rename.
7966
14ccea62
CY
79672009-01-08 Chong Yidong <cyd@stupidchicken.com>
7968
51d861de 7969 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7970
5f004711
JR
79712009-01-08 Jason Rumney <jasonr@gnu.org>
7972
7973 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7974 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7975 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7976 Don't declare.
fff4e459 7977 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7978 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7979
b71f6f73
KH
79802009-01-07 Kenichi Handa <handa@m17n.org>
7981
50b06221 7982 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7983 remember the coding system used for decoding in
50b06221
KH
7984 coding_system (Bug#1039).
7985
b71f6f73 7986 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7987 breaking the loop. (Bug#870)
b71f6f73
KH
7988 (decode_coding_utf_16, decode_coding_emacs_mule)
7989 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7990 (decode_coding_charset): Likewise.
7991
56f668f7
MR
79922009-01-05 Martin Rudalics <rudalics@gmx.at>
7993
7994 * frame.c (x_set_frame_parameters): Make sure height (width) get
7995 applied when fullwidth (fullheight) is set. (Bug#1522)
7996
5da9424d
JB
79972009-01-04 Juanma Barranquero <lekktu@gmail.com>
7998
7999 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8000 (utc_base): Declare as ULONGLONG, not long double.
8001 (convert_time_raw): Delete.
8002 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8003 (initialize_utc_base): New function.
8004 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8005 (convert_from_time_t): Use initialize_utc_base; compute result with
8006 64-bit arithmetic.
8007 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8008
c4605e09
EZ
80092009-01-03 Eli Zaretskii <eliz@gnu.org>
8010
9acef61c 8011 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8012 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8013 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8014 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8015 [!subprocesses]: Define.
8016 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8017 (Flist_system_processes, Fsystem_process_attributes)
8018 [!subprocesses]: Call list_system_processes and
8019 system_process_attributes instead of returning Qnil.
8020
9acef61c
JB
8021 * dosfns.c (system_process_attributes, list_system_processes):
8022 New functions.
c4605e09
EZ
8023
8024 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8025
8026 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8027 Don't use the default (no-op) implementation.
8028
8b7d0a16
JR
80292009-01-03 Jason Rumney <jasonr@gnu.org>
8030
a6d46bc1
JR
8031 * keyboard.c (parse_modifiers_uncached): Wheel events are
8032 clicks (bug#687).
8033
8b7d0a16
JR
8034 * w32term.c (x_query_colors, x_query_color): New functions.
8035
8036 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8037 (svg_load_image): Cast returned pointers from dynamically loaded
8038 functions. Eliminate W32 specific code.
8039
bfe11752
DN
80402009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8041
89e2438a
DN
8042 * nsfns.m (x_set_foreground_color, x_set_background_color)
8043 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8044 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8045 x_ prefix instead of ns_. Update references.
8046 (syms_of_nsfns): Add a FIXME comment.
8047
8048 * nsterm.m (x_set_cursor_type): New prototype.
8049 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8050
bfe11752
DN
8051 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8052 for Solaris instead of incorrectly providing Qutime and Qcutime.
8053
031da700
EZ
80542009-01-02 Eli Zaretskii <eliz@gnu.org>
8055
8056 * w32.c (process_times): Compute sum of utime and stime.
8057 (system_process_attributes): Add Qtime to the alist.
8058
8059 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8060 and add them to the alist.
8061
8062 * process.c (top level) <Qtime, Qctime>: New variables.
8063 (syms_of_process): staticpro them.
8064 (Fsystem_process_attributes): Add their documentation to the doc
8065 string.
8066
8067 * process.h: Declare Qtime and Qctime.
8068
df23bf08
JR
80692009-01-02 Jason Rumney <jasonr@gnu.org>
8070
9acef61c 8071 * image.c (Qgobject): New symbol.
df23bf08
JR
8072 (syms_of_image): Initialize it.
8073 (init_svg_functions): Load some functions from gobject library.
8074
5bbdf7aa
DN
80752009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8076
8077 * frame.c (make_terminal_frame): Remove redundant code and useless
8078 block.
8079
63136da6
AS
80802009-01-01 Andreas Schwab <schwab@suse.de>
8081
8082 * process.c (conv_sockaddr_to_lisp): Add workaround for
8083 getsockname bug on BSD.
8084
9ef69046
CY
80852009-01-01 Chong Yidong <cyd@stupidchicken.com>
8086
d6fafbe0
CY
8087 * xfns.c (x_create_tip_frame): Set border width of the X window.
8088
51d861de 8089 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8090
f9c34147
JR
80912009-01-01 Jason Rumney <jasonr@gnu.org>
8092
9acef61c 8093 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8094 Don't block input, as per earlier xterm.c changes.
8095
f5497e45
AR
80962008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8097
8098 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8099 (ns_appkit_version_int): New function.
8100 (x-server-version): Use ns_appkit_version_int and follow 21+
8101 convention of returning 3 integers.
8102
c19cab20
KH
81032008-12-30 Kenichi Handa <handa@m17n.org>
8104
8105 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8106 (CHAR_SURROGATE_PAIR_P): New macro.
8107
8108 * font.h (struct font_driver): New member get_variation_glyphs.
8109
9acef61c 8110 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8111 (Ffont_variation_glyphs): New function.
8112 (syms_of_font): Defsubr it.
8113
8114 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8115 ftfont_variation_glyphs.
8116 (setup_otf_gstring): New function.
8117 (ftfont_drive_otf): Use it.
8118 (ftfont_shape_by_flt): Handle variation selector.
8119 (ftfont_variation_glyphs): New function.
8120
28cd591f
MR
81212008-12-30 Martin Rudalics <rudalics@gmx.at>
8122
8123 * frame.c (Vemacs_iconified): Remove.
8124
7f714baf
JR
81252008-12-30 Jason Rumney <jasonr@gnu.org>
8126
8127 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8128 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8129
9d2d22ab
CY
81302008-12-30 Chong Yidong <cyd@stupidchicken.com>
8131
8132 * indent.c (Fvertical_motion): Don't advance iterator if we have
8133 reseated to the desired position.
8134
8135 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8136 checking for pos match.
8137
545312c2
KH
81382008-12-30 Kenichi Handa <handa@m17n.org>
8139
1ede3eb6
KH
8140 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8141 just get the low 8-bit of the code.
8142
545312c2
KH
8143 * font.c (font_intern_prop): Validate str as multibyte.
8144
bd7bbf29
DN
81452008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8146
31e0750e
DN
8147 * dispextern.h (struct face): Move lface and hash from the middle
8148 of bitfields.
8149
bd7bbf29
DN
8150 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8151
b5672e7c
DN
81522008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8153
8154 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8155 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8156 instead of intervals.h.
8157
d704470f
AS
81582008-12-26 Andreas Schwab <schwab@suse.de>
8159
8160 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8161 cons.
8162
54b33868
MR
81632008-12-26 Martin Rudalics <rudalics@gmx.at>
8164
8165 * textprop.c (Qminibuffer_prompt): New variable.
8166 (syms_of_textprop): Initialize it.
8167 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8168 in minibuffer-prompt face. (Bug#1662)
8169
40b615d6
JR
81702008-12-25 Jason Rumney <jasonr@gnu.org>
8171
8172 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8173
baae5c2d
JR
81742008-12-24 Jason Rumney <jasonr@gnu.org>
8175
8176 * ralloc.c (r_alloc_reset_variable): New function.
8177
8178 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8179 record of what points where. (Bug#716)
baae5c2d 8180
a9051c88
DN
81812008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8182
8183 * minibuf.c (read_minibuf): Follow the non-interactive case when
8184 running as a daemon, before detaching.
8185
8b146312
AS
81862008-12-22 Andreas Schwab <schwab@suse.de>
8187
8188 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8189 * gtkutil.c (free_widget_value): Use xfree instead of free.
8190
56f2de10
MR
81912008-12-22 Martin Rudalics <rudalics@gmx.at>
8192
8193 * frame.c (delete_frame): New function derived from
8194 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8195 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8196 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8197 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8198 * frame.h: Extern delete_frame.
8199 * window.c (window_loop):
8200 * terminal.c (delete_terminal):
8201 * xterm.c (x_connection_closed):
8202 * xfns.c (Fx_hide_tip):
9acef61c 8203 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8204
1fc200d6
JR
82052008-12-21 Jason Rumney <jasonr@gnu.org>
8206
8207 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8208 when character maps to .notdef character.
8209
5e252df2
SM
82102008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8211
8212 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8213
99b72cc4
JR
82142008-12-20 Jason Rumney <jasonr@gnu.org>
8215
8216 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8217 a graphical frame on Windows. (Bug#1325)
99b72cc4 8218
acc49a52
JD
82192008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8220
8221 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8222
6ea15123
CY
82232008-12-20 Chong Yidong <cyd@stupidchicken.com>
8224
8225 * minibuf.c (Fread_buffer): Doc fix.
8226
b2dab6c8
JR
82272008-12-20 Jason Rumney <jasonr@gnu.org>
8228
54ea0c87 8229 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8230 server name in UNC paths. (Bug#719)
54ea0c87 8231
b2dab6c8 8232 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8233 charbuf. (Bug#1035)
b2dab6c8 8234
6d1921be
DN
82352008-12-19 Daniel Engeler <engeler@gmail.com>
8236
8237 * sysdep.c (serial_configure): Fix typo.
8238
53934c98
DN
82392008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8240
8241 * sysdep.c: Include alloca.h.
f4f634e8
DN
8242 (system_process_attributes): Add implementation for Solaris.
8243
8244 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8245
06e111a6
DN
82462008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8247
8248 Reorganize implementation of Flist_system_processes and
8249 Fsystem_process_attributes. No functional changes.
8250 * process.c: Don't #include pwd.h, grp.h and limits.h.
8251 (Flist_system_processes): Just call list_system_processes.
8252 (Fsystem_process_attributes): Just call system_process_attributes.
8253 (procfs_list_system_processes, time_from_jiffies)
8254 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8255 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8256
8257 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8258 (list_system_processes): Rename from
8259 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8260 Provide a do nothing implementation.
8261 (system_process_attributes): Rename from
8262 procfs_list_system_processes.
8263 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8264 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8265
8266 * w32.c (list_system_processes): Rename from
8267 w32_list_system_processes.
8268 (system_process_attributes): Rename from
8269 w32_system_process_attributes.
8270
8271 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8272
8273 * process.h (w32_list_system_processes)
8274 (w32_system_process_attributes): Remove.
362654a6
JB
8275 (list_system_processes, system_process_attributes):
8276 New prototypes.
06e111a6 8277
6a705b23
KH
82782008-12-19 Kenichi Handa <handa@m17n.org>
8279
8280 * xfont.c (xfont_decode_coding_xlfd): New function.
8281 (xfont_encode_coding_xlfd): New function.
8282 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8283 (xfont_list): Decode and encode XLFD by iso-8859-1.
8284 (xfont_match): Likewise.
8285 (xfont_list_family): Likewise.
8286 (xfont_open): Likewise.
8287
d66c0241 8288 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8289 names are utf-8.
8290
d66c0241 8291 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8292 names are utf-8.
8293
5a130941
JD
82942008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8295
8296 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8297 changed.
bfd20325
JD
8298 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8299 clicked on a detached tool bar button.
5a130941 8300
fd95644b
DN
83012008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8302
8303 * emacs.c (main): Print and error and exit when no data is read
8304 from the pipe.
8305
e6eee6ae
JR
83062008-12-17 Jason Rumney <jasonr@gnu.org>
8307
8308 * w32font.c (w32font_has_char): Always return -1.
8309
a35dd56b
KH
83102008-12-16 Kenichi Handa <handa@m17n.org>
8311
8312 * font.c (font_open_entity): Fix previous change.
8313
0e3635c2
DN
83142008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8315
8316 * process.c: Include <limits.h>.
8317
d4835507 83182008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8319
8320 * font.c (font_update_drivers): Fix mistake in reconstructing the
8321 driver list.
8322
83232008-12-16 Chong Yidong <cyd@stupidchicken.com>
8324
8325 * font.c (font_clear_cache): Fix format of font cache data.
8326
e2cbc401
CY
83272008-12-15 Chong Yidong <cyd@stupidchicken.com>
8328
8329 * xftfont.c (xftfont_open): Free Xft font pattern if
8330 XftFontOpenPattern fails.
8331
8332 * xterm.c (x_free_frame_resources): Remove extraneous call to
8333 free_frame_faces.
8334
b131d535
CY
83352008-12-13 Chong Yidong <cyd@stupidchicken.com>
8336
8337 * xterm.c (x_delete_display): Move xim_close_dpy call to
8338 x_delete_terminal.
8339 (x_delete_terminal): Call xim_close_dpy.
8340
e6df5336
JR
83412008-12-13 Jason Rumney <jasonr@gnu.org>
8342
8343 * w32font.c (intern_font_name): New function.
8344 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8345 (w32font_open_internal, Fx_select_font): Decode font name.
8346 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8347
8348 * w32font.h (intern_font_name): Declare new function.
8349
8350 * w32uniscribe.c (add_opentype_font_name_to_list):
8351 Use intern_font_name.
8352
20d68145
CY
83532008-12-13 Chong Yidong <cyd@stupidchicken.com>
8354
9f2554de
CY
8355 * frame.c (Fdelete_frame): Call free_font_driver_list.
8356
3d9bec9a
CY
8357 * font.c (free_font_driver_list): Implement missing function.
8358
20d68145
CY
8359 * w32term.c (w32_term_init): Don't initialize the image cache
8360 here; it will be done in init_frame_faces.
8361
8362 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8363 (struct x_display_info): Remove unused member null_pixel. New
8364 member xim_callback_data.
8365
8366 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8367 (xim_initialize): Save pointer to callback function data.
8368 (xim_close_dpy): Free callback function data. Call XCloseIM,
8369 reverting 2008-11-04 change by David Smith.
8370 (x_term_init): Don't initialize the image cache here; it will be
8371 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8372 (x_delete_display): Free x_dnd_atoms member.
8373
96f9306b
KH
83742008-12-13 Kenichi Handa <handa@m17n.org>
8375
6dec9044
JB
8376 * font.c (font_rescale_ratio): Moved from xfaces.c.
8377 Argument type changed. Handle a font-spec too.
96f9306b 8378 (font_score): Check Vface_font_rescale_alist.
6dec9044 8379 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8380
8381 * xfaces.c (font_rescale_ratio): Moved to font.c.
8382
8d5b4964
CY
83832008-12-13 Chong Yidong <cyd@stupidchicken.com>
8384
8385 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8386
e6df5336
JR
83872008-12-12 Jason Rumney <jasonr@gnu.org>
8388
8389 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8390 Vwindow_system_version to the real w32 major version.
8391
97c6058a
DN
83922008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8393
8394 * term.c (init_tty): Move setting the terminal name before the
8395 potential user: maybe_fatal.
8396
ec4e88d7
CY
83972008-12-11 Chong Yidong <cyd@stupidchicken.com>
8398
d4835507
JB
8399 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8400 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8401
b4233ec9
JR
84022008-12-11 Jason Rumney <jasonr@gnu.org>
8403
8ec71e23 8404 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8405 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8406
b4233ec9 8407 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8408 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8409
011a0143
JB
84102008-12-11 Juanma Barranquero <lekktu@gmail.com>
8411
8412 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8413
3c309f34
JB
84142008-12-11 Juanma Barranquero <lekktu@gmail.com>
8415
8416 * process.c (Fsystem_process_attributes, syms_of_process):
8417 Fix typo in name of Ssystem_process_attributes.
8418 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8419
fedc6ab5
JB
84202008-12-11 Juanma Barranquero <lekktu@gmail.com>
8421
8422 * syntax.c (Fmodify_syntax_entry): Doc fix.
8423
ba3de0e8
JB
84242008-12-10 Juanma Barranquero <lekktu@gmail.com>
8425
8426 * font.c (Ffont_spec): Move usage to end of docstring.
8427
174f1c74
JR
84282008-12-10 Jason Rumney <jasonr@gnu.org>
8429
8430 * w32font.c (Qcham): New symbol.
8431 (font_supported_scripts): Add cham, and comments for other new
8432 scripts in bitfield from OpenType spec.
9d32f818
JR
8433 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8434 contain characters beyond the bmp.
174f1c74 8435
7b649478
KH
84362008-12-10 Kenichi Handa <handa@m17n.org>
8437
8438 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8439 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8440 Qunicode_sip.
8441
2133e2d1
JB
84422008-12-10 Juanma Barranquero <lekktu@gmail.com>
8443
8444 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8445 (Fcoding_system_put): Use QCdefault_char.
8446 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8447
9af886ee
CY
84482008-12-09 Chong Yidong <cyd@stupidchicken.com>
8449
74d819eb
CY
8450 * xftfont.c (syms_of_xftfont): Fix typo.
8451
4ccfa1c0 8452 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8453
7c19d3ae
DN
84542008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8455
8456 * emacs.c (main): Close daemon_pipe on exec.
8457
567826bb
CY
84582008-12-08 Chong Yidong <cyd@stupidchicken.com>
8459
8460 * termchar.h (struct tty): New members termcap_term_buffer and
8461 termcap_strings_buffer.
8462
8463 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8464 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8465 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8466 All callers changed.
8467 (init_tty): Store termcap data and string buffers in new struct
8468 tty members termcap_term_buffer and termcap_strings_buffer.
8469 (delete_tty): Free them.
4ccfa1c0 8470 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8471
aa96c42b
SZ
84722008-12-07 Seiji Zenitani <zenitani@mac.com>
8473
8474 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8475 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8476
b7e1d896
CY
84772008-12-06 Chong Yidong <cyd@stupidchicken.com>
8478
8479 * coding.c (make_conversion_work_buffer): Disable buffer
8480 modification hooks in the work buffer.
8481
b5ec91a5
EZ
84822008-12-05 Eli Zaretskii <eliz@gnu.org>
8483
8484 * process.c (procfs_system_process_attributes): If `nread' has a
8485 negative value, assign zero to it.
8486
a5d2a52b
CY
84872008-12-05 Chong Yidong <cyd@stupidchicken.com>
8488
68c5540b 8489 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8490
7bf1bb21
KH
84912008-12-05 Kenichi Handa <handa@m17n.org>
8492
8493 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8494 second character is a combining character.
8495
2fdc7d00
EZ
84962008-12-05 Eli Zaretskii <eliz@gnu.org>
8497
8498 * process.c (procfs_system_process_attributes): Don't use cmd,
8499 cmdsize, and q without initializing them first.
8500
bf6bfba8
JR
85012008-12-04 Jason Rumney <jasonr@gnu.org>
8502
8503 * w32font.c (w32font_draw): Initialize orig_clip before getting
8504 it, and delete it when finished.
8505
a3b1a468
DN
85062008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8507
8508 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8509 case when running as a daemon before detaching.
8510
8b8be8eb
JB
85112008-12-03 Juanma Barranquero <lekktu@gmail.com>
8512
805f2638 8513 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8514
b1bde622
KH
85152008-12-03 Kenichi Handa <handa@m17n.org>
8516
e500c47d
KH
8517 * font.c (font_at): Set `multibyte' at first.
8518
ca516334
KH
8519 * coding.c (decode_coding_charset): Check type of an element of
8520 vector VALIDS.
7bf1bb21 8521 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8522
4ccfa1c0 8523 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8524 (font_for_char): Likewise.
8525
1e5ecd37
CY
85262008-12-03 Chong Yidong <cyd@stupidchicken.com>
8527
d5b01609 8528 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8529 (font_update_lface): Handle fonts with corrupted size specs,
8530 i.e. non-int and non-float.
d5b01609 8531
11e3a6e4 8532 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8533 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8534 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8535
ab06788b
CY
8536 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8537
1e5ecd37 8538 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8539 underline_minimum_offset for underline position.
1e5ecd37 8540
63c125ab
DN
85412008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8542
8543 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8544
8545 * character.c (c_string_width): Specify the type for LEN.
8546
3a8406e1
KH
85472008-12-03 Kenichi Handa <handa@m17n.org>
8548
4ccfa1c0 8549 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8550 (decode_coding_utf_8): Likewise.
4ccfa1c0 8551 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8552 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8553
651df7d9
CY
85542008-12-02 Chong Yidong <cyd@stupidchicken.com>
8555
8556 * keyboard.c (make_lispy_position): Only use PT if the selected
8557 window is current.
8558
1f625c6c
AS
85592008-12-02 Andreas Schwab <schwab@suse.de>
8560
f7741ce9
AS
8561 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8562
1f625c6c
AS
8563 * doprnt.c (doprnt1): Fix size of charbuf.
8564
92bc2678
CY
85652008-12-02 Chong Yidong <cyd@stupidchicken.com>
8566
8567 * keyboard.c (timer_check): Revert last change.
8568
93b9e8cc
JB
85692008-12-02 Juanma Barranquero <lekktu@gmail.com>
8570
8571 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8572
fd7a37d5
JB
85732008-12-01 Juanma Barranquero <lekktu@gmail.com>
8574
8575 * makefile.w32-in: Update dependencies.
8576 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8577
c115043b
AS
85782008-12-01 Andreas Schwab <schwab@suse.de>
8579
8580 * font.c (register_font_driver): Use xmalloc.
8581 (font_put_frame_data): Likewise.
8582
f5668d2a
CY
85832008-12-01 Chong Yidong <cyd@stupidchicken.com>
8584
860d96be
CY
8585 * xfaces.c (realize_x_face): Make abort condition clearer.
8586
f5668d2a
CY
8587 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8588
379c17e7
CY
85892008-11-30 Chong Yidong <cyd@stupidchicken.com>
8590
8591 * keyboard.c (timer_check): After a timer runs, ensure that the
8592 selected window's buffer is current.
8593
35f36d65
JB
85942008-11-30 Juanma Barranquero <lekktu@gmail.com>
8595
f952c61c
JB
8596 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8597 It was accidentally restored by the Unicode merge.
8598
35f36d65
JB
8599 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8600
b23077df
JB
86012008-11-29 Juanma Barranquero <lekktu@gmail.com>
8602
8603 * w32proc.c: Include "coding.h".
8604 (Fw32_short_file_name): Encode filename passed to Windows API.
8605 (Fw32_long_file_name): Encode filename passed to Windows API and
8606 decode back the result. (Bug#1433)
8607
b8ebe9dd
KH
86082008-11-29 Kenichi Handa <handa@m17n.org>
8609
8cc53f96
KH
8610 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8611 not before accessing it.
8612
b8ebe9dd
KH
8613 * charset.c (Fdefine_charset_internal): After calculating
8614 min_char, max_char, and fastmap, copy the charset structure again.
8615 (encode_char): Fix the previous change.
8616
59bc82c0
SZ
86172008-11-28 Seiji Zenitani <zenitani@mac.com>
8618
8619 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8620
8621 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8622
8623 * nsterm.m (x_set_frame_alpha): New function.
8624
32247e3d
EZ
86252008-11-27 Eli Zaretskii <eliz@gnu.org>
8626
8627 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8628
b003e5ff
JB
86292008-11-27 Juanma Barranquero <lekktu@gmail.com>
8630
8631 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8632 pointer to check_face_name.
8633
708550f5
KH
86342008-11-27 Kenichi Handa <handa@m17n.org>
8635
8636 * category.h (SET_CATEGORY_SET): Call set_category_set.
8637 (set_category_set): Extern it.
8638
8639 * category.c (hash_get_category_set): New function.
8640 (Fmodify_category_entry): Adjusted for the change of
8641 char_table_ref_and_range. Call hash_get_category_set to get a
8642 category set to store in the table.
8643
8644 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8645 Funify_charset.
8646
2ae37cf0 8647 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8648 (DECODE_CHAR): Check if the decoder vector is ready.
8649 (ENCODE_CHAR): Check if the encoder char-table is ready.
8650 (maybe_unify_char): Extern it.
8651
8652 * charset.c (Vchar_unified_charset_table): Delete it.
8653 (inhibit_load_charset_map): New variable.
8654 (temp_charset_work): New variable.
8655 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8656 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8657 New macros.
8658 (load_charset_map): Meaning of control_flag changed. If
8659 inhibit_load_charset_map is nonzero, setup a table in
8660 temp_charset_work.
8661 (load_charset): New argument control_flag.
8662 (map_charset_for_dump): New function.
8663 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8664 map_charset_for_dump.
8665 (Fdefine_charset_internal): If the charset method is MAP, load
8666 mapping tables by calling load_charset.
8667 (Funify_charset): Don't load a mapping table but directly set
8668 Vchar_unify_table.
8669 (maybe_unify_char): New function.
8670 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8671 Handle the case of inhibit_load_charset_map being nonzero.
8672 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8673 Handle the case of inhibit_load_charset_map being nonzero.
8674 (Fclear_charset_maps): Just free temp_charset_work.
8675 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8676 variable.
8677
8678 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8679 change of char_table_ref_and_range.
8680 (char_table_ref_and_range): Change the meaning of argument FROM
8681 and TO. Now the caller must provide initial values for *FROM
8682 and *TO.
8683
8684 * fontset.c (fontset_add): Adjusted for the change of
8685 char_table_ref_and_range.
8686 (fontset_get_font_group): Likewise.
8687 (Ffontset_info): Likewise.
8688
8689 * keymap.c (describe_vector): Adjusted for the change of
8690 char_table_ref_and_range. For char-table, put boundary between
8691 non-ASCII and 8-bit characters.
8692
8693 * print.c (print_object): For bool-vector, delete unnecessary
8694 check of ASCII_BYTE_P.
8695
9196133b
JR
86962008-11-26 Jason Rumney <jasonr@gnu.org>
8697
8698 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8699 leading in font height. (Bug#879)
9196133b 8700
9f688acf
GM
87012008-11-26 Glenn Morris <rgm@gnu.org>
8702
8703 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8704 redefinition with ifdef. (Bug#1383)
8705
90d19aff
AR
87062008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8707
8708 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8709
4ccfa1c0 87102008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8711
8712 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8713 New EmacsView methods.
8714 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8715 Fixes bug #1048,1357,1414.
8716
87172008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8718
8719 Fix bug #1362.
8720 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8721 is not an indexed color.
8722 * nsterm.m (free_indexed_color): Add argument checking.
8723 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8724
e7d5ecb3
CY
87252008-11-24 Chong Yidong <cyd@stupidchicken.com>
8726
8727 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8728 Document confirm-after-completion value for
8729 minibuffer-completion-confirm.
8730
c285743c
JR
87312008-11-24 Jason Rumney <jasonr@gnu.org>
8732
8733 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8734 warning.
8735
b0857706
JR
87362008-11-23 Jason Rumney <jasonr@gnu.org>
8737
8738 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8739 restored before returning.
8740
8741 * w32font.c (check_face_name): New function.
8742 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8743 fonts. (Bug#642)
b0857706 8744
ee50ff07
MR
87452008-11-22 Martin Rudalics <rudalics@gmx.at>
8746
8747 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8748 confirm-nonexistent-file-or-buffer in doc-string.
8749
b8ff72fa
SM
87502008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8751
8752 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8753 Fix copy/paste typo. Add checks.
8754
cee53ed4
KH
87552008-11-21 Kenichi Handa <handa@m17n.org>
8756
8757 * coding.c (detect_coding_iso_2022): Reject invalid composition
8758 sequence.
8759 (DECODE_COMPOSITION_START): If the current source is the last
8760 block, and the current composition doesn't end, regard this
8761 sequence as invalid.
8762 (decode_coding_iso_2022): Handle invalid composition sequence.
8763
f6ef1e65
MR
87642008-11-20 Martin Rudalics <rudalics@gmx.at>
8765
8766 * window.c (coordinates_in_window): Don't return
8767 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8768 line when the window is not the rightmost one. (Bug#1372)
8769
e08b1705
MR
87702008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8771
8772 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8773
ad98e89f
EZ
87742008-11-15 Eli Zaretskii <eliz@gnu.org>
8775
8776 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8777 and bright_bg if noninteractive is non-zero.
8778
fb098a4b
CY
87792008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8780
8781 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8782 x_draw_glyph_string_background.
8783
8784 * w32term.c (x_draw_glyph_string): Likewise.
8785
ce952b6e
CY
87862008-11-15 Chong Yidong <cyd@stupidchicken.com>
8787
8788 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8789 the next glyph string once past the overhang width.
8790
8791 * nsterm.m (ns_draw_glyph_string): Likewise.
8792
8793 * w32term.c (x_draw_glyph_string): Likewise.
8794
26ea7079
CY
87952008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8796
8797 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8798 double file close.
8799
1c33c906
MR
88002008-11-14 Martin Rudalics <rudalics@gmx.at>
8801
8802 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8803 dedicated status of window before attempting to display another
8804 buffer in it.
8805
8fc29035
JB
88062008-11-14 Juanma Barranquero <lekktu@gmail.com>
8807
8808 * msdos.c (Fmsdos_long_file_names):
8809 (syms_of_msdos) <dos-unsupported-char-glyph>:
8810 * dosfns.c (Fint86): Fix typos in docstrings.
8811
55fb4286
EZ
88122008-11-14 Eli Zaretskii <eliz@gnu.org>
8813
8814 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8815
3fda0315
KY
88162008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8817
8818 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8819
7e849c17
CY
88202008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8821
8822 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8823
8824 * frame.h: Negative alpha means "don't touch".
8825
8826 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8827
8828 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8829
b9fd67bd
DN
88302008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8831
8832 * hftctl.c:
8833 * chpdef.h:
8834 * acldef.h: Remove files used only for systems no longer supported.
8835
8836 * Makefile.in: Fix .o alphabetical ordering.
8837 (hftctl.o): Remove dependency, file removed.
8838 (keymap.o, print.o): Depend on charset.h.
8839
d5998e03
KH
88402008-11-10 Kenichi Handa <handa@m17n.org>
8841
2ae37cf0 8842 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8843
be70e183
CY
88442008-11-08 Chong Yidong <cyd@stupidchicken.com>
8845
8846 * dired.c (file_name_completion): If completion_ignore_case is
8847 enabled, ignore case when checking completion-regexp-list.
8848
7cf94eac
EZ
88492008-11-08 Eli Zaretskii <eliz@gnu.org>
8850
8851 * vm-limit.c (get_lim_data): Fix last change.
8852
ee107a89
KH
88532008-11-08 Kenichi Handa <handa@m17n.org>
8854
8855 * character.c (Fget_byte): New function.
8856 (syms_of_character): Defsubr Fget_byte.
8857
5fd15622
CY
88582008-11-07 Chong Yidong <cyd@stupidchicken.com>
8859
8860 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8861 cursor position is valid after scrolling.
8862
13d62fad
JB
88632008-11-06 Juanma Barranquero <lekktu@gmail.com>
8864
8865 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8866
a1dd2936
GM
88672008-11-06 Glenn Morris <rgm@gnu.org>
8868
8869 * xterm.c (handle_one_xevent): Don't let popup menus cause
8870 mouse-autoselect-window related window switching. (Bug#1261)
8871
860cd236
CY
88722008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8873
8874 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8875
653a3150
AS
88762008-11-04 Andreas Schwab <schwab@suse.de>
8877
8878 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8879
870f5cac
CY
88802008-11-03 Chong Yidong <cyd@stupidchicken.com>
8881
8882 * xfns.c (Fx_wm_set_size_hint): New function.
8883
1e02f3cb
MR
88842008-11-03 Martin Rudalics <rudalics@gmx.at>
8885
8886 * textprop.c (Fprevious_single_char_property_change): Return 0
8887 when there's no change in a string. (Bug#1301)
8888
e630dfc6
MR
88892008-11-02 Martin Rudalics <rudalics@gmx.at>
8890
8891 * frame.c (do_switch_frame): New argument NORECORD passed to
8892 Fselect_window.
8893 (Fselect_frame): New argument NORECORD passed to
8894 do_switch_frame.
8895 (Fset_frame_selected_window): New argument NORECORD passed to
8896 Fselect_frame.
8897 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8898 in call of do_switch_frame.
8899 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8900 Handle NORECORD argument in call of Fselect_frame.
8901 * lisp.h (do_switch_frame, Fselect_frame)
8902 (Fset_frame_selected_window): Adjust declarations.
8903 * window.c (select_frame_norecord): New function.
8904 (run_window_configuration_change_hook): Use it and call
8905 Fselect_frame with NORECORD set.
8906 (Fselect_window): Pass NORECORD to Fselect_frame.
8907 (Fset_window_configuration): Handle NORECORD argument in call of
8908 do_switch_frame.
8909 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8910 Fset_frame_selected_window.
8911 * keyboard.c (command_loop_1): Handle NORECORD in call of
8912 Fselect_frame (currently ifdefd).
8913
9020b223
GM
89142008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8915
8916 * emacs.c (USAGE2): Untabify.
8917
793ffee8
SM
89182008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8919
8920 * composite.c (fill_gstring_header): Fix copy/paste typo.
8921
ab6d1131
MR
89222008-10-31 Martin Rudalics <rudalics@gmx.at>
8923
8924 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8925 (Fother_window): Rename argument and rewrite doc-string.
8926 (select_window_norecord): Fix return value. (Bug#1276)
8927
601a9cf1
JB
89282008-10-30 Juanma Barranquero <lekktu@gmail.com>
8929
8930 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8931 new frames overriding foreground for tooltips. Based on similar patch
8932 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8933
813b0652
CY
89342008-10-29 Chong Yidong <cyd@stupidchicken.com>
8935
8936 * emacs.c (Fdaemon_initialized): Initialize nfd.
8937
4414f58f
MR
89382008-10-29 Martin Rudalics <rudalics@gmx.at>
8939
8940 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8941 (Fwindow_text_height): Clarify doc-strings.
8942 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8943 doc-string of window-scroll-functions.
8944
ecdcaa09
RS
89452008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8946
8947 * category.c (syms_of_category): Fix typo in docstring.
8948
23fe745a
JB
89492008-10-28 Juanma Barranquero <lekktu@gmail.com>
8950
8951 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8952 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8953 Fix typos in docstrings.
8954
ff808935
DN
89552008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8956
8957 * emacs.c (daemon_pipe): Make non-static.
8958 (IS_DAEMON): Move definition ...
8959 * lisp.h (IS_DAEMON): ... here.
8960 (daemon_pipe): Declare.
8961 (is_daemon): Remove.
8962 * dispnew.c (init_display): Use IS_DAEMON.
8963
fc012771
SM
89642008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8965
8966 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8967 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8968
8969 * emacs.c (is_daemon): Remove.
8970 (main): Don't set is_daemon.
8971 (IS_DAEMON): New macro.
8972 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8973 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8974 parent exits.
8975 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8976
d8bdbe6f
CY
89772008-10-27 Chong Yidong <cyd@stupidchicken.com>
8978
d1a072bf
CY
8979 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8980 over-sized glyph, draw it with the default glyph width.
8981
e2e325aa
CY
8982 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8983 glyph, draw it with the default glyph width.
8984
8985 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8986 glyph, draw it with the default glyph width.
8987
d8bdbe6f
CY
8988 * xdisp.c (try_scrolling): When computing the distance from the
8989 scroll margin to PT, try moving some distance past the window
8990 bottom before giving up.
8991
7bfac547
MR
89922008-10-27 Martin Rudalics <rudalics@gmx.at>
8993
8994 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8995 (Fset_window_buffer): Explain in doc-string that a window can be
8996 "strongly" dedicated to its buffer.
8997
4ff029f6
DN
89982008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8999
9000 * emacs.c (daemon_name): New variable.
9001 (main): Deal with --daemon=SERVER_NAME.
9002 (Fdaemonp): Return a name if one was passed to --daemon.
9003
5790ef40
DN
90042008-10-26 Romain Francoise <romain@orebokech.com>
9005
f9bd0df9 9006 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9007 (main): Create a pipe before forking, make the parent exit only after
9008 the child has closed its end of the pipe. Move closing the
9009 descriptors ...
9010 (Fdaemon_initialized): ... here. New function.
9011
f5385255
SM
90122008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9013
4d632321
SM
9014 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9015 the previous unoptimized table.
9016
f5385255
SM
9017 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9018 the distinction between non-nil and non-t value of `dedicated'.
9019
6c56a0f3
CY
90202008-10-25 Chong Yidong <cyd@stupidchicken.com>
9021
9022 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9023 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9024
fec89261
MR
90252008-10-25 Martin Rudalics <rudalics@gmx.at>
9026
9027 * window.c (Fget_buffer_window, Fdelete_windows_on)
9028 (Freplace_buffer_in_windows): Make buffer argument optional and
9029 rename to buffer_or_name.
9030
34fcddd0
CY
90312008-10-24 Chong Yidong <cyd@stupidchicken.com>
9032
f5385255
SM
9033 * xdisp.c (handle_single_display_spec, handle_display_prop):
9034 Undo 2005-05-16 change.
34fcddd0
CY
9035 (handle_stop): Pop iterator if it's loaded with an empty string.
9036 (get_overlay_strings_1): Don't save iterator if it's loaded with
9037 an empty string (bug#1201).
9038
064766f2
KH
90392008-10-24 Kenichi Handa <handa@m17n.org>
9040
9041 * ftfont.c (ftfont_otf_features): Fix previous change.
9042 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9043 calling ftfont_otf_features.
9044
f9bd0df9 90452008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9046
9047 * font.c (font_match_p): Fix for the case that a vector of
9048 characters is in script-representative-chars.
9049
1dae9197
MA
90502008-10-24 Michael Albinus <michael.albinus@gmx.de>
9051
9052 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9053 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9054 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9055 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9056 macro. (Bug#1186)
1dae9197 9057
f9bd0df9 90582008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9059
9060 * s/sol2-10.h: New file.
9061
878a4584
JB
90622008-10-23 Juanma Barranquero <lekktu@gmail.com>
9063
9064 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9065 poor beast has survived 9+ years and the jump from xterm.c!).
9066
cd265ca6
MR
90672008-10-23 Martin Rudalics <rudalics@gmx.at>
9068
9069 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9070 Reword doc-string.
f5385255 9071 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9072
472a4dc9
JB
90732008-10-23 Juanma Barranquero <lekktu@gmail.com>
9074
9075 * character.c (syms_of_character) <script-representative-chars>:
9076 <unicode-category-table>: Doc fixes.
9077
159bd5a2
NF
90782008-10-23 Noah Friedman <friedman@splode.com>
9079
9080 * coding.c (make_conversion_work_buffer): Check that
9081 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9082 Fget_buffer_create.
9083
49f9c344
KH
90842008-10-23 Kenichi Handa <handa@m17n.org>
9085
9086 * font.c (font_add_log): Check the values of extra properties.
9087
12bb3111
MR
90882008-10-22 Martin Rudalics <rudalics@gmx.at>
9089
9090 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9091 Reword doc-string.
9092 (Fset_window_parameter): Use NILP.
9093 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9094 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9095
bbeb4e99
JB
90962008-10-22 Juanma Barranquero <lekktu@gmail.com>
9097
9098 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9099
91002008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9101
9102 * nsfns.m (ns_appkit_version): New function.
9103 (x-server-version): Use it.
9104 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9105 (x-server-vendor): Don't check_ns().
9106
9107 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9108
a9b555d3
JB
91092008-10-22 Juanma Barranquero <lekktu@gmail.com>
9110
9111 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9112 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9113
4626499f
KH
91142008-10-22 Kenichi Handa <handa@m17n.org>
9115
e3681952
KH
9116 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9117 scripts.
9118
4626499f
KH
9119 * category.c (word_boundary_p): Check scripts instead of charset.
9120 Handle nil value in word-separating-categories and
9121 word-combining-categories.
9122 (syms_of_category): Fix docstrings of word-separating-categories
9123 and word-combining-categories.
9124
1560f91a
EZ
91252008-10-21 Eli Zaretskii <eliz@gnu.org>
9126
9127 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9128 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9129
f4668441
MR
91302008-10-21 Martin Rudalics <rudalics@gmx.at>
9131
9132 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9133 Rename arg "buffer" to "buffer_or_name".
9134 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9135 it optional.
9136 (no_switch_window): Remove since the return value is not used.
a9b555d3 9137 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9138 Consider window as dedicated when Fwindow_dedicated_p returns a
9139 non-nil value.
9140 * lisp.h: Remove prototype for no_switch_window.
9141
fd75ddb2
JD
91422008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9143
9144 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9145 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9146
07295713
KH
91472008-10-21 Kenichi Handa <handa@m17n.org>
9148
9149 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9150 check Vlatin_extra_code_table.
9151
712adc82
EZ
91522008-10-20 Eli Zaretskii <eliz@gnu.org>
9153
9154 * fileio.c (Fset_file_modes): Doc fix.
9155
f549eb0b
MA
91562008-10-19 Michael Albinus <michael.albinus@gmx.de>
9157
9158 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9159 in arrays.
9160
aac0c6e3
MR
91612008-10-19 Martin Rudalics <rudalics@gmx.at>
9162
9163 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9164 Mention kill-buffer in doc-string.
9165 (Fset_window_buffer): Reinsert tem check removed in last commit.
9166 (Fenlarge_window, Fshrink_window): Have argument names and
9167 doc-string follow Elisp manual more closely.
9168
91692008-10-18 Eli Zaretskii <eliz@gnu.org>
9170
9171 * fileio.c (Fset_file_modes): Doc fix.
9172
91732008-10-18 Martin Rudalics <rudalics@gmx.at>
9174
9175 * window.c (Fwindow_width, Fset_window_start)
9176 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9177 (Fdelete_windows_on, Freplace_buffer_in_windows):
9178 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9179 (Fwindow_dedicated_p): Make window argument optional.
9180 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9181 (Fset_window_buffer): Respect any non-nil dedicated value for
9182 window. Rename "buffer" argument to "buffer_or_name".
9183
91842008-10-18 Ulrich Mueller <ulm@gentoo.org>
9185
9186 * m/sh3.h: New file, machine description for SuperH.
9187
91882008-10-17 Martin Rudalics <rudalics@gmx.at>
9189
9190 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9191
91922008-10-17 Kenichi Handa <handa@m17n.org>
9193
9194 * ftfont.c (ftfont_otf_features): Fix indexing
9195 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9196
91972008-10-16 Magnus Henoch <mange@freemail.hu>
9198
9199 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9200 (Fdbus_call_method_asynchronously): Ditto.
9201 This change makes C-h f display the argument list.
9202
92032008-10-16 Chong Yidong <cyd@stupidchicken.com>
9204
9205 * fileio.c (Fexpand_file_name): Doc fix.
9206
9207 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9208 of :foreground and :background equivalent to unspecified (20.x
9209 compatibility).
9210
92112008-10-15 Eli Zaretskii <eliz@gnu.org>
9212
9213 * buffer.c (syms_of_buffer): Doc fix.
9214
92152008-10-14 Kenichi Handa <handa@m17n.org>
9216
9217 * font.c (font_clear_prop): When clearing font width, clear the
9218 average width field too.
9219
92202008-10-12 Andreas Schwab <schwab@suse.de>
9221
9222 * ftfont.c (ftfont_shape_by_flt): Make static.
9223 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9224
9225 * font.c: Don't include <m17n-flt.h>.
9226
92272008-10-10 Eli Zaretskii <eliz@gnu.org>
9228
9229 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9230
92312008-10-09 Eli Zaretskii <eliz@gnu.org>
9232
9233 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9234 away code.
9235
92362008-10-09 Chong Yidong <cyd@stupidchicken.com>
9237
9238 * dispnew.c (update_text_area): Avoid looping due to large glyph
9239 overhangs (bug#1070).
9240
92412008-10-09 Kenichi Handa <handa@m17n.org>
9242
9243 * fontset.c (face_for_char): If face->fontset is negative, just
9244 return ascii_face.
9245
f5385255
SM
9246 * font.c (font_delete_unmatched): Fix previous change.
9247 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9248
92492008-10-09 Martin Rudalics <rudalics@gmx.at>
9250
9251 * frame.c (Fraise_frame): On text-only terminals select frame in
9252 order to make it visible. (Bug#1061)
9253
92542008-10-08 Chong Yidong <cyd@stupidchicken.com>
9255
9256 * fontset.c (fontset_find_font): Check frame validity.
9257
92582008-10-07 Chong Yidong <cyd@stupidchicken.com>
9259
a9b555d3 9260 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9261 (xg_display_close): Allow Emacs to close all displays (bug#985).
9262
92632008-10-06 Andreas Schwab <schwab@suse.de>
9264
f5385255 9265 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9266
92672008-10-06 Chong Yidong <cyd@stupidchicken.com>
9268
f5385255 9269 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9270
a9b555d3 9271 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9272
9273 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9274 during initialization.
9275
92762008-10-04 Eli Zaretskii <eliz@gnu.org>
9277
9278 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9279 whole thing on MSDOS frames as well as on a TTY.
9280
9281 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9282 well as for TTY.
9283 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9284 well as on a TTY.
9285
9286 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9287 as well as for TTY.
9288
9289 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9290
9291 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9292 MSDOS frames as well.
9293
92942008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9295
9296 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9297 correct arguments.
b71ac3dd 9298 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9299
93002008-10-03 Glenn Morris <rgm@gnu.org>
9301
9302 * emacs.c (USAGE1): Add --daemon.
9303
93042008-10-02 Eli Zaretskii <eliz@gnu.org>
9305
9306 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9307 100, so it's in percents as advertised.
9308
93092008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9310
9311 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9312 (ns_output.current_cursor, ns_output.desired_cursor)
9313 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9314 (FRAME_NEW_CURSOR_COLOR): Remove.
9315
9316 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9317 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9318 enumeration (HOLLOW_BOX_CURSOR, etc.).
9319
9320 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9321 (draw_window_cursor): Simplify code.
f5385255
SM
9322 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9323 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9324 updates manually.
a9b555d3
JB
9325 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9326 Use core Emacs cursor types.
aac0c6e3 9327
b8ff72fa 9328 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9329
93302008-10-02 Martin Rudalics <rudalics@gmx.at>
9331
9332 * process.c (Faccept_process_output): Fix doc-string.
9333
93342008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9335
9336 * gmalloc.c (__sbrk): Also define for uClibc.
9337
9338 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9339 for uClibc.
9340
93412008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9342
9343 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9344 styles.
9345 (nsfont_open): Reenable the cache.
9346
93472008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9348
9349 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9350 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9351
93522008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9353
9354 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9355 a suspended terminal.
9356
93572008-09-30 Michael Albinus <michael.albinus@gmx.de>
9358
9359 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9360
93612008-09-30 Eli Zaretskii <eliz@gnu.org>
9362
9363 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9364
93652008-09-30 Chong Yidong <cyd@stupidchicken.com>
9366
9367 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9368 in a continued line coincides with a line beginning.
9369
93702008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9371
9372 * nsfont.m (nsfont_trait_distance): Fix bug.
9373 (nsfont_list): Return a list rather than a vector (syncs with Handa
9374 changes of 2008-05-14).
9375 (nsfont_open): Improve logging.
9376
93772008-09-29 Andreas Schwab <schwab@suse.de>
9378
9379 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9380
93812008-09-28 Martin Rudalics <rudalics@gmx.at>
9382
9383 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9384 name as char-resolve-modifiers.
9385 Reported by: Markus Triska <markus.triska@gmx.at>
9386
93872008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9388
9389 * dispnew.c (init_display): Return earlier when running as a daemon.
9390
93912008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9392
9393 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9394
93952008-09-27 Eli Zaretskii <eliz@gnu.org>
9396
9397 * composite.c (Fcomposition_get_gstring)
9398 (Fcompose_region_internal, Fcompose_string_internal)
9399 (Ffind_composition_internal): Doc fix.
9400 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9401 (syms_of_composite) <auto-composition-function>: Doc fix.
9402 (syms_of_composite) <composition-function-table>: Doc fix.
9403
94042008-09-25 Chong Yidong <cyd@stupidchicken.com>
9405
9406 * search.c (wordify): New argument for lax word-ends.
9407 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9408
94092008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9410
9411 * lisp.h (is_daemon): Declare.
9412 * dispnew.c (init_display): Do not try to initialize the terminal
9413 when running as a daemon.
9414
94152008-09-22 Chong Yidong <cyd@stupidchicken.com>
9416
9417 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9418 x_display_pixel_height.
9419
94202008-09-22 Martin Rudalics <rudalics@gmx.at>
9421
9422 * undo.c (record_point): Don't call Fundo_boundary for first
9423 change. (Bug#731)
9424
94252008-09-22 Juanma Barranquero <lekktu@gmail.com>
9426
9427 * emacs.c (Fdaemonp): Doc fix.
9428
94292008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9430
9431 * emacs.c (main): Place #ifdef in the proper place.
9432
94332008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9434
9435 * emacs.c (standard_args): Add --daemon.
9436 (main): Disconnect from the terminal when --daemon is passed.
9437 (is_daemon): New variable.
9438 (Fdaemonp): New function.
9439 (syms_of_emacs): Defsubr it.
9440
94412008-09-20 Chong Yidong <cyd@stupidchicken.com>
9442
9443 * xdisp.c (get_next_display_element): Handle string display
9444 correctly when checking for the end of a box run.
9445
94462008-09-20 Glenn Morris <rgm@gnu.org>
9447
9448 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9449 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9450 (Frename_file): Avoid copying to trash if a rename involves
9451 a delete. (Bug#964).
9452
94532008-09-20 Eli Zaretskii <eliz@gnu.org>
9454
9455 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9456 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9457 frames as well as termcap frames.
9458 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9459 get_named_tty.
9460
94612008-09-19 Eli Zaretskii <eliz@gnu.org>
9462
9463 * process.c (procfs_system_process_attributes): Fix cmdline in
9464 case /proc/PID/cmdline is empty.
9465
9466 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9467 x_display_pixel_height.
9468
94692008-09-19 Juanma Barranquero <lekktu@gmail.com>
9470
9471 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9472
9473 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9474 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9475
94762008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9477
9478 * dispextern.h (struct it): Move line_wrap away from the middle of
9479 bitfields. Move voffset in struct iterator_stack_entry after the
9480 bitfields. Move tab_width near after another short.
9481
94822008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9483
9484 * frame.h (struct frame): Move alpha from the middle of bitfields.
9485
9486 * window.h (struct window): Move frozen_window_start_p after the
9487 rest of the bitfields to reduce padding.
9488
94892008-09-18 Chong Yidong <cyd@stupidchicken.com>
9490
9491 * xterm.h (x_display_info): Remove `height' and `width' members.
9492
9493 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9494
9495 * w32term.h (w32_display_info): Remove `height', `width',
9496 `height_in', and `width_in' members.
9497
b8ff72fa
SM
9498 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9499 New functions.
aac0c6e3
MR
9500 (x_calc_absolute_position): Use them.
9501 (x_term_init): Omit removed `height' and `width' members.
9502
b8ff72fa
SM
9503 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9504 New functions.
aac0c6e3
MR
9505 (w32_read_socket, x_calc_absolute_position): Use them.
9506 (w32_initialize_display_info, w32_term_init): Omit removed members
9507 of w32_display_info.
9508
b8ff72fa
SM
9509 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9510 New functions.
9511 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9512
b8ff72fa
SM
9513 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9514 New functions.
aac0c6e3
MR
9515 (x_calc_absolute_position): Use them.
9516 (x_term_init): Omit removed `height' and `width' members.
9517
9518 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9519 (compute_tip_xy):
9520 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9521 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9522 x_display_pixel_width.
9523
95242008-09-18 Kenichi Handa <handa@m17n.org>
9525
9526 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9527 (composition_compute_stop_pos): Fix handling of static composition.
9528 (Fcomposition_get_gstring): Check FROM and TO at first.
9529
95302008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9531
46e722a9 9532 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9533 mixup (YAILOM).
9534
95352008-09-17 Chong Yidong <cyd@stupidchicken.com>
9536
9537 * indent.c (Fvertical_motion): Use position reported by iterator
9538 instead of PT for determining screen motion (bug#943).
9539
95402008-09-17 Romain Francoise <romain@orebokech.com>
9541
9542 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9543
95442008-09-17 Kenichi Handa <handa@m17n.org>
9545
9546 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9547
9548 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9549 if necessary.
9550
95512008-09-16 Kenichi Handa <handa@m17n.org>
9552
9553 * coding.c (make_conversion_work_buffer): Avoid calling
9554 Fget_buffer_create if it is not necessary.
9555
95562008-09-15 Martin Rudalics <rudalics@gmx.at>
9557
9558 * window.c (Fselect_window): Don't update window_select_count and
9559 use_time when norecord is not nil.
9560
95612008-09-14 Kenichi Handa <handa@m17n.org>
9562
9563 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9564 specpdl_ptr.
9565
95662008-09-12 Kenichi Handa <handa@m17n.org>
9567
9568 * indent.c (scan_for_column): Don't handle automatic composition
9569 if the current buffer is not associated with a window.
9570
9571 * composite.c (composition_reseat_it): If the current buffer is
9572 not associated with a window, ignore the automatic composition.
9573 (find_automatic_composition): Likewise.
9574
95752008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9576
9577 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9578 (Fgpm_mouse_stop): Use it.
9579 * termhooks.h (close_gpm): Declare.
9580 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9581 connection if Gpm_GetEvent fails.
9582
9583 * window.c (set_window_buffer): Always preserve current-buffer.
9584
95852008-09-12 Glenn Morris <rgm@gnu.org>
9586
9587 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9588
95892008-09-11 Glenn Morris <rgm@gnu.org>
9590
9591 * charset.c (charset-map-path): Doc fix.
9592
95932008-09-10 Kenichi Handa <handa@m17n.org>
9594
9595 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9596
9597 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9598 compose a grapheme cluster with the preceding base glyph.
9599
9600 * composite.c (composition_compute_stop_pos): Fix previous change.
9601 Reset cmp_it->id to -1 at first.
9602
96032008-09-10 Glenn Morris <rgm@gnu.org>
9604
9605 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9606
96072008-09-09 Chong Yidong <cyd@stupidchicken.com>
9608
9609 * keyboard.c (read_key_sequence): Reapply translation maps when
9610 switching keyboards.
9611
96122008-09-09 Kenichi Handa <handa@m17n.org>
9613
9614 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9615 characters.
9616
9617 * composite.c (FORWARD_CHAR): Fix calculation
9618 of (POSITION).pos_byte.
9619 (composition_compute_stop_pos): Limit the search of composition to
9620 at most 500 characters ahead. If we reach the limit or find a
9621 newline, set cmp_it->ch to -2 and return 0.
9622 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9623
96242008-09-08 Kenichi Handa <handa@m17n.org>
9625
9626 * indent.c (Fvertical_motion): Be sure to set
9627 it_overshoot_expected if it.cmp_it.id is non-negative.
9628
96292008-09-07 Andreas Schwab <schwab@suse.de>
9630
9631 * callproc.c (Fcall_process): Don't hold references to string data
9632 across garbage collection. Move initialisation of new_argv down
9633 to avoid compiler bug.
9634
96352008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9636
9637 * process.c (Fsystem_process_attributes): Doc fix.
9638
96392008-09-07 Chong Yidong <cyd@stupidchicken.com>
9640
9641 * callproc.c (Fcall_process): Canonicalize current directory name.
9642
9643 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9644 iterator advances to the next line if the current line ends in a
9645 continued tab.
9646
96472008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9648
9649 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9650 member to point to cmp_from.
9651
9652 * xdisp.c: Doc fix for references to gidx data member.
9653
96542008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9655
9656 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9657
96582008-09-07 Kenichi Handa <handa@m17n.org>
9659
9660 * composite.c (FORWARD_CHAR): Check STOP after
9661 incrementing (POSITION).pos.
9662
96632008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9664
9665 * process.c (Fsystem_process_attributes): Doc fix.
9666
96672008-09-06 Chong Yidong <cyd@stupidchicken.com>
9668
9669 * keyboard.c (Ftop_level): Doc fix.
9670
96712008-09-06 Eli Zaretskii <eliz@gnu.org>
9672
9673 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9674 minibuffer, don't let lower part of menu invade the echo area.
9675
9676 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9677 "char *q" to access menu text and advance through it. Revert the
9678 change that displayed ">" instead of ASCII character 0x10.
9679
96802008-09-05 Eli Zaretskii <eliz@gnu.org>
9681
9682 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9683 toggle boxes and radio buttons on MS-DOS as well.
9684
96852008-09-05 Kenichi Handa <handa@m17n.org>
9686
9687 * composite.c (autocmp_chars): Check lookback count.
9688 (composition_compute_stop_pos): Set cmp_it->lookback.
9689 (composition_reseat_it): Check lookback count.
9690 (struct position_record): New struct.
9691 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9692 (find_automatic_composition): New function.
9693 (composition_adjust_point): Use find_automatic_composition.
9694
9695 * dispextern.h (struct composition_it): New member lookback.
9696
96972008-09-02 Chong Yidong <cyd@stupidchicken.com>
9698
9699 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9700 if moving by a single line.
9701
97022008-09-02 Andreas Schwab <schwab@suse.de>
9703
9704 * xterm.c (x_delete_display): Fix merge error.
9705
9706 * fileio.c (Fexpand_file_name): Remove unused variables.
9707
97082008-09-02 Eli Zaretskii <eliz@gnu.org>
9709
9710 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9711 storage on all platforms, not just on DOS_NT.
9712
97132008-09-02 Jason Rumney <jasonr@gnu.org>
9714
b8ff72fa
SM
9715 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9716 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9717
97182008-09-01 Chong Yidong <cyd@stupidchicken.com>
9719
9720 * xfaces.c (Finternal_set_alternative_font_family_alist)
9721 (Finternal_set_alternative_font_registry_alist): Properly copy
9722 entire alist structure.
9723
97242008-09-01 Kenichi Handa <handa@m17n.org>
9725
d66c0241 9726 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9727 representative chars of the script is a vector.
d66c0241
JB
9728 (ftfont_list): Handle the case where the representative chars of
9729 the script is a vector.
aac0c6e3
MR
9730
9731 * character.c (syms_of_character): Docstring of
9732 script-representative-chars fixed.
9733
97342008-08-31 Eli Zaretskii <eliz@gnu.org>
9735
9736 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9737 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9738 the menu. Allocate larger buffer for `text', to account for
9739 possible ^C characters.
9740
97412008-08-31 Martin Rudalics <rudalics@gmx.at>
9742
9743 * xdisp.c (prepare_menu_bars): Don't call
9744 Vwindow_size_change_functions with arg Qt.
9745
97462008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9747
9748 * font.h (font_range):
9749 * fileio.c (report_file_error):
46e722a9
SM
9750 * composite.c (composition_update_it): Yet another int/Lisp_Object
9751 mixup (YAILOM).
aac0c6e3
MR
9752
97532008-08-30 Glenn Morris <rgm@gnu.org>
9754
9755 * data.c (Fmake_variable_frame_local): Doc fix.
9756
9757 * frame.c (Fmodify_frame_parameters): Doc fix.
9758
97592008-08-30 Eli Zaretskii <eliz@gnu.org>
9760
9761 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9762 needed by GetTokenInformation.
9763 (w32_system_process_attributes): Check return values of all system
9764 APIs.
9765
9766 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9767 only when the state changes.
9768 (IT_update_begin, IT_update_end): Add termscript trace.
9769
9770 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9771 clipboard is unavailable. Set dst to NULL if it doesn't point to
9772 malloc'ed data.
9773 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9774 passing random values to xfree.
9775
9776 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9777 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9778
97792008-08-29 Jason Rumney <jasonr@gnu.org>
9780
9781 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9782
97832008-08-29 Eli Zaretskii <eliz@gnu.org>
9784
9785 * composite.c (fill_gstring_body): Avoid compiler warnings.
9786
9787 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9788 LGLYPH_SET_CODE to avoid compiler warnings.
9789
2ae37cf0 9790 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9791
9792 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9793
9794 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9795 LGLYPH_SET_CODE.
9796
97972008-08-29 Kenichi Handa <handa@m17n.org>
9798
9799 * fileio.c (report_file_error): Don't downcase the first character
9800 of errstring if it is still unibyte.
9801
98022008-08-29 Kenichi Handa <handa@m17n.org>
9803
9804 These changes are to re-implement the automatic composition so
9805 that it doesn't use text properties.
9806
9807 * Makefile.in (ftfont.o): Depend on composite.h.
9808 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9809
9810 * character.h (Vunicode_category_table): Extern it.
9811
9812 * character.c (Vunicode_category_table): New variable.
9813 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9814
9815 * chartab.c (optimize_sub_char_table): Perform more greedy
9816 optimization.
9817
b8ff72fa
SM
9818 * composite.h (enum composition_method):
9819 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9820 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9821 (Vcomposition_function_table): Extern it.
9822 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9823 (composition_gstring_put_cache, composition_gstring_from_id)
9824 (composition_gstring_p, composition_gstring_width)
9825 (composition_compute_stop_pos, composition_reseat_it)
9826 (composition_update_it, composition_adjust_point): Extern them.
9827 (Fcomposition_get_gstring): EXFUN it.
9828
d66c0241 9829 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9830 (Vcomposition_function_table)
9831 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9832 (gstring_hash_table, gstring_work, gstring_work_headers):
9833 New variables.
aac0c6e3
MR
9834 (gstring_lookup_cache, composition_gstring_put_cache)
9835 (composition_gstring_from_id, composition_gstring_p)
9836 (composition_gstring_width, fill_gstring_header)
9837 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9838 (composition_reseat_it, composition_update_it)
b8ff72fa 9839 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9840 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9841 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9842 Defsubr composition_get_gstring.
aac0c6e3
MR
9843
9844 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9845 cmp_id.
9846 (struct glyph_string): Delete the member gidx. New members
9847 cmp_id, cmp_from, and cmp_to.
9848 (enum it_method): Delete GET_FROM_COMPOSITION.
9849 (struct composition_it): New struct.
9850 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9851 Delete c, len, cmp_id, cmp_len in u.comp.
9852
9853 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9854 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9855 (enum lglyph_indices): Likewise.
b8ff72fa 9856 (font_range): Adjust extern.
aac0c6e3
MR
9857 (font_fill_lglyph_metrics): Extern it.
9858
9859 * font.c (QCf): New variable.
9860 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9861 (font_prepare_composition): Delete this function.
9862 (font_range): Type and arguments changed.
9863 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9864 (font_fill_lglyph_metrics): New function.
b8ff72fa 9865 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9866 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9867 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9868 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9869
9870 * fontset.h (font_for_char): Extern it.
9871
9872 * fontset.c (font_for_char): New function.
9873
9874 * ftfont.c: Include composite.h.
9875 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9876 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9877
9878 * indent.c: Include composite.h and dispextern.h.
9879 (check_composition): Delete this function.
9880 (scan_for_column): Handle composition by
9881 composition_compute_stop_pos, composition_reseat_it, and
9882 composition_update_it.
9883 (compute_motion): Likewise.
9884 (Fvertical_motion): Fix checking of composition.
9885
9886 * keyboard.c (adjust_point_for_property): Check composition by
9887 composition_adjust_point.
9888
b8ff72fa 9889 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9890 struct glyph_string.
9891
b8ff72fa
SM
9892 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9893 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9894 struct glyph.
9895 (produce_composite_glyph): Likewise.
9896
b8ff72fa
SM
9897 * w32term.c (x_draw_composite_glyph_string_foreground):
9898 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9899 (x_draw_glyph_string): Likewise.
9900
9901 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9902 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9903
9904 * xdisp.c: Include font.h.
9905 (it_props): Delete the entry for Qauto_composed.
9906 (init_iterator): Initialize it->cmp_it.id to -1.
9907 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9908 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9909 (handle_auto_composed_prop): Delete it.
9910 (handle_composition_prop): Handle only static composition.
9911 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9912 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9913 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9914 (pop_it): Likewise.
9915 (get_next_element): Delete next_element_from_composition.
9916 (CHAR_COMPOSED_P): New macro.
9917 (get_next_display_element): For automatic composition, get a face
9918 from the font in the glyph-string.
9919 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9920 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9921 (next_element_from_string): Check if the character at the current
9922 position is composed by CHAR_COMPOSED_P.
9923 (next_element_from_buffer): Likewise.
d66c0241
JB
9924 (next_element_from_composition): Adjust for the change of struct it.
9925 Update it->cmp_it.
b8ff72fa
SM
9926 (dump_glyph): Adjust for the change of struct glyph.
9927 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9928 it and struct glyph. Don't handle automatic composition here.
9929 (fill_gstring_glyph_string): New function.
9930 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9931 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9932 (BUILD_GSTRING_GLYPH_STRING): New macro.
9933 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9934 automatic composition.
b8ff72fa 9935 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9936 struct glyph.
b8ff72fa 9937 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9938
b8ff72fa 9939 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9940 the change of struct glyph_string.
9941 (x_draw_glyph_string): Likewise.
9942
99432008-08-29 Glenn Morris <rgm@gnu.org>
9944
9945 * buffer.c (word-wrap): Doc fix.
9946 * xdisp.c (truncate-partial-width-windows): Doc fix.
9947 Increase default to 50.
9948
99492008-08-29 Chong Yidong <cyd@stupidchicken.com>
9950
9951 * xdisp.c (update_tool_bar_unwind): New function.
9952 (update_tool_bar): Temporarily set selected frame before building
9953 tool-bar items.
9954
99552008-08-28 Michael Albinus <michael.albinus@gmx.de>
9956
9957 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9958 snprintf, respectively.
9959 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9960
99612008-08-28 Chong Yidong <cyd@stupidchicken.com>
9962
9963 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9964 LDFLAGS to GNUstep CC invocation.
9965
99662008-08-27 Chong Yidong <cyd@stupidchicken.com>
9967
9968 * indent.c (Fvertical_motion): Revert last change. Handle the
9969 general case where we are moving forward, and PT spans multiple
9970 screen lines.
9971
9972 * eval.c (find_handler_clause): Temporarily increase
9973 max-lisp-eval-depth while printing the backtrace buffer, to
9974 guarantee that help-mode code can run.
9975
99762008-08-27 Eli Zaretskii <eliz@gnu.org>
9977
9978 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9979 colors under -rv.
9980 (IT_set_frame_parameters): Don't swap foreground and background
9981 colors if `(reverse . t)' is present in the frame properties.
9982 (internal_terminal_init): Call init_frame_faces only for the
9983 initial frame.
9984
99852008-08-27 Andreas Schwab <schwab@suse.de>
9986
9987 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9988
99892008-08-27 Andreas Schwab <schwab@suse.de>
9990
9991 * search.c (search_buffer): Set char_base to zero only at the end.
9992
99932008-08-27 Kenichi Handa <handa@m17n.org>
9994
b8ff72fa 9995 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9996
99972008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9998
9999 * xterm.c (x_term_init): Temporarily hide the partially
10000 initialized terminal while calling vendor-specific-keysyms.
10001
100022008-08-26 Eli Zaretskii <eliz@gnu.org>
10003
10004 * msdos.c (internal_terminal_init): Most initializations done only
10005 once, especially initial_screen_colors[] and termscript open.
10006
100072008-08-26 Chong Yidong <cyd@stupidchicken.com>
10008
10009 * eval.c (Fcondition_case): Doc fix.
10010
10011 * widgetprv.h (EmacsFramePart): Change font member to the new font
10012 struct.
10013
10014 * widget.c: Include character.h and font.h for XSETFONT.
10015 (setup_frame_gcs): Compute X font id from font struct, just once.
10016
100172008-08-26 Eli Zaretskii <eliz@gnu.org>
10018
10019 * term.c (get_named_tty): Fix last change.
10020
100212008-08-26 Chong Yidong <cyd@stupidchicken.com>
10022
10023 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10024 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10025
100262008-08-25 Eli Zaretskii <eliz@gnu.org>
10027
10028 * frame.c (do_switch_frame): Mark previously displayed frame as
10029 obscured for FRAME_MSDOS_P frames as well.
10030
100312008-08-24 Eli Zaretskii <eliz@gnu.org>
10032
10033 * frame.c (make_terminal_frame): Initialize f->terminal,
10034 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10035 Set the top frame to newly created frame.
10036 (Fmake_terminal_frame): Reuse the_only_display_info.
10037
10038 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10039 estimating available memory.
10040
b97439ce 100412008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10042
10043 * nsterm.m (ns_draw_window_cursor): Don't call
10044 NSDisableScreenUpdates and NSEnableScreenUpdates on
10045 non-NS_IMPL_COCOA systems.
10046
100472008-08-23 Andreas Schwab <schwab@suse.de>
10048
10049 * process.c (procfs_system_process_attributes): Fix use of
10050 uninitialized variables.
10051
100522008-08-23 Eli Zaretskii <eliz@gnu.org>
10053
10054 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10055
10056 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10057 calling tty-set-up-initial-frame-faces.
10058
b8ff72fa
SM
10059 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10060 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10061
10062 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10063 addition to output_termcap.
10064
10065 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10066
10067 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10068 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10069 highlight.
10070
10071 * process.c [!subprocesses]: Define QCname.
10072 (syms_of_process): Intern and staticpro it.
10073
10074 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10075 Adjust for changes in encoding/decoding routines.
10076 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10077 encode_coding and decode_coding.
10078
b8ff72fa 10079 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10080
10081 * dosfns.c: Include frame.h before termhooks.h.
10082 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10083 variable termscript.
10084
10085 * s/msdos.h (USER_FULL_NAME): Define.
10086 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10087
10088 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10089 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10090 pw->pw_gecos.
10091
10092 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10093 SELECTED_FRAME as additional (1st) argument.
10094 (tty_read_avail_input): Handle output_msdos_raw in
10095 addition to output_termcap.
10096
10097 * msdos.c: Include frame.h before termhooks.h.
10098 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10099 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10100 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10101 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10102 (IT_set_terminal_modes, IT_reset_terminal_modes)
10103 (IT_set_frame_parameters): Use tty->termscript instead of a global
10104 variable termscript.
10105 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10106 global variable terminal_coding. Don't refer to
10107 Vnonascii_translation_table.
10108 (internal_terminal_init): Set Vwindow_system in current_kboard.
10109 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10110 Announce date and time of session start, if termscript is open.
10111 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10112 term.c:init_tty). Open termscript only of not already open.
10113 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10114 here instead of dos_ttraw. Don't initialize display if this is an
10115 initial tty. Don't set FRAME_FONT.
10116 (Vwindow_system_version): Bump to 23.
10117 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10118 is available, set up mouse_position_hook.
10119 (dos_ttraw, IT_set_terminal_modes): If called with initial
10120 terminal, do nothing.
10121 (IT_set_frame_parameters): Handle the Qtty_type frame
10122 parameter by calling internal_terminal_init.
10123 (dos_set_window_size, show_mouse_face)
10124 (clear_mouse_face, IT_note_mode_line_highlight)
10125 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10126 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10127 (initialize_msdos_display): New function.
10128 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10129 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10130 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10131 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10132 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10133 (request_sigio, unrequest_sigio): Don't define, now defined on
10134 sysdep.c.
10135 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10136
10137 * term.c [MSDOS]: Include msdos.h.
10138 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10139 conditional to DOS_NT. Allow only one call to this function in a
10140 session. Don't allocate a new struct tty_display_info; instead,
10141 reuse the_only_display_info. Call get_tty_size to get screen
10142 dimensions. Call init_baud_rate to set bad_rate.
10143 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10144 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10145 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10146 (get_tty_terminal, get_named_tty, Ftty_type)
10147 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10148 output_termcap.
b8ff72fa
SM
10149 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10150 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10151 only when subprocesses are supported.
aac0c6e3
MR
10152
10153 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10154 f->output_data.x.
10155 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10156 terminal devices.
10157
5582fbc7 10158 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10159 x_output.
10160 (FRAME_FONT): Use output_data.tty.
10161 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10162 (struct x_display_info): Rename from display_info. Update all users in
10163 msdos.c.
aac0c6e3 10164 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10165 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10166 (dos_ttraw): Update prototype.
10167
10168 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10169 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10170
101712008-08-23 Jason Rumney <jasonr@gnu.org>
10172
10173 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10174 (fn_TIFFSetDirectory): New library function used.
10175 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10176 (tiff_load): Use :index to select among multiple images. Set count
10177 property when multiple images exist.
10178 (gif_format): Use :index, not :image.
10179
101802008-08-23 Chong Yidong <cyd@stupidchicken.com>
10181
10182 * xdisp.c (try_scrolling): Check INT_MAX instead of
10183 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10184 to obtain INT_MAX.
10185
101862008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10187
10188 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10189
101902008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10191
10192 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10193 GNUstep library location.
10194
101952008-08-21 Chong Yidong <cyd@stupidchicken.com>
10196
10197 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10198 before using it.
10199
10200 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10201
102022008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10203
10204 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10205 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10206 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10207 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10208 (EmacsApp-cursor_blink_handler): Remove declaration.
10209 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10210 match 01 Feb 2008 changes in xterm.c.
10211 (ns_read_socket): Add cast to avoid warning.
10212 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10213 GNUstep.
10214
102152008-08-20 Chong Yidong <cyd@stupidchicken.com>
10216
10217 * xselect.c (x_get_foreign_selection): Return nil if desired
10218 selection could not be obtained, instead of signalling an error.
10219
102202008-08-20 David Reitter <david.reitter@gmail.com>
10221
10222 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10223 * nsterm.m: Remove ns-specific code for cursor blinking.
10224 (ns_draw_window_cursor): Clear cursor properly rather than
10225 redrawing the area. Respect width of bar cursors.
10226 These changes enable the use of generic blink-cursor-mode and
10227 generic cursor types in NS and support smooth cursor movements (do
10228 not blink off after command).
10229 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10230 Nextstep, too.
10231
102322008-08-19 Kenichi Handa <handa@m17n.org>
10233
10234 * font.c (Vfont_log_deferred): New variable.
10235 (font_add_log): Check Vfont_log_deferred.
10236 (font_deferred_log): New function.
10237
10238 * font.h (font_deferred_log): Extern it.
10239
10240 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10241 for sorting.
10242 (face_for_char): Use deferred log.
10243
102442008-08-18 Kenichi Handa <handa@m17n.org>
10245
10246 * fontset.c (face_for_char): Add font log.
10247
10248 * font.c (font_add_log): Add the font properties :script, :lang,
10249 and :otf in the log.
10250
102512008-08-17 Chong Yidong <cyd@stupidchicken.com>
10252
10253 * xdisp.c: Remove dead code.
10254 (handle_invisible_prop, next_overlay_string): Defer call to
10255 setup_for_ellipsis.
10256 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10257
102582008-08-15 Chong Yidong <cyd@stupidchicken.com>
10259
10260 * xfaces.c (lookup_derived_face): Properly handle possible zero
10261 return value of get_lface_attributes.
10262 (merge_faces): Don't tell lookup_derived_face to signal an error
10263 if face is not found.
10264
10265 * dired.c (Fdirectory_files): Doc fix.
10266
10267 * process.c (make_process): Initialize kill_without_query struct
10268 member.
10269
102702008-08-15 Eli Zaretskii <eliz@gnu.org>
10271
10272 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10273 Alternative calculation of totphys for Visual Studio 6.
10274
10275 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10276
10277 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10278 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10279 All users changed.
10280 (stat): Only root directory passed to GetDriveType. Allow RAM
10281 disk as well as local fixed disk when w32-get-true-file-attributes
10282 is set to `local'.
10283 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10284 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10285 (w32_cached_id, w32_add_to_cache): New functions.
10286 (get_name_and_id): Look account names in the cache before calling
10287 lookup_account_sid.
10288 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10289 New initialization flags.
10290 (globals_of_w32): Initialize them to zero.
10291 (w32_system_process_attributes): Use w32_cached_id and
10292 w32_add_to_cache.
10293
102942008-08-14 Lawrence Mitchell <wence@gmx.li>
10295
10296 * lread.c (Fread_char, Fread_char_exclusive): If no character
10297 event is read before timeout is reached, return nil, rather than
10298 converting to a number.
10299
103002008-08-14 Chong Yidong <cyd@stupidchicken.com>
10301
10302 * fns.c (use_dialog_box): Doc fix.
10303
10304 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10305 on OS X.
10306
103072008-08-13 Chong Yidong <cyd@stupidchicken.com>
10308
10309 * frame.c (Qns_parse_geometry): New var.
10310 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10311
103122008-08-11 Chong Yidong <cyd@stupidchicken.com>
10313
10314 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10315 space character in calculating tabs.
10316
103172008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10318
10319 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10320
103212008-08-10 Glenn Morris <rgm@gnu.org>
10322
10323 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10324 silence gcc "limited range of data type" warnings in some
10325 make_fixnum_or_float calls.
10326
103272008-08-09 Eli Zaretskii <eliz@gnu.org>
10328
10329 * w32.c (w32_system_process_attributes): If the process does not
10330 exist, return nil.
10331
10332 * w32.c: Include thelp32.h, psapi.h and coding.h.
10333 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10334 declarations.
10335 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10336 (Process32Next_Proc): New typedefs.
10337 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10338 (g_b_init_process32_next, g_b_init_open_thread_token)
10339 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10340 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10341 (g_b_init_get_process_working_set_size)
10342 (g_b_init_global_memory_status_ex): New static variables.
10343 (globals_of_w32): Initialize them.
10344 (create_toolhelp32_snapshot, process32_first, process32_next)
10345 (open_thread_token, impersonate_self, revert_to_self)
10346 (get_process_memory_info, get_process_working_set_size)
10347 (global_memory_status, global_memory_status_ex): New wrapper
10348 functions.
10349 (w32_list_system_processes, w32_system_process_attributes)
10350 (enable_privilege, restore_privilege, ltime, process_times):
10351 New functions.
10352 (convert_time_raw): New function.
10353 (convert_time): Remove conversion of FILETIME into time in 100
10354 nsec units, call convert_time_raw instead.
10355
10356 * process.h (w32_list_system_processes, w32_system_process_attributes):
10357 Add prototypes.
10358 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10359 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10360 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10361 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10362
10363 * process.c (Fsystem_process_attributes): Doc fix.
10364
103652008-08-08 Chong Yidong <cyd@stupidchicken.com>
10366
10367 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10368 a continued multi-char glyph; if so, advance to the actual glyph.
10369
103702008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10371
10372 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10373
10374 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10375 (.m.o): Use it.
10376 * config.in: Regenerate.
10377
103782008-08-07 Chong Yidong <cyd@stupidchicken.com>
10379
10380 * xdisp.c (redisplay_window): Revert last change.
10381 (try_window): Check bottom scroll margin too.
10382
103832008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10384
10385 * config.in: Regenerate.
10386
10387 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10388 -list-load-path-shadows'.
10389 (nsgui.h): Reduce number of things depending on it.
10390
103912008-08-06 Chong Yidong <cyd@stupidchicken.com>
10392
10393 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10394 instead of window-end which does the wrong thing at eob.
10395 (try_cursor_movement): Minor optimization.
10396 (redisplay_window): If scroll margin is defined, don't assume
10397 window doesn't need scrolling.
10398
103992008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10400
10401 * config.in: Regenerate.
10402
10403 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10404 (mostlyclean): Don't delete *.d under NS.
10405
10406 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10407
104082008-08-06 Kenichi Handa <handa@m17n.org>
10409
10410 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10411
104122008-08-06 Andreas Schwab <schwab@suse.de>
10413
10414 * config.in: Regenerate.
10415
104162008-08-05 Chong Yidong <cyd@stupidchicken.com>
10417
10418 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10419 forcing a window start.
10420
10421 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10422 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10423
104242008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10425
10426 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10427 argument.
10428
104292008-08-05 Juanma Barranquero <lekktu@gmail.com>
10430
10431 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10432 <scroll-down-aggressively, before-change-functions>:
10433 <after-change-functions>: Reflow docstrings.
10434
104352008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10436 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10437
10438 Dock menu customization, based on a patch by Ken Raeburn, plus some
10439 other fixes.
10440 * nsmenu.m (dockMenu): New variable.
10441 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10442
10443 * nsterm.h (dockMenu): Declare.
10444
10445 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10446 (ns_term_init): Initialize dockMenu.
10447 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10448 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10449 left.
10450
10451 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10452
104532008-08-04 Chong Yidong <cyd@stupidchicken.com>
10454
10455 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10456
10457 * config.in: Regenerate.
10458
104592008-08-04 Seiji Zenitani <zenitani@mac.com>
10460
10461 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10462
104632008-08-04 Chong Yidong <cyd@stupidchicken.com>
10464
10465 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10466
104672008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10468
10469 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10470
10471 * keyboard.h: Comment an #endif.
10472
10473 * lisp.h (have_menus_p): Adjust comment.
10474
10475 * menu.c (find_and_return_menu_selection): Fix comparison with
10476 client_data.
10477
10478 * nsmenu.m (popup_activated_flag): New variable.
10479 (popup_activated): New function.
10480 (menu-or-popup-active-p): New exported lisp definition.
10481 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10482 when popup done.
10483 (ns_popup_dialog): Set popup_activated_flag.
10484
10485 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10486 version for GNUstep (handled by conditional typedef in nsterm.m).
10487 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10488 in rgb.txt).
10489
10490 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10491
10492 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10493
10494 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10495
10496 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10497 shortcircuit if popup_activated like GTK and X toolkit.
10498
10499 * m/inter386.h: Change DARWIN to DARWIN_OS.
10500
10501 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10502 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10503 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10504 comment on NO_SOCK_SIGIO.
10505
105062008-08-03 Chong Yidong <cyd@stupidchicken.com>
10507
10508 * nsterm.m (windowDidResize): Remove stopModal call.
10509
105102008-08-03 Andreas Schwab <schwab@suse.de>
10511
10512 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10513 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10514
105152008-08-02 Chong Yidong <cyd@stupidchicken.com>
10516
10517 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10518 Don't use uninitialized pointer variable when using getrlimit.
10519
105202008-08-02 Jason Rumney <jasonr@gnu.org>
10521
10522 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10523
105242008-08-02 Eli Zaretskii <eliz@gnu.org>
10525
10526 * alloc.c (NSTATICS): Bump to 0x640.
10527
10528 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10529
10530 * lisp.h: Add prototype for directory_files_internal.
10531
10532 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10533 New functions.
10534 (syms_of_process): Defsubr them. Add initializations for various
10535 Q* symbols used in procfs_system_process_attributes.
10536 (procfs_list_system_processes, procfs_system_process_attributes)
10537 [HAVE_PROCFS]: New functions.
10538 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10539 (procfs_get_total_memory): New functions.
10540
105412008-08-01 Juanma Barranquero <lekktu@gmail.com>
10542
10543 * xfaces.c (Fx_load_color_file): Fix previous change;
10544 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10545
105462008-08-01 Michael Albinus <michael.albinus@gmx.de>
10547
10548 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10549
105502008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10551
10552 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10553
105542008-08-01 Chong Yidong <cyd@stupidchicken.com>
10555
10556 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10557
10558 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10559 define NSApplicationDelegateReplySuccess.
10560 (EmacsView -converstationIdentifier): Use long instead of
10561 NSInteger for GNUstep, since it doesn't have NSInteger.
10562
10563 * xmenu.c: Revert last change.
10564
10565 * keyboard.h: Fix last change.
10566
105672008-08-01 Juanma Barranquero <lekktu@gmail.com>
10568
10569 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10570 on Windows.
10571
105722008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10573
10574 Warning clearing and clean-up in NS port.
10575 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10576 Add prototypes.
10577 * nsgui.h (FACE_DEFAULT): Remove, unused.
10578 (XGCValues): Change colors to unsigned long.
10579 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10580 nsterm.m.
10581 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10582 (ns_list_fonts): Remove, unused.
10583 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10584 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10585 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10586 (nsfont_draw): Compare face colors to 0, not nil.
10587 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10588 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10589 (-addSubmenuWithTitle:): Use NSMenuItem class.
10590 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10591 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10592 (ns_clip_to_row): Make gc arg a BOOL.
10593 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10594 ns_clip_to_row() call.
10595 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10596 used). Cast FRAME_FONT assignments.
10597 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10598 (ns_string_to_lispmod): Change arg to const char.
10599 (ns_term_init): Use NSMenuItem class.
10600 (EmacsApp -openFile:): Move to different section of file.
10601 (EmacsApp -application:openFiles:): Don't return a value, call
10602 -replyToOpenOrPrint:.
10603 (EmacsView -keyDown:): Fix up cast.
10604 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10605 (EmacsView -menuDown:): Cast tag in call to
10606 find_and_call_menu_selection().
10607 (ns_list_fonts): Remove, unused.
10608 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10609 (ns_fontname_to_xlfd): Make static.
10610 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10611 Remove prototypes (now in keyboard.h).
10612 (next_menubar_widget_id): Remove, unused.
10613 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10614 Remove prototypes (now in keyboard.h).
10615 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10616
106172008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10618
10619 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10620 (floatfns.o): Depend on syssignal.h.
10621 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10622
10623 * systty.h: Fix previous change that removed BSD_TERMIOS.
10624 Add comments to #ifdefs.
10625
106262008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10627
10628 * w32fns.c (w32-load-color-file): Remove.
10629 (x-open-connection): Use renamed Fx_load_color_file.
10630 * xfaces.c (x-load-color-file): Add.
10631 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10632 Emacs.clr.
10633 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10634
106352008-07-31 Michael Albinus <michael.albinus@gmx.de>
10636
10637 * dbusbind.c (Fdbus_call_method_asynchronously)
10638 (Fdbus_method_error_internal): New defuns.
10639 (xd_read_message): Handle also reply messages.
10640 (Vdbus_registered_functions_table): Extend docstring.
10641
106422008-07-31 Juanma Barranquero <lekktu@gmail.com>
10643
10644 * keyboard.c (gobble_input): Fix previous change.
10645
106462008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10647
10648 * bitmaps/README:
10649 * xfns.c:
10650 * termcap.c:
10651 * term.c:
10652 * syswait.h:
10653 * systty.h:
10654 * systime.h:
10655 * syssignal.h:
10656 * sysdep.c:
10657 * process.h:
10658 * process.c:
10659 * print.c:
10660 * ndir.h:
10661 * lread.c:
10662 * keyboard.c:
10663 * getpagesize.h:
10664 * floatfns.c:
10665 * fileio.c:
10666 * emacs.c:
10667 * doc.c:
10668 * dispnew.c:
10669 * dired.c:
10670 * data.c:
10671 * callproc.c:
10672 * buffer.c:
10673 * README:
10674 * Makefile.in:
10675 * s/template.h:
10676 * s/msdos.h:
10677 * m/vax.h: Remove VMS support.
10678 * s/vms.h:
10679 * vlimit.h:
10680 * uaf.h:
10681 * temacs.opt:
10682 * param.h:
10683 * ioctl.h: Remove file.
10684
106852008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10686
10687 * s/ms-w32.h (MULTI_KBOARD): Remove.
10688 * xterm.c:
10689 * xselect.c:
10690 * xfns.c:
10691 * window.c:
10692 * w32term.c:
10693 * w32fns.c:
10694 * terminal.c:
10695 * termhooks.h:
10696 * term.c:
10697 * sysdep.c:
10698 * keyboard.h:
10699 * keyboard.c:
10700 * frame.h:
10701 * frame.c:
10702 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10703 * config.in: Regenerate.
10704
107052008-07-30 Jason Rumney <jasonr@gnu.org>
10706
10707 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10708
10709 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10710 (w32font_open_internal): Get unicode version of textmetrics.
10711 Don't enable or disable glyph indices here.
10712 (w32font_open): Disable use of glyph indices.
10713
10714 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10715
107162008-07-30 Chong Yidong <cyd@stupidchicken.com>
10717
10718 * minibuf.c (Vread_buffer_function): Doc fix.
10719
107202008-07-30 John Paul Wallington <jpw@pobox.com>
10721
10722 * minibuf.c (read_buffer_completion_ignore_case): New var.
10723 (Fread_buffer): Use it.
10724
107252008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10726
10727 * systty.h (sensemode): Remove empty #if. Remove reference to
10728 BSD_TERMIOS, unused.
10729
10730 * sysdep.c: Remove reference to DGUX.
10731 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10732
10733 * config.in: Regenerate.
10734
107352008-07-30 Jason Rumney <jasonr@gnu.org>
10736
10737 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10738
107392008-07-29 Jason Rumney <jasonr@gnu.org>
10740
10741 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10742 is populated.
10743 (uniscribe_encode_char): Always use uniscribe.
10744 Avoid using context if cache is populated.
10745
107462008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10747
10748 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10749 open menu.
10750
10751 * gtkutil.c (menu_nav_ended): Remove.
10752 (create_menus): Remove signal connect for menu_nav_ended.
10753
107542008-07-28 Chong Yidong <cyd@stupidchicken.com>
10755
10756 * xdisp.c (redisplay_window): Check return value of
10757 compute_window_start_on_continuation_line before forcing a window
10758 start.
10759
107602008-07-28 Jason Rumney <jasonr@gnu.org>
10761
10762 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10763
10764 * w32term.c (w32_enable_unicode_output, cleartype_active):
10765 Remove obsolete display options.
10766 (x_draw_glyph_string_background): Don't use old cleartype_active
10767 workaround.
10768 (w32_initialize): Remove cleartype_active initialization.
10769 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10770
107712008-07-28 Andreas Schwab <schwab@suse.de>
10772
10773 * lisp.h (init_weak_hash_tables, syms_of_font)
10774 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10775 (remove_hash_entry): Don't declare.
10776 * eval.c (maybe_call_debugger): Make static and move before use.
10777 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10778 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10779 * xterm.h (x_set_frame_alpha): Declare.
10780
107812008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10782
10783 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10784 (create_menus): Connect selection-done to menu_nav_ended.
10785
107862008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10787
10788 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10789 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10790 parameter with read of 'alpha' one.
10791 (Qns_frame_parameter): Remove.
5582fbc7 10792 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10793 (next-selection-coding-system, Vselection_coding_system)
10794 (Vnext_selection_coding_system): Drop.
10795
107962008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10797
10798 * nsfns.m (do-applescript, do_applescript): Rename to
10799 ns-do-applescript, ns_do_applescript, and move within file.
10800
108012008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10802
10803 Remove support for Mac Carbon.
10804 * mactoolbox.c:
10805 * macterm.h:
10806 * macterm.c:
10807 * macselect.c:
10808 * macmenu.c:
10809 * macgui.h:
10810 * macfns.c:
10811 * mac.c: Remove file.
10812 * s/darwin.h:
10813 * m/intel386.h:
10814 * xfaces.c:
10815 * xdisp.c:
10816 * window.c:
10817 * tparam.c:
10818 * termhooks.h:
10819 * termcap.c:
10820 * term.c:
10821 * syssignal.h:
10822 * sysselect.h:
10823 * sysdep.c:
10824 * process.c:
10825 * lread.c:
10826 * lisp.h:
10827 * keyboard.c:
10828 * image.c:
10829 * fringe.c:
10830 * frame.h:
10831 * frame.c:
10832 * fontset.c:
10833 * font.h:
10834 * font.c:
10835 * fns.c:
10836 * fileio.c:
10837 * emacs.c:
10838 * dispnew.c:
10839 * dispextern.h:
10840 * config.in:
10841 * atimer.c:
2ae37cf0 10842 * Makefile.in: Remove code for Carbon.
aac0c6e3 10843
f0131492 108442008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10845
10846 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10847
108482008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10849
10850 * macterm.h (kCGBitmapByteOrder32Host): New define for
10851 non-universal SDKs.
10852
10853 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10854 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10855
10856 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10857 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10858
108592008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10860
10861 * w32inevt.c: Include dispextern.h.
10862
108632008-07-26 Andreas Schwab <schwab@suse.de>
10864
10865 * print.c (print_object): Fix off-by-one in last change.
10866
108672008-07-25 Juanma Barranquero <lekktu@gmail.com>
10868
10869 * term.c (syms_of_term): Don't initialize default_orig_pair,
10870 default_set_foreground and default_set_background on Windows.
10871
108722008-07-25 Jason Rumney <jasonr@gnu.org>
10873
10874 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10875 ScriptItemize. Clean up return value checking. Remove unused
10876 variables.
10877 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10878 shaping engine.
10879
10880 * w32font.c (w32font_has_char): Handle the case where we can't
10881 determine the script for a character.
10882
108832008-07-25 Chong Yidong <cyd@stupidchicken.com>
10884
10885 * term.c (syms_of_term): Initialize default_orig_pair,
10886 default_set_foreground, and default_set_background.
10887
10888 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10889 clash (bug#86).
10890 (getloadavg): Callers changed.
10891
10892 * image.c (svg_load_image): Fix last change.
10893 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10894 image size is valid. Use g_object_unref instead of deprecated
10895 rsvg_handle_free to free rsvg handle.
10896 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10897
108982008-07-25 Jason Rumney <jasonr@gnu.org>
10899
10900 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10901 surrogates before looking up glyph index.
10902 (w32font_text_extents): Encode as surrogates if falling back to
10903 functions that need UTF-16 wide chars.
10904
10905 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10906 BMP as surrogates before looking up glyph index.
10907
109082008-07-25 Chong Yidong <cyd@stupidchicken.com>
10909
10910 * image.c (svg_load_image): Check for failure in return value of
10911 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10912
109132008-07-25 Jason Rumney <jasonr@gnu.org>
10914
10915 * w32font.c (Fx_select_font): Reverse sense of second arg.
10916
109172008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10918
10919 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10920 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10921
10922 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10923 (PURESIZE): Use it.
10924
109252008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10926
10927 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10928 * m/alpha.h (TEXT_END):
10929 * m/ibmrs6000.h (TEXT_END):
10930 * m/macppc.h (TEXT_END):
10931 * s/darwin.h (TEXT_END):
10932 * s/msdos.h (TEXT_END): Remove, unused.
10933 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10934 * s/cygwin.h: Remove comment.
10935
10936 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10937 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10938 * m/intel386.h (DOT_GLOBAL_START):
10939 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10940 (USG): Remove, file not used on USG platforms.
10941
10942 * Makefile.in (HAVE_X11): Remove empty #else.
10943
109442008-07-24 Andreas Schwab <schwab@suse.de>
10945
10946 * fileio.c (Finsert_file_contents): Properly adjust undo list
10947 after format conversion.
10948
109492008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10950
10951 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10952 (menu_nav_ended): Remove.
10953 (create_menus): Remove signal connect for menu_nav_ended.
10954 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10955 create_menus.
10956 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10957
109582008-07-23 Jason Rumney <jasonr@gnu.org>
10959
10960 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10961 with opened font.
10962 (w32font_open): Set font type to gdi.
10963
10964 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10965
109662008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10967
10968 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10969 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10970 defines it.
10971 * unexec.c (ADDR_CORRECT): Define unconditionally.
10972
10973 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10974
10975 * unexec.c: Remove code depending on !COFF and USG, the file is
10976 not used for such systems.
10977
10978 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10979 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10980 (LD_SWITCH_SYSTEM_1): Remove, update users.
10981
10982 * s/darwin.h (DATA_END):
10983 * m/intel386.h (DATA_END):
10984 * m/ibmrs6000.h (DATA_END):
10985 * m/alpha.h (DATA_END): Remove, unused.
10986
10987 * config.in: Regenerate.
10988 * s/ms-w32.h (subprocesses): Define unconditionally.
10989 * s/template.h (subprocesses): Update comment.
10990 * s/vms.h (subprocesses):
10991 * s/usg5-4.h (subprocesses):
10992 * s/hpux10-20.h (subprocesses):
10993 * s/gnu-linux.h (subprocesses):
10994 * s/cygwin.h (subprocesses):
10995 * s/bsd-common.h (subprocesses):
10996 * s/aix4-2.h (subprocesses):
10997 * s/darwin.h (subprocesses): Do not define, defined by default now.
10998
10999 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11000 Remove all references.
11001 (temacs): Add GNUstep specific ld flags.
11002
11003 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11004 similarly to what X does.
11005
110062008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11007
11008 * nsfns.m (x-list-fonts): Remove.
11009 (syms_of_nsfns): Drop the x-list-fonts declaration.
11010 * nsterm.m: Get rid of remaining "//" comments.
11011
110122008-07-22 Chong Yidong <cyd@stupidchicken.com>
11013
11014 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11015
11016 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11017 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11018 (Fns_own_selection_internal, Fx_disown_selection_internal)
11019 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11020
11021 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11022 ... */' style of docstrings. Doc fixes.
11023
110242008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11025
11026 * terminfo.c (UP, BC, PC): Undo previous change.
11027
11028 * nsfns.m: Rename ns prefixed functions/variables to the
11029 corresponding x versions. Update references.
11030
110312008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11032
11033 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11034
110352008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11036
11037 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11038 Remove forwarding functions.
11039 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11040 non-static.
11041 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11042 non-static.
11043 (ns_frame_parm_handlers): Use the new names.
11044 (syms_of_nsfns): Move to the end of file.
11045
11046 * nsterm.m (syms_of_nsterm): Move to the end of file.
11047
11048 * dispnew.c (init_display): Remove code for X10.
11049
110502008-07-22 Jason Rumney <jasonr@gnu.org>
11051
11052 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11053 bare drive.
11054
110552008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11056
11057 * nsterm.m (syms_of_nsterm): Remove debugging println.
11058
110592008-07-22 David Reitter <david.reitter@gmail.com>
11060
11061 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11062 Carbon implementation of the same functionality: execute arbitrary
11063 AppleScript code.
11064
110652008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11066
11067 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11068 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11069 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11070 (Fx_display_mm_height, Fx_display_mm_width)
11071 (Fx_display_backing_store, Fx_display_visual_class)
11072 (Fx_display_save_under, Fx_open_connection)
11073 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11074 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11075 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11076 (Fx_display_pixel_width, Fx_display_pixel_height)
11077 (Fx_display_usable_bounds, Fx_display_planes)
11078 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11079 ... */' style of docstrings.
11080
110812008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11082
11083 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11084 on this platform.
11085 (mips):
11086 * m/iris4d.h (mips): Do not define.
11087 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11088
11089 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11090
11091 * image.c:
11092 * nsfns.m:
11093 * nsselect.m:
11094 * nsterm.h:
11095 * nsterm.m: Rename ns prefixed functions/variables to the
11096 corresponding x versions. Update references.
11097
11098 * m/ibms390x.h (NO_REMAP): Do not undefine.
11099
11100 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11101
111022008-07-21 Chong Yidong <cyd@stupidchicken.com>
11103
11104 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11105 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11106 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11107 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11108 (Fns_display_mm_height, Fns_display_mm_width)
11109 (Fns_display_backing_store, Fns_display_visual_class)
11110 (Fns_display_save_under, Fns_open_connection)
11111 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11112 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11113 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11114 (Fns_display_pixel_width, Fns_display_pixel_height)
11115 (Fns_display_usable_bounds, Fx_display_planes)
11116 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11117
111182008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11119
11120 * print.c (print_object): Check print_depth before searching for
11121 circularities.
11122
111232008-07-21 Michael Albinus <michael.albinus@gmx.de>
11124
11125 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11126 only sprintf.
11127
111282008-07-21 Kenichi Handa <handa@m17n.org>
11129
11130 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11131
111322008-07-20 Andreas Schwab <schwab@suse.de>
11133
11134 * syntax.c (find_start_pos, find_start_value)
11135 (find_start_value_byte, find_start_begv, find_defun_start)
11136 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11137
111382008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11139
11140 * s/sol2-3.h: Insert contents of s/sol2.h.
11141 (LD_SWITCH_SYSTEM): Remove redundant definition.
11142 * s/sol2.h: Remove, unused.
11143
111442008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11145
11146 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11147
111482008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11149
11150 * Makefile.in (ns_appdir): Fix typo in find command.
11151
111522008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11153
11154 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11155
11156 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11157 added not supported anymore.
11158
11159 * s/usg5-4-2.h (LIBS_SYSTEM):
11160 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11161
11162 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11163 * s/lynxos.h (GETPGRP_NO_ARG):
11164 * s/hpux10-20.h (NO_SIOCTL_H):
11165 * s/gnu.h (GETPGRP_NO_ARG):
11166 * s/gnu-linux.h (NO_SIOCTL_H):
11167 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11168 * s/cygwin.h (GETPGRP_NO_ARG):
11169 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11170 (C_DEBUG_SWITCH): Remove duplicate definition.
11171
11172 * m/ibms390.h: Remove boilerplate comments.
11173
11174 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11175
11176 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11177 (wait_reading_process_output): Remove code for SunOS, platform not
11178 supported anymore. Use SOLARIS2 instead of sun.
11179
111802008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11181
11182 * font.c (font_open_by_name): Under NS, default lface height to zero.
11183 (font_open_for_lface): Under NS, set size based on frame fontsize.
11184 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11185 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11186
111872008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11188
11189 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11190 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11191 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11192 YES/NO.
11193 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11194 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11195 * Makefile.in (clean): Clear out build destination dir.
11196
111972008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11198
11199 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11200 xterm, xselect.
11201 * lisp.h: Remove declaration of hash_remove.
11202 * nsgui.h: Remove redefinitions of hash_remove.
11203 * fns.c (hash_remove): Rename to hash_remove_from_table.
11204
112052008-07-19 Seiji Zenitani <zenitani@mac.com>
11206
11207 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11208 strdup() the family UTF8String before modifying it.
11209
112102008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11211
11212 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11213 NS_FACE_BACKGROUND with 0 instead of nil.
11214 * nsfont.m (nsfont_draw): Same.
11215
112162008-07-19 Chong Yidong <cyd@stupidchicken.com>
11217
11218 * nsfns.m (ns_set_background_color): Fix crash.
11219
112202008-07-18 Chong Yidong <cyd@stupidchicken.com>
11221
11222 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11223
112242008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11225
11226 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11227
112282008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11229
11230 * gtkutil.c: Include <config.h> instead of "config.h".
11231
11232 * lisp.h (Foverlay_buffer): Add EXFUN.
11233
11234 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11235 child process to complete child_setup. Undo 2005-09-21 change.
11236
11237 * s/darwin.h: Mention setsid after vfork.
11238
112392008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11240
11241 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11242 Depend on macgui.h.
11243
11244 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11245 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11246
11247 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11248 and f19.
11249 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11250
11251 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11252 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11253 Remove enumerators.
11254
11255 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11256 Check if FACE_FROM_ID returns NULL.
11257
112582008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11259
11260 * w32inevt.c (change_frame_size): Remove extern declaration.
11261 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11262 change_frame_size.
11263
112642008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11265
11266 * getloadavg.c: Revert last change (2008-07-15).
11267
112682008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11269
11270 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11271 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11272 from configure.
11273
112742008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11275
11276 * s/sol2.h:
11277 * s/sol2-4.h: Reorganize conditionals.
11278
11279 * ecrt0.c: Remove code depending on m68000, not used anymore.
11280
11281 * fns.c (hash_remove): Make static.
11282 * lisp.h (hash_remove): Don't prototype.
11283
11284 * m/ibmrs6000.h:
11285 * m/ibms390x.h:
11286 * m/macppc.h: Remove boilerplate comments.
11287
11288 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11289 Solaris, which does not need them.
11290
11291 * m/vax.h: Remove comments about unsupported systems.
11292
11293 * s/darwin.h: Reorganize ifdefs.
11294
112952008-07-17 Andreas Schwab <schwab@suse.de>
11296
11297 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11298
112992008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11300
11301 Use SDATA. Follow coding convention of placing operators at
11302 beginning of next line rather than end of previous line, and placing
11303 spaces around infix operators.
11304
11305 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11306 in case it was defined already.
11307 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11308 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11309 ns_default.
11310 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11311 Lisp_Objects.
11312 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11313 (ns_defined_color, ns_color_to_lisp): Declare.
11314 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11315 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11316 it's accepted even with USE_LISP_UNION_TYPE.
11317 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11318 (update_frame_tool_bar): Remove apparently obsolete tests for
11319 non-integerness of f->tool_bar_lines.
11320 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11321 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11322 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11323 (nsfont_open): Don't confuse NULL for Qnil.
11324 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11325 * menu.h (find_and_call_menu_selection):
11326 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11327 (find_and_return_menu_selection): Always return something.
11328 * frame.h: Include dispextern.h for Display_Info.
11329 (display_x_get_resource): Declare.
11330
113312008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11332
11333 * syntax.c: Remove stdio.h include accidentally introduced in
11334 Emacs.app commit.
11335 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11336 NS_IMPL_COCOA.
11337 * keyboard.c (handle_async_input, input_available_signal): Remove
11338 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11339
113402008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11341
11342 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11343 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11344 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11345 Use SDATA.
11346
11347 * keymap.c: Remove all NS-specific code.
11348 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11349 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11350 where_is_preferred_modifier, return a different value depending on how
11351 preferred is the binding.
11352 (where_is_internal): Adjust accordingly.
11353 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11354 Adjust to new preferred_sequence_p.
11355 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11356 * keyboard.c (parse_solitary_modifier): Not static any more.
11357 * keyboard.h (parse_solitary_modifier): Declare.
11358
113592008-07-16 Andreas Schwab <schwab@suse.de>
11360
11361 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11362 of easymenu.
11363
113642008-07-16 Chong Yidong <cyd@stupidchicken.com>
11365
11366 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11367 that we don't move off the line.
11368
113692008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11370
11371 * keyboard.c (Qsuper): Remove.
11372 (parse_menu_item): Don't call where_is_internal specially for NS.
11373
113742008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11375
11376 * s/gnu-linux.h: Remove boilerplate comments.
11377
11378 * m/alpha.h (__ELF__): Consolidate conditions.
11379
11380 * m/m68k.h (linux): Use GNU_LINUX instead.
11381 Remove boilerplate comments.
11382
11383 * m/intel386.h: Undo refactoring from previous change.
11384 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11385 too, remove dead code.
11386 (linux): Use GNU_LINUX instead.
11387
113882008-07-16 Jason Rumney <jasonr@gnu.org>
11389
11390 * w32gui.h: Repeat 26 June changes lost by last change.
11391
113922008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11393
11394 * systty.h: Remove code for Aix on 386, unsupported platform.
11395
11396 * s/ms-w32.h: Remove boilerplate comments.
11397 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11398
11399 * s/gnu-linux.h (TERM): Remove support.
11400 (HAVE_SYSVIPC): Remove, unused.
11401 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11402 for this system.
11403
11404 * process.c: Remove support for IRIS, unused.
11405 Remove support for TERM, not relevant anymore.
11406
11407 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11408 used with the definition.
11409
11410 * s/aix4-2.h (static): Do not undef.
11411
11412 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11413 only used on Aix.
11414 (HAVE_SYSVIPC): Remove, unused.
11415
11416 * m/hp800.h (CANNOT_DUMP): Do not undef.
11417
11418 * m/alpha.h: Fix comment.
11419
11420 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11421 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11422 used by this configuration.
11423 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11424 * unexec.c: Remove code depending on HPUX and
11425 USG_SHARED_LIBRARIES, not used with this file. Remove code
11426 depending on IRIS, unused. Remove if 0-ed code.
11427
11428 * s/template.h: Remove comments about static.
11429
11430 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11431 Remove if 0-ed code.
11432 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11433 were the same as the default.
11434 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11435 Remove boilerplate comments.
11436 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11437 (HAVE_SYSVIPC): Remove, unused.
11438 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11439
11440 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11441 Remove boilerplate comments.
11442 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11443 Remove boilerplate comments.
11444 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11445 Remove boilerplate comments.
11446 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11447
11448 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11449 USG systems which do not use DATA_SEG_BITS.
11450 Refactor code. Remove boilerplate comments.
11451
11452 * m/ibms390.h:
11453 * m/m68k.h:
11454 * s/bsd-common.h:
11455 * s/cygwin.h:
11456 * s/darwin.h:
11457 * s/freebsd.h:
11458 * s/gnu.h:
11459 * s/msdos.h: Remove boilerplate comments.
11460
11461 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11462 do not use this file.
aac0c6e3
MR
11463 (IRIS_4D): Remove, unused.
11464
11465 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11466 do not use this file.
aac0c6e3
MR
11467 (SIGN_EXTEND_CHAR):
11468 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11469 * unexmips.c: Remove file, unused.
11470
11471 * editfns.c (Fuser_full_name): Replace the only use of
11472 USER_FULL_NAME with its value.
11473 * config.in: Regenerate.
11474
114752008-07-16 David Reitter <david.reitter@gmail.com>
11476
11477 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11478 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11479
114802008-07-16 Glenn Morris <rgm@gnu.org>
11481
11482 * emacs.c (system-type): Doc fix.
11483
114842008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11485
11486 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11487 If the cache doesn't work, let's fix it, rather than work around it.
11488
114892008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11490
11491 * Makefile.in: Correct additions for nsfont.o in last commit.
11492 * nsfont.m: New file (forgot last commit).
11493
114942008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11495
11496 * callproc.c (set_initial_environment): Initialize
11497 Vprocess_environment under CANNOT_DUMP (fixes crash when
11498 batch-compiling for bootstrap).
11499
115002008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11501 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11502
11503 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11504 fix crash due to different init order.
11505
115062008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11507
11508 Changes and additions for NeXTstep windowing system (Cocoa and
11509 GNUstep) support.
11510
11511 * Makefile.in:
11512 * config.in: Support defines and build commands for NS port.
11513 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11514 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11515 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11516 windowing.
11517 (struct face): Add synth_ital field.
11518 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11519 (init_display): Initialize Vinitial_window_system to "ns" when so
11520 compiled.
11521 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11522 (display_arg): Use under NS.
11523 (main): Under NS, allocate autorelease pool and handle command line
11524 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11525 (standard_args): Add NS-specific args.
11526 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11527 * font.c (DEFAULT_ENCODING): New variable.
11528 (font_find_for_lface): Use it.
11529 (syms_of_font): Load syms_of_nsfont under NS.
11530 * font.h: Declare nsfont_driver when compiled under NS.
11531 * fontset.c: When compiling under NS, include nsterm.h.
11532 (fontset_from_font): Autoconstruct fontset under NS.
11533 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11534 symbol, document and use it.
11535 (do_switch_frame): When for_deletion under Cocoa, add
11536 Fraise_frame(Qnil).
11537 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11538 (x_get_arg): Allow "yes" and "no" as boolean values.
11539 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11540 Qright under Cocoa.
11541 (focus-follows-mouse): Default to 0 under NS.
11542 * frame.h (enum output_method): Add output_ns.
11543 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11544 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11545 (FRAME_WINDOW_P): NS-specific definition.
11546 * fringe.c (max_used_fringe_bitmap): Make public.
11547 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11548 (getloadavg): Use NeXT code under descendant OS's.
11549 * image.c (includes and header section, x_create_bitmap_from_data)
11550 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11551 (image_background_transparent, x_clear_image_1)
11552 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11553 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11554 (x_to_xcolors, x_from_xcolors, x_disable_image)
11555 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11556 other GUIs, including XPM support using code originally written for
11557 Carbon GUI.
11558 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11559 using NS API.
11560 (image_ascent): Use font metrics macros instead of direct struct field
11561 access.
11562 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11563 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11564 Also, handle NS as GTK for menu bar purposes.
11565 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11566 toolkit where they differ.
11567 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11568 use cachelist, still needed under NS.
11569 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11570 (struct widget_value): Define it here for menu.c.
11571 * keymap.c (includes): Include modifier internals.
11572 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11573 NS.
11574 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11575 support for preferring sequences using certain modifiers, specified by
11576 the FIRSTONLY argument.
11577 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11578 under NS GNUstep implementation.
11579 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11580 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11581 * menu.c: Include nsterm.h under NS.
11582 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11583 (free_menubar_widget_tree_value, update_submenu_strings)
11584 (find_and_call_menu_selection): Treat NS as X and NT.
11585 (find_and_return_menu_selection): New function, used for popup menus.
11586 * nsgui.h:
11587 * nsterm.h:
11588 * nsfns.m:
11589 * nsimage.m:
11590 * nsmenu.m:
11591 * nsselect.m:
11592 * nsterm.m: New files.
11593 * process.c (wait_reading_process_output): Under NS, call ns_select()
11594 instead of plain select().
11595 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11596 beginning of buffer.
11597 * sysselect.h (init_process): Rename when compiling under Cocoa to
11598 avoid name conflict.
11599 * termhooks.h (display_info): Add ns_display_info to union.
11600 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11601 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11602 COCOA environment.
11603 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11604 unexec() signature. (Note, this will dump, but the resulting file
11605 crashes; unexosx is used instead; keeping around for reference and
11606 possible aid in getting dump working under GNUstep.)
11607 * w32gui.h (button_type, widget_value): Remove definitions (now in
11608 keyboard.h).
11609 * window.c: Include nsterm.h when compiling under NS.
11610 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11611 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11612 other GUI windowing systems.
11613 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11614 GTK.
11615 (x_consider_frame_title): Under NS, set icon type and frame
11616 modified-state indicator; use ns_set_name_as_filename() when using
11617 formatted title.
11618 (update_window_cursor): Make public when compiling under NS.
11619 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11620 (hourglass_atimer, Vhourglass_delay
11621 * xfaces.c (header section, init_frame_faces, clear_font_table)
11622 (defined_color, unload_color, x_face_list_fonts)
11623 (prepare_face_for_display): Add NS support parallel to other GUIs.
11624 Emulate GCs like other non-X GUIs.
11625 (split_font_name): Don't lowercase font name under NS.
11626 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11627 under NS.
11628 * s/darwin.h: Add support for compilation under NS.
11629
116302008-07-15 Jason Rumney <jasonr@gnu.org>
11631
11632 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11633 (w32_show_hourglass): Rename from show_hourglass.
11634 (w32_hide_hourglass): Rename from hide_hourglass.
11635 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11636 (Vhourglass_delay): Declare extern.
11637 (hourglass_started): Remove.
11638
11639 * xdisp.c (Vhourglass_delay): Remove static.
11640 (hourglass_started, start_hourglass, cancel_hourglass):
11641 Don't include these versions on WINDOWSNT.
11642
116432008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11644
11645 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11646 variables (formerly in xfns.c).
11647 (show_hourglass, hide_hourglass): New prototypes (same).
11648 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11649 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11650 in xfns.c).
11651 (syms_of_xdisp): Declare/initialize display-hourglass,
11652 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11653 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11654 formerly in xfns.c.
11655 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11656 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11657 (start_hourglass, cancel_hourglass): Remove.
11658 (show_hourglass, hide_hourglass): Remove prototypes and static
11659 modifiers.
11660 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11661 hourglass_atimer, hourglass_shown_p declaration/initialization.
11662 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11663 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11664 (start_hourglass, cancel_hourglass): Remove.
11665 (show_hourglass, hide_hourglass): Remove prototypes and static
11666 modifiers.
11667 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11668 hourglass_atimer, hourglass_shown_p declaration/initialization.
11669 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11670 (DEFAULT_HOURGLASS_DELAY): Remove.
11671 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11672 hourglass_shown_p declaration/initialization.
11673
116742008-07-14 Jason Rumney <jasonr@gnu.org>
11675
11676 * w32fns.c (w32_get_arg): Remove wrapper function.
11677 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11678 directly.
11679 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11680
116812008-07-14 Kenichi Handa <handa@m17n.org>
11682
11683 * xfont.c (xfont_open): Add workaround for X's bug.
11684
116852008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11686
11687 * fontset.c: Include <stdio.h> unconditionally.
11688
116892008-07-13 Michael Albinus <michael.albinus@gmx.de>
11690
11691 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11692 for filtering.
11693
116942008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11695
11696 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11697
11698 * m/macppc.h:
11699 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11700
11701 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11702 (SPECIAL_EMACS_INT):
11703 * m/ia64.h (SPECIAL_EMACS_INT):
11704 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11705 * s/gnu.h (NLIST_STRUCT):
11706 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11707 * s/gnu-linux.h (LINUX):
11708 * s/msdos.h (HAVE_FACES):
11709 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11710
11711 * systty.h:
11712 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11713 anymore.
11714
117152008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11716
11717 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11718 always defined as int.
11719
11720 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11721 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11722 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11723 * s/freebsd.h (HAVE_WAIT_HEADER):
11724 * s/bsd-common.h (HAVE_UNION_WAIT):
11725 * s/aix4-2.h (HAVE_WAIT_HEADER):
11726 * m/mips.h (HAVE_UNION_WAIT):
11727 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11728 (COFF, static): Do not define, they are undefined later in the file.
11729
11730 * process.c (update_status): Don't use a union.
11731 (status_convert):
11732 (sigchld_handler): Use int instead of WAITTYPE.
11733
117342008-07-12 Chong Yidong <cyd@stupidchicken.com>
11735
11736 * indent.c (Fvertical_motion): Restore hscroll before moving to
11737 goal column.
11738
117392008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11740
11741 * lisp.h: Remove left over code.
11742
117432008-07-11 Andreas Schwab <schwab@suse.de>
11744
11745 * lisp.h: Fix logic in last change.
11746
11747 * menu.h: New file.
11748 * menu.c: Include it.
11749 * xmenu.c: Likewise.
11750 * Makefile.in: Update dependencies.
11751
117522008-07-11 Kenichi Handa <handa@m17n.org>
11753
11754 * fontset.c (fontset_from_font): Cancel the previous change.
11755
117562008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11757
11758 * lisp.h:
11759 * w32heap.c:
11760 * emacs.c:
11761 * alloc.c: Replace all references of NO_UNION_TYPE with
11762 USE_LISP_UNION_TYPE.
11763
11764 * m/xtensa.h (NO_UNION_TYPE):
11765 * m/vax.h (NO_UNION_TYPE):
11766 * m/template.h (NO_UNION_TYPE):
11767 * m/sparc.h (NO_UNION_TYPE):
11768 * m/mips.h (NO_UNION_TYPE):
11769 * m/macppc.h (NO_UNION_TYPE):
11770 * m/m68k.h (NO_UNION_TYPE):
11771 * m/iris4d.h (NO_UNION_TYPE):
11772 * m/intel386.h (NO_UNION_TYPE):
11773 * m/ibms390x.h (NO_UNION_TYPE):
11774 * m/ibms390.h (NO_UNION_TYPE):
11775 * m/ibmrs6000.h (NO_UNION_TYPE):
11776 * m/ia64.h (NO_UNION_TYPE):
11777 * m/hp800.h (NO_UNION_TYPE):
11778 * m/arm.h (NO_UNION_TYPE):
11779 * m/amdx86-64.h (NO_UNION_TYPE):
11780 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11781 defining it the same.
11782
117832008-07-10 Chong Yidong <cyd@stupidchicken.com>
11784
11785 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11786
117872008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11788
11789 * fileio.c:
50426a04 11790 * sysdep.c:
aac0c6e3
MR
11791 * systty.h:
11792 * m/ibmrs6000.h:
11793 * m/iris4d.h:
11794 * s/aix4-2.h:
11795 * s/freebsd.h:
11796 * s/gnu-linux.h:
11797 * s/hpux10-20.h:
11798 * s/hpux11.h:
11799 * s/netbsd.h:
11800 * s/sol2-3.h:
11801 * s/sol2-4.h:
11802 * s/sol2.h:
11803 * s/usg5-4.h:
11804 * s/vms.h: Remove references to unused variables.
11805
118062008-07-10 Andreas Schwab <schwab@suse.de>
11807
11808 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11809 pattern before matching the generic family.
11810
118112008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11812
11813 * unexec.c:
11814 * s/vms.h:
11815 * s/usg5-4-2.h:
11816 * s/sol2-5.h:
11817 * s/freebsd.h:
11818 * s/darwin.h: Remove dead code.
11819
11820 * m/template.h:
11821 * m/sparc.h:
11822 * m/mips.h:
11823 * m/m68k.h:
11824 * m/iris4d.h:
11825 * m/intel386.h:
11826 * m/ibms390x.h:
11827 * m/ibms390.h:
11828 * m/ia64.h:
11829 * m/hp800.h:
11830 * m/arm.h:
11831 * m/amdx86-64.h: Remove dead code and references to unused
11832 and compiler defined symbols.
11833
11834 * unexmips.c:
11835 * unexelf.c: Remove references to desupported systems.
11836
11837 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11838
11839 * m/powermac.h: Remove boilerplate comments.
11840 (NO_REMAP): Remove unused definition.
11841
11842 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11843 define them.
11844
118452008-07-10 Kenichi Handa <handa@m17n.org>
11846
11847 * xfont.c (xfont_open): Log the reason of failure.
11848
118492008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11850
11851 * fontset.c (fontset_get_font_group):
11852 * font.c (font_check_otf): Specify argument types.
11853
118542008-07-09 Kenichi Handa <handa@m17n.org>
11855
11856 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11857 non-ASCII char is found.
11858
11859 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11860 (reorder_font_vector): Change the arg preferred_family to font.
11861 Prefer the spec matching with font.
11862 (fontset_get_font_group): New function.
11863 (fontset_find_font): Change the format of an element of a realized
11864 fontset. Use fontset_get_font_group.
11865 (fontset_font): Try the current fontset, the default fontset, the
11866 fallbacks of the current fontset, and the fallbacks of the default
11867 fontset in this order.
11868 (face_for_char): Delete the shortcut to use the current font.
11869 (fontset_from_font): Don't set fonts for Latin in the fontset.
11870
11871 * font.h (font_make_object, font_match_p): Adjust prototypes.
11872
11873 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11874
11875 * font.c (font_make_object): New arg entity and pixelsize.
11876 (font_check_otf_features, font_check_otf): New functions.
11877 (font_match_p): Check :lang, :script, and :otf properties.
11878
11879 * xfont.c (xfont_open): Adjust it for the change of
11880 font_make_object.
11881 (xfont_text_extents): Fix initial setting of metrics.
11882
11883 * ftfont.c (struct ftfont_info): New member index, delete member
11884 fc_charset_idx. Make the member order compatible with struct
11885 xftfont_info.
11886 (fc_charset_table): Change charset names to registry names.
11887 (ftfont_pattern_entity): Delete the args registry and
11888 fc_charset_idx. Change the value of :font-entity property
11889 to (FONTNAME . INDEX). Always set :registry property to
11890 `iso10646-1'.
11891 (struct ftfont_cache_data): New struct.
11892 (ftfont_lookup_cache): New arg for_face.
11893 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11894 (ftfont_driver): Set the member otf_capability.
11895 (ftfont_get_charset): Adjust it for the change of
11896 fc_charset_table.
11897 (OTF_TAG_SYM): New macro.
11898 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11899 for the change of fc_charset_table.
11900 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11901 ftfont_pattern_entity. Add FC_INDEX to objset.
11902 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11903 and ftfont_pattern_entity.
11904 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11905 font_make_object, struct ftfont_info.
11906 (ftfont_has_char): Use ftfont_get_fc_charset.
11907 (ftfont_otf_features, ftfont_otf_capability): New functions.
11908 (ftfont_shape): Use ftfont_get_otf.
11909 (ftfont_text_extents): Fix initial setting of metrics.
11910
11911 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11912 member order compatible with struct ftfont_info.
11913 (xftfont_open): Add FC_CHARSET to the pattern. Set
11914 xftfont_info->ft_size. Don't unlock the face. Check BDF
11915 properties if appropriate.
11916 (xftfont_close): Unlock the face.
11917 (xftfont_anchor_point, xftfont_shape): Deleted.
11918 (syms_of_xftfont): Don't set members anchor_point and shape of
11919 xftfont_driver.
11920
11921 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11922 font_make_object.
11923
11924 * w32font.c (w32font_open): Adjust it for the change of
11925 font_make_object.
11926 (w32font_open_internal): Don't set properties of font_object here.
11927
119282008-07-08 Chong Yidong <cyd@stupidchicken.com>
11929
11930 * macfns.c (x_create_tip_frame):
11931 * w32fns.c (x_create_tip_frame):
11932 * xfns.c (x_create_tip_frame): Pass parameter argument to
11933 face-set-after-frame-default.
11934
11935 * xfaces.c (Finternal_merge_in_global_face): Save merged
11936 attributes for the default face back into the face vector.
11937
119382008-07-08 Andreas Schwab <schwab@suse.de>
11939
11940 * fontset.h: Declare fontset_from_font. Don't declare
11941 new_fontset_from_font and fontset_from_font_name.
11942 * xterm.c: Include "fontset.h".
11943 * Makefile.in (xterm.o): Update dependencies.
11944
119452008-07-08 Glenn Morris <rgm@gnu.org>
11946
11947 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11948 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11949
119502008-07-07 Chong Yidong <cyd@stupidchicken.com>
11951
11952 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11953 (x_set_frame_parameters): Don't bind it.
11954
119552008-07-07 Juanma Barranquero <lekktu@gmail.com>
11956
11957 * w32fns.c (map_w32_filename): Declare extern.
11958
119592008-07-07 Jason Rumney <jasonr@gnu.org>
11960
11961 * w32term.c (WS_EX_LAYERED): Define if not already.
11962
119632008-07-06 Chong Yidong <cyd@stupidchicken.com>
11964
11965 * xfaces.c (set_font_frame_param): Don't try to set the font
11966 parameter if it is still unspecified in the lface.
11967
119682008-07-05 Chong Yidong <cyd@stupidchicken.com>
11969
11970 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11971 face if it didn't already exist.
11972
11973 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11974
119752008-07-05 Andreas Schwab <schwab@suse.de>
11976
11977 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11978
119792008-07-05 Chong Yidong <cyd@stupidchicken.com>
11980
11981 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11982 word-wrapping.
11983 (IT_DISPLAYING_WHITESPACE): New macro.
11984 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11985 when word-wrapping. Simplify word-wrapping logic. Use correct
11986 pixel positions when saving copies of the iterator.
11987 (display_line): Use proper wrap point if the last character on a
11988 line was preceded by whitespace.
11989
119902008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11991
11992 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11993
119942008-07-04 Kenichi Handa <handa@m17n.org>
11995
11996 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11997
11998 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11999
120002008-07-02 Jason Rumney <jasonr@gnu.org>
12001
12002 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12003 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12004
12005 * xdisp.c (next_element_from_display_vector): Move assignment out
12006 of if statement.
12007
120082008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12009
12010 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12011
12012 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12013 (syms_of_fileio): Initialize and export them.
12014 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12015
12016 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12017 (Fsystem_move_file_to_trash): New function.
12018 (syms_of_w32fns): Export it to lisp.
12019
120202008-07-01 Jason Rumney <jasonr@gnu.org>
12021
12022 * w32font.c (w32font_text_extents): Don't count overhang as part
12023 of width.
12024
120252008-06-30 Miles Bader <miles@gnu.org>
12026
12027 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12028 Add `avoid_cursor_p' field.
12029
12030 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12031 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12032 (append_glyph, append_composite_glyph, produce_image_glyph)
12033 (append_stretch_glyph): Initialize avoid_cursor_p.
12034 (get_it_property): Rename from `get_line_height_property'.
12035 (x_produce_glyphs): Use get_it_property.
12036 (handle_line_prefix, push_display_prop): New functions.
12037 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12038 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12039 New variables.
12040 (syms_of_xdisp): Initialize them.
12041
120422008-06-30 Kenichi Handa <handa@m17n.org>
12043
12044 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12045 XftDefaultSubstitute (they are called in XftFontMatch).
12046 (xftfont_open): Fix args to ftfont_font_format.
12047
12048 * ftfont.c (fc_charset_table): New member lang.
12049 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12050 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12051 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12052 (ftfont_open): Fix args to ftfont_font_format.
12053 (ftfont_font_format): New arg filename.
12054
120552008-06-30 Chong Yidong <cyd@stupidchicken.com>
12056
12057 * xfaces.c (Finternal_merge_in_global_face): If default face was
12058 modified, realize it again. Update the font face attribute.
12059
120602008-06-29 Jason Rumney <jasonr@gnu.org>
12061
12062 * w32term.c (x_set_frame_alpha): Fix logic.
12063
120642008-06-29 Kenichi Handa <handa@m17n.org>
12065
12066 * fontset.c (Finternal_char_font): Return font-object instead of
12067 font-name.
12068
12069 * composite.c (get_composition_id): Fix the width calculation for TAB.
12070
120712008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12072
12073 * indent.c (Fvertical_motion): Properly handle float column arg.
12074
120752008-06-28 Jason Rumney <jasonr@gnu.org>
12076
12077 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12078 (pfnSetLayeredWindowAttributes): New function pointer.
12079 (w32_initialize): Initialize it when supported.
12080 (x_set_frame_alpha): New function.
12081
12082 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12083 (w32_frame_parm_handlers): Set alpha handler.
12084
12085 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12086
120872008-06-27 Jason Rumney <jasonr@gnu.org>
12088
12089 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12090 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12091 (w32_to_x_charset, x_to_w32_charset)
12092 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12093 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12094 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12095 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12096 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12097 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12098 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12099 (Qw32_charset_unicode): Remove.
12100 (syms_of_w32fns): Update for above changes.
12101
12102 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12103 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12104 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12105 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12106 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12107 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12108 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12109 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12110 (syms_of_w32font): Update for above changes.
12111
121122008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12113
12114 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12115 removed #if.
12116 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12117
121182008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12119 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12120
12121 * makefile.w32-in (LOCAL_FLAGS):
12122 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12123
12124 * sysdep.c (_spawnlp, _getpid):
12125 Declare with explicit _cdecl instead of _CRTAPI1.
12126
12127 * editfns.c (Fget_internal_run_time):
12128 Check for WINDOWSNT with #ifdef, not #if.
12129
121302008-06-26 Jason Rumney <jasonr@gnu.org>
12131
12132 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12133
12134 * w32term.c (x_draw_glyph_string_foreground)
12135 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12136 Use FONT_HANDLE macro.
12137 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12138
12139 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12140 (uniscribe_encode_char): Use FONT_HANDLE macro.
12141
12142 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12143 (w32font_text_extents): Use precast w32_font.
12144 (w32font_close): Free cached metrics.
12145 (w32font_open_internal): Allocate space for name on stack.
12146
121472008-06-26 Chong Yidong <cyd@stupidchicken.com>
12148
12149 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12150
121512008-06-26 Jason Rumney <jasonr@gnu.org>
12152
12153 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12154 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12155
121562008-06-26 Juanma Barranquero <lekktu@gmail.com>
12157
12158 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12159
121602008-06-26 Jason Rumney <jasonr@gnu.org>
12161
12162 * w32bdf.c, w32bdf.h: Remove obsolete files.
12163
12164 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12165
12166 * w32gui.h: Don't include w32bdf.h.
12167 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12168 Remove obsolete font support.
12169
12170 * w32font.h (struct w32font_info): Remove compat_w32_font.
12171 Add hfont member.
12172 (FONT_COMPAT): Remove obsolete macro.
12173
12174 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12175 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12176 (w32font_open_internal): Remove compat code. Set new hfont member.
12177 (Fx_select_font): Use new hfont member.
12178
12179 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12180 (uniscribe_encode_char): Use new hfont member.
12181
12182 * w32term.c (x_draw_glyph_string_foreground)
12183 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12184 (x_draw_glyph_string): Use metrics in w32font_info.
12185
121862008-06-26 Kenichi Handa <handa@m17n.org>
12187
12188 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12189
121902008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12191
12192 * unexnext.c:
12193 * m/ews4800.h:
12194 * m/hp9000s300.h:
12195 * m/ibm370aix.h:
12196 * m/mips-siemens.h:
12197 * m/ncr386.h:
12198 * m/next.h:
12199 * m/pmax.h:
12200 * m/powerpcle.h:
12201 * m/tandem-s2.h:
12202 * s/386bsd.h:
12203 * s/bsd386.h:
12204 * s/bsd4-1.h:
12205 * s/bsd4-2.h:
12206 * s/bsdos2-1.h:
12207 * s/bsdos2.h:
12208 * s/bsdos3.h:
12209 * s/bsdos4.h:
12210 * s/nextstep.h:
12211 * s/ultrix4-3.h:
12212 * s/usg5-0.h:
12213 * s/usg5-2-2.h:
12214 * s/usg5-2.h:
12215 * s/usg5-4-3.h:
12216 * s/ux4800.h:
12217 * s/uxpds.h:
12218 * s/uxpv.h: Remove support for obsolete systems.
12219 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12220 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12221 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12222 Remove, insert contents in s/aix4-2.h.
12223 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12224 * s/bsd4-3.h: Rename to ...
12225 * s/bsd-common.h: ... this.
12226 * data.c:
12227 * doc.c:
12228 * ecrt0.c:
12229 * emacs.c:
12230 * fileio.c:
12231 * floatfns.c:
12232 * keyboard.c:
12233 * mem-limits.h:
12234 * print.c:
12235 * process.c:
12236 * sysdep.c:
12237 * syssignal.h:
12238 * systty.h:
12239 * syswait.h:
12240 * term.c:
12241 * unexec.c:
12242 * unexelf.c:
12243 * unexhp9k800.c:
12244 * m/hp800.h:
12245 * m/ibmrs6000.h:
12246 * m/mips.h:
12247 * m/vax.h:
12248 * s/darwin.h:
12249 * s/freebsd.h:
12250 * s/gnu.h:
12251 * s/ms-w32.h:
12252 * s/msdos.h:
12253 * s/netbsd.h:
12254 * s/template.h: Remove references to obsolete variables.
12255
12256 * Makefile.in: Add dependencies for all unexec files.
12257 (admindir): Remove unused variable.
12258 (UNEXEC_SRC): Remove references.
12259
122602008-06-25 Chong Yidong <cyd@stupidchicken.com>
12261
12262 * xfns.c (x_default_font_parameter): If Xft is available, first
12263 try Monospace-12 for the default font.
12264
122652008-06-25 Jason Rumney <jasonr@gnu.org>
12266
12267 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12268
122692008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12270
12271 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12272
12273 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12274
122752008-06-25 Juanma Barranquero <lekktu@gmail.com>
12276
12277 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12278 <scroll-conservatively>: Fix typo in docstring.
12279
12280 * xselect.c (Fx_send_client_event): Doc fix.
12281
122822008-06-25 Kenichi Handa <handa@m17n.org>
12283
12284 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12285
12286 * font.c (font_parse_fcname): Remove unused variables.
12287 (font_sort_entites): Delete the arg SPEC. Caller changed.
12288 Fix for the case of ! best_only.
12289 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12290
12291 * lisp.h (Fstring_to_unibyte): EXFUN it.
12292
12293 * character.h (str_to_unibyte): Extern it.
12294
12295 * character.c (str_to_unibyte): New function.
12296
12297 * fns.c (Fstring_to_unibyte): New function.
12298 (syms_of_fns): Defsubr it.
12299
123002008-06-24 Kenichi Handa <handa@m17n.org>
12301
12302 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12303 DPI too.
12304 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12305
123062008-06-24 Andreas Schwab <schwab@suse.de>
12307
12308 * Makefile.in (${lispsource}loaddefs.el): Rename from
12309 ../lisp/loaddefs.el.
12310 (bootstrap-clean): Do what distclean does but don't remove
12311 Makefile.
12312 (distclean): Depend on bootstrap-clean and remove Makefile.
12313
123142008-06-24 Chong Yidong <cyd@stupidchicken.com>
12315
12316 * buffer.h (struct buffer): New member word_wrap.
12317
12318 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12319 word-wrap.
12320 (init_buffer_once): Initialize them.
12321
12322 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12323 line_wrap enum possessing three possible values.
12324
12325 * termopts.h: Replace truncate_partial_width_windows with
12326 Vtruncate_partial_width_windows.
12327
12328 * dispnew.c (direct_output_for_insert): Avoid direct output when
12329 inserting a space with word wrap on.
12330
12331 * indent.c (compute_motion): Obey integer values of
12332 truncate-partial-width-windows.
12333
12334 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12335 replacing truncate_partial_width_windows.
12336 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12337 truncate only if the window width is below that integer.
12338 (start_display, resize_mini_window, produce_stretch_glyph)
12339 (display_string, move_it_in_display_line_to): Use line_wrap.
12340 (back_to_previous_visible_line_start, reseat_1): Reset
12341 string_from_display_prop_p.
12342 (display_line): Extend default face to end of line when wrapping.
12343
123442008-06-24 Kim F. Storm <storm@cua.dk>
12345
12346 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12347 to wrap continued lines at word boundaries.
12348
123492008-06-24 Jason Rumney <jasonr@gnu.org>
12350
12351 * font.c (Ffont_face_attributes): Multiply pixel size before point
12352 conversion to avoid multiplying rounding error.
12353
123542008-06-23 Jason Rumney <jasonr@gnu.org>
12355
12356 * w32term.c (x_draw_glyph_string_background)
12357 (x_draw_glyph_string): Remove old bdf font code.
12358
12359 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12360
123612008-06-22 Kenichi Handa <handa@m17n.org>
12362
12363 * font.c (font_find_for_lface): Try the adstyle specified in
12364 the property of LFACE_FONT of LFACE (if any).
12365
123662008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12367 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12368
12369 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12370
123712008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12372
12373 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12374 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12375 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12376 (witness-emacs): Remove.
12377 (lisp, shortlisp): Move loaddefs.el earlier.
12378 (mostlyclean): Forget about witness-emacs.
12379
123802008-06-22 Glenn Morris <rgm@gnu.org>
12381
12382 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12383 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12384
123852008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12386
12387 * Makefile.in (PRECOMP): Remove.
12388 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12389 (witness-emacs): Run `compile-first'.
12390 (.el.elc): Use the new compile-onefile target.
12391
123922008-06-21 Kenichi Handa <handa@m17n.org>
12393
12394 * xftfont.c (xftfont_open): Handle QCembolden only when
12395 FC_EMBOLDEN is defined.
12396
123972008-06-21 Andreas Schwab <schwab@suse.de>
12398
12399 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12400 (.el.elc): Likewise.
12401
124022008-06-21 Miles Bader <miles@gnu.org>
12403
12404 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12405 build dir, not the lisp source dir.
12406
124072008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12408
12409 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12410 (bootstrapclean): Remove.
12411 (.el.elc): New rule.
12412 (PRECOMP): New var.
12413 (../lisp/subdirs.el): Remove.
12414 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12415 (witness-emacs): New target.
12416 (mostlyclean): Remove witness-emacs as well.
12417 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12418 Add witness-emacs dependency.
12419
124202008-06-20 Chong Yidong <cyd@stupidchicken.com>
12421
12422 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12423 defined by the font.
12424
124252008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12426
12427 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12428 (bootstrap-clean): New target that keeps TAGS around.
12429 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12430 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12431
124322008-06-20 Jason Rumney <jasonr@gnu.org>
12433
12434 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12435 Remove obsolete font code.
12436
12437 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12438 to determine language support.
12439
124402008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12441
12442 * sysdep.c (cfsetspeed): New fun extracted from the code.
12443 (cfmakeraw): Move before first use.
12444
124452008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12446
12447 * sysdep.c (cfmakeraw): Provide fallback implementation.
12448 (serial_configure): Provide fallback implementation of cfsetspeed.
12449
124502008-06-20 Kenichi Handa <handa@m17n.org>
12451
12452 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12453 the pattern.
12454
12455 * fontset.c (fontset_from_font): Copy font_spec before changing
12456 the elements.
12457
12458 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12459
124602008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12461
12462 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12463 for explicit `font' parameters.
12464
12465 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12466
124672008-06-19 Kenichi Handa <handa@m17n.org>
12468
12469 * frame.c: Include <ctype.h>.
12470 (x_set_font_backend): Allow spacing characters in the X resource
12471 for FontBackend.
12472
124732008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12474
12475 * w32fns.c, xfns.c (Qfont_param): New var.
12476 (syms_of_w32fns): Initialize it.
12477 (x_default_font_parameter): Record explicit `font' into
12478 `font-parameter'.
12479
124802008-06-18 Kenichi Handa <handa@m17n.org>
12481
12482 * font.c (font_parse_xlfd): Fix previous change.
12483 (font_parse_fcname): Don't use :fc-unknown-spec.
12484 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12485 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12486 (font_add_log): Prepend the driver name to the resulting fonts.
12487
12488 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12489 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12490 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12491
12492 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12493 (QCembolden): New variables.
12494 (syms_of_xftfont): DEFSYM them.
12495 (xftfont_open): Call XftFontMatch. Don't trust the result of
12496 XftTextExtents8 if the pixel_size is less than 5.
12497
124982008-06-18 Andreas Schwab <schwab@suse.de>
12499
12500 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12501 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12502
125032008-06-18 Jason Rumney <jasonr@gnu.org>
12504
12505 * w32font.c (w32font_list, w32font_match): Add logging.
12506
12507 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12508
125092008-06-17 Chong Yidong <cyd@stupidchicken.com>
12510
12511 * font.c (font_parse_fcname): Store divider characters for
12512 unknown-spec list. For known key symbols, intern using correct
12513 symbol name.
12514
125152008-06-17 Kenichi Handa <handa@m17n.org>
12516
12517 * xfaces.c (realize_default_face): If the frame is not on window
12518 system, set the fontset of face to nil.
12519
125202008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12521
12522 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12523
125242008-06-16 Juanma Barranquero <lekktu@gmail.com>
12525
12526 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12527 (build_font_name_from_vector): Delete externs.
12528
12529 * xfaces.c (struct font_name): Don't declare.
12530
125312008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12532
12533 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12534
125352008-06-16 Chong Yidong <cyd@stupidchicken.com>
12536
12537 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12538
125392008-06-16 Juanma Barranquero <lekktu@gmail.com>
12540
12541 * font.c (Ffont_spec): Fix usage in docstring.
12542 (Ffont_face_attributes): Doc fix.
12543
125442008-06-16 Andreas Schwab <schwab@suse.de>
12545
12546 * font.c (Ffont_face_attributes): Fix definition.
12547
125482008-06-16 Jason Rumney <jasonr@gnu.org>
12549
12550 * font.h (font_style_symbolic_from_value): Remove.
12551
12552 * font.c (font_style_symbolic_from_value): Remove.
12553 (font_style_symbolic): Revert to pre 2008-06-13 version.
12554
12555 * w32font.c (w32_to_fc_weight): New function.
12556 (w32font_full_name, logfont_to_fcname): Use it.
12557
125582008-06-16 Kenichi Handa <handa@m17n.org>
12559
12560 * font.c (font_check_object): Delete it.
12561 (font_clear_cache): Check if a font-object is alive.
12562 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12563 font-object to nil.
12564 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12565 (font_at): Don't call font_check_object.
12566 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12567
125682008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12569
12570 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12571
125722008-06-16 Chong Yidong <cyd@stupidchicken.com>
12573
12574 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12575
125762008-06-15 Chong Yidong <cyd@stupidchicken.com>
12577
12578 * font.c (font_parse_fcname): Only one decimal point.
12579 (font_unparse_fcname): Handle data in family and foundry indices
12580 as symbols, not strings.
12581 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12582
12583 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12584
12585 * font.h (font_unparse_gtkname): Add prototype.
12586
125872008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12588
12589 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12590
125912008-06-15 Andreas Schwab <schwab@suse.de>
12592
12593 * font.c (font_update_drivers): Fix crash when no drivers match.
12594
125952008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12596
12597 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12598 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12599
126002008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12601
12602 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12603
126042008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12605
12606 * process.c (Fserial_process_configure, Fprocess_send_eof):
12607 Use EQ to compare Lisp_Objects.
12608
126092008-06-13 Jason Rumney <jasonr@gnu.org>
12610
12611 * w32fns.c (Fw32_select_font): Remove old font API function.
12612
12613 * w32font.c (logfont_to_fcname): New function.
12614 (Fx_select_font): New font dialog function compatible with
12615 GTK/fontconfig version.
12616
12617 * font.c (font_style_symbolic_from_value): New function.
12618 (font_style_symbolic): Use it.
12619
12620 * font.h (font_style_symbolic_from_value): Declare new function.
12621
126222008-06-13 Juanma Barranquero <lekktu@gmail.com>
12623
12624 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12625 <font-width-table>: Fix typos in docstrings.
12626
126272008-06-13 Daniel Engeler <engeler@gmail.com>
12628
12629 These changes add serial port access.
12630 * process.c: Add HAVE_SERIAL.
12631 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12632 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12633 (list_processes_1, select_wrapper, Fstop_process)
12634 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12635 (status_notify): Modify to handle serial processes.
12636 [HAVE_SERIAL] (Fserial_process_configure)
12637 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12638 New functions.
12639 * process.h (struct Lisp_Process): Add `type'.
12640 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12641 New functions.
12642 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12643 serial ports.
b71ac3dd 12644 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12645 * w32.h: Add FILE_SERIAL.
12646 (struct _child_process): Add ovl_read, ovl_write.
12647
126482008-06-13 Kenichi Handa <handa@m17n.org>
12649
12650 * dispextern.h (enum lface_attribute_index): New member
12651 LFACE_FOUNDRY_INDEX.
12652
12653 * font.c (font_score): Delete arg alternate_families. Check only
12654 weight, slant, width, and size. Ignore the difference of alias
12655 style symbols.
12656 (font_sort_entites): Adjust for the above change. Reflect the
12657 order of font-driver to scores.
12658 (font_list_entities): Don't check alternate_familes here.
12659 (font_clear_prop): Handle foundry.
12660 (font_update_lface): Don't parse "foundry-family" form here.
12661 Handle FONT_FOUNDRY_INDEX.
12662 (font_find_for_lface): Likewise. Handle alternate families here.
12663 If registry is nil, try iso8859-1 and ascii-0.
12664 (font_open_for_lface): Pay attention to size in ENTITY.
12665 (font_open_by_name): Simplify by calling font_load_for_lface.
12666 (free_font_driver_list): Delete it.
12667 (font_update_drivers): Preserve the order of backends.
12668 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12669 of font_score and font_sort_entites.
12670 (font_update_sort_order): Likewise.
12671
12672 * xfaces.c (LFACE_FOUNDRY): New macro.
12673 (check_lface_attrs): Check foundry.
12674 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12675 (merge_face_vectors): Check foundry.
12676 (merge_face_ref): Likewise.
12677 (Finternal_set_lisp_face_attribute): Likewise.
12678 (x_update_menu_appearance): Likewise.
12679 (Finternal_get_lisp_face_attribute): Likewise.
12680 (lface_hash): Likewise.
12681 (lface_same_font_attributes_p): Likewise.
12682 (x_supports_face_attributes_p): Likewise.
12683 (tty_supports_face_attributes_p): Likewise.
12684 (Finternal_set_alternative_font_family_alist): Intern strings.
12685 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12686 (realize_default_face): Set LFACE_FOUNDRY (lface).
12687
12688 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12689 font-driver at first.
12690
12691 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12692
126932008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12694
12695 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12696
126972008-06-12 Jim Meyering <meyering@redhat.com>
12698
12699 Make unexec_free handle NULL the same way free does.
12700 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12701
127022008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12703
12704 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12705 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12706 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12707 (WEAK_ALIAS): Simplify.
12708 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12709 when searching a unibyte buffer.
12710
127112008-06-12 Chong Yidong <cyd@stupidchicken.com>
12712
12713 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12714
127152008-06-12 Juanma Barranquero <lekktu@gmail.com>
12716
12717 * w32font.c: Include ctype.h.
12718
127192008-06-11 Jason Rumney <jasonr@gnu.org>
12720
12721 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12722 misreported as space.
12723 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12724 as aliases for registry iso10646-1.
12725
127262008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12727
12728 * buffer.c (clone_per_buffer_values): Skip `name'.
12729
127302008-06-11 Chong Yidong <cyd@stupidchicken.com>
12731
12732 * font.c (font_parse_fcname): Fix last change; accept decimal
12733 points in font size.
12734
127352008-06-10 Jason Rumney <jasonr@gnu.org>
12736
12737 * w32uniscribe.c (add_opentype_font_name_to_list):
12738 Skip non unicode fonts.
12739
127402008-06-10 Chong Yidong <cyd@stupidchicken.com>
12741
12742 * xfns.c (Fx_font_dialog): New function.
12743
12744 * gtkutil.c (xg_dialog_response_cb): Rename from
12745 xg_file_response_callback.
12746 (pop_down_dialog): Rename from pop_down_file_dialog.
12747 (xg_get_file_name): Callers changed.
12748 (xg_get_font_name): New function.
12749
12750 * gtkutil.h (xg_get_font_name): Insert prototype.
12751
127522008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12753
12754 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12755 x_underline_minimum_display_offset.
12756 (syms_of_xdisp): Declare it here rather than in xterm.c.
12757 * dispextern.h (underline_minimum_offset): Declare it.
12758 * w32term.c (x_draw_glyph_string): Use it.
12759 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12760 (syms_of_xterm): Don't declare it any more.
12761 (x_draw_glyph_string): Adjust to the new name.
12762
8719abec 127632008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12764
12765 * xterm.c (x_underline_minimum_display_offset): New var.
12766 (x_draw_glyph_string): Use it.
12767 (syms_of_xterm): Declare it.
12768
127692008-06-10 Chong Yidong <cyd@stupidchicken.com>
12770
12771 * font.c (font_parse_fcname): Accept GTK-style font names too.
12772
127732008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12774
12775 * dired.c (file_name_completion): Don't return t if the match is exact
12776 but with different capitalization.
12777 * minibuf.c (Ftry_completion): Simplify.
12778
12779 * window.c (Vwindow_point_insertion_type): New var.
12780 (set_window_buffer): Use it.
12781 (syms_of_window): Init and export it to Lisp.
12782
127832008-06-10 Kenichi Handa <handa@m17n.org>
12784
12785 * font.h (font_intern_prop): Prototype adjusted.
12786
12787 * font.c (font_intern_prop): New arg force_symbol.
12788 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12789 Adjust for the change of font_intern_prop.
12790
12791 * ftfont.c (ftfont_pattern_entity):
12792 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12793 (w32_registry):
12794 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12795 the change of font_intern_prop.
12796
127972008-06-09 Juanma Barranquero <lekktu@gmail.com>
12798
12799 * w32menu.c (digest_single_submenu): Declare extern.
12800
128012008-06-09 Jason Rumney <jasonr@gnu.org>
12802
12803 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12804
12805 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12806 (parse_single_submenu): Remove.
12807 (digest_single_submenu): Remove.
12808 (syms_of_w32menu): Don't initialise variables that have moved
12809 to menu.c.
12810 (set_frame_menubar): Sync with version in xmenu.c.
12811 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12812
12813 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12814 Make static again.
12815
128162008-06-09 Jason Rumney <jasonr@gnu.org>
12817
12818 Changes to w32 files related to the move of common menu code
12819 to menu.c on 2008-06-08 by Chong Yidong.
12820
12821 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12822 defs to w32gui.h.
12823 (single_keymap_panes, push_menu_item, push_menu_pane):
12824 Make globally visible.
12825
12826 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12827 (local_free, malloc_widget_value, free_widget_value)
12828 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12829 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12830 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12831 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12832 (menu_items, menu_items_allocated, menu_items_used)
12833 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12834 (init_menu_items, finish_menu_items, discard_menu_items)
12835 (grow_menu_items, push_submenu_start, push_submenu_end)
12836 (push_left_right_boundary, push_menu_pane, push_menu_item)
12837 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12838 (free_menubar_widget_tree_value, parse_single_submenu)
12839 (update_submenu_strings): Remove functions.
12840 (xmalloc_widget_value): Remove and declare extern.
12841
12842 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12843 (OBJ1): Build it.
12844
12845 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12846 (local_heap, local_alloc, local_free, malloc_widget_value)
12847 (free_widget_value): Define here.
12848
128492008-06-09 Kenichi Handa <handa@m17n.org>
12850
12851 * font.h (Qascii_0): Extern it.
12852
12853 * font.c (Qascii_0): New variable.
12854 (syms_of_font): DEFSYM it.
12855 (font_open_by_name): If the registry "iso8859-1" fails, try also
12856 "ascii-0".
12857
12858 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12859
128602008-06-08 Kenichi Handa <handa@m17n.org>
12861
12862 * .gdbinit (xfont): New command.
12863
128642008-06-08 Andreas Schwab <schwab@suse.de>
12865
12866 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12867 * Makefile.in (menu.o): Update dependencies.
12868
12869 * Makefile.in (obj): Always add menu.o.
12870 * emacs.c (main): Always call syms_of_menu.
12871 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12872
128732008-06-08 Chong Yidong <cyd@stupidchicken.com>
12874
12875 * Makefile.in: Compile menu.c.
12876
12877 * lisp.h: Declare syms_of_menu.
12878
12879 * emacs.c (main): Call syms_of_menu.
12880
12881 * keyboard.h: Relocate platform-independent menu definitions from
12882 xmenu.c.
12883
12884 * menu.c: New file. Relocate platform-independent menu
12885 definitions from xmenu.c. Suggested by Adrian Robert.
12886
12887 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12888 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12889 (menu_items_used, menu_items_n_panes)
12890 (menu_items_submenu_depth): Move to keyboard.h.
12891 (init_menu_items, finish_menu_items, unuse_menu_items)
12892 (discard_menu_items, restore_menu_items, save_menu_items)
12893 (grow_menu_items, push_submenu_start, push_submenu_end)
12894 (push_left_right_boundary, push_menu_pane, push_menu_item)
12895 (keymap_panes, single_keymap_panes, single_menu_item)
12896 (list_of_panes, list_of_items, find_and_call_menu_selection)
12897 (xmalloc_widget_value, free_menubar_widget_value_tree)
12898 (parse_single_submenu, digest_single_submenu)
12899 (update_submenu_strings): Move to menu.c.
12900
129012008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12902
12903 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12904
129052008-06-06 Miles Bader <miles@gnu.org>
12906
12907 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12908 face, not frame default.
12909
129102008-06-05 Martin Rudalics <rudalics@gmx.at>
12911
12912 * window.c (pop_up_windows, pop_up_frames)
12913 (display_buffer_reuse_frames, Vpop_up_frame_function)
12914 (Vdisplay_buffer_function, Veven_window_heights)
12915 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12916 (Vspecial_display_function, Vsame_window_buffer_names)
12917 (Vsame_window_regexps, split_height_threshold)
12918 (Vsplit_window_preferred_function): Move those vars to window.el.
12919 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12920 (Fdisplay_buffer): Move those functions to window.el.
12921 (syms_of_window): Remove corresponding declarations.
12922 (display_buffer): New function.
12923 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12924 * dispnew.c (Flast_nonminibuf_frame): New function.
12925 * buffer.c (Fpop_to_buffer): Move to window.el.
12926
129272008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12928
12929 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12930
129312008-06-05 Kenichi Handa <handa@m17n.org>
12932
12933 * coding.c (detect_coding): Fix previous change.
12934 (detect_coding_system): Likewise.
12935
129362008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12937
12938 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12939
12940 * keymap.c (Vminibuffer_local_filename_must_match_map):
12941 Rename from Vminibuffer_local_must_match_filename_map.
12942 (syms_of_keymap):
12943 * minibuf.c (Fcompleting_read): Adjust accordingly.
12944 * commands.h: Rename declaration as well.
12945
129462008-06-05 Kenichi Handa <handa@m17n.org>
12947
12948 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12949 family name.
12950 (Ffont_put): Likewise.
12951
12952 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12953 current font-spec.
12954
12955 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12956 is unspecified.
12957
12958 * xfaces.c (realize_x_face): If the font-related face attributes
12959 are the same as those of default face, realize a new fontset from
12960 default->fontset.
12961 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12962
129632008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12964
12965 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12966 (move_it_in_display_line): New wrapper.
12967
12968 * window.c (window_scroll_pixel_based_preserve_x)
12969 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12970 (window_scroll_pixel_based, window_scroll_line_based):
12971 Use them to preserve column positions.
12972 (syms_of_window): Initialize them.
12973
12974 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12975 (HPOS . VPOS) pair.
12976
12977 * dispextern.h (move_it_in_display_line): Declare.
12978
129792008-06-05 Juanma Barranquero <lekktu@gmail.com>
12980
12981 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12982 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12983 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12984
129852008-06-04 Juanma Barranquero <lekktu@gmail.com>
12986
12987 * window.c (Fset_window_parameter): Doc fix.
12988 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12989
129902008-06-04 Joakim Verona <joakim@verona.se>
12991
12992 * window.h (struct window): Add new member window_parameters.
12993
12994 * window.c (Fwindow_parameters, Fwindow_parameter)
12995 (Fset_window_parameter): New defuns.
12996 (syms_of_window): Defsubr the new defuns.
12997 (make_window): Initialize window_parameters to nil.
12998
129992008-06-04 John Paul Wallington <jpw@pobox.com>
13000
13001 * eval.c (Fdefmacro): Doc fix.
13002
130032008-06-04 Kenichi Handa <handa@m17n.org>
13004
13005 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13006 Be sure to call setup_coding_system when we find a proper coding system.
13007 (detect_coding_system): Fix handling of coding->head_ascii.
13008
130092008-06-03 Andreas Schwab <schwab@suse.de>
13010
13011 * font.c (font_prop_validate_spacing): Fix last change.
13012
130132008-06-03 Kenichi Handa <handa@m17n.org>
13014
13015 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13016 (font_parse_fcname): Fix handling of unknown key.
13017
13018 * xfont.c (xfont_list): Try an alias.
13019
13020 * charset.c (char_charset): Return NULL if the arg charset_list is
13021 specified and C doesn't belong to any of them.
13022
130232008-06-02 Chip Coldwell <coldwell@redhat.com>
13024
13025 * font.c (font_pixel_size): Don't take cdr of an integer.
13026
130272008-06-02 Jim Meyering <meyering@redhat.com>
13028
13029 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13030 * alloc.c (xfree): Return right away for a NULL arg.
13031 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13032 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13033 * mac.c (create_apple_event_from_event_ref): Likewise.
13034 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13035 Likewise.
13036 * doprnt.c (doprnt1): Likewise.
13037 * frame.c (frame): Likewise.
13038 * keyboard.c (wipe_kboard): Likewise.
13039 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13040 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13041 * term.c (tty_default_color_capabilities, maybe_fatal)
13042 (delete_tty): Likewise.
13043 * w16select.c (string): Likewise.
13044 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13045 * w32bdf.c (w32_free_bdf_font): Likewise.
13046 * w32fns.c (w32_unload_font): Likewise.
13047 * w32font.c (w32font_close): Likewise.
13048 * window.c (size_window): Likewise.
13049 * xselect.c (receive_incremental_selection): Likewise.
13050 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13051 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13052 * w32.c (stat): Likewise.
13053
13054 Remove useless if-before-free tests.
13055 * editfns.c (Fset_time_zone_rule): Likewise.
13056 * lread.c (nosuffix): Likewise.
13057 * ralloc.c (get_bloc): Likewise.
13058 * regex.c (reg_free): Likewise.
13059 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13060 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13061 * xsmfns.c (smc_save_yourself_CB): Likewise.
13062
130632008-06-02 Kenichi Handa <handa@m17n.org>
13064
13065 * font.c (font_find_for_lface): Handle float font size.
13066 (font_open_for_lface): Likewise.
13067
13068 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13069 comparing the properties.
13070
130712008-06-01 Jason Rumney <jasonr@gnu.org>
13072
13073 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13074 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13075 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13076 Don't add empty script list.
13077 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13078
130792008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13080
13081 * Makefile.in (dot, dotdot): Remove, update users.
13082 ".." has been used elsewhere in the file for a long time.
13083 (LIBXT_STATIC): Remove conditional based on unused variable.
13084
130852008-06-01 Miles Bader <miles@gnu.org>
13086
13087 * xfaces.c (Vface_remapping_alist): New variable.
13088 (syms_of_xfaces): Initialize it.
13089 (enum named_merge_point_kind): New type.
13090 (struct named_merge_point): Add `named_merge_point_kind' field.
13091 (push_named_merge_point): Make cycle detection respect different
13092 named-merge-point kinds.
13093 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13094 Remove face-name alias resolution.
13095 (lface_from_face_name): New definition using
13096 `lface_from_face_name_no_resolve'.
13097 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13098 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13099 (get_lface_attributes): New definition that layers face-remapping on
13100 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13101 (lookup_basic_face): New function.
13102 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13103 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13104 `get_lface_attributes'.
13105 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13106 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13107 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13108
13109 * xdisp.c (init_iterator): Pass base_face_id through
13110 `lookup_basic_face' when we actually use it as a face-id.
13111 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13112 DEFAULT_FACE_ID.
13113
13114 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13115 lookup the initial face-id.
13116
13117 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13118
131192008-06-01 Juanma Barranquero <lekktu@gmail.com>
13120
13121 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13122 (Fremove_text_properties): Fix typos in docstrings.
13123
131242008-05-31 Kenichi Handa <handa@m17n.org>
13125
13126 * font.c (font_list_entities): Fix the car part of data to be
13127 stored in the cache.
13128
13129 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13130
131312008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13132
13133 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13134 Add a `test' argument so another predicate than `equal' can be used.
13135 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13136 (map_char_table): Remove unused vars `c' and `i'.
13137 * lisp.h (Foptimize_char_table): Adjust declaration.
13138 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13139
131402008-05-30 Kenichi Handa <handa@m17n.org>
13141
13142 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13143 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13144 defined.
13145
131462008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13147
13148 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13149 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13150 frame-local settings for the same variable.
13151
131522008-05-30 Kenichi Handa <handa@m17n.org>
13153
13154 * fontset.c (Ffont_info): Move to font.c.
13155 (syms_of_fontset): Delete defsubr of Sfont_info.
13156
13157 * font.c (font_style_to_value, font_score): Delete casting of the
13158 args to xstcasecmp.
13159 (register_font_driver): Increment num_font_drivers only when
13160 registering the driver globally.
13161 (Ffont_info): Move from fontset.c. Handle a font object too.
13162 (syms_of_font): Defsubr Sfont_info.
13163
131642008-05-29 Kenichi Handa <handa@m17n.org>
13165
13166 * coding.h (enum define_coding_utf8_arg_index): New enum.
13167 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13168 coding_attr_utf_bom.
13169 (enum utf_bom_type): Rename from utf_16_bom_type.
13170 (struct utf_16_spec): Adjust for the above change.
13171 (struct coding_system): Add utf_8_bom in `spec' union.
13172
13173 * coding.c (CODING_UTF_8_BOM): New macro.
13174 (enum coding_category): Delete coding_category_utf_8, add
13175 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13176 coding_category_utf_8_sig.
13177 (CATEGORY_MASK_UTF_8): Delete it.
13178 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13179 (CATEGORY_MASK_UTF_8_SIG): New macros.
13180 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13181 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13182 CATEGORY_MASK_UTF_8_SIG.
13183 (CATEGORY_MASK_UTF_8): New macro.
13184 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13185 (detect_coding_utf_8): Check BOM.
13186 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13187 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13188 (encode_coding_utf_16): Likewise.
13189 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13190 (detect_coding, detect_coding_system): Handle utf-8-auto.
13191 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13192 (syms_of_coding): Fix setting up of Vcoding_category_table.
13193
131942008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13195
13196 * process.c (Faccept_process_output): If `millisec' is non-nil,
13197 `seconds' default to 0.
13198 (wait_reading_process_output): Also return non-nil if we read output
13199 from a non-running process.
13200
132012008-05-29 Jason Rumney <jasonr@gnu.org>
13202
13203 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13204 `raster' specified.
13205 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13206 in the uniscribe backend, but disallow any font that has no
13207 unicode subrange support.
13208
132092008-05-29 Juanma Barranquero <lekktu@gmail.com>
13210
13211 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13212 Fix typos in docstrings.
13213
132142008-05-29 Kenichi Handa <handa@m17n.org>
13215
13216 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13217 (Fx_family_fonts): Set frame correctly.
13218
132192008-05-28 Jason Rumney <jasonr@gnu.org>
13220
13221 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13222
132232008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13224
13225 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13226 calling build_annotations.
13227
132282008-05-28 Juanma Barranquero <lekktu@gmail.com>
13229
13230 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13231 (Fencode_coding_string):
13232 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13233 <latin-extra-code-table>: Fix typos in docstrings.
13234 (syms_of_coding) <coding-system-alist>: Doc fix.
13235 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13236
132372008-05-28 Kenichi Handa <handa@m17n.org>
13238
13239 * fontset.c (Ffont_info): Don't call font_close_object.
13240
13241 * font.c (font_parse_family_registry): Use Ffont_put to validate
13242 foundry and family.
13243 (font_delete_unmatched): Don't check spacing.
13244 (font_list_entities): Add spacing to the spec to list fonts.
13245
13246 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13247 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13248
13249 * coding.c (encode_coding_raw_text): Fix previous change.
13250 (encode_coding_object): When the dst_object is a buffer and is
13251 different from src_object, move gap to PT.
13252
132532008-05-27 Chong Yidong <cyd@stupidchicken.com>
13254
13255 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13256
132572008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13258
13259 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13260 all branches. Compute it differently.
13261
13262 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13263
132642008-05-27 Juanma Barranquero <lekktu@gmail.com>
13265
13266 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13267 into "else if () ... else ...".
13268
132692008-05-27 Jason Rumney <jasonr@gnu.org>
13270
13271 * w32font.c (w32font_open_internal): Determine if glyph indices
13272 are likely to work here.
13273
132742008-05-27 Chong Yidong <cyd@stupidchicken.com>
13275
13276 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13277 draw overlap glyphs with appropriate highlighting.
13278
132792008-05-27 Kenichi Handa <handa@m17n.org>
13280
13281 * xfont.c (xfont_open): Fix calculation of font->average_width.
13282
132832008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13284
13285 * casefiddle.c (casify_object): Try to guess better whether the
13286 argument is a byte or a char.
13287
132882008-05-26 Andreas Schwab <schwab@suse.de>
13289
13290 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13291 Always send multiples of format size.
13292
13293 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13294
132952008-05-26 Jason Rumney <jasonr@gnu.org>
13296
13297 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13298 (compute_metrics): Don't set failure if we just cleared the cache.
13299 (w32_weight_table): Remove unused variable.
13300 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13301 backwards compatibility.
13302
133032008-05-25 Kenichi Handa <handa@m17n.org>
13304
13305 * w32term.c (x_draw_glyph_string):
13306 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13307
13308 * xfaces.c: Delete unused function prototypes.
13309 (xstrlwr, font_frame): Delete them.
13310 (clear_face_cache): Delete unused variable.
13311
13312 * xftfont.c (xftfont_open): Delete unused variable.
13313 If underline_thickness is not 1, adjust underline_position.
13314
13315 * ftxfont.c (ftxfont_open): Delete unused variable.
13316
13317 * fontset.c (face_for_char): Optimize for the case of no charset
13318 property.
13319
13320 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13321 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13322 (otf_open, font_otf_capability, generate_otf_features)
13323 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13324 Comment out by surrounding "#if 0" and "#endif" for the moment.
13325 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13326 (syms_of_font): Codes for accessing above commented out.
13327
133282008-05-24 Eli Zaretskii <eliz@gnu.org>
13329
13330 * w32proc.c: Include dispextern.h.
13331
13332 * w32.c: Include dispextern.h.
13333
133342008-05-23 Juanma Barranquero <lekktu@gmail.com>
13335
13336 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13337 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13338 Fix typos in docstrings.
13339
133402008-05-23 Jason Rumney <jasonr@gnu.org>
13341
13342 * xsmfns.c: Remove includes that are already included by config.h.
13343
133442008-05-23 Kenichi Handa <handa@m17n.org>
13345
13346 * charset.c (Qemacs, charset_emacs): New variables.
13347 (char_charset): Fix for non-Unicode characters.
13348 (syms_of_charset): Define charset_emacs.
13349
13350 * w32term.c (x_draw_glyph_string): Be sure to update
13351 s->underline_thickness and s->underline_position. Be sure to draw
13352 underline within the current line area.
13353
13354 * xterm.c (x_draw_glyph_string): Be sure to update
13355 s->underline_thickness and s->underline_position. Be sure to draw
13356 underline within the current line area.
13357
13358 * fontset.c: Delete unused variables and add casting for char *
13359 throughout the file.
13360 (fontset_font): Try the fallback fonts of the current fontset
13361 before consulting the default fontset.
13362
13363 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13364
13365 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13366
133672008-05-22 Jason Rumney <jasonr@gnu.org>
13368
13369 * font.c: Don't include strings.h.
13370
13371 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13372
13373 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13374 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13375 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13376 to call xstrcasecmp.
13377
13378 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13379
13380 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13381
13382 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13383
13384 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13385
133862008-05-22 Kenichi Handa <handa@m17n.org>
13387
13388 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13389
13390 * font.c (font_prop_validate_style): Adjust for the format
13391 change of font_style_table.
13392
13393 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13394 two args.
13395
13396 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13397 two args.
13398
133992008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13400
13401 * minibuf.c (keys_of_minibuf): Delete.
13402 * lisp.h (keys_of_minibuf): Delete.
13403 * emacs.c (main): Don't call keys_of_minibuf.
13404
134052008-05-22 Kenichi Handa <handa@m17n.org>
13406
13407 * ftfont.c (ftfont_resolve_generic_family): Rename from
13408 ftfont_list_generic_family. Return a single family for each
13409 generic family.
13410 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13411 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13412 Call font_add_log.
13413 (ftfont_match): Call font_add_log.
13414
13415 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13416 (FONT_DEBUG): Define it.
13417 (font_add_log): Extern it.
13418 (font_assert): Rename from xassert.
13419
13420 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13421 (xfont_list_family): Call font_add_log.
13422 (xfont_match): Likewise.
13423 (memq_no_quit): Delete.
13424
13425 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13426 call of Ffont_xlfd_name.
13427
13428 * xfaces.c (struct table_entry, slant_table, weight_table)
13429 (swidth_table): Move to font.c.
13430
13431 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13432 xassert are changed to font_assert. Delete many unused variables.
13433 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13434 New variables.
13435 (struct table_entry): Move from xfaces.c and modified.
13436 (weight_table, slant_table, width_table): Move from xfaces.c and
13437 contents adjusted for the change of struct table_entry.
13438 (font_style_to_value, font_style_symbolic): Adjust for the
13439 format change of font_style_table.
13440 (font_parse_family_registry): Don't overwrite existing foundry and
13441 family of font_spec.
13442 (font_score): Fix calculation of diff for sizes.
13443 (font_sort_entites): Call font_add_log.
13444 (font_delete_unmatched): Return a newly created list.
13445 (font_list_entities): Fix previous change. Call font_add_log.
13446 (font_matching_entity, font_open_entity, font_close_entity):
13447 Call font_add_log.
13448 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13449 (Finternal_set_font_style_table): Delete.
13450 (BUILD_STYLE_TABLE): New macro.
13451 (build_style_table): New function.
13452 (Vfont_log, font_log_env_checked): New variables.
13453 (font_add_log): New function.
13454 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13455 Declare Lisp variables "font-weight-table", "font-slant-table",
13456 "font-width-table", and "font-log". Initialize font_style_table.
13457
134582008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13459
13460 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13461
134622008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13463 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13464
13465 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13466 (Vframe_alpha_lower_limit): New variable.
13467 (x_set_alpha): New function.
13468
13469 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13470
13471 * xfns.c (x-create-frame, Qalpha):
13472 Initialize the frame parameter `alpha'.
13473 * xterm.c (OPAQUE, OPACITY): New.
13474 (x_set_frame_alpha): New function.
13475 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13476
13477 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13478 * w32fns.c (w32_frame_parm_handlers): Likewise.
13479
134802008-05-20 Jason Rumney <jasonr@gnu.org>
13481
13482 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13483 truetype fonts to opentype list.
13484
134852008-05-20 Juanma Barranquero <lekktu@gmail.com>
13486
13487 * fontset.c (Ffontset_info): Doc fix.
13488 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13489 <ignore-relative-composition>: Fix typos in docstrings.
13490
13491 * font.c (syms-of-font) <font-encoding-alist>:
13492 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13493 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13494 (Ffont_otf_alternates): Doc fixes.
13495
134962008-05-20 Kenichi Handa <handa@m17n.org>
13497
13498 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13499 font.h through out the file.
13500 (FONT_DRIVERS): Rename from FONTOBJ.
13501 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13502 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13503
13504 * emacs.c (main): Call syms_of_font unconditionally.
13505
13506 * font.h (find_font_encoding): Extern it.
13507
13508 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13509 fontset.c.
194d44e7 13510 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13511 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13512 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13513 only when HAVE_WINDOW_SYSTEM is defined.
13514 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13515 when HAVE_WINDOW_SYSTEM is defined.
13516
13517 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13518 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13519
13520 * xfaces.c: Include font.h unconditionally.
13521 (merge_face_ref, merge_face_vectors)
13522 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13523
135242008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13525
13526 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13527 indirect_variable.
13528 * eval.c (lisp_indirect_variable): New fun.
13529 (Fuser_variable_p): Use it.
13530
135312008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13532
13533 * lisp.h (indirect_variable):
13534 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13535 Use Lisp_Symbol pointers rather than Lisp_Object.
13536 Adjust callers.
13537 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13538 To this end, change calling-convention.
13539
13540 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13541 if some non-hidden buffers are selected by string&pred.
13542
135432008-05-19 Chong Yidong <cyd@stupidchicken.com>
13544
13545 * process.c (wait_reading_process_output): Always check status
13546 when in batch mode.
13547
135482008-05-19 Kenichi Handa <handa@m17n.org>
13549
13550 * font.c (font_list_entities): Fix handling of cache.
13551 (font_matching_entity): Likewise.
13552
13553 * ftfont.c (cs_iso8859_1): Delete.
13554 (ft_face_cache): New variable.
13555 (struct ftfont_info): New member fc_charset_idx.
13556 (ftfont_build_basic_charsets): Delete.
13557 (fc_charset_table): New variable.
13558 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13559 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13560 Callers changed.
13561 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13562 (ftfont_spec_pattern): New argument fc_charset_idx.
13563 Check registry more rigidly. Change callers.
13564 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13565 change of :font-entity property of the font.
13566
13567 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13568 property of the font.
13569
135702008-05-18 Juanma Barranquero <lekktu@gmail.com>
13571
13572 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13573 (Funencodable_char_position, Fcheck_coding_systems_region)
13574 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13575 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13576 (Ffind_operation_coding_system, Fset_coding_system_priority)
13577 (Fcoding_system_eol_type): Doc fixes.
13578
135792008-05-17 Glenn Morris <rgm@gnu.org>
13580
13581 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13582
135832008-05-16 Eli Zaretskii <eliz@gnu.org>
13584
13585 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13586 and st_gid.
13587
13588 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13589 HAVE_WINDOW_SYSTEM is not defined.
13590
13591 * xfaces.c (merge_face_ref, merge_face_vectors)
13592 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13593 HAVE_WINDOW_SYSTEM is defined.
13594 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13595
135962008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13597
13598 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13599
136002008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13601
13602 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13603
136042008-05-15 Kenichi Handa <handa@m17n.org>
13605
13606 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13607 preference.
13608
136092008-05-15 Glenn Morris <rgm@gnu.org>
13610
13611 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13612
136132008-05-15 Chong Yidong <cyd@stupidchicken.com>
13614
13615 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13616 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13617
13618 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13619
136202008-05-15 Kenichi Handa <handa@m17n.org>
13621
13622 * ftfont.c (ftfont_list): Downcase family name to check generic
13623 families.
13624
13625 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13626 font-spec for QCfont value.
13627
13628 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13629 buffer. Check the return value of it.
13630
136312008-05-14 Jason Rumney <jasonr@gnu.org>
13632
13633 * w32term.c (w32_get_glyph_overhangs): Remove.
13634 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13635
136362008-05-14 Kenichi Handa <handa@m17n.org>
13637
13638 * font.c (font_prop_validate): Make nil a valid value.
13639 (font_clear_cache): Check if the cached vector of entities is nil
13640 or not.
13641
136422008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13643
13644 * emacs.c (main_thread): Conditionalize on
13645 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13646 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13647
13648 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13649 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13650 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13651
136522008-05-14 Kenichi Handa <handa@m17n.org>
13653
13654 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13655 has no corresponding coding system.
13656
136572008-05-14 Jason Rumney <jasonr@gnu.org>
13658
13659 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13660
13661 * w32font.h (w32font_open_internal): Update declaration.
13662
13663 * w32font.c (w32font_open_internal): Change last argument from
13664 w32font_info struct to font object. Fill in font object from
13665 font_entity. Get Outline metrics if possible. Use them to
13666 calculate underline position and thickness. Use xlfd name as name
13667 property. Don't set codepage.
13668 (w32font_open): Pass font_object to w32font_open_internal. Don't
13669 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13670 (w32font_draw): Use s->font.
13671 (clear_cached_metrics): Don't clear non-existent blocks.
13672
13673 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13674 font was not found.
13675 (x_draw_glyph_string): Use underline position and thickness from font.
13676
13677 * w32uniscribe.c (uniscribe_open): Pass font_object to
13678 w32font_open_internal.
13679
136802008-05-14 Kenichi Handa <handa@m17n.org>
13681
13682 These changes are to delete all legacy font-handling codes, and
13683 make Emacs use only font-backends.
13684
13685 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13686 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13687
13688 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13689
13690 * charset.h (Vcharset_non_preferred_head)
13691 (Vcurrent_iso639_language): Extern them.
13692
13693 * charset.c (Vcharset_non_preferred_head): New variable.
13694 (Vcurrent_iso639_language): New variable.
13695 (syms_of_charset): Declare it as a Lisp variable.
13696 (char_charset): Don't check non preferred charsets. As a last
13697 resort, return charset_unicode.
13698 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13699
13700 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13701 conditionals. Don't check enable_font_backend. Delete all codes
13702 used only when USE_FONT_BACKEND is not defined.
13703
13704 * dispextern.h (struct glyph_string): Change type of `font' to
13705 `struct font *'.
13706 (struct glyph_string): New member underline_position and
13707 underline_thickness.
13708 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13709 (struct face): Change type of `font' to `struct font *'. Remove
13710 members `font_name', `font_info_id'.
13711 (per_char_metric, encode_char): Delete externs.
13712 (calc_pixel_width_or_height): Adjust the prototype.
13713
13714 * emacs.c (enable_font_backend): Delete extern.
13715 (main): Don't set enable_font_backend. Don't check the command
13716 line argument "-disable-font-backend".
13717
13718 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13719 (enum font_property_index): New members FONT_DPI_INDEX,
13720 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13721 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13722 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13723 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13724 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13725 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13726 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13727 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13728 (struct font_spec, struct font_entity): New structs.
13729 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13730 (struct font): Many members from old "struct font_info" moved to
13731 here. Members font and entity deleted.
13732 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13733 the new font-related objects.
13734 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13735 (CHECK_FONT_GET_OBJECT): Likewise.
13736 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13737 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13738 (struct font_driver): New members case_sensitive anc check. Type
13739 of the member list and open changed.
13740 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13741 (font_symbolic_width, font_find_object, font_get_spec)
13742 (font_set_lface_from_name): Delete extern.
13743 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13744
13745 * font.c: Include <strings.h>.
13746 (enable_font_backend): Delete it.
13747 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13748 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13749 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13750 (null_string): Delete it.
13751 (null_vector): Make it static.
13752 (font_family_alist): Delete it.
13753 (Qnormal): Extern it.
13754 (QCextra, QClanguage): Delete it.
13755 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13756 (font_make_spec, font_make_entity, font_make_object)
13757 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13758 the string. Callers changed.
13759 (font_pixel_size): Adjusted for the format change of font-related
13760 objects.
13761 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13762 (font_style_to_value, font_style_symbolic): New function.
13763 (build_font_family_alist): Delete it.
13764 (font_registry_charsets): Use Fassoc_string instead of
13765 assq_no_quit.
13766 (font_prop_validate_symbol): Don't return null_string.
13767 (font_prop_validate_style): Adjusted for the change of
13768 style-related values in a font vector.
13769 (font_property_table): Delete entries for QClanguage and
13770 QCantialias, add entries for QCavgwidth.
13771 (get_font_prop_index): Delete the 2nd argument FROM.
13772 (font_prop_validate): Arguments changed.
13773 (font_put_extra): Adjusted for the change of font-related objects.
13774 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13775 (font_parse_fcname, font_unparse_fcname)
13776 (font_prepare_composition): Likewise.
13777 (font_parse_family_registry): Renamed from font_merge_old_spec.
13778 (otf_open): Delete the 1st arg entity.
13779 (font_otf_capability): Adjusted for the above change.
13780 (font_score): New arg alternate_families. Adjusted for the change
13781 of font-related objects.
13782 (font_sort_entites): New arg best_only.
13783 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13784 Delete them.
13785 (font_match_p): Check alternate families.
13786 (font_find_object): Delete it.
13787 (font_check_object): New function.
13788 (font_clear_cache): Adjusted for the change of font-related objects.
13789 (font_delete_unmatched): New arg.
13790 (font_list_entities): Call font_driver->list with a spec that
13791 doesn't specify style-related properties.
13792 (font_matching_entity): Arguments changed. Caller changed.
13793 (font_open_entity): Adjusted for the change of font-related objects.
13794 (font_close_object, font_has_char, font_encode_char)
13795 (font_get_name, font_get_spec): Likewise.
13796 (font_spec_from_name, font_clear_prop, font_update_lface):
13797 New functions.
13798 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13799 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13800 (font_at): Adjusted for the change of font-related objects.
13801 (font_range): New function.
13802 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13803 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13804 (Fcopy_font_spec, Fmerge_font_spec): New function.
13805 (Ffont_family_list): Renamed from list-families.
13806 (Finternal_set_font_style_table): Arguments changed.
13807 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13808 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13809 change of font-related objects.
13810 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13811
13812 * fontset.h (struct font_info): Delete it. Most members go to
13813 struct font.
13814 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13815 (enum FONT_SPEC_INDEX): Delete it.
13816 (font_info, list_fonts_func, load_font_func, query_font_func)
13817 (set_frame_fontset_func, find_ccl_program_func)
13818 (get_font_repertory_func, new_fontset_from_font_name): Delete
13819 externs.
13820 (fontset_from_font_name): Extern it.
13821 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13822 (FONT_INFO_FROM_FACE): Deleted.
13823 (face_for_font): Adjust prototype.
13824
13825 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13826 conditionals. Don't check enable_font_backend. Delete all codes
13827 used only when USE_FONT_BACKEND is not defined.
13828 (get_font_info_func, list_font_func, load_font_func)
13829 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13830 (get_font_repertory_func): Delete them.
13831 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13832 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13833 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13834 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13835 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13836 (fontset_compare_rfontdef): New function.
13837 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13838 rfont-defs by qsort. Adjusted for the change of font-group vector.
13839 (load_font_get_repertory): Deleted.
13840 (fontset_find_font): Use new macros to ref/set elements of
13841 font-def and rfont-def.
13842 (fontset_font): Fix the timing of remembering that no font for C.
13843 (free_face_fontset): Do nothing if the face has no fontset.
13844 (face_suitable_for_char_p): Use new macros to ref/set elements of
13845 rfont-def.
13846 (face_for_char): Likewise. Call face_for_char with font_object.
13847 (fs_load_font): Delete. Delete #pragma surrounding it.
13848 (fs_query_fontset): Use strcasecmp instead of strcmp.
13849 (generate_ascii_font_name): Adjusted for the format change of
13850 font-spec.
13851 (Fset_fontset_font): Likewise. Use new macros to set elements of
13852 font-def.
13853 (Fnew_fontset): Use font_unparse_xlfd to generate
13854 FONTSET_ASCII (fontset).
13855 (new_fontset_from_font_name): Deleted.
13856 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13857 a fontset is already created for the font. FIx updating of
13858 Vfontset_alias_alist.
13859 (fontset_ascii_font): Deleted.
13860 (Ffont_info): Adjusted for the format change of font-spec.
13861 (Finternal_char_font): Likewise.
13862 (Ffontset_info): Likewise.
13863 (syms_of_fontset): Don't check load_font_func.
13864
13865 * fns.c (internal_equal): Handle PREV_FONT.
13866
13867 * frame.h: Delete USE_FONT_BACKEND conditional.
13868
13869 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13870 conditionals. Don't check enable_font_backend. Delete all codes
13871 used only when USE_FONT_BACKEND is not defined.
13872 (x_set_font): Call x_new_font, not x_new_fontset2.
13873 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13874 already set for the frame.
13875
13876 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13877 a font-entity by font_make_entity. Use font_intern_prop instead
13878 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13879 font property. If a font is scalable, set avgwidth property to 0.
13880 Set font-entity property by font_put_extra.
13881 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13882 (ffont_driver): Adjusted for the change of struct font_driver.
13883 (ftfont_spec_pattern): New function.
13884 (ftfont_list): Return a list, not vector.
13885 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13886 (ftfont_list_family): Don't downcase names.
13887 (ftfont_free_entity): Deleted.
13888 (ftfont_open): Return a font-object. Adjusted for the change of
13889 struct font. Get underline_thickness and underline_position from
13890 font property. Don't update dpyinfo->smallest_font_height and
13891 dpyinfo->smallest_char_width.
13892 (ftfont_close): Don't free `struct font'.
13893 (ftfont_has_char): Adjusted for the format change of font-entity.
13894 (ftfont_encode_char, ftfont_text_extents): Likewise.
13895
13896 * ftxfont.c (ftxfont_list): Return a list, not vector.
13897 (ftxfont_open): Return a font-object. Adjusted for the change of
13898 struct font. Get underline_thickness and underline_position from
13899 font property. Don't update dpyinfo->smallest_font_height and
13900 dpyinfo->smallest_char_width.
13901 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13902 (ftxfont_draw): Adjusted for the change of struct font.
13903
13904 * image.c (image_ascent): Don't include "charset.h". Include
13905 "character.h" and "font.h".
13906
13907 * lisp.h (enum pvec_type): New member PREV_FONT.
13908 (Fassoc_string): EXFUN it.
13909
13910 * print.c: Include font.h.
13911 (print_object): Handle font-related objects.
13912
13913 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13914 conditionals. Don't check enable_font_backend. Delete all codes
13915 used only when USE_FONT_BACKEND is not defined.
13916 (handle_auto_composed_prop): Do nothing if it->f is not on a
13917 window system. Check how many following characters can be
13918 displayed by the same font.
13919 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13920 'struct font *'.
13921 (get_char_face_and_encoding): Assign the whole encoding task to
13922 the `encode-char' method of a font driver.
13923 (fill_composite_glyph_string): Adjusted for the change of `struct
13924 face' and `struct glyph_string'.
13925 (fill_glyph_string): Likewise.
13926 (get_per_char_metric): Arguments changed.
13927 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13928 and `struct glyph_string'.
13929 (produce_stretch_glyph, calc_line_height_property)
13930 (x_produce_glyphs): Likewise.
13931
13932 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13933 conditionals. Don't check enable_font_backend. Delete all codes
13934 used only when USE_FONT_BACKEND is not defined. Use
13935 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13936 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13937 (Qp): Extern them.
13938 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13939 Deleted.
13940 (struct font_name): Deleted.
13941 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13942 (compare_fonts_by_sort_order): New function.
13943 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13944 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13945 Deleted.
13946 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13947 compare_fonts_by_sort_order.
13948 (Fx_font_family_list): Call Ffont_family_list.
13949 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13950 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13951 (face_symbolic_slant, face_symbolic_swidth)
13952 (split_font_name_into_vector, build_font_name_from_vector)
13953 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13954 (font_rescale_ratio, split_font_name, build_font_name)
13955 (free_font_names, sort_fonts, x_face_list_fonts)
13956 (face_font_available_p, sorted_font_list, cmp_font_names)
13957 (font_list_1, concat_font_list, font_list, remove_duplicates):
13958 Deleted.
13959 (Fx_list_fonts): Use Ffont_list.
13960 (LFACE_AVGWIDTH): Deleted.
13961 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13962 by FONTP.
13963 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13964 (set_lface_from_font_name): Delete it.
13965 (set_lface_from_font): Renamed from
13966 set_lface_from_font_and_fontset. Caller changed. Don't set
13967 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13968 for face.
13969 (merge_face_vectors): Copy font-spec if necessary.
13970 Clear properties of the font-spec if necessary.
13971 (merge_face_ref): Clear properties of the font-spec if necessary.
13972 (Finternal_set_lisp_face_attribute): Likewise.
13973 (set_font_frame_param): Use font_load_for_lface to load a
13974 font-object, and call Fmodify_frame_parameters with it.
13975 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13976 font name by Ffont_xlfd_name.
13977 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13978 QCslant, and QCwidth.
13979 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13980 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13981 Compare fonts by EQ.
13982 (lookup_non_ascii_face): Deleted.
13983 (face_for_font): The 2nd argument changed.
13984 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13985 Check atomic font properties by case insensitive.
13986 (realize_non_ascii_face): Set face->overstrike correctly.
13987 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13988 (dump_realized_face): Get font name from
13989 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13990
13991 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13992 conditionals. Don't check enable_font_backend. Delete all codes
13993 used only when USE_FONT_BACKEND is not defined.
13994 (xic_create_xfontset): Original code deleted and renamed from
13995 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13996 (x_make_gc): Don't set GCFont in GCs.
13997 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13998 opened by "fixed".
13999 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14000 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14001 get_font_repertory_func.
14002
14003 * xfont.c: Include <stdlib.h> and "ccl.h".
14004 (struct xfont_info): New structure.
14005 (xfont_query_font): Deleted.
14006 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14007 moved from xterm.c.
14008 (xfont_driver): Adjusted for the change of struct font_driver.
14009 (compare_font_names): New function.
14010 (xfont_list_pattern): Sort font names case insensitively. Make
14011 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14012 (xfont_list): Return a list, not vector.
14013 (xfont_match): If the font doesn't have QCname property, generate
14014 a name from the other font properties.
14015 (xfont_open): Return a font-object. Adjusted for the change of
14016 struct font. Get underline_thickness and underline_position from
14017 font property. Don't update dpyinfo->smallest_font_height and
14018 dpyinfo->smallest_char_width.
14019 (xfont_close): Don't free struct font.
14020 (xfont_prepare_face): Adjusted for the change of struct font.
14021 (xfont_done_face): Deleted.
14022 (xfont_has_char): Adjusted for the change of struct font.
14023 (xfont_encode_char, xfont_draw): Likewise.
14024 (xfont_check): New function.
14025
14026 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14027 callback function.
14028 (xftfont_match): Adjusted for the format change of font-entity.
14029 (xftfont_open): Adjusted for the format change of font-entity and
14030 font-object. Adjusted for the change of struct font. Return a
14031 font-object. Don't update dpyinfo->smallest_font_height and
14032 dpyinfo->smallest_char_width.
14033 (xftfont_close): Block input while calling XftFontClose.
14034 (xftfont_prepare_face): Don't block input while calling
14035 xftfont_get_colors. Adjusted for the change of struct font.
14036 (xftfont_shape): Return value of error case fixed.
14037
14038 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14039
14040 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14041 conditionals.
14042 (FONT_WIDTH): Return (f)->max_width.
14043 (struct x_display_info): Delete member `font'.
14044 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14045 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14046 (struct x_output): Change type of `font' to `struct font *'.
14047
14048 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14049 conditionals. Don't check enable_font_backend. Delete all codes
14050 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14051 (x_per_char_metric, x_encode_char): Deleted.
14052 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14053 (x_compute_glyph_string_overhangs): Adjusted for the change of
14054 `struct face'.
14055 (x_draw_glyph_string_foreground)
14056 (x_draw_composite_glyph_string_foreground): Likewise.
14057 (x_draw_glyph_string): Likewise. Use font->underline_position and
14058 font->underline_thickness.
14059 (x_new_font): Renamed from x_new_fontset2.
14060 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14061 (x_check_font): Call `check' method of a font driver.
14062 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14063 (x_query_font, x_get_font_repertory): Deleted.
14064 (x_find_ccl_program): Renamed and moved to xfont.c.
14065 (x_redisplay_interface): Adjusted for the change of `struct
14066 redisplay_interface'.
14067
14068 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14069 conditionals. Don't check enable_font_backend. Delete all codes
14070 used only when USE_FONT_BACKEND is not defined. Surround non-used
14071 code by "#ifdef OLD_FONT" and "endif".
14072 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14073
14074 * w32font.h (struct w32font_info): New member.
14075 (FONT_COMPAT): New macro.
14076 (w32font_open_internal): Prototype adjusted.
14077
14078 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14079 OLD_FONT" and "endif".
14080
14081 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14082 conditionals. Don't check enable_font_backend. Delete all codes
14083 used only when USE_FONT_BACKEND is not defined.
14084 (w32font_open): Return a font-object. Make a font-object by
14085 font_make_object. Adjusted for the change of struct w32font_info.
14086 (w32font_close): Don't free struct font. Adjusted for the change
14087 of struct w32font_info.
14088 (w32font_encode_char, w32font_text_extents, w32font_draw):
14089 Adjusted for the change of struct w32font_info.
14090 (w32font_draw): Likewise.
14091 (w32font_list_internal): Return a list, not vector.
14092 (w32font_open_internal): Change the 4th arg to font-object.
14093 Adjusted for the change of struct w32font_info and font-object format.
14094 (add_font_name_to_list): Don't downcase names.
14095 (w32_enumfont_pattern_entity): Make a font-entity by
14096 font_make_entity. Adjusted for the format change of font-entity.
14097 Use FONT_SET_STYLE to set a style-related font property. If a
14098 font is scalable, set avgwidth property to 0. Set font-entity
14099 property by font_put_extra.
14100 (font_matches_spec): Adjusted for the format change of font-entity.
14101 (w32_weight_table, w32_decode_weight): New variables.
14102 (w32_encode_weight): New function.
14103 (fill_in_logfont): Adjusted for the format change of font-spec.
14104 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14105 weight value.
14106 (w32font_driver): Adjusted for the change of struct font_driver.
14107
14108 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14109 conditionals. Don't check enable_font_backend. Surround non-used
14110 code by "#ifdef OLD_FONT" and "endif".
14111 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14112 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14113
14114 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14115 conditionals. Don't check enable_font_backend. Delete all codes
14116 used only when USE_FONT_BACKEND is not defined. Surround non-used
14117 code by "#ifdef OLD_FONT" and "endif".
14118
14119 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14120 (uniscribe_open): Return value changed to font-object.
14121 Adjusted for the format change of font-object.
14122 (uniscribe_otf_capability): Adjusted for the change of struct font.
14123 (add_opentype_font_name_to_list): Don't downcase names.
14124 (uniscribe_font_driver): Adjusted for the change of struct
14125 font_driver.
14126
141272008-05-13 Chong Yidong <cyd@stupidchicken.com>
14128
14129 * dispnew.c (update_frame_1): Check if tty output is still valid
14130 before flushing it.
14131
141322008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14133
14134 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14135 to Gtk+ menus.
14136
141372008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14138
14139 * dired.c (file_name_completion): Tweak the code so as to always do it
14140 in a single pass. Tighten the scope of some variables.
14141
14142 * dired.c (Qdefault_directory): New var.
14143 (file_name_completion): Use it instead of Fexpand_file_name.
14144 (syms_of_dired): Initialize it.
14145
141462008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14147
14148 * fileio.c (double_dollars): Remove dead code.
14149
141502008-05-10 Eli Zaretskii <eliz@gnu.org>
14151
14152 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14153 Mention w32-get-true-file-attributes in doc string.
14154
14155 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14156
141572008-05-09 Glenn Morris <rgm@gnu.org>
14158
14159 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14160 2008-04-23.
14161
141622008-05-09 Eli Zaretskii <eliz@gnu.org>
14163
14164 Support for reporting owner and group of each file on MS-Windows:
14165 * dired.c (stat_uname, stat_gname): New functions, with special
14166 implementation for w32.
14167 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14168
14169 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14170 (dflt_group_name): New static variable.
14171 (dflt_group): Rename from the_group.
14172 (init_user_info): Init dflt_group fields. Get user's group name
14173 from LookupAccountSid.
14174 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14175 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14176 New initialization states.
14177 (globals_of_w32): Initialize them to zero. Initialize the default
14178 group name to "None".
14179 (GetFileSecurity_Name): New global var, the name of the function
14180 to call for GetFileSecurity.
14181 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14182 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14183 (get_file_security, get_security_descriptor_owner)
14184 (get_security_descriptor_group, is_valid_sid)
14185 (get_file_security_desc, get_rid, get_name_and_id)
14186 (get_file_owner_and_group): New functions.
14187 (stat): Use get_file_security_desc and get_file_owner_and_group to
14188 report the owner and primary group of each file. Don't ignore the
14189 high 32 bits of file's size, now that st_size is 64-bit wide.
14190 Fix test when to get true file attributes.
14191 (init_user_info): Use get_rid instead of equivalent inline code.
14192 (fstat): Don't ignore the high 32 bits of file's size.
14193
141942008-05-09 Chong Yidong <cyd@stupidchicken.com>
14195
14196 * image.c (png_load): Use correct bit-depth for setting background
14197 color.
14198
141992008-05-08 Eli Zaretskii <eliz@gnu.org>
14200
14201 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14202 epa-hook.elc.
14203
142042008-05-08 Juanma Barranquero <lekktu@gmail.com>
14205
14206 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14207
142082008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14209
14210 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14211 because the original parameters are in pure storage now.
14212 (mac_window): Remove unused params. Update callers.
14213
142142008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14215
14216 * lread.c (substitute_object_recurse): Use lower-level primitives.
14217 Don't signal errors when traversing sub-char-tables.
14218 Don't loop over all the possible characters when traversing char-tables.
14219
14220 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14221 just like we do in print.c.
14222
142232008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14224
14225 * minibuf.c (Ftry_completion): Remove code left over from when we used
14226 scmp instead of Fcompare_strings.
14227
142282008-05-04 Juanma Barranquero <lekktu@gmail.com>
14229
14230 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14231
142322008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14233
14234 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14235 Create bitmap context in native byte order.
14236
14237 * macterm.c (XDrawLine)
14238 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14239 context in native byte order.
14240
142412008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14242
14243 * config.in: Regenerate.
14244
14245 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14246 New definitions for Image I/O support.
14247 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14248 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14249 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14250 (mac_data_provider_release_data, image_load_image_io)
14251 [USE_MAC_IMAGE_IO]: New functions.
14252 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14253 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14254 (init_image_func_pointer) [MAC_OSX]: Remove function.
14255 (image_load_quartz2d) [MAC_OSX]: Check availability of
14256 CGImageCreateWithPNGDataProvider at compile time.
14257 Use lowercase `false' for boolean constant.
14258 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14259 Use image_load_image_io.
14260 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14261 Don't check MyCGImageCreateWithPNGDataProvider.
14262 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14263 Don't call init_image_func_pointer.
14264
14265 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14266
14267 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14268 Make variable non-static.
14269 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14270 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14271
14272 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14273 (RED_FROM_ULONG): Mask off higher bits.
14274 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14275
14276 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14277 Include AvailabilityMacros.h.
14278 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14279 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14280
142812008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14282
14283 * chartab.c (Fset_char_table_range): If range is t, really set all
14284 chars to that value.
14285
142862008-05-03 Eli Zaretskii <eliz@gnu.org>
14287
14288 * dired.c (Ffile_attributes): Don't allow the device number become
14289 negative.
14290
142912008-05-02 Daiki Ueno <ueno@unixuser.org>
14292
14293 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14294
142952008-05-02 Juri Linkov <juri@jurta.org>
14296
14297 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14298 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14299 DEFAULT argument as a list of default values in docstrings.
14300
143012008-05-01 Chong Yidong <cyd@stupidchicken.com>
14302
14303 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14304
143052008-05-01 Martin Rudalics <rudalics@gmx.at>
14306
14307 * dispnew.c (change_frame_size_1): Preserve small windows when
14308 shrinking frames by calling set_window_height|width with third
14309 arg 2.
14310
14311 * window.h (struct window): Replace field too_small_ok by field
14312 resize_proportionally.
14313
14314 * window.c (make_window): Initialize resize_proportionally.
14315 (enlarge_window): Temporarily set resize_proportionally to make
14316 sure that shrink_windows does scale the window proportionally.
14317 (shrink_windows): When window has resize_proportionally set try
14318 to shrink it proportionally by stealing from other windows.
14319 (struct saved_window, Fset_window_configuration)
14320 (compare_window_configurations): Handle resize_proportionally.
14321 (WINDOW_TOTAL_SIZE): New macro.
14322 (window_min_size, shrink_windows, size_window): Use it.
14323 (check_min_window_sizes): Remove. Invalid values of
14324 window-min-height|width are handled by window_min_size_2 now.
14325 (size_window, Fsplit_window, enlarge_window)
14326 (adjust_window_trailing_edge, grow_mini_window): Don't call
14327 check_min_window_sizes.
14328 (window_min_size_2, window_min_size_1, window_min_size):
14329 New argument safe_p for retrieving "safe" minimum sizes.
14330 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14331 (adjust_window_trailing_edge, grow_mini_window):
14332 Adjust arguments of window_min_size... functions.
14333 (shrink_windows): Argument min_size removed. New argument
14334 safe_p allows shrinking windows to their safe minimum sizes.
14335 Calculate minimum size and decide whether a window shall be
14336 deleted for each window individually.
14337 (size_window): When nodelete_p equals 2, tell shrink_windows to
14338 delete windows only if their new minimum size is no more safe.
14339 (shrink_window_lowest_first): Call window_min_size_1 to make
14340 sure to preserve modeline of bottom-most window when resizing
14341 the minibuffer.
14342 (Fset_window_configuration, Fcurrent_window_configuration)
14343 (compare_window_configurations): Do not handle
14344 window-min-height|width any more.
14345 (syms_of_window): Clarify window-min-height|width doc-strings.
14346
143472008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14348
14349 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14350 some more. Copy some of the code from Ftry_completions.
14351 Remove special case code that dates back to initial revision when the
14352 slash was only added when necessary and that can't trigger nowadays.
14353
143542008-04-27 Kenichi Handa <handa@m17n.org>
14355
14356 * font.c (font_prop_validate): Signal `error' instead of `font'.
14357
143582008-04-29 Jason Rumney <jasonr@gnu.org>
14359
14360 * w32fns.c (Fw32_battery_status): New defun.
14361 (syms_of_w32fns): Defsubr it.
14362
143632008-04-28 Andreas Schwab <schwab@suse.de>
14364
14365 * dired.c (file_name_completion): Fix another mixing of encoded
14366 and decoded names.
14367
143682008-04-28 Juanma Barranquero <lekktu@gmail.com>
14369
14370 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14371
143722008-04-27 Juanma Barranquero <lekktu@gmail.com>
14373
14374 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14375
143762008-04-27 Andreas Schwab <schwab@suse.de>
14377
14378 * dired.c (file_name_completion): Fix inappropriate mixing of
14379 encoded and decoded names.
14380
14381 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14382
14383 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14384
143852008-04-26 Eli Zaretskii <eliz@gnu.org>
14386
14387 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14388 2008-03-31, it's not needed anymore with `struct stat' definition
14389 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14390 for the same reasons.
14391
143922008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14393
14394 * m/sparc.h: Additional redefinitions for GNU/Linux.
14395
143962008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14397
14398 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14399 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14400 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14401 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14402 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14403 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14404 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14405 Likewise.
14406
14407 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14408 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14409 (mac_ax_number_of_characters): Add externs.
14410 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14411 [USE_MAC_TSM]: Likewise.
14412 (mac_handle_text_input_event) [MAC_OSX]:
14413 Handle kEventTextInputOffsetToPos for no active input area case.
14414 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14415 (mac_handle_document_access_event)
14416 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14417 (install_application_handler) [MAC_OSX]: Register handlers for
14418 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14419 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14420 Register mac_handle_document_access_event.
14421
14422 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14423 Make functions non-static.
14424
144252008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14426
14427 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14428 (read_file_name_completion_ignore_case, insert_default_directory)
14429 (Qdefault_directory): Move to minibuffer.el.
14430 (Fread_file_name): Call the new `read-file-name' instead.
14431
144322008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14433
14434 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14435 Make function non-static.
14436 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14437 Remove function.
14438 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14439 Move to mactoolbox.c.
14440 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14441
14442 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14443 (mac_rect_make): New macro.
14444
14445 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14446 instead of float.
14447 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14448 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14449 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14450 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14451 CGRectMake.
14452 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14453 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14454 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14455 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14456 instead of WindowRef in argument type.
14457 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14458 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14459 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14460 instead of DISPLAY. All uses changed.
14461 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14462 (x_calc_absolute_position): Simplify so as not to use
14463 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14464
14465 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14466 instead of WindowRef in argument type.
14467 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14468 [TARGET_API_MAC_CARBON]: Remove externs.
14469 (create_apple_event, mac_event_parameters_to_lisp)
14470 [TARGET_API_MAC_CARBON]: Add externs.
14471
14472 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14473 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14474 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14475 is clicked.
14476 (x_activate_menubar): Remove extern for saved_menu_event_location.
14477 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14478 Move from mac.c.
14479
144802008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14481
14482 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14483 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14484
144852008-04-23 Jason Rumney <jasonr@gnu.org>
14486
14487 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14488 attributes only for local files.
14489
14490 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14491 default to Qlocal.
14492
144932008-04-22 Juri Linkov <juri@jurta.org>
14494
14495 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14496 read-buffer-to-switch instead of using the letter "B".
14497
144982008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14499
14500 * fileio.c (Qdefault_directory): New variable.
14501 (Fread_file_name): Use it to pass `dir' to the completion functions.
14502
145032008-04-20 Chong Yidong <cyd@stupidchicken.com>
14504
14505 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14506
145072008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14508
14509 * keyboard.c (Vpre_help_message): Remove.
14510 (show_help_echo): Remove default C code.
14511
14512 * dired.c (directory_files_internal, file_name_completion):
14513 Only call ENCODE_FILE if the string is indeed decoded.
14514
145152008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14516
14517 * Makefile.in (TOOLKIT_DEFINES): Remove.
14518 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14519
145202008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14521
14522 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14523 (mactoolbox.o): New target.
14524
14525 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14526 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14527
14528 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14529 Use mac_set_frame_window_background instead of XSetWindowBackground.
14530 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14531 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14532 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14533 instead of SetWindowTitleWithCFString.
14534 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14535 Move function to mactoolbox.c.
14536 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14537 Use mac_set_window_modified instead of SetWindowModified.
14538 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14539 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14540 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14541 FrontNonFloatingWindow. Use mac_activate_window instead of
14542 ActivateWindow. Use mac_active_non_floating_window instead of
14543 ActiveNonFloatingWindow.
14544 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14545 Use mac_show_hourglass and mac_hide_hourglass.
14546 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14547 instead of GetGlobalMouse.
14548 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14549 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14550 Use mac_bring_window_to_front instead of BringToFront.
14551 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14552 mactoolbox.c.
14553 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14554 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14555 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14556 mactoolbox.c.
14557
14558 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14559 (XtPointer): Move typedef from macmenu.c.
14560 (enum button_type): Move enum from macmenu.c.
14561 (widget_value): Move typedef from macmenu.c.
14562 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14563 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14564 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14565 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14566 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14567 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14568 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14569 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14570 (Selection): Move typedef from macselect.c.
14571 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14572 macterm.c.
14573 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14574 (mac_is_window_collapsed, mac_bring_window_to_front)
14575 (mac_send_window_behind, mac_hide_window, mac_show_window)
14576 (mac_collapse_window, mac_front_non_floating_window)
14577 (mac_active_non_floating_window, mac_activate_window)
14578 (mac_move_window_structure, mac_move_window, mac_size_window)
14579 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14580
14581 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14582 (enum mac_menu_kind): Move enum to mactoolbox.c.
14583 (min_menu_id): Move variable to mactoolbox.c.
14584 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14585 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14586 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14587 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14588 [TARGET_API_MAC_CARBON]: Likewise.
14589 (XtPointer): Move typedef to macgui.h.
14590 (enum button_type): Move enum to macgui.h.
14591 (widget_value): Move typedef to macgui.h.
14592 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14593 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14594 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14595 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14596 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14597 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14598 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14599 (popup_activated_flag): Make variable non-static.
14600 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14601 (add_menu_item, fill_menu, dispose_menus):
14602 Move functions to mactoolbox.c.
14603 (restore_show_help_function, menu_target_item_handler)
14604 (install_menu_target_item_handler, mac_handle_dialog_event)
14605 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14606 [TARGET_API_MAC_CARBON]: Likewise.
14607 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14608 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14609 (find_and_call_menu_selection, name_is_separator): Make function
14610 non-static.
14611 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14612 to mactoolbox.c.
14613 (set_frame_menubar): Don't call install_menu_quit_handler.
14614 (menu_item_selection): New variable.
14615 (mac_menu_show): Use create_and_show_popup_menu.
14616 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14617 selection but set variable menu_item_selection. All uses changed.
14618 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14619 Call install_menu_quit_handler. Move to mactoolbox.c.
14620
14621 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14622 (Selection): Move typedef to macgui.h.
14623 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14624 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14625 Make variables non-static.
14626 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14627 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14628 Make functions non-static.
14629 (Vmac_service_selection) [MAC_OSX]: Likewise.
14630 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14631 (mac_valid_selection_target_p, mac_clear_selection)
14632 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14633 (mac_put_selection_value, mac_selection_has_target_p)
14634 (mac_get_selection_value, mac_get_selection_target_list)
14635 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14636 Move functions to mactoolbox.c.
14637 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14638 Likewise.
14639 (copy_scrap_flavor_data, mac_handle_service_event)
14640 (install_service_handler) [MAC_OSX]: Likewise.
14641 (syms_of_macselect) <Vmac_dnd_known_types>:
14642 Use mac_dnd_default_known_types.
14643
14644 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14645 Move to mactoolbox.c.
14646 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14647 (Fx_selection_owner_p): Add EXFUN.
14648 (install_window_handler, remove_window_handler, XSetWindowBackground):
14649 Remove externs.
14650 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14651 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14652 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14653 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14654 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14655 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14656 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14657 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14658 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14659 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14660 (mac_valid_selection_target_p, mac_clear_selection)
14661 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14662 (mac_put_selection_value, mac_selection_has_target_p)
14663 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14664 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14665 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14666 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14667 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14668 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14669 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14670 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14671 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14672
14673 * mactoolbox.c: New file.
14674
146752008-04-18 Jason Rumney <jasonr@gnu.org>
14676
14677 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14678
146792008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14680
14681 * character.c (Fmultibyte_char_to_unibyte):
14682 Return latin1 chars unchanged.
14683
14684 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14685 relocated if it points to `name'.
14686
146872008-04-17 Kenichi Handa <handa@m17n.org>
14688
14689 * data.c (Faset): Allow setting a multibyte character in an
14690 ASCII-only unibyte string.
14691
14692 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14693
146942008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14695
14696 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14697 done in config.h.
14698
146992008-04-16 Juanma Barranquero <lekktu@gmail.com>
14700
14701 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14702 (Fchar_direction): Add usage in the docstring.
14703
147042008-04-15 Chong Yidong <cyd@stupidchicken.com>
14705
14706 * keyboard.c (read_key_sequence): Remove always-true checks.
14707
147082008-04-14 Jason Rumney <jasonr@gnu.org>
14709
14710 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14711 compatibility struct, for better underline positioning.
14712
147132008-04-13 David Hansen <david.hansen@gmx.net>
14714
14715 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14716 string.
14717
147182008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14719
14720 * m/hp800.h (XUINT, XSET): Remove.
14721
147222008-04-12 Juanma Barranquero <lekktu@gmail.com>
14723
14724 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14725 previous change.
14726
147272008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14728
14729 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14730 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14731
147322008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14733
14734 * keymap.h (map_keymap_canonical): Declare.
14735 * xmenu.c (single_keymap_panes): Use it.
14736
147372008-04-11 Glenn Morris <rgm@gnu.org>
14738
14739 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14740 set the target's value to that of the alias.
14741
147422008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14743
14744 * term.c (set_tty_color_mode): Left over typo.
14745
147462008-04-10 Michael Albinus <michael.albinus@gmx.de>
14747
14748 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14749 only after check for file name handler functions. Signal, when
14750 native functionality is not supported.
14751 (syms_of_fileio): Declare it unconditionally.
14752
147532008-04-10 Jason Rumney <jasonr@gnu.org>
14754
14755 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14756 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14757
14758 * w32.c (logon_network_drive): Also logon to remote drives that
14759 are mapped to drive letters.
14760
147612008-04-10 Glenn Morris <rgm@gnu.org>
14762
14763 * xdisp.c (truncate-partial-width-windows): Doc fix.
14764
147652008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14766
14767 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14768 Move functions to minibuffer.el.
14769 (syms_of_fileio): Don't declare them.
14770
147712008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14772
14773 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14774 (syms_of_minibuf): Remove its initialization.
14775
14776 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14777
147782008-04-09 Juanma Barranquero <lekktu@gmail.com>
14779
14780 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14781
147822008-04-09 Jason Rumney <jasonr@gnu.org>
14783
14784 * makefile.w32-in (distclean): Delete makefile too.
14785 (maintainer-clean): New target.
14786
14787 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14788
14789 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14790 for new font backend and composite cases.
14791
147922008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14793
14794 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14795 Most of the code moved to run_timers.
14796 (do_pending_atimers): Call run_timers.
14797 (run_timers): New function.
14798
14799 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14800 run atimers.
14801
14802 * process.c (wait_reading_process_output): The same as above.
14803
148042008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14805
14806 * minibuf.c (last_exact_completion): Remove variable.
14807 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14808 (complete_and_exit_1, complete_and_exit_2)
14809 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14810 (Fdisplay_completion_list, display_completion_list_1)
14811 (Fminibuffer_completion_help, Fself_insert_and_exit)
14812 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14813 minibuffer.el.
14814 (syms_of_minibuf): Remove corresponding initializations.
14815
14816 * keyboard.c (Qdeactivate_mark): New var.
14817 (command_loop_1): Use it to call `deactivate-mark'.
14818 (syms_of_keyboard): Initialize it.
14819
14820 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14821 to another frame.
14822 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14823 Don't call set_tty_color_mode.
14824 (store_frame_param): Reset previous_frame rather than call
14825 set_tty_color_mode.
14826 * term.c (set_tty_color_mode): Rewrite.
14827 * dispextern.h (set_tty_color_mode): New type.
14828 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14829
148302008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14831
14832 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14833 for generic chars, which do not exist any more in emacs-unicode.
14834
148352008-04-08 Michael Albinus <michael.albinus@gmx.de>
14836
14837 * coding.c (detect_coding_emacs_mule)
14838 (Ffind_operation_coding_system): Fix typo.
14839
148402008-04-08 Jason Rumney <jasonr@gnu.org>
14841
14842 * w32uniscribe.c (SNAME): Extract only symbol name.
14843
14844 * w32font.h (struct w32_metric_cache): New struct.
14845 (w32font_info): Use it.
14846 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14847 (CACHE_BLOCKSIZE): New constants.
14848
14849 * w32font.c (Qja, Qko, Qzh): New symbols.
14850 (syms_of_w32font): Initialise them.
14851 (font_matches_spec): Use them to filter by language.
14852 (recompute_cached_metrics): Remove function.
14853 (compute_metrics, clear_cached_metrics): New functions.
14854 (w32font_encode_char): Use them to manage metric cache.
14855 (w32font_text_extents): Cache metrics for all glyphs on demand.
14856 Delay converting glyph indices to WORD until needed.
14857 (w32font_open_internal): Initialize metric cache to empty.
14858 (registry_to_w32_charset): Charset should always be a symbol.
14859 (fill_in_logfont, list_all_matching_fonts): Family should
14860 always be a symbol.
14861
148622008-04-06 Jason Rumney <jasonr@gnu.org>
14863
14864 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14865 Give up if glyph indices not supported. Use uniscribe obtained
14866 ABC widths for individual metrics. Map glyph clusters back to
14867 characters using fClusterStart flag. Return number of glyphs
14868 produced, not chars processed.
14869 (uniscribe_shape): Map char at FROM to current glyph.
14870
148712008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14872
14873 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14874 Use SetMenuItemHierarchicalMenu.
14875
148762008-04-05 Jason Rumney <jasonr@gnu.org>
14877
14878 * image.c (pbm_load): Allow color values up to 65535.
14879 Throw an error if max_color_idx is outside the supported range.
14880 Report an error when image size is invalid.
14881 Read two bytes at a time when raw images have max_color_idx above 255.
14882
aac0c6e3
MR
148832008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14884
14885 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14886 append "CCL: Quitted" when the CCL program is quitted.
14887 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14888
14889 * ccl.h (struct ccl_program): New member quit_silently.
14890
148912008-04-05 Chong Yidong <cyd@stupidchicken.com>
14892
14893 * search.c (compile_pattern_1): Treat non-nil and non-string of
14894 search-spaces-regexp as nil.
14895
14896 * minibuf.c (Fassoc_string): Tweak docstring.
14897
148982008-04-05 Eli Zaretskii <eliz@gnu.org>
14899
14900 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14901 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14902 2008-03-14 to force inode be positive.
14903
14904 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14905 _S_* ones, since we now use our own sys/stat.h.
14906 (stat, fstat): Don't mangle the inode number.
14907 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14908
149092008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14910
14911 * frame.h (struct frame): Give one more bit to `visible' since we use
14912 values larger than 1 to indicate obscured frames on ttys.
14913
14914 * keymap.c (Qkeymap_canonicalize): New var.
14915 (Fmap_keymap_internal): New fun.
14916 (describe_map): Use keymap-canonicalize.
14917
14918 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14919 (Fundo_boundary): Set them.
14920 (syms_of_undo): Initialize them.
14921 (record_point): Use them instead of last_point_position*.
14922 (last_undo_buffer): Change type.
14923
149242008-04-04 Jason Rumney <jasonr@gnu.org>
14925
14926 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14927 (recompute_cached_metrics): Don't set ascent and descent per char.
14928
14929 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14930 (uniscribe_check_otf): Add GC protection before consing.
14931 Rearrange loop for counting features.
14932
149332008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14934
14935 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14936 buffer with byte-size of source buffer.
14937
149382008-04-03 Chong Yidong <cyd@stupidchicken.com>
14939
14940 * callint.c (Fcall_interactively): Handle temporary region even
14941 when shift-select-mode is off.
14942
149432008-04-03 Jason Rumney <jasonr@gnu.org>
14944
14945 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14946
149472008-04-03 Kenichi Handa <handa@m17n.org>
14948
14949 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14950 (CATEGORY_MASK_UTF_16): Likewise.
14951 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14952 binary file.
14953 (detect_coding): Add null-byte detection for a binary file.
14954 (detect_coding_system): Likewise.
14955
149562008-04-03 Jason Rumney <jasonr@gnu.org>
14957
14958 * w32uniscribe.c: New file.
14959
14960 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14961
14962 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14963
14964 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14965 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14966 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14967 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14968 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14969 (Qphonetic): New symbols.
14970 (syms_of_w32font): Initialize them.
14971 (font_supported_scripts): Use them.
14972 (w32font_list_family): List all charsets.
14973 (w32font_text_extents, recompute_cached_metrics): Fix metric
14974 calculations.
14975 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14976 Give opentype fonts their own format.
14977 (font_matches_spec): New arguments backend and logfont.
14978 Handle :otf spec for uniscribe backend.
14979 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14980 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14981
14982 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14983 font backend.
14984 (globals_of_w32fns): Initialize uniscribe font backend.
14985
14986 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14987 dependencies.
14988 (w32uniscribe.$(O)): New file to build.
14989 (FONT_OBJ): Include w32uniscribe.$(O).
14990 (LIBS): Add uniscribe libraries.
14991
14992 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14993
149942008-04-02 Chong Yidong <cyd@stupidchicken.com>
14995
14996 * callint.c (Vshift_select_mode): New var.
14997 (Finteractive): Document new ^ spec.
14998 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14999 is present.
15000
15001 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15002 (command_loop_1): Avoid running the direct display versions of
15003 forward-char and backward-char if shift-selection may occur.
15004 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15005 shift-translation takes place.
15006
15007 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15008 avoid clobbering by define-minor-mode.
15009
15010 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15011 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15012
15013 * syntax.c (Fforward_word): Add ^ interactive spec.
15014
15015 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15016 (Fscroll_right): Add ^ interactive spec.
15017
150182008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15019
15020 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15021
15022 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15023
15024 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15025
150262008-03-31 Juri Linkov <juri@jurta.org>
15027
15028 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15029
150302008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15031
15032 * gtkutil.c (xg_set_geometry): Fix indentation.
15033 (xg_resize_outer_widget): Remove.
15034 (x_wm_size_hint_off): Fix indentation.
15035 (xg_frame_set_char_size): Call flush_and_sync after
15036 gtk_window_resize.
15037 (x_wm_set_size_hint): Pass NULL as geometry window to
15038 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15039 Add menu bar and tool bar height to base height.
15040 (xg_update_frame_menubar, free_frame_menubar)
15041 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15042 (update_frame_tool_bar, free_frame_tool_bar):
15043 Change xg_resize_outer_widget to xg_frame_set_char_size.
15044
150452008-03-30 Michael Albinus <michael.albinus@gmx.de>
15046
15047 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15048 (Fdbus_call_method): New parameter TIMEOUT.
15049 (dbus-send-signal): Optimize UNGCPRO call.
15050
150512008-03-29 Juri Linkov <juri@jurta.org>
15052
15053 * window.c (Fdisplay_buffer): Move call to
15054 Vsplit_window_preferred_function out of conditions that check
15055 if window is eligible for vertical splitting.
15056 When Vsplit_window_preferred_function is non-nil, call it and use
15057 its non-nil return value as window. Otherwise, continue doing
15058 vertical splitting using Fsplit_window with arg horflag=nil.
15059 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15060 default value from `split-window' to nil.
15061
150622008-03-29 Juri Linkov <juri@jurta.org>
15063
15064 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15065 for interactive code letters 'b' and 'B'.
15066
150672008-03-29 Eli Zaretskii <eliz@gnu.org>
15068
15069 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15070 multibyte string.
15071
150722008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15073
15074 * keyboard.c (pending_funcalls): New var.
15075 (timer_check): Run it.
15076 (syms_of_keyboard): Initialize it.
15077 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15078 (Vdelete_terminal_functions): New vars.
15079 (syms_of_terminal): Initialize them.
15080 (Fdelete_terminal): Run delete-terminal-functions.
15081 * xdisp.c (safe_eval): Rewrite.
15082 (safe_call2): New fun.
15083 * frame.c (Qdelete_frame_functions): New var.
15084 (syms_of_frame): Initialize it.
15085 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15086 * lisp.h (safe_call2, pending_funcalls): Declare.
15087
150882008-03-28 Andreas Schwab <schwab@suse.de>
15089
15090 * indent.c (Fmove_to_column): Move declaration before statements.
15091
150922008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15093
15094 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15095 (struct frame): Use bit fields for boolean vars.
15096
15097 * process.c (server_accept_connection): Simplify naming.
15098 (emacs_get_tty_pgrp): Use SDATA.
15099
15100 * coding.c (decode_coding_object): Fix last change.
15101
151022008-03-27 Jason Rumney <jasonr@gnu.org>
15103
15104 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15105
151062008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15107
15108 * charset.c (Fdefine_charset_internal): Change the way of
15109 registering charsets in Vcharset_order_list.
15110 (syms_of_charset): Make the charset `eight-bit' supplementary.
15111
151122008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15113
15114 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15115 operations, to avoid having the difference between pointers
15116 overflow.
15117
151182008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15119
15120 * indent.c (check_display_width): New fun.
15121 (scan_for_column): Use it.
15122
15123 * data.c (syms_of_data): Mark most-positive-fixnum and
15124 most-negative-fixnum as constants.
15125
15126 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15127
15128 * indent.c (scan_for_column): Extract from current_column_1.
15129 Merge with the same code from Fmove_to_column.
15130 (current_column_1, Fmove_to_column): Use it.
15131
151322008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15133
15134 * keymap.c (map_keymap_internal): New fun.
15135 (map_keymap): Use it.
15136 (Fmap_keymap_internal): New fun.
15137 (Fmap_keymap): Remove left-out test from before make_save_value.
15138
15139 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15140
15141 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15142 Use XCAR/XCDR.
15143
15144 * process.h (struct Lisp_Process): Remove filter_multibyte.
15145 * process.c (QCfilter_multibyte): Remove.
15146 (setup_process_coding_systems): Don't use filter_multibyte.
15147 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15148 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15149 (Fset_process_filter_multibyte): Change the coding-system to
15150 approximate the previous behavior.
15151 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15152 coding-system.
15153
15154 * coding.c (decode_coding_object): When not decoding into a buffer,
15155 obey the coding system's preference of (uni|multi)byte.
15156
151572008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15158
15159 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15160 every char is changed and has a different byte-length.
15161 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15162 Fix int -> EMACS_INT.
15163
151642008-03-23 David Hansen <david.hansen@gmx.net>
15165
15166 * dbusbind.c (xd_read_message): Remove extra copying of message
15167 strings. Check for NULL `interface' or `member'.
15168
151692008-03-22 Eli Zaretskii <eliz@gnu.org>
15170
15171 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15172 cFileName a file name that includes `?' characters, use the 8+3
15173 alias in cAlternateFileName instead.
15174
151752008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15176
15177 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15178
151792008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15180
15181 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15182 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15183 work on current_buffer only instead (that was already the case
15184 for some of the code anyway).
15185 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15186 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15187 (SET_PT, SET_PT_BOTH): Adjust.
15188 * intervals.h (set_point, temp_set_point, set_point_both)
15189 (temp_set_point_both): Remove redundant declarations.
15190
151912008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15192
15193 * fileio.c (Finsert_file_contents):
15194 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15195 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15196 when buffer != current_buffer anyway.
15197
151982008-03-20 Andreas Schwab <schwab@suse.de>
15199
15200 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15201 as default.
15202
152032008-03-19 Jason Rumney <jasonr@gnu.org>
15204
15205 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15206 (syms_of_w32fns): Initialize them.
15207 (HOURGLASS_ID): New constant.
15208 (x_window_to_frame): Don't check hourglass_window.
15209 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15210 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15211 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15212 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15213 Only change the cursor if hourglass is not active.
15214 (Fx_create_frame): Initialize frame's current_cursor.
15215 (hourglass_atimer): Remove.
15216 (hourglass_started): New function.
15217 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15218 (show_hourglass): Adapt to w32, changing argument to frame.
15219
15220 * w32term.h (struct w32_output): Remove hourglass_window.
15221 Add current_cursor.
15222
15223 * eval.c (call_debugger, Fsignal):
15224 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15225 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15226 (Fexecute_extended_command, cancel_hourglass_unwind):
15227 * minibuf.c (read_minibuf):
15228 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15229
152302008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15231
15232 * window.c (run_funs): New fun.
15233 (run_window_configuration_change_hook): Use it to run the buffer-local
15234 and the global part of the hook.
15235
15236 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15237 (unwind_format_mode_line): Restore selected window.
15238 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15239
152402008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15241
15242 * editfns.c (Fchar_equal): Check they are valid characters.
15243
15244 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15245
152462008-03-17 Andreas Schwab <schwab@suse.de>
15247
15248 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15249 against a charset.
15250
15251 * lisp.h (Fbuffer_list): Declare.
15252
152532008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15254
aac0c6e3
MR
15255 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15256 handlebox_widget is != 0.
15257
152582008-03-16 Juri Linkov <juri@jurta.org>
15259
15260 * callint.c (Fcall_interactively): For interactive code letters
15261 'b' and 'B' put the buffer list into the list of default "future"
15262 values of the minibuffer.
15263
152642008-03-16 Andreas Schwab <schwab@suse.de>
15265
15266 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15267 modifiers.
15268
15269 * regex.c (re_match_2_internal): Correct matching of a charset
15270 against latin-1 characters.
15271
152722008-03-16 Kenichi Handa <handa@m17n.org>
15273
15274 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15275 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15276 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15277 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15278 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15279 CHAR_STRING_ADVANCE.
15280 (produce_chars): Fix for the case that the source and the
15281 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15282 instead of CHAR_STRING_ADVANCE.
15283 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15284 STRING_CHAR_ADVANCE.
15285
152862008-03-15 Andreas Schwab <schwab@suse.de>
15287
15288 * regex.c (re_match_2_internal): Correct matching of eight bit
15289 characters in unibyte strings.
15290
152912008-03-15 Martin Rudalics <rudalics@gmx.at>
15292
15293 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15294 at end of range when it coincides with the end of the buffer.
15295
152962008-03-14 Eli Zaretskii <eliz@gnu.org>
15297
15298 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15299
15300 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15301
153022008-03-14 Jason Rumney <jasonr@gnu.org>
15303
15304 * editfns.c (initial_tz): New variable.
15305 (syms_of_editfns): Initialize it.
15306 (Fset_time_zone_rule): Set it when first called.
15307 Use it when TZSTRING is nil.
15308
15309 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15310 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15311 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15312 (globals_of_w32fns): Initialize them.
15313 (compute_tip_xy): Use them to position tooltips.
15314
153152008-03-14 Glenn Morris <rgm@gnu.org>
15316
15317 * emacs.c (main): Revert previous change.
15318 (standard_args): Revert -internal-script back to -scriptload,
15319 and remove the long-option form.
15320
153212008-03-13 Glenn Morris <rgm@gnu.org>
15322
15323 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15324 Remove option -enable-font-backend.
15325
153262008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15327
15328 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15329
153302008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15331
15332 * xterm.c (x_connection_closed): For GTK: If this is the last
15333 terminal just exit without closing the display.
15334
153352008-03-11 Jason Rumney <jasonr@gnu.org>
15336
15337 * w32font.c (w32font_full_name): Use floor to round.
15338
f0131492 153392008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15340
15341 * sound.c (alsa_configure): Declare vol at beginning of block.
15342
15343 * fontset.c (Ffontset_info): Remove extra semicolon.
15344
153452008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15346
15347 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15348 size of resulting string.
15349
153502008-03-10 Jason Rumney <jasonr@gnu.org>
15351
15352 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15353
153542008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15355
15356 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15357 Don't pretend as if characters with display property haven't been
15358 consumed for string-replacing-string case.
15359
153602008-03-08 Kim F. Storm <storm@cua.dk>
15361
15362 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15363 (get_next_display_element, next_element_from_string)
15364 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15365
153662008-03-08 Andreas Schwab <schwab@suse.de>
15367
15368 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15369
153702008-03-06 Jason Rumney <jasonr@gnu.org>
15371
15372 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15373 when charset not specified. Only translate ANSI to unicode when
15374 font_type is truetype.
15375 (w32font_coverage_ok): New function.
15376 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15377
153782008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15379
15380 * lread.c (Fread_char): Resolve modifiers.
15381 (Fread_char_exclusive): Likewise.
15382
15383 * character.c (char_resolve_modifier_mask): New function.
15384 (char_string): Use char_resolve_modifier_mask.
15385 (Fchar_resolve_modifiers): New function.
15386 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15387 function.
15388
153892008-03-04 Jason Rumney <jasonr@gnu.org>
15390
15391 * makefile.w32-in: Always include w32font.c in the build.
15392 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15393
153942008-03-04 Andreas Schwab <schwab@suse.de>
15395
15396 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15397 (versionclean): Likewise.
15398
153992008-03-04 Juanma Barranquero <lekktu@gmail.com>
15400
15401 * .cvsignore: Add oo.
15402
154032008-03-03 Andreas Schwab <schwab@suse.de>
15404
15405 * coding.c (decode_coding_object): Inhibit gap shrinking while
15406 decoding in place.
15407
154082008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15409
15410 * w32term.c: Remove unused include "gnu.h".
15411 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15412
15413 * gnu.h: Rename to ...
15414 * emacs-icon.h: ... this.
15415 * xterm.c: Use emacs-icon.h instead of gnu.h.
15416 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15417
154182008-03-03 Juanma Barranquero <lekktu@gmail.com>
15419
15420 * w32font.c: Include math.h.
15421
154222008-03-03 Jason Rumney <jasonr@gnu.org>
15423
15424 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15425 Compute options separately.
15426 (w32font_open_internal): Set glyph_idx before caching metrics.
15427
15428 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15429 Define if system headers don't.
15430 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15431 (w32font_encode_char): Don't declare here.
15432
15433 * w32font.c (Quniscribe, QCformat): New symbols.
15434 (syms_of_w32font): Define them.
15435 (w32font_has_char): Indicate uncertainty.
15436 (w32font_encode_char): Encode as glyph point. Make static.
15437 (recompute_cached_metrics): New function.
15438 (w32font_open_internal): Use it. Set font to use glyph points
15439 initially. Set format based on type of font.
15440 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15441 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15442 on it. Set format based on information available here.
15443 (add_font_entity_to_list): Identify backend based on opentype_only.
15444
154452008-03-02 Andreas Schwab <schwab@suse.de>
15446
15447 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15448
15449 * coding.c (decode_coding_big5, produce_chars):
15450 Fix typos in last change.
15451
154522008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15453
15454 * gnu.h: New icon.
15455
154562008-03-02 Kenichi Handa <handa@m17n.org>
15457
15458 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15459 `dos', don't decode '\r' if that is the last in the source.
15460 (decode_coding_utf_16, decode_coding_emacs_mule)
15461 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15462 (decode_coding_raw_text, decode_coding_charset): Likewise.
15463 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15464
154652008-03-01 Jason Rumney <jasonr@gnu.org>
15466
15467 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15468
154692008-03-01 Kim F. Storm <storm@cua.dk>
15470
15471 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15472
154732008-03-01 Jason Rumney <jasonr@gnu.org>
15474
15475 * w32font.c (w32font_full_name): New function.
15476 (w32font_open_internal): Use it.
15477
154782008-03-01 Kim F. Storm <storm@cua.dk>
15479
15480 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15481
154822008-03-01 Jason Rumney <jasonr@gnu.org>
15483
15484 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15485
154862008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15487
15488 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15489 xg_frame_resized when the event is for the edit widget.
15490
15491 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15492
15493 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15494 set_char_size.
15495 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15496 operations on widgets here. Just set frame size if needed.
15497 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15498 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15499 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15500 the whole frame.
15501 (xg_create_tool_bar): Move attachment of the tool bar to
15502 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15503 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15504
155052008-03-01 Jason Rumney <jasonr@gnu.org>
15506
15507 * w32fns.c (w32_msg_pump): Disable debug code.
15508
155092008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15510
15511 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15512
155132008-02-29 Chong Yidong <cyd@stupidchicken.com>
15514
15515 * xdisp.c (next_overlay_string): Don't set
15516 overlay_strings_at_end_processed_p if we're currently reading from
15517 a display string.
15518
155192008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15520
15521 * xdisp.c (get_overlay_strings_1): Fix typo.
15522
155232008-02-29 Chong Yidong <cyd@stupidchicken.com>
15524
15525 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15526
155272008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15528
15529 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15530
15531 * xdisp.c (display_mode_element): Cancel the previous change.
15532 (decode_mode_spec): Likewise.
15533 (handle_auto_composed_prop): Don't make composition if it->string
15534 is a string.
15535
155362008-02-27 Kim F. Storm <storm@cua.dk>
15537
15538 * lisp.h (GLYPH): Change type from int to struct with separate char
15539 and face_id members.
15540 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15541 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15542 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15543 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15544 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15545 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15546 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15547 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15548 handle new Lisp glyph code encoding, either an integer or a cons.
15549
15550 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15551 (GLYPH_ALIAS): Delete.
15552 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15553 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15554 (GLYPH_FROM_CHAR): Replace macro by ...
15555 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15556
15557 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15558 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15559 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15560 (GLYPH_INVALID_P): New macro.
15561 (spec_glyph_lookup_face): Update prototype.
15562
15563 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15564 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15565 new glyph code encoding.
15566 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15567 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15568
15569 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15570 Adapt to new glyph type and new glyph code encoding.
15571
15572 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15573
15574 * indent.c (current_column, current_column_1, Fmove_to_column)
15575 (compute_motion): Adapt to new glyph code encoding.
15576
15577 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15578
155792008-02-27 Chong Yidong <cyd@stupidchicken.com>
15580
15581 * process.c (wait_reading_process_output): Check for window
15582 changes caused by timers.
15583 Suggested by Johan Bockgård.
15584
155852008-02-27 Glenn Morris <rgm@gnu.org>
15586
15587 * emacs.c (USAGE1): Add `--disable-font-backend'.
15588
155892008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15590
15591 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15592 is made to the buffer.
15593
155942008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15595
15596 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15597 (face_at_string_position):
15598 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15599 (face_at_string_position):
15600 * xdisp.c (display_string, next_overlay_change):
15601 * buffer.h (overlays_at):
15602 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15603 Update callers.
15604
156052008-02-26 Chong Yidong <cyd@stupidchicken.com>
15606
15607 * editfns.c (Fformat): Doc fix.
15608
156092008-02-26 Juanma Barranquero <lekktu@gmail.com>
15610
15611 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15612 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15613 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15614
156152008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15616
15617 * buffer.c (Fbuffer_swap_text): New function.
15618 (syms_of_buffer): Defsubr it.
15619
156202008-02-25 Chong Yidong <cyd@stupidchicken.com>
15621
15622 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15623
156242008-02-25 Jason Rumney <jasonr@gnu.org>
15625
15626 * w32font.c (w32font_draw): Draw one character at a time when padding.
15627
156282008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15629
15630 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15631 Handle a nil arg. Use run_window_configuration_change_hook.
15632 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15633 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15634 Use run_window_configuration_change_hook.
15635
156362008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15637
15638 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15639 1-pixel width.
15640
156412008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15642
15643 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15644 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15645 if the glyph in the font is zero pixel with.
15646
15647 * dispextern.h (struct glyph_string): New member padding_p.
15648
15649 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15650
15651 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15652
15653 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15654
15655 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15656
15657 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15658
156592008-02-25 Jason Rumney <jasonr@gnu.org>
15660
15661 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15662
156632008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15664
15665 Allow fine-grained image-cache flushing.
15666 * dispextern.h (struct image): Add `dependencies' field.
15667 (clear_image_caches): Change arg to Lisp_Object.
15668 * image.c (make_image): Initialize `dependencies' field.
15669 (clear_image_cache): Change arg to allow fine-grained flushing.
15670 Perform the flush even if image-cache-eviction-delay is nil.
15671 (clear_image_caches): Change arg to Lisp_Object.
15672 (Fclear_image_cache): Expand meaning of the argument.
15673 (mark_image): Mark `dependencies' field.
15674 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15675 (lface_hash): Use XHASH rather than XFASTINT.
15676 (face_at_buffer_position): Fix int -> EMACS_INT position.
15677 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15678 (select_frame_for_redisplay): Remove code duplication.
15679 (redisplay_internal): Adapt arg to call to clear_image_caches.
15680
156812008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15682
15683 * s/vms4-0.h:
15684 * s/vms4-2.h:
15685 * s/vms4-4.h:
15686 * s/vms5-5.h: Remove, unused.
15687
15688 * s/irix5-2.h:
15689 * s/irix6-0.h:
15690 * s/riscos5.h:
15691 * s/mach-bsd4-3.h:
15692 * m/mips4.h: Remove files for obsolete systems.
15693
15694 * Makefile.in:
15695 * filelock.c:
15696 * unexmips.c:
15697 * m/hp9000s300.h:
15698 * m/iris4d.h:
15699 * s/aix3-1.h:
15700 * s/hpux.h:
15701 * s/msdos.h:
15702 * s/usg5-0.h:
15703 * s/usg5-2-2.h:
15704 * s/usg5-2.h:
15705 * s/usg5-3.h: Remove references to obsolete variables.
15706
15707 * s/irix5-0.h: Remove, move all the contents ...
15708 * s/irix6-5.h: ... here. Simplify.
15709 * config.in: Regenerate.
15710
157112008-02-24 Jason Rumney <jasonr@gnu.org>
15712
15713 * w32term.c (x_draw_glyph_string_background): Clear the background
15714 manually when cleartype is in use.
15715 (x_draw_glyph_string_foreground): Draw text transparently when
15716 cleartype is in use.
15717
15718 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15719 a font into it unless we have to.
15720
157212008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15722
15723 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15724 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15725
aac0c6e3
MR
157262008-02-18 Jason Rumney <jasonr@gnu.org>
15727
15728 * w32fns.c (Fw32_shell_execute): Encode parameters.
15729
157302008-02-09 Eli Zaretskii <eliz@gnu.org>
15731
15732 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15733
157342008-02-05 Juanma Barranquero <lekktu@gmail.com>
15735
15736 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15737
157382008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15739
15740 * xterm.c (x_set_offset): Don't change the gravity if
15741 CHANGE_GRAVITY is -1.
15742
157432008-02-23 Chong Yidong <cyd@stupidchicken.com>
15744
15745 * fileio.c (auto_save_error_occurred): New var.
15746 (auto_save_error): Set it.
15747 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15748 error occurred.
15749
157502008-02-23 Eli Zaretskii <eliz@gnu.org>
15751
15752 * w32.c (globals_of_w32): Add initializations for
15753 g_b_init_get_sid_sub_authority and
15754 g_b_init_get_sid_sub_authority_count.
15755
157562008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15757
15758 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15759 (font_parse_xlfd): Use them for sanity check.
15760 (Finternal_set_font_style_table): Make sure the table is bijective.
15761
15762 Consolidate the image_cache to the terminal struct.
15763 * termhooks.h (P_): Remove redundant def.
15764 (struct terminal): New field `image_cache'.
15765 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15766 of FRAME_X_IMAGE_CACHE.
15767 * xterm.h (struct x_display_info): Remove image_cache field.
15768 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15769 * w32term.h (struct w32_display_info): Remove image_cache field.
15770 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15771 * macterm.h (struct mac_display_info): Remove image_cache field.
15772 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15773 * xterm.c (x_term_init):
15774 * w32term.c (w32_term_init):
15775 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15776 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15777 Remove declarations.
15778 (clear_image_caches, mark_image_cache): New declarations.
15779 * xfaces.c (clear_face_cache):
15780 * xdisp.c (redisplay_internal): Use clear_image_caches.
15781 * image.c (clear_image_cache): Don't check that a frame is on
15782 a window-system before checking if it shares the same cache.
15783 (clear_image_caches): New function.
15784 (Fclear_image_cache): Use it.
15785 (mark_image): Move from allo.c.
15786 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15787 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15788 (mark_object): Don't call mark_image_cache for frames.
15789 (mark_terminals): Call mark_image_cache.
15790
15791 * lisp.h (Fdelete_terminal): Declare.
15792
15793 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15794 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15795 wrong_type_argument.
15796
157972008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15798
15799 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15800 malayalam.el, and tamil.el. Add sinhala.el.
15801
158022008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15803
15804 * xterm.c (x_connection_closed): Consolidate identical tests.
15805 (x_delete_terminal): Don't crash if called via x_connection_closed.
15806
158072008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15808
15809 * xdisp.c (decode_mode_spec): New arg string.
15810 (display_mode_element): Adjust for the above change.
15811
158122008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15813
15814 * callint.c (Fcall_interactively): Use AREF.
15815
158162008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15817
15818 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15819
158202008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15821
15822 * xfns.c (Fx_show_tip): Set string to " " if empty.
15823
158242008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15825
15826 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15827 with Qt.
15828
158292008-02-17 Kenichi Handa <handa@m17n.org>
15830
15831 * ftfont.c (ftfont_shape): Return Lispy number.
15832
15833 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15834 for GCs.
15835 (Finternal_set_font_selection_order): Call font_update_sort_order
15836 only when enable_font_backend is set.
15837 (realize_x_face): Set face->font_info to that of default face only
15838 when enable_font_backend is set.
15839
15840 * xdisp.c (handle_composition_prop): Set it->c to the fist
15841 character of the composed region.
15842 (fill_composite_glyph_string): Set base_face->font_info to
15843 s->font_info. Get a face for ascii from base_face->ascii_face.
15844 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15845 with a face already decided.
15846 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15847 non-negative.
15848 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15849 call font_prepare_composition unconditionally.
15850
15851 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15852
15853 * xterm.h (struct x_display_info): New member font.
15854
15855 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15856 (x_set_mouse_face_gc, x_new_font): Likewise.
15857 (x_term_init): Setup display_info->font.
15858 (x_delete_terminal): Free display_info->font.
15859
15860 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15861
15862 * ftxfont.c (ftxfont_default_fid): Delete it.
15863 (ftxfont_open): Set xfont->fid to 0.
15864 (ftxfont_end_for_frame): Clear data specific to the frame and the
15865 font-driver.
15866
15867 * xftfont.c (xftfont_default_fid): Delete it.
15868 (xftfont_open): Set xfont->fid to 0.
15869
15870 * fontset.c (FONTSET_OBJLIST): New macro.
15871 (fontset_find_font): Update font-object list of the fontset.
15872 (free_realized_fontset): New function.
15873 (free_face_fontset): Call free_realized_fontset.
15874 (Ffont_info): Call font_close_object only when enable_font_backend
15875 is set.
15876
15877 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15878 [HAVE_NTGUI]: Include w32term.h.
15879 [MAC_OS]: Include macterm.ch.
15880 (font_otf_ValueRecord): Use make_number.
15881 (font_finish_cache): Fix handling of reference count.
15882 (font_clear_cache): Update num_fonts.
15883 (font_open_entity): Update smallest_char_width and
15884 smallest_font_height of the frame.
15885 (font_close_object): Update num_fonts.
15886 (Fclear_font_cache): Fix finding the target cache data.
15887
158882008-02-16 Glenn Morris <rgm@gnu.org>
15889
15890 * fontset.c (Finternal_char_font): Fix compilation warning.
15891
158922008-02-16 Eli Zaretskii <eliz@gnu.org>
15893
15894 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15895 instead of char arrays. Enlarge the size of array passed to
15896 get_token_information.
15897
15898 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15899 warnings.
15900
159012008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15902
15903 * .gdbinit: Don't set `args', it breaks gdb --args.
15904
159052008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15906
15907 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15908 within a narrowed buffer.
15909
159102008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15911
15912 * coding.c (decode_coding_object, encode_coding_object):
15913 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15914
159152008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15916
15917 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15918 hardcoding 1.
15919 (detect_coding_system):
15920 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15921 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15922 * insdel.c (insert_from_gap):
15923 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15924 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15925 (string_to_multibyte):
15926 * character.c (chars_in_text, multibyte_chars_in_text):
15927 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15928
15929 * character.h (FETCH_STRING_CHAR_ADVANCE)
15930 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15931 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15932 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15933
15934 * casefiddle.c (casify_region): Only call after-change and composition
15935 functions on the part of the region that was changed.
15936
15937 * keyboard.c (read_avail_input):
15938 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15939
159402008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15941
15942 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15943 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15944
159452008-02-11 Juanma Barranquero <lekktu@gmail.com>
15946
15947 * w32menu.c (push_submenu_start, push_submenu_end)
15948 (push_left_right_boundary, push_menu_pane, push_menu_item):
15949 * keyboard.c (read_key_sequence): Don't pass args with side effects
15950 to AREF, it fails when compiling with -DENABLE_CHECKING.
15951
159522008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15953
15954 * Makefile.in (${lispsource}international/charprop.el):
15955 Delete this target.
15956
15957 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15958 emacs-unicode-2.
15959
159602008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15961
15962 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15963
159642008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15965
15966 * frame.c (Qnoelisp): New symbol.
15967 (syms_of_frame): Initialize it.
15968 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15969 harmless Elisp code, from a strong `force' from x_connection_closed.
15970 * frame.h (Qnoelisp): Declare.
15971 * xterm.c (x_connection_closed): Pass `noelisp'.
15972
15973 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15974 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15975 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15976 rather than `int' for the type of `type'.
15977
159782008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15979
15980 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15981
15982 * Makefile.in (GNUC): Remove support for gcc-1.x.
15983
159842008-02-10 Richard Stallman <rms@gnu.org>
15985
15986 * lisp.h (ASET): Use AREF, not ASLOT.
15987
159882008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15989
15990 * lisp.h (ASET): Check bounds.
15991
159922008-02-10 Glenn Morris <rgm@gnu.org>
15993
15994 * buffer.c (mode-name): Doc fix.
15995
159962008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15997
15998 * Makefile.in:
15999 * emacs.c:
16000 * gmalloc.c:
16001 * keyboard.c:
16002 * lisp.h:
16003 * m/ibm370aix.h:
16004 * process.c:
16005 * regex.c:
16006 * s/hpux.h:
16007 * sysdep.c:
16008 * sysselect.h:
16009 * systty.h:
16010 * unexec.c:
16011 * w32term.c:
16012 * xsmfns.c:
16013 * xterm.c: Remove code that deals with obsolete variables.
16014
16015 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16016
16017 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16018 nothing else needs it anymore.
16019
160202008-02-09 Eli Zaretskii <eliz@gnu.org>
16021
16022 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16023 instead of unibyte_char_to_multibyte.
16024
160252008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16026
16027 * s/gnu-linux.h: Remove commented out code.
16028
16029 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16030
16031 * Makefile.in: Update what RMS says about using autoconf.
16032 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16033 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16034 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16035 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16036
160372008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16038
16039 * keymap.c (Fkey_description): Move side effect outside of macro call.
16040
16041 * xfaces.c (Finternal_make_lisp_face):
16042 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16043
16044 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16045 (syms_of_fontset): Use ASET.
16046
16047 * fns.c (concat): Move side effect outside of macro call.
16048 (hash_clear): Use ASET.
16049
160502008-02-08 Richard Stallman <rms@gnu.org>
16051
16052 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16053 If FORCE, and frame has a surrogate minibuffer for another frame,
16054 delete the other frame first.
16055
160562008-02-07 Timo Savola <timo.savola@iki.fi>
16057
16058 * xterm.c (x_detect_focus_change): Handle embed client message.
16059 (handle_one_xevent): Ditto.
16060 (handle_one_xevent): If embedded and we get a button press/release,
16061 request focus.
16062 (xembed_set_info, xembed_send_message): New functions.
16063 (x_make_frame_visible): Call xembed_set_info if embedded.
16064 (x_make_frame_invisible): Call xembed_set_info if embedded.
16065 (x_term_init): Initialize Xatom_XEMBED.
16066 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16067 (x_iconify_frame): Ditto.
16068
16069 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16070 (enum xembed_info, enum xembed_message, enum xembed_focus)
16071 (enum xembed_modifier, enum xembed_accelerator): New.
16072 (xembed_set_info, xembed_send_message): Declare.
16073 (FRAME_X_EMBEDDED_P): New.
16074
16075 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16076 gtk_plug_new.
16077
16078 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16079 window ID of a frame.
16080 (x_window): Reparent frame if embedded.
16081 (Fx_create_frame): Don't set border width if embedded.
16082
16083 * emacs.c (USAGE3): Add --parent-id.
16084 (standard_args): Ditto.
16085
160862008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16087
16088 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16089
160902008-02-07 Jim Meyering <meyering@redhat.com>
16091
16092 Use "do...while (0)", not "if (1)...else" in macro definitions.
16093 The latter provokes a warning from gcc about the empty else, when
16094 followed by ";". Also, without that trailing semicolon, it would
16095 silently swallow up any following statement.
16096 * syntax.h (SETUP_SYNTAX_TABLE)
16097 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16098 * buffer.h (DECODE_POSITION): Likewise.
16099 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16100 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16101 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16102 (FETCH_CHAR_ADVANCE): Likewise.
16103 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16104
161052008-02-07 Jim Meyering <meyering@redhat.com>
16106
16107 * lread.c [lint]: Don't include <sys/inode.h>.
16108
161092008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16110
16111 * xselect.c (x_handle_dnd_message):
16112 * xmenu.c (digest_single_submenu, xmenu_show):
16113 * xdisp.c (with_echo_area_buffer_unwind_data)
16114 (format_mode_line_unwind_data, unwind_format_mode_line)
16115 (display_menu_bar):
16116 * eval.c (Ffetch_bytecode):
16117 * doc.c (store_function_docstring):
16118 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16119 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16120 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16121
161222008-02-07 Kenichi Handa <handa@m17n.org>
16123
16124 * ftxfont.c (ftxfont_open): Don't set
16125 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16126
16127 * ftfont.c (ftfont_open): Fix previous change.
16128
161292008-02-06 Jason Rumney <jasonr@gnu.org>
16130
16131 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16132 Use cached metrics for ASCII characters.
16133 (w32font_open_internal): Don't set font's owning_frame.
16134 Cache metrics for ASCII characters.
16135
16136 * w32font.h (struct w32font_info): Add ascii_metrics.
16137 Remove owning_frame.
16138
161392008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16140
16141 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16142 to negative value.
16143
16144 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16145
16146 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16147
16148 * charset.c (syms_of_charset): Set QCtest and Qeq.
16149
161502008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16151
16152 * process.c (Fstart_process):
16153 * callproc.c (Fcall_process): Handle the case where
16154 Funhandled_file_name_directory returns nil.
16155
16156 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16157 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16158 * font.c (check_gstring): Use them and AREF to access the vector before
16159 we know it's really a gstring.
16160 (Ffont_shape_text): Fix typo.
46e722a9 16161 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16162
16163 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16164 Declare.
16165
16166 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16167
161682008-02-05 Jason Rumney <jasonr@gnu.org>
16169
16170 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16171 Set smallest_font_height and smallest_char_width in display info.
16172
161732008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16174
16175 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16176
161772008-02-05 Miles Bader <miles@gnu.org>
16178
16179 * xfaces.c (get_lface_attributes, merge_named_face)
16180 (lookup_named_face, lookup_derived_face, realize_named_face):
16181 Revert 2008-02-01 change by cyd@stupidchicken.com.
16182
161832008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16184
16185 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16186 fallback fonts.
16187 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16188
161892008-02-04 Jason Rumney <jasonr@gnu.org>
16190
16191 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16192 set full_name.
16193 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16194
161952008-02-03 Jason Rumney <jasonr@gnu.org>
16196
16197 * makefile.w32-in (OBJ1): Include font.o here.
16198 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16199
162002008-02-02 Jason Rumney <jasonr@gnu.org>
16201
16202 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16203
162042008-02-01 Jason Rumney <jasonr@gnu.org>
16205
16206 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16207
16208 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16209
162102008-02-01 Andreas Schwab <schwab@suse.de>
16211
16212 * Makefile.in (shortlisp, lisp): Update for rename of
16213 ../lisp/language/myanmar.el.
16214
162152008-02-01 Chong Yidong <cyd@stupidchicken.com>
16216
16217 * xfaces.c (get_lface_attributes): Delete function.
16218 (merge_named_face, lookup_named_face, lookup_derived_face)
16219 (realize_named_face): Call lface_from_face_name directly, and use
16220 the fact that merge_face_vectors does not alter its FROM argument.
16221
162222008-02-01 Jason Rumney <jasonr@gnu.org>
16223
16224 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16225 input in the default locale. Handle non-Unicode multibyte input.
16226
162272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16228
16229 * fontset.c (reorder_font_vector): Exclude nil elements from the
16230 font group. Don't try multiple fonts.
16231 (fontset_font): Adjust for the above change.
16232 (Finternal_char_font): Return nil if the found font doesn't
16233 contain the character ch.
16234
16235 * Makefile.in (lisp, shortlisp): Add cham.el.
16236
162372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16238
16239 * font.h (FONTP): Make it return 1 also for a font-object.
16240
16241 * .gdbinit (xfontset): New function.
16242
16243 * font.c (font_find_for_lface): Check if the character C is
16244 supported or not only for the first font.
16245
16246 * fontset.c (reorder_font_vector): Fix typo.
16247 (fontset_find_font): Don't add a font-spec specifying a script.
16248 Use 0 (not Qt) for the indication of empty font-group. Change the
16249 format of RFONT-DEF. Return Qt if no font in the font-group
16250 support the character.
16251 (fontset_font): Adjust for the above change. If no font was
16252 found the character, remember that.
16253 (face_for_char): Adjust for the change of RFONT-DEF.
16254 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16255 no font for the target.
16256 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16257
162582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16259
16260 * font.c (font_load_for_face): Handle the case that the font in
16261 face->lface is a string.
16262
162632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16264
16265 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16266
162672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16268
16269 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16270 Fix previous change. If the frame is not on a window system,
16271 signal an error.
16272
162732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16274
16275 * coding.c (decode_coding_object, encode_coding_object): Adjust
16276 marker positions after conversion.
16277
16278 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16279
162802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16281
16282 * font.c (font_find_for_lface): Fix the handling of the return
16283 value of font_has_char.
16284 (Ffont_shape_text): Fix previous change.
16285
16286 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16287 (fontset_ref_and_range): Delete it.
16288 (fontset_find_font): Call char_table_ref_and_range instead of
16289 FONTSET_REF_AND_RANGE.
16290 (make_fontset): Don't setup font groups of Latin here.
16291 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16292 (new_fontset_from_font): Make the specified font the default for
16293 all Latin characters.
16294
162952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16296
16297 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16298 is on a window system before accessing the fontset of the frame.
16299
163002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16301
16302 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16303
16304 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16305 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16306
16307 * font.c (Ffont_shape_text): If the font driver doesn't have a
16308 shaper function, make zero-width glyphs to have at least one-pixel
16309 width. Fix setting of `to' field of glyphs.
16310
163112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16312
16313 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16314 glyphs.
16315
16316 * font.h (struct font_driver): Improve docstring of member `shape'.
16317
163182008-02-01 Kenichi Handa <handa@m17n.org>
16319
16320 * composite.c (syms_of_composite): Fix docstring of
16321 auto-composition-function.
16322
16323 * font.h (LGLYPH_SIZE): New macro.
16324
16325 * font.c (Ffont_fill_gstring): Stop filling when a character not
16326 supported by the font is found.
16327 (Ffont_shape_text): When a shape callback function returns nil,
16328 try at most two more times with larger gstring.
16329 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16330
16331 * xdisp.c (handle_auto_composed_prop): Change the argument to
16332 auto-composition-function.
16333
16334 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16335 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16336 Lispy glyph and store it in the lgstring.
16337
16338 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16339
16340 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16341
163422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16343
16344 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16345
16346 * fontset.c (Vfont_encoding_charset_alist): New variable.
16347 (syms_of_fontset): DEFVAR it.
16348 (reorder_font_vector, fontset_find_font): Optimize for the case of
16349 no need of reordering.
16350 (face_for_char): Map the charset property by
16351 Vfont_encoding_charset_alist.
16352
163532008-02-01 Jason Rumney <jasonr@gnu.org>
16354
16355 * w32font.c (logfonts_match): Don't check adstyle here.
16356 (font_matches_spec): Check here against physical font instead.
16357 (add_font_entity_to_list): Avoid some substitutions.
16358
16359 * font.c (font_parse_fcname): Default weight and slant to normal.
16360 (font_score): Prefer normal fonts if weight or slant unspecified.
16361 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16362 match freetype scores.
16363
163642008-02-01 Jason Rumney <jasonr@gnu.org>
16365
16366 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16367 font, as it may have been deleted.
16368 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16369 most common hyphenless variation.
16370 (logfonts_match): Check generic family.
16371 (font_matches_spec): Don't check generic family here.
16372 (fill_in_logfont): Set generic family based on adstyle.
16373
16374 * w32font.h (w32font_get_cache): Update declaration.
16375
163762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16377
16378 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16379
16380 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16381 If none of the new drivers are available, call font_update_drivers
16382 with the old drivers.
16383
16384 * w32font.c (w32font_get_cache): Adjust the argument type.
16385
16386 * xfont.c (xfont_get_cache): Adjust the argument type.
16387
16388 * font.h (struct font_driver): Change argument type of get_cache.
16389
16390 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16391
16392 * font.c (Ffont_get): Fix arguments to Fassoc.
16393 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16394 (font_clear_cache): New function.
16395 (font_list_entities, font_matching_entity): Use font_get_cache.
16396 (font_update_drivers): Call font_clear_cache when finishing a driver.
16397
16398 * fontset.c (fontset_find_font): Fix previous change.
16399
164002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16401
16402 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16403 dpyinfo->font_table.
16404 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16405 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16406
16407 * font.c (font_at): Handle the case that the arg C is negative.
16408 Handle the unibyte case.
16409 (Ffont_at): Call font_at with the arg C -1.
16410
16411 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16412 the position here, and call font_at with the arg C -1.
16413 Don't check the range of the existing composition at the point.
16414
164152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16416
16417 * fontset.c (fontset_add): New args charset_id and family.
16418 Change caller.
16419 (load_font_get_repertory, fontset_find_font): Assume that
16420 font_spec is always a font-spec object.
16421 (Fset_fontset_font): Always store a font-spec object in a fontset.
16422
16423 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16424 instead of get_property_and_range.
16425
164262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16427
16428 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16429 (xftfont_open): Don't keep locking face.
16430 (xftfont_close): Don't unlock face.
16431 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16432
16433 * fontset.c (fontset_find_font): Don't prefer a font of
16434 supplementary charset.
16435
164362008-02-01 Kenichi Handa <handa@m17n.org>
16437
16438 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16439 script, langsys_tag to langsys, new member script.
16440 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16441 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16442 listing to the script specified in that property. Fix arg to
16443 OTF_check_features.
16444
164452008-02-01 Jason Rumney <jasonr@gnu.org>
16446
16447 * w32font.h: New file.
16448
16449 * w32font.c: Include it.
16450 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16451 (w32font_open): Set owning_frame.
16452 (w32font_text_extents): Use owning_frame.
16453 (struct font_callback_data): Add opentype_only field.
16454 (add_font_entity_to_list): Use it to filter fonts.
16455 Don't check against full name.
16456 (w32font_list_internal): New function.
16457 (w32font_list): Use it.
16458 (w32font_match_internal): New function.
16459 (w32font_match): Use it.
16460 (w32font_open_internal): New function.
16461 (w32font_open): Use it.
16462 (w32font_get_cache, w32font_close, w32font_has_char)
16463 (w32font_encode_char, w32font_text_extents, w32font_draw):
16464 Make non-static.
16465
16466 * makefile.w32-in (w32font.o): Depend on w32font.h.
16467
164682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16469
16470 * charset.c (Fdefine_charset_internal): Record a supplementary
16471 charset at the tail of Vcharset_order_list.
16472
16473 * font.c (Ffont_shape_text): Fix the return value.
16474
16475 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16476
16477 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16478
164792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16480
16481 * ftfont.c (struct OpenTypeSpec): New struct.
16482 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16483 (ftfont_get_open_type_spec): New function.
16484 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16485
16486 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16487
164882008-02-01 Jason Rumney <jasonr@gnu.org>
16489
16490 * w32font.c (add_font_entity_to_list): Compare only the beginning
16491 of full name.
16492
164932008-02-01 Kenichi Handa <handa@m17n.org>
16494
16495 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16496 Never return HANDLED_RECOMPUTE_PROPS.
16497
164982008-02-01 Kenichi Handa <handa@m17n.org>
16499
16500 * font.c (font_gstring_produce): Delete it.
16501
16502 * composite.h (COMPOSITION_METHOD):
16503 Handle COMPOSITION_WITH_GLYPH_STRING.
16504
165052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16506
16507 * xfont.c (Qx): Delete.
16508 (syms_of_xfont): Don't initialize Qx.
16509
16510 * composite.h (enum composition_method):
16511 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16512
165132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16514
16515 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16516 (choose_face_font): Accept new form of font-spec.
16517
16518 * frame.h (font_driver_list): Declare it unconditionally.
16519 (struct frame): Define members font_driver_list and font_data_list
16520 unconditionally.
16521
16522 * fontset.c: Include "font.h" unconditionally.
16523 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16524 (Fset_fontset_font): Accept a font-spec object.
16525
16526 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16527 PIXEL_SIZE part a wild card.
16528
16529 * dispextern.h (struct glyph_string): Define members clip and
16530 num_clips unconditionally.
16531 (struct face): Define members font_info and extra unconditionally.
16532
16533 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16534 ftfont_info only when HAVE_LIBOTF is defined.
16535
165362008-02-01 Andreas Schwab <schwab@suse.de>
16537
16538 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16539 and end.
16540
165412008-02-01 Jason Rumney <jasonr@gnu.org>
16542
16543 * w32font.c (w32font_driver): Add new fields.
16544
165452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16546
16547 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16548 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16549 (LIBES): Add @M17N_FLT_CFLAGS@.
16550
16551 * composite.c (compose_text): Don't treat the new style
16552 composition specially.
16553
16554 * emacs.c (main): Call syms_of_font unconditionally.
16555
16556 * font.h (FONT_ENTITY_NOT_LOADABLE)
16557 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16558 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16559 (struct font_driver): New member shape.
16560 (font_registry_charsets): Extern it.
16561 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16562 (font_otf_capability, font_drive_otf): Delete their externs.
16563
16564 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16565 (font_charset_alist, font_registry_charsets): Move from xfont.c
16566 and rename.
16567 (font_prop_validate_otf): New function.
16568 (font_property_table): Register it for QCotf.
16569 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16570 (font_drive_otf): Delete.
16571 (font_prepare_composition): New arg F. Adjust for the change of
16572 lispy gstring.
16573 (font_find_for_lface): New arg C.
16574 (font_load_for_face): Adjust for the change of font_find_for_lface.
16575 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16576 lispy gstring.
16577 (Ffont_shape_text): New function.
16578 (Fopen_font): If the font size is not given, use 12-pixel.
16579 (Ffont_at): New arg STRING.
16580 (syms_of_font): Initalize font_charset_alist.
16581 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16582 conditionally.
16583
16584 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16585 fonts of the same font-spec. Change the format of RFONT-DEF.
16586 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16587 Adjust for the change of RFONT-DEF.
16588 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16589
16590 * ftfont.h: New file.
16591
16592 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16593 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16594 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16595 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16596 font_otf_capability and font_drive_otf, set ftfont_shape.
16597 (ftfont_list): Adjust for the change of :otf property value.
16598 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16599 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16600 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16601 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16602 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16603 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16604
16605 * w32term.c (x_draw_composite_glyph_string_foreground):
16606 Adjust for the change of lispy gstring.
16607
16608 * xdisp.c (handle_composition_prop): Adjust for the change of
16609 lispy gstring. Call a function for auto-composition with the
16610 third arg it->window.
16611 (fill_composite_glyph_string): Adjust for the change of lispy string.
16612 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16613
16614 * xfaces.c (set_font_frame_param): Adjust for the change of
16615 font_find_for_lface.
16616
16617 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16618 (xfont_registry_charsets): Likewise. Change caller.
16619 (syms_of_xfont): Don't handle x_font_charset_alist.
16620
16621 * xftfont.c: Include "ftfont.h".
16622 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16623 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16624 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16625 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16626 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16627 Set xftfont_driver.shape to xftfont_shape.
16628
16629 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16630 the change of lispy gstring.
16631
166322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16633
16634 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16635
166362008-02-01 Jason Rumney <jasonr@gnu.org>
16637
16638 * w32font.c (w32font_draw): Fill background manually.
16639
166402008-02-01 Jason Rumney <jasonr@gnu.org>
16641
16642 * font.c (Qfontp): Remove unused symbol.
16643 (QCantialias): New symbol.
16644 (syms_of_font): Define it.
16645 (font_property_table): Set a validator for QCantialias.
16646
16647 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16648 Define if not already.
16649 (QCfamily): Share with xfaces.c.
16650 (Qstandard, Qsubpixel, Qnatural): New symbols.
16651 (syms_of_w32font): Define them. Don't define QCfamily here.
16652 (w32_antialias_type, lispy_antialias_type): New functions.
16653 (w32_enumfont_pattern_entity): New arg requested_font.
16654 Set antialias parameter if non-default was requested.
16655 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16656
166572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16658
16659 * lread.c (read1): Undo the previous change.
16660
166612008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16662
16663 * frame.c (Fdelete_frame): Call font_update_drivers only when
16664 USE_FONT_BACKEND is defined.
16665
166662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16667
16668 * font.h (struct font_bitmap): New member bits_per_pixel.
16669 (struct font_driver): New members start_for_frame and end_for_frame.
16670 (struct font_data_list): New struct.
16671 (font_put_frame_data, font_get_frame_data): Extern them.
16672
16673 * frame.h (struct frame): New member font_data_list.
16674
16675 * font.c (font_update_drivers): Call driver->start_for_frame and
16676 driver->end_for_frame at proper timings.
16677 (font_put_frame_data, font_get_frame_data): New functions.
16678 (Ffont_spec): Add usage in the docstring.
16679
16680 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16681 (Fdelete_frame): Call font_update_drivers.
16682
16683 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16684 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16685 (xftfont_get_xft_draw): New function.
16686 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16687 (xftfont_end_for_frame): New function.
16688 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16689
16690 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16691 Change argument. Cache GCs in the per-frame data.
16692 (struct ftxfont_frame_data): New struct.
16693 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16694 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16695 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16696 (ftxfont_end_for_frame): New function.
16697 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16698
16699 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16700
167012008-02-01 Kenichi Handa <handa@m17n.org>
16702
16703 * xselect.c (Vselection_coding_system)
16704 (Vnext_selection_coding_system): Delete them.
16705 (syms_of_xselect): Don't declare selection-coding-system and
16706 next-selection-coding-system. They are declared in select.el.
16707
167082008-02-01 Jason Rumney <jasonr@gnu.org>
16709
16710 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16711
16712 * w32fns.c: Include imm.h.
16713 (get_composition_string_fn, get_ime_context_fn): New optional
16714 system functions.
16715 (globals_of_w32fns): Load them from imm32.dll.
16716 (ignore_ime_char): New flag.
16717 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16718 WM_IME_ENDCOMPOSITION messages.
16719
16720 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16721 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16722
167232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16724
16725 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16726 (READCHAR_REPORT_MULTIBYTE): New macro.
16727 (readchar): New 2nd arg MULTIBYTE.
16728 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16729 Make symbol's name multibyte according to the multibyteness of the
16730 source.
16731
167322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16733
16734 * xfaces.c (face_for_overlay_string): Call lookup_face with
16735 correct arguments (fix of synching with the trunk).
16736
167372008-02-01 Kenichi Handa <handa@m17n.org>
16738
16739 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16740 (font_prop_validate_non_neg, font_prop_validate_spacing):
16741 Delete argument prop_index.
16742 (font_property_table): Change arguments to validater. Change Callers.
16743 (font_lispy_object): Delete.
16744 (font_at): Use font_find_object instead fo font_lispy_object.
16745
167462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16747
16748 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16749 and file names.
16750
167512008-02-01 Jason Rumney <jasonr@gnu.org>
16752
16753 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16754 (font_matches_spec): Remove debug output.
16755 (add_font_entity_to_list): Avoid using substituted fonts.
16756
167572008-02-01 Jason Rumney <jasonr@gnu.org>
16758
16759 * doc.c (Fsnarf_documentation):
16760 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16761
167622008-02-01 Miles Bader <miles@gnu.org>
16763
16764 * dispextern.h (struct glyph_row): Only define "clip" field if
16765 HAVE_WINDOW_SYSTEM is defined.
16766
167672008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16768
16769 Fix up multi-tty merge.
16770
16771 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16772 and indentation.
16773
16774 * xfaces.c (free_realized_face, clear_face_gcs):
16775 Include font_done_for_face in the input_blocked section, just in case.
16776
16777 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16778 (get_char_face_and_encoding): Undo last change and remove the *other*
16779 duplicate definition (i.e. keep the one that's better scoped and that
16780 includes code for the font-backend).
16781
16782 * terminal.c (create_terminal): Default keyboard_coding to
16783 `no-conversion' and terminal_coding to `undecided'.
16784
16785 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16786
16787 * fontset.c (free_realized_fontsets): Check that the table entry does
16788 contain a fontset before trying to compare it to `base'.
16789
16790 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16791 syms_of_charset, and syms_of_coding earlier because init_window_once
16792 now needs Vcoding_system_hash_table to be setup.
16793
16794 * coding.h (default_buffer_file_coding): Remove.
16795
16796 * coding.c (default_buffer_file_coding): Remove.
16797 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16798 than ->symbol, and use the terminal-local coding system.
16799 (syms_of_coding): Don't setup the coding-systems that are not
16800 terminal-local.
16801 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16802
16803 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16804 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16805
16806 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16807 in chartab.c and were re-added here by mistake.
16808 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16809
16810 * doc.c (Fsnarf_documentation):
16811 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16812 src to etc.
16813
16814 * ChangeLog.10: Add mistakenly removed entry.
16815
168162008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16817
16818 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16819
168202008-02-01 Miles Bader <miles@gnu.org>
16821
16822 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16823 Add extra args to FACE_FOR_CHAR.
16824
168252008-02-01 Kenichi Handa <handa@m17n.org>
16826
16827 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16828 in sequence.
16829
16830 * chartab.c (map_sub_char_table, map_char_table): If the range
16831 contains just one character, call the function with that character
16832 even if the depth is not 3.
16833
168342008-02-01 Jason Rumney <jasonr@gnu.org>
16835
16836 * w32font.c (w32font_text_extents): Calculate metrics for the
16837 whole string.
16838
168392008-02-01 Jason Rumney <jasonr@gnu.org>
16840
16841 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16842
168432008-02-01 Jason Rumney <jasonr@gnu.org>
16844
16845 * w32term.c (x_set_glyph_string_clipping): Use
16846 get_glyph_string_clip_rects.
16847 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16848 Adjust for the change of struct glyph_string.
16849
16850 * w32font.c (w32font_draw): Do clipping here.
16851
168522008-02-01 Kenichi Handa <handa@m17n.org>
16853
16854 * xftfont.c (xftfont_draw): Adjust for the change of struct
16855 glyph_string.
16856
16857 * xterm.c (x_set_glyph_string_clipping): Use
16858 get_glyph_string_clip_rects.
16859 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16860 Adjust for the change of struct glyph_string.
16861
16862 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16863 the resulting clip(s}.
16864 (expose_overlaps): Add arg r. Change callers. Set it to
16865 row->clip temporarily.
16866 (expose_window): Redraw rows overlapping the exposed area.
16867
16868 * dispextern.h (struct glyph_row): New member clip.
16869 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16870 clip_height, new member clip, and num_clips.
16871
168722008-02-01 Kenichi Handa <handa@m17n.org>
16873
16874 * data.c (Fchar_or_string_p): Fix docstring.
16875
168762008-02-01 Kenichi Handa <handa@m17n.org>
16877
16878 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16879 create a temporary XftDraw object.
16880
168812008-02-01 Kenichi Handa <handa@m17n.org>
16882
16883 * font.c (Ffontp): Fix docstring.
16884
16885 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16886 strong evidence of ISO-2022.
16887
168882008-02-01 Kenichi Handa <handa@m17n.org>
16889
16890 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16891 SYNTAX_ENTRY_FOLLOW_PARENT.
16892
168932008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16894
16895 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16896 its type.
16897 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16898 Update to the new type of weak_hash_tables and next_weak.
16899
16900 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16901 a plain C pointer to Lisp_Hash_Table.
16902
16903 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16904 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16905 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16906 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16907 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16908 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16909 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16910 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16911 (GC_EQ): Remove since they've been identical to their non-GC_
16912 alter-egos ever since the markbit was eradicated.
16913
16914 * alloc.c:
16915 * buffer.c:
16916 * buffer.h:
16917 * data.c:
16918 * fileio.c:
16919 * filelock.c:
16920 * fns.c:
16921 * frame.h:
16922 * lisp.h:
16923 * macterm.c:
16924 * print.c:
16925 * process.c:
16926 * w32fns.c:
16927 * w32menu.c:
16928 * w32term.c:
16929 * xfns.c:
16930 * xmenu.c:
16931 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16932
169332008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 * chartab.c (map_sub_char_table): Make it work for the top-level
16936 char-table. Fix handling of parent char-table.
16937 (map_char_table): Adjust for the above change.
16938
169392008-02-01 Jason Rumney <jasonr@gnu.org>
16940
16941 * w32font.c (Qgdi): Rename from Qw32.
16942
169432008-02-01 Jason Rumney <jasonr@gnu.org>
16944
16945 * w32bdf.c (get_quoted_string): Make function static.
16946
169472008-02-01 Kenichi Handa <handa@m17n.org>
16948
16949 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16950 bigger ascent and descent than those of the font, use them as
16951 font's ascent and descent.
16952
169532008-02-01 Kenichi Handa <handa@m17n.org>
16954
16955 * Makefile.in (${lispsource}international/charprop.el): Move this
16956 target within "#ifdef HAVE_UNIDATA" and "#endif".
16957
169582008-02-01 Kenichi Handa <handa@m17n.org>
16959
16960 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16961 (shortlisp): Add ../lisp/language/tai-viet.el.
16962
169632008-02-01 Ulrich Mueller <ulm@gentoo.org>
16964
16965 * Makefile.in (${lispsource}international/charprop.el): Depend on
16966 temacs${EXEEXT}.
16967
169682008-02-01 Jason Rumney <jasonr@gnu.org>
16969
16970 * w32font.c (w32font_close): Delete the GDI font object.
16971
16972 * w32menu.c: Include character.h.
16973
16974 * w32proc.c: Likewise.
16975
16976 * w32select.c: Likewise.
16977
16978 * makefile.w32-in (w32proc.o): Depend on character.h.
16979
169802008-02-01 Jason Rumney <jasonr@gnu.org>
16981
16982 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16983
16984 * w32menu.c (syms_of_w32menu): Likewise.
16985
16986 * w32proc.c (syms_of_ntproc): Likewise.
16987
16988 * w32select.c (syms_of_w32select): Likewise.
16989
16990 * w32term.c (syms_of_w32term): Likewise.
16991
169922008-02-01 Jason Rumney <jasonr@gnu.org>
16993
16994 * w32font.c (w32font_draw): Delete brush after using it.
16995
169962008-02-01 Jason Rumney <jasonr@gnu.org>
16997
16998 * w32font.c (w32font_open): Don't set font_idx.
16999 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17000 to font settings.
17001 (w32font_draw): Fill background explicitly.
17002
170032008-02-01 Jason Rumney <jasonr@gnu.org>
17004
17005 * w32term.c (w32_initialize): Don't call w32font_initialize.
17006
17007 * w32font.c (w32font_info): Remove subranges.
17008 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17009 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17010 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17011 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17012 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17013 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17014 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17015 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17016 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17017 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17018 New symbols.
17019 (font_callback_data): New struct.
17020 (w32font_list, w32font_match): Use it.
17021 (w32font_open): Don't populate subranges.
17022 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17023 (w32font_encode_char): Always return unicode code-point as-is.
17024 (w32font_text_extents): Supply a transformation matrix to
17025 GetGlyphOutline. Never look up by glyph index. Avoid looping
17026 twice. Use unicode version of GetTexExtentPoint32 instead of
17027 glyph index version.
17028 (set_fonts_frame): Remove.
17029 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17030 set frame parameter. Use backward compatible fake foundries.
17031 Save generic family in extra slot under QCfamily. Make width slot
17032 constant. Save QCspacing value. Save list of scripts instead of
17033 binary subranges.
17034 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17035 (add_font_entity_to_list): Use font_callback_data struct. Filter
17036 unwanted fonts.
17037 (add_one_font_entity_to_list): Use font_callback_data struct.
17038 (w32_registry): Default to iso10646_1.
17039 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17040 string font registries. Don't fill in font name if it is a generic
17041 family name, fill family instead. Use spacing, family and script
17042 extra info to fill pitch, family and charset fields.
17043 (list_all_matching_fonts): Use font_callback_data struct.
17044 (unicode_range_for_char): Remove.
17045 (font_supported_scripts): New function.
17046 (w32font_initialize): Remove.
17047 (syms_of_w32font): Update which symbols are defined.
17048
170492008-02-01 Jason Rumney <jasonr@gnu.org>
17050
17051 * font.c (font_pixel_size): Reverse assq_no_quit args.
17052
17053 * w32term.h (FONT_WIDTH): Report max width, not average.
17054 (FONT_MAX_WIDTH): Remove.
17055 (FONT_AVG_WIDTH): New macro.
17056
17057 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17058 redefinition of FONT_WIDTH.
17059
17060 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17061 (w32_cache_char_metrics): Use FONT_WIDTH.
17062
17063 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17064
170652008-02-01 Jason Rumney <jasonr@gnu.org>
17066
17067 * w32font.c (w32font_open): Make lfHeight negative.
17068
17069 * w32fns.c (x_default_font_parameter): Use new style font name.
17070 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17071
170722008-02-01 Jason Rumney <jasonr@gnu.org>
17073
17074 * w32font.c (QCsubranges): New symbol.
17075 (w32font_open, w32font_has_char): Get subranges from subproperty
17076 of extra.
17077 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17078 (syms_of_w32font): Define :subranges symbol.
17079
17080 * font.c (font_put_extra): Expose externally.
17081
17082 * font.h (font_put_extra): Move declaration from font.c.
17083
17084 * font.c (Ffont_get): Use font driver to determine otf capability.
17085 (adjust_anchor): Check if driver defines anchor_point before using.
17086
17087 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17088 (w32font_draw): Use options.
17089 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17090 Fix detection of truetype fonts.
17091 (registry_to_w32_charset): Handle charsets other than iso8859-1
17092 expressed as lisp symbols.
17093 (w32_registry): Express charset as lisp symbol.
17094 (fill_in_logfont): Reverse pixel and point height logic.
17095 Don't set width here. Set quality to default.
17096
17097 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17098 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17099
17100 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17101 Remove redundant loop and allocation.
17102
17103 * makefile.w32-in (font.o, w32font.o): New objects.
17104 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17105 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17106
17107 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17108 STORE_XCHARB a valid l-value.
17109
17110 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17111 calculations for non-Truetype fonts.
17112 (x_draw_glyph_string): Sync with xterm.c.
17113 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17114 Remove redundant code.
17115 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17116
17117 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17118 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17119
17120 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17121 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17122
17123 * w32font.c: New file for w32 font backend.
17124
171252008-02-01 Kenichi Handa <handa@m17n.org>
17126
17127 * term.c: Don't include "buffer.h" twice.
17128
171292008-02-01 Kenichi Handa <handa@m17n.org>
17130
17131 * character.c (Funibyte_string): New function.
17132 (syms_of_character): Defsubr it.
17133
171342008-02-01 Jason Rumney <jasonr@gnu.org>
17135
17136 * w32term.c [USE_FONT_BACKEND]:
17137 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17138 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17139 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17140 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17141 (x_free_frame_resources): Sync with xterm.c.
17142
171432008-02-01 Andreas Schwab <schwab@suse.de>
17144
17145 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17146 char-table size.
17147
171482008-02-01 Kenichi Handa <handa@m17n.org>
17149
17150 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17151
171522008-02-01 Kenichi Handa <handa@m17n.org>
17153
17154 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17155 font_otf_gpos, add font_drive_otf.
17156
17157 * fontset.c (fontset_find_font): Pay attention to font size
17158 specified for a font.
17159 (reorder_font_vector): Check contents of font_def.
17160
17161 * font.c (struct otf_list): Delete it.
17162 (otf_list): Make it a lisp variable.
17163 (otf_open): Use lispy otf_list.
17164 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17165 (check_otf_features): New function.
17166 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17167 New functions.
17168 (font_drive_otf): New function merging font_otf_gsub and
17169 font_otf_gpos.
17170 (font_open_for_lface): New arg spec. Change argument order.
17171 (font_load_for_face): Adjust for the change of font_open_for_lface.
17172 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17173 Ffont_otf_gpos.
17174 (syms_of_font): Staticpro otf_list. Delete defsubr of
17175 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17176
17177 * xfaces.c (set_font_frame_param): Adjust for the change of
17178 font_open_for_lface.
17179
17180 * font.h (font_open_for_lface): Adjust prototype.
17181 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17182 member otf_drive.
17183 (font_otf_gsub, font_otf_gpos): Delete externs.
17184 (font_drive_otf): Extern it.
17185
171862008-02-01 Kenichi Handa <handa@m17n.org>
17187
17188 * font.c (font_at): If the window W is not on a window system,
17189 return Qnil.
17190
17191 * coding.c (produce_chars, encode_coding): Don't call
17192 insert_from_gap if no characters to produce.
17193
171942008-02-01 Kenichi Handa <handa@m17n.org>
17195
17196 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17197 Fclear_face_cache.
17198
17199 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17200
172012008-02-01 Miles Bader <miles@gnu.org>
17202
17203 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17204 Parse "--disable-font-backend" option.
17205 (standard_args): Add "--disable-font-backend" option.
17206
172072008-02-01 Kenichi Handa <handa@m17n.org>
17208
17209 * fontset.c (fontset_find_font): New function.
17210 (fontset_font): Use fontset_find_font.
17211 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17212 Register the specified font for all Latin characters.
17213 (new_fontset_from_font): Register the specified font for all Latin
17214 characters.
17215 (dump_fontset): For a realized fontset, include the base fontset
17216 name in the returned vector.
17217
172182008-02-01 Kenichi Handa <handa@m17n.org>
17219
17220 * character.h (CHAR_STRING): Cast C to unsigned on calling
17221 char_string.
17222
17223 * character.c (char_string): Type of arg C changed to unsigned.
17224 Signal an error if C is an invalid character code.
17225
17226 * editfns.c (general_insert_function, Fchar_to_string):
17227 Use CHARACTERP, not INTEGERP.
17228
172292008-02-01 Kenichi Handa <handa@m17n.org>
17230
17231 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17232 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17233
17234 * regex.c (analyse_first): Fix for multibyte characters in "case
17235 charset:" and "case categoryspec:".
17236
172372008-02-01 Andreas Schwab <schwab@suse.de>
17238
17239 * Makefile.in (LIBES): Move standard libraries to the end.
17240
172412008-02-01 Kenichi Handa <handa@m17n.org>
17242
17243 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17244 nonzero, don't shrink the buffer nextb.
17245
17246 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17247
17248 * coding.c (coding_alloc_by_making_gap): New arg offset.
17249 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17250 offset.
17251 (decode_coding_iso_2022): Update coding->safe_charsets.
17252 (decode_coding_gap): Temporarily set
17253 current_buffer->text->inhibit_shrinking to 1.
17254
172552008-02-01 Kenichi Handa <handa@m17n.org>
17256
17257 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17258 indexing into elements of s->cmp and s->char2b.
17259
172602008-02-01 Juanma Barranquero <lekktu@gmail.com>
17261
17262 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17263
172642008-02-01 Kenichi Handa <handa@m17n.org>
17265
17266 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17267 target_multibyte instead of multibyte.
17268 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17269 (bcmp_translate): Change the argument name from multibyte to
17270 target_multibyte.
17271
172722008-02-01 Kenichi Handa <handa@m17n.org>
17273
17274 These changes are to compile a regexp into a pattern that can be
17275 used both for multibyte and unibyte targets.
17276
17277 * Makefile.in (search.o): Depend on charset.h.
17278
17279 * character.c (multibyte_char_to_unibyte_safe): New function.
17280
17281 * search.c: Include "charset.h".
17282 (compile_pattern_1): Delete argument multibyte. Don't set
17283 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17284 (compile_pattern): Don't compare cp->buf.target_multibyte.
17285 Compare cp->buf.charset_unibyte.
17286 (compile_pattern): Set cp->buf.target_multibyte.
17287
17288 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17289
17290 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17291
17292 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17293 multibyte. Change callers.
17294 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17295 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17296 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17297 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17298 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17299 (regex_compile): Make the compiled pattern usable both for
17300 multibyte and unibyte targets.
17301 (analyse_first): Make the fastmap usable both for multibyte and
17302 unibyte targets.
17303 (TRANSLATE_VIA_MULTIBYTE): Delete.
17304 (re_match_2_internal): Pay attention to the case that the
17305 multibyteness of bufp and target may be different.
17306
173072008-02-01 Kenichi Handa <handa@m17n.org>
17308
17309 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17310 empty box occupy at least one column width.
17311
173122008-02-01 Miles Bader <miles@gnu.org>
17313
17314 * Makefile.in: Remove redundant HAVE_XFT clause.
17315
173162008-02-01 Kenichi Handa <handa@m17n.org>
17317
17318 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17319
173202008-02-01 Kenichi Handa <handa@m17n.org>
17321
17322 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17323 being nil.
17324
173252008-02-01 Kenichi Handa <handa@m17n.org>
17326
17327 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17328
173292008-02-01 Kenichi Handa <handa@m17n.org>
17330
17331 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17332
173332008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * search.c (simple_search): Fix previous change.
17336
173372008-02-01 Kenichi Handa <handa@m17n.org>
17338
17339 * xftfont.c (ftfont_font_format): Extern declaration.
17340
17341 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17342
17343 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17344 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17345
17346 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17347 (ftfont_font_format): Fix previous change.
17348
17349 * font.h (Ffont_xlfd_name): EXFUN it.
17350
17351 * font.c (font_parse_xlfd): Fix the array size of `f'.
17352 (register_font_driver): Use EQ to compare driver->type.
17353
17354 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17355 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17356 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17357
173582008-02-01 Kenichi Handa <handa@m17n.org>
17359
17360 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17361 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17362
173632008-02-01 Kenichi Handa <handa@m17n.org>
17364
17365 * xfont.c (xfont_open): Set font->format.
17366
17367 * xftfont.c (xftfont_open): Set font->format.
17368
17369 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17370 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17371 (ftfont_open): Set font->format.
17372 (ftfont_font_format): New function.
17373
17374 * font.h (struct font): New member format.
17375
17376 * font.c (Qopentype): New variable.
17377 (syms_of_font): Defsym it.
17378 (Fquery_font): Change the format of the last element of the return
17379 value.
17380
173812008-02-01 Kenichi Handa <handa@m17n.org>
17382
17383 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17384 last resort.
17385
173862008-02-01 Kenichi Handa <handa@m17n.org>
17387
17388 * coding.c (detect_coding_charset): Fix detection of multi-byte
17389 charset.
17390
173912008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17392
17393 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17394
173952008-02-01 Kenichi Handa <handa@m17n.org>
17396
17397 * xdisp.c (get_next_display_element): Set it->face_id for the
17398 first component of a composition.
17399 (x_produce_glyphs): Check if the font is changed or not for composition.
17400
174012008-02-01 Kenichi Handa <handa@m17n.org>
17402
17403 * fontset.c (Qlatin): New variable.
17404 (syms_of_fontset): Define it as a lisp symbol.
17405 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17406
174072008-02-01 Kenichi Handa <handa@m17n.org>
17408
17409 * font.c (font_unparse_fcname): Pay attention to the case that
17410 some of font property is a null string.
17411
174122008-02-01 Kenichi Handa <handa@m17n.org>
17413
17414 * term.c: Include "composite.h".
17415 (encode_terminal_code): Output all components of composition.
17416 Check the size of encode_terminal_src.
17417 (produce_glyphs): For composition, call produce_composite_glyph.
17418 (append_composite_glyph, produce_composite_glyph): New functions.
17419
17420 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17421 is not found, get font_info from the current ascii face.
17422
174232008-02-01 Kenichi Handa <handa@m17n.org>
17424
17425 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17426 buffer-file-name to Qnil before calling insert_from_buffer.
17427
17428 * font.c (font_unparse_fcname): Pay attention to the case that
17429 foundry is a null string.
17430
174312008-02-01 Kenichi Handa <handa@m17n.org>
17432
17433 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17434
17435 * font.c (Qunicode_sip): New variable.
17436 (syms_of_font): Declare it as a Lisp symbol.
17437
17438 * font.h (Qunicode_sip): Extern it.
17439
174402008-02-01 Kenichi Handa <handa@m17n.org>
17441
17442 * composite.c (get_composition_id): Pay attention to TAB component.
17443
17444 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17445 TAB. Adjust for the change of s->char2b which always points to
17446 the first element of allocated memory.
17447
17448 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17449
17450 * xdisp.c (handle_composition_prop): Set it->c to the first
17451 non-TAB component.
17452 (fill_composite_glyph_string): Change argument.
17453 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17454 (x_produce_glyphs): Fix handling of left/right padding.
17455
174562008-02-01 Kenichi Handa <handa@m17n.org>
17457
17458 * coding.c (detect_coding_system): Fix for handling off
17459 inhibit_iso_escape_detection. Fix for the case that no coding
17460 system is defined for a specific coding category.
17461
174622008-02-01 Kenichi Handa <handa@m17n.org>
17463
17464 * font.c (font_matching_entity): Delete unused local var.
17465
17466 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17467 opening a font.
17468
17469 * fileio.c (Finsert_file_contents): On recovering a file, assume
17470 Unix-like eol.
17471 (choose_write_coding_system): On auto-saving a file, force
17472 Unix-like eol.
17473
17474 * coding.c (setup_coding_system): Fix setting of
17475 coding->common_flags based on eol_type.
17476 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17477 inherit from it.
17478
174792008-02-01 Kenichi Handa <handa@m17n.org>
17480
17481 * alloc.c (NSTATICS): Increas to 0x600.
17482
174832008-02-01 Kenichi Handa <handa@m17n.org>
17484
17485 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17486 (ftfont_list): Don't check :name property.
17487 (ftfont_match): New function.
17488 (ftfont_pattern_entity): If the pattern doesn't contain
17489 FC_SPACING, don't assume FC_MONO.
17490
17491 * font.h (struct font_driver): New member `match'.
17492 (font_update_drivers): Adjust prototype.
17493
17494 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17495 property of FONT.
17496 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17497 them unconditionally.
17498 (font_matching_entity): New function.
17499 (font_open_by_name): Try font_matching_entity if exact match is
17500 not found.
17501 (font_update_drivers): Delete the arg FONT. Return a list of
17502 actually used backends. Don't free faces, font caches here.
17503 Don't store data in frame parameters. Don't call x_set_font.
17504 (Ffont_spec): Store :name property as is.
17505 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17506 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17507 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17508 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17509 Call font->driver->otf_gsub instead of font_otf_gsub.
17510
17511 * frame.c (x_set_font_backend): Do more works that were done in
17512 font_update_drivers before.
17513
17514 * xfont.c (xfont_match): New function.
17515 (xfont_driver): Set xfont_driver.match to xfont_match.
17516 (xfont_draw): Set font in GC if necessary.
17517
17518 * ftxfont.c (ftxfont_match): New function.
17519 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17520
17521 * xftfont.c (xftfont_match): New function.
17522 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17523
175242008-02-01 Kenichi Handa <handa@m17n.org>
17525
17526 * font.h (struct font): New member scalable.
17527 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17528 (font_otf_gsub): Adjust prototype.
17529
17530 * font.c (font_otf_capability): Fix handling of the default langsys.
17531 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17532 Check the contents of SPEC.
17533 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17534 (check_gstring): New function.
17535 (REPLACEMENT_CHARACTER): New macro.
17536 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17537 glyph codes of GSTRING.
17538 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17539 (font_prepare_composition): Set cmp->glyph_len.
17540 (font_open_entity): Set font->scalable.
17541 (Ffont_get): Handle :otf property.
17542 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17543 functions.
17544 (Fquery_font): Use font->font.full_name.
17545 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17546 Sfont_otf_alternates.
17547
17548 * ftfont.c (ftfont_open): Set font->font.full_name and
17549 font->font.name properly. Fix calculation of font->font.height
17550 and font->min_width.
17551
17552 * ftxfont.c (ftxfont_create_gcs): New function.
17553 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17554 (ftxfont_draw_backgrond): Fix filling region.
17555 (ftxfont_default_fid): New function.
17556 (ftxfont_open): Set xfont->fid to the return value of
17557 ftxfont_default_fid.
17558 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17559 (ftxfont_done_face): Free only GCs that are created by
17560 ftxfont_create_gcs.
17561 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17562
17563 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17564 Clip to src->width, etc (not src->clip_XXX).
17565
17566 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17567 FontBackend frame parameter.
17568
175692008-02-01 Kenichi Handa <handa@m17n.org>
17570
17571 * font.h (struct font_driver_list): New member `on'.
17572 (Fclear_font_cache): EXFUN it.
17573 (font_update_drivers): Extern it.
17574
17575 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17576 (font_list_entities): Check driver_list->on.
17577 (register_font_driver): Initalize `on' member to 0.
17578 (font_update_drivers): New function.
17579 (Fclear_font_cache): Check driver_list->on.
17580
17581 * frame.h (Qfont_backend): Extern it.
17582 (x_set_font_backend): Extern it.
17583
17584 * frame.c (Qfont_backend): New variable.
17585 (frame_parms): New element for font-backend.
17586 (x_set_font_backend): New function.
17587
17588 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17589 FontBackend frame parameter.
17590 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17591 x_set_font_backend.
17592
17593 * xfont.c (xfont_list): Don't try listing by :name property if the
17594 name is not for XLFD.
17595
175962008-02-01 Kenichi Handa <handa@m17n.org>
17597
17598 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17599 (LGLYPH_SET_TO): New macros.
17600 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17601 element of G is vector or not.
17602 (font_at): Extern it.
17603
17604 * font.c: Include window.h.
17605 (font_lispy_object): New function.
17606 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17607 end of valid glyph.
17608 (font_close_object): Fix getting (struct font *).
17609 (font_at): New function.
17610 (Ffont_get): If FONT is a font-object, get entity from it.
17611 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17612 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17613 range check.
17614 (Ffont_at): New function.
17615 (syms_of_font): Defsubr Sfont_at.
17616
17617 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17618 before the entry for Qcomposition.
17619 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17620 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17621 the font in gstring.
17622 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17623 LGLYPH_FORM (g) to detect the end of valid glyph.
17624 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17625 we are composing with gstring.
17626
17627 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17628 Check if adjustment is vector or not.
17629
17630 * Makefile.in (font.o): Make it depends on window.h.
17631
176322008-02-01 Kenichi Handa <handa@m17n.org>
17633
17634 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17635 adjustment is vector or not.
17636
176372008-02-01 Miles Bader <miles@gnu.org>
17638
17639 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17640
176412008-02-01 Kenichi Handa <handa@m17n.org>
17642
17643 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17644 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17645 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17646
17647 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17648 (DEVICE_DELTA): Fix typo.
17649 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17650 LGLYPH format.
17651
17652 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17653 the change of LGLYPH format.
17654
176552008-02-01 Kenichi Handa <handa@m17n.org>
17656
17657 * ftfont.c (ftfont_list): Fix typo.
17658 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17659
176602008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17661
17662 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17663
17664 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17665 xftface_info is non-NULL.
17666
176672008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17668
17669 * ftfont.c (ftfont_list): Move misplaced #endif.
17670
176712008-02-01 Kenichi Handa <handa@m17n.org>
17672
17673 * ftfont.c (ftfont_list): Pay attention to the case that
17674 FC_CAPABILITY is not defined.
17675
176762008-02-01 Kenichi Handa <handa@m17n.org>
17677
17678 * xftfont.c (xftfont_open): Set charset related members to -1.
17679
17680 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17681 QCname.
17682 (ftfont_open): Set charset related members to -1.
17683
17684 * fontset.c (Votf_script_alist): New variable.
17685 (syms_of_fontset): Initialize it.
17686 (fontset_font): Delete unused variable.
17687
17688 * fontset.h (Votf_script_alist): Extern it.
17689
17690 * font.c (font_find_for_lface): Optimize code.
17691
17692 * font.h (font_close_object, font_merge_old_spec): Extern them.
17693
176942008-02-01 Kenichi Handa <handa@m17n.org>
17695
17696 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17697 (syms_of_font): Initialize them.
17698 (font_pixel_size): Allow float value in dpi.
17699 (font_prop_validate_type): Delete.
17700 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17701 Change caller.
17702 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17703 (font_prop_validate_extra): Delete.
17704 (font_prop_validate_spacing): New function.
17705 (font_property_table): Add elements for all known properties.
17706 (get_font_prop_index): Rename from check_font_prop_name. New
17707 argument FROM. Change caller.
17708 (font_prop_validate): Validate all known properties.
17709 (font_put_extra): Delete argument force. Change caller.
17710 (font_expand_wildcards): Make it static. Fix the way of shrinking
17711 the possible range.
17712 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17713 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17714 Change caller.
17715 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17716 (font_parse_fcname): Delete argument merge. Fix parsing of point
17717 size. Don't validate properties values here. Change caller.
17718 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17719 (font_open_by_name): Delete unused variable.
17720 (Ffont_spec): Likewise. Validate property values.
17721 (Ffont_match_p): New function.
17722
17723 * font.h (QCscalable): Extern it.
17724 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17725
17726 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17727
17728 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17729 (xfont_list_pattern): New function.
17730 (xfont_list): Use xfont_list_pattern.
17731
177322008-02-01 Kenichi Handa <handa@m17n.org>
17733
17734 * font.h (Flist_fonts): EXFUN it.
17735
177362008-02-01 Jason Rumney <jasonr@gnu.org>
17737
17738 * w32term.c (w32_initialize): Add back smoothing_type and
17739 smoothing_enabled definitions.
17740
177412008-02-01 Kenichi Handa <handa@m17n.org>
17742
17743 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17744 s->face->font on determining underline position.
17745
177462008-02-01 Kenichi Handa <handa@m17n.org>
17747
17748 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17749 (font_has_char): Accept font-object too.
17750 (font_find_for_lface): Try at first with a size specified in face.
17751
177522008-02-01 Kenichi Handa <handa@m17n.org>
17753
17754 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17755 font_open_by_name.
17756
177572008-02-01 Kenichi Handa <handa@m17n.org>
17758
17759 * font.h (QCspacing, QCdpi): Extern them.
17760 (enum font_spacing): New enum.
17761 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17762
17763 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17764 (QCspacing, QCdpi): New variables.
17765 (syms_of_font): Initialize them.
17766 (font_pixel_size): New function.
17767 (font_put_extra): New function.
17768 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17769 in FONT_EXTRA.
17770 (font_parse_fcname): Handle enumerated values (e.g. bold).
17771 Fix handling font size. Add QCname property that contains only
17772 unknown properties.
17773 (font_score): Change argument. Change caller. Pay attention to
17774 FONT_PIXEL_SIZE_QUANTUM.
17775 (font_sort_entites, font_list_entities, font_find_for_lface)
17776 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17777 (Ffont_spec): Add QCname property that contains only unknown properties.
17778
17779 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17780 include weight in listing pattern, instead check weight of each
17781 listed font. Don't include scalable in pattern. Pay attention to
17782 FONT_PIXEL_SIZE_QUANTUM.
17783
177842008-02-01 Kenichi Handa <handa@m17n.org>
17785
17786 * font.c (font_parse_fcname): Fix parsing of point-size.
17787 (font_unparse_fcname): Produce symbolic names for style properties.
17788 (font_list_entities): Handle float size correctly.
17789 (font_open_by_name): Prefer `normal' property values if the name
17790 doesn't specify them.
17791
17792 * fontset.c (Finternal_char_font): Use font_get_name, not
17793 Ffont_xlfd_name.
17794
17795 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17796 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17797 pattern. Don't force scalable.
17798
17799 * xftfont.c (xftfont_open): For generating a name, start from
17800 96-byte buffer.
17801
178022008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17803
17804 * frame.h (x_new_fontset2): Fix prototype.
17805
178062008-02-01 Kenichi Handa <handa@m17n.org>
17807
17808 * font.h (struct font_driver): Delete member parse_name.
17809 (font_match_p, font_get_spec, font_parse_fcname)
17810 (font_unparse_fcname): Extern them.
17811 (font_get_name): Adjust prototype.
17812
17813 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17814 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17815 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17816 unnecessary checks for weight, slant, and swidth.
17817 (font_parse_fcname): New function.
17818 (font_unparse_fcname): New function.
17819 (font_parse_name): New function.
17820 (font_match_p): New function.
17821 (font_get_name): Change return value to Lisp string.
17822 (font_get_spec): New function.
17823 (Qunspecified, Qignore_defface): Don't extern them.
17824 (font_find_for_lface): Assume that LFACE is fully specified.
17825 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17826 object, use it for FACE.
17827 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17828 driver->parse_name.
17829 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17830
17831 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17832 prototype.
17833
17834 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17835 argument F. Don't call Fnew_fontset. Instead, directly call
17836 make_fontset.
17837
17838 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17839
17840 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17841 of x_new_fontset2.
17842
17843 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17844 (Qsans__serif): New variables.
17845 (ftfont_generic_family_list): New variable.
17846 (syms_of_ftfont): Initialize the above variables.
17847 (ftfont_pattern_entity): Delete argument NAME.
17848 (ftfont_list_generic_family): New function.
17849 (ftfont_parse_name): Delete this function.
17850 (ftfont_list): Try generic family only when FcFontList found no font.
17851 (ftfont_list_family): Fix args to FcObjectSetBuild.
17852
17853 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17854 object in attrs[LFACE_FONT_INDEX].
17855 (set_lface_from_font_name): Cancel all changes for font-backend.
17856 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17857 function.
17858 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17859 font object in QCfont attribute.
17860 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17861 (realize_default_face) [USE_FONT_BACKEND]: Call
17862 set_lface_from_font_and_fontset.
17863
17864 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17865 "fixed", and signal error here if no suitable font was found.
17866
17867 * xfont.c (xfont_parse_name): Delete this function.
17868
17869 * xftfont.c (xftfont_open): Change coding style of error
17870 handling. Generate fontconfig's fontname pattern.
17871
17872 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17873 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17874
17875 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17876 Both args FONTSET and FONT_OBJECT must be existing ones.
17877
178782008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17879
17880 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17881
178822008-02-01 Kenichi Handa <handa@m17n.org>
17883
17884 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17885
17886 * font.h (struct font): Fix typo.
17887
17888 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17889 XLFD_XXX_INDEX.
17890 (enum xlfd_field_mask): New enum.
17891 (intern_font_field): Changed argument. Change caller. If digits
17892 are followed by non-digits, return a symbol.
17893 (font_expand_wildcards): New function.
17894 (font_parse_xlfd): Fix wildcard handling.
17895 (Ffont_spec): If :name is specified, reflect the info in the other
17896 properties.
17897
17898 * ftfont.c (ftfont_pattern_entity): Fix typo.
17899 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17900 locale.
17901
179022008-02-01 Kenichi Handa <handa@m17n.org>
17903
17904 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17905
17906 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17907 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17908 registry doesn't specify encoding part.
17909 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17910 (font_open_by_name): At first try parsing the name.
17911 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17912 as Lisp symbols.
17913
17914 * fontset.c (reorder_font_vector): Pay attention to the case that
17915 the 3rd element of font_def is nil.
17916 (fontset_font): For the default fontset, append one more fontset
17917 elements for a script-based font specification. Don't add script
17918 attribute on finding a font.
17919 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17920 font name.
17921 (fontset_ascii_font): If a font can't be opened, return nil.
17922
17923 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17924 (ftfont_pattern_entity): New function.
17925 (ftfont_get_cache): Assume that freetype_font_cache is already
17926 initialized.
17927 (ftfont_list): Handle the case that a file is specified in font
17928 name. Use ftfont_pattern_entity to generate entities.
17929 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17930 (syms_of_ftfont): Initialize freetype_font_cache.
17931
17932 * xftfont.c (xftfont_open): Make the font name fontconfig's
17933 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17934 (xftfont_close): Free font->font.name if not NULL.
17935
17936 * xfont.c (xfont_list): If script is specified for a font, return
17937 null_vector.
17938 (xfont_list_family): Declare argument type.
17939
17940 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17941 name, set LFACE_FONT (lface) to nil.
17942
17943 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17944 return Qnil.
17945
179462008-02-01 Kenichi Handa <handa@m17n.org>
17947
17948 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17949 (standard_args): Add "-enable-font-backend".
17950
179512008-02-01 Kenichi Handa <handa@m17n.org>
17952
17953 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17954 (struct xftdraw_list, xftdraw_list): Delete them.
17955 (register_xftdraw, check_xftdraw): Delete them.
17956 (xftfont_prepare_face): Don't call register_xftdraw.
17957 (xftfont_done_face): Don't call check_xftdraw.
17958 (xftfont_draw): Get background color only when with_background is
17959 nonzero.
17960
17961 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17962
179632008-02-01 Kenichi Handa <handa@m17n.org>
17964
17965 These changes are for the new font handling codes.
17966
17967 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17968 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17969 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17970 (FONTSRC, FONTOBJ): New variables.
17971 (obj): Add $(FONTOBJ).
17972 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17973 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17974 @LIBOTF_LIBS@.
17975 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17976 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17977
17978 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17979
17980 * character.h (Vscript_representative_chars): Extern it.
17981
17982 * character.c (Vscript_representative_chars): New variable.
17983 (syms_of_character): Declare it as a Lisp variable.
17984
17985 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17986 enable_font_backend is nonzero, accept the composition method
17987 COMPOSITION_WITH_GLYPH_STRING.
17988
17989 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17990 enumeration COMPOSITION_WITH_GLYPH_STRING.
17991
17992 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17993 members clip_x, clip_y, clip_width, and clip_height.
17994 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17995
17996 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17997 --enable-font-backend. Call syms_of_font.
17998
17999 * fns.c (assoc_no_quit): New function.
18000
18001 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18002 (face_for_font, new_fontset_from_font)
18003 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18004
18005 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18006 (fontset_font, fontset_ascii, face_for_char)
18007 (make_fontset_for_ascii_face, Ffont_info)
18008 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18009 is nonzero, use font-backend mechanism.
18010 (find_font_encoding): Make it non-static.
18011 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18012 New functions.
18013
18014 * frame.h (struct frame): New members resx and resy.
18015 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18016 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18017
18018 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18019 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18020
18021 * lisp.h (assoc_no_quit): Extern it.
18022
18023 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18024 Through out the file, use FONT_INFO_FROM_FACE instead of
18025 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18026 rif->per_char_metric.
18027 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18028 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18029 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18030 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18031 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18032 nonzero, use font-backend mechanism.
18033 (get_per_char_metric): New function.
18034
18035 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18036 (set_lface_from_font_name)
18037 (set_font_frame_param, free_realized_face)
18038 (prepare_face_for_display, clear_face_gcs)
18039 (Finternal_set_font_selection_order, realize_x_face)
18040 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18041 font-backend mechanism.
18042 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18043 (load_face_font) [USE_FONT_BACKEND]: Abort.
18044 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18045 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18046
18047 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18048 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18049 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18050 nonzero, register all available font drivers. Call
18051 x_default_font_parameter for deciding a font.
18052 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18053
18054 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18055 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18056 (x_set_glyph_string_clipping_exactly)
18057 (x_compute_glyph_string_overhangs)
18058 (x_draw_glyph_string_foreground)
18059 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18060 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18061 enable_font_backend is nonzero, use font-backend mechanism.
18062 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18063
180642008-02-01 Kenichi Handa <handa@m17n.org>
18065
18066 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18067 system_eol_type.
18068 (syms_of_coding): Initialize system_eol_type.
18069
18070 * process.c (Fset_process_coding_system): Inherit system's eol
18071 format if necessary.
18072
180732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18074
18075 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18076
180772008-02-01 Kenichi Handa <handa@m17n.org>
18078
18079 * coding.c (decode_eol): Pay attention to buffer relocation in
18080 del_range_2.
18081 (decode_coding): Call decode_eol before restoring undo_list.
18082
180832008-02-01 Kenichi Handa <handa@m17n.org>
18084
18085 * charset.c (Fdefine_charset_internal): Fix setting of
18086 emacs_mule_bytes.
18087
180882008-02-01 Kenichi Handa <handa@m17n.org>
18089
18090 * keyboard.c (read_char): Check if C is a character or not before
18091 looking up Vkeyboard_translate_table.
18092
180932008-02-01 Kenichi Handa <handa@m17n.org>
18094
18095 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18096 condition to terminate the loop.
18097
180982008-02-01 Kenichi Handa <handa@m17n.org>
18099
18100 * coding.c (produce_composition): Compare charbuf[i] instead of
18101 args[i] against 0.
18102 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18103
181042008-02-01 Kenichi Handa <handa@m17n.org>
18105
18106 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18107 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18108 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18109 detect_coding.
18110 (emacs_mule_char): Handle old style (Emacs 20) component character
18111 of a composition.
18112 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18113 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18114 composition rule.
18115 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18116
181172008-02-01 Kenichi Handa <handa@m17n.org>
18118
18119 * coding.c (encode_coding_ccl): Allocate destination dynamically
18120 when necessary.
18121
181222008-02-01 Kenichi Handa <handa@m17n.org>
18123
18124 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18125 the loop. When quitted, show a proper error message.
18126
181272008-02-01 Kenichi Handa <handa@m17n.org>
18128
18129 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18130 src->clip_head and src->clip_tail temporarily instead of src->hl.
18131
18132 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18133 character sequence.
18134 (Fccl_execute_on_string): Use ASET, not XSET.
18135
181362008-02-01 Kenichi Handa <handa@m17n.org>
18137
18138 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18139
181402008-02-01 Kenichi Handa <handa@m17n.org>
18141
18142 * coding.c (decode_coding): Fix the condition of terminating the
18143 decoding loop.
18144
181452008-02-01 Kenichi Handa <handa@m17n.org>
18146
18147 * data.c (Faset): On setting a character bigger than 255 in a
18148 unibyte string, signal an error instead of make the string multibyte.
18149
181502008-02-01 Kenichi Handa <handa@m17n.org>
18151
18152 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18153 made by a mapping table.
18154
181552008-02-01 Kenichi Handa <handa@m17n.org>
18156
18157 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18158 not.
18159 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18160 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18161
18162 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18163 s->face is NULL or not.
18164
181652008-02-01 Kenichi Handa <handa@m17n.org>
18166
18167 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18168 (x_draw_glyph_string): Fix drawing of right_overhang and
18169 left_overhang around/on cursor.
18170
18171 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18172
181732008-02-01 Kenichi Handa <handa@m17n.org>
18174
18175 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18176
181772008-02-01 Kenichi Handa <handa@m17n.org>
18178
18179 * coding.c (Fdefine_coding_system_internal)
18180 (Fdefine_coding_system_alias): Avoid a duplicated element in
18181 Vcoding_system_alist.
18182
181832008-02-01 Kenichi Handa <handa@m17n.org>
18184
18185 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18186
18187 * coding.c (Qcoding_system_define_form): New variable.
18188 (syms_of_coding): Intern and staticpro it.
18189 (Fcoding_system_p): Check Qcoding_system_define_form.
18190 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18191
18192 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18193 Fcoding_system_p.
18194 (CHECK_CODING_SYSTEM): If ID is not available, call
18195 Fcheck_coding_system.
18196 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18197 Try also Fcheck_coding_system.
18198
181992008-02-01 Kenichi Handa <handa@m17n.org>
18200
18201 * coding.c (code_conversion_restore): GCPRO arg.
18202
182032008-02-01 Kenichi Handa <handa@m17n.org>
18204
18205 * character.c (lisp_string_width): Check multibyteness of STRING.
18206
182072008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18208
18209 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18210 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18211 (decode_mac_font_name): Use decode_coding_c_string instead of
18212 decode_coding.
18213 (x_load_font): Initialize fontp->fontset to -1. Set
18214 fontp->encoding_type.
18215
182162008-02-01 Kenichi Handa <handa@m17n.org>
18217
18218 * search.c (search_buffer): Give up BM search on case-fold-search
18219 if one of a target character has a case-equivalence of different
18220 byte length even if that target charcter is an ASCII.
18221 (simple_search): Fix calculation of byte length of matched text.
18222 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18223
182242008-02-01 Kenichi Handa <handa@m17n.org>
18225
18226 * coding.c (decode_coding): Fix handling of invalid bytes.
18227
182282008-02-01 Kenichi Handa <handa@m17n.org>
18229
18230 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18231 Unicode characters.
18232
182332008-02-01 Kenichi Handa <handa@m17n.org>
18234
18235 * coding.c (encode_coding_object): If a pre-write-conversion
18236 function makes a new buffer, kill it.
18237
182382008-02-01 Kenichi Handa <handa@m17n.org>
18239
18240 * coding.c (QCascii_compatible_p): New variable.
18241 (syms_of_coding): Initialize it.
18242 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18243 calling string_char.
18244 (record_conversion_result): Add `default:' case.
18245 (coding_charset_list): Delete unused variable `coding_type'.
18246 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18247 property in the plist of the coding system.
18248 (Fcoding_system_put): Check QCascii_compatible_p.
18249
182502008-02-01 Miles Bader <miles@gnu.org>
18251
18252 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18253 removed calculation of frame `f', as it's now used.
18254
182552008-02-01 Kenichi Handa <handa@m17n.org>
18256
18257 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18258 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18259 (UNIDATA): New variable.
18260 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18261 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18262 $(RUN_TEMACS) unconditionally.
18263
182642008-02-01 Kenichi Handa <handa@m17n.org>
18265
18266 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18267 (admindir): New variable.
18268 ($(lispsource)international/charprop.el): New target.
18269
182702008-02-01 Miles Bader <miles@gnu.org>
18271
18272 * character.c (chars-in-region): Remove obsolete function.
18273 (syms_of_character): Remove its initialization.
18274
182752008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18276
18277 * w32select.c (validate_coding_system)
18278 (setup_windows_coding_system): New functions.
18279 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18280 setup_windows_coding_system.
18281 (setup_config, Fw32_get_clipboard_data): Use
18282 validate_coding_system.
18283 (Fx_selection_exists): Move call to setup_config to a place
18284 where signals are allowed.
18285
18286 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18287 (Fcheck_coding_system): Add declarations.
18288
182892008-02-01 Kenichi Handa <handa@m17n.org>
18290
18291 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18292
182932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18294
18295 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18296 string as the second argument for x_new_fontset.
18297
182982008-02-01 Kenichi Handa <handa@m17n.org>
18299
18300 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18301 (encode_coding_object): Use safe_call instead of call2.
18302
183032008-02-01 Kenichi Handa <handa@m17n.org>
18304
18305 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18306
18307 * Makefile.in (lisp): Include charprop.el.
18308
183092008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18310
18311 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18312 Not sure if it's unnecessary.
18313
183142008-02-01 Steven Tamm <steventamm@mac.com>
18315
18316 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18317 some possibly unnecessary fontset checking code that crashed
18318 when creating a new frame.
18319
183202008-02-01 Kenichi Handa <handa@m17n.org>
18321
18322 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18323 lookup_face.
18324
18325 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18326
18327 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18328
183292008-02-01 Kenichi Handa <handa@m17n.org>
18330
18331 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18332 (coding_charset_list): New function.
18333
18334 * coding.h (coding_charset_list): Extern it.
18335
183362008-02-01 Kenichi Handa <handa@m17n.org>
18337
18338 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18339 concatenation of family and registry.
18340
183412008-02-01 Kenichi Handa <handa@m17n.org>
18342
18343 * character.h (BYTE8_STRING): Fix typo.
18344
18345 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18346 string to multibyte (sync to HEAD).
18347
18348 * casefiddle.c (casify_region): Handle changes in byte-length
18349 using replace_range_2 (sync to HEAD).
18350
183512008-02-01 Andreas Schwab <schwab@suse.de>
18352
18353 * chartab.c (map_char_table): GCPRO table and arg.
18354
183552008-02-01 Kenichi Handa <handa@m17n.org>
18356
18357 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18358 already at limit.
18359
183602008-02-01 Kenichi Handa <handa@m17n.org>
18361
18362 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18363 instead of fast_c_string_match_ignore_case.
18364 (find_font_encoding): Change argument to Lisp_Object. Use
18365 fast_string_match_ignore_case instead of
18366 fast_c_string_match_ignore_case. Change caller.
18367
183682008-02-01 Kenichi Handa <handa@m17n.org>
18369
18370 * xdisp.c (get_next_display_element): In unibyte case, decide to
18371 display in octal form by checking a character by
18372 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18373
18374 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18375
18376 * character.c (unibyte_has_multibyte_table): New variable.
18377
18378 * character.h (unibyte_has_multibyte_table): Extern it.
18379 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18380
183812008-02-01 Kenichi Handa <handa@m17n.org>
18382
18383 * coding.c (encode_coding_iso_2022): Fix handling of charset
18384 annotation.
18385
183862008-02-01 Kenichi Handa <handa@m17n.org>
18387
18388 * coding.c (setup_coding_system): If coding_system is nil, use
18389 Qundecided.
18390 (Fterminal_coding_system): Return nil if terminal coding system is
18391 `undecided'.
18392 (syms_of_coding): Define coding-system `undecided' here. Setup
18393 terminal_coding as `undecided'.
18394
183952008-02-01 Kenichi Handa <handa@m17n.org>
18396
18397 * xdisp.c (message_dolog, set_message_1): Call
18398 unibyte_char_to_multibyte with arg type int.
18399
18400 * lread.c (read1): Fix reading of a char-table.
18401
18402 * print.c (print_object): Include sub char-table in circularities
18403 detection.
18404
184052008-02-01 Kenichi Handa <handa@m17n.org>
18406
18407 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18408 Append the found sequences in car of ARGS instead of prepending.
18409
184102008-02-01 Kenichi Handa <handa@m17n.org>
18411
18412 * fileio.c (report_file_error): Make a unibyte string from
18413 strerror (errorno).
18414 (Fsubstitute_in_file_name): Fix the arg to
18415 unibyte_char_to_multibyte. It is evaluated twice.
18416
184172008-02-01 Kenichi Handa <handa@m17n.org>
18418
18419 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18420
184212008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18424 BOM is not found.
18425 (detect_coding, detect_coding_system): Optimization for ISO-2022
18426 when no 8-bit data is found.
18427
184282008-02-01 Jason Rumney <jasonr@gnu.org>
18429
18430 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18431
184322008-02-01 Kenichi Handa <handa@m17n.org>
18433
18434 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18435 CHARS.
18436
184372008-02-01 Steven Tamm <steventamm@mac.com>
18438
18439 * macterm.c (mac_encode_char): Add charset argument and update
18440 to use encoding_type.
18441 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18442 switch to pure fontset.
18443 (decode_mac_font_name): Temporarily remove decoding.
18444 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18445 (x_load_font): Temporarily remove encoding.
18446
184472008-02-01 Kenichi Handa <handa@m17n.org>
18448
18449 * xfaces.c (Fface_font): If frame is not on a window system,
18450 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18451 refer to face->font.
18452 (split_font_name_into_vector, build_font_name_from_vector)
18453 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18454 when HAVE_WINDOW_SYSTEM is defined.
18455
184562008-02-01 Kenichi Handa <handa@m17n.org>
18457
18458 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18459 (x_produce_glyphs): Fix setting of members of cmp in case
18460 cmp->glyph_len is zero.
18461
18462 * fontset.c (Fset_fontset_font): Fix docstring.
18463 (Ffontset_info): Make it backward compatible. New arg ALL.
18464
184652008-02-01 Kim F. Storm <storm@cua.dk>
18466
18467 * process.c (read_process_output): Grow decoding_buf when needed;
18468 this could cause a crash in allocate_string and compact_small_strings.
18469
184702008-02-01 Kenichi Handa <handa@m17n.org>
18471
18472 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18473
184742008-02-01 Kenichi Handa <handa@m17n.org>
18475
18476 * coding.c (setup_coding_system): Set coding->common_flags
18477 correctly for raw-text.
18478 (consume_chars): On encoding unibyte text by raw-text, don't check
18479 multibyte form.
18480 (encode_coding): On encoding by raw-text, never use translation tables.
18481
18482 * fileio.c (e_write): Short cut for the case of no encoding.
18483
184842008-02-01 Kenichi Handa <handa@m17n.org>
18485
18486 * coding.c (detect_coding, detect_coding_system): Delete unused
18487 variables.
18488
184892008-02-01 Kenichi Handa <handa@m17n.org>
18490
18491 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18492 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18493
184942008-02-01 Kenichi Handa <handa@m17n.org>
18495
18496 * coding.c (Ffind_coding_systems_region_internal): Include
18497 raw-text and no-conversion in the result.
18498
184992008-02-01 Kenichi Handa <handa@m17n.org>
18500
18501 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18502 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18503 FONT_DEF.
18504 (font_def_arg, add_arg, from_arg, to_arg): New args.
18505 (set_fontset_font): Change argument.
18506 (Fset_fontset_font): Fix for the case that TARGET is a script
18507 name and charset name.
18508 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18509
185102008-02-01 Kenichi Handa <handa@m17n.org>
18511
18512 * fontset.c (fontset_font): Rename from fontset_face. Change return
18513 value.
18514 (face_suitable_for_char_p, face_for_char): Adjust for the change
18515 of fontset_font.
18516 (make_fontset_for_ascii_face): Fix setting of the fontset element
18517 for ASCII.
18518 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18519 to get a font name.
18520 (Ffontset_info): Adjust for the change of fontset_font.
18521
18522 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18523
18524 * character.h (LEADING_CODE_LATIN_1_MIN)
18525 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18526
185272008-02-01 Kenichi Handa <handa@m17n.org>
18528
18529 * editfns.c (check_translation): New function.
18530 (Ftranslate_region_internal): Handle M:N mapping.
18531
185322008-02-01 Kenichi Handa <handa@m17n.org>
18533
18534 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18539 goto invalid_code.
18540 (decode_coding_iso_2022): Fix handling of invalid designation.
18541
18542 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18543 after calling code_conversion_save.
18544
185452008-02-01 Kenichi Handa <handa@m17n.org>
18546
18547 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18548
18549 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18550
18551 * fontset.c: Include "intervals.h".
18552 (fontset_face): Fix comparing of Lisp_Objects.
18553 (free_face_fontset, new_fontset_from_font_name): Fix
18554 Lisp_Object/int mixup.
18555
18556 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18557
18558 * coding.c: Add many prototypes for static functions.
18559 (get_translation_table): Allow max_lookup to be NULL.
18560 (decode_coding, Ffind_coding_systems_region_internal)
18561 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18562 get_translation_table with max_lookup NULL.
18563
185642008-02-01 Kenichi Handa <handa@m17n.org>
18565
18566 * coding.c (get_translation_table): Declare it as Lisp_Object.
18567 (LOOKUP_TRANSLATION_TABLE): New macro.
18568 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18569 instead of CHAR_TABLE_REF.
18570
185712008-02-01 Kenichi Handa <handa@m17n.org>
18572
18573 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18574 annotation data format.
18575 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18576 Change arguments FROM and TO to single argument NCHARS. Change caller.
18577 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18578 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18579 (decode_coding_ccl, decode_coding_charset): Pay attention to
18580 coding->charbuf_used.
18581 (get_translation): New function.
18582 (produce_chars): New arguments translation_table and last_block.
18583 Translate characters here. Return number of carryover chars.
18584 Change caller.
18585 (produce_composition): New argument pos. Change caller.
18586 Adjust for the change of annotation data format.
18587 (produce_charset, produce_annotation): Likewise.
18588 (decode_coding, encode_coding): Don't call translate_chars.
18589 (consume_chars): New arg translation_table. Change caller.
18590 (translate_chars): Delete.
18591 (syms_of_coding): Make translation-table's number of extra slots 2.
18592
185932008-02-01 Kenichi Handa <handa@m17n.org>
18594
18595 * search.c (simple_search): Fix setting this_pos_byte in backward
18596 search.
18597
18598 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18599 byte sequence.
18600 (detect_coding_ccl): Fix setting of the variable valids.
18601
186022008-02-01 Kenichi Handa <handa@m17n.org>
18603
18604 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18605
18606 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18607
18608 * editfns.c (Ftranslate_region_internal): Rename from
18609 Ftranslate_region. Accept a char-table in TABLE.
18610 (syms_of_editfns): Defsubr Stranslate_region_internal.
18611
18612 * xfaces.c (set_lface_from_font_name): If a font is specified for
18613 a frame, generate a fontset from the font.
18614 (build_scalable_font_name): If the scalable font is requested for
18615 a specific size, don't change that size.
18616 (try_font_list): Try a scalable font also in the case that a
18617 pattern string is specified.
18618
186192008-02-01 Kenichi Handa <handa@m17n.org>
18620
18621 * xfaces.c (Fface_font): New optional arg CHARACTER.
18622
186232008-02-01 Kenichi Handa <handa@m17n.org>
18624
18625 * charset.h (CHARSET_OFFSET): New macro.
18626
186272008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18630
18631 * fontset.c (fontset_face): Handle the case that repertory is a
18632 char-table.
18633 (find_font_encoding): Return nil for unknown encoding.
18634 (Fset_fontset_font): Ignore a font of unknown encoding.
18635
186362008-02-01 Kenichi Handa <handa@m17n.org>
18637
18638 * keymap.c (describe_vector): Handle default value of a char table.
18639
18640 * fontset.c (fontset_face): Handle fallback fonts correctly.
18641 (Ffontset_info): Return infomation about fallback fonts.
18642
186432008-02-01 Kenichi Handa <handa@m17n.org>
18644
18645 * fontset.c (FONTSET_DEFAULT): New macro.
18646 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18647 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18648 the case that it is nil.
18649 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18650 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18651
18652 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18653 subset or superset.
18654
186552008-02-01 Kenichi Handa <handa@m17n.org>
18656
18657 * emacs.c (main): Call init_charset after syms_of_XXX.
18658
18659 * charset.c (Vcharset_map_directory): Delete.
18660 (Vcharset_map_path): New variable.
18661 (load_charset_map_from_file): Use Vcharset_map_path instead.
18662 (init_charset): Initialize Vcharset_map_path.
18663 (syms_of_charset): Delete declaration of "charset-map-directory",
18664 add declaration of "charset-map-path".
18665
186662008-02-01 Kenichi Handa <handa@m17n.org>
18667
18668 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18669 ASCII only string.
18670
18671 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18672
18673 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18674 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18675
186762008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18679
18680 * coding.c (QCmnemonic, QCdefalut_char)
18681 (QCdecode_translation_table, QCencode_translation_table)
18682 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18683 (get_translation_table): Return a list of translation tables if
18684 necessary.
18685 (decode_coding): Call get_translation_table with ENCODEP 0.
18686 (char_encodable_p): If translation_table is non-nil, always call
18687 translate_char.
18688 (Fdefine_coding_system_internal): Accept list of translation
18689 tables as :encode-translation-table and :decode-translation-table.
18690 (Fcoding_system_put): New function.
18691 (syms_of_coding): Declare new symbols. Defsubr
18692 Scoding_system_put.
18693 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18694 typically JISX0212.
18695
18696 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18697 when the charset is superset type.
18698
18699 * character.c (translate_char): Accept list of translation tables.
18700
187012008-02-01 Kenichi Handa <handa@m17n.org>
18702
18703 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18704 (CODING_ATTR_TRANS_TBL): New macro.
18705
18706 * coding.c (get_translation_table): New function.
18707 (translate_chars): Fix the bug of skipping annotation data.
18708 (decode_coding, encode_coding): Utilize get_translation_table.
18709 (char_encodable_p, Funencodable_char_position): Translate char if
18710 necessary.
18711 (Ffind_coding_systems_region_internal)
18712 (Fcheck_coding_systems_region): Setup translation table for encode
18713 in a coding system attribute vector in advance.
18714 (Fdefine_coding_system_internal): Allow a symbol as translation
18715 table. For shift-jis type coding system, allow 4th charset.
18716
187172008-02-01 Kenichi Handa <handa@m17n.org>
18718
18719 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18720
18721 * xdisp.c (get_next_display_element): Pass -1 as POS to
18722 FACE_FOR_CHAR if displaying a C-string.
18723
187242008-02-01 Kenichi Handa <handa@m17n.org>
18725
18726 * composite.c (get_composition_id): Handle xoff and yoff in a
18727 composition rule.
18728
18729 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18730 (struct composition): New member lbearing and rbearing.
18731
18732 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18733 (x_get_glyph_overhangs): Handle a composition glyph.
18734 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18735
18736 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18737 composition glyph.
18738
187392008-02-01 Kenichi Handa <handa@m17n.org>
18740
18741 * print.c: Include charset.h.
18742 (Vprint_charset_text_property): New variable.
18743 (Qdefault): Extern it.
18744 (PRINT_STRING_NON_CHARSET_FOUND)
18745 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18746 (print_check_string_result): New variable.
18747 (print_check_string_charset_prop): New function.
18748 (print_prune_charset_plist): New variable.
18749 (print_prune_string_charset): New function.
18750 (print_object): Call print_prune_string_charset if
18751 Vprint_charset_text_property is not t.
18752 (print_interval): Print nothing if interval->plist is nil.
18753 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18754 variable. Init and staticpro print_prune_charset_plist.
18755
187562008-02-01 Kenichi Handa <handa@m17n.org>
18757
18758 * fontset.c (new_fontset_from_font_name): Use the specified font
18759 for all characters in the new fontset.
18760
18761 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18762 OBJECT args.
18763
18764 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18765 OBJECT args for composition too.
18766
18767 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18768 OBJECT args.
18769
187702008-02-01 Kenichi Handa <handa@m17n.org>
18771
18772 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18773
18774 * fontset.c (reorder_font_vector): Adjust for the change of
18775 FONT_DEF format.
18776 (fontset_face): New arg id. Change caller.
18777 (face_for_char): New args pos and object.
18778 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18779 (fs_query_fontset): Check NAME by Fassoc too.
18780 (Fset_fontset_font): Allow non-XLFD font name.
18781 (Ffontset_info): Adjust for the change of FONT_DEF format.
18782
18783 * fontset.h (face_for_char): Adjust prototype.
18784
18785 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18786 (append_space, extend_face_to_end_of_line)
18787 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18788 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18789
18790 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18791 POS and OBJECT args.
18792
18793 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18794 POS and OBJECT args.
18795
187962008-02-01 Jason Rumney <jasonr@gnu.org>
18797
18798 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18799 of GlobalAlloc'ed memory.
18800
188012008-02-01 Kenichi Handa <handa@m17n.org>
18802
18803 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18804
18805 * charset.h (charset_table_used): Delete extern.
18806
18807 * charset.c (charset_table_used): Make it static.
18808 (map_charset_chars): Fix args to c_function with.
18809
18810 * chartab.c (map_sub_char_table_for_charset): Fix args to
18811 c_function with.
18812
18813 * coding.h (enum coding_result_code): Delete
18814 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18815
18816 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18817 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18818 (Vlast_code_conversion_error): New variables.
18819 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18820 (ONE_MORE_BYTE): Record error if any instead of signaling an
18821 error. If non-ASCII multibyte char is found, return the negative
18822 value of the code. All callers changed to check it.
18823 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18824 (record_conversion_result): New function. Change all codes setting
18825 coding->result to call this function.
18826 (detect_coding_utf_8, decode_coding_utf_8)
18827 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18828 Don't use the local variable incomplete.
18829 (emacs_mule_char): Change the second arg to `const'.
18830 (decode_coding): Fix of flushing out unprocessed data.
18831 (make_conversion_work_buffer): Fix making of a work buffer.
18832 (decode_coding_object): Return coding->dst_object.
18833
18834 * fontset.c (set_fontset_font): Fix args.
18835
18836 * lisp.h (CHARACTERBITS): Define as 22.
18837
18838 * process.c (send_process): Be sure to set coding->src_multibyte.
18839
18840 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18841
188422008-02-01 Kenichi Handa <handa@m17n.org>
18843
18844 * xdisp.c (handle_auto_composed_prop): Give limit to
18845 Fnext_single_char_property_change.
18846
188472008-02-01 Kenichi Handa <handa@m17n.org>
18848
18849 * composite.c (syms_of_composite): Don't make the composition hash
18850 table weak.
18851
18852 * fontset.c (Fset_fontset_font): Fix docstring.
18853
18854 * lisp.h (detect_coding_system): Adjust prototype.
18855
18856 * fileio.c (kill_workbuf_unwind): Delete this function.
18857 (Finsert_file_contents): Adjust the call of detect_coding_system.
18858 Get conversion_buffer by code_conversion_save. Use the macro
18859 CODING_MAY_REQUIRE_DECODING. After decoding, update
18860 coding_system.
18861
18862 * coding.h (make_conversion_work_buffer): Delete extern.
18863 (code_conversion_save): Extern it.
18864
18865 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18866 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18867 (decode_coding_utf_8): Don't do eol converion.
18868 (detect_coding_utf_16): Check coding->src_chars, not
18869 coding->src_bytes. Add heuristics for those that have no signature.
18870 (decode_coding_emacs_mule, decode_coding_iso_2022)
18871 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18872 Don't do eol converion.
18873 (adjust_coding_eol_type): Return a new coding system.
18874 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18875 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18876 each change.
18877 (decode_coding): Pay attention to undo_list. Do eol conversion for
18878 all types of coding-systems (if necessary).
18879 (Vcode_conversion_work_buf_list): Delete it.
18880 (Vcode_conversion_reused_workbuf): Rename from
18881 Vcode_conversion_reused_work_buf.
18882 (Vcode_conversion_workbuf_name): New variable.
18883 (reused_workbuf_in_use): New variable.
18884 (make_conversion_work_buffer): Delete the arg DEPTH.
18885 (code_conversion_restore): Change argument to cons.
18886 (code_conversion_save): Delete the argument BUFFER. Change callers.
18887 (detect_coding_system): New argument src_chars. Change callers.
18888 Fix for utf-16 detection.
18889 (init_coding_once): Don't use ISO_carriage_return.
18890 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18891 reused_workbuf_in_use.
18892
188932008-02-01 Kenichi Handa <handa@m17n.org>
18894
18895 * keymap.c (store_in_keymap): Pay attention to the case that idx
18896 is a cons specifying a character range.
18897
188982008-02-01 Kenichi Handa <handa@m17n.org>
18899
18900 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18901 HANDLED_RECOMPUTE_PROPS.
18902
18903 * coding.c (Fdefine_coding_system_internal): Fix checking of
18904 ascii compatibility.
18905
189062008-02-01 Kenichi Handa <handa@m17n.org>
18907
18908 * charset.c (find_charsets_in_text): Delete unused locale variable.
18909 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18910
18911 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18912 Resync charset_list to Vemacs_mule_charset_list.
18913
18914 * keymap.c (store_in_keymap): Pay attention to the case that idx
18915 is a cons specifying a character range.
18916
189172008-02-01 Kenichi Handa <handa@m17n.org>
18918
18919 * composite.c (update_compositions): Bind inhibit-read-only, etc
18920 to t before calling remove-list-of-text-properties.
18921
18922 * print.c (print_object): Always print ASCII chars as is.
18923
189242008-02-01 Kenichi Handa <handa@m17n.org>
18925
18926 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18927
18928 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18929 is a char table.
18930
189312008-02-01 Kenichi Handa <handa@m17n.org>
18932
18933 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18934
189352008-02-01 Kenichi Handa <handa@m17n.org>
18936
18937 * xfaces.c (set_lface_from_font_name): Fix for the case that
18938 FONTNAME is not fontset name.
18939
189402008-02-01 Kenichi Handa <handa@m17n.org>
18941
18942 * fns.c (base64_encode_1): Fix previous change.
18943
189442008-02-01 Kenichi Handa <handa@m17n.org>
18945
18946 * fontset.c (set_fontset_font): New function.
18947 (Fset_fontset_font): If a font is specified for a charset, use
18948 map_charset_chars to store the font spec in a fontset.
18949
189502008-02-01 Kenichi Handa <handa@m17n.org>
18951
18952 * fontset.c (fontset_face): Create a fallback fontset on demand.
18953 (make_fontset): Don't create a fallback fontset here.
18954 (free_face_fontset): Free a fallback fontset (if any) too.
18955 (n_auto_fontsets): Delete this variable.
18956 (auto_fontset_alist): New variable.
18957 (new_fontset_from_font_name): Check auto_fontset_alist.
18958 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18959 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18960 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18961 Defsubr Sfontset_list_all.
18962
189632008-02-01 Kenichi Handa <handa@m17n.org>
18964
18965 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18966
189672008-02-01 Kenichi Handa <handa@m17n.org>
18968
18969 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18970
189712008-02-01 Kenichi Handa <handa@m17n.org>
18972
18973 * editfns.c (Fgoto_char): Fix docstring.
18974
189752008-02-01 Kenichi Handa <handa@m17n.org>
18976
18977 * insdel.c (insert_from_gap): Adjust intervals correctly.
18978
189792008-02-01 Jason Rumney <jasonr@gnu.org>
18980
18981 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18982 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18983 (w32_initialize): Try to load it.
18984 (x_get_font_repertory): Use it if available.
18985 (w32_encode_char): Add shortcut for unicode output.
18986
18987 * w32fns.c (w32_load_system_font): Default charset to -1.
18988 (x_to_w32_charset): Match all fonts for unicode.
18989 (w32_to_x_charset): New parameter matching. Don't return partial
18990 or wildcard charsets.
18991 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18992 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18993 (w32_to_x_font): Match charset to real charset.
18994 (enum_font_cb2): Always list unicode versions.
18995
18996 * makefile.w32-in (temacs): Increase EMHEAP.
18997
189982008-02-01 Jason Rumney <jasonr@gnu.org>
18999
19000 * w32term.c (w32_encode_char): New charset parameter.
19001 font_info.encoding becomes encoding_type.
19002 (x_get_font_repertory): New function. Warning: stub only!
19003 (x_new_font): Return quickly if font already set.
19004 (x_new_fontset): fontsetname parameter is Lisp_Object.
19005 Use new fs_query_fontset. Try new_fontset_from_font_name.
19006 Use fontset_name for return value.
19007
19008 * w32term.h: Declare x_get_font_repertory.
19009
19010 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19011 place of find_charset_in_text. Use encode_coding_object in place
19012 of encode_coding.
19013 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19014 decode_coding.
19015
19016 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19017 of x_new_fontset.
19018 (w32_load_system_font): Initialize charset as unicode.
19019 font_info.encoding becomes encoding_type.
19020 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19021 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19022 (syms_of_w32fns): Set get_font_repertory_func.
19023
19024 * w32console.c: Include character.h. Use terminal_encode_buffer
19025 from term.c.
19026 (write_glyphs): Use new version of encode_terminal_code. Use
19027 encode_coding_object in place of encode_coding.
19028
19029 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19030 encoding becomes encoding_type.
19031
19032 * term.c (terminal_encode_buffer): Make externally visible.
19033
19034 * makefile.w32-in: Add character.h dependancies.
19035 (character.o, chartab.o): New targets.
19036
190372008-02-01 Kenichi Handa <handa@m17n.org>
19038
19039 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19040 CODING_ID_EOL_TYPE.
19041
190422008-02-01 Andreas Schwab <schwab@suse.de>
19043
19044 * coding.c (produce_chars): Revert last change.
19045
190462008-02-01 Kenichi Handa <handa@m17n.org>
19047
19048 * charset.h (charset_unicode): Extern it.
19049
19050 * charset.c (string_xstring_p): Check by (C >= 0x100).
19051 (find_charsets_in_text): Change format of the arc CHARSETS. New
19052 arg MULTIBYTE.
19053 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19054 change of find_charsets_in_text.
19055 (Fsplit_char): Fix doc. Never return unknown.
19056
19057 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19058
19059 * coding.c (Fdefine_coding_system_alias): Update
19060 Vcoding_system_list.
19061
19062 * fontset.c (load_font_get_repertory): Pay attention to the case
19063 that ENCODING of a font is specified by a char-table.
19064
19065 * xterm.c (x_get_font_repertory): Handle the case that the
19066 encoding of font is other than Unicode.
19067
190682008-02-01 Kenichi Handa <handa@m17n.org>
19069
19070 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19071 if a character is encodable by the terminal coding system. If
19072 not, produces proper number of `?'s. Update
19073 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19074 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19075
190762008-02-01 Kenichi Handa <handa@m17n.org>
19077
19078 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19079 variables.
19080 (encode_terminal_code): Change argument. Encode multiple
19081 characters at once. Store the result of encoding in
19082 terminal_encode_buffer.
19083 (write_glyphs, insert_glyphs): Adjust for the change of
19084 encode_terminal_code.
19085 (term_init): Initialize terminal_encode_buffer and
19086 terminal_encode_buf_size.
19087
19088 * coding.c (consume_chars): If coding->src_object is nil, don't
19089 check annotation.
19090
190912008-02-01 Kenichi Handa <handa@m17n.org>
19092
19093 * character.c (char_string): Use ASCII_CHAR_P instead of
19094 SINGLE_BYTE_CHAR_P.
19095
190962008-02-01 Kenichi Handa <handa@m17n.org>
19097
19098 * xdisp.c (handle_auto_composed_prop): Check if the last
19099 characters of auto-composed region is newly composed with the
19100 following characters.
19101 (handle_composition_prop): Fix checking of point being inside
19102 composition.
19103
191042008-02-01 Kenichi Handa <handa@m17n.org>
19105
19106 * fns.c (concat): Don't change multibyteness of the result by
19107 concatenating an 8-bit character.
19108
19109 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19110 multibyteness of the result when newelt is an 8-bit character.
19111
191122008-02-01 Dave Love <fx@gnu.org>
19113
19114 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19115 EMACS_INT.
19116
19117 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19118
19119 * xfaces.c (face_numeric_value): Declare dim size_t.
19120 (Finternal_lisp_face_equal_p): Remove unused f.
19121
19122 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19123 (MATRIX_ROW): Remove unused vars.
19124 (draw_glyphs, x_insert_glyphs, fast_find_position)
19125 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19126 byte/char counts.
19127
19128 * regex.c (regex_compile): Remove unused var.
19129
19130 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19131
19132 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19133 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19134
19135 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19136
19137 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19138
19139 * fileio.c (Fwrite_region): Remove unused var.
19140
19141 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19142 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19143
19144 * composite.c (Fremove_list_of_text_properties): Declare.
19145
19146 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19147 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19148 (coding_inherit_eol_type): Remove unused attrs.
19149 (detect_coding): Cast arg of detect_eol.
19150
19151 * charset.c (syms_of_charset): Remove unused var p.
19152 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19153 byte/char counts.
19154
19155 * casetab.c (set_case_table): Remove unused var.
19156
19157 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19158 unused vars.
19159
191602008-02-01 Dave Love <fx@gnu.org>
19161
19162 * xterm.c (x_bitmap_mask): Declare.
19163
191642008-02-01 Dave Love <fx@gnu.org>
19165
19166 * xterm.c (x_term_init): Fix type error.
19167
19168 * lisp.h: Add Funibyte_char_to_multibyte.
19169
19170 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19171 (Fset_coding_system_priority): Doc fix.
19172
19173 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19174
19175 * indent.c (check_composition): Make start and end EMACS_INT.
19176
19177 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19178
19179 * xdisp.c (handle_composition_prop, check_point_in_composition):
19180 Make buffer positions EMACS_INT.
19181
19182 * composite.c (find_composition, run_composition_function)
19183 (update_compositions, Ffind_composition_internal): Make buffer
19184 positions EMACS_INT.
19185
19186 * composite.h (find_composition, update_compositions): Make
19187 position args EMACS_INT.
19188
19189 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19190
19191 * intervals.c (get_property_and_range):
19192 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19193
19194 * unexalpha.c: Don't include varargs.h.
19195
191962008-02-01 Dave Love <fx@gnu.org>
19197
19198 * coding.h (ENCODE_UTF_8): New.
19199
19200 * Makefile.in (gtkutil.o): Depend on coding.h.
19201
19202 * coding.c (Fset_coding_system_priority): Doc fix.
19203
192042008-02-01 Kenichi Handa <handa@m17n.org>
19205
19206 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19207 the case of auto saving.
19208
192092008-02-01 Andreas Schwab <schwab@suse.de>
19210
19211 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19212 `range' from GC.
19213
192142008-02-01 Kenichi Handa <handa@m17n.org>
19215
19216 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19217
192182008-02-01 Kenichi Handa <handa@m17n.org>
19219
19220 * fileio.c (choose_write_coding_system): Return a decided coding system.
19221 (Fwrite_region): Set Vlast_coding_system_used to the return value
19222 of choose_write_coding_system.
19223
192242008-02-01 Kenichi Handa <handa@m17n.org>
19225
19226 * charset.c (Fset_charset_priority): Pay attention to duplicated
19227 arguments.
19228
19229 * coding.c (QCcategory): New variable.
19230 (syms_of_coding): Defsym it. Set all elements of
19231 Vcoding_category_table and their symbol values.
19232 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19233 coding-category-XXX, and coding-category-list.
19234 (Fdefine_coding_system_internal): Add category in the plist.
19235
192362008-02-01 Kenichi Handa <handa@m17n.org>
19237
19238 * callproc.c (Fcall_process): Handle carryover correctly.
19239
19240 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19241 (raw_text_coding_system): Check NILP (coding_system).
19242 (coding_inherit_eol_type): Check NILP (coding_system) and
19243 NILP (parent).
19244 (consume_chars): Fix for the case of raw-text.
19245
19246 * process.c (read_process_output): Handle carryover correctly.
19247
192482008-02-01 Dave Love <fx@gnu.org>
19249
19250 * regex.c (re_search_2): Fix last change.
19251
192522008-02-01 Kenichi Handa <handa@m17n.org>
19253
19254 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19255 target_multibyte. Even in a unibyte case, return a converted
19256 multibyte char.
19257 (GET_CHAR_AFTER): New macro.
19258 (PATFETCH): Translate via multibyte char.
19259 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19260 (SETUP_MULTIBYTE_RANGE): New macro.
19261 (regex_compile): Setup compiled code so that its multibyteness
19262 matches that of a target. Fix the handling of "[X-YZ]" using
19263 SETUP_MULTIBYTE_RANGE.
19264 (analyse_first) <charset>: For filling fastmap for all multibyte
19265 characters, don't check by BASE_LEADING_CODE_P.
19266 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19267 the same as RE_MULTIBYTE_P (bufp) now.
19268 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19269 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19270 (TRANSLATE_VIA_MULTIBYTE): New macro.
19271 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19272 It is the same as RE_MULTIBYTE_P (bufp) now.
19273 <exactn>: Translate via multibyte.
19274 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19275 translate it.
19276 <charset, charset_not>: Fetch a character by
19277 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19278 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19279 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19280 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19281 by GET_CHAR_AFTER.
19282 (bcmp_translate): Likewise.
19283
19284 * search.c (compile_pattern): Check the member target_multibyte,
19285 not the member multibyte of buf.
19286
19287 * lread.c (read1): While reading a string, set force_singlebyte
19288 and force_multibyte correctly.
19289
19290 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19291 up of unibyte_to_multibyte_table.
19292
192932008-02-01 Kenichi Handa <handa@m17n.org>
19294
19295 * coding.c (setup_coding_system): If coding has
19296 post-read-conversion or pre-write-conversion, set
19297 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19298 respectively.
19299 (decode_coding_gap): Run post-read-conversion if any.
19300
19301 * fileio.c (Finsert_file_contents): Even if we read into a
19302 unibyte buffer, check if we must decode the result or not.
19303
193042008-02-01 Kenichi Handa <handa@m17n.org>
19305
19306 * coding.c (make_conversion_work_buffer): Change the work buffer
19307 name to the same one as that of Emacs 21.
19308
193092008-02-01 Kenichi Handa <handa@m17n.org>
19310
19311 * coding.h (make_conversion_work_buffer): Adjust prototype.
19312 (code_conversion_restore): Don't extern it.
19313
19314 * coding.c (detected_mask): Delete unused variable.
19315 (decode_coding_iso_2022): Pay attention to the byte sequence of
19316 CTEXT extended segment, and retain those bytes as is.
19317 (decode_coding_ccl): Delete unused variable `valids'.
19318 (setup_coding_system): Delete unused variable `category'.
19319 (consume_chars): Delete unused variable `category'. Make it work
19320 for non-multibyte case.
19321 (make_conversion_work_buffer): Change argument.
19322 (saved_coding): Delete unused variable.
19323 (code_conversion_restore): Don't check saved_coding->destination.
19324 (code_conversion_save): New function.
19325 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19326 instead of record_unwind_protect.
19327 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19328 (detect_coding_system): Delete unused variable `mask'.
19329 (Fdefine_coding_system_internal): Delete unused variable id.
19330
19331 * fileio.c (kill_workbuf_unwind): New function.
19332 (Finsert_file_contents): On replacing, call
19333 make_conversion_work_buffer with correct args, and call
19334 record_unwind_protect with the first arg kill_workbuf_unwind.
19335
19336 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19337
193382008-02-01 Kenichi Handa <handa@m17n.org>
19339
19340 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19341 (fontset_add): Fix for the case that TO is less than TO1.
19342 (Ffontset_info): Don't use fallback fontset on checking the
19343 default fontset.
19344 (dump_fontset): New function for debugging.
19345
19346 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19347 coding_type is Qcharset.
19348
193492008-02-01 Kenichi Handa <handa@m17n.org>
19350
19351 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19352 (map_char_table): Don't inherit the value from the parent on
19353 initializing VAL. Adjust for the above change.
19354
193552008-02-01 Kenichi Handa <handa@m17n.org>
19356
19357 * coding.c (Qsignature, Qendian): Delete these variables.
19358 (syms_of_coding): Don't initialize them.
19359 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19360 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19361 detect_info->found.
19362 (decode_coding_utf_16): Don't detect BOM here.
19363 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19364 is NOT utf_16_without_bom.
19365 (setup_coding_system): For a coding system of type utf-16, check
19366 if the attribute :endian is Qbig or not (not nil or not), and set
19367 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19368 (detect_coding): If coding type is utf-16 and BOM detection is
19369 required, detect it.
19370 (Fdefine_coding_system_internal): For a coding system of type
19371 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19372
193732008-02-01 Kenichi Handa <handa@m17n.org>
19374
19375 * coding.c (coding_set_source): Fix for the case that the current
19376 buffer is different from coding->src_object.
19377 (decode_coding_object): Don't use the conversion work buffer if
19378 DST_OBJECT is a buffer.
19379
193802008-02-01 Dave Love <fx@gnu.org>
19381
19382 * lread.c (read_emacs_mule_char) [len==2]: Index
19383 emacs_mule_charset correctly.
19384
193852008-02-01 Dave Love <fx@gnu.org>
19386
19387 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19388 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19389 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19390 treated specially.)
19391 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19392 (detected_mask): Remove Big5 bits.
19393
193942008-02-01 Kenichi Handa <handa@m17n.org>
19395
19396 The following changes are to make the font rescaling facility
19397 compatible with Emacs 21.
19398
19399 * xfaces.c (Vface_font_rescale_alist): Rename from
19400 Vface_resizing_fonts.
19401 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19402 (font_rescale_ratio): Rename from font_resizing_ratio.
19403 (split_font_name): Set font->rescale_ratio.
19404 (better_font_p): Pay attention to font->rescale_ratio.
19405 (build_scalable_font_name): Likewise. Change RESX, and RESY
19406 fields.
19407 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19408
194092008-02-01 Kenichi Handa <handa@m17n.org>
19410
19411 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19412 (Qutf_16_le): Remove these variables.
19413 (syms_of_coding): Don't DEFSYM them.
19414 (decode_coding_utf_16): Fix handling of BOM.
19415 (encode_coding_utf_16): Fix handling of BOM.
19416
194172008-02-01 Kenichi Handa <handa@m17n.org>
19418
19419 * fileio.c (Finsert_file_contents): On replacing, before decoding
19420 the file into the work buffer, set point of the work buffer to the end.
19421
194222008-02-01 Dave Love <fx@gnu.org>
19423
19424 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19425
194262008-02-01 Dave Love <fx@gnu.org>
19427
19428 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19429 and fix C types.
19430
194312008-02-01 Kenichi Handa <handa@m17n.org>
19432
19433 * xdisp.c (SKIP_GLYPHS): New macro.
19434 (set_cursor_from_row): Pay attention to string display properties.
19435
19436 * category.c (copy_category_entry): Fix for the case that RANGE
19437 is an integer.
19438
19439 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19440
19441 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19442
194432008-02-01 Kenichi Handa <handa@m17n.org>
19444
19445 * charset.c (Fcharset_id_internal): New function.
19446 (syms_of_charset): Defsubr it.
19447
19448 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19449 with the last arg charset_list acquired from coding.
19450 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19451 the attribute coding_attr_ccl_valids.
19452
19453 * coding.h (enum define_coding_ccl_arg_index): Set the first
19454 member coding_arg_ccl_decoder to coding_arg_max.
19455
19456 * ccl.h (ccl_driver): Adjust prototype.
19457
19458 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19459 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19460 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19461 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19462 last arg Qnil.
19463
194642008-02-01 Kenichi Handa <handa@m17n.org>
19465
19466 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19467 call encode_char.
19468
19469 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19470
194712008-02-01 Dave Love <fx@gnu.org>
19472
19473 * composite.c (syms_of_composite): Make composition_hash_table weak.
19474
194752008-02-01 Kenichi Handa <handa@m17n.org>
19476
19477 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19478 (font_name_registry): Don't extern them.
19479 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19480
19481 * fontset.h (Qfontset): Don't extern it.
19482 (new_fontset_from_font_name): Extern it.
19483
19484 * fontset.c: Give 8 extra slots to fontset objects.
19485 (Qfontset_info): New variable.
19486 (syms_of_fontset): Defsym it.
19487 (FONTSET_FALLBACK): New macro.
19488 (fontset_face): Try also the default fontset.
19489 (make_fontset): Realize a fallback fontset from the default fontset.
19490 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19491 using split_font_name_into_vector and build_font_name_from_vector.
19492 (Fset_fontset_font): Access the elements of font_spec by enum
19493 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19494 name by using split_font_name_into_vector.
19495 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19496 generate a proper font name from the fontset name. Update
19497 Vfontset_alias_alist.
19498 (n_auto_fontsets): New variable.
19499 (new_fontset_from_font_name): New function.
19500 (Ffont_info): Store the information about fonts generated from the
19501 default fontset in the first extra slot of the returned char-table.
19502
19503 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19504 (font_name_registry): Delete function.
19505 (split_font_name_into_vector): New function.
19506 (build_font_name_from_vector): New function.
19507 (font_list): The argument REGISTRY is now a list of registry names.
19508 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19509 specifies an explicit font name, return the name as is. Make a
19510 list of registy names.
19511
19512 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19513 of x_new_fontset.
19514 (Fx_create_frame): Don't call x_new_fontset here. Just use
19515 x_list_fonts to check the existence of fonts.
19516
19517 * xterm.h (x_new_fontset): Adjust prototype.
19518
19519 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19520 string. Use new_fontset_from_font_name to create a fontset from a
19521 font name.
19522
195232008-02-01 Kenichi Handa <handa@m17n.org>
19524
19525 * syntax.c (Vfind_word_boundary_function_table): New name for
19526 Vnext_word_boundary_function_table.
19527 (find-word-boundary-function-table): New name for
19528 next-word-boundary-function-table.
19529
195302008-02-01 Dave Love <fx@gnu.org>
19531
19532 * Makefile.in: Fix some dependencies.
19533
19534 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19535 set it to nil before returning.
19536
19537 * composite.c (update_compositions): Fix type error.
19538
19539 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19540
195412008-02-01 Kenichi Handa <handa@m17n.org>
19542
19543 * xterm.c (x_new_font): Optimize for the case that the font is
19544 already set for the frame.
19545
195462008-02-01 Kenichi Handa <handa@m17n.org>
19547
19548 * chartab.c (char_table_ascii): Check if the char table contents
19549 is sub-char-table or not.
19550 (char_table_set, char_table_set_range): Fix argument to
19551 char_table_ascii.
19552
19553 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19554 (detect_coding_utf_8, detect_coding_utf_16)
19555 (detect_coding_emacs_mule, detect_coding_iso_2022)
19556 (detect_coding_sjis, detect_coding_big5)
19557 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19558 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19559 sequence is valid in this coding system. Change callers.
19560 (MAX_ANNOTATION_LENGTH): New macro.
19561 (ADD_ANNOTATION_DATA): New macro.
19562 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19563 ADD_ANNOTATION_DATA. Change the format of annotation data.
19564 (ADD_CHARSET_DATA): New macro.
19565 (emacs_mule_char): New argument ID. Change callers.
19566 (decode_coding_emacs_mule, decode_coding_iso_2022)
19567 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19568 Produce charset annotation data in coding->charbuf.
19569 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19570 to charset annotation data in coding->charbuf.
19571 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19572 coding->common_flags if the coding system is iso-2022 based and
19573 uses designation.
19574 (produce_composition): Adjust for the new annotation data format.
19575 (produce_charset): New function.
19576 (produce_annotation): Handle charset annotation.
19577 (handle_composition_annotation, handle_charset_annotation): New
19578 functions.
19579 (consume_chars): Handle charset annotation. Utilize the above two
19580 functions.
19581 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19582 buffer, get the deleted text as a string and set
19583 coding->src_object to that string.
19584 (detect_coding, detect_coding_system): Use the new struct
19585 coding_detection_info.
19586
19587 * coding.h (struct coding_detection_info): New structure.
19588 (struct coding_system): Adjust prototype of the member `detector'.
19589 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19590
195912008-02-01 Kenichi Handa <handa@m17n.org>
19592
19593 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19594
195952008-02-01 Dave Love <fx@gnu.org>
19596
19597 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19598 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19599 to new local and nullify apropos_accumulate before returning.
19600 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19601
196022008-02-01 Kenichi Handa <handa@m17n.org>
19603
19604 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19605 correctly.
e3eea1fc 19606
aac0c6e3
MR
196072008-02-01 Dave Love <fx@gnu.org>
19608
19609 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19610
196112008-02-01 Kenichi Handa <handa@m17n.org>
19612
19613 The following changes are to make character composition happen
19614 automatically on displaying.
19615
19616 * Makefile.in (lisp, shortlisp): Add composite.elc.
19617
19618 * composite.h (Qauto_composed, Vauto_composition_function)
19619 (Qauto_composition_function): Extern them.
19620
19621 * composite.c (Vcomposition_function_table)
19622 (Qcomposition_function_table): Delete variables.
19623 (Qauto_composed, Vauto_composition_function)
19624 (Qauto_composition_function): New variables.
19625 (run_composition_function): Don't call
19626 compose-chars-after-function.
19627 (update_compositions): Clear `auto-composed' text property.
19628 (compose_chars_in_text): Delete this function.
19629 (syms_of_composite): Staticpro Qauto_composed and
19630 Qauto_composition_function. Declare Vauto_composition_function as
19631 a Lisp variable.
19632
19633 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19634
19635 * xdisp.c (it_props): Add an entry for Qauto_composed.
19636 (handle_auto_composed_prop): New function.
19637
19638 * xselect.c (selection_data_to_lisp_data): Don't call
19639 compose_chars_in_text.
19640
196412008-02-01 Dave Love <fx@gnu.org>
19642
19643 * keyboard.c (read_char): Modify checking around use of
19644 Vkeyboard_translate_table.
19645
19646 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19647 and fix C types.
19648
196492008-02-01 Kenichi Handa <handa@m17n.org>
19650
19651 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19652 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19653 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19654 the case that the last byte is '\r' correctly.
19655 (decode_coding): Flush out the unprocessed data correctly.
19656 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19657
196582008-02-01 Dave Love <fx@gnu.org>
19659
19660 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19661 Add XK_ISO... case.
19662 (xaw_scroll_callback): Revert last change.
19663
196642008-02-01 Kenichi Handa <handa@m17n.org>
19665
19666 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19667
196682008-02-01 Kenichi Handa <handa@m17n.org>
19669
19670 * xfaces.c (Vface_resizing_fonts): New variable.
19671 (struct font_name): New member `resizing_ratio'.
19672 (font_resizing_ratio): New function.
19673 (split_font_name): Set font->resizing_ratio.
19674 (better_font_p): Pay attention to font->resizing_ratio.
19675 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19676 RESX, and RESY fields.
19677 (try_alternative_families): Try scalable fonts if
19678 Vscalable_fonts_allowed is not Qt.
19679 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19680
196812008-02-01 Dave Love <fx@gnu.org>
19682
19683 * xterm.c (xaw_scroll_callback): Cast correctly.
19684
196852008-02-01 Dave Love <fx@gnu.org>
19686
19687 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19688 (lispy_kana_keys): Comment out.
19689 (make_lispy_event) [XK_kana_A]: Comment out.
19690
19691 * xterm.c (xaw_scroll_callback): Cast call_data.
19692 (XTread_socket): Deal with ASCII keysyms.
19693 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19694
196952008-02-01 Dave Love <fx@gnu.org>
19696
19697 * xterm.c (Vx_keysym_table): New.
19698 (syms_of_xterm): Initialize it.
19699 (XTread_socket): Use it.
19700 From head: Eliminate incorrect optimization that tried to avoid
19701 decoding the output of X*LookupString.
19702 (x_get_font_repertory): Delete charset declaration.
19703
197042008-02-01 Kenichi Handa <handa@m17n.org>
19705
19706 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19707 return 0.
19708 (Fdefine_coding_system_internal): Setup
19709 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19710
197112008-02-01 Dave Love <fx@gnu.org>
19712
19713 * coding.c (Fcheck_coding_system): Doc fix.
19714
19715 * editfns.c (Finsert_byte): Return a proper value.
19716
197172008-02-01 Kenichi Handa <handa@m17n.org>
19718
19719 * coding.c (decode_coding): Fix args to translate_chars. Pay
19720 attention to Vstandard_translation_table_for_decode.
19721 (encode_coding): Fix args to translate_chars. Pay attention to
19722 Vstandard_translation_table_for_encode.
19723
19724 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19725 SINGLE_BYTE_CHAR_P.
19726
19727 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19728 not by SINGLE_BYTE_CHAR_P.
19729
19730 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19731 SINGLE_BYTE_CHAR_P.
19732
19733 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19734 SINGLE_BYTE_CHAR_P.
19735
19736 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19737 by SINGLE_BYTE_CHAR_P.
19738
19739 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19740 SINGLE_BYTE_CHAR_P.
19741
197422008-02-01 Dave Love <fx@gnu.org>
19743
19744 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19745
197462008-02-01 Dave Love <fx@gnu.org>
19747
19748 * fns.c (Flanginfo): Fix typo.
19749
19750 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19751
197522008-02-01 Kenichi Handa <handa@m17n.org>
19753
19754 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19755 (detect_coding_emacs_mule, detect_coding_iso_2022)
19756 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19757 incomplete byte sequence. Don't update *mask when correctly detected.
19758 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19759 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19760 (detect_coding, detect_coding_system): Adjust for the changes above.
19761
197622008-02-01 Kenichi Handa <handa@m17n.org>
19763
19764 * character.c (char_string): Rename from
19765 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19766 (string_char): Rename from string_char.
19767
19768 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19769 if C is greater than MAX_3_BYTE_CHAR.
19770 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19771 string_char instead of string_char_with_unification.
19772
197732008-02-01 Dave Love <fx@gnu.org>
19774
19775 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19776
197772008-02-01 Kenichi Handa <handa@m17n.org>
19778
19779 * keymap.c (push_key_description): Pay attention to force_multibyte.
19780
19781 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19782
197832008-02-01 Dave Love <fx@gnu.org>
19784
19785 * charset.c (define_charset_internal): Rename `supprementary'.
19786
19787 * Makefile.in (lisp, shortlisp): Remove latin-N.
19788
197892008-02-01 Dave Love <fx@gnu.org>
19790
19791 * xfns.c (x_window, x_window): Use use_xim.
19792
19793 * xterm.c (use_xim): Initialize.
19794 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19795 (x_term_init): Maybe set use_xim.
19796
19797 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19798
197992008-02-01 Kenichi Handa <handa@m17n.org>
19800
19801 * search.c (search_buffer): Fix case-fold-search of multibyte
19802 characters.
19803 (boyer_moore): Rename the last argument to char_high_bits.
19804
198052008-02-01 Kenichi Handa <handa@m17n.org>
19806
19807 * xdisp.c (display_string): Fix for the case of zero width glyph.
19808
19809 * xfns.c (x_set_font): Change the error message of the case that
19810 x_new_fontset returns Qt.
19811
19812 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19813 (Finternal_set_lisp_face_attribute): Use signal_error for the
19814 error of invalid fontset.
19815
19816 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19817 fontset, return Qt.
19818
198192008-02-01 Dave Love <fx@gnu.org>
19820
19821 * unexelf.c (unexec): Make .got handling not SGI-specific.
19822
19823 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19824
19825 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19826
19827 * keyboard.c (read_key_sequence): Fix type error.
19828
19829 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19830 type error.
19831
19832 * fontset.c (fontset_add): Return Lisp_Object.
19833
198342008-02-01 Dave Love <fx@gnu.org>
19835
19836 * charset.h (charset_ordered_list_tick): Declare extern.
19837
198382008-02-01 Kenichi Handa <handa@m17n.org>
19839
19840 The following changes (and some of 2008-02-01 changes of mine) are
19841 for handling syntax, category, and case conversion for unibyte
19842 characters by converting them to multibyte on the fly. With these
19843 changes, we don't have to setup syntax and case tables for unibyte
19844 characters in each language environment.
19845
19846 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19847 multibyte if necessary.
19848
19849 * bytecode.c (Fbyte_code): Likewise.
19850
19851 * character.h (LEADING_CODE_LATIN_1_MIN)
19852 (LEADING_CODE_LATIN_1_MAX): New macros.
19853 (unibyte_to_multibyte_table): Extern it.
19854 (unibyte_char_to_multibyte): New macro.
19855 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19856 (CHAR_LEADING_CODE): New macro.
19857 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19858
19859 * character.c (unibyte_to_multibyte_table): New variable.
19860 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19861 (multibyte_char_to_unibyte): If C is an eight-bit character,
19862 convert it to the corresponding byte value.
19863
19864 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19865 not 1, signals an error. Update the elements of
19866 unibyte_to_multibyte_table.
19867 (init_charset_once): Initialize unibyte_to_multibyte_table.
19868 (syms_of_charset): Define the charset `iso-8859-1'.
19869
19870 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19871 as is without converting it to unibyte. In a unibyte buffer,
19872 convert C to multibyte before checking the syntax.
19873
19874 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19875
19876 * minibuf.c (Fminibuffer_complete_word): Use the macro
19877 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19878
19879 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19880
19881 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19882 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19883 that is zero, convert an eight-bit char to multibyte.
19884 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19885 non-emacs case.
19886 (PATFETCH): Convert an eight-bit char to multibyte.
19887 (HANDLE_UNIBYTE_RANGE): New macro.
19888 (regex_compile): Setup the compiled pattern for multibyte chars
19889 even if the given regex string is unibyte. Use PATFETCH_RAW
19890 instead of PATFETCH in many places. To handle `charset'
19891 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19892 only for ASCII chars.
19893 (analyse_first) <exactn>: Simplify because the compiled pattern
19894 is multibyte.
19895 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19896 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19897 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19898 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19899 multibyte always 1.
19900 (re_search_2): In emacs, set the locale variable multibyte to 1,
19901 otherwise to 0. New local variable target_multibyte. Check it
19902 to decide the multibyteness of STR1 and STR2. If
19903 target_multibyte is zero, convert unibyte chars to multibyte
19904 before translating and checking fastmap.
19905 (TARGET_CHAR_AND_LENGTH): New macro.
19906 (re_match_2_internal): In emacs, set the locale variable multibyte
19907 to 1, otherwise to 0. New local variable target_multibyte. Check
19908 it to decide the multibyteness of STR1 and STR2. Use
19909 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19910 <charset, charset_not>: If multibyte is nonzero, check fastmap
19911 only for ASCII chars. Call bcmp_translate with
19912 target_multibyte, not with multibyte.
19913 <begline>: Declare the local variable C as `unsigned'.
19914 (bcmp_translate): Change the last arg name to target_multibyte.
19915
19916 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19917 the regexp pattern and the matching target. Set cp->buf.multibyte
19918 to the multibyteness of the regexp pattern. Set
19919 cp->but.target_multibyte to the multibyteness of the matching target.
19920 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19921 FETCH_STRING_CHAR_ADVANCE.
19922 (Freplace_match): Convert unibyte chars to multibyte.
19923
19924 * syntax.c (char_quoted, back_comment, scan_words)
19925 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19926 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19927 unibyte chars to multibyte.
19928 (skip_chars): Delete the arg syntaxp, and move the code for
19929 handling syntaxes to skip_syntaxes. Change callers.
19930 Fix the case that the multibyteness of STRING and the current
19931 buffer doesn't match.
19932 (skip_syntaxes): New function.
19933 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19934 SINGLE_BYTE_CHAR_P.
19935
199362008-02-01 Kenichi Handa <handa@m17n.org>
19937
19938 * xfaces.c (QCfontset): New variable.
19939 (LFACE_FONTSET): New macro.
19940 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19941 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19942 (Finternal_set_lisp_face_attribute)
19943 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19944 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19945 check also LFACE_FONTSET_INDEX.
19946 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19947 attrs[LFACE_FONT_INDEX].
19948 (syms_of_xfaces): Intern and staticpro QCfontset.
19949
19950 * dispextern.h (enum lface_attribute_index): New member
19951 LFACE_FONTSET_INDEX.
19952
19953 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19954
199552008-02-01 Kenichi Handa <handa@m17n.org>
19956
19957 * coding.c (coding_set_destination): Fix coding->destination for
19958 the case converting a region.
19959 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19960 (encode_coding_object): Fix coding->dst_pos and
19961 coding->dst_pos_byte for the case converting a region.
19962
19963 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19964
19965 * character.h (BYTE8_STRING): New macro.
19966
19967 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19968
199692008-02-01 Kenichi Handa <handa@m17n.org>
19970
19971 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19972 characters by octal form.
19973
19974 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19975
19976 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19977 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19978 _fetch_multibyte_char_len.
19979 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19980
19981 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19982
19983 * casefiddle.c (casify_object): Simplify. Handle the case that
19984 the case conversion change the byte length.
19985 (casify_region): Likewise.
19986
19987 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19988
19989 * character.c (_fetch_multibyte_char_len): Delete this variable.
19990 (syms_of_character): Setup Vprintable_chars.
19991
19992 * editfns.c (Fchar_equal): Fix for the unibyte case.
19993 (Finsert_byte): New function.
19994 (syms_of_editfns): Defsubr it.
19995
19996 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19997 of direct code 0x3ffff.
19998
19999 * search.c (Freplace_match): Fix for the unibyte case.
20000
200012008-02-01 Kenichi Handa <handa@m17n.org>
20002
20003 * lread.c (safe_to_load_p): Fix the logic.
20004
20005 * syntax.c (scan_words): Don't treat characters belonging to
20006 different scripts as constituting a word.
20007
20008 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20009
20010 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20011
20012 * emacs.c (main): In the case of --unibyte, instead of aborting on
20013 finding non-empty buffer, make it unibyte.
20014
200152008-02-01 Kenichi Handa <handa@m17n.org>
20016
20017 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20018 to create a fontset.
20019
200202008-02-01 Dave Love <fx@gnu.org>
20021
20022 * character.c (Funibyte_char_to_multibyte): Doc fix.
20023
20024 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20025
200262008-02-01 Kenichi Handa <handa@m17n.org>
20027
20028 * fontset.c (fontset_add): Make the type `int'.
20029 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20030
20031 * character.c (unibyte_char_to_multibyte)
20032 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20033 charset_unibyte, not charset_primary.
20034
20035 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20036
20037 * charset.c (charset_unibyte): Rename from charset_primary.
20038 (Funibyte_charset): Rename from Fprimary_charset.
20039 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20040 (syms_of_charset): Adjust for the above changes.
20041
20042 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20043 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20044 it->multibyte_p is zero.
20045
20046 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20047 Delete extern.
20048
200492008-02-01 Kenichi Handa <handa@m17n.org>
20050
20051 * coding.c (Fdefine_coding_system_internal): Fix category setting
20052 for a coding system of type iso-2022.
20053
200542008-02-01 Kenichi Handa <handa@m17n.org>
20055
20056 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20057
200582008-02-01 Kenichi Handa <handa@m17n.org>
20059
20060 * syntax.c (Vnext_word_boundary_function_table): New variable.
20061 (next-word-boundary-function-table): Declare it as a Lisp variable
20062 in syms_of_syntax.
20063 (scan_words): Call functions in Vnext_word_boundary_function_table
20064 if any.
20065
20066 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20067
20068 * fontset.c (fs_load_font): If fontp->charset is not negative,
20069 return fontp without setting its members.
20070
200712008-02-01 Dave Love <fx@gnu.org>
20072
20073 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20074
20075 * m/sparc.h (HAVE_ALLOCA): Delete.
20076
20077 * s/irix6-5.h: Don't include strings.h.
20078 (bcopy, bzero, bcmp): Don't undef.
20079
20080 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20081
20082 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20083 (TIOCSIGSEND): Don't test IRIX6.
20084 (bcopy, bzero, bcmp): Define conditionally.
20085
200862008-02-01 Kenichi Handa <handa@m17n.org>
20087
20088 * buffer.c (Qas, Qmake, Qto): New variables.
20089 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20090 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20091
20092 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20093 we are inserting a process output into a multibyte buffer.
20094
20095 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20096 multibyte_char_to_unibyte.
20097
20098 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20099 by the primary charset, make it eight-bit char.
20100 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20101
20102 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20103 (charset_8_bit__control, charset_8_bit_graphic)
20104 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20105 (define_charset_internal): New function.
20106 (syms_of_charset): Call define_charset_internal for pre-defined
20107 charsets.
20108
20109 * charset.h (charset_8_bit): Extern it.
20110
20111 * coding.c (make_conversion_work_buffer): Adjust for the change
20112 of Fset_buffer_multibyte.
20113 (encode_coding_raw_text): Increment p0 in the loop.
20114
20115 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20116
20117 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20118 for the change of Fset_buffer_multibyte.
20119
20120 * fns.c (Fstring_to_multibyte): New function.
20121 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20122
201232008-02-01 Dave Love <fx@gnu.org>
20124
20125 * xfns.c (x_put_x_image): Declare args.
20126
20127 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20128 (try_font_list): Declare an arg.
20129
20130 * xdisp.c (message2_nolog, set_message): Declare an arg.
20131
20132 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20133
20134 * syntax.c (scan_sexps_forward): Declare an arg.
20135
20136 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20137 Declare an arg.
20138
20139 * lisp.h (Fnew_fontset): Declare.
20140
20141 * keymap.c (push_key_description): Call CHARACTERP correctly.
20142
20143 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20144 (face_for_char): Delete unused vars.
20145 (Fset_fontset_font): Doc fix. Delete unused vars.
20146
20147 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20148
20149 * composite.c (update_compositions): Declare arg.
20150
20151 * cm.c (calccost, cmgoto): Declare args.
20152
20153 * charset.c: Remove `emacs' conditional. Doc fixes.
20154 (map_char_table_for_charset): Declare.
20155
20156 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20157
20158 * ccl.c: Remove `emacs' conditional.
20159
201602008-02-01 Kenichi Handa <handa@m17n.org>
20161
20162 The following changes are to allow specifying multiple font
20163 patterns for a character range (specified by script or charset).
20164
20165 * Makefile.in (abbrev.o): Depend on syntax.h.
20166 (xfaces.o): Depend on charset.h.
20167
20168 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20169 SINGLE_BYTE_CHAR_P.
20170
20171 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20172
20173 * character.h (Vchar_script_table): Extern it.
20174
20175 * character.c (Vscript_alist): Delete.
20176 (Vchar_script_table, Qchar_script_table): New variable.
20177 (syms_of_character): Declare Vchar_script_table as a lisp variable
20178 and initialize it.
20179
20180 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20181 have property char-table-extra-slots, make no extra slot.
20182
20183 * dispextern.h (struct face): Delete member `charset'.
20184 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20185 SINGLE_BYTE_CHAR_P.
20186 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20187 Add prototypes.
20188 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20189 (generate_ascii_font_name): Rename from generate_ascii_font.
20190
20191 * fontset.h (get_font_repertory_func): New prototype.
20192 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20193 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20194
20195 * fontset.c (Qprepend, Qappend): New variables.
20196 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20197 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20198 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20199 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20200 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20201 (load_font_get_repertory): New functions.
20202 (fontset_set): Delete.
20203 (fontset_face): New arg FACE. Return face ID, not face.
20204 Complete re-write to handle new fontset structure. Change caller.
20205 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20206 (face_for_char): Don't call lookup_face.
20207 (make_fontset_for_ascii_face): New arg FACE.
20208 (fs_load_font): New arg CHARSET_ID. Don't check
20209 Vfont_encoding_alist here.
20210 (find_font_encoding): New function.
20211 (list_fontsets): Use STRINGP, not ! NILP.
20212 (accumulate_script_ranges): New function.
20213 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20214 re-written to handle new fontset structure.
20215 (Ffontset_font): Return a copy of element.
20216 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20217 docstring of font-encoding-alist.
20218
20219 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20220 (Fset_fotset_font): Fix arguments to 5.
20221
20222 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20223
20224 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20225 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20226 (highlight_trailing_whitespace): Adjust for the change of
20227 lookup_named_face.
20228
20229 * xfaces.c: Include charset.h.
20230 (load_face_font): Delete argument C. Change caller.
20231 (generate_ascii_font_name): Rename from generate_ascii_font.
20232 (font_name_registry): New function.
20233 (cache_face): Store ascii faces before non-ascii faces in buckets.
20234 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20235 Lookup only ascii faces.
20236 (lookup_non_ascii_face): New function.
20237 (lookup_named_face): Delete argument C. Change caller.
20238 (lookup_derived_face): Delete argument C. Change caller.
20239 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20240 a string, just call font_list with it.
20241 (choose_face_font): Delete arguments FACE and C. New arg
20242 FONT_SPEC. Change caller.
20243 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20244 Change caller.
20245 (realize_non_ascii_face): New function.
20246 (realize_x_face): Call load_face_font here.
20247 (realize_tty_face): Delete argument C. Change caller.
20248 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20249 get a face ID.
20250 (dump_realized_face): Don't print charset of FACE.
20251
20252 * xfns.c (x_set_font): Always call x_new_fontset and
20253 store_frame_parameter.
20254 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20255 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20256
20257 * xterm.h (x_get_font_repertory): Extern it.
20258
20259 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20260 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20261 it->multibyte_p is zero.
20262 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20263 (x_new_fontset): If FONTSETNAME doesn't match any existing
20264 fontsets, create a new one.
20265 (x_get_font_repertory): New function.
20266
202672008-02-01 Kenichi Handa <handa@m17n.org>
20268
20269 * coding.c (Ffind_coding_systems_region_internal): Detect an
20270 ASCII only string correctly.
20271
20272 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20273 version is 0.
20274
202752008-02-01 Kenichi Handa <handa@m17n.org>
20276
20277 * lread.c: Include "coding.h".
20278 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20279 (load_each_byte, unread_char): New variables.
20280 (readchar_backlog): Delete.
20281 (readchar): Return a character unless load_each_byte is nonzero.
20282 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20283 cons. If unread_char is not -1, simply return it.
20284 (unreadchar): Handle the case that readcharfun is
20285 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20286 (read_multibyte): Delete.
20287 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20288 (read_emacs_mule_char): New functions.
20289 (Fload): Even if the file doesn't have the extension ".elc", if
20290 safe_to_load_p returns a positive version number, assume that the
20291 file contains bytecompiled code. If the version is less than 22,
20292 load the file while decoding multibyte sequences by emacs-mule.
20293 (readevalloop): Don't use readchar_backlog.
20294 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20295 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20296 (read_escape): Delete the arg BYTEREP.
20297 (read1): Set load_each_byte to 1 temporarily while handling
20298 #@NUMBER. Don't call read_multibyte.
20299 (read_vector): Call Fread with a cons. If readcharfun is
20300 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20301 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20302 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20303 and Qload_force_doc_strings.
20304
203052008-02-01 Kenichi Handa <handa@m17n.org>
20306
20307 * xdisp.c (face_before_or_after_it_pos): Call
20308 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20309
203102008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * character.h (TRAILING_CODE_P): New macro.
20313 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20314 (string_char_with_unification): Fix prototype.
20315 (Vscript_alist): Extern it.
20316
20317 * character.c (Vscript_alist): New variable.
20318 (string_char_with_unification, str_as_unibyte)
20319 (string_escape_byte8): Add `const' to local variables.
20320 (syms_of_character): Declare script-alist as a Lisp variable.
20321
20322 * charset.h (Vcharset_ordered_list): Extern it.
20323 (charset_ordered_list_tick): Extern it.
20324 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20325 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20326 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20327 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20328 (Funify_charset): Adjust for the change of Funify_charset.
20329
20330 * charset.c (charset_ordered_list_tick): New variable.
20331 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20332 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20333 deunify intead of unify a charset.
20334 (string_xstring_p): Add `const' to local variables.
20335 (find_charsets_in_text): Add `const' to arguments and local variables.
20336 (encode_char): Adjust for the change of Funify_charset. Fix
20337 detecting of invalid code.
20338 (Fset_charset_priority): Increment charset_ordered_list_tick.
20339 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20340 and TO_CODE.
20341
20342 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20343 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20344 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20345 (decode_coding_ccl, consume_chars)
20346 (Ffind_coding_systems_region_internal)
20347 (Fcheck_coding_systems_region): Add `const' to local variables.
20348
20349 * print.c (print_object): Use octal form for printing the
20350 contents of a bool vector.
20351
203522008-02-01 Dave Love <fx@gnu.org>
20353
20354 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20355 <version == 20>: Refuse to load.
20356
203572008-02-01 Dave Love <fx@gnu.org>
20358
20359 * fns.c: Move coding.h.
20360 (Qcodeset, Qdays, Qmonths): New.
20361 (concat): Use CHARACTERP instead of INTEGERP.
20362 (Flocale_codeset): Delete.
20363 (Flanginfo): New function.
20364 (syms_of_fns): Change accordingly.
20365
20366 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20367
203682008-02-01 Dave Love <fx@gnu.org>
20369
20370 * casetab.c (init_casetab_once, init_casetab_once): Fix
20371 CHAR_TABLE_SET call.
20372
20373 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20374
20375 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20376
20377 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20378 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20379 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20380
20381 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20382
20383 * coding.c (ENCODE_DESIGNATION, decode_eol)
20384 (make_conversion_work_buffer, code_conversion_restore)
20385 (Fdefine_coding_system_internal): Convert Lisp types.
20386 (code_conversion_restore): Use EQ, not ==.
20387 (Fencode_coding_string): Fix code_convert_string call.
20388
20389 * coding.h (code_convert_region): Fix prototype.
20390
20391 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20392
20393 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20394 (Ffontset_info): Convert Lisp types.
20395
20396 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20397
20398 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20399
20400 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20401
20402 * chartab.c: Include "...h", not <...h> in some cases.
20403
20404 * callproc.c (Fcall_process): Remove unused variables.
20405
204062008-02-01 Dave Love <fx@gnu.org>
20407
20408 * coding.c (Fset_coding_system_priority): Allow null arg list.
20409
204102008-02-01 Dave Love <fx@gnu.org>
20411
20412 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20413 (Fself_insert_and_exit): Use CHARACTERP.
20414
20415 * callproc.c (Fcall_process): Remove unused vars.
20416
20417 * xterm.c (XTread_socket): Add extra dead keysyms.
20418
20419 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20420
20421 * dispextern.h: Remove prototypes for redraw_frame,
20422 redraw_garbaged_frames.
20423
20424 * cmds.c (Fself_insert_command): Use CHARACTERP.
20425
20426 * chartab.c (make_sub_char_table): Remove unused var.
20427 (Fset_char_table_default, Fmap_char_table): Doc fix.
20428
20429 * keymap.c (access_keymap): Remove generic char code.
20430 (push_key_description): Use CHARACTERP.
20431
204322008-02-01 Dave Love <fx@gnu.org>
20433
20434 * charset.c: Doc fixes.
20435 (Funify_charset): Extra checking.
20436
204372008-02-01 Dave Love <fx@gnu.org>
20438
20439 * lread.c: Remove some unused variables.
20440 (safe_to_load_p): If safe, return the magic number version byte.
20441 (Fload): Maybe use load-with-code-conversion.
20442
204432008-02-01 Kenichi Handa <handa@m17n.org>
20444
20445 * category.c (Fmodify_category_entry): Don't modify the contents
20446 of category_set for characters out of the range. Avoid
20447 unnecessary modification.
20448
20449 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20450 Vchar_unify_table. The default value of the table is now nil.
20451
20452 * character.c (syms_of_character): Setup Vchar_width_table for
20453 eight-bit-control and raw-byte chars.
20454
20455 * charset.h (enum define_charset_arg_index): Delete
20456 charset_arg_parents and add charset_arg_subset and
20457 charset_arg_superset.
20458 (enum charset_attr_index): Delete charset_parents and add
20459 charset_subset and charset_superset.
20460 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20461 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20462 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20463 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20464 (CHARSET_SUPERSET): New macros.
20465 (charset_work): Extern it.
20466 (ENCODE_CHAR): Use charset_work.
20467 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20468 (map_charset_chars): Extern it.
20469
20470 * charset.c (load_charset_map): Set the default value of encoder
20471 and deunifier char-tables to nil.
20472 (map_charset_chars): Change argument. Change callers. Use
20473 map_char_table_for_charset instead of map_char_table.
20474 (Fmap_charset_chars): New optional args from_code and to_code.
20475 (Fdefine_charset_internal): Adjust for the change of
20476 `define-charset' (:parents -> :subset or :superset).
20477 (charset_work): New variable.
20478 (encode_char, syms_of_charset): Adjust for the change of
20479 Fdefine_charset_internal.
20480 (Ffind_charset_string): Setup the vector `charsets' correctly.
20481
20482 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20483 the previous change.
20484 (char_table_ref_and_range): Adjust for the above change.
20485 (map_sub_char_table_for_charset): New function.
20486 (map_char_table_for_charset): New function.
20487
20488 * keymap.c (describe_vector): Handle a char-table directly here.
20489 (describe_char_table): Delete.
20490
20491 * lisp.h (map_charset_chars): Delete.
20492
204932008-02-01 Dave Love <fx@gnu.org>
20494
20495 * fns.c (count_combining): Comment out (unused).
20496 (Flocale_codeset): New.
20497 (syms_of_fns): Defsubr it.
20498
20499 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20500 (size_t): Remove.
20501
205022008-02-01 Dave Love <fx@gnu.org>
20503
20504 * Makefile.in (chartab.o): Depend on charset.h.
20505
205062008-02-01 Kenichi Handa <handa@m17n.org>
20507
20508 * character.c (syms_of_character): Set the default value of
20509 Vprintable_chars to Qnil.
20510
205112008-02-01 Dave Love <fx@gnu.org>
20512
20513 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20514
205152008-02-01 Kenichi Handa <handa@m17n.org>
20516
20517 * charset.c (load_charset_map): Handle the case that from < to
20518 correctly.
20519
20520 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20521 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20522 Pay attention to raw-8-bit chars.
20523
205242008-02-01 Kenichi Handa <handa@m17n.org>
20525
20526 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20527 It is not bytecompiled now.
20528
20529 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20530 (charset_jisx0208): New variables.
20531 (Fdefine_charset_internal): Setup them if appropriate.
20532 (init_charset_once): Initialize them to -1.
20533
20534 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20535 (charset_jisx0208): Extern them.
20536
20537 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20538 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20539 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20540 (setup_iso_safe_charsets): Fix arguments to Fassq.
20541 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20542 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20543 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20544 (encode_coding_iso_2022): Change the 1st arg to
20545 ENCODE_ISO_CHARACTER to a variable.
20546
205472008-02-01 Kenichi Handa <handa@m17n.org>
20548
20549 * charset.h (enum define_charset_arg_index): New enums
20550 charset_arg_min_code and charset_arg_max_code.
20551 (struct charset): New member char_index_offset.
20552
20553 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20554 Take charset->char_index_offset into account.
20555 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20556 args[charset_arg_max_code]. Setup charset.char_index_offset.
20557 (syms_of_charset): Fix args to Fdefine_charset_internal.
20558
205592008-02-01 Dave Love <fx@gnu.org>
20560
20561 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20562
205632008-02-01 Dave Love <fx@gnu.org>
20564
20565 * coding.c: Doc fixes.
20566 (Fcoding_system_aliases): Fix return value.
20567 (Qmac): Remove (duplicated) definition.
20568
205692008-02-01 Dave Love <fx@gnu.org>
20570
362654a6
JB
20571 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20572 New functions.
aac0c6e3
MR
20573
20574 * character.c (Fstring): Doc fix.
20575
20576 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20577
362654a6 20578 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20579 (font-encoding-alist): Doc fix.
20580
205812008-02-01 Dave Love <fx@gnu.org>
20582
20583 * term.c (costs_set): Declare static, non-initialized for pcc.
20584 (encode_terminal_code): Remove unused var.
20585
20586 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20587 for K&R.
20588
20589 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20590
20591 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20592 (suffixes): Move out of make_subsidiaries for K&R.
20593
20594 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20595
20596 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20597
205982008-02-01 Dave Love <fx@gnu.org>
20599
20600 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20601
20602 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20603
206042008-02-01 Yong Lu <lyongu@asia-infonet.com>
20605
20606 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20607
20608 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20609
206102008-02-01 Kenichi Handa <handa@m17n.org>
20611
20612 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20613 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20614
206152008-02-01 Kenichi Handa <handa@m17n.org>
20616
20617 * coding.c (decode_coding_charset): Adjust for the change of
20618 Fdefine_coding_system_internal.
20619 (Fdefine_coding_system_internal): For a coding system of
20620 `charset' type, store a list of charset IDs in
20621 `charset_attr_charset_valids' element of coding attributes.
20622
206232008-02-01 Kenichi Handa <handa@m17n.org>
20624
20625 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20626 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20627 caller. Handle 2-byte and 3-byte charsets correctly.
20628 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20629 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20630 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20631 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20632 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20633 sequence.
20634 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20635 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20636 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20637 and alt&rule composition.
20638 (decode_coding_iso_2022): Handle composition correctly.
20639 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20640
20641 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20642 re-defining a charset. If the charset has :emacs-mule-id, setup
20643 emacs_mule_bytes.
20644 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20645
206462008-02-01 Kenichi Handa <handa@m17n.org>
20647
20648 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20649 (encode_coding_big5, encode_coding_charset): If coding requires safe
20650 encoding, produce a character specified by
20651 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20652
206532008-02-01 Dave Love <fx@gnu.org>
20654
20655 * xterm.c (XSetIMValues): Declare.
20656
20657 * process.c: Conditionally include sys/wait.h, pty.h.
20658
20659 * print.c (print_object): Fix print format for 64-bit systems.
20660
20661 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20662
20663 * buffer.c (emacs_strerror): Declare.
20664
20665 * fontset.c (Fclear_face_cache): Declare.
20666 (accumulate_font_info): Comment-out (unused).
20667 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20668 variables.
20669
20670 * character.h (string_escape_byte8): Declare.
20671
20672 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20673 unused vars.
20674 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20675 (Fmap_charset_chars): Doc fix.
20676
20677 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20678 (Fset_coding_system_priority, Fset_coding_system_priority)
20679 (Fdefine_coding_system_internal): Doc fix.
20680
206812008-02-01 Dave Love <fx@gnu.org>
20682
20683 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20684
206852008-02-01 Kenichi Handa <handa@m17n.org>
20686
20687 * character.c (string_escape_byte8): Make multibyte string with
20688 correct size.
20689
20690 * charset.c (Fmake_char): Delete unnecessary code.
20691
206922008-02-01 Kenichi Handa <handa@m17n.org>
20693
20694 * xfns.c (x_encode_text): Allocate coding.destination here, and
20695 call encode_coding_object with dst_object Qnil.
20696
20697 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20698 multibyte form correctly.
20699
20700 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20701 against Vfont_encoding_alist.
20702
20703 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20704 handling of charset list.
20705 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20706 (decode_coding_object): Move point to coding->dst_pos before
20707 calling post-read-conversion function.
20708 (encode_coding_object): Give correct arguments to
20709 pre-write-conversion. Ignore the return value of
20710 pre-write-conversion function. Pay attention to the case that
20711 pre-write-conversion changes the current buffer. If dst_object is
20712 Qt, even if coding->src_bytes is zero, allocate at least one byte
20713 to coding->destination.
20714
20715 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20716
20717 * charset.c (Fmake_char): Make it more backward compatible.
20718 (Fmap_charset_chars): Fix docstring.
20719
207202008-02-01 Dave Love <fx@gnu.org>
20721
20722 * coding.c: Doc fixes.
20723 (Fdefine_coding_system_alias): Use names, not symbols, in
20724 coding-system-alist.
20725
207262008-02-01 Kenichi Handa <handa@m17n.org>
20727
20728 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20729 of calling free_realized_face.
20730
207312008-02-01 Yong Lu <lyongu@asia-infonet.com>
20732
20733 * charset.c (read_hex): Don't treat SPC as a comment starter.
20734 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20735 (Fdecode_char): Fix typo.
20736
207372008-02-01 Kenichi Handa <handa@m17n.org>
20738
20739 * charset.h (struct charset): New member `code_space_mask'.
20740
20741 * coding.c (coding_set_source): Delete the local variable beg_byte.
20742 (encode_coding_charset, Fdefine_coding_system_internal):
20743 Delete the local variable charset.
20744 (Fdefine_coding_system_internal): Setup
20745 attrs[coding_attr_charset_valids] correctly.
20746
20747 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20748 member to check if CODE is valid or not.
20749 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20750 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20751 is within the range of charset->min_code and carset->max_code.
20752
207532008-02-01 Dave Love <fx@gnu.org>
20754
20755 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20756
20757 * dispextern.h (generate_ascii_font): Fix return type.
20758
20759 * xfaces.c (generate_ascii_font): Fix arg declaration.
20760
20761 * coding.c (coding_inherit_eol_type)
20762 (Fset_terminal_coding_system_internal)
20763 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20764
207652008-02-01 Kenichi Handa <handa@m17n.org>
20766
20767 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20768 multiple charsets correctly.
20769
207702008-02-01 Kenichi Handa <handa@m17n.org>
20771
20772 * search.c (boyer_moore): Fix handling of multibyte character
20773 translation.
20774
20775 * xdisp.c (display_mode_element): When the variable `elt' is
20776 changed, update `this' and `lisp_string'.
20777
207782008-02-01 Kenichi Handa <handa@m17n.org>
20779
20780 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20781
20782 * callproc.c (Fcall_process): Be sure to give the current buffer
20783 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20784
20785 * charset.c (struct charset_map_entries): New struct.
20786 (load_charset_map): Rename from parse_charset_map. New args
20787 entries and n_entries. Change caller.
20788 (load_charset_map_from_file): Rename from load_charset_map.
20789 Change caller. New arg control_flag. Call load_charset_map at
20790 the tail.
20791 (load_charset_map_from_vector): New function.
20792 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20793 (encode_char): If the charset is compact, change a character index
20794 to a code point.
20795
20796 * coding.c (coding_alloc_by_making_gap): Check the case that the
20797 source and destination are the same correctly.
20798 (decode_coding_raw_text): Set coding->consumed_char and
20799 coding->consumed to 0.
20800 (produce_chars): If coding->chars_at_source is nonzero, update
20801 coding->consumed_char and coding->consumed before calling
20802 alloc_destination.
20803 (Fdefine_coding_system_alias): Register ALIAS in
20804 Vcoding_system_alist.
20805 (syms_of_coding): Define `no-conversion' coding system at the tail.
20806
20807 * fileio.c (Finsert_file_contents): Set coding_system instead of
20808 val. If the current buffer is multibyte, always call
20809 decode_coding_gap.
20810
20811 * xfaces.c (try_font_list): Give higher priority to fontset's
20812 family than face's family.
20813
208142008-02-01 Kenichi Handa <handa@m17n.org>
20815
20816 * callproc.c (Fcall_process): Be sure to give the current buffer
20817 to decode_coding_c_string.
20818
20819 * xfaces.c (try_font_list): Give a family specified in a fontset
20820 higher priority than a family specified in a face.
20821
208222008-02-01 Kenichi Handa <handa@m17n.org>
20823
20824 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20825 Fix arguments to insert_from_buffer.
20826
20827 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20828
208292008-02-01 Kenichi Handa <handa@m17n.org>
20830
20831 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20832 (decode_coding_gap): Set coding->dst_multibyte correctly.
20833
208342008-02-01 Kenichi Handa <handa@m17n.org>
20835
20836 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20837 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20838 (encode_coding_utf_16): Substitute coding->default_char for
20839 non-Unicode characters.
20840 (decode_coding): Don't call record_insert here.
20841 (setup_coding_system): Initialize `surrogate' of
20842 coding->spec.utf_16 to 0.
20843 (EMIT_ONE_BYTE): Fix for multibyte case.
20844
20845 * insdel.c (insert_from_gap): Call record_insert.
20846
208472008-02-01 Kenichi Handa <handa@m17n.org>
20848
20849 * casefiddle.c (casify_region): Fix multibyte case.
20850
20851 * character.c (c_string_width): Add return type `int'.
20852 (char_string_with_unification): Delete arg ADVANCED.
20853
20854 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20855 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20856 (CHAR_STRING_ADVANCE): Make it do-while statement.
20857
20858 * chartab.c (sub_char_table_set_range): Optimize for the case
20859 DEPTH == 3. Add workaround code for a GCC optimization bug.
20860
20861 * charset.c (parse_charset_map): Remove an unused variable.
20862
20863 * coding.c: Delete unused variables.
20864
20865 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20866 earlier. If inserted is zero and the coding system doesn't
20867 require flushing, don't call decode_coding_gap.
20868
20869 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20870
208712008-02-01 Kenichi Handa <handa@m17n.org>
20872
20873 The following changes are for using Unicode as an internal
20874 character model, and use UTF-8 format for buffer/string
20875 representation.
20876
20877 * .gdbinit (xchartable): Adjust for the change of char table structure.
20878 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20879
20880 * Makefile.in (obj): Add character.o and chartab.o.
20881 (lisp, shortlisp): Remove utf-8.elc.
20882 (*.o): For many files, change dependency on charset.h to
20883 character.h, and add dependency on character.h.
20884 (character.o, chartab.o): New targets.
20885
20886 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20887 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20888 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20889 of "charset.h".
20890
20891 * dired.c, filelock.c: Include "character.h".
20892
20893 * alloc.c: Include "character.h" instead of "charset.h".
20894 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20895 (syms_of_alloc): Remove defsubr for Smake_char_table.
20896
20897 * buffer.c: Include "character.h" instead of "charset.h", don't
20898 include "coding.h".
20899 (Fset_buffer_multibyte): Adjust for UTF-8.
20900
20901 * buffer.h: EXFUN Fbuffer_live_p.
20902
20903 * callproc.c: Include "character.h" instead of "charset.h".
20904 (Fcall_process): Big change for the new code-conversion APIs.
20905
20906 * casetab.c: Include "character.h" instead of "charset.h".
20907 (set_canon, set_identity, shuffle): Adjust for the new
20908 map_char_table spec.
20909 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20910 accessing the char table structure.
20911
20912 * chartab.c: New file that implements char table.
20913
20914 * category.c: Include "character.h".
20915 (copy_category_entry): New function.
20916 (copy_category_table): Call map_char_table and copy_category_entry.
20917 (Fmake_category_table): Initialize all top-level slots.
20918 (char_category_set): New function.
20919 (modify_lower_category_set): Delete.
20920 (Fmodify_category_entry): Call char_table_ref_and_range.
20921
20922 * category.h (CATEGORY_SET): Just call char_category_set.
20923
20924 * ccl.c: Include "character.h".
20925 (Qccl, Qcclp): New variables.
20926 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20927 it's less than 256.
20928 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20929 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20930 and DST type.
20931 (ccl_driver): Change types of argument, adjust code accordingly.
20932 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20933 ccl_driver.
20934 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20935
20936 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20937 New members src_multibyte, dst_multibyte, consumed, and produced.
20938 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20939 (CODING_SPEC_CCL_PROGRAM): New macro.
20940 (ccl_driver): Update prototype.
20941 (Qccl, Qcclp, Fccl_program_p): Extern them.
20942 (CHECK_CCL_PROGRAM): New macro.
20943
20944 * character.c, character.h, chartab.c: New files.
20945
20946 * charset.c: Mostly re-written. Move character and multibyte sequence
20947 handling codes to character.c.
20948
20949 * charset.h: Mostly re-written. Move character and multibyte sequence
20950 handling codes to character.h.
20951
20952 * coding.c, coding.h: Mostly re-written.
20953
20954 * composite.c: Include "character.h" instead of "charset.h".
20955 (CHAR_WIDTH): Move to character.h.
20956 (HASH_KEY, HASH_VALUE): Delete.
20957
20958 * composite.h (enum composition_method): Change order of enumeration
20959 symbols.
20960
20961 * data.c: Include "character.h" instead of "charset.h".
20962 (Faref): Call CHAR_TABLE_REF for a char table.
20963 (Faset): Call CHAR_TABLE_SET for a char table.
20964
20965 * dispextern.h (free_realized_face, check_face_attribytes)
20966 (generate_ascii_font): Extern them.
20967 (free_realized_multibyte_face): Delete extern.
20968
20969 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20970 table structure.
20971
20972 * editfns.c: Include "character.h" instead of "charset.h".
20973 (Fchar_to_string): Always call CHAR_STRING.
20974
20975 * emacs.c (main): Call init_charset_once, init_charset,
20976 syms_of_chartab, and syms_of_character.
20977
20978 * fileio.c: Include "character.h" instead of "charset.h".
20979 (Finsert_file_contents): Big change for the new code-conversion API.
20980 (choose_write_coding_system, Fwrite_region): Likewise.
20981 (build_annotations_2): Delete.
20982 (e_write): Big change for the new code-conversion API.
20983
20984 * fns.c: Include "character.h" instead of "charset.h".
20985 (copy_sub_char_table): Move to chartab.c.
20986 (Fcopy_sequence): Call copy_char_table for a char table.
20987 (concat): Delete codes calling count_multibyte.
20988 (string_char_to_byte, string_byte_to_char): Adjust for the new
20989 multibyte form.
20990 (internal_equal): Adjust for the change of char table structure.
20991 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20992 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20993 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20994 (char_table_translate, optimize_sub_char_table)
20995 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20996 chartab.c.
20997 (char_table_ref_and_index): Delete.
20998 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20999 (Fmd5): Call preferred_coding_system instead of accessing
21000 Vcoding_category_list. Adjust for the new code-conversion API.
21001 (syms_of_fns): Move defsubr for char table related functions to
21002 chartab.c.
21003
21004 * fontset.c: Mostly re-written.
21005
21006 * fontset.h (struct font_info): Change type of the member encoding_type.
21007 (enum FONT_SPEC_INDEX): New enum.
21008 (fontset_font_pattern, fs_load_font): Update prototype.
21009 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21010
21011 * indent.c: Include "character.h" instead of "charset.h".
21012 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21013
21014 * insdel.c: Include "character.h" instead of "charset.h".
21015 (copy_text): Don't refer to Vnonascii_translation_table.
21016 (insert_from_gap): New function.
21017
21018 * keyboard.c: Include "character.h" instead of "charset.h".
21019 (command_loop_1): Never call direct_output_forward_char before
21020 a non-ASCII character.
21021 (read_char): If Vkeyboard_translate_table is a char table, always
21022 translate a character.
21023
21024 * keymap.c: Include "character.h".
21025 (store_in_keymap): Handle the case that IDX is a cons.
21026 (Fdefine_key): Handle the case that KEY is a cons and the car part
21027 is also a cons (range).
21028 (push_key_description): Adjust for the new character code.
21029 (describe_vector): Call describe_char_table for a char table.
21030 (describe_char_table): New function.
21031
21032 * keymap.h (describe_char_table): Extern it.
21033
21034 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21035 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21036 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21037 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21038 Delete.
21039 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21040 structure.
21041 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21042 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21043 (CHARTAB_SIZE_BITS_3): New macros.
21044 (chartab_size): Extern it.
21045 (struct Lisp_Char_Table): Re-design.
21046 (struct Lisp_Sub_Char_Table): New structure.
21047 (HASH_KEY, HASH_VALUE): Move from fns.c.
21048 (CHARACTERBITS): Define as 22.
21049 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21050 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21051 (GC_SUB_CHAR_TABLE_P): New macro.
21052 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21053 (code_convert_string_norecord): Deleted extern.
21054 (init_character_once, syms_of_character, init_charset)
21055 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21056
21057 * lread.c: Include "character.h".
21058 (read_multibyte): New arg NBYTES.
21059 (read_escape): Change the meaning of returned *BYTEREP.
21060 (to_multibyte): Delete.
21061 (read1): Adjust the handling of char table and string.
21062
21063 * print.c: Include "character.h" instead of "charset.h".
21064 (print_string): Convert 8-bit raw bytes to octal form by
21065 string_escape_byte8.
21066 (print_object): Adjust for the new multibyte form. Print 8-bit
21067 raw bytes always in octal form. Handle sub char table correctly.
21068
21069 * process.c: Include "character.h" instead of "charset.h".
21070 (read_process_output, send_process): Adjust for the new
21071 code-conversion API.
21072
21073 * puresize.h (BASE_PURESIZE): Increase.
21074
21075 * regex.c: Include "character.h" instead of "charset.h".
21076 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21077 (regex_compile): Accept a range whose starting and ending
21078 character have different leading bytes.
21079 (analyse_first): Adjust for the above change.
21080
21081 * search.c: Include "character.h" instead of "charset.h".
21082 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21083 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21084
21085 * syntax.c: Include "character.h" instead of "charset.h".
21086 (syntax_parent_lookup): Delete.
21087 (Fmodify_syntax_entry): Accept a cons as CHAR.
21088 (skip_chars): Adjust for the new multibyte form.
21089 (init_syntax_once): Call char_table_set_range instead of directly
21090 accessing the structure of a char table.
21091
21092 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21093 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21094 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21095 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21096
21097 * term.c: Include "buffer.h" and "character.h".
21098 (encode_terminal_code, write_glyphs): Adjust for the new
21099 code-conversion API.
21100 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21101
21102 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21103
21104 * xdisp.c: Include "character.h".
21105 (get_next_display_element): Adjust for the new multibyte form.
21106 (disp_char_vector): Adjust for the new char table structure.
21107 (decode_mode_spec_coding): Adjust for the new structure of
21108 coding system.
21109 (decode_mode_spec): Adjust for the new code-conversion API.
21110
21111 * xfaces.c: Include "character.h" instead of "charset.h".
21112 (load_face_font): Adjust for the change of choose_face_font and
21113 FS_LOAD_FONT.
21114 (generate_ascii_font): New function.
21115 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21116 (set_font_frame_param): Adjust for the change of choose_face_font.
21117 (free_realized_face): Make it public.
21118 (free_realized_faces_for_fontset): Rename from
21119 free_realized_multibyte_face. Free also faces realized for ASCII.
21120 (choose_face_font): Change arguments. Adjust for the change of
21121 fontset_font_pattern and FS_LOAD_FONT.
21122
21123 * xfns.c: Include "character.h".
21124 (x_encode_text): Adjust for the new code-conversion API.
21125
21126 * xselect.c: Don't include "charset.h".
21127 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21128
21129 * xterm.c: Include "character.h".
21130 (x_encode_char): New argument CHARSET. Change caller.
21131 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21132 Call ENCODE_CHAR instead of SPLIT_CHAR.
21133 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21134 CHAR_WIDTH instead of CHARSET_WIDTH.
21135 (XTread_socket): Adjust for the new code-conversion API.
21136 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21137 (x_load_font): Adjust for the change of struct font.
21138
211392008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21140
21141 * xfaces.c (face_at_buffer_position): Remove unused vars.
21142
211432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21144
21145 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21146 Fix overflow checking.
21147
211482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21149
21150 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21151 Cancel previous change.
21152
211532008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21154
21155 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21156 ccl->eight_bit_control. Fix check for buffer overflow.
21157 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21158 (ccl_driver): Initialize extra_bytes to 0.
21159
211602008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21161
21162 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21163 return it ORed with ctrl_modifier.
21164
211652008-01-29 Miles Bader <miles@gnu.org>
21166
21167 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21168
211692008-01-28 Jason Rumney <jasonr@gnu.org>
21170
21171 * w32.c (stat): Don't double check for networked drive.
21172
211732008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21174
21175 * window.c (run_window_configuration_change_hook): New function.
21176 Code extracted from set_window_buffer. Set the selected frame.
21177 (set_window_buffer): Use it.
21178 * window.h (run_window_configuration_change_hook): Declare.
21179 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21180
21181 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21182
211832008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21184
21185 * Makefile.in: Remove references to unused macros.
21186
211872008-01-26 Eli Zaretskii <eliz@gnu.org>
21188
21189 * w32.c (g_b_init_get_sid_sub_authority)
21190 (g_b_init_get_sid_sub_authority_count): New static variables.
21191 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21192 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21193 (init_user_info): Use them to retrieve uid and gid.
21194 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21195 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21196 st_uid and st_gid of the file.
21197
211982008-01-26 Jason Rumney <jasonr@gnu.org>
21199
21200 * w32.c (logon_network_drive): New function.
21201 (stat): Use it.
21202
212032008-01-26 Chong Yidong <cyd@stupidchicken.com>
21204
21205 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21206 invisible text covered with an ellipsis.
21207
212082008-01-25 Richard Stallman <rms@gnu.org>
21209
21210 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21211 jump back to beginning. Move some other initializations after that.
21212 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21213 New variables.
21214 (syms_of_xdisp): Init them.
21215
21216 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21217
21218 * buffer.c (reset_buffer_local_variables):
21219 Implement `permanent-local-hook'.
21220 (Qpermanent_local_hook): New variable.
21221 (syms_of_buffer): Init and staticpro it.
21222
212232008-01-25 Michael Albinus <michael.albinus@gmx.de>
21224
21225 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21226
212272008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21228
21229 * fns.c (Fclrhash): Return TABLE.
21230
212312008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21232
21233 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21234 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21235 is set even without positional changes.
21236 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21237
21238 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21239
212402008-01-23 Jason Rumney <jasonr@gnu.org>
21241
21242 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21243
21244 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21245 the unicode range available in MULE by locale-coding-system.
21246 Improve dbcs lead byte detection. Set event timestamp and modifiers
21247 earlier.
21248
212492008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21250
21251 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21252 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21253 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21254 when used on child processes.
21255
212562008-01-21 Michael Albinus <michael.albinus@gmx.de>
21257
21258 * dbusbind.c (Fdbus_method_return_internal): Rename from
21259 Fdbus_method_return.
21260 (Fdbus_unregister_object): Move to dbus.el.
21261 (Fdbus_call_method, Fdbus_method_return_internal)
21262 (Fdbus_send_signal): Improve debug messages.
21263
212642008-01-20 Martin Rudalics <rudalics@gmx.at>
21265
21266 * undo.c (undo_inhibit_record_point): New variable.
21267 (syms_of_undo): Initialize it.
21268 (record_point): Don't record point when undo_inhibit_record_point
21269 is set.
21270
212712008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21272
21273 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21274
21275 * xdisp.c (Qauto_hscroll_mode): New var.
21276 (syms_of_xdisp): Initialize it.
21277 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21278 window's buffer.
21279 (hscroll_windows): Don't check automatic_hscrolling_p here.
21280
21281 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21282 vscroll if we're setting window-buffer to the value it already has.
21283
212842008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21285
21286 * m/intel386.h: Remove references to XENIX.
21287
212882008-01-17 Andreas Schwab <schwab@suse.de>
21289
21290 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21291 instead of HAVE_X86_64_LIB64_DIR.
21292 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21293
212942008-01-17 Glenn Morris <rgm@gnu.org>
21295
21296 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21297 to HAVE_X86_64_LIB64_DIR.
21298
212992008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21300
21301 * s/irix3-3.h:
21302 * s/irix4-0.h:
21303 * s/386-ix.h:
21304 * s/domain.h:
21305 * s/hpux9-x11r4.h:
21306 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21307
21308 * sysdep.c: Remove code containing references to symbols defined
21309 by unsupported systems.
21310
213112008-01-16 Glenn Morris <rgm@gnu.org>
21312
21313 * coding.c (select-safe-coding-system-function): Doc fix.
21314
213152008-01-15 Glenn Morris <rgm@gnu.org>
21316
21317 * config.in: Revert 2008-01-13 change: this is a generated file.
21318
213192008-01-13 Tom Tromey <tromey@redhat.com>
21320
21321 * lisp.h: Fix typo.
21322
213232008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21324
21325 * m/sequent-ptx.h:
21326 * m/sequent.h:
21327 * s/ptx.h:
21328 * s/ptx4-2.h:
21329 * s/ptx4.h: Remove files for systems no longer supported.
21330
21331 * callproc.c (Fcall_process): Fix previous change.
21332
213332008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21334
21335 * unexsunos4.c: Remove file, system not supported anymore.
21336
21337 * m/mips.h:
21338 * m/intel386.h:
21339 * callproc.c:
21340 * config.in:
21341 * ecrt0.c:
21342 * emacs.c:
21343 * fileio.c:
21344 * frame.c:
21345 * getpagesize.h:
21346 * keyboard.c:
21347 * lread.c:
21348 * process.c:
21349 * puresize.h:
21350 * sysdep.c:
21351 * systty.h:
21352 * syswait.h:
21353 * unexec.c:
21354 * xdisp.c:
21355 * alloc.c: Remove code containing references to symbols defined by
21356 unsupported systems.
21357
213582008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21359
21360 * coding.c (detect_coding_mask): Fix previous change.
21361
213622008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21363
21364 * coding.c (detect_coding_iso2022): New arg
21365 latin_extra_code_state. Allow Latin extra codes only
21366 when *latin_extra_code_state is nonzero.
21367 (detect_coding_mask): If there is a NULL byte, detect the encoding
21368 as UTF-16 or binary. If Latin extra codes exist, detect the
21369 encoding as ISO-2022 only when there's no other proper encoding is
21370 found.
21371
213722008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21373
21374 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21375 #ifdef MAC_OS.
21376
213772008-01-08 Richard Stallman <rms@gnu.org>
21378
21379 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21380
213812008-01-06 Nick Roberts <nickrob@snap.net.nz>
21382
21383 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21384 menu bar in parentheses.
21385
213862008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21387
21388 * m/7300.h:
21389 * m/acorn.h:
21390 * m/alliant-2800.h:
21391 * m/alliant.h:
21392 * m/alliant1.h:
21393 * m/alliant4.h:
21394 * m/altos.h:
21395 * m/amdahl.h:
21396 * m/apollo.h:
21397 * m/att3b.h:
21398 * m/aviion-intel.h:
21399 * m/aviion.h:
21400 * m/celerity.h:
21401 * m/clipper.h:
21402 * m/cnvrgnt.h:
21403 * m/convex.h:
21404 * m/cydra5.h:
21405 * m/delta88k.h:
21406 * m/dpx2.h:
21407 * m/dual.h:
21408 * m/elxsi.h:
21409 * m/f301.h:
21410 * m/gould-np1.h:
21411 * m/gould.h:
21412 * m/i860.h:
21413 * m/ibmps2-aix.h:
21414 * m/ibmrt-aix.h:
21415 * m/ibmrt.h:
21416 * m/irist.h:
21417 * m/is386.h:
21418 * m/isi-ov.h:
21419 * m/mega68.h:
21420 * m/mg1.h:
21421 * m/news-r6.h:
21422 * m/news-risc.h:
21423 * m/news.h:
21424 * m/nh3000.h:
21425 * m/nh4000.h:
21426 * m/ns16000.h:
21427 * m/ns32000.h:
21428 * m/nu.h:
21429 * m/orion.h:
21430 * m/orion105.h:
21431 * m/paragon.h:
21432 * m/pfa50.h:
21433 * m/plexus.h:
21434 * m/pyramid.h:
21435 * m/pyrmips.h:
21436 * m/sh3el.h:
21437 * m/sps7.h:
21438 * m/sr2k.h:
21439 * m/stride.h:
21440 * m/sun1.h:
21441 * m/sun2.h:
21442 * m/sun3-68881.h:
21443 * m/sun3-fpa.h:
21444 * m/sun3-soft.h:
21445 * m/sun3.h:
21446 * m/sun386.h:
21447 * m/symmetry.h:
21448 * m/tad68k.h:
21449 * m/tahoe.h:
21450 * m/targon31.h:
21451 * m/tek4300.h:
21452 * m/tekxd88.h:
21453 * m/tower32.h:
21454 * m/tower32v3.h:
21455 * m/ustation.h:
21456 * m/wicat.h:
21457 * m/xps100.h:
21458 * s/cxux.h:
21459 * s/cxux7.h:
21460 * s/dgux.h:
21461 * s/dgux4.h:
21462 * s/dgux5-4-3.h:
21463 * s/dgux5-4r2.h:
21464 * s/esix.h:
21465 * s/esix5r4.h:
21466 * s/hiuxmpp.h:
21467 * s/hiuxwe2.h:
21468 * s/iris3-5.h:
21469 * s/iris3-6.h:
21470 * s/isc2-2.h:
21471 * s/isc3-0.h:
21472 * s/isc4-0.h:
21473 * s/isc4-1.h:
21474 * s/newsos5.h:
21475 * s/newsos6.h:
21476 * s/osf1.h:
21477 * s/osf5-0.h:
21478 * s/riscix1-1.h:
21479 * s/riscix12.h:
21480 * s/sco4.h:
21481 * s/sco5.h:
21482 * s/sunos4-0.h:
21483 * s/sunos4-1.h:
21484 * s/sunos413.h:
21485 * s/sunos4shr.h:
21486 * s/umax.h:
21487 * s/unipl5-2.h:
21488 * s/xenix.h:
21489 * cxux-crt0.s:
21490 * unexapollo.c:
21491 * unexconvex.c:
21492 * unexenix.c:
21493 * unexsni.c: Remove files for systems no longer supported.
21494
21495 * m/intel386.h: Remove references to unsupported systems.
21496
21497 * w32.c (get_emacs_configuration): Remove reference to i860.
21498
21499 * sysdep.c: Remove dead code.
21500
215012008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21502
21503 * s/rtu.h:
21504 * m/masscomp.h: Remove files. Platform is obsolete.
21505
215062008-01-04 Michael Albinus <michael.albinus@gmx.de>
21507
21508 * dbusbind.c (Fdbus_method_return): New function.
21509 (xd_read_message): Add the serial number to the event.
21510 (Fdbus_register_method): Activate the function.
21511
215122008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21513
21514 * keyboard.c (read_key_sequence): Fix typo.
21515
215162008-01-03 Michael Albinus <michael.albinus@gmx.de>
21517
21518 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21519 (xd_signature, xd_append_arg): Handle element type detection for
21520 empty arrays.
21521 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21522 SDATA () calls; this must be solved more general.
21523 (Fdbus_register_signal): Use SBYTES instead of strlen.
21524
215252008-01-03 Magnus Henoch <magnus@zemdatav>
21526
21527 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21528 unsigned int for byte values (necessary for big-endian platform).
21529 (Fdbus_call_method): Handle the case of no returned arguments.
21530
215312007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21532
21533 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21534
215352007-12-31 Magnus Henoch <mange@freemail.hu>
21536
21537 * dbusbind.c (xd_signature): Signature of variant is just "v".
21538
215392007-12-30 Michael Albinus <michael.albinus@gmx.de>
21540
21541 * dbusbind.c: Fix several errors and compiler warnings.
21542 Reported by Tom Tromey <tromey@redhat.com>.
21543 (XD_ERROR, XD_DEBUG_MESSAGE)
21544 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21545 (xd_append_arg): Part for basic D-Bus types rewritten.
21546 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21547 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21548 appropriate.
21549 (xd_read_message): Return Qnil. Don't signal an error; it is not
21550 useful during event reading.
21551 (Fdbus_register_signal): Signal an error if the check for
21552 FUNCTIONP fails.
21553 (Fdbus_register_method): New function. The implementation is not
21554 complete, the call of the function signals an error therefore.
21555 (Fdbus_unregister_object): New function, renamed from
21556 Fdbus_unregister_signal. The initial check signals an error, if
21557 the object is not well formed.
21558
215592007-12-30 Richard Stallman <rms@gnu.org>
21560
21561 * textprop.c (get_char_property_and_overlay):
21562 Signal error if POSITION is out of range in a buffer.
21563
215642007-12-29 Martin Rudalics <rudalics@gmx.at>
21565
21566 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21567 because the original parameters are in pure storage now.
21568
215692007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21570
21571 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21572
215732007-12-22 Eli Zaretskii <eliz@gnu.org>
21574
21575 * callint.c (syms_of_callint) <command-history>: Add reference to
21576 history-length in the doc string.
21577
215782007-12-17 Jason Rumney <jasonr@gnu.org>
21579
21580 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21581 before passing as wParam.
21582
215832007-12-22 Michael Albinus <michael.albinus@gmx.de>
21584
21585 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21586 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21587 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21588 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21589 as number.
21590 (Fdbus_call_method): Fix docstring.
21591
215922007-12-21 Michael Albinus <michael.albinus@gmx.de>
21593
21594 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21595 New macros.
21596 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21597 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21598 Simplify.
21599 (xd_signature): New function.
21600 (xd_append_arg): Compute also signatures. Major rewrite.
21601 (xd_retrieve_arg): Make debug messages friendly.
21602 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21603 Check for signatures of arguments.
21604
216052007-12-19 Michael Albinus <michael.albinus@gmx.de>
21606
21607 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21608 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21609 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21610 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21611 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21612 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21613 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21614 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21615 (xd_retrieve_value): Remove. Functionality included in ...
21616 (xd_append_arg): New function.
21617 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21618
216192007-12-16 Michael Albinus <michael.albinus@gmx.de>
21620
21621 * dbusbind.c (top): Include <stdio.h>.
21622 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21623 dbus_message_new_method_call and dbus_message_new_signal.
21624 (Fdbus_register_signal): Rename unique_name to uname.
21625 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21626 non-existing unique name. Fix typos in matching rule. Return an
21627 object which is useful in Fdbus_unregister_signal.
21628 (Fdbus_unregister_signal): Reimplementation, in order to remove
21629 only the corresponding entry.
21630 (Vdbus_registered_functions_table): Change the order of entries.
21631 Apply these changes in xd_read_message and Fdbus_register_signal.
21632
216332007-12-16 Andreas Schwab <schwab@suse.de>
21634
21635 * fileio.c (Finsert_file_contents): Fix overflow check to not
21636 depend on undefined integer overflow.
21637
216382007-12-14 Jason Rumney <jasonr@gnu.org>
21639
21640 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21641 for characters above 127.
21642
216432007-12-13 Jason Rumney <jasonr@gnu.org>
21644
21645 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21646 before dereferencing array.
21647 (lookup_vk_code): Remove zero comparison.
21648
216492007-12-14 Michael Albinus <michael.albinus@gmx.de>
21650
21651 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21652 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21653 Use `unsigned int' instead of `uint'.
21654 (xd_read_message, Fdbus_register_signal): Split expressions into
21655 multiple lines before operators "&&" and "||", according to the
21656 GNU Coding Standards.
21657
216582007-12-14 Eli Zaretskii <eliz@gnu.org>
21659
21660 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21661
216622007-12-12 Juri Linkov <juri@jurta.org>
21663
21664 * buffer.c (Frename_buffer): In interactive spec replace
21665 `read-buffer' with `read-string' that uses `buffer-name-history'
21666 as history, and the current buffer's name as default.
21667
216682007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21669
21670 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21671 manipulating the backtrace manually.
21672 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21673 (struct backtrace, backtrace_list): Remove.
21674 (command_loop_1): Remove dead var `no_direct'.
21675
21676 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21677 preserve non-built-in buffer-local variables.
21678 (Fkill_all_local_variables): Don't re-create&re-set permanent
21679 buffer-local variables.
21680
216812007-12-09 Juri Linkov <juri@jurta.org>
21682
21683 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21684 Lisp code that uses `read-buffer' with current buffer as default.
21685
216862007-12-08 Michael Albinus <michael.albinus@gmx.de>
21687
21688 * dbusbind.c (xd_read_message): Generate an event for every
21689 registered handler. There might be several handlers registered
21690 for the same signal.
21691 (Fdbus_register_signal): Don't overwrite a registration for the
21692 same signal. Add a new registration if handlers are different.
21693 (Vdbus_registered_functions_table): Rework doc string.
21694
216952007-12-07 Michael Albinus <michael.albinus@gmx.de>
21696
21697 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21698 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21699 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21700 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21701 Unify argument lists.
21702 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21703 arguments and hash table keys. Use unique name for service.
21704 (Fdbus_unregister_signal): Remove checks.
21705 (Vdbus_registered_functions_table): Fix doc string.
21706
217072007-12-05 Magnus Henoch <mange@freemail.hu>
21708
21709 * process.c (make_process): Initialize pty_flag to 0.
21710
217112007-12-05 Jason Rumney <jasonr@gnu.org>
21712
21713 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21714 specified XBMs.
21715
217162007-12-05 Richard Stallman <rms@gnu.org>
21717
21718 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21719
217202007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21721
21722 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21723 New variable.
21724 (mac_try_close_socket) [MAC_OSX]: New function.
21725 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21726 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21727
21728 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21729 Use mac_try_close_socket.
21730
217312007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21732
21733 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21734 reloc_base.
21735 (copy_dysymtab): Compute relocation base here.
21736 (rebase_reloc_address) [__ppc64__]: New function.
21737 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21738 changed.
21739
217402007-12-05 Jason Rumney <jasonr@gnu.org>
21741
21742 * w32proc.c (sys_spawnve): Quote args with wildcards.
21743
217442007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21745
21746 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21747 __objc_* sections.
21748 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21749
217502007-12-05 Michael Albinus <michael.albinus@gmx.de>
21751
21752 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21753 Move check for Vdbus_registered_functions_table to
21754 xd_read_queued_messages.
21755 (xd_read_queued_messages): Protect xd_read_message calls by
21756 internal_condition_case_1.
21757
217582007-12-04 Michael Albinus <michael.albinus@gmx.de>
21759
21760 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21761 Qdbus_system_bus and Qdbus_session_bus, respectively.
21762 (Vdbus_intern_symbols): Remove.
21763 (Vdbus_registered_functions_table): New hash table.
21764 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21765 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21766 Rewrite in order to manage registered functions by hash table
21767 Vdbus_registered_functions_table.
21768
217692007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21770
21771 * xterm.c: Update URL to Window Manager Specification in comment.
21772
217732007-12-02 Michael Albinus <michael.albinus@gmx.de>
21774
21775 * config.in (HAVE_DBUS): Add.
21776
21777 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21778 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21779 (obj): Add $(DBUS_OBJ).
21780 (LIBES): Add $(DBUS_LIBS).
21781 (dbusbind.o): New target.
21782
21783 * dbusbind.c: New file.
21784
21785 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21786
21787 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21788 (Qdbus_event): New Lisp symbol.
21789 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21790 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21791 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21792
21793 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21794
217952007-12-01 Richard Stallman <rms@gnu.org>
21796
21797 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21798
217992007-11-30 Jason Rumney <jasonr@gnu.org>
21800
21801 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21802 (w32con_reset_terminal_modes): Clear screen buffer.
21803 (w32_face_attributes): Don't use color indexes that are out of range.
21804 Only reverse the default colors.
21805
21806 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21807 WINDOWSNT.
21808
21809 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21810
218112007-11-29 Jason Rumney <jasonr@gnu.org>
21812
21813 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21814 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21815 if the terminal colors are initialized.
21816 (unspecified_fg, unspecified_bg): Remove unused declarations.
21817
218182007-11-29 Andreas Schwab <schwab@suse.de>
21819
21820 * keyboard.c (apply_modifiers): Fix typo.
21821
218222007-11-29 Richard Stallman <rms@gnu.org>
21823
21824 * keymap.c (Fcurrent_local_map): Doc fix.
21825
218262007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21827
21828 * s/gnu-kfreebsd.h: New file.
21829
218302007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21831
21832 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21833 Don't cast redundantly.
21834
21835 * keyboard.c (KEY_TO_CHAR): New macro.
21836 (parse_modifiers, apply_modifiers): Accept integer arguments.
21837 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21838 for chars and symbol keys.
21839 After doing such remapping, apply function-key-map again.
21840
218412007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21842
21843 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21844 compiled anymore.
21845
218462007-11-26 Andreas Schwab <schwab@suse.de>
21847
21848 * process.c (list_processes_1): Fix indentation level of the
21849 command column.
21850
218512007-11-23 Andreas Schwab <schwab@suse.de>
21852
21853 * editfns.c (Fformat): Handle %c specially since it requires the
21854 argument to be of type int.
21855
218562007-11-23 Markus Triska <markus.triska@gmx.at>
21857
21858 * emacs.c (main): Call init_editfns before init_process, since
21859 init_process sets Vprocess_connection_type depending on OS release.
21860
218612007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21862
21863 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21864 (find_symbol_value): Use do_symval_forwarding.
21865
21866 * data.c (set_internal): Set the value in the `cons-cell' (for
21867 Buffer_Local_values) not only for frame-local variables.
21868
218692007-11-22 Andreas Schwab <schwab@suse.de>
21870
21871 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21872 values to sprintf.
21873 * keymap.c (Fsingle_key_description): Likewise.
21874 * print.c (print_object): Likewise.
21875
218762007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21877
21878 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21879 file for image is nil.
21880
218812007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21882
21883 * term.c: Include stdarg.h.
21884 (fatal): Implement using varargs.
21885 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21886
218872007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21888
21889 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21890 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21891 Update call to buffer_slot_type_mismatch.
21892 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21893 (buffer_slot_type_mismatch): Update.
21894 * buffer.c (buffer_local_types): Remove.
21895 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21896 (defvar_per_buffer): Set the type in the buffer_objfwd.
21897
218982007-11-21 Jason Rumney <jasonr@gnu.org>
21899
21900 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21901 CreateFileMapping returns NULL on failure.
21902
219032007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21904
21905 * search.c (Fset_match_data): Remove the `evaporate' feature.
21906 (unwind_set_match_data): Don't use the `evaporate' feature.
21907
219082007-11-21 Jason Rumney <jasonr@gnu.org>
21909
21910 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21911
21912 * w32console.c (w32con_write_glyphs): Remove unused variables.
21913
219142007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21915
21916 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21917
21918 * s/darwin.h (MULTI_KBOARD): Remove.
21919
21920 * macfns.c (x_create_tip_frame, Fx_create_frame)
21921 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21922
219232007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21924
21925 * buffer.c (Fbuffer_local_value): Remove redundant test.
21926 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21927 than in `current-buffer' to match the comment.
21928 Do the swap using swap_in_global_binding.
21929
21930 * data.c (store_symval_forwarding, set_internal):
21931 * eval.c (specbind): Remove dead code.
21932
21933 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21934 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21935 Since we do not want to see internal Lisp_*fwd objects here.
21936
219372007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21938
21939 * sysdep.c (init_system_name): Use getaddrinfo if available.
21940
21941 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21942 (x_scroll_bar_note_movement): start, end, with, height in struct
21943 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21944
219452007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21946
21947 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21948
219492007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21950
21951 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21952 This undoes Richard's change of 14-Oct-2002.
21953
21954 * alloc.c (allocate_other_vector):
21955 * lisp.h (allocate_other_vector): Remove.
21956
21957 * window.c (struct save_window_data): Move non-lisp data to the end
21958 and make it `int' rather than Lisp_Object.
21959 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21960 Done wrap/unwrap integer values.
21961 (Fset_window_configuration, compare_window_configurations):
21962 Update use of fields to their new types.
21963
21964 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21965 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21966 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21967 (SET_SCROLL_BAR_X_WINDOW): Remove.
21968 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21969 Access the new x_window field directly.
21970 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21971 Don't wrap/unwrap integers into Lisp_Objects.
21972 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21973 (x_scroll_bar_report_motion):
21974 Don't wrap/unwrap integers into Lisp_Objects.
21975 (x_term_init): Use SDATA.
21976 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21977 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21978 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21979 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21980 * xfns.c (x_set_background_color):
21981 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21982 Access the new x_window field directly.
21983
21984 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21985 (allocate_pseudovector): Make non-static.
21986
21987 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21988 (allocate_pseudovector): Declare.
21989 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21990
219912007-11-15 Andreas Schwab <schwab@suse.de>
21992
21993 * editfns.c (Fformat): Correctly format EMACS_INT values.
21994 Also take precision into account when formatting an integer.
21995
21996 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21997
219982007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21999
22000 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22001 (syms_of_keyboard): Defsubr it.
22002
22003 * data.c (swap_in_global_binding): Fix longstanding bug where
22004 store_symval_forwarding was not called with the right second argument,
22005 thus causing objfwd-ing from being dropped.
22006
220072007-11-14 Juanma Barranquero <lekktu@gmail.com>
22008
22009 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22010 (Fx_display_pixel_height, Fx_display_planes)
22011 (Fx_display_color_cells, Fx_server_max_request_size)
22012 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22013 (Fx_display_visual_class, Fx_display_save_under):
22014 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22015 (Fx_display_pixel_height, Fx_display_planes)
22016 (Fx_display_color_cells, Fx_server_max_request_size)
22017 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22018 (Fx_display_mm_height, Fx_display_mm_width)
22019 (Fx_display_backing_store, Fx_display_visual_class)
22020 (Fw32_select_font, Fx_display_save_under):
22021 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22022 (Fx_display_pixel_height, Fx_display_planes)
22023 (Fx_display_color_cells, Fx_server_max_request_size)
22024 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22025 (Fx_display_save_under): Fix typos in docstrings.
22026
220272007-11-14 Juanma Barranquero <lekktu@gmail.com>
22028
22029 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22030 corresponding to deleted entries; they are an implementation detail.
22031 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22032 Remove variables.
22033 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22034 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22035 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22036 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22037 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22038 (Fw32_define_rgb_color, Fw32_load_color_file)
22039 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22040 Fix typos in docstrings.
22041 (Fx_server_version): Reflow docstring.
22042 (Fw32_shell_execute): Doc fixes.
22043
220442007-11-13 Juanma Barranquero <lekktu@gmail.com>
22045
22046 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22047 if w32_parse_hot_key returned nil.
22048
220492007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22050
22051 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22052
220532007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22054
aac0c6e3
MR
22055 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22056
22057 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22058
22059 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22060 Remove W32_SCROLL_BAR_CLICK_EVENT.
22061
22062 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22063 Add MULTIMEDIA_KEY_EVENT.
22064
22065 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22066 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22067 (make_lispy_event) [WINDOWSNT]: Use it to translate
22068 MULTIMEDIA_KEY_EVENT.
22069
22070 * w32term.h (WM_APPCOMMAND): Define if not already.
22071 (GET_APPCOMMAND_LPARAM): Likewise.
22072
22073 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22074 WM_APPCOMMAND.
22075
22076 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22077 (syms_of_w32fns): Export and initialize it.
22078 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22079
220802007-11-09 Chong Yidong <cyd@stupidchicken.com>
22081
22082 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22083 twice.
22084
22085 * xdisp.c (handle_face_prop): Fix last change.
22086
220872007-11-09 Richard Stallman <rms@gnu.org>
22088
22089 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22090 not just for after-strings and before-strings.
22091 Call face_for_overlay_string and pass the overlay to it.
22092 (handle_display_prop): Determine whether property came from an overlay.
22093 Pass OVERLAY arg to handle_single_display_spec.
22094 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22095 (load_overlay_strings): Fill in it->string_overlays.
22096 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22097
22098 * xfaces.c (face_for_overlay_string): Function renamed from
22099 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22100
22101 * dispextern.h (struct it): New elt string_overlays.
22102 New elt from_overlay, also in stack.
22103 Rearrange a few elements.
22104 (face_for_overlay_string): Decl renamed from
22105 face_at_buffer_position_no_overlays, and add argument.
22106
221072007-11-09 Richard Stallman <rms@gnu.org>
22108
22109 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22110 to get the base face for an overlay string.
22111
22112 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22113
22114 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22115
22116 * xdisp.c (handle_stop): Move some code out of loop.
22117
221182007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22119
22120 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22121 Fix conversion from Lisp object to ATSUFontID.
22122
221232007-11-09 Jason Rumney <jasonr@gnu.org>
22124
22125 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22126
221272007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22128
22129 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22130 Don't assume regions are aligned to page boundary.
22131 (print_load_command_name): Add LC_UUID if defined.
22132
221332007-11-09 Richard Stallman <rms@gnu.org>
22134
22135 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22136
221372007-11-07 Jason Rumney <jasonr@gnu.org>
22138
22139 * s/windows95.h: Remove.
22140
221412007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22142
22143 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22144 abort with a message on unhandled store_type values.
22145
221462007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22147
22148 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22149 Remove HAVE_X11R5 and HAVE_X11R4.
22150
221512007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22152
22153 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22154
221552007-11-01 Johan Bockgård <bojohan@gnu.org>
22156
22157 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22158 Don't set s->stippled_p here, since it has already been set by
22159 x_set_glyph_string_gc from x_draw_glyph_string.
22160
221612007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22162
22163 * sunfns.c: Remove file.
22164
22165 * m/sun386.h:
22166 * m/sun2.h:
22167 * m/sparc.h: Remove Sun windows code.
22168
221692007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22170
22171 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22172 (init_keyboard): Set current_kboard's window-system to nil.
22173 (tty_read_avail_input): Typo.
22174 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22175
221762007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22177
22178 * s/usg5-4.h:
22179 * s/usg5-3.h:
22180 * s/ptx.h:
22181 * m/is386.h:
22182 * m/ibmps2-aix.h:
22183 * Makefile.in: Remove all mentions of X10.
22184
22185 * dispnew.c (syms_of_display): Don't mention version 10.
22186
221872007-10-28 Juanma Barranquero <lekktu@gmail.com>
22188
22189 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22190 ($(BLD)/abbrev.$(O)): Remove.
22191
221922007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22193
22194 Rewrite abbrev.c in Elisp.
22195 * image.c (Qcount): Don't declare as extern.
22196 (syms_of_image): Initialize and staticpro `Qcount'.
22197 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22198 * emacs.c (main): Don't call syms_of_abbrev.
22199 * Makefile.in (obj): Remove abbrev.o.
22200 (abbrev.o): Remove.
22201 * abbrev.c: Remove.
22202
222032007-10-26 Martin Rudalics <rudalics@gmx.at>
22204
22205 * window.c (window_min_size_2): Don't count header-line.
22206
222072007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22208
22209 * frame.h (struct frame): Move all bit fields after the first bit
22210 field to take advantage of the available space. Group all the
22211 chars together to reduce wasted space due to padding.
22212
222132007-10-26 Juanma Barranquero <lekktu@gmail.com>
22214
22215 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22216
22217 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22218 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22219 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22220 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22221 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22222 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22223 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22224 (last_marked, mark_object_loop_halt): Make static.
22225
22226 * frame.c (syms_of_frame) <delete-frame-functions>:
22227 Fix typo in docstring.
22228
222292007-10-25 Juanma Barranquero <lekktu@gmail.com>
22230
22231 * w32.c (init_environment): Fix tiny memory leak.
22232 (w32_get_resource): Remove unused variable `ok'.
22233
222342007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22235
22236 Make `window-system' into a keyboard-local variable (rather than
22237 frame-local as done originally by multi-tty).
22238
22239 * keyboard.h (struct kboard): Add Vwindow_system.
22240 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22241 (mark_kboards): Mark Vwindow_system.
22242
22243 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22244 (init_display): Don't set the obsolete `window-system' frame-param.
22245
22246 * xterm.c (x_term_init):
22247 * w32term.c (w32_create_terminal):
22248 * term.c (init_tty): Set Vwindow_system.
22249 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22250 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22251
22252 * xfns.c (Fx_create_frame, x_create_tip_frame):
22253 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22254 * macfns.c (Fx_create_frame):
22255 Don't set the obsolete `window-system' frame-param.
22256
22257 * frame.h (Qwindow_system): Remove.
22258 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22259 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22260
222612007-10-24 Richard Stallman <rms@gnu.org>
22262
22263 * frame.c (x_figure_window_size): For fullscreen case,
22264 set USPosition | PPosition without clobbering rest of window_prompting.
22265
22266 * keyboard.c (Fcurrent_idle_time): Doc fix.
22267
22268 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22269
222702007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22271
22272 * process.c (unwind_request_sigio): Only define if __ultrix__.
22273
22274 * callproc.c (child_setup): Remove spurious *.
22275
22276 * lisp.h (Fget_text_property): Declare.
22277 (have_menus_p): Declare it here rather than in sys-dep header files.
22278 * macterm.h (have_menus_p):
22279 * msdos.h (have_menus_p):
22280 * xterm.h (have_menus_p): Remove.
22281
22282 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22283 (Fmake_variable_frame_local): Just check the variable's const-ness
22284 rather than checking nil or t.
22285
222862007-10-22 Jason Rumney <jasonr@gnu.org>
22287
22288 * w32fns.c: Include math.h.
22289 (w32_abort): Declaration moved to nt/config.nt.
22290
22291 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22292 (abort): Redefinition moved to nt/config.nt.
22293
22294 * m/windowsnt.h: Remove.
22295
222962007-10-22 Juanma Barranquero <lekktu@gmail.com>
22297
22298 * emacs.c (Fdump_emacs): Fix typo in message.
22299 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22300 <installation-directory>: Reflow docstring.
22301
223022007-10-22 Juri Linkov <juri@jurta.org>
22303
22304 * minibuf.c: Allow minibuffer default to be a list of default values.
22305 With empty input use the first element of this list as returned default.
22306 (string_to_object)
22307 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22308 (read_minibuf): If defalt is cons, set histstring to its car.
22309 (Fread_string): If default_value is cons, set val to its car.
22310 (Fread_buffer): If def is cons, use its car.
22311 (Fcompleting_read): If defalt is cons, set val to its car.
22312
223132007-10-21 Michael Albinus <michael.albinus@gmx.de>
22314
22315 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22316
223172007-10-20 Juanma Barranquero <lekktu@gmail.com>
22318
22319 * doc.c (Fdocumentation): Check for advice in all cases.
22320
223212007-10-19 Chong Yidong <cyd@stupidchicken.com>
22322
22323 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22324
223252007-10-19 Richard Stallman <rms@gnu.org>
22326
22327 * doc.c (Fdocumentation): Check for and handle an advised function.
22328
223292007-10-19 Juanma Barranquero <lekktu@gmail.com>
22330
22331 * process.c (Fset_process_filter): Doc fix.
22332
223332007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22334
22335 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22336 which caused key-translation-map to applied repeatedly (thus breaking
22337 double-mode).
22338
223392007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22340
22341 * xselect.c (x_own_selection, x_handle_selection_clear)
22342 (x_clear_frame_selections):
22343 * w32menu.c (list_of_panes, list_of_items):
22344 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22345 * textprop.c (validate_plist, interval_has_all_properties)
22346 (interval_has_some_properties, interval_has_some_properties_list)
22347 (add_properties, text_property_list):
22348 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22349 * minibuf.c (Fassoc_string):
22350 * macselect.c (x_own_selection, x_clear_frame_selections)
22351 (Fx_disown_selection_internal):
22352 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22353 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22354
223552007-10-17 Chong Yidong <cyd@stupidchicken.com>
22356
22357 * process.c: Link to libs for calling res_init() if available.
22358 (Fmake_network_process): Call res_init() before getaddrinfo or
22359 gethostbyname, if possible.
22360
223612007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22362
22363 * lread.c (read1): Set pvectype for char_tables.
22364
22365 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22366 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22367 Add type checks.
22368 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22369
22370 * alloc.c (free_misc): Use XMISCTYPE.
22371 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22372
223732007-10-17 Glenn Morris <rgm@gnu.org>
22374
22375 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22376 (syms_of_minibuf): Add Qcompletion_ignore_case.
22377 * dired.c (Qcompletion_ignore_case): Change to external.
22378 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22379 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22380 (Fread_file_name): Use it rather than intern'ing.
22381
22382 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22383 (Fread_coding_system): Ignore case of user input.
22384
223852007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22386
22387 * xdisp.c (handle_display_prop): Ignore display specs after
22388 replacing one when string text is being replaced.
22389 (handle_single_display_spec): Pretend as if characters with display
22390 property haven't been consumed only when buffer text is being replaced.
22391
223922007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22393
22394 * xfns.c (Fx_create_frame, Fx_display_list):
22395 * window.c (window_fixed_size_p, enlarge_window)
22396 (shrink_window_lowest_first):
22397 * macterm.c (init_font_name_table):
22398 * macfns.c (Fx_create_frame, Fx_display_list):
22399 * lread.c (close_load_descs):
22400 * keyboard.c (read_char_x_menu_prompt):
22401 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22402 * coding.c (code_convert_region_unwind): Test the type of an object
22403 rather than just !NILP before extracting data from it.
22404
22405 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22406
22407 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22408 (XMISCANY): New macro.
22409 (XMISCTYPE): Use it.
22410 (struct Lisp_Misc_Any): New type.
22411 (union Lisp_Misc): Use it.
22412 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22413 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22414 (find_symbol_value, set_internal, default_value, Fset_default)
22415 (Fmake_variable_buffer_local, Fmake_local_variable)
22416 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22417 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22418 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22419 * alloc.c (allocate_buffer): Set the size and tag.
22420 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22421 Use XMISCANY.
22422 (die): Follow the GNU convention for error messages.
22423 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22424 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22425 tag any more.
22426 (set_buffer_internal_1):
22427 * frame.c (store_frame_param):
22428 * eval.c (specbind):
22429 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22430
22431 * doc.c (Fsnarf_documentation): Simplify.
22432
224332007-10-14 Juanma Barranquero <lekktu@gmail.com>
22434
22435 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22436 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22437
224382007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22439
22440 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22441
224422007-10-14 Juanma Barranquero <lekktu@gmail.com>
22443
22444 * eval.c (do_autoload): Don't save autoloads.
22445
22446 * data.c (Ffset): Save autoload of the function being set.
22447
224482007-10-07 John Paul Wallington <jpw@pobox.com>
22449
22450 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22451 parameter before setting up faces.
22452
224532007-10-13 Eli Zaretskii <eliz@gnu.org>
22454
22455 * ccl.c (Fregister_code_conversion_map):
22456 * keyboard.c (append_tool_bar_item): Reformat last change.
22457
22458 * lisp.h (eabs): Rename from `abs'. All callers changed.
22459
224602007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22461
22462 * buffer.c (add_overlay_mod_hooklist):
22463 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22464 * fontset.c (make_fontset):
22465 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22466 (append_tool_bar_item):
22467 * macmenu.c (grow_menu_items):
22468 * w32menu.c (grow_menu_items):
22469 * xmenu.c (grow_menu_items): Use larger_vector.
22470
224712007-10-13 Eli Zaretskii <eliz@gnu.org>
22472
22473 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22474 selected frame'' on MSDOS).
22475
224762007-10-12 Martin Rudalics <rudalics@gmx.at>
22477
22478 * frame.c (Qexplicit_name): New variable.
22479 (x_report_frame_params): Report it in parameter alist.
22480 (syms_of_frame): Intern and staticpro it.
22481
224822007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22483
22484 * macfns.c (x_create_tip_frame): Set terminal for frame.
22485
224862007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22487
22488 * frame.c (Qenvironment): Remove.
22489 (syms_of_frame) <Qenvironment>: Don't initialize.
22490 (Fdelete_frame): Don't treat the `environment' param specially.
22491 * frame.h (Qenvironment): Don't declare.
22492 * callproc.c (set_initial_environment): Don't set unused frame param.
22493
22494 * frame.c (Fframe_with_environment): Remove.
22495 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22496
22497 * lisp.h (Fframe_with_environment): Don't declare.
22498
224992007-10-10 Juanma Barranquero <lekktu@gmail.com>
22500
22501 * indent.c (indent_tabs_mode, last_known_column)
22502 (last_known_column_modified): Make static.
22503 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22504
225052007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22506
22507 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22508
225092007-10-09 Jason Rumney <jasonr@gnu.org>
22510
22511 * w32term.c (x_set_window_size): Disable code that attempts to tell
22512 Lisp code about a size change before it actually happens.
22513
225142007-10-09 Richard Stallman <rms@gnu.org>
22515
22516 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22517 return HANDLED_RETURN.
22518
225192007-10-08 Martin Rudalics <rudalics@gmx.at>
22520
22521 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22522 when there's an unread command event.
22523
22524 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22525 window autoselection act appropriately when leaving selected frame.
22526 (syms_of_frame): Initialize focus_follows_mouse.
22527 * frame.h (focus_follows_mouse): Extern it.
22528 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22529 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22530 * msdos.c (dos_rawgetc): Likewise.
22531 * w32term.c (w32_read_socket): Likewise.
22532 * xterm.c (handle_one_xevent): Likewise.
22533 * xdisp.c (syms_of_xdisp): In doc-string of
22534 mouse-autoselect-window mention focus-follows-mouse.
22535
225362007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22537
22538 * macterm.c (mac_load_query_font): Fix missing return value.
22539 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22540 Add BLOCK_INPUT.
22541
225422007-10-08 Richard Stallman <rms@gnu.org>
22543
22544 * xdisp.c (get_window_cursor_type): Implement documented behavior
22545 for cursor-in-non-selected-windows = t.
22546
225472007-10-08 Jason Rumney <jasonr@gnu.org>
22548
22549 * w32.c (w32_get_resource): Always close registry keys.
22550
225512007-10-08 Jason Rumney <jasonr@gnu.org>
22552
22553 * makefile.w32-in (LIBS): Add COMCTL32.
22554
22555 * w32fns.c (globals_of_w32fns): Init common controls.
22556
225572007-10-08 Richard Stallman <rms@gnu.org>
22558
22559 * image.c (our_memory_buffer): Rename from omfib_buffer.
22560
225612007-10-08 Richard Stallman <rms@gnu.org>
22562
22563 * buffer.c (Foverlays_at): Doc fix.
22564
225652007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22566
22567 * fns.c (Fplist_put): Preserve uneven tail data.
22568
225692007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22570
22571 * termhooks.h (enum event_kind): Remove trailing comma.
22572
22573 * frame.h (enum): Remove trailing comma.
22574
225752007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22576
22577 * w32proc.c (delete_child): Don't terminate threads of zombies.
22578
225792007-10-08 Martin Rudalics <rudalics@gmx.at>
22580
22581 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22582
22583 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22584 last-repeatable-command.
22585 (init_kboard): Initialize Vlast_repeatable_command.
22586 (command_loop_1): Set it to real_this_command unless that was
22587 bound to an input event.
22588 (mark_kboards): Mark it.
22589
225902007-10-08 Richard Stallman <rms@gnu.org>
22591
22592 * eval.c (condition-case): Doc fix.
22593
225942007-10-08 Masatake YAMATO <jet@gyve.org>
22595
22596 * xfaces.c (tty_supports_face_attributes_p): Fix code
22597 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22598 was copied and not edited.
22599
226002007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22601
22602 Add new `input-decode-map' keymap and use it for terminal
22603 escape sequences.
22604 * keyboard.h (struct kboard): Add Vinput_decode_map.
22605 Remove Vlocal_key_translation_map.
22606 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22607 (init_kboard): Init input-decode-map.
22608 Replace local-key-translation-map back with key-translation-map.
22609 (syms_of_keyboard): Declare input-decode-map.
22610 Remove local-key-translation-map. Update docstrings.
22611 (mark_kboards): Mark Vinput_decode_map.
22612 Don't mark Vlocal_key_translation_map.
22613 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22614 Replace local-key-translation-map back with key-translation-map.
22615 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22616 Bind in input-decode-map rather than function-key-map.
22617
22618 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22619 This was made redundant by the previous introduction of XSETPVECTYPE.
22620
226212007-10-09 Richard Stallman <rms@gnu.org>
22622
22623 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22624
226252007-09-29 Richard Stallman <rms@gnu.org>
22626
22627 * eval.c (internal_condition_case_2, internal_condition_case_1)
22628 (internal_condition_case): Reenable abort if x_catching_errors ()
22629 to see if that really happens and why.
22630
226312007-10-06 Andreas Schwab <schwab@suse.de>
22632
22633 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22634
226352007-10-04 Juanma Barranquero <lekktu@gmail.com>
22636
22637 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22638
226392007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22640
22641 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22642
226432007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22644
22645 * window.h (struct window):
22646 * window.c (struct save_window_data, struct saved_window):
22647 * termhooks.h (struct terminal):
22648 * process.h (struct Lisp_Process):
22649 * frame.h (struct frame):
22650 * buffer.h (struct buffer):
22651 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22652 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22653 The size field of (pseudo)vectors is now unsigned.
22654 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22655
22656 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22657 Turn `count' into an integer.
22658
22659 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22660 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22661 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22662 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22663 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22664
22665 * alloc.c (allocate_pseudovector): New fun.
22666 (ALLOCATE_PSEUDOVECTOR): New macro.
22667 (allocate_window, allocate_terminal, allocate_frame)
22668 (allocate_process): Use it.
22669 (mark_vectorlike): New function.
22670 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22671 (mark_terminals): Use it.
22672 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22673 (Fmake_byte_code): Use XSETPVECTYPE.
22674
22675 * frame.c (Fframe_parameters): Minor simplification.
22676
22677 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22678
22679 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22680
22681 * buffer.c (Fget_buffer_create, init_buffer_once):
22682 * lread.c (defsubr):
22683 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22684
22685 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22686 defined differently in the m/*.h files.
22687 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22688 (XSETPVECTYPE): New macro.
22689 (XSETPSEUDOVECTOR): Use it.
22690
22691 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22692 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22693
22694 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22695 * lread.c (defvar_per_buffer):
22696 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22697
22698 * window.c (candidate_window_p): Only consider as visible frames that
22699 are on the same terminal.
22700
22701 * m/ibms390x.h (MARKBIT): Remove unused macro.
22702
227032007-10-01 Juanma Barranquero <lekktu@gmail.com>
22704
22705 * lread.c (Fload): Fix typo in docstring.
22706
227072007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22708
22709 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22710 of a non-zero value can't yield zero.
22711
227122007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22713
22714 * term.c (term_clear_mouse_face, term_mouse_highlight)
22715 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22716
22717 * print.c (safe_debug_print): Use XHASH.
22718
22719 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22720 Lisp elements such as tags.
22721 (XHASH): New macro.
22722 (EQ): Use it.
22723 (SREF, SSET, STRING_COPYIN): Use SDATA.
22724 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22725
22726 * alloc.c (mark_terminal): Remove left-over declaration.
22727 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22728 (allocate_vectorlike): Remove type argument. Adjust callers.
22729 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22730 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22731
22732 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22733 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22734 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22735 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22736 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22737 Use them.
22738
22739 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22740 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22741 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22742
227432007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22744
22745 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22746 loaded by default.
22747
227482007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22749
22750 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22751 on this tty.
22752 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22753
22754 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22755 Update all users.
22756 (handle_one_term_event): Use Gpm_DrawPointer.
22757 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22758 Signal errors instead of returning nil. Always return nil.
22759 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22760 Make it a noop if gpm-mouse was not activated.
22761 (syms_of_term): Update names.
22762
227632007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22764
22765 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22766 (init_sys_modes): Check that gpm_tty is the current tty.
22767
22768 * alloc.c (allocate_terminal): Set the vector size to only count the
22769 lisp fields. Initialize those to nil.
22770 (mark_object): Don't treat terminals specially.
22771 (mark_terminal): Remove.
22772 (mark_terminals): Use mark_object instead.
22773
22774 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22775 the GC to the beginning.
22776
22777 * indent.h:
22778 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22779
22780 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22781
227822007-09-25 Jason Rumney <jasonr@gnu.org>
22783
22784 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22785
22786 * w32console.c (create_w32cons_output): Remove.
22787
22788 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22789
22790 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22791 (reset_sys_modes): Use reset_terminal_modes_hook.
22792
227932007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22794
22795 * eval.c (do_autoload): Don't output any message.
22796
227972007-09-24 Juri Linkov <juri@jurta.org>
22798
22799 * emacs.c (standard_args): Change priority of "--no-splash"
22800 from 40 to 3. Add "--no-desktop" with the same priority.
22801
228022007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22803
22804 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22805 and optimize the case where they are all 1.
22806
228072007-09-23 Johannes Weiner <hannes@saeurebad.de>
22808
22809 * lisp.h (abs): Define if not defined.
22810 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22811 Don't define `abs', since it's defined in lisp.h.
22812
228132007-09-22 Eli Zaretskii <eliz@gnu.org>
22814
22815 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22816 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22817 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22818 (init_tty): Use DEV_TTY instead of "/dev/tty".
22819 [WINDOWSNT]: No need to protect from NAME arg being null.
22820
228212007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22822
22823 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22824 up the tty state.
22825
228262007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22827
22828 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22829 (gpm_tty): Change its type.
22830 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22831 (gpm_tty): Change its type and initialize it.
22832 (Fterm_open_connection): Check the frame is indeed a tty.
22833 Use the new gpm_tty.
22834 (Fterm_close_connection): Use the new gpm_tty.
22835 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22836 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22837
228382007-09-21 Juanma Barranquero <lekktu@gmail.com>
22839
22840 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22841 underline_color, to draw strike-through.
22842
228432007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22844
22845 * lisp.h (allocate_terminal): Declare.
22846
22847 * window.c (candidate_window_p): Consider frames that are being placed
22848 by the user as somewhere between visible and iconified.
22849 (window_loop): Prefer windows on the current frame.
22850 (Fselect_window): Move the use of select-frame to the beginning so we
22851 can just delegate all the work (it'll call us back anyway).
22852
22853 * frame.c (Qdisplay_environment_variable):
22854 * frame.h (Qdisplay_environment_variable): Delete.
22855
22856 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22857 of the first arg, since that value may be a union.
22858
22859 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22860 parameter rather than Qdisplay_environment_variable. If all else
22861 fails, look for DISPLAY in initial-environment.
22862
228632007-09-21 Glenn Morris <rgm@gnu.org>
22864
22865 * Makefile.in (emacstool): Remove target.
22866 (lisp, shortlisp): Remove termdev.elc.
22867
228682007-09-21 Markus Triska <markus.triska@gmx.at>
22869
22870 * xterm.c (x_delete_display): Compile session management conditionally.
22871
228722007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22873
22874 * callproc.c (getenv_internal_1): New function.
22875 (getenv_internal): Use it.
22876 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22877
22878 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22879 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22880 (Fset_terminal_parameter): Work with dead terminals as well.
22881 (Fmodify_terminal_parameters): Remove.
22882
22883 * terminal.c (get_terminal): Handle terminals.
22884 Make sure the terminal returned is live.
22885 (create_terminal): Use allocate_terminal.
22886 (mark_terminals): Move to alloc.c.
22887 (delete_terminal): Use terminal->name as liveness status.
22888 NULL out fields after freeing their contents.
22889 Don't deallocate the object.
22890 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22891 rather than an int.
22892 (Fterminal_live_p): Accept non-integer arguments.
22893 (Fterminal_list): Return terminal objects rather than an ints.
22894
22895 * alloc.c (enum mem_type): New member for `terminal' objects.
22896 (allocate_terminal): New function.
22897 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22898 Handle terminals.
22899 (mark_terminal): New fun.
22900 (mark_terminals): Move from terminal.c.
22901
22902 * term.c (get_tty_terminal): Don't treat output_initial specially.
22903 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22904 (delete_tty): Use terminal->name as liveness status.
22905
22906 * termhooks.h (struct terminal): Make it into a pseudovector.
22907 Remove `deleted' replaced by checking `name's nullness.
22908
22909 * print.c (print_object): Handle terminals.
22910
22911 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22912 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22913
22914 * frame.c (make_terminal_frame):
22915 * keyboard.c (tty_read_avail_input):
22916 * w32term.c (x_delete_terminal):
22917 * xfns.c (Fx_create_frame, x_create_tip_frame):
22918 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22919
229202007-09-20 Glenn Morris <rgm@gnu.org>
22921
22922 * process.c (Fmake_network_process): Doc fix.
22923
229242007-09-19 Jason Rumney <jasonr@gnu.org>
22925
22926 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22927
229282007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22929
22930 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22931 Fix a C warning regarding variable constness.
22932
22933 * xterm.c (handle_one_xevent): Fix a C warning.
22934
229352007-09-18 Jason Rumney <jasonr@gnu.org>
22936
22937 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22938
229392007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22940
22941 * gtkutil.c (gdpy_def): New variable.
22942 (xg_initialize): Initialize gdpy_def.
22943 (xg_display_close): If no other display exists, set gdpy_def to a
22944 new connection.
22945
229462007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22947
22948 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22949 when we have no file name for the icon.
22950 (xg_tool_bar_expose_callback): Remove.
22951 (xg_create_tool_bar): Don't connect expose signal to
22952 xg_tool_bar_expose_callback.
22953 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22954
229552007-09-16 Andreas Schwab <schwab@suse.de>
22956
22957 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22958 values instead of zapping them.
22959
229602007-09-14 Glenn Morris <rgm@gnu.org>
22961
22962 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22963 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22964 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22965 scope and rename to omfib_buffer for clarity.
22966 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22967
229682007-09-14 Kenichi Handa <handa@m17n.org>
22969
22970 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22971
229722007-09-13 Jason Rumney <jasonr@gnu.org>
22973
22974 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22975
22976 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22977
22978 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22979 (mac_term_init): Call here instead, passing rif.
22980
229812007-09-13 Glenn Morris <rgm@gnu.org>
22982
22983 * s/hpux.h: No longer define `static' as nothing.
22984
229852007-09-13 Johan Bockgård <bojohan@gnu.org>
22986
22987 * callint.c (Fcall_interactively): Remove unused var `fun'.
22988
229892007-09-12 Romain Francoise <romain@orebokech.com>
22990
22991 * window.c (prefer_window_split_horizontally, display_buffer):
22992 Revert 2007-09-08 change.
22993
229942007-09-12 Glenn Morris <rgm@gnu.org>
22995
22996 * alloca.c: Remove file.
22997 * Makefile.in (alloca): Do not undef.
22998 (allocaobj, alloca.o): Remove.
22999 (otherobj): Remove allocaobj.
23000 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23001 * regex.c (C_ALLOCA): Remove all references and code that was only
23002 used when this was defined.
23003 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23004 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23005 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23006
23007 * Makefile.in (SOURCES, unlock, relock): Delete.
23008
23009 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23010 (menu_grab_callback): All uses changed.
23011
23012 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23013 (x_reply_selection_request): All uses changed.
23014
230152007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23016
23017 * lread.c (load_warn_old_style_backquotes): Change message to look
23018 better when it appears in the middle of byte-compiler messages.
23019
230202007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23021
23022 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23023
23024 * xterm.c (x_create_terminal): Add comment.
23025
23026 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23027
230282007-09-10 Richard Stallman <rms@gnu.org>
23029
23030 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23031
230322007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23033
23034 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23035 (DEFUN): Document `intspec', use it instead of `prompt'.
23036
23037 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23038
23039 * data.c (Finteractive_form): If the interactive specification starts
23040 with a `(', use it as a Lisp form.
23041
23042 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23043 name and file modes.
23044
23045 * callint.c (Fcall_interactively): Comment fixes.
23046
230472007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23048
23049 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23050 and compiled functions.
23051
230522007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23053
23054 * window.c (prefer_window_split_horizontally): New variable.
23055 (display_buffer): Consider splitting window horizontally depending
23056 on prefer_window_split_horizontally.
23057
230582007-09-08 Eli Zaretskii <eliz@gnu.org>
23059
23060 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23061
230622007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23063
23064 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23065
23066 * frame.c (x_set_frame_parameters): Check number is positive before
23067 using XFASTINT.
23068
23069 * window.c (freeze_window_start): Don't presume selected_window holds
23070 a window object.
23071 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23072
230732007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23074
23075 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23076
230772007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23078
23079 * window.c (Vsplit_window_preferred_function): New var.
23080 (Fdisplay_buffer): Use it.
23081 (syms_of_window): Export, and initialize it.
23082
230832007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23084
23085 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23086
230872007-09-06 Glenn Morris <rgm@gnu.org>
23088
23089 * gtkutil.c (menu_grab_callback) <cnt>:
23090 * xselect.c (x_reply_selection_request) <cnt>: Move static
23091 variable to file scope.
23092
230932007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23094
23095 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23096 consistent values of selected_frame and selected_window.
23097
230982007-09-04 Jason Rumney <jasonr@gnu.org>
23099
23100 * w32console.c (initialize_w32_display): Zero unused hooks.
23101
231022007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23103
23104 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23105 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23106
231072007-09-04 Jason Rumney <jasonr@gnu.org>
23108
23109 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23110 in w32console.c. Set up input. Remove XXX comments that have been
23111 confirmed as correct.
23112
23113 * s/ms-w32.h (MULTI_KBOARD): Define.
23114
23115 * w32console.c (one_and_only_w32cons): Remove.
23116 (initialize_w32_display): Take terminal argument.
23117
23118 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23119 initialize_w32_display.
23120 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23121
23122 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23123
23124 * keyboard.c (discard_mouse_events): Discard it.
23125 (make_lispy_event): Translate it to a lisp event.
23126 (lispy_wheel_names): Add wheel-left and right events.
23127 (syms_of_keyboard): Enlarge wheel_syms.
23128
23129 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23130 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23131
23132 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23133
23134 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23135 from WM_MOUSEHWHEEL.
23136 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23137
23138 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23139 terminal.
23140
23141 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23142 keyboard for the terminal.
23143
231442007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23145
23146 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23147 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23148 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23149 and resume-tty-function to resume-tty-hook.
23150 (Fsuspend_tty, Fresume_tty): Use new names.
23151
231522007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23153
23154 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23155 if it starts with "n:".
23156
231572007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23158
23159 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23160
231612007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23162
23163 * frame.h:
23164 * frame.c (Qterm_environment_variable): Remove.
23165 (syms_of_frame): Don't init and staticpro it.
23166
23167 * callproc.c (getenv_internal): Remove special case for $TERM.
23168
23169 * callproc.c (Vinitial_environment): New variable.
23170 (set_initial_environment): Initialize it.
23171 (syms_of_callproc): Declare it.
23172 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23173 TERM under which a process runs is never related to the TERM in which
23174 Emacs is running.
23175
231762007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23177
23178 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23179 * s/darwin.h: ... do it here.
23180
231812007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23182
23183 * lisp.h (set_initial_environment): Rename from set_global_environment.
23184
23185 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23186 removed by mistake on the multi-tty branch.
23187
23188 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23189 (Fmodify_frame_parameters): Return a value.
23190
23191 * image.c (png_load): Comment-out var only used in commented-out code.
23192
23193 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23194 before passing it to mark_object.
23195
23196 * xfaces.c (internal_resolve_face_name): Return a value.
23197 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23198
23199 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23200 (x_icon): Comment-out var only used in commented-out code.
23201
232022007-08-29 Romain Francoise <romain@orebokech.com>
23203
23204 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23205 QUIT hasn't been provided.
23206
232072007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23208
23209 * callproc.c (child_setup, getenv_internal): Use the
23210 display-environment-variable and term-environment-variable frame params.
23211 (set_initial_environment): Initialise Vprocess_environment.
23212
23213 * config.in: Disable multi-keyboard support on a mac.
23214
23215 * frame.c (Qterm_environment_variable)
23216 (Qdisplay_environment_variable): New variables.
23217 (syms_of_frame): Intern and staticpro them.
23218 (Fmake_terminal_frame): Disable output method test.
23219
23220 * frame.h: Declare them here.
23221
23222 * macfns.c (x_set_mouse_color): Get rif from the frame.
23223 (x_set_tool_bar_lines): Don't use updating_frame.
23224 (mac_window): Add 2 new parameters for consistency with other systems.
23225 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23226 frame parameters following what is done in X11 and w32. Don't use
23227 FRAME_MAC_DISPLAY_INFO.
23228 (Fx_open_connection, start_hourglass): Remove window-system check.
23229 (x_create_tip_frame): Get the keyboard from the terminal.
23230
23231 * macmenu.c: Reorder includes.
23232 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23233
23234 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23235 terminal parameter.
23236 (x_clear_frame): Add a frame parameter.
23237 (note_mouse_movement): Get rif from the frame.
23238 (mac_term_init): Initialize the terminal.
23239 (mac_initialize): Make static and move terminal initialization ...
23240 (mac_create_terminal): ... to this new function.
23241
23242 * macterm.h (struct mac_display_info): Add terminal.
23243 (mac_initialize): Delete declaration.
23244
23245 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23246
23247 * sysdep.c: Comment out text after #endif.
23248
23249 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23250 is defined. Better initialize ttys in windows. Use terminal
23251 specific mouse_position_hook.
23252
23253 * termhooks.h (union display_info): Add mac_display_info.
23254
23255 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23256 Set the default minibuffer frame, window_system and the rest of the
23257 frame parameters following what is done in X11.
23258
23259 * w32term.c (w32_initialize): Make static.
23260
23261 * xselect.c (x_handle_selection_clear): Only access
23262 terminal->kboard when MULTI_KBOARD is defined.
23263
23264 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23265 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23266
232672007-08-29 Jason Rumney <jasonr@gnu.org>
23268
23269 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23270 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23271
23272 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23273 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23274
23275 * keyboard.c (restore_kboard_configuration): Only define when
23276 MULTI_KBOARD defined.
23277
23278 * makefile.w32-in: Update dependancies from Makefile.in.
23279 (OBJ1): Add terminal.$(O)
23280
23281 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23282 Don't define function body.
23283 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23284
23285 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23286
23287 * w32.c (request_sigio, unrequest_sigio): Remove.
23288
23289 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23290 (w32con_clear_frame, w32con_clear_end_of_line)
23291 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23292 (w32con_delete_glyphs, w32con_set_terminal_window)
23293 (scroll_line, w32_sys_ring_bell): Add frame arg.
23294 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23295 Add terminal arg.
23296 (PICK_FRAME): Remove.
23297 (w32con_write_glyphs): Use frame specific terminal coding.
23298 (one_and_only_w32cons): New global variable.
23299 (initialize_w32_display): Use it for storing hooks.
23300 (create_w32cons_output): New function.
23301
23302 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23303 arg a frame.
23304
23305 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23306 Set window_system.
23307 (x_set_tool_bar_lines): Don't use updating_frame.
23308 (Fx_create_frame): Set terminal and ref count.
23309 (Fx_open_connection): Remove window-system check.
23310
23311 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23312
23313 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23314 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23315 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23316 Add frame arg.
23317 (x_delete_terminal, w32_create_terminal): New functions.
23318 (w32_term_init): Create a terminal.
23319 (w32_initialize): Move terminal specific initialization to
23320 w32_create_terminal.
23321
23322 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23323 (w32_clear_rect, w32_clear_area): Use background from frame.
23324 (w32_display_info): Add terminal.
23325 (w32_sys_ring_bell, x_delete_display): Declare here.
23326
23327 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23328
23329 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23330
233312007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23332
23333 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23334 Fix get_named_tty calls for the controlling tty.
23335
233362007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23337
194d44e7 23338 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23339
233402007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23341
23342 * term.c (tty_insert_glyphs): Add missing first parameter.
23343
233442007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23345
23346 * buffer.c (Fbuffer_list, Fbury_buffer):
23347 Take frame->buried_buffer_list into account.
23348
23349 * cm.c (current_tty): New variable, for cmputc().
23350 (cmputc): Use it.
23351 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23352 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23353 (cmgoto): Add tty parameter. Pass it on to calccost().
23354 Use emacs_tputs() instead of tputs().
23355
23356 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23357 tputs().
23358 (current_tty): New variable, for cmputc().
23359 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23360
23361 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23362 (internal_condition_case, internal_condition_case_1)
23363 (internal_condition_case_2): Don't abort when x_catching_errors.
23364
23365 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23366 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23367 prevent crashes caused by bogus longjmps in read_char.
23368
23369 * keymap.h (Fset_keymap_parent): Add EXFUN.
23370
23371 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23372 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23373 Remove redundant definition.
23374
23375 * macfns.c (x_set_mouse_color, x_make_gc):
23376 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23377
23378 * w32term.c (x_free_frame_resources):
23379 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23380 (w32_initialize): Use the accessor macros for terminal characteristics.
23381
23382 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23383 Use the accessor macros for terminal characteristics.
23384 * msdos.c (internal_terminal_init): Use the accessor macros for
23385 terminal characteristics.
23386 (ScreenVisualBell, internal_terminal_init):
23387 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23388
23389 * termopts.h (no_redraw_on_reenter): Declare.
23390
23391 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23392 (mark_terminals, mark_ttys): Declare.
23393 (Fgarbage_collect): Call them.
23394 (mark_object): Mark buried_buffer_list.
23395
23396 * prefix-args.c: Include stdlib.h for exit.
23397
23398 * syssignal.h: Add comment.
23399
23400 * indent.c: Include stdio.h.
23401
23402 * window.h (Vinitial_window_system): Declare.
23403 (Vwindow_system): Delete declaration.
23404
23405 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23406
23407 * image.c (lookup_image): Don't initialize `c' until the xasserts
23408 have been run.
23409
23410 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23411 FRAME_FOREGROUND_PIXEL.
23412
23413 * print.c (print_preprocess): Don't lose print_depth levels while
23414 iterating.
23415
23416 * widget.c (update_from_various_frame_slots):
23417 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23418
23419 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23420 frames.
23421 (window_internal_height): Remove bogus make_number call.
23422 (init_window_once): Call make_terminal_frame with two zero parameters.
23423
23424 * fileio.c (Fread_file_name): Update comment.
23425
23426 * callint.c (Fcall_interactively):
23427 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23428 Make sure it is correctly unwound.
23429
23430 * xsmfns.c (x_session_close): New function.
23431
23432 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23433 Delete declarations.
23434
23435 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23436 (x_output): Remove background_pixel and foreground_pixel fields.
23437 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23438 (x_delete_device, x_session_close): Declare.
23439
23440 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23441 (read_filtered_event): Call `read_char' with a local
23442 `wrong_kboard_jmpbuf'.
23443
23444 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23445 Don't call single_kboard_state. Use FRAME_RIF.
23446
23447 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23448 systems.
23449
23450 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23451 (Fframe_with_environment, Fset_input_meta_mode)
23452 (Fset_quit_char): EXFUN.
23453 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23454 (init_sys_modes, reset_sys_modes): Update prototypes.
23455 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23456
23457 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23458 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23459 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23460 Delete declarations.
23461 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23462 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23463 New declarations.
23464
23465 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23466 already does that during init_display(). Call syms_of_keymap
23467 before syms_of_keyboard. Call `syms_of_terminal'.
23468 Call set_initial_environment, not set_process_environment.
23469 (shut_down_emacs): Call reset_all_sys_modes() instead of
23470 reset_sys_modes().
23471
23472 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23473 (internal_resolve_face_name, resolve_face_name_error): New functions.
23474 (resolve_face_name): Protect against loops and errors thrown by Fget.
23475 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23476 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23477
23478 * scroll.c: Replace CURTTY() with local variables throughout the
23479 file (where applicable).
23480 (calculate_scrolling, calculate_direct_scrolling)
23481 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23482 characteristics.
23483
23484 * keymap.c (Vfunction_key_map): Remove.
23485 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23486 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23487 (Vkey_translation_map): Remove.
23488 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23489 (Fdescribe_buffer_bindings)
23490 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23491 Update for terminal-local key-translation-map.
23492
23493 * Makefile.in (callproc.o): Update dependencies.
23494 (lisp, shortlisp): Add termdev.elc.
23495 (obj): Add terminal.o.
23496 (terminal.o): Add dependencies.
23497 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23498 (data.o, fns.o): Add termhooks.h dependency.
23499 (SOME_MACHINE_LISP): Add dnd.elc.
23500 (minibuf.o): Fix typo.
23501 Update dependencies.
23502
23503 * data.c (do_symval_forwarding, store_symval_forwarding)
23504 (find_symbol_value): Use the selected frame's keyboard, not
23505 current_kboard.
23506
23507 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23508 Vwindow_system.
23509
23510 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23511 Fmenu_bar_open.
23512 (syms_of_xmenu): Update defsubr.
23513 (mouse_position_for_popup, Fx_popup_menu)
23514 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23515 (set_frame_menubar, free_frame_menubar)
b97439ce 23516 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23517 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23518 an X frame.
23519
23520 * xselect.c (x_own_selection): Abort if not an X frame.
23521 (some_frame_on_display): Check if it is an X frame.
23522 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23523
23524 * coding.c: Include frame.h and termhooks.h.
23525 (terminal_coding, keyboard_coding): Delete.
23526 (Fset_terminal_coding_system_internal)
23527 (Fset_keyboard_coding_system_internal)
23528 (Fkeyboard_coding_system)
23529 (Fterminal_coding_system): Add a terminal parameter.
23530 Get terminal_coding from the terminal.
23531 (init_coding_once): Don't call setup_coding_system here.
23532
23533 * dispextern.h (set_scroll_region, turn_off_insert)
23534 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23535 (tty_clear_end_of_line, tty_setup_colors)
23536 (delete_tty, updating_frame)
23537 (produce_special_glyphs, produce_glyphs, write_glyphs)
23538 (insert_glyphs): Remove.
23539 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23540 (tty_turn_off_highlight, get_tty_size): Add declaration.
23541 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23542
23543 * frame.h (enum output_method): Add output_initial.
23544 (struct x_output): Delete.
23545 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23546 Access foreground_pixel and background_pixel directly from the frame.
23547 (tty_display): Delete.
23548 (struct frame): Add buried_buffer_list, foreground_pixel,
23549 background_pixel and terminal. Delete kboard.
23550 (union output_data): Add tty.
23551 (FRAME_KBOARD): Get the kboard from the terminal.
23552 (FRAME_INITIAL_P): New macro.
23553 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23554 (Qterm_environment_variable, Qdisplay_environment_variable)
23555 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23556 New declarations.
23557
23558 * termchar.h (tty_output, tty_display_info): New structures.
23559 (tty_list): Declare.
23560 (FRAME_TTY, CURTTY): New macros.
23561 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23562 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23563 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23564 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23565
23566 * callproc.c: Include frame.h and termhooks.h, for terminal
23567 parameters.
23568 (add_env): New function.
23569 (child_setup): Use it.
23570 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23571 (getenv_internal): Fix get_terminal_param call.
23572 (Fgetenv_internal, egetenv): Update doc.
23573 (syms_of_callproc): Initialize Vprocess_environment to nil.
23574 Register and initialize them. Remove obsolete defvars. Update doc
23575 strings.
23576 (child_setup): Handle Vlocal_environment_variables.
23577 (getenv_internal): Add terminal parameter.
23578 Handle Vlocal_environment_variables.
23579 (Fgetenv_internal): Add terminal parameter.
23580 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23581 environment in a frame (not terminal) parameter. Update doc strings.
23582 (set_initial_environment): Rename from set_global_environment.
23583 Store Emacs environment in initial frame parameter.
23584
23585 * xdisp.c (redisplay_internal): Update references to
23586 `previous_terminal_frame'.
23587 (display_mode_line, Fformat_mode_line): Replace calls to
23588 `push_frame_kboard' with `push_kboard'.
23589 (get_glyph_string_clip_rects): Add extra parentheses and
23590 braces to prevent compiler warnings.
23591 (calc_pixel_width_or_height): Add xassert to check that the
23592 frame is alive. Don't call `lookup_image' on a termcap frame.
23593 (message2_nolog, message3_nolog, redisplay_internal)
23594 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23595 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23596 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23597 (Fx_display_pixel_width, Fx_display_pixel_height)
23598 (Fx_display_planes, Fx_display_color_cells)
23599 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23600 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23601 (Fx_display_backing_store, Fx_display_visual_class)
23602 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23603 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23604
23605 * xfns.c (x_set_foreground_color x_set_background_color)
23606 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23607 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23608 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23609 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23610 terminal that is being deleted.
23611 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23612 frame parameter, and make sure it overrides any user-supplied setting.
23613 (Fx_close_connection, Fx_synchronize): Unify argument names with
23614 the rest of the DEFUNs.
23615
23616 * dispnew.c (Fsend_string_to_terminal): Update call to
23617 `get_tty_terminal'.
23618 (Fredraw_frame, Fsend_string_to_terminal)
23619 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23620 FRAME_TERMCAP_P and FRAME_TTY.
23621 (window_change_signal): Don't believe width/height values that are
23622 impossibly small.
23623 (Vinitial_window_system): Rename from Vwindow_system.
23624 (termscript, Wcm, rif): Delete.
23625
23626 * termhooks.h (struct terminal): New struct containing the
23627 previously global text display hooks and new members NAME,
23628 DELETED and PARAM_ALIST.
23629 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23630 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23631 (FRAME_RIF): New macros.
23632 (get_terminal_param, get_device): New declarations.
23633 (termscript): Delete declaration.
23634
23635 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23636 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23637 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23638 FRAME_FOREGROUND_PIXEL.
23639 (x_fully_uncatch_errors): Disable definition.
23640 (x_scroll_bar_expose): Fix reference to foreground pixel.
23641 (XTread_socket): Disable loop on all X displays.
23642 (x_delete_terminal): Don't set terminal->deleted and let
23643 delete_terminal delete the frames on the terminal.
23644 (x_delete_display): Doc update to reflect changes in
23645 delete_terminal.
23646 (x_display_info) <terminal>: Move member earlier in the struct.
23647 (deleting_tty): Remove old variable.
23648 (Fsuspend_tty): Call clear_tty_hooks.
23649 (Fresume_tty, init_tty): Call set_tty_hooks.
23650 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23651 errors on X frames.
23652 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23653 (handle_one_xevent): Initialize `f' to NULL.
23654 (x_delete_terminal, x_create_terminal): New functions.
23655 (XTset_terminal_modes, XTreset_terminal_modes)
23656 (XTread_socket, x_connection_closed, x_term_init)
23657 (x_term_init, x_delete_display): Add terminal parameter.
23658 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23659 X connections.
23660
23661 * frame.c: Include termchar.h.
23662 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23663 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23664 (Qdisplay_environment_variable): New vars.
23665 (Fframep): Deal with output_initial.
23666 (Fframe-live-p): Doc fix.
23667 (Fwindow-system): New function.
23668 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23669 (make_terminal_frame): Don't create frames on a terminal that is
23670 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23671 (store_frame_param): Check for found_for_frame before calling XFRAME.
23672 (Fmake_terminal_frame): Handle NULL tty names correctly.
23673 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23674 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23675 frames to refer to a deleted frame in their 'environment parameter.
23676 (Fframe_with_environment): New function.
23677 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23678 (get_future_frame_param): New function.
23679 (Fmake_terminal_frame): Use it.
23680 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23681
23682 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23683 * sysdep.c (reset_sys_modes): Update for renames.
23684
23685 * keyboard.c (tty_read_avail_input): New function.
23686 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23687 (syms_of_keyboard): Defsubr them.
23688 (Fset_input_meta_mode, Fset_quit_char): New functions.
23689 (Fset_input_mode): Split to above functions.
23690 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23691 parameter. Use it in call to `read_char'.
23692 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23693 Set wrong_kboard_jmpbuf correctly in recursive calls.
23694 Use current_kboard to access Vkeyboard_translate_table.
23695 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23696 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23697 Update longjmp invocations. Remember the original current_kboard,
23698 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23699 changes it. Comment out unnecessary calls to
23700 `record_single_kboard_state' and `any_kboard_state'.
23701 Update recursive calls.
23702 (wrong_kboard_jmpbuf): Remove global variable.
23703 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23704 Handle deleted interrupted_kboards correctly; that is a legal
23705 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23706 and read_char calls. Abort if interrupted_kboard died in read_char.
23707 (any_kboard_state, single_kboard_state)
23708 (push_frame_kboard): Remove function.
23709 (pop_kboard): Switch out of single_kboard mode if the kboard has
23710 been deleted. Remove unused variable. Help debugging by not
23711 changing current_kboard unnecessarily. Set current_kboard to the
23712 kboard of the selected frame when the stored kboard object has
23713 been deleted before pop_kboard.
23714 (temporarily_switch_to_single_kboard): Change first parameter to a
23715 frame pointer. Throw an error when caller wants to change kboards
23716 while in single_kboard mode. Don't push_kboard if we weren't in
23717 single kboard state. Don't pop_kboard if we popped into any
23718 kboard state.
23719 (restore_kboard_configuration): Abort if pop_kboard changed the
23720 kboard in single_kboard mode. Call pop_kboard only after setting
23721 up single_kboard mode.
23722 (Frecursive_edit): Switch to single_kboard mode only in nested
23723 command loops.
23724 (cmd_error, command_loop, command_loop_1, timer_check):
23725 Comment out unnecessary call to `any_kboard_state' and
23726 `record_single_kboard_state'.
23727 (delete_kboard): Exit single_kboard mode if we have just deleted
23728 that kboard. Use FRAME_KBOARD.
23729 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23730 `fatal_error_signal'.
23731 (record_single_kboard_state): Don't push_kboard if we weren't in
23732 single kboard state. Don't pop_kboard if we popped into any
23733 kboard state.
23734 (push_frame_kboard): Rename to push_kboard.
23735 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23736 (read_avail_input): Read input from all terminals.
23737 (mark_kboards): Also mark Vkeyboard_translate_table.
23738 (kbd_buffer_store_event_hold): Simplify condition.
23739 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23740 (Vkeyboard_translate_table): Move to struct kboard.
23741 (init_kboard): Initialize Vkeyboard_translate_table.
23742 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23743 Vkeyboard_translate_table. Update doc strings. Update docs of
23744 local-function-key-map and function-key-map.
23745
23746 * terminal.c: New file.
23747
23748 * term.c: Include errno.h.
23749 (Vring_bell_function, device_list, initial_device)
23750 (next_device_id, ring_bell, update_begin, update_end)
23751 (set_terminal_window, cursor_to, raw_cursor_to)
23752 (clear_to_end, clear_frame, clear_end_of_line)
23753 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23754 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23755 (syms_of_term): Move their initialization to terminal.c.
23756 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23757 (Ftty_display_color_cells)
23758 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23759 (clear_tty_hooks, set_tty_hooks)
23760 (init_tty, maybe_fatal): New functions.
23761 (Ftty_type): Return nil if terminal is not on a tty instead of
23762 throwing an error. Doc update.
23763 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23764 Doc update. Initialize new subrs and variables.
23765 (delete_tty): Use terminal->deleted.
23766 (tty_set_terminal_modes): Rename from set_terminal_modes.
23767 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23768 (set_scroll_region): Rename to `tty_set_scroll_region'.
23769 (turn_on_insert): Rename to `tty_turn_on_insert'.
23770 (turn_off_insert): Rename to `tty_turn_off_insert'.
23771 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23772 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23773 (toggle_highligh): Rename to `tty_toggle_highlight'.
23774 (background_highlight): Rename to `tty_background_highlight'.
23775 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23776 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23777 (tty_set_scroll_region, tty_background_highlight)
23778 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23779 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23780 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23781 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23782 Add static modifier.
23783 (tty_reset_terminal_modes, tty_set_terminal_window)
23784 (tty_set_scroll_region, tty_background_highlight)
23785 (tty_highlight_if_desired, tty_cursor_to)
23786 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23787 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23788 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23789 renames.
23790
237912007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23792
23793 * keyboard.c: Qrtl is new.
23794 (parse_tool_bar_item): Handle :rtl keyword.
23795 (syms_of_keyboard): Intern :rtl keyword.
23796
23797 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23798
23799 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23800 so no Lisp code is executed.
23801 (file_for_image, find_rtl_image): New functions.
23802 (xg_get_image_for_pixmap): Use file_for_image.
23803 (update_frame_tool_bar): If direction is RTL, use RTL image if
23804 defined. Use Gtk stock images if defined.
23805
238062007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23807
23808 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23809 for nonexistent or zero-width glyph in composition glyph.
23810
238112007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23812
23813 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23814
23815 * xdisp.c (Finvisible_p): New function.
23816 (syms_of_xdisp): defsubr it.
23817
238182007-08-24 Juanma Barranquero <lekktu@gmail.com>
23819
23820 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23821 Doc fixes.
23822
238232007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23824
23825 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23826
238272007-08-24 Martin Rudalics <rudalics@gmx.at>
23828
23829 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23830 whether decoding has modified buffer contents.
23831
238322007-08-24 Jason Rumney <jasonr@gnu.org>
23833
23834 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23835 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23836 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23837 (init_svg_functions) [HAVE_NTGUI]: New function.
23838 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23839 (svg_load_image): Use them.
23840 (svg_load_image) [HAVE_NTGUI]: Implement background.
23841
238422007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23843
23844 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23845 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23846 (LIBX): Remove @RSVG_LIBS@.
23847 (LIBES): Add $(RSVG_LIBS).
23848
23849 * image.c (svg_load_image): Blend with specified background if exists.
23850 Use IMAGE_BACKGROUND. Add Mac OS Support.
23851
23852 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23853 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23854 Remove macros.
23855 [MAC_OSX] (socket_callback): Do nothing.
23856 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23857 ReceiveNextEvent.
23858 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23859 socket_callback.
23860 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23861
238622007-08-22 Glenn Morris <rgm@gnu.org>
23863
23864 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23865
238662007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23867
23868 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23869
23870 * image.c: Add support for SVG images. Some additional comments
23871 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23872 (svg_image_p): New function to test for SVG image.
23873 (svg_load): New function to load SVG image.
23874 (svg_load_image): New function, helper for svg_load.
23875 (Qsvg): New Lisp_object.
23876 (svg_keyword_index): New enum.
23877 (svg_format): New static `image_keyword' struct.
23878 (svg_type): New static `image_type' struct.
23879 (librsvg/rsvg.h): Include it.
23880
238812007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23882
23883 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23884
238852007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23886
23887 * lread.c (Qold_style_backquotes): New var.
23888 (syms_of_lread): Init and staticpro it.
23889 (load_warn_old_style_backquotes): New fun.
23890 (Fload): Use them to warn about old style backquotes.
23891 (end_of_file_error, Fload): Remove unused vars.
23892
23893 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23894
23895 * lread.c (Vold_style_backquotes): New var.
23896 (syms_of_lread): Init and export it to Elisp.
23897 (read1): Set it when we find an old-style (back)quote.
23898
238992007-08-22 Jason Rumney <jasonr@gnu.org>
23900
23901 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23902
239032007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23904
23905 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23906
239072007-08-19 Richard Stallman <rms@gnu.org>
23908
23909 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23910
239112007-08-19 Andreas Schwab <schwab@suse.de>
23912
23913 * alloc.c (pure): Round PURESIZE up.
23914
239152007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23916
23917 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23918 active frame.
23919
239202007-08-16 Richard Stallman <rms@gnu.org>
23921
23922 * eval.c (Fcommandp): Add parens to clarify.
23923
23924 * minibuf.c (Fall_completions): Use enum for type of table.
23925
23926 * emacs.c (USAGE2): Improve text.
23927
239282007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23929
23930 * term.c (tty_default_color_capabilities): Declare static
23931 variables in file scope, to avoid HPUX compiler problem.
23932
239332007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23934
23935 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23936 to gtk_toolbar_insert.
23937
239382007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23939
23940 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23941
23942 * insdel.c (reset_var_on_error): New fun.
23943 (signal_before_change, signal_after_change):
23944 Use it to reset (after|before)-change-functions to nil in case of error.
23945 Bind inhibit-modification-hooks to t.
23946 Don't bind (after|before)-change-functions to nil while they run.
23947
239482007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23949
23950 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23951 filling pixmap with stippled background.
23952
239532007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23954
23955 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23956 Don't use invisible frame as parent window for repositioning.
23957
239582007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23959
23960 * print.c (new_backquote_output): Rename from old_backquote_output.
23961 (print): Inverse its logic (according to its name) so as to match the
23962 behavior of new_backquote_flag in lread.c.
23963
239642007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23965
23966 * gmalloc.c (posix_memalign): New function.
23967
23968 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23969 ActivateControl/DeactivateControl here.
23970 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23971 frame-notice-user-settings is non-nil.
23972 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23973 for kEventParamFMFontStyle.
23974 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23975 mac_pass_command_to_system and mac_pass_control_to_system here.
23976 (XTread_socket): Call ActivateControl/DeactivateControl here.
23977 (XTread_socket) [TARGET_API_MAC_CARBON]:
23978 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23979 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23980 for window repositioning.
23981
239822007-08-08 Glenn Morris <rgm@gnu.org>
23983
23984 * Replace `iff' in doc-strings and comments.
23985
239862007-08-07 Chong Yidong <cyd@stupidchicken.com>
23987
23988 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23989
239902007-08-07 Martin Rudalics <rudalics@gmx.at>
23991
23992 * fileio.c (Finsert_file_contents): Run format-decode and
23993 after_insert_file_functions on entire buffer when REPLACE is
23994 non-nil and inhibit modification_hooks and point_motion_hooks.
23995 For consistency, run after_insert_file_functions iff something
23996 got inserted. Move signal_after_change and update_compositions
23997 after code running after_insert_file_functions. Make sure that
23998 undo_list doesn't record intermediate steps of the decoding process.
23999
240002007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24001
24002 * emacs.c (main)
24003 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24004 Call malloc_enable_thread on interactive startup.
24005
24006 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24007 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24008 [USE_PTHREAD]: Conditionalize with it.
24009 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24010 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24011 New functions.
24012
240132007-08-06 Chong Yidong <cyd@stupidchicken.com>
24014
24015 * xdisp.c (redisplay_window): When restoring original buffer
24016 position, make sure it is still valid.
24017
24018 * image.c (png_load): Ignore png-supplied background color.
24019
240202007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24021
24022 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24023 Use kCFAbsoluteTimeIntervalSince1970.
24024
24025 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24026 New variable.
24027 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24028 event loop should be quit.
24029 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24030 Quit dialog event loop if quit_dialog_event_loop is set.
24031
24032 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24033 (Selection): New typedef. Use instead of ScrapRef.
24034 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24035 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24036 (mac_clear_selection): Rename from clear_scrap.
24037 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24038 scrap_has_target_type. All uses changed.
24039 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24040 (mac_selection_has_target_p): New functions.
24041 (mac_put_selection_value): Rename from put_scrap_string.
24042 (mac_get_selection_value): Rename from get_scrap_string.
24043 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24044 (put_scrap_private_timestamp, scrap_has_target_type)
24045 (get_scrap_private_timestamp): Remove functions.
24046 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24047 (x_own_selection, x_get_local_selection):
24048 Use mac_valid_selection_value_p.
24049 (x_own_selection): Don't use put_scrap_private_timestamp.
24050 Record OWNERSHIP-INFO into Vselection_alist instead.
24051 (x_get_local_selection): Don't check type if request is local.
24052 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24053 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24054
240552007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24056
24057 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24058 add comment explaining why.
24059
240602007-08-03 Richard Stallman <rms@gnu.org>
24061
24062 * fileio.c (Fvisited_file_modtime): Use make_time.
24063
240642007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24065
24066 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24067 build.
24068
240692007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24070
24071 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24072
240732007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24074
24075 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24076
240772007-07-30 Richard Stallman <rms@gnu.org>
24078
24079 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24080
240812007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24082
24083 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24084
240852007-07-28 Nick Roberts <nickrob@snap.net.nz>
24086
24087 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24088 remote default-directory.
24089
24090 * buffer.c (mode-line-format): Update doc string.
24091
240922007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24093
24094 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24095 scroll bar gap.
24096 (x_scroll_bar_create): Set bar->fringe_extended_p.
24097 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24098 on frame edge. Check fringe background extension. Don't clear
24099 extended fringe background area.
24100
24101 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24102 (w32_fill_area): Enclose multiple statements with do ... while (0).
24103
24104 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24105 Extend fringe background to scroll bar gap.
24106 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24107 Set bar->fringe_extended_p.
24108 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24109 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24110 background extension. Don't clear extended fringe background area.
24111
24112 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24113 New member fringe_extended_p.
24114
241152007-07-25 Glenn Morris <rgm@gnu.org>
24116
24117 * Relicense all FSF files to GPLv3 or later.
24118
24119 * COPYING: Switch to GPLv3.
24120
241212007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24122
24123 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24124
24125 * data.c (Finteractive_form): Check for the presence of an
24126 `interactive-form' symbol property more thoroughly.
24127
24128 * data.c (Finteractive_form): Use an `interactive-form' property if
24129 present, analogous to the function-documentation property.
24130
241312007-07-24 Jason Rumney <jasonr@gnu.org>
24132
24133 * w32fns.c (x_real_positions): Get real position from OS instead of
24134 calculating it.
24135
241362007-07-23 Jason Rumney <jasonr@gnu.org>
24137
24138 * filelock.c (current_lock_owner): Allow for @ sign in username.
24139
241402007-07-22 Nick Roberts <nickrob@snap.net.nz>
24141
24142 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24143 remote default-directory.
24144
24145 * buffer.c (mode-line-format): Describe above case in doc string.
24146
241472007-07-20 Eli Zaretskii <eliz@gnu.org>
24148
24149 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24150 Define if not defined.
24151
241522007-07-18 Jason Rumney <jasonr@gnu.org>
24153
24154 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24155
241562007-07-18 Richard Stallman <rms@gnu.org>
24157
24158 * data.c (Fsetq_default): Doc fix.
24159
24160 * eval.c (Fsetq): Doc fix.
24161
241622007-07-18 Juanma Barranquero <lekktu@gmail.com>
24163
24164 * coding.c (Ffind_operation_coding_system):
24165 * eval.c (For, Fand): Doc fixes.
24166 Reported by Johan Bockgård.
24167
241682007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24169
24170 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24171
24172 * xterm.h: Declare x_ewmh_activate_frame.
24173
24174 * xterm.c (x_ewmh_activate_frame): New function.
24175 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24176
241772007-07-17 Martin Rudalics <rudalics@gmx.at>
24178
24179 * window.c (Fdisplay_buffer): If largest or LRU window is the
24180 only window, split it even if it is not eligible for splitting.
24181 This restores the original behavior broken by the 2007-07-15
24182 change.
24183
241842007-07-17 Glenn Morris <rgm@gnu.org>
24185
24186 * abbrev.c (abbrev_check_chars): New function.
24187 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24188 Call abbrev_check_chars to check abbrev characters are word
24189 constituents. Doc fix.
24190
241912007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24192
24193 * process.c (Fstart_process, Fmake_network_process)
24194 (read_process_output): Fix up last changes.
24195
241962007-07-16 Eli Zaretskii <eliz@gnu.org>
24197
24198 * makefile.w32-in (clean): Don't delete *~.
24199
242002007-07-16 Andreas Schwab <schwab@suse.de>
24201
24202 * window.c (Fdisplay_buffer): Use NILP.
24203 (Fset_window_scroll_bars): Likewise.
24204
242052007-07-15 Martin Rudalics <rudalics@gmx.at>
24206
24207 * window.c (window_min_size_2): New function.
24208 (window_min_size_1, size_window, Fdisplay_buffer)
24209 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24210 windows without mode- or header-lines when window-min-height is
24211 too small.
24212 (size_window): Reset nodelete_p after testing it, following an
24213 earlier note by Kim F. Storm.
24214 (display_buffer): Do not set split_height_threshold to twice the
24215 value of window_min_height to avoid changing the value of a
24216 customizable variable. Rather explicitly check whether the
24217 height of the window that shall be splitted is at least as large
24218 as split_height_threshold.
24219 (Fwindow_full_width_p): New defun.
24220 (syms_of_window): Defsubr it.
24221
24222 * window.h: Add EXFUN for Fwindow_full_width_p.
24223
242242007-07-14 Jason Rumney <jasonr@gnu.org>
24225
24226 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24227
242282007-07-14 Richard Stallman <rms@gnu.org>
24229
24230 * eval.c (maybe_call_debugger): New function.
24231 (find_handler_clause): Use maybe_call_debugger.
24232 Call it when the handler says `debug'.
24233 Eliminate DEBUGGER_VALUE_PTR.
24234 (Fsignal): Eliminate debugger_value.
24235 (Qdebug): New variable.
24236 (syms_of_eval): Initialize it.
24237
242382007-07-14 Juanma Barranquero <lekktu@gmail.com>
24239
24240 * eval.c (Fprogn):
24241 * keyboard.c (Ftrack_mouse):
24242 * print.c (Fwith_output_to_temp_buffer):
24243 * window.c (Fsave_window_excursion): Doc fix.
24244
242452007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24246
24247 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24248
242492007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24250
24251 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24252 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24253 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24254 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24255 Remove unused encoding_carryover.
24256 * process.c: Adjust all functions accordingly.
24257
242582007-07-12 Richard Stallman <rms@gnu.org>
24259
24260 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24261
242622007-07-11 Jason Rumney <jasonr@gnu.org>
24263
24264 * makefile.w32-in (LIBS): Include OLE32.
24265
24266 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24267 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24268
242692007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24270
24271 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24272 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24273 from a Lisp_Object into a bare pointer.
24274 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24275 Adjust the code correspondingly.
24276
24277 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24278
24279 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24280 (term_show_mouse_face): Remove unused var `j'.
24281 (handle_one_term_event): Remove unused vars `i' and `j'.
24282 Don't cast return value of ttyname since it's not necessary.
24283
242842007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24285
24286 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24287 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24288
24289 * fns.c (map_char_table): Use an array of int for `indices' rather than
24290 an array of Lisp_Objects (which are only ever integers anyway).
24291 (Fmap_char_table): Update caller.
24292 * lisp.h: Update prototype.
24293 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24294 * fontset.c (Ffontset_info):
24295 * casetab.c (set_case_table): Update callers.
24296
24297 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24298
24299 * keymap.c (struct accessible_keymaps_data)
24300 (struct where_is_internal_data): New structures.
24301 (accessible_keymaps_1, where_is_internal_1): Use them to change
24302 interface to adhere to the one used by map_keymap.
24303 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24304 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24305
24306 * keymap.h (map_keymap_function_t): More informative prototype.
24307
243082007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24309
24310 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24311 (looking_at_1): Don't change search_regs and last_thing_searched
24312 if `inhibit-changing-match-data' is non-nil.
24313 (string_match_1, search_buffer, set_search_regs): Likewise.
24314 (syms_of_search): Add Lisp level definition for
24315 `inhibit-changing-match-data' and set it to nil.
24316 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24317 start and end of the match, instead of using values in search_regs.
24318
243192007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24320
24321 * minibuf.c (Fcompleting_read): New value `confirm-only'
24322 for `require-match'.
24323
243242007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24325
24326 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24327 part of the 2007-06-27 change to syms_of_fileio.
24328
243292007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24330
24331 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24332 Check WINDOWP before using XWINDOW. Consolidate return statements.
24333
243342007-06-27 Richard Stallman <rms@gnu.org>
24335
24336 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24337
243382007-06-27 Juanma Barranquero <lekktu@gmail.com>
24339
24340 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24341
243422007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24343
24344 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24345 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24346 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24347 (_free_internal, memalign): Use them.
24348 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24349 Initialize to PTHREAD_MUTEX_INITIALIZER.
24350 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24351 (morecore_nolock): Rename from morecore. All uses changed.
24352 Use only nolock versions of internal allocation functions.
24353 (_malloc_internal_nolock, _realloc_internal_nolock)
24354 (_free_internal_nolock): New functions created from
24355 _malloc_internal, _realloc_internal, and _free_internal.
24356 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24357 Copy hook value to automatic variable before its use.
24358 (memalign): Copy hook value to automatic variable before its use.
24359
243602007-06-26 Kenichi Handa <handa@m17n.org>
24361
24362 * coding.c (Ffind_operation_coding_system): Docstring improved.
24363 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24364
243652007-06-25 David Kastrup <dak@gnu.org>
24366
24367 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24368 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24369 cater for additional parameter.
24370
24371 * keymap.h: Adjust number of parameters to `current-active-maps'.
24372
24373 * doc.c (Fsubstitute_command_keys): Adjust call of
24374 `current-active-maps'.
24375
243762007-06-25 David Kastrup <dak@gnu.org>
24377
24378 * callint.c (Fcall_interactively): Make the parsing of interactive
24379 specs somewhat more readable.
24380
243812007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24382
24383 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24384 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24385 if extended background has already been filled.
24386
243872007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24388
24389 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24390 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24391
24392 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24393 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24394 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24395 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24396 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24397 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24398 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24399 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24400 Run timers during dialog popup.
24401 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24402
244032007-06-21 Jason Rumney <jasonr@gnu.org>
24404
24405 * image.c (convert_mono_to_color_image): Swap fore and background.
24406
244072007-06-20 Jason Rumney <jasonr@gnu.org>
24408
24409 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24410 (w32_free_bdf_font): Unmap memory not handle.
24411
244122007-06-20 Sam Steingold <sds@gnu.org>
24413
24414 * gmalloc.c (__morecore): Fix the declaration to comply with the
24415 definition.
24416
244172007-06-20 Juanma Barranquero <lekktu@gmail.com>
24418
24419 * w32term.c (w32_delete_display): Remove leftover declaration.
24420 (w32_define_cursor, w32_initialize): Make static.
24421
24422 * w32.c (_wsa_errlist): Fix typo in error message.
24423 (init_environment): Ignore any environment variable from the
24424 registry having a null value.
24425
244262007-06-20 Glenn Morris <rgm@gnu.org>
24427
24428 * Makefile.in (LIBGIF): Default to -lgif.
24429
244302007-06-17 Jason Rumney <jasonr@gnu.org>
24431
24432 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24433 unicode strings.
24434
244352007-06-16 Juanma Barranquero <lekktu@gmail.com>
24436
24437 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24438 Fix typo in docstring.
24439
244402007-06-16 Eli Zaretskii <eliz@gnu.org>
24441
24442 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24443 and their keybindings.
24444
244452007-06-15 Chong Yidong <cyd@stupidchicken.com>
24446
24447 * composite.c (update_compositions): Fix last fix.
24448
244492007-06-14 Jason Rumney <jasonr@gnu.org>
24450
24451 * w32.c (get_process_times_fn): New function pointer.
24452 (globals_of_w32): Intialize it if present in kernel32.dll.
24453 (w32_get_internal_run_time): New function.
24454
24455 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24456
244572007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24458
24459 * composite.c (update_compositions): Check the validness of
24460 compositions.
24461
244622007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24463
24464 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24465 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24466
24467 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24468 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24469
24470 * macgui.h (USE_MAC_TOOLBAR): New define.
24471
24472 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24473 Return immediately unless popup is activated.
24474
24475 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24476 background to scroll bar gap.
24477 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24478 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24479 scroll bars on frame edge. Check fringe background extension.
24480 Don't clear extended fringe background area.
24481 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24482 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24483 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24484 [USE_MAC_TOOLBAR]: New macros.
24485 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24486 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24487 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24488 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24489 [USE_MAC_TOOLBAR]: New functions.
24490 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24491 manually if previous repositioning has failed.
24492 (mac_handle_keyboard_event): Use precomputed event kind.
24493 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24494 as tool bar item click. Handle mouse movement over tool bar items.
24495
24496 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24497 toolbar_win_gravity.
24498 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24499 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24500 Add externs.
24501
24502 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24503 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24504
245052007-06-14 Chong Yidong <cyd@stupidchicken.com>
24506
24507 * image.c (search_image_cache): Remove unused variable.
24508
245092007-06-13 Chong Yidong <cyd@stupidchicken.com>
24510
24511 * xfns.c, xmenu.c: Link to xaw3d if available.
24512
245132007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24514
24515 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24516 frame_foreground and frame_background.
24517
24518 * image.c (lookup_image): Save frame foreground and background colors.
24519 (search_image_cache): Check if saved and current frame colors match.
24520
245212007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24522
24523 * regex.c (regex_compile): Remove the `regnum' counter.
24524 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24525
245262007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24527
24528 * term.c: Include intervals.h to declare Fget_text_property.
24529
245302007-06-10 Jason Rumney <jasonr@gnu.org>
24531
24532 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24533
245342007-06-08 Juanma Barranquero <lekktu@gmail.com>
24535
24536 * callint.c (Fcall_interactively):
24537 * editfns.c (Fdelete_and_extract_region):
24538 * fileio.c (Fread_file_name):
24539 * fns.c (Fmapconcat):
24540 * keyboard.c (cmd_error_internal):
24541 * keymap.c (Fkey_description):
24542 * lread.c (openp):
24543 * minibuf.c (read_minibuf):
24544 * search.c (wordify):
24545 * sunfns.c (sel_read):
24546 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24547 * xfns.c (x_default_scroll_bar_color_parameter):
24548 * xmenu.c (menu_help_callback):
24549 * xselect.c (Fx_get_atom_name):
24550 * xterm.c (x_term_init): Use empty_unibyte_string.
24551
245522007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24553
24554 * alloc.c (init_strings): Initialize canonical empty strings.
24555 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24556 canonical empty string when the requested size is 0.
24557
24558 * emacs.c (empty_unibyte_string): Rename from empty_string.
24559 (empty_multibyte_string): New canonical empty string.
24560 (syms_of_emacs): Don't initialize empty_string.
24561
24562 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24563 string, if appropriate.
24564 (empty_unibyte_string, empty_multibyte_string): New externs.
24565 (empty_string): Remove extern.
24566
24567 * lread.c (syms_of_lread): Use empty_unibyte_string.
24568
245692007-06-07 Jason Rumney <jasonr@gnu.org>
24570
24571 * s/ms-w32.h: Don't define HAVE_TZNAME.
24572
24573 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24574
245752007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24576
24577 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24578
24579 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24580 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24581
24582 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24583 Don't call next handler.
24584 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24585 Remove argument. Install handler to application.
24586 (set_frame_menubar): Don't change deep_p.
24587 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24588 FRAME_OUTER_TO_INNER_DIFF_Y.
24589 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24590 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24591 [HAVE_DIALOGS]: New macros.
24592 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24593 Use them.
24594 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24595
24596 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24597 init_service_handler. All callers changed. Return OSStatus value.
24598
24599 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24600 All callers changed so as not to call SetPortWindowPort.
24601 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24602 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24603 mac_draw_string_common.
24604 (mac_draw_image_string_qd): Likewise.
24605 (mac_draw_string_common): Use them. Add INLINE.
24606 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24607 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24608 GetGlobalMouse.
24609 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24610 and FRAME_OUTER_TO_INNER_DIFF_Y.
24611 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24612 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24613 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24614 repositioning window to mac_handle_window_event.
24615 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24616 saving window location to mac_handle_window_event
24617 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24618 (install_menu_target_item_handler): Remove argument in extern.
24619 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24620 Also accept command events.
24621 (do_keystroke): New function created from XTread_socket.
24622 (init_command_handler): Remove functions.
24623 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24624 and save window location by kEventWindowShowing and kEventWindowHiding
24625 handlers here. Don't call next handler for window state change and
24626 focus events.
24627 (mac_handle_application_event, mac_handle_keyboard_event)
24628 [TARGET_API_MAC_CARBON]: New functions.
24629 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24630 kEventWindowShowing and kEventWindowHiding events. Move installation
24631 of mouse, font, text input and menu target item handlers to
24632 install_application_handler.
24633 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24634 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24635 New function.
24636 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24637 Register it.
24638 (XTread_socket) [TARGET_API_MAC_CARBON]:
24639 Consolidate SendEventToEventTarget calls.
24640 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24641 Move application activation handler to mac_handle_application_event.
24642 Move keyboard handler to mac_handle_keyboard_event.
24643 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24644 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24645 init_command_handler. Call install_application_handler.
24646
24647 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24648 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24649
246502007-06-07 Glenn Morris <rgm@gnu.org>
24651
24652 * emacs.c (main): Use `emacs-copyright' in --version output.
24653
246542007-06-06 Chong Yidong <cyd@stupidchicken.com>
24655
24656 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24657
246582007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24659
24660 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24661
24662 * macgui.h: Replace WindowPtr with WindowRef.
24663
24664 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24665 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24666 Replace ControlHandle with ControlRef.
24667 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24668
24669 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24670 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24671 Replace ControlHandle with ControlRef.
24672 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24673 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24674
24675 * macterm.h (struct scroll_bar): Rename member control_handle_low
24676 and control_handle_high to control_ref_low and control_ref_high.
24677 All uses changed.
24678 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24679 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24680 respectively. All uses changed.
24681 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24682 (install_window_handler, remove_window_handler): Replace WindowPtr
24683 with WindowRef in externs.
24684
246852007-06-05 Juanma Barranquero <lekktu@gmail.com>
24686
24687 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24688
246892007-06-03 Nick Roberts <nickrob@snap.net.nz>
24690
24691 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24692
24693 * frame.c (Fmouse_position, Fmouse_pixel_position):
24694 Condition on HAVE_GPM too.
24695
24696 * term.c (term_mouse_highlight): Remove unused variables.
24697 (Fterm_open_connection): Set gpm_zerobased to 1.
24698 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24699 Use zero based co-ordinates.
24700 (handle_one_term_event): Report a drag as mouse movement too.
24701
24702 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24703
247042007-06-03 Chong Yidong <cyd@stupidchicken.com>
24705
24706 * image.c (search_image_cache): New function. Require background
24707 color match if background color is unspecified in the image spec.
24708 (uncache_image, lookup_image): Use it.
24709
247102007-06-01 Juanma Barranquero <lekktu@gmail.com>
24711
24712 * window.c (Fshrink_window): Reflow docstring.
24713
247142007-06-02 Chong Yidong <cyd@stupidchicken.com>
24715
24716 * Version 22.1 released.
24717
247182007-06-01 Richard Stallman <rms@gnu.org>
24719
24720 * xfns.c (x_encode_text): Add GCPRO.
24721
247222007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24723
24724 * xfns.c (x_set_name_internal): Save encoded name before
24725 x_encode_text in case string data is relocated.
24726
247272007-05-31 Richard Stallman <rms@gnu.org>
24728
24729 * buffer.c (syms_of_buffer): Doc fix.
24730
247312007-05-30 Nick Roberts <nickrob@snap.net.nz>
24732
24733 * sysdep.c (init_sys_modes): Add rather than replace with
24734 O_NONBLOCK.
24735
24736 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24737 term_mouse_moveto.
24738
24739 * termhooks.h (term_mouse_moveto): New extern.
24740
24741 * term.c (mouse_face_window): Rename...
24742 (Qmouse_face_window): ...to this.
24743 (term_show_mouse_face, term_clear_mouse_face)
24744 (term_mouse_highlight): Use Qmouse_face_window.
24745 (term_mouse_moveto): New function.
24746 (term_mouse_position): Make it work.
24747 (syms_of_term): Uncomment assignment to mouse_position_hook.
24748 Staticpro Qmouse_face_window.
24749
247502007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24751
24752 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24753 around current_column call.
24754
247552007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24756
24757 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24758 * xdisp.c (next_element_from_buffer):
24759 * window.c (delete_window):
24760 * term.c (term_mouse_highlight):
24761 * msdos.c (getdefdir):
24762 * macterm.c (mac_create_bitmap_from_bitmap_data)
24763 (init_font_name_table):
24764 * fns.c (Fsxhash):
24765 * data.c (Fmake_local_variable):
24766 * ccl.c (ccl_driver): Likewise.
24767
247682007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24769
24770 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24771 Call mac_wakeup_from_rne on window size change.
24772
247732007-05-25 Chong Yidong <cyd@stupidchicken.com>
24774
24775 * image.c (uncache_image): Fix typo.
24776
247772007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24778
24779 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24780
247812007-05-22 Richard Stallman <rms@gnu.org>
24782
24783 * xterm.c (x_connection_closed): Remove NO_RETURN.
24784
247852007-05-22 Martin Rudalics <rudalics@gmx.at>
24786
24787 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24788
247892007-05-21 Chong Yidong <cyd@stupidchicken.com>
24790
24791 * image.c (uncache_image): New function.
24792 (Fimage_refresh): New function.
24793
247942007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24795
24796 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24797
247982007-05-20 Nick Roberts <nickrob@snap.net.nz>
24799
24800 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24801 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24802
248032007-05-20 Nick Roberts <nickrob@snap.net.nz>
24804
24805 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24806 conditional on [HAVE_GPM_H].
24807
248082007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24809
24810 * syntax.c (skip_chars): Update syntax-table only after we checked that
24811 the new location is valid.
24812
248132007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24814
24815 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24816 mac_get_window_bounds.
24817
248182007-05-20 Nick Roberts <nickrob@snap.net.nz>
24819
24820 * Makefile.in (LIBGPM): Allow it to be set from configure.
24821 If set then link Emacs with it.
24822
24823 * config.in: Regenerate.
24824
24825 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24826 New externs.
24827
24828 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24829 Include gpm.h.
24830 (handle_one_term_event, term_gpm): New externs.
24831
24832 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24833 and allow it to be interrupted by SIGIO.
24834
24835 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24836 (wait_reading_process_output): Wait on gpm_fd too.
24837 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24838 (add_gpm_wait_descriptor_called_flag): New variable.
24839 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24840
24841 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24842 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24843 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24844 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24845 (make_lispy_event): Add case GPM_CLICK_EVENT.
24846 (read_avail_input): Handle mouse input.
24847
24848 * term.c (write_glyphs_with_face): New function.
24849 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24850 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24851 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24852 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24853 (last_mouse_x, last_mouse_y): New variables.
24854 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24855 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24856 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24857 (Fterm_close_connection): New functions.
24858 (term_init): Initialise mouse_face_window.
24859
248602007-05-19 Chong Yidong <cyd@stupidchicken.com>
24861
24862 * xdisp.c (redisplay_window): If first window line is a
24863 continuation line, recompute the new window start instead of
24864 recentering.
24865
248662007-05-18 Glenn Morris <rgm@gnu.org>
24867
24868 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24869 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24870
248712007-05-17 Glenn Morris <rgm@gnu.org>
24872
24873 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24874
248752007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24876
24877 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24878 dead key repeat and up events.
24879
248802007-05-14 Chong Yidong <cyd@stupidchicken.com>
24881
24882 * image.c (pbm_load): Check image size for monochrome pbm.
24883
248842007-05-13 Chong Yidong <cyd@stupidchicken.com>
24885
24886 * xterm.c (XTread_socket): Revert last change.
24887
248882007-05-12 Chong Yidong <cyd@stupidchicken.com>
24889
24890 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24891
24892 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24893
248942007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24895
24896 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24897 mixup (YAILOM).
24898
248992007-05-07 Andreas Schwab <schwab@suse.de>
24900
24901 * keymap.c (Flookup_key): Fix typo in last change.
24902
249032007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24904
24905 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24906 mapping for unibyte strings.
24907
249082007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24909
24910 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24911 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24912
249132007-04-29 Richard Stallman <rms@gnu.org>
24914
24915 * insdel.c (replace_range): For undo, record insertion first.
24916
249172007-04-29 Andreas Schwab <schwab@suse.de>
24918
24919 * lisp.h (VECSIZE): Use OFFSETOF.
24920
249212007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24922
24923 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24924 disabled lines.
24925
249262007-04-28 Richard Stallman <rms@gnu.org>
24927
24928 * lread.c (read_escape): In a string, \s is always space.
24929
249302007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24931
24932 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24933
24934 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24935 submenu for menu bar items.
24936
24937See ChangeLog.10 for earlier changes.
24938
24939;; Local Variables:
24940;; coding: utf-8
24941;; add-log-time-zone-rule: t
aac0c6e3
MR
24942;; End:
24943
e3eb1dae 24944 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24945
24946 This file is part of GNU Emacs.
24947
24948 GNU Emacs is free software: you can redistribute it and/or modify
24949 it under the terms of the GNU General Public License as published by
24950 the Free Software Foundation, either version 3 of the License, or
24951 (at your option) any later version.
24952
24953 GNU Emacs is distributed in the hope that it will be useful,
24954 but WITHOUT ANY WARRANTY; without even the implied warranty of
24955 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24956 GNU General Public License for more details.
24957
24958 You should have received a copy of the GNU General Public License
24959 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24960
24961;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40