merge trunk
[bpt/emacs.git] / src / ChangeLog
CommitLineData
5842a27b
DN
12010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * alloc.c: Convert DEFUNs to standard C.
4 * buffer.c:
5 * bytecode.c:
6 * callint.c:
7 * callproc.c:
8 * casefiddle.c:
9 * casetab.c:
10 * category.c:
11 * character.c:
12 * charset.c:
13 * chartab.c:
14 * cmds.c:
15 * coding.c:
16 * composite.c:
17 * data.c:
18 * dbusbind.c:
19 * dired.c:
20 * dispnew.c:
21 * doc.c:
22 * dosfns.c:
23 * editfns.c:
24 * emacs.c:
25 * eval.c:
26 * fileio.c:
27 * filelock.c:
28 * floatfns.c:
29 * fns.c:
30 * font.c:
31 * fontset.c:
32 * frame.c:
33 * fringe.c:
34 * image.c:
35 * indent.c:
36 * insdel.c:
37 * keyboard.c:
38 * keymap.c:
39 * lread.c:
40 * macros.c:
41 * marker.c:
42 * menu.c:
43 * minibuf.c:
44 * msdos.c:
45 * nsfns.m:
46 * nsmenu.m:
47 * nsselect.m:
48 * print.c:
49 * process.c:
50 * search.c:
51 * sound.c:
52 * syntax.c:
53 * term.c:
54 * terminal.c:
55 * textprop.c:
56 * undo.c:
57 * w16select.c:
58 * w32console.c:
59 * w32fns.c:
60 * w32font.c:
61 * w32menu.c:
62 * w32proc.c:
63 * w32select.c:
64 * window.c:
65 * xdisp.c:
66 * xfaces.c:
67 * xfns.c:
68 * xmenu.c:
69 * xselect.c:
70 * xsettings.c:
71 * xsmfns.c: Likewise.
72
73
d568829b
EZ
742010-07-08 Eli Zaretskii <eliz@gnu.org>
75
76 * process.c (kbd_is_on_hold, hold_keyboard_input)
77 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
78
52214050
J
792010-07-08 Jan Djärv <jan.h.d@swipnet.se>
80
81 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
82 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
83 unless USE_LUCID.
84
313d9eb2
DN
852010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
86
d8825aa3
DN
87 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
88
295d0d8f
DN
89 Clean up include guards.
90 * tparam.c: Remove include guards for config.h, string.h and code
91 that assumes #ifndef emacs.
92 * termcap.c:
93 * unexalpha.c:
94 * sysdep.c:
95 * filemode.c:
96 * filelock.c:
97 * bidi.c: Likewise.
98
49d9e6b0
DN
99 Remove prefix-args.c
100 * prefix-args.c: Remove file.
101 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
102 * Makefile.in (temacs${EXEEXT}): Remove references to
103 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
104 (mostlyclean): Remove reference to prefix-args.
105 (prefix-args): Remove.
106
313d9eb2
DN
107 Simplify cstart_of_data, start_of_code and related code.
108 * mem-limits.h: Remove !emacs and _LIBC conditional code.
109 (start_of_data): Merge into start_of_data function.
110 * sysdep.c (start_of_text): Remove. Move simplified versions of
111 it in the only users: unexaix.c and unexec.c.
112 (read_input_waiting): Remove local declaration of quit_char.
113 (start, etext): Remove declarations.
114 (start_of_data): Merge with the version in mem-limits.h and move
115 to vm-limits.c.
116 * vm-limit.c (start_of_data): Merged and simplified version of the
117 code formerly in mem-limits.h and sysdep.c.
118 * unexec.c (start): New declaration, moved from sysdep.c.
119 (start_of_text): Simplified version of the code formerly in sysdep.c.
120 * unexaix.c (start_of_text): Simplified version of the code
121 formerly in sysdep.c.
122 * m/alpha.h (HAVE_TEXT_START): Remove.
123 (TEXT_START): Move ...
124 * unexalpha.c (TEXT_START): ... here.
125 * s/hpux10-20.h (TEXT_START): Remove.
126 * s/darwin.h (TEXT_START):
127 * m/mips.h (TEXT_START):
128 * m/macppc.h (HAVE_TEXT_START):
129 * m/m68k.h (TEXT_START):
130 * m/iris4d.h (TEXT_START):
131 * m/intel386.h (TEXT_START):
132 * m/ibmrs6000.h (TEXT_START):
133 * m/ia64.h (HAVE_TEXT_START):
134 * s/msdos.h (TEXT_START): Likewise.
135
72af86bd
AS
1362010-07-07 Andreas Schwab <schwab@linux-m68k.org>
137
138 * alloc.c (overrun_check_malloc, overrun_check_realloc)
139 (overrun_check_free, xstrdup, allocate_string)
140 (allocate_string_data, compact_small_strings, Fmake_string)
141 (make_unibyte_string, make_multibyte_string)
142 (make_string_from_bytes, make_specified_string, make_float)
143 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
144 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
145 memcpy, memmove, memset, memcmp.
146 * atimer.c (start_atimer, set_alarm): Likewise.
147 * buffer.c (clone_per_buffer_values, report_overlay_modification)
148 (mmap_realloc, init_buffer_once): Likewise.
149 * callint.c (Fcall_interactively): Likewise.
150 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
151 (getenv_internal_1): Likewise.
152 * casefiddle.c (casify_object): Likewise.
153 * ccl.c (ccl_driver): Likewise.
154 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
155 * charset.c (load_charset_map_from_file)
156 (load_charset_map_from_file, load_charset_map_from_vector)
157 (Fdefine_charset_internal): Likewise.
158 * cm.c (Wcm_clear): Likewise.
159 * coding.c (decode_eol, decode_coding_object)
160 (Fset_coding_system_priority, make_subsidiaries): Likewise.
161 * data.c (Faset): Likewise.
162 * dired.c (directory_files_internal, file_name_completion_stat):
163 Likewise.
164 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
165 (clear_glyph_row, copy_row_except_pointers)
166 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
167 (save_current_matrix, restore_current_matrix)
168 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
169 (mirror_line_dance, scrolling_window): Likewise.
170 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
171 Likewise.
172 * doprnt.c (doprnt): Likewise.
173 * editfns.c (Fuser_full_name, make_buffer_string_both)
174 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
175 * emacs.c (sort_args): Likewise.
176 * eval.c (Fapply, Ffuncall): Likewise.
177 * fileio.c (Ffile_name_directory, make_temp_name)
178 (Fexpand_file_name, search_embedded_absfilename)
179 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
180 (auto_save_error): Likewise.
181 * fns.c (Fstring_equal, Fcopy_sequence, concat)
182 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
183 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
184 (Fmake_hash_table): Likewise.
185 * fringe.c (Fdefine_fringe_bitmap): Likewise.
186 * ftfont.c (ftfont_text_extents): Likewise.
187 * getloadavg.c (getloadavg): Likewise.
188 * image.c (define_image_type, make_image, make_image_cache)
189 (x_create_x_image_and_pixmap, xbm_image_p)
190 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
191 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
192 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
193 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
194 (tiff_image_p, tiff_read_from_memory, gif_image_p)
195 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
196 Likewise.
197 * indent.c (scan_for_column, compute_motion): Likewise.
198 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
199 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
200 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
201 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
202 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
203 (store_user_signal_events, menu_bar_items, tool_bar_items)
204 (process_tool_bar_item, append_tool_bar_item)
205 (read_char_minibuf_menu_prompt, read_key_sequence)
206 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
207 Likewise.
208 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
209 Likewise.
210 * lisp.h (STRING_COPYIN): Likewise.
211 * lread.c (Fload, read1, oblookup): Likewise.
212 * msdos.c (Frecent_doskeys): Likewise.
213 * nsfns.m (Fx_create_frame): Likewise.
214 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
215 Likewise.
216 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
217 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
218 Likewise.
219 * nsmenu.m (ns_update_menubar): Likewise.
220 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
221 * print.c (print_unwind, printchar, strout, print_string)
222 (print_error_message): Likewise.
223 * process.c (conv_lisp_to_sockaddr, set_socket_option)
224 (Fmake_network_process, Fnetwork_interface_list)
225 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
226 (init_process): Likewise.
227 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
228 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
229 Likewise.
230 * scroll.c (do_scrolling, do_direct_scrolling)
231 (scrolling_max_lines_saved): Likewise.
232 * search.c (search_buffer, wordify, Freplace_match): Likewise.
233 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
234 * syntax.c (skip_chars, skip_syntaxes): Likewise.
235 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
236 (emacs_set_tty): Likewise.
237 * term.c (encode_terminal_code, calculate_costs)
238 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
239 Likewise.
240 * termcap.c (tgetst1, gobble_line): Likewise.
241 * termhooks.h (EVENT_INIT): Likewise.
242 * tparam.c (tparam1): Likewise.
243 * unexalpha.c (unexec): Likewise.
244 * unexec.c (write_segment): Likewise.
245 * unexmacosx.c (unexec_write_zero): Likewise.
246 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
247 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
248 * w32font.c (w32font_list_family, w32font_text_extents)
249 (w32font_list_internal, w32font_match_internal)
250 (w32font_open_internal, compute_metrics, Fx_select_font):
251 Likewise.
252 * w32menu.c (set_frame_menubar, add_menu_item)
253 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
254 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
255 * w32uniscribe.c (uniscribe_list_family): Likewise.
256 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
257 * window.c (make_window, replace_window, set_window_buffer)
258 (Fsplit_window): Likewise.
259 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
260 (add_to_log, message3, x_consider_frame_title)
261 (append_space_for_newline, extend_face_to_end_of_line)
262 (decode_mode_spec_coding, init_glyph_string): Likewise.
263 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
264 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
265 (face_attr_equal_p, make_realized_face, make_face_cache)
266 (free_realized_faces, lookup_named_face, smaller_face)
267 (face_with_height, lookup_derived_face)
268 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
269 (Finternal_set_font_selection_order, realize_default_face)
270 (compute_char_face, face_at_buffer_position)
271 (face_for_overlay_string, face_at_string_position, merge_faces):
272 Likewise.
273 * xfns.c (xic_create_fontsetname, Fx_create_frame)
274 (Fx_window_property, x_create_tip_frame)
275 (Fx_backspace_delete_keys_p): Likewise.
276 * xfont.c (xfont_list, xfont_match, xfont_list_family)
277 (xfont_text_extents): Likewise.
278 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
279 * xrdb.c (magic_file_p, x_get_resource): Likewise.
280 * xselect.c (x_queue_event, x_get_window_property)
281 (receive_incremental_selection): Likewise.
282 * xsmfns.c (x_session_check_input): Likewise.
283 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
284 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
285 Likewise.
286 * character.h (BCOPY_SHORT): Removed.
287 * config.in: Regenerate.
288 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
289 * emacs.c (main) [PROFILING]: Don't declare
290 dump_opcode_frequencies.
291 * lisp.h (safe_bcopy): Remove declaration.
292 (memset) [!HAVE_MEMSET]: Declare.
293 (memcpy) [!HAVE_MEMCPY]: Likewise.
294 (memmove) [!HAVE_MEMMOVE]: Likewise.
295 (memcmp) [!HAVE_MEMCMP]: Likewise.
296 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
297 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
298 Don't define.
299 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
300 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
301 (BCOPY_DOWNWARD_SAFE): Don't define.
302 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
303 (memcpy) [!HAVE_MEMCPY]: Define.
304 (memmove) [!HAVE_MEMMOVE]: Define.
305 (memcmp) [!HAVE_MEMCMP]: Define.
306
cb768704
J
3072010-07-07 Jan Djärv <jan.h.d@swipnet.se>
308
309 * process.c (kbd_is_on_hold): New variable.
310 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
311 functions.
312 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
313 select on empty input mask.
314 (init_process): Initialize kbd_is_on_hold to 0.
315
316 * process.h (hold_keyboard_input, unhold_keyboard_input)
317 (kbd_on_hold_p): Declare.
318
319 * keyboard.c (input_available_signal): Declare.
320 (kbd_buffer_nr_stored): New function.
321 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
322 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
323 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
324 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
325 (tty_read_avail_input): If input is on hold, return.
326 Don't read more that free slots in kbd_buffer (Bug#6571).
327
3a8ce822
EZ
3282010-07-07 Eli Zaretskii <eliz@gnu.org>
329
330 * msdos.h:
331 * msdos.c:
332 * dosfns.c:
333 * w16select.c: Convert function definitions to ANSI C.
334
335 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
336 unused prototypes.
337
cf84bb53
JB
3382010-07-07 Juanma Barranquero <lekktu@gmail.com>
339
340 * coding.c, sysdep.c: Convert some more functions to standard C.
341
1a4990fb
JB
3422010-07-07 Juanma Barranquero <lekktu@gmail.com>
343
344 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
345 (encode_coding_object): Use SPECPDL_INDEX.
346 (syms_of_coding): Use DOS_NT.
347
c0f2f16b
DN
3482010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
349
48fb6855
DN
350 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
351
c0f2f16b
DN
352 Make the function member of Lisp_Subr use standard C prototypes.
353 * lisp.h (struct Lisp_Subr): Use a union for the function member.
354 (DECL_ALIGN): Add a cast for the function.
355 * eval.c (Feval, Ffuncall): Use the proper type for each type
356 function call.
357
67aecef9
CY
3582010-07-06 Chong Yidong <cyd@stupidchicken.com>
359
360 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
361 fringe face id, so face-remapping-alist works (Bug#6091).
362
b56ceb92
JB
3632010-07-06 Juanma Barranquero <lekktu@gmail.com>
364
365 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
366 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
367 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
368
7af07b96
AS
3692010-07-06 Andreas Schwab <schwab@linux-m68k.org>
370
371 * xterm.c (x_get_keysym_name): Change type of parameter to int.
372 * lisp.h: Declare x_get_keysym_name.
373 * keyboard.c (modify_event_symbol): Don't declare
374 x_get_keysym_name here.
375
69e24e34
DN
3762010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
377
378 * ecrt0.c: Revert conversion to standard C.
379
d3da34e0 3802010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
381
382 * vm-limit.c (memory_warnings):
383 * keyboard.c (modify_event_symbol):
384 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
385 (round2, emacs_rint):
386 * process.c (send_process, old_sigpipe): Convert function
387 definitions and declarations to standard C.
388
3892010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
390
391 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
392 * xdisp.c: Convert function definitions to standard C.
393
394 * cm.c (cmputc): Arg C is now int, not char.
395 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
396
00be444c
J
3972010-07-05 James Cloos <cloos@jhcloos.com>
398
399 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
400
401 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
402 _NET_WM_ICON_NAME atoms.
403
404 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
405 and _NET_WM_ICON_NAME properties, too, matching what is
406 done in the Gtk+ case.
407
e4c8d29a
J
4082010-07-05 Jan Djärv <jan.h.d@swipnet.se>
409
ff919460
J
410 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
411
e4c8d29a
J
412 * xsmfns.c (SSDATA): New macro.
413 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
414 passed to strlen/strcpy/strcat.
415 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
416 7:th arg to XChangeProperty to (unsigned char *)
417
418 * xsettings.c (something_changedCB, parse_settings)
419 (apply_xft_settings): Reformat prototype.
420 (something_changedCB, init_gconf): Remove unused variable i.
421 (read_settings): Remove unused variable long_len.
422
423 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
424 (xg_get_image_for_pixmap, create_dialog)
425 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
426 (menuitem_highlight_callback, make_menu_item)
427 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
428 (xg_create_scroll_bar, xg_update_scrollbar_pos)
429 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
430 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
431 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
432 (xg_tool_bar_item_expose_callback): Reformat prototype.
433 (xg_update_menubar): GList *group => GSList *group.
434 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
435 before use.
436 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
437 to GTK_IMAGE (wimage).
438
dd4c5104
DN
4392010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
440
898b4c5c
DN
441 * atimer.c: Use "" instead of <> for local includes for
442 consistency with the rest of the code.
443
dd4c5104
DN
444 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
445 * xrdb.c (get_system_name):
446 * window.c (shrink_windows):
447 * syntax.c (forw_comment):
448 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
449 (ins_del_costs):
450 * mem-limits.h (start_of_data):
451 * lread.c (readevalloop):
452 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
453 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
454 * frame.c (x_get_focus_frame):
455 * floatfns.c (fmod_float):
456 * fileio.c (choose_write_coding_system):
457 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
458 (malloc_initialize_hook, sort_args, synchronize_locale):
459 * doprnt.c (doprnt):
460 * dired.c (compile_pattern):
461 * data.c (fmod_float):
462 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
463 (map_char_table_for_charset):
464 * charset.c (define_charset_internal):
465 * alloc.c (Fgarbage_collect): Convert declarations or definitions
466 to standard C.
467
9a39b306 4682010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 469 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
470
471 * lread.c (read1): Fix up last change to not mess up `c'.
472
e6cb2cbb
JB
4732010-07-04 Juanma Barranquero <lekktu@gmail.com>
474
475 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
476
438105ed
JB
4772010-07-04 Juanma Barranquero <lekktu@gmail.com>
478
479 Fix prototypes.
480
e5447b22 481 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 482 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
483 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
484 arg, as required by internal_condition_case_1.
dcc7404b 485 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
486 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
487 (analyse_first): Fix "const const".
e5447b22 488 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 489 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 490 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 491
971de7fb
DN
4922010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
493
494 * alloc.c: Convert function definitions to standard C.
495 * atimer.c:
496 * bidi.c:
497 * bytecode.c:
498 * callint.c:
499 * callproc.c:
500 * casefiddle.c:
501 * casetab.c:
502 * category.c:
503 * ccl.c:
504 * character.c:
505 * charset.c:
506 * chartab.c:
507 * cmds.c:
508 * coding.c:
509 * composite.c:
510 * data.c:
511 * dbusbind.c:
512 * dired.c:
513 * dispnew.c:
514 * doc.c:
515 * doprnt.c:
516 * ecrt0.c:
517 * editfns.c:
518 * fileio.c:
519 * filelock.c:
520 * filemode.c:
521 * fns.c:
522 * font.c:
523 * fontset.c:
524 * frame.c:
525 * fringe.c:
526 * ftfont.c:
527 * ftxfont.c:
528 * gtkutil.c:
529 * indent.c:
530 * insdel.c:
531 * intervals.c:
532 * keymap.c:
533 * lread.c:
534 * macros.c:
535 * marker.c:
536 * md5.c:
537 * menu.c:
538 * minibuf.c:
539 * prefix-args.c:
540 * print.c:
541 * ralloc.c:
542 * regex.c:
543 * region-cache.c:
544 * scroll.c:
545 * search.c:
546 * sound.c:
547 * strftime.c:
548 * syntax.c:
549 * sysdep.c:
550 * termcap.c:
551 * terminal.c:
552 * terminfo.c:
553 * textprop.c:
554 * tparam.c:
555 * undo.c:
556 * unexelf.c:
557 * window.c:
558 * xfaces.c:
559 * xfns.c:
560 * xfont.c:
561 * xftfont.c:
562 * xgselect.c:
563 * xmenu.c:
564 * xrdb.c:
565 * xselect.c:
566 * xsettings.c:
567 * xsmfns.c:
568 * xterm.c: Likewise.
569
ae492bec
EZ
5702010-07-03 Eli Zaretskii <eliz@gnu.org>
571
76ea4cc9
EZ
572 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
573 frames other than the initial one. Fix reversal of colors when
574 `reverse' is specified in the frame parameters. Call
575 update_face_from_frame_parameter instead of
576 internal-set-lisp-face-attribute. Initialize screen colors from
577 initial_screen_colors[] when f->default_face_done_p is zero,
578 instead of depending on being called with default-frame-alist as
579 the alist argument.
580
581 * xfaces.c (update_face_from_frame_parameter): Move out of
582 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
583 with HAVE_WINDOW_SYSTEM.
584
1e6255ae
EZ
585 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
586 to menu-bar-mode, if not set in the frame parameters or in
587 default-frame-alist.
588
ae492bec
EZ
589 * w32console.c (sys_tputs): Adjust argument list to prototype in
590 term.c.
591
3a35a84c
JB
5922010-07-03 Juanma Barranquero <lekktu@gmail.com>
593
594 * lisp.h (memory_warnings): Fix prototype.
595
596 * cm.h (evalcost): Fix prototype.
597
598 * cm.c (evalcost): Fix arg type.
599
c532d349
DN
6002010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
601
602 * term.c (term_clear_mouse_face, Fidentity):
603 * syssignal.h (signal_handler_t):
604 * lisp.h (memory_warnings):
605 * coding.h (preferred_coding_system):
606 * cm.h (evalcost):
607 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
608
c0b36d46
EZ
6092010-07-02 Eli Zaretskii <eliz@gnu.org>
610
611 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
612 from prototypes.
613
614 * msdos.h (load_pixmap): Don't define away.
615
383e0970
J
6162010-07-02 Jan Djärv <jan.h.d@swipnet.se>
617
f57e2426
J
618 * lisp.h:
619 * atimer.h: Remove define for P_.
620
621 * alloc.c: Remove __P and P_ from .c and .m files.
622 * atimer.c:
623 * buffer.c:
624 * callint.c:
625 * category.c:
626 * charset.c:
627 * chartab.c:
628 * cm.c:
629 * coding.c:
630 * composite.c:
631 * data.c:
632 * dired.c:
633 * dispnew.c:
634 * doc.c:
635 * editfns.c:
636 * emacs.c:
637 * eval.c:
638 * fileio.c:
639 * filelock.c:
640 * fns.c:
641 * font.c:
642 * fontset.c:
643 * frame.c:
644 * ftfont.c:
645 * ftxfont.c:
646 * gmalloc.c:
647 * gtkutil.c:
648 * image.c:
649 * indent.c:
650 * intervals.c:
651 * keyboard.c:
652 * keymap.c:
653 * lread.c:
654 * marker.c:
655 * menu.c:
656 * minibuf.c:
657 * print.c:
658 * process.c:
659 * scroll.c:
660 * search.c:
661 * sound.c:
662 * strftime.c:
663 * syntax.c:
664 * sysdep.c:
665 * term.c:
666 * terminal.c:
667 * textprop.c:
668 * unexalpha.c:
669 * w32console.c:
670 * w32fns.c:
671 * w32font.c:
672 * w32menu.c:
673 * w32term.c:
674 * w32uniscribe.c:
675 * window.c:
676 * xdisp.c:
677 * xfaces.c:
678 * xfns.c:
679 * xfont.c:
680 * xftfont.c:
681 * xmenu.c:
682 * xselect.c:
683 * xterm.c: Likewise.
684
383e0970 685 Remove P_ and __P macros.
f57e2426
J
686 * atimer.h: Remove P_ and __P macros.
687 * buffer.h:
383e0970
J
688 * category.h:
689 * ccl.h:
690 * character.h:
691 * charset.h:
692 * cm.h:
693 * coding.h:
694 * composite.h:
695 * dispextern.h:
696 * disptab.h:
9e892c8d 697 * dosfns.h:
383e0970
J
698 * font.h:
699 * fontset.h:
700 * frame.h:
701 * gtkutil.h:
702 * indent.h:
703 * intervals.h:
704 * keyboard.h:
705 * keymap.h:
706 * lisp.h:
707 * macros.h:
708 * md5.h:
709 * menu.h:
710 * msdos.h:
711 * nsterm.h:
712 * puresize.h:
713 * region-cache.h:
714 * syntax.h:
715 * syssignal.h:
716 * systime.h:
717 * termhooks.h:
9e892c8d 718 * w32font.h:
383e0970
J
719 * w32term.h:
720 * widget.h:
721 * window.h:
722 * xgselect.h:
723 * xsettings.h:
724 * xterm.h: Likewise.
725
98601119
DN
7262010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
727
d9170db5
DN
728 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
729
98601119
DN
730 Cleanup old code.
731 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
732 * syssignal.h: Remove code for Lynx, not supported anymore.
733 * vm-limit.c: Remove unused code the depends on emacs not being
734 defined and NO_LIM_DATA being defined.
735 * mem-limits.h: Remove dead code.
736
1f984e12
J
7372010-07-01 Jan Djärv <jan.h.d@swipnet.se>
738
c49d071a
J
739 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
740
9d5405ec
J
741 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
742 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
743
7a18115b
J
744 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
745 parameters, they are already absolute.
746
581a8100
J
747 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
748 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
749
750 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
751
752 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
753 FRAME_TOOLBAR_HEIGHT.
754
1f984e12
J
755 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
756 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
757
c1ef4455
CY
7582010-06-30 Chong Yidong <cyd@stupidchicken.com>
759
760 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
761 check default-frame-alist.
762
ce8f5a9a
AS
7632010-06-30 Andreas Schwab <schwab@linux-m68k.org>
764
765 * process.c (create_process): Avoid using invalid file descriptors.
766
767 * callproc.c (child_setup): Avoid closing a file descriptor twice.
768
bf935339
J
7692010-06-30 Jan Djärv <jan.h.d@swipnet.se>
770
771 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
772 Improve documentation. Return font regardless of use_system_font.
773 (syms_of_xsettings): Improve documentation for font-use-system-font.
774
769e9d47
KH
7752009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
776
777 * xftfont.c (xftfont_open): Check font width one by one also when
778 spacing is dual.
779
780 * ftfont.c (ftfont_open): Ditto.
781
6259c2ec
GM
7822010-06-30 Glenn Morris <rgm@gnu.org>
783
a46007e9
GM
784 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
785
6259c2ec
GM
786 * Makefile.in (CANNOT_DUMP): Update for configure name change.
787
788 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
789 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
790 * s/darwin.h (SYSTEM_MALLOC):
791 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
792
5d1d3d04
J
7932010-06-29 Jan Djärv <jan.h.d@swipnet.se>
794
795 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
796 (ns_get_screen): Don't assign integer to f.
797 (Fx_display_color_cells): Declarations before statements.
798
e547b051
J
7992010-06-28 Jan Djärv <jan.h.d@swipnet.se>
800
5fc8e5bc
J
801 * xfns.c (x_default_font_parameter): Remove got_from_system
802 (Bug#6526).
803
e547b051
J
804 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
805 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
806 defines based on what configure finds.
807
808 * xterm.c (XTflash): Use gtk_widget_get_window.
809 (xg_scroll_callback): Use gtk_adjustment_get_upper and
810 gtk_adjustment_get_page_size.
811 (handle_one_xevent): Use gtk_widget_get_mapped.
812 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
813 messages.
814
815 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
816
817 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
818 HAVE_GTK_FILE_SELECTION_NEW.
819
820 * gtkutil.c (xg_display_open, xg_display_close): Remove
821 HAVE_GTK_MULTIDISPLAY, it is always defined.
822 (xg_display_open): Return type is void.
823 (gtk_widget_set_has_window)
824 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
825 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
826 (gtk_adjustment_set_page_increment)
827 (gtk_adjustment_get_step_increment): #define these if not found
828 by configure.
829 (remove_submenu): New define based on Gtk+ version.
830 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
831 gtk_widget_get_window.
832 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
833 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
834 (create_dialog): Use gtk_dialog_get_action_area and
835 gtk_dialog_get_content_area.
836 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
837 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
838 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
839 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
840 g_object_ref and g_object_unref.
841 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
842 gtk_widget_get_sensitive.
843 (xg_update_submenu): Use remove_submenu.
844 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
845 properties instead to get old x and y position.
846 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
847 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 848 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
849 (xg_get_tool_bar_widgets): New function.
850 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
851 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
852 (toolbar_set_orientation): New #define based on if configure
853 finds gtk_orientable_set_orientation.
854 (xg_create_tool_bar): Call toolbar_set_orientation.
855 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
856 instead of gtk_box_pack_start_defaults.
857
b9229673
CY
8582010-06-28 Chong Yidong <cyd@stupidchicken.com>
859
860 * cmds.c (Fdelete_backward_char): Move into Lisp.
861
bbc803b0
DN
8622010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
863
864 * s/freebsd.h (BSD4_2): Remove redundant definition.
865 bsd-common.h defines it already.
866
6431f2e6
CY
8672010-06-27 Chong Yidong <cyd@stupidchicken.com>
868
869 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
870 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
871 tool-bar-mode, which are now set using these X resources at
872 startup, to determine the defaults (Bug#2249).
873
874 * w32fns.c (Fx_create_frame):
875 * nsfns.m (Fx_create_frame): Likewise.
876
877 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
878
8c079ebb
JB
8792010-06-24 Juanma Barranquero <lekktu@gmail.com>
880
881 * gtkutil.c (xg_update_scrollbar_pos):
882 Avoid C99 mid-block variable declaration.
883
e9b7ab96
JD
8842010-06-22 Jan Djärv <jan.h.d@swipnet.se>
885
bc869eca
JD
886 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
887
2b7e356a 888 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
889
890 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
891 if height is less than scroll bar min size.
892 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
893
e9b7ab96
JD
894 * xfns.c (x_default_font_parameter): Try to open font from system
895 before using it (bug#6478). Rename got_from_gconf to got_from_system.
896
32a679fd
JD
8972010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
898
899 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
900
70c4cfbb
EZ
9012010-06-20 Eli Zaretskii <eliz@gnu.org>
902
903 * xdisp.c (try_scrolling): When scroll-conservatively is set to
904 most-positive-fixnum, be extra accurate when scrolling window
905 start, to avoid missing the cursor line.
906
ad5a12b5
EZ
9072010-06-19 Eli Zaretskii <eliz@gnu.org>
908
909 * xdisp.c (try_scrolling): Compute the limit for searching point
910 in forward scroll from scroll_max, instead of an arbitrary limit
911 of 10 screen lines. See
912 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
913 and
914 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
915 for details.
916
2a64315a 9172010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
918
919 * editfns.c (Fbyte_to_string): Pacify compiler.
920
288cf4e9
SM
9212010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
922
923 * lread.c (read1): Phase out old-style backquotes a bit more.
924
6e6e5760
EZ
9252010-06-12 Eli Zaretskii <eliz@gnu.org>
926
cbc4fd20
EZ
927 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
928 bidimirror.h.
929
930 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
931
317fbf33
EZ
932 * bidi.c (bidi_initialize): Remove explicit initialization of
933 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 934 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 935 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
936
937 * biditype.h: New file.
938
cbc4fd20
EZ
939 * bidimirror.h: New file.
940
6e6e5760
EZ
941 * window.c (syms_of_window): Doc fix (bug#6409).
942
4176cba2
RF
9432010-06-12 Romain Francoise <romain@orebokech.com>
944
945 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
946 ediff-hook.
947
cb4bfcb5
GM
9482010-06-10 Glenn Morris <rgm@gnu.org>
949
64c60c2f
GM
950 * editfns.c (Fbyte_to_string): Pacify compiler.
951
cb4bfcb5
GM
952 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
953
e454a4a3
SM
9542010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
955
956 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
957 Check `object's type before accessing its guts.
958
c1b1acc2
DN
9592010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
960
961 * s/usg5-4.h: Fix previous change.
962 Suggested by Lawrence Mitchell <wence@gmx.li>
963
657d4c0b
AS
9642010-06-08 Andreas Schwab <schwab@linux-m68k.org>
965
966 * minibuf.c (Fall_completions): Add more checks.
967
9b27fd9f
JB
9682010-06-08 Juanma Barranquero <lekktu@gmail.com>
969
970 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
971
a99ebb40
DN
9722010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
973
d7c5d87d
DN
974 * lread.c (X_OK): Remove, unused.
975
0263a941
DN
976 * dispnew.c: Remove obsolete comment.
977
a99ebb40
DN
978 Remove INCLUDED_FCNTL.
979 * xterm.c (INCLUDED_FCNTL):
980 * callproc.c (INCLUDED_FCNTL):
981 * alloc.c (INCLUDED_FCNTL):
982 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
983 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
984
13b5221f
MR
9852010-06-07 Martin Rudalics <rudalics@gmx.at>
986
987 * window.c (Fselect_window): Move `record_buffer' up to the
988 beginning of this function, so the buffer gets recorded
989 even if the selected window does not change.
990 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
991
5220357f
JB
9922010-06-07 Juanma Barranquero <lekktu@gmail.com>
993
994 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
995 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
996
3085237c
DN
9972010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
998
999 Remove BSTRING related code, all platforms define it.
1000 * s/usg5-4.h (BSTRING): Remove definition.
1001 * s/template.h (BSTRING):
1002 * s/msdos.h (BSTRING):
1003 * s/ms-w32.h (BSTRING):
1004 * s/hpux10-20.h (BSTRING):
1005 * s/gnu-linux.h (BSTRING):
1006 * s/darwin.h (BSTRING):
1007 * s/cygwin.h (BSTRING):
1008 * s/bsd-common.h (BSTRING):
1009 * s/aix4-2.h (BSTRING): Likewise.
1010 * sysdep.c: Remove code depending on BSTRING not being defined.
1011
409f2919
JB
10122010-06-05 Juanma Barranquero <lekktu@gmail.com>
1013
1014 Remove obsolete macro BASE_LEADING_CODE_P.
1015 * character.h (BASE_LEADING_CODE_P): Remove.
1016 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1017 * buffer.c (Fset_buffer_multibyte):
1018 * indent.c (scan_for_column, compute_motion):
1019 * insdel.c (count_combining_before, count_combining_after):
1020 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1021
087fc47a
JB
10222010-06-04 Juanma Barranquero <lekktu@gmail.com>
1023
1024 Turn `directory-sep-char' into a noop.
1025
1026 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1027 (DIRECTORY_SEP): Define unconditionally.
1028
1029 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1030
1031 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1032 call dostounix_filename directly.
1033
1034 * fileio.c (CORRECT_DIR_SEPS): Remove.
1035 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1036 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1037 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1038 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1039
1040 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1041 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1042
0eb7675e
AS
10432010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1044
1045 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 1046 address. (Bug#6346)
0eb7675e 1047
78edd3b7
JB
10482010-06-03 Juanma Barranquero <lekktu@gmail.com>
1049
1050 * ccl.c (Fccl_program_p): Fix typo in docstring.
1051
eb697db5
DN
10522010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1053
1054 Move UNEXEC definition to autoconf.
1055 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1056 * s/sol2-10.h (UNEXEC):
1057 * s/irix6-5.h (UNEXEC):
1058 * s/hpux10-20.h (UNEXEC):
1059 * s/gnu-linux.h (UNEXEC):
1060 * s/darwin.h (UNEXEC):
1061 * s/cygwin.h (UNEXEC):
1062 * s/bsd-common.h (UNEXEC):
1063 * s/aix4-2.h (UNEXEC):
1064 * m/alpha.h (UNEXEC): Likewise.
1065 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1066
aa3830c4
JB
10672010-06-03 Juanma Barranquero <lekktu@gmail.com>
1068
1069 Remove obsolete pre-unicode2 macros.
1070 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1071 * composite.c (composition_reseat_it):
1072 * data.c (Faset):
1073 * fns.c (Ffillarray):
1074 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1075 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1076
d234d13e
JL
10772010-06-03 Juri Linkov <juri@jurta.org>
1078
1079 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1080 (Fswitch_to_buffer): Remove unused variable `err'.
1081
0d4bcf4d
GM
10822010-06-03 Glenn Morris <rgm@gnu.org>
1083
e23dc1e2
GM
1084 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1085
05b09564
GM
1086 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1087 now that AH_BOTTOM does it.
1088
824e2978
GM
1089 * m/hp800.h (HAVE_ALLOCA):
1090 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1091
0d4bcf4d
GM
1092 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1093 Remove NOT_C_CODE tests, it is always true now.
1094
c55d2abf
DN
10952010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1096
08a494a3
DN
1097 Fix config.h includes.
1098 * xsettings.c:
1099 * xgselect.c:
1100 * nsterm.m:
1101 * nsselect.m:
1102 * nsimage.m:
1103 * nsfont.m:
1104 * nsfns.m:
1105 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1106 other files do.
1107
75934b1d
DN
1108 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1109
9f32a766
DN
1110 * s/sol2-6.h: Remove obsolete comments.
1111
c55d2abf
DN
1112 Remove unnecessary alloca.h includes.
1113 * keymap.c: Do not include alloca.h, config.h does that.
1114 * sysdep.c: Likewise. Do not define fwrite, not used.
1115
06ac62b4
SM
11162010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1117
1118 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1119 the HAVE_TERMIO where it belongs (bug#6149).
1120
1ab8293c
SM
11212010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1122
1123 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1124 of bug#6305).
1125
6dcfd253
EZ
11262010-05-30 Eli Zaretskii <eliz@gnu.org>
1127
1128 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1129 state is always cached (bug#6306).
1130
6d26bbb2
EZ
11312010-05-29 Eli Zaretskii <eliz@gnu.org>
1132
06fa4a23
EZ
1133 Fix cursor motion in bidi-reordered continued lines.
1134 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1135 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1136 over continuation lines in bidi-reordered buffers. Return
1137 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1138 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1139
f5783df3
MA
11402010-05-28 Michael Albinus <michael.albinus@gmx.de>
1141
1142 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1143
7d56b2dd
KH
11442010-05-28 Kenichi Handa <handa@m17n.org>
1145
1146 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1147 Don't sheck SPEC if it is nil.
1148 (font_list_entities): Call font_delete_unmatched if
b925d231 1149 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1150
e58d4ff7
GM
11512010-05-28 Glenn Morris <rgm@gnu.org>
1152
1153 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1154
f1a5d776
CY
11552010-05-27 Chong Yidong <cyd@stupidchicken.com>
1156
1157 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1158 whether to trash.
1159 (internal_delete_file, Frename_file): Callers changed.
1160 (delete_by_moving_to_trash): Doc fix.
1161 (Fdelete_directory_internal): Don't move to trash.
1162
1163 * callproc.c (delete_temp_file):
1164 * buffer.c (Fkill_buffer): Callers changed.
1165
1166 * lisp.h: Update prototype.
1167
f44a59e6
CY
11682010-05-27 Chong Yidong <cyd@stupidchicken.com>
1169
1170 * xdisp.c (redisplay_window): After redisplay, check if point is
1171 still valid before setting it (Bug#6177).
1172
81ac4f35
GM
11732010-05-27 Glenn Morris <rgm@gnu.org>
1174
1175 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1176 Convert comments to Makefile format.
1177
1178 * Makefile.in (bootstrap-clean): No more Makefile.c.
1179
ccd89fb3
GM
11802010-05-26 Glenn Morris <rgm@gnu.org>
1181
90278cb6
GM
1182 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1183 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1184
ccd89fb3
GM
1185 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1186 Remove.
1187 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1188
b7050583
KH
11892010-05-26 Kenichi Handa <handa@m17n.org>
1190
1191 * composite.c (composition_compute_stop_pos): Fix condition for
1192 backward scanning.
1193
e5458003
GM
11942010-05-25 Glenn Morris <rgm@gnu.org>
1195
c345fe90
GM
1196 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1197 Move before TEMACS_LDFLAGS.
1198 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1199 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1200
2e0689ab
GM
1201 * Makefile.in (NOT_C_CODE): No longer define.
1202 (config.h): No longer include.
1203
8009a5e8
GM
1204 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1205 variables it may reference.
1206
e5458003
GM
1207 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1208 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1209
10f72a37
KH
12102010-05-25 Kenichi Handa <handa@m17n.org>
1211
1212 * dispextern.h (struct composition_it): New members rule_idx and
1213 charpos.
1214
1215 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1216 that the character positions of IT point the last character of the
1217 current grapheme cluster.
1218 (next_element_from_composition): Don't change character positions
1219 of IT.
1220 (append_composite_glyph): Set glyph->charpos to
1221 it->cmp_it.charpos.
1222
1223 * composite.c (autocmp_chars): Change the first argument to RULE,
1224 and try composition with RULE only.
1225 (composition_compute_stop_pos): Record the index number of the
1226 composition rule in CMP_IT->rule_idx.
1227 (composition_reseat_it): Call autocmp_chars repeatedly until the
1228 correct rule of the composition is found.
1229 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1230 is at the last character of the current grapheme cluster when
1231 CMP_IT->reversed_p is nonzero.
1232
171eda53 12332010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1234
171eda53
SM
1235 * editfns.c (Fbyte_to_string): New function.
1236
66a9f7f4
SM
12372010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1238
1239 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1240 Suggested by Masatake YAMATO <yamato@redhat.com>.
1241
d8c315d1
EZ
12422010-05-23 Eli Zaretskii <eliz@gnu.org>
1243
171eda53 1244 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1245
f5b416d2 12462010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1247
1248 * s/netbsd.h: If terminfo is found, use it in preference to
1249 termcap. (Bug#6190) [Backport from trunk]
1250
0416466c
EZ
12512010-05-19 Eli Zaretskii <eliz@gnu.org>
1252
11117830 1253 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1254
1255 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1256 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1257 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1258 and maxpos members instead of start.pos and end.pos, respectively.
1259
1260 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1261 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1262 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1263 (try_window_reusing_current_matrix, try_window_id):
1264 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1265 (init_from_display_pos, init_iterator): Use EMACS_INT for
1266 character and byte positions.
66a9f7f4 1267 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1268 arguments for minimum and maximum buffer positions seen by
1269 display_line for this row. Don't use iterator to find the
1270 position following the maximum one; instead, increment the
11117830
EZ
1271 position found by display_line directly. Fix logic; eol_pos
1272 should be tested before the rest. Handle the case of characters
1273 delivered from display vector (bug#6036). Fix tests related to
1274 it->method. Handle the truncated_on_right_p rows.
1275 (RECORD_MAX_MIN_POS): New macro.
1276 (display_line): Use it to record the minimum and maximum buffer
1277 positions for glyphs in the row being assembled. Record the
1278 position of the newline that terminates the line. If word wrap is
1279 in effect, restore minimum and maximum positions seen up to the
1280 wrap point, when iterator returns to it.
1281 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1282 row and cursor not already at point. Restore original pre-bidi
1283 code for unidirectional buffers.
d36fe237
EZ
1284
1285 * dispnew.c (increment_row_positions, check_matrix_invariants):
1286 Increment and check row->start.pos and row->end.pos, in addition
1287 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1288
11117830
EZ
1289 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1290 Display truncated_on_left_p and truncated_on_right_p flags.
1291 Formatting fixes.
1292 (pmtxrows): Display the ordinal number of each row. Don't display
1293 rows beyond the last one.
1294
1295 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1296 it is not copied by bidi_copy_it.
1297
6e83d800
EZ
12982010-05-22 Eli Zaretskii <eliz@gnu.org>
1299
1300 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1301 (Bug#6237)
1302
110683ad
CY
13032010-05-22 Chong Yidong <cyd@stupidchicken.com>
1304
1305 * image.c (Fimage_flush): Rename from image-refresh.
1306
98fe5161
CY
13072010-05-21 Chong Yidong <cyd@stupidchicken.com>
1308
1309 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1310 just one window.
1311
1312 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1313 (clear_image_cache): If the number of cached images is unusually
1314 large, decrease the cache eviction delay (Bug#6230).
1315
e8752c66
GM
13162010-05-21 Glenn Morris <rgm@gnu.org>
1317
66dbf213
GM
1318 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1319 Move these rules to ns.mk.
1320 * ns.mk: New file.
1321
04384b2d
GM
1322 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1323
e8752c66
GM
1324 * Makefile.in (CANNOT_DUMP): New, set by configure.
1325 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1326
2e2bbddb
JL
13272010-05-20 Juri Linkov <juri@jurta.org>
1328
1329 * fileio.c (Fdelete_file): Change interative spec to use
1330 `read-file-name' like in `find-file-read-args' where the default
1331 value is `default-directory' instead of `buffer-file-name'.
1332 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1333
31c4aaf6
KR
13342010-05-20 Kevin Ryde <user42@zip.com.au>
1335
1336 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1337 (Voverriding_terminal_local_map, Vsystem_key_alist)
1338 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1339
9d5cf9b6
GM
13402010-05-20 Glenn Morris <rgm@gnu.org>
1341
1342 * Makefile.in (DEPDIR): New constant.
1343 (DEPFLAGS): Set with configure, not cpp.
1344 (MKDEPDIR): New, set by configure.
1345 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1346 (clean): Use $DEPDIR.
1347 (deps_frag): Include from configure.
1348 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1349 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1350
ead6f8f5
EZ
1351 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1352 reallocation of the cache. (Bug#6210)
1353
7f34aec3
GM
13542010-05-19 Glenn Morris <rgm@gnu.org>
1355
d494e8f2
GM
1356 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1357
c1d0dcfd
GM
1358 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1359 (GNULIB_VAR): Remove.
1360 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1361
1362 * m/ibms390x.h (LINKER):
1363 * m/macppc.h (LINKER) [GNU_LINUX]:
1364 * s/aix4-2.h (ORDINARY_LINK):
1365 * s/cygwin.h (LINKER):
1366 * s/darwin.h (ORDINARY_LINK):
1367 * s/gnu.h (ORDINARY_LINK):
1368 * s/netbsd.h (LINKER):
1369 * s/usg5-4.h (ORDINARY_LINK):
1370 Move to configure.
1371
7f34aec3
GM
1372 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1373
754790b6
CY
13742010-05-18 Chong Yidong <cyd@stupidchicken.com>
1375
1376 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1377 prevent stack overflow if number of arguments is too large
1378 (Bug#6214).
1379
161e44d1
JB
13802010-05-18 Juanma Barranquero <lekktu@gmail.com>
1381
1382 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1383
be4ff9da
GM
13842010-05-18 Glenn Morris <rgm@gnu.org>
1385
9539dc5d
GM
1386 * s/gnu-linux.h: Combine two conditionals.
1387
1388 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1389 $(POST_ALLOC_OBJ).
1390
40dc6bf4
GM
1391 * Makefile.in (RALLOC_OBJ): New, set by configure.
1392 (rallocobj): Replace with the previous variable.
1393 (otherobj): Use $RALLOC_OBJ.
1394
1395 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1396 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1397
be4ff9da
GM
1398 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1399 (gmallocobj, vmlimitobj): Replace with previous two variables.
1400 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1401
16455a85
GM
14022010-05-17 Glenn Morris <rgm@gnu.org>
1403
1404 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1405 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1406
5fdb7468
GM
14072010-05-16 Glenn Morris <rgm@gnu.org>
1408
7ca1f3f9
GM
1409 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1410
7541dad5
GM
1411 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1412
da53fab9
GM
1413 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1414 trailing "/".
1415
b02a6645
GM
1416 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1417 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1418
8877ca0f
GM
1419 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1420 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1421 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1422 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1423 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1424
5fdb7468
GM
1425 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1426 Remove ${STARTFLAGS}, nothing ever sets it.
1427
95adb4b1
DN
14282010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1429
1430 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1431
676b6304
GM
14322010-05-16 Glenn Morris <rgm@gnu.org>
1433
9beab9ce
GM
1434 * Makefile.in (LIBX_BASE): Always define.
1435
8a95f0e7
GM
1436 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1437
676b6304
GM
1438 * Makefile.in (LIBXT): Always define.
1439
6e546d18
GM
14402010-05-15 Glenn Morris <rgm@gnu.org>
1441
4235ca47 1442 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1443
6e546d18
GM
1444 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1445 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1446
8c5ff6dd
KR
14472010-05-15 Ken Raeburn <raeburn@raeburn.org>
1448
560bb7ae 1449 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1450 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1451
8b4eb796
KR
1452 * emacs.c (main): Initialize initial-environment and
1453 process-environment before generating from env, not after.
1454
8c5ff6dd
KR
1455 Handle --version reasonably in CANNOT_DUMP configuration.
1456 * emacs.c (emacs_version, emacs_copyright): New string variables.
1457 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1458 (syms_of_emacs): Defvar them, and initialize them from the C
1459 string variables.
1460 (main): If initialization hasn't been done, print initial version
1461 info from the C strings, instead of starting an interactive session.
1462
dbd3f723
EZ
14632010-05-15 Eli Zaretskii <eliz@gnu.org>
1464
d20e1419
EZ
1465 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1466 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1467 (bidi_paragraph_init): Remove redundant assertion that we are at
1468 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1469
1470 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1471 (syms_of_xdisp): Defsubr it.
1472
d36fe237
EZ
1473 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1474
dbd3f723
EZ
1475 * Makefile.in: Fix MSDOS-related comments.
1476
02be533b
GM
14772010-05-15 Glenn Morris <rgm@gnu.org>
1478
1a82cca9
GM
1479 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1480 (really-lwlib, really-oldXMenu): Always define.
1481 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1482
3df7b338
GM
1483 * Makefile.in: Simplify cpp conditional.
1484
2b5f541b
GM
1485 * Makefile.in (${ns_appdir}): Simplify using umask.
1486
02be533b
GM
1487 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1488
4e2db1fe
SM
14892010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1490
1491 * eval.c (specbind): Remove left-over duplicate test.
1492 Disallow let-binding frame-local vars. Add comment.
1493
4b292a22
EZ
14942010-05-14 Eli Zaretskii <eliz@gnu.org>
1495
2fe72643 1496 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1497 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1498 (bidi_init_it): Call it.
1499 (bidi_cache_iterator_state): Enlarge the cache if needed.
1500
4e2db1fe 1501 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1502 bidi_get_next_char_visually. All callers changed.
1503
82ebc97b
KH
15042010-05-14 Kenichi Handa <handa@m17n.org>
1505
1506 * dispextern.h (struct composition_it): New member reversed_p.
1507
1508 * composite.c (composition_compute_stop_pos): Search backward if
1509 ENDPOS < CHARPOS.
1510 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1511 Set CMP_IT->reversed_p.
b4b6e17e 1512 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1513
4e2db1fe
SM
1514 * xdisp.c (set_iterator_to_next):
1515 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1516 scanning backward. Call composition_compute_stop_pos if scan
1517 direction is changed.
1518 (next_element_from_buffer): Call composition_compute_stop_pos with
1519 negative ENDPOS if we are scanning backward.
1520 (next_element_from_composition): Pay attention to
1521 IT->cmp_it.reversed_p.
1522
0e5d7800
KH
15232010-05-14 Kenichi Handa <handa@m17n.org>
1524
560bb7ae 1525 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1526
cb027b32
GM
15272010-05-14 Glenn Morris <rgm@gnu.org>
1528
177b0288
GM
1529 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1530
fbc00890
GM
1531 * Makefile.in (mktime, X11, register): Move undefs to configure.
1532
f14d1dfd
GM
1533 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1534 (MSDOS_X_OBJ): New variable.
1535 (MSDOS_SUPPORT_REAL): New constant.
1536 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1537 (obj): Use MSDOS_X_OBJ.
1538 (lisp): Use MSDOS_SUPPORT as a variable.
1539
11842bd8
GM
1540 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1541 (GPM_MOUSE_SUPPORT): Now it's a constant.
1542 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1543 not cpp.
1544
489d31a4 1545 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1546 (ns_appresdir): Remove, unused.
e20f1f07 1547
489d31a4
GM
1548 * Makefile.in (SHELL): Move outside cpp section.
1549
cb027b32
GM
1550 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1551
5a903aa9
GM
15522010-05-13 Glenn Morris <rgm@gnu.org>
1553
3369c79f
GM
1554 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1555 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1556
d5e982a6
GM
1557 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1558 HAVE_WINDOW_SYSTEM must be too.
1559
6192e163
GM
1560 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1561 (lisp): Remove WINNT_SUPPORT.
1562
472c5d6b
GM
1563 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1564 Let configure set these variables (to empty) in this case as well.
1565
0116466b
GM
1566 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1567 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1568
5a903aa9
GM
1569 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1570 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1571 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1572 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1573 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1574 the values output by configure.
5a903aa9
GM
1575 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1576
1a0d7c06
GM
15772010-05-12 Glenn Morris <rgm@gnu.org>
1578
b5457f14
GM
1579 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1580 (LINKER_WAS_SPECIFIED): Remove.
1581
1a0d7c06
GM
1582 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1583 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1584 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1585 * s/cygwin.h (LIB_GCC):
1586 * s/freebsd.h (LIB_GCC):
1587 * s/gnu-linux.h (LIB_GCC):
1588 * s/msdos.h (LIB_GCC):
1589 * s/netbsd.h (LIB_GCC):
1590 Move to configure.
1591
3ffd4615 15922010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1593
1594 * ftfont.c: Fix incorrect parentheses of #if condition for
1595 definining M17N_FLT_USE_NEW_FEATURE.
1596
acddf8ae
GM
15972010-05-11 Glenn Morris <rgm@gnu.org>
1598
1599 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1600 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1601
ae5e04fa
EZ
16022010-05-10 Eli Zaretskii <eliz@gnu.org>
1603
1604 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1605 unibyte buffers. See
1606 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1607
7490175b
GM
16082010-05-10 Glenn Morris <rgm@gnu.org>
1609
97efb629
GM
1610 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1611 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1612 (LIBES): Use LIBS_SYSTEM as a variable.
1613 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1614 * s/aix4-2.h (LIBS_SYSTEM):
1615 * s/freebsd.h (LIBS_SYSTEM):
1616 * s/hpux10-20.h (LIBS_SYSTEM):
1617 * s/sol2-6.h (LIBS_SYSTEM):
1618 * s/unixware.h (LIBS_SYSTEM):
1619 Move to configure.
1620
7490175b
GM
1621 * s/aix4-2.h (MAIL_USE_LOCKF):
1622 * s/bsd-common.h (MAIL_USE_FLOCK):
1623 * s/darwin.h (MAIL_USE_FLOCK):
1624 * s/gnu-linux.h (MAIL_USE_FLOCK):
1625 * s/irix6-5.h (MAIL_USE_FLOCK):
1626 * s/template.h (MAIL_USE_FLOCK):
1627 Move to configure.
1628
0235128c 16292010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1630
1631 * Version 23.2 released.
1632
0235128c 16332010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1634
1635 * composite.c (autocmp_chars): Save point as marker before calling
1636 auto-composition-function (Bug#5984).
1637
1638 * lisp.h (restore_point_unwind): Add prototype.
1639
1640 * fileio.c (restore_point_unwind): Remove static attribute.
1641
0235128c 16422010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1643
1644 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1645 new feature of libotf and m17n-flt.
0235128c
SM
1646 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1647 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1648 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1649 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1650 that OUT is NULL. Use OTF_drive_gsub_with_log and
1651 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1652 OTF_drive_gpos.
1653 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1654 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1655 Setup mflt_enable_new_feature and mflt_try_otf.
1656
4721152c
J
16572010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1658
1659 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1660
1661 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1662 box and toolbar (Bug #6139).
1663 (xg_create_tool_bar): Remove comment (Bug #6139).
1664 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1665 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1666
ee0a16cf
JB
16672010-05-08 Juanma Barranquero <lekktu@gmail.com>
1668
1669 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1670 Update dependencies.
1671
96d79611
EZ
16722010-05-08 Eli Zaretskii <eliz@gnu.org>
1673
1674 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1675 R2L lines.
1676
40c17879
GM
16772010-05-08 Glenn Morris <rgm@gnu.org>
1678
7b42b29f
GM
1679 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1680
40c17879
GM
1681 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1682 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1683 (termcapobj): Replace with TERMCAP_OBJ.
1684 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1685 (LIBES): Use LIBS_TERMCAP as a variable.
1686
1687 * s/freebsd.h (osreldate.h): No longer include, since this file
1688 does not use __FreeBSD_version any more.
1689
1690 * s/aix4-2.h (TERMINFO):
1691 * s/cygwin.h (TERMINFO):
1692 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1693 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1694 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1695 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1696 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1697 * s/irix6-5.h (TERMINFO):
1698 * s/netbsd.h (LIBS_TERMCAP):
1699 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1700 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1701 * s/usg5-4.h (TERMINFO):
1702 Move to configure.
1703
94b612ad
SM
17042010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1705
1706 * eval.c (unbind_to): Don't unbind a local binding into the global
1707 binding when the local binding disappeared. Inversely, don't unbind
1708 a global binding into a newly created local binding.
1709 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1710 can specify the frame to use, when applicable. Adjust callers.
1711
15e12598 17122010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1713 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1714
1715 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1716
f724825e
EZ
17172010-05-07 Eli Zaretskii <eliz@gnu.org>
1718
5cba3209
EZ
1719 * w32fns.c: Include w32.h.
1720 (Fw32_shell_execute): Decode the error message before passing it
1721 to `error'. (Bug#6126)
1722
d16bdfc3
EZ
1723 * msdos.c (dos_set_window_size):
1724 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1725 instead of `XSYMBOL (foo)->value'.
1726
59d93e87
EZ
17272010-05-07 Eli Zaretskii <eliz@gnu.org>
1728
9fdec8bc
EZ
1729 Fix the MS-DOS build, broken by autoconfiscation.
1730
1731 * Makefile.in: Don't use Make-style comments past the "start of
1732 cpp stuff" line.
1733 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1734
1735 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1736 edited directly by msdos/sed1v2.inp).
f724825e 1737
2f86b22b
GM
17382010-05-07 Glenn Morris <rgm@gnu.org>
1739
1740 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1741 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1742 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1743 move out of cpp section.
1744 * s/freebsd.h (LD_SWITCH_SYSTEM):
1745 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1746 * s/netbsd.h (LD_SWITCH_SYSTEM):
1747 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1748
49ebbd65
DN
17492010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1750
1751 Define LIB_STANDARD and START_FILES using autoconf.
1752 * s/usg5-4.h (LIB_STANDARD):
1753 * s/netbsd.h (START_FILES):
1754 * s/irix6-5.h (LIB_STANDARD):
1755 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1756 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1757 * s/freebsd.h (START_FILES):
1758 * s/darwin.h (START_FILES):
1759 * s/cygwin.h (START_FILES):
1760 * s/aix4-2.h (LIB_STANDARD):
1761 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1762 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1763 autoconf, not cpp.
1764
d43c06d6
DN
17652010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1766
28823648
DN
1767 Remove NEED_BSDTTY and NEED_UNISTD_H.
1768 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1769 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1770 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1771 <sys/ptyio.h> and <unistd.h>.
1772
aca00430
DN
1773 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1774
d43c06d6
DN
1775 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1776 * s/gnu.h (START_FILES): Remove empty definition.
1777
3e56b11d
JD
17782010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1779
1780 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1781
e3cf0cde
GM
17822010-05-06 Glenn Morris <rgm@gnu.org>
1783
1784 * Makefile.in (CPP, LN_S): Remove unused variables.
1785
774b9a60
SM
17862010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1787
1788 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1789
4ab92842
LM
17902010-05-05 Lawrence Mitchell <wence@gmx.li>
1791
1792 * m/sparc.h: Fix typo in earlier change.
1793
178f2507
SM
17942010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1795
1796 Misc tweaks.
1797 * eval.c (Fdefvaralias): Remove unintended nested if.
1798 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1799
80f00217 18002010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1801
1802 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1803
ef03a4e6
DN
18042010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1805
58eb6cf0
DN
1806 Remove BSD_PGRPS.
1807 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1808 * s/gnu-linux.h (BSD_PGRPS): Remove.
1809 * term.c (dissociate_if_controlling_tty):
1810 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1811 (init_sys_modes, reset_sys_modes):
1812 * emacs.c (main):
1813 * callproc.c (Fcall_process, child_setup): Remove code depending
1814 on BSD_PGRPS.
1815
ef03a4e6
DN
1816 Remove POSIX_SIGNALS.
1817 * s/usg5-4.h (POSIX_SIGNALS):
1818 * s/netbsd.h (POSIX_SIGNALS):
1819 * s/msdos.h (POSIX_SIGNALS):
1820 * s/ms-w32.h (POSIX_SIGNALS):
1821 * s/hpux11.h (POSIX_SIGNALS):
1822 * s/gnu.h (POSIX_SIGNALS):
1823 * s/gnu-linux.h (POSIX_SIGNALS):
1824 * s/freebsd.h (POSIX_SIGNALS):
1825 * s/darwin.h (POSIX_SIGNALS):
1826 * s/cygwin.h (POSIX_SIGNALS):
1827 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1828 * s/unixware.h:
1829 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1830 * process.c (create_process):
1831 * syssignal.h:
1832 * sysdep.c (wait_for_termination, init_signals):
1833 * process.c (create_process):
1834 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1835 remove all code that assumes the contrary.
1836
49628785
GM
18372010-05-04 Glenn Morris <rgm@gnu.org>
1838
27a2cdfc
GM
1839 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1840 variable.
1841 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1842 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1843 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1844 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1845 LD_SWITCH_SYSTEM_tmp.
1846 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1847 New variables, set by configure.
1848
eb21eab5
GM
1849 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1850 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1851 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1852 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1853 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1854
49628785
GM
1855 * s/aix4-2.h (C_SWITCH_SYSTEM):
1856 * m/alpha.h (C_SWITCH_MACHINE):
1857 Move to configure.in.
1858 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1859 New variables, set by configure.
1860 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1861 $c_switch_machine and $c_switch_system.
1862
7dff330b
DN
18632010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1864
1865 * s/hpux10-20.h (LIB_STANDARD): New definition.
1866 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1867 on it, not used anymore.
1868
53967e09
CY
18692010-05-03 Chong Yidong <cyd@stupidchicken.com>
1870
1871 * eval.c (internal_condition_case_n): Rename from
1872 internal_condition_case_2.
1873 (internal_condition_case_2): New function.
1874
1875 * xdisp.c (safe_call): Use internal_condition_case_n.
1876
1877 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1878 (internal_delete_file, Frename_file): Callers changed.
1879
1880 * buffer.c (Fkill_buffer):
1881 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1882
1883 * lisp.h: Update prototypes.
1884
3dee6fdb
GM
18852010-05-03 Glenn Morris <rgm@gnu.org>
1886
1887 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1888 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1889 (LIBXT): Set with configure, not cpp.
1890 (LIBX): Remove.
1891 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1892
a101e0fb
DN
18932010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1894
1895 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1896 The FreeBSD is not needed, the default works, Solaris version is
1897 not needed, and the remaining case is not supported by configure.
1898
f63d0028
JD
18992010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1900
1901 * xsmfns.c (CHDIR_OPT): New define.
1902 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1903 restarting emacs.
1904
1905 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1906 shut_down_emacs.
1907
1908 * emacs.c (USAGE1): Mention --chdir.
1909 (main): Handle --chdir.
1910 (standard_args): Add --chdir.
1911 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1912 #5552).
1913
e4814a9f
DN
19142010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1915
cd03c74a
DN
1916 Remove LD_SWITCH_MACHINE.
1917 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1918 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1919
c3a398a1
DN
1920 Clean up IRIX code.
1921 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1922 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1923
87e7285c
DN
1924 Clean up AIX code.
1925 * m/ibmrs6000.inp: Remove file, unused.
1926 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1927 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1928 definition ...
1929 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1930
80f00217
JB
1931 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1932 unused.
e4814a9f 1933
59ca28de
EZ
19342010-05-01 Eli Zaretskii <eliz@gnu.org>
1935
197daef4
EZ
1936 Emulate POSIX_SIGNALS on MS-Windows.
1937
1938 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1939 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1940
1941 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1942 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1943 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1944
80f00217
JB
1945 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1946 New stubs.
197daef4 1947
af7c7572
EZ
1948 Miscellaneous fixes of bidi display.
1949
59ca28de
EZ
1950 * xdisp.c (find_row_end): New function, refactored from display_line.
1951 (display_line): Use it.
017ea819
EZ
1952 (extend_face_to_end_of_line): In almost-filled rows, extend only
1953 if the row is R2L and not continued.
166e930d 1954 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1955 Preserve overlay and string info in row->end.
166e930d
EZ
1956 (insert_left_trunc_glyphs): Support addition of left truncation
1957 glyphs to R2L rows.
b47e0dcf 1958 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1959 glyph between adjacent windows. Fix a crash when a display string
1960 is continued to the next line. Don't return zero if cursor was
1961 found by `cursor' property of a display string.
b47e0dcf
EZ
1962 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1963 test for that explicitly.
59ca28de 1964
7acac9f4
GM
19652010-05-01 Glenn Morris <rgm@gnu.org>
1966
1967 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1968 for clarity.
1969 (OTHER_OBJ): Remove.
1970 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1971 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1972
45841e65
KK
19732010-05-01 Karel Klíč <kklic@redhat.com>
1974
1975 * fileio.c (Ffile_selinux_context): Context functions may return null.
1976
afc61943
DN
19772010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1978
80f00217 1979 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1980
5a1bb006
GM
19812010-04-30 Glenn Morris <rgm@gnu.org>
1982
1983 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1984 (OTHER_OBJ): Define as a separate variable, for clarity.
1985
210af043
J
19862010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1987
1988 * xsettings.c: include limits.h and update file comment.
1989
0a7df391
GM
19902010-04-30 Glenn Morris <rgm@gnu.org>
1991
d5096f16
GM
1992 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1993 Set with configure, not cpp.
1994 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1995
7eb1ac33
GM
1996 * Makefile.in (mallocobj): Remove.
1997 (otherobj): Simplify using @OTHER_OBJ@.
1998
517d086b
GM
1999 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2000 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2001 Don't bother making nsgui.h dependency platform-specific.
2002
0a7df391
GM
2003 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2004
d6d23852
SM
20052010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2006
d2630aef
SM
2007 * process.c (read_process_output, exec_sentinel): Don't burp if the
2008 sentinel/filter kills the current buffer (bug#6060).
2009
f9dddf52 2010 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2011 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2012 Remove unused var `args'.
2013 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2014 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2015 * doc.c (store_function_docstring): Use XSETCAR.
2016
f1e3642a
GM
20172010-04-28 Glenn Morris <rgm@gnu.org>
2018
faf535f8
GM
2019 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2020 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2021
c40f9449
GM
2022 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2023
658f86ca
GM
2024 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2025 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2026
bc0b5f61
GM
2027 * Makefile.in (FONT_OBJ): New, set by configure.
2028 (FONT_DRIVERS): Use $FONT_OBJ.
2029
294c50a0
GM
2030 * Makefile.in (LIBXMU): Set with configure, not cpp.
2031 * s/aix4-2.h (LIBXMU):
2032 * s/hpux10-20.h (LIBXMU):
2033 Remove definition, now set in configure.
2034
e6ec4e99
GM
2035 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2036
f1e3642a
GM
2037 * m/amdx86-64.h [i386]: Move this test to configure.in.
2038
c6ea2936
GM
20392010-04-27 Glenn Morris <rgm@gnu.org>
2040
8fdac2c3
GM
2041 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2042 * s/unixware.h (NEED_LIBW): Remove definition.
2043
986fb647
GM
2044 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2045 (TOOLKIT_LIBW): New, set by configure.
2046 (@X_TOOLKIT_TYPE@): No longer define it.
2047
c6ea2936
GM
2048 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2049 (MOTIF_LIBW): Set with configure, not cpp.
2050 * s/aix4-2.h (LIB_MOTIF):
2051 * s/gnu-linux.h (LIB_MOTIF):
2052 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2053
aaa36002
DN
20542010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2055
2056 Reduce CPP usage.
2057 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2058 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2059 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2060 definitions and undefs. Inline definitions in the only user.
2061 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2062
b678dd8b
GM
20632010-04-27 Glenn Morris <rgm@gnu.org>
2064
76cda504
GM
2065 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2066 since the defaults (set by the system file) are fine in most cases.
2067 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2068 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2069 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2070 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2071 Remove definitions, since they are set correctly in s/gnu-linux.h.
2072 * s/freebsd.h (START_FILES, LIB_STANDARD):
2073 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2074 * s/hpux10-20.h (START_FILES):
2075 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2076 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2077
b678dd8b
GM
2078 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2079 (MOTIF_LIBW): Use $LIBXP.
2080 (otherobj): Use $WIDGET_OBJ.
2081
9452ded1
DN
20822010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2083
7e10844c
DN
2084 * Makefile.in (LIBS_MACHINE): Remove, unused.
2085
9452ded1
DN
2086 Use autoconf instead of cpp for LIB_MATH.
2087 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2088 * s/cygwin.h (LIB_MATH): Likewise.
2089 * Makefile.in (LIB_MATH): Do not define with cpp.
2090 (LIBES): Use autoconf for LIB_MATH.
2091
fcebfc6a
KH
20922010-04-26 Kenichi Handa <handa@m17n.org>
2093
2094 * composite.c (Ffind_composition_internal): Fix the return value
2095 for an automatic composition.
2096
39e2ad1b
DN
20972010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2098
2099 Remove all NO_ARG_ARRAY uses.
2100 * fns.c (concat2, concat3, nconc2):
2101 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2102 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2103 * m/xtensa.h (NO_ARG_ARRAY):
2104 * m/template.h (NO_ARG_ARRAY):
2105 * m/sparc.h (NO_ARG_ARRAY):
2106 * m/sh3.h (NO_ARG_ARRAY):
2107 * m/mips.h (NO_ARG_ARRAY):
2108 * m/macppc.h (NO_ARG_ARRAY):
2109 * m/iris4d.h (NO_ARG_ARRAY):
2110 * m/intel386.h (NO_ARG_ARRAY):
2111 * m/ibms390x.h (NO_ARG_ARRAY):
2112 * m/ibms390.h (NO_ARG_ARRAY):
2113 * m/ibmrs6000.h (NO_ARG_ARRAY):
2114 * m/ia64.h (NO_ARG_ARRAY):
2115 * m/hp800.h (NO_ARG_ARRAY):
2116 * m/arm.h (NO_ARG_ARRAY):
2117 * m/amdx86-64.h (NO_ARG_ARRAY):
2118 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2119
adf4f59c
EZ
21202010-04-25 Eli Zaretskii <eliz@gnu.org>
2121
6bdf5d65
EZ
2122 * xdisp.c (display_line): Don't assume 2nd call to
2123 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2124 (iterate_out_of_display_property): New function, body from pop_it.
2125 (pop_it): Use it.
adf4f59c 2126
dfbbda83
GM
21272010-04-24 Glenn Morris <rgm@gnu.org>
2128
2129 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2130 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2131 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2132 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2133
2d4018aa
EZ
21342010-04-24 Eli Zaretskii <eliz@gnu.org>
2135
a49884a6
EZ
2136 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2137 use `get_next_display_element' and `set_iterator_to_next' to
2138 advance to the next character, when looking for the character that
2139 begins the next row.
2140
76db6fcc 2141 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2142 definition of "struct Lisp_Symbol".
2143
70eab5c1
GM
21442010-04-24 Glenn Morris <rgm@gnu.org>
2145
2146 * Makefile.in (CRT_DIR): New variable, set by configure.
2147 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2148 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2149
1ad4cc3d
DN
21502010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2151
e769f484
DN
2152 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2153
4196ff33
DN
2154 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2155
879b0ee4
DN
2156 Remove redundant flags.
2157 * s/freebsd.h (C_SWITCH_SYSTEM):
2158 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2159 * s/netbsd.h (C_SWITCH_SYSTEM):
2160 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2161 of these.
2162
03cbbcb8
DN
2163 Simplify m/intel386.h.
2164 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2165 user: ecrt0.c.
2166 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2167 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2168 the only user: s/unixware.h.
2169 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2170 from m/intel386.h.
2171 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2172 moved here from m/intel386.h.
2173
1ad4cc3d
DN
2174 * m/mips.h: Remove #if 0 code.
2175
8785b888
EZ
21762010-04-23 Eli Zaretskii <eliz@gnu.org>
2177
728588cc
EZ
2178 Fix display of composed characters from L2R scripts in bidi buffers.
2179 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2180 After advancing IT past the composition, resync the bidi iterator
2181 with IT's position. (Bug#5977)
2182
a63f80b4
DN
21832010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2184
2185 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2186 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2187
ff5dec5c
SM
21882010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2189
2190 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2191
8785b888
EZ
21922010-04-23 Eli Zaretskii <eliz@gnu.org>
2193
58ccf243 2194 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2195 * xdisp.c (pop_it): When the stack is popped after displaying
2196 from a string, bidi-iterate to exit from the text portion covered
2197 by the `display' property or overlay. (Bug#5988, bug#5920)
2198
feeb1604
DN
21992010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2200
8e324eb6
DN
2201 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2202 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2203
809fcaba
DN
2204 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2205 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2206
ed710380
DN
2207 Simplify STARTFILES definition.
2208 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2209 relying on Makefile.in to define it.
2210 * s/cygwin.h (START_FILES): Likewise.
2211 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2212
feeb1604
DN
2213 Clean up Solaris code.
2214 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2215 (LIB_MOTIF): Remove, configure takes care of this.
2216 (NOT_USING_MOTIF): Remove, unused.
2217 * xrdb.c: Remove #if 0-ed #include.
2218 (SYSV): Remove conditional for old SysV.
2219 * sysdep.c (closedir): Remove conditional code for Solaris,
2220 Solaris has closedir.
2221
a0d0b563
JD
22222010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2223
2224 * xsettings.c (read_and_apply_settings): Check if current_font is
2225 NULL before strcmp (Bug#6001).
2226
56bae7c7
DN
22272010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2228
2229 Clean up HP-UX files.
2230 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2231 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2232 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2233 * s/hpux10-20.h: ... to the only user, here.
2234
372b7a95
EZ
22352010-04-21 Eli Zaretskii <eliz@gnu.org>
2236
2237 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2238 use buffer-local values of paragraph-start and paragraph-separate.
2239 <paragraph_start_re, paragraph_separate_re>: Rename from
2240 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2241 (Bug#5992)
2242
f904c0f9
JD
22432010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2244
2245 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2246 current_tool_bar_style are new.
2247 (store_config_changed_event): Rename from store_font_changed_event.
2248 (XSETTINGS_TOOL_BAR_STYLE): New define.
2249 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2250 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2251 HAVE_XFT.
2252 (something_changedCB): store_font_changed_event is now
2253 store_config_changed_event
2254 (parse_settings): Rename from parse_xft_settings. Read
2255 non-xft xsettings outside #ifdef HAVE_XFT.
2256 (read_settings): Renamed from read_xft_settings.
2257 (apply_xft_settings): Take current settings as parameter. Do not
2258 call read_(xft)_settings.
2259 (read_and_apply_settings): New function.
2260 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2261 read_and_apply_settings if there are settings to be read.
2262 (init_xsettings): Renamed from init_xfd_settings.
2263 Call read_and_apply_settings unconditionally.
2264 (xsettings_initialize): Call init_xsettings.
2265 (Ftool_bar_get_system_style): New function.
2266 (syms_of_xsettings): Define Qmonospace_font_name and
2267 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2268 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2269 dynamic-setting.
31a01b90 2270 Move misplaced HAVE_GCONF
f904c0f9
JD
2271
2272 * xsettings.h (Ftool_bar_get_system_style): Declare.
2273
2274 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2275 Qtext, Qboth, Qboth_horiz are new.
2276 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2277 Vtool_bar_style, tool_bar_max_label_size.
2278
2279 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2280
2281 * keyboard.c: QClabel is new.
2282 (parse_tool_bar_item): Take out QClabel from tool bar items.
2283 Try to construct a label if ther is no QClabel.
2284 (syms_of_keyboard): Intern :label as QClabel.
2285
2286 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2287 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2288 New.
2289
2290 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2291 dynamic-setting.el.
2292
2293 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2294 (xg_make_tool_item, xg_show_toolbar_item): New function.
2295 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2296 Call xg_make_tool_item to make a tool bar item.
2297 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2298
2299 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2300 into account for toolbars.
2301
c632dfda
JD
23022010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2303
2304 * data.c (make_blv): Declarations before code (Bug#5993).
2305
10efe302
GM
23062010-04-21 Glenn Morris <rgm@gnu.org>
2307
2308 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2309 Define using autoconf, not cpp.
2310 (LIBXSM): New variable, set by autoconf.
2311 (LIBXT): Use $LIBXSM.
2312
4285ac5a
DN
23132010-04-21 Dan Nicolaescu <local_user@dannlt>
2314
3ec759e7
DN
2315 Remove NOMULTIPLEJOBS, unused.
2316 * s/template.h (NOMULTIPLEJOBS):
2317 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2318
4285ac5a
DN
2319 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2320 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2321 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2322 detects -znocombreloc and passes it to the linker
2323 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2324
2807228d
GM
23252010-04-21 Glenn Morris <rgm@gnu.org>
2326
2327 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2328
574c05e2
KK
23292010-04-21 Karel Klíč <kklic@redhat.com>
2330
2331 * Makefile.in (LIBSELINUX_LIBS): New.
2332 (LIBES): Add $LIBSELINUX_LIBS.
2333 * eval.c, lisp.h (call7): New function.
2334 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2335 (Ffile_selinux_context, Fset_file_selinux_context):
2336 New functions.
2337 (Fcopy_file): New parameter preserve-selinux-context.
2338 (Frename_file): Preserve selinux context when renaming by copy-file.
2339
91eac4bb 23402010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2341 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2342
50426a04
JB
2343 Don't depend on cm.c or termcap.c on Windows, use stubs.
2344 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2345 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2346 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2347 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2348 (sys_tputs, sys_tgetstr): New stubs.
2349 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2350 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2351
938efb77
JB
23522010-04-20 Juanma Barranquero <lekktu@gmail.com>
2353
2354 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2355
b4bf28b7
SM
23562010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2357
8b1e1112
SM
2358 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2359 Just signal a warning rather than an error when inside a let.
2360 (Fmake_variable_frame_local): Add the same test.
2361
933ac235
SM
2362 * font.c (syms_of_font): Make the style table vars read-only.
2363
b4bf28b7
SM
2364 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2365 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2366
2367 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2368
93d68d0c
EZ
23692010-04-20 Eli Zaretskii <eliz@gnu.org>
2370
2371 Fix R2L paragraph display on TTY.
2372
2373 * xdisp.c (unproduce_glyphs): New function.
2374 (display_line): Use it when produced glyphs are discarded from R2L
2375 glyph rows.
2376 (append_composite_glyph): In R2L rows, prepend the glyph rather
2377 than appending it.
2378
2379 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2380 rather than append it. Set up the resolved_level and bidi_type
2381 attributes of the appended glyph.
283ccc18
EZ
2382 (produce_special_glyphs): Mirror the backslash continuation
2383 character in R2L lines.
93d68d0c 2384
283ccc18 2385 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2386
283ccc18
EZ
2387 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2388 append_stretch_glyph.
2389 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2390 off-by-one error in computing x at end of text in the row.
2391 (append_stretch_glyph): In reversed row, prepend the glyph rather
2392 than append it. Set resolved_level and bidi_type of the glyph.
2393 (extend_face_to_end_of_line): If the row is reversed, prepend a
2394 stretch glyph whose width is such that the rightmost glyph will be
2395 drawn at the right margin of the window. Fix off-by-one error on
2396 TTY frames in testing whether a line needs face extension. Fix
2397 face extension at ZV. If this is the last glyph row, use
2398 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2399 region face.
2400 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2401 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2402 row->continuation_lines_width.
283ccc18
EZ
2403 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2404 are at ZV. Fixes a crash when reseated to ZV by
2405 try_window_reusing_current_matrix.
45903529
EZ
2406 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2407 which happens with R2L glyph rows. Fixes a crash when inserting a
2408 character at end of an R2L line.
283ccc18
EZ
2409 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2410 treat them as having zero-width characters. Improve comments.
2411 Don't reverse pos_before and pos_after for reversed glyph rows.
2412 Set cursor.x to negative value when the cursor might be on the
2413 left fringe.
2414 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2415 left fringe, not the right one.
f951a506
EZ
2416 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2417 (erase_phys_cursor): For reversed cursor_row, support cursor on
2418 the left fringe.
2419
283ccc18
EZ
2420 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2421 of continuation indicators on the fringes.
2422 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2423 left fringe.
2424
f951a506
EZ
2425 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2426 draw cursor on the left fringe.
2427
2428 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2429 cursor on the left fringe.
2430
f951a506
EZ
2431 * dispnew.c (update_text_area): Handle reversed desired rows when
2432 the cursor is on the left fringe.
2433 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2434 below, not by 0, for when the cursor is on the left fringe.
2435
3bb49aaf
JD
24362010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2437
2438 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2439 widget is a scrollbar.
2440
c0be27fd
KH
24412010-04-20 Kenichi Handa <handa@m17n.org>
2442
2443 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2444 only when the arg CHARSET_LIST is nil.
2445
ce5b453a
SM
24462010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2447
2448 Make variable forwarding explicit rather the using special values.
2449 Basically, this makes the structure of buffer-local values and object
2450 forwarding explicit in the type of Lisp_Symbols rather than use
2451 special Lisp_Objects for that. This tends to lead to slightly more
2452 verbose code, but is more C-like, simpler, and makes it easier to make
2453 sure we handled all cases, among other things by letting the compiler
2454 help us check it.
2455 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2456 Removing forwarding objects.
2457 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2458 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2459 explicit rather than hiding them inside Lisp_Object "values".
2460 (XFWDTYPE): New macro.
2461 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2462 (XBUFFER_LOCAL_VALUE): Remove.
2463 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2464 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2465 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2466 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2467 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2468 Remove the Lisp_Misc_* header.
2469 (struct Lisp_Buffer_Local_Value): Redefine.
2470 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2471 (struct Lisp_Misc_Any): Add filler to get the right size.
2472 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2473 Lisp_Intfwd.
2474 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2475 (DEFVAR_KBOARD): Allocate a forwarding object.
2476 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2477 (let_shadows_global_binding_p): New function.
2478 (union Lisp_Val_Fwd): New type.
2479 (make_blv): New function.
2480 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2481 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2482 (swap_in_symval_forwarding, find_symbol_value, Fset)
2483 (let_shadows_buffer_binding_p, set_internal, default_value)
2484 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2485 (Fkill_local_variable, Fmake_variable_frame_local)
2486 (Flocal_variable_p, Flocal_variable_if_set_p)
2487 (Fvariable_binding_locus):
2488 * xdisp.c (select_frame_for_redisplay):
2489 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2490 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2491 * frame.c (store_frame_param):
2492 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2493 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2494 value structure.
2495 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2496 (clone_per_buffer_values): Only adjust markers into the current buffer.
2497 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2498 (Fbuffer_local_value, set_buffer_internal_1)
2499 (swap_out_buffer_local_variables):
2500 Adapt to the new symbol value structure.
2501 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2502 (defvar_per_buffer): Take a new arg for the fwd object.
2503 (buffer_lisp_local_variables): Return a proper alist (different fix
2504 for bug#4138).
2505 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2506 (Fgarbage_collect): Don't handle buffer_defaults specially.
2507 (mark_object): Handle new symbol value structure rather than the old
2508 special Lisp_Misc_* objects.
2509 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2510 * term.c (set_tty_color_mode):
2511 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2512 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2513 a buffer_local_flags.
2514 * print.c (print_object): Get rid of impossible forwarding objects.
2515
fd3998ff
EZ
25162010-04-19 Eli Zaretskii <eliz@gnu.org>
2517
2518 * bidi.c (bidi_get_type, bidi_get_category)
2519 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2520 (bidi_type_of_next_char, bidi_level_of_next_char):
2521 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2522
e42cd1a7
JB
25232010-04-19 Juanma Barranquero <lekktu@gmail.com>
2524
2525 * dired.c (Ffile_attributes): Fix typo in docstring.
2526
6e104790 25272010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2528
2529 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2530 NSInteger (Bug#5811).
2531
6e104790 25322010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2533
2534 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2535 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2536
6e104790 25372010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2538
2539 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2540
6e104790
SM
25412010-04-19 Chong Yidong <cyd@stupidchicken.com>
2542
2543 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2544 terminal frames (Bug#5837).
2545
37dcfea0
EZ
25462010-04-19 Eli Zaretskii <eliz@gnu.org>
2547
d1da276f
EZ
2548 * .gdbinit (xsubchartable): New command.
2549
37dcfea0
EZ
25502010-04-19 Eli Zaretskii <eliz@gnu.org>
2551
2552 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2553 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2554 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2555 and
2556 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2557
e9515805
SM
25582010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2559
2560 * alloc.c (Fpurecopy): Hash-cons if requested.
2561 (syms_of_alloc): Update purify-flag docstring.
2562
22aa44a8
JD
25632010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2564
2565 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2566 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2567
ebb5722e
EZ
25682010-04-17 Eli Zaretskii <eliz@gnu.org>
2569
2570 Fix a crash when an NSM character is inserted at BEGV.
2571
2572 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2573 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2574 NEUTRAL_B or UNKNOWN_BT.
2575
0f4442ef
EZ
25762010-04-16 Eli Zaretskii <eliz@gnu.org>
2577
2578 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2579 other rows with cursor unless they are different from this row and
2580 this row is part of a continued line. (Bug#5943)
2581
7d4e45f8
DN
25822010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2583
2584 * s/freebsd.h: Restore osreldate.h include.
2585 Suggested by Naohiro Aota.
2586
5ba5ec85
J
25872010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2588
2589 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2590
20af301d
CY
25912010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2592
2593 * s/cygwin.h: Avoid linking against static libgcc.
2594
a4b000fb
JL
25952010-04-15 Juri Linkov <juri@jurta.org>
2596
2597 * window.c: Add Qscroll_command.
2598 Remove Vscroll_preserve_screen_position_commands.
2599 (window_scroll_pixel_based, window_scroll_line_based): Check the
2600 `scroll-command' property on the last command instead of searching
2601 the last command in Vscroll_preserve_screen_position_commands.
2602 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2603 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2604 (scroll-preserve-screen-position): Doc fix.
2605 (Vscroll_preserve_screen_position_commands): Remove variable.
2606
bc319ba4
DN
26072010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2608
6bb24457
DN
2609 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2610
19d4c244
DN
26112010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2612
2613 Reduce cpp use in Makefile.in.
2614 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2615 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2616 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2617 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2618 (CRT0_COMPILE): Remove, inline it in the only user.
2619
32129746
JL
26202010-04-14 Juri Linkov <juri@jurta.org>
2621
2622 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2623 `scroll-up-command' and `M-v' from `scroll-down' to
2624 `scroll-down-command'.
2625
9013a7f8
JL
26262010-04-14 Juri Linkov <juri@jurta.org>
2627
2628 * window.c (Vscroll_preserve_screen_position_commands): New variable
2629 with the default value as the list of Qscroll_down and Qscroll_up.
2630 (window_scroll_pixel_based, window_scroll_line_based): Search the
2631 last command in the list Vscroll_preserve_screen_position_commands
2632 instead of comparing with Qscroll_up and Qscroll_down.
2633
4bef8d26
JD
26342010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2635
92848133
JD
2636 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2637 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2638 does that.
2639
4bef8d26
JD
2640 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2641 to zero.
2642
58b963f7
SM
26432010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2644
84164a0d
SM
2645 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2646
2b0a91e7
SM
2647 Try to solve the problem of spurious EOF chars in long lines of text
2648 sent to interactive subprocesses.
2649 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2650 (system_process_attributes): Remove unused var `ttotal'.
2651 * process.c (send_process): Don't bother breaking long line with EOF
2652 chars when talking to ttys any more.
2653 (wait_reading_process_output): Output a warning when called in such
2654 a way that it could block without being interruptible.
2655
58b963f7
SM
2656 Try to detect file modification within the same second.
2657 * buffer.h (struct buffer): New field modtime_size.
2658 * buffer.c (reset_buffer): Initialize it.
2659 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2660 (Fverify_visited_file_modtime): Check it.
2661 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2662 (Fset_visited_file_modtime): Set (or clear) it.
2663
01f5787b
SM
26642010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2665
2666 * process.c (status_notify): Remove unused var `ro'.
2667
83725342
JD
26682010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2669
2670 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2671 more than one visual (Bug#5938).
2672
b9465836
DN
26732010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2674
50426a04
JB
2675 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2676 Undefine.
b9465836 2677
8d9c8ece
DN
26782010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2679
b1f52161
DN
2680 Remove C_SWITCH_SYSTEM_TEMACS.
2681 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2682 (malloc, realloc, free): Use emacs, not temacs for conditional
2683 definition.
2684
2685 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2686 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2687
8d9c8ece
DN
2688 Use autoconf, not cpp for some variables.
2689 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2690 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2691 (ALL_CFLAGS): Use them as make variables.
2692 (really-lwlib, really-oldXMenu): Do not pass them.
2693
1ecb2d3f
JD
26942010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2695
2696 * xmenu.c (apply_systemfont_to_dialog): New.
2697 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2698
3a4fa2f2
SM
26992010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2700
97e53006
SM
2701 * process.c (exec_sentinel): Preserve current-buffer.
2702
3a4fa2f2
SM
2703 * process.c (read_process_output): Move the save-current-buffer to
2704 apply to both the filter and the non-filter branches.
2705
88df7221
DN
27062010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2707
2708 * s/msdos.h (UNEXEC): New definition.
2709
5634ff85
YM
27102010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2711
6eff5c3d
YM
2712 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2713 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2714
2715 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2716 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2717 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2718 TRY_WINDOW_CHECK_MARGINS.
2719
2720 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2721 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2722 width only when it is for padding.
5634ff85 2723
b13aef54
J
27242010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2725
2726 * xfns.c (Fx_show_tip): Call try_window in a loop until
2727 fonts_changed_p is zero (Bug#2423).
2728
21d28484
EZ
27292010-04-08 Eli Zaretskii <eliz@gnu.org>
2730
2731 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2732 the end of TEXT_AREA. (Bug#5856)
2733
0269ef77
JD
27342010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2735
2736 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2737 HAVE_GCONF.
2738
5930fe97
EZ
27392010-04-08 Eli Zaretskii <eliz@gnu.org>
2740
2741 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2742 prev.orig_type, for resolving type of NSM. (Bug#5858)
2743
99852628
JD
27442010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2745
2746 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2747 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2748 in current_font.
2749 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2750 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2751 New functions.
2752 (syms_of_xsettings): Initialize current_font.
2753 defsubr Sfont_get_system_normal_font.
99852628
JD
2754
2755 * xsettings.h (Ffont_get_system_normal_font,
2756 xsettings_get_system_normal_font): Declare.
2757
2758 * xfns.c (extern xlwmenu_default_font): Remove.
2759 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2760 to xlwmenu.c.
2761
2762 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2763 menu items in UTF-8.
2764
2765 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2766 (apply_systemfont_to_menu): New function.
2767 (set_frame_menubar, create_and_show_popup_menu): Call
2768 apply_systemfont_to_menu.
2769
7fc874c4
J
27702010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2771
2772 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2773 FRAME_LINE_TO_PIXEL_Y.
2774
2775 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2776 pixelwidth/height.
2777
863bf481
DN
27782010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2779
5e5a3b92
DN
2780 Simplify code for HP machines.
2781 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2782 for GNU_LINUX, not needed.
2783 (UNEXEC, NEED_BSDTTY): Move definitions...
2784 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2785
863bf481
DN
2786 * m/iris4d.h (UNEXEC): Move definition ...
2787 * s/irix6-5.h (UNEXEC): ... here.
2788
3e6bec3b
JD
27892010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2790
2791 * xfns.c (set_machine_and_pid_properties): New function.
2792 (Fx_create_frame): Call set_machine_and_pid_properties.
2793
2912322b
SM
27942010-04-03 Eli Zaretskii <eliz@gnu.org>
2795
1502b819
EZ
2796 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2797 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2798 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2799
2912322b
SM
2800 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2801 in this function. (Bug#5703)
2802
28032010-04-03 Chong Yidong <cyd@stupidchicken.com>
2804
2805 * nsterm.h: Fix last change.
2806
c435b432
DN
28072010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2808
a568f507
DN
2809 * m/intel386.h (NO_REMAP): Move definition ...
2810 * s/msdos.h (NO_REMAP): ... here.
2811
4cd9f6c2
DN
2812 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2813
c435b432
DN
2814 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2815 used on those platforms.
2816
42a2c622
DN
28172010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2818
2819 Remove extern errno declarations.
2820 * xterm.c:
2821 * xrdb.c:
2822 * w32term.c:
2823 * unexec.c:
2824 * unexaix.c:
2825 * sysdep.c:
2826 * process.c:
2827 * lread.c:
2828 * keyboard.c:
2829 * floatfns.c:
2830 * filelock.c:
2831 * fileio.c:
2832 * emacs.c (main):
2833 * ecrt0.c:
2834 * dispnew.c:
2835 * callproc.c:
2836 * buffer.c: Remove errno extern declarations.
2837 * s/netbsd.h (NEED_ERRNO): Remove.
2838
8224f93d
DN
28392010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2840
2841 Remove all uses of LIBX11_SYSTEM.
2842 * Makefile.in (LIBX11_SYSTEM): Remove.
2843 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2844 instead.
2845
814062c7
EZ
28462010-04-01 Eli Zaretskii <eliz@gnu.org>
2847
ed68db4d
EZ
2848 Remove support for DJGPP v1.x (bug#5813).
2849
2850 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2851 * s/msdos.h:
2852 * unexec.c (make_hdr, copy_text_and_data):
2853 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2854 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2855 (IT_set_terminal_modes, __write, _rename, gethostname)
2856 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2857 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2858 the value of __DJGPP__.
ed68db4d
EZ
2859 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2860 compatibility code.
8224f93d
DN
2861 * lread.c:
2862 * gmalloc.c (memalign):
2863 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2864 * emacs.c (main):
2865 * dosfns.c (init_dosfns):
ed68db4d
EZ
2866 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2867
52f4d8d5
EZ
28682010-04-01 Eli Zaretskii <eliz@gnu.org>
2869
814062c7
EZ
2870 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2871 string with `cursor' property comes from an `after-string'
2872 overlay. (Bug#5816)
2873
0dc2e11d
GM
28742010-04-01 Glenn Morris <rgm@gnu.org>
2875
2876 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2877 Define as Makefile variables.
2878 (LIBX): Use above variables rather than directly using autoconf.
2879
1d29df59
DN
28802010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2881
2882 Clean up BSD_SYSTEM use.
2883 * xterm.c:
2884 * process.c:
2885 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2886 for including <sys/ioctl.h>.
2887 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2888 code is only used for MSDOS.
2889
1546c559
JL
28902010-03-31 Juri Linkov <juri@jurta.org>
2891
2892 * image.c: Add `Qextension_data'.
2893 (syms_of_image): Initialize and staticpro `Qextension_data'.
2894 (Fimage_metadata): Rename from `Fimage_extension_data'.
2895 (gif_load): Put GIF extension data to the property
2896 `Qextension_data'.
2897
6521c534
CY
28982010-03-31 Chong Yidong <cyd@stupidchicken.com>
2899
2900 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2901 * nsterm.h: Fix prototype.
2902
52c30783
EZ
29032010-03-31 Eli Zaretskii <eliz@gnu.org>
2904
2905 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2906 trailing whitespace in right-to-left rows.
2907
855a0da7
SM
29082010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2909
2910 Get rid of the direct_output optimizations.
2911 * keyboard.c (nonundocount): Remove extern declaration.
2912 (command_loop_1): Remove brittle optimisation for cheap and
2913 common operations.
2914 * xdisp.c (redisplay_internal): Don't bother checking
2915 redisplay_performed_directly_p any more.
2916 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2917 any more.
2918 * dispnew.c (redisplay_performed_directly_p)
2919 (direct_output_for_insert, direct_output_forward_char):
2920 * dispextern.h (redisplay_performed_directly_p)
2921 (direct_output_for_insert, direct_output_forward_char): Remove.
2922 * cmds.c (nonundocount): Make it static.
2923
85738751 29242010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2925
2926 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2927
85738751 29282010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2929
2930 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2931 invisible (Bug#5766).
2932
85738751 29332010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2934
855a0da7
SM
2935 * xdisp.c (x_consider_frame_title, update_window_cursor):
2936 Remove HAVE_NS conditionals.
194d44e7 2937 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2938
2939 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2940 filename for the title.
2941 (ns_set_doc_edited): Do nothing if the selected window is a
2942 minibuffer window.
2943
2944 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2945 ns_set_doc_edited.
2946
2947 * nsterm.m: Remove unneeded prototype.
2948
85738751 29492010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2950
2951 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2952 in the DOC file. (Bug#5336)
2953
85738751 29542010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2955
2956 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2957
75d1428c
SM
29582010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2959
2960 * window.c (keys_of_window): Remove redundant/overridden bindings.
2961
82043cfb
EZ
29622010-03-30 Eli Zaretskii <eliz@gnu.org>
2963
2964 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2965 Restore original behavior when the iterator is not bidi_p.
2966
b5dd0ae7
DN
29672010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2968
2969 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2970
bd924a5d
EZ
29712010-03-30 Eli Zaretskii <eliz@gnu.org>
2972
2973 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2974 are outside the range of cached character positions.
2975
3580374b
JB
29762010-03-30 Juanma Barranquero <lekktu@gmail.com>
2977
2978 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2979
a7b02820
EZ
29802010-03-30 Eli Zaretskii <eliz@gnu.org>
2981
2982 Initial support for bidirectional editing.
2983
2984 * Makefile.in (obj): Include bidi.o.
2985 (bidi.o): New target.
2986
2987 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2988 ($(BLD)/bidi.$(O)): New target.
2989
2990 * bidi.c: New file.
2991
2992 * buffer.h (struct buffer): New members bidi_display_reordering
2993 and bidi_paragraph_direction.
2994
2995 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2996 and bidi_paragraph_direction.
2997 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2998 and bidi-paragraph-direction.
2999 (Fbuffer_swap_text): Swap the values of
3000 bidi_display_reordering and bidi_paragraph_direction.
3001
3002 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3003 (bidi_type_t, bidi_dir_t): New types.
3004 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3005 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3006 prev_stop, base_level_stop, and eol_pos.
3007 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3008 (IT_STACK_SIZE): Enlarge to 5.
3009 (struct glyph_row): New member reversed_p.
3010 <string_buffer_position>: Update prototype.
3011 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3012 glyph_row if bidi_it.paragraph_dir == R2L.
3013 (struct glyph): New members resolved_level and bidi_type.
3014
3015 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3016 processing or buffer's direction is right-to-left.
3017 (prepare_desired_row): Preserve the reversed_p flag.
3018 (row_equal_p): Compare the reversed_p attributes as well.
3019
3020 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3021 bidi_init_it and set it->paragraph_embedding from the current
3022 buffer's value of bidi_paragraph_direction.
3023 (reseat_1): Initialize bidi_it.first_elt.
3024 (set_iterator_to_next, next_element_from_buffer): Use the value of
3025 paragraph_embedding to determine the paragraph direction.
3026 (set_iterator_to_next): Under bidi reordering, call
3027 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3028 new_paragraph flag is set in the bidi iterator.
3029 (next_element_from_buffer): If bidi_it.first_elt is set,
3030 initialize paragraph direction and find the first character to
3031 display in the visual order. If reseated to a middle of a line,
3032 prime the bidi iterator starting at the line's beginning. Handle
3033 the situation where we overstepped stop_charpos due to
3034 non-linearity of the bidi iteration. Likewise for when we back up
3035 beyond the previous stop_charpos. When moving across stop_charpos,
3036 record it in prev_stop.
3037 (display_line): Set row->end and it->start for the next row to the
3038 next character in logical order. Always extend reversed_p rows to
3039 the end of line, even if they end at ZV. Copy the reversed_p flag
3040 to the next glyph row. Keep calling set_cursor_from_row for
3041 bidi-reordered rows even if we already have a possible candidate
3042 for cursor position. Set row_end after all the row's glyphs have
3043 been produced, by looping over the glyphs. Record the position
3044 after EOL in it->eol_pos, and use it to set end_pos of the last
3045 row produced for a continued line.
3046 <Qright_to_left, Qleft_to_right>: New variables.
3047 (syms_of_xdisp): Initialize and staticpro them.
3048 (string_buffer_position_lim): New function.
3049 (string_buffer_position): Most of code moved to
3050 string_buffer_position_lim. Last argument and return value are
3051 now EMACS_INT; all callers changed.
3052 (set_cursor_from_row): Rewritten to support bidirectional text and
3053 reversed glyph rows.
3054 (text_outside_line_unchanged_p, try_window_id): Disable
3055 optimizations if we are reordering bidirectional text and the
3056 paragraph direction can be affected by the change.
3057 (append_glyph, append_composite_glyph)
3058 (produce_image_glyph, append_stretch_glyph): Set the
3059 resolved_level and bidi_type members of each glyph.
3060 (append_glyph): If the glyph row is reversed, prepend the glyph
3061 rather than appending it.
3062 (handle_stop_backwards): New function.
3063 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3064 (reseat): call handle_stop_backwards to recompute prev_stop and
3065 base_level_stop for the new position.
3066 (handle_invisible_prop): Under bidi iteration, skip invisible text
3067 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3068 paragraph direction. Update IT->prev_stop after skipping
3069 invisible text.
3070 (move_it_in_display_line_to): New variables prev_method
3071 and prev_pos. Compare for strict equality in
3072 BUFFER_POS_REACHED_P.
3073 (try_cursor_movement): Examine all the candidate rows that occlude
3074 point, to return the best match. If rows are bidi-reordered
3075 and point moved backwards, back up to the row that is not a
3076 continuation line, and start looking for a suitable row from
3077 there.
3078
3079 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3080 rather than appending, if the glyph_row's reversed_p flag is set.
3081 Set the resolved_level and bidi_type members of each glyph.
3082
3083 * .gdbinit (pbiditype): New command.
3084 (pgx): Use it to display bidi level and type of the glyph.
3085 (pitx): Display some bidi information about the iterator.
3086 (prowlims, pmtxrows): New commands.
3087
32a8894e
DN
30882010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3089
3090 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3091 * s/usg5-4.h (LIBS_DEBUG):
3092 * s/irix6-5.h (C_DEBUG_SWITCH):
3093 * s/gnu-linux.h (LIBS_DEBUG):
3094 * s/darwin.h (LIBS_DEBUG):
3095 * s/bsd-common.h (LIBS_DEBUG):
3096 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3097 * m/iris4d.h (LIBS_DEBUG):
3098 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3099
3100 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3101 (LIBS_DEBUG): Remove definition.
3102
649dbf36
CY
31032010-03-27 Chong Yidong <cyd@stupidchicken.com>
3104
3105 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3106 Windows.
3107
cad4261f
YM
31082010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3109
3110 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3111 `connect' (Bug#5723).
3112
cd591dbc
HE
31132010-03-25 Helmut Eller <eller.helmut@gmail.com>
3114
3115 * process.c (Fmake_network_process): Call `select' for interrupted
3116 `connect' rather than creating new socket (Bug#5173).
3117
e867cb5d 31182010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3119
3120 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3121
3122 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3123
3124 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3125
e867cb5d 31262010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3127
3128 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3129 XLoadQueryFont.
3130
e867cb5d 31312010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3132
3133 * coding.c (decode_coding_ccl): Fix previous change for the
3134 multibyte case.
fb608df3
KH
3135 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3136 case that the output buffer is fullfilled.
3137 (encode_coding): Setup ccl program here.
fbdc1721 3138
5845f0ed
DN
31392010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3140
814fb708
DN
3141 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3142
5845f0ed
DN
3143 Simplify LIBS_MACHINE definitions.
3144 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3145 * m/iris4d.h (LIBS_MACHINE): Likewise.
3146 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3147 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3148 * s/netbsd.h: Remove commented out code.
5845f0ed 3149
b7064064
DN
31502010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3151
df7734b2
DN
3152 Remove dead code dealing with POSIX_SIGNALS.
3153 * atimer.c (set_alarm): Remove dead code, all USG systems define
3154 POSIX_SIGNALS.
3155 * data.c (arith_error): Likewise.
3156 * keyboard.c (input_available_signal, handle_user_signal)
3157 (interrupt_signal): Likewise.
3158 * process.c (sigchld_handler): Likewise.
3159 (create_process): Remove if 0 code. Remove HPUX conditional when
3160 !defined (POSIX_SIGNALS), it cannot be true.
3161 * syssignal.h: Remove USG5_4 and USG conditionals when
3162 !POSIX_SIGNALS, they cannot be true.
3163
b7064064
DN
3164 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3165 NO_SOCK_SIGIO, not used anymore.
3166
55da5ee3
DN
31672010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3168
0be96e3a
DN
3169 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3170 support vax on BSDs.
3171
55da5ee3
DN
3172 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3173 * s/aix4-2.h (ORDINARY_LINK): ... here.
3174
c0282183
AS
31752010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3176
82c3d67a
AS
3177 * Makefile.in (abs_builddir): Define.
3178 (bootstrap_exe): Use it.
3179 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3180
3613edce
SM
31812010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3182
3183 * Makefile.in (bootstrap_exe): Use an absolute name.
3184
7f110ddc
DN
31852010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3186
22e87574
DN
3187 Remove support for old GNU/Linux using libc version 5.
3188 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3189 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3190
05a670e6
DN
3191 Consolidate redundant definitions in s/bsd-common.h.
3192 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3193 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3194 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3195 doing it in all files that include this one.
3196 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3197 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3198 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3199 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3200 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3201 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3202 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3203 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3204 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3205
2968f561
DN
3206 Consolidate redundant definitions.
3207 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3208 it's undefined in all files that include this one.
3209 (POSIX_SIGNALS): Define here instead of doing it in all files that
3210 include this one.
3211 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3212 (POSIX_SIGNALS): Do not define.
3213 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3214 (POSIX_SIGNALS): Do not define.
3215 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3216 (POSIX_SIGNALS): Do not define.
3217
15d25dc0
DN
3218 Remove support for old UNIX System V systems.
3219 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3220 * s/usg-5-4-2.h: Remove.
3221
07e339e4
DN
3222 Remove support for Solaris on PPC and for old versions.
3223 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3224 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3225 that cancel each other.
3226 * s/sol2-3.h:
3227 * s/sol2-4.h:
3228 * s/sol2-5.h: Remove.
3229 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3230 (NO_REMAP): Remove, unused.
3231 (UNEXEC): Move definition ...
3232 * s/aix4-2.h (UNEXEC): ... here.
3233
7f110ddc
DN
3234 * s/openbsd.h: Remove support for non-ELF and for systems that do
3235 not support shared libraries.
3236 * s/netbsd.h:
3237 * s/freebsd.h: Likewise.
3238
605f35cd
DN
32392010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3240
3241 Remove non-working support for lynxos 3.0.
3242 * s/lynxos.h: Remove file.
3243
3244 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3245 COFF_BSD_SYMBOLS, nothing defines it anymore.
3246
aed71cf4
DN
32472010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3248
3249 Remove obsolete uses of HAVE_SHM.
3250 * emacs.c (standard_args):
3251 (Fdump_emacs):
3252 (syms_of_emacs): Remove code depending on HAVE_SHM.
3253
3254 * alloc.c: Remove HAVE_SHM dependent definition.
3255
3256 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3257
aded53ff
GM
32582010-03-18 Glenn Morris <rgm@gnu.org>
3259
17284745
GM
3260 * emacs.c (USAGE4): Hard-code bug address.
3261 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3262 (bug_reporting_address): Remove.
3263 (main): Don't call bug_reporting_address.
3264
aded53ff
GM
3265 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3266 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3267
303500aa
CY
32682010-03-15 Chong Yidong <cyd@stupidchicken.com>
3269
3270 * xfns.c (Fx_create_frame):
3271 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3272 on left.
3273
cef3058f
CY
32742010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3275
3276 * editfns.c (Fformat): Account for string precision when computing
3277 field width (Bug#5710).
3278
a647d59d
CY
32792010-03-12 Chong Yidong <cyd@stupidchicken.com>
3280
4fa42018
CY
3281 * xfns.c (Fx_create_frame): Set default to Qright.
3282
a647d59d
CY
3283 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3284 all window systems.
3285
6da23aaa
EZ
32862010-03-12 Eli Zaretskii <eliz@gnu.org>
3287
a96f6398 3288 These changes remove termcap.c from the build on Posix platforms.
83d02def 3289 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3290 (MSDOS_OBJ): ...to here.
3291 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3292 now identical to when LIBS_TERMCAP is defined.
3293
3294 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3295
3296 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3297
a96f6398 3298 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3299
288f9fc0
CY
33002010-03-10 Chong Yidong <cyd@stupidchicken.com>
3301
3302 * Branch for 23.2.
3303
d48cd3f4
SM
33042010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3305
3306 Cleanup setup of gl_state in various parts of the code.
3307 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3308 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3309 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3310 (skip_chars):
3311 * regex.c (regex_compile): Use it.
3312 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3313 it's now set in regex_compile when/if we need it.
3314
618db430
SM
33152010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3316
c0335e02
SM
3317 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3318 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3319 (QUIT): Use it to consolidate code and remove redundancy.
3320 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3321
254c06a8
SM
3322 * regex.c (regex_compile): Setup gl_state as well.
3323
618db430
SM
3324 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3325 (in_classes): Use CONSP before XCAR/XCDR.
3326
233f0c9f
CY
33272010-03-03 Chong Yidong <cyd@stupidchicken.com>
3328
3329 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3330 definitions, so that keyboard macros are correctly handled
3331 (Bug#5481).
3332
75f80e63
EZ
33332010-03-02 Eli Zaretskii <eliz@gnu.org>
3334
3335 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3336 text that could be relocated inside the call to emacs_mule_char.
3337 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3338 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3339
dcfb9bc4
KH
33402010-03-02 Kenichi Handa <handa@m17n.org>
3341
fc9a17bc
KH
3342 * character.c (parse_str_as_multibyte): Fix handling of the
3343 multibyte form of raw-bytes.
3344 (str_as_multibyte): Likewise.
3345
dcfb9bc4
KH
3346 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3347 form of raw-bytes.
3348
412c01b6
CY
33492010-02-28 Chong Yidong <cyd@stupidchicken.com>
3350
3351 * charset.c (load_charset_map_from_file)
3352 (load_charset_map_from_vector): Zero out allocated
3353 charset_map_entries before using them.
3354
df7e1ea0
AS
33552010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3356
3357 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3358
fe69a722
CY
33592010-02-27 Chong Yidong <cyd@stupidchicken.com>
3360
4ed28cf4
CY
3361 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3362 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3363
7379cfce
KH
33642010-02-26 Kenichi Handa <handa@m17n.org>
3365
f88cc4d6
KH
3366 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3367
7379cfce
KH
3368 * xdisp.c (reseat_to_string): Fix previous change.
3369
cf2fdcfb
CY
33702010-02-26 David Reitter <david.reitter@gmail.com>
3371
3372 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3373 Lisp_Object (Bug#4736).
3374
cc6c7c75
KH
33752010-02-25 Kenichi Handa <handa@m17n.org>
3376
3377 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3378
32e737d7
JD
33792010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3380
3381 * xterm.c (XTflash): Move declarations before statements.
3382
3383 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3384 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3385 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3386 (xg_create_tool_bar): Remove unused variables.
3387 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3388 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3389
676cae9f
CY
33902010-02-21 Chong Yidong <cyd@stupidchicken.com>
3391
3392 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3393
886cc2b8
SM
33942010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3395
3396 * term.c (fatal): Add a final \n if needed (bug#5596).
3397
ddb2d8e2
CY
33982010-02-18 Chong Yidong <cyd@stupidchicken.com>
3399
3400 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3401
2a4f8d3d
GM
34022010-02-18 Glenn Morris <rgm@gnu.org>
3403
3404 * callint.c (Finteractive): Doc fix.
3405
ebaf11b6
KH
34062010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3407
886cc2b8
SM
3408 * coding.c (record_conversion_result):
3409 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3410 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3411 memory allocation error.
3412
d0396581
KH
34132010-02-17 Kenichi Handa <handa@m17n.org>
3414
886cc2b8
SM
3415 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3416 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3417 (decode_coding): Setup ccl program here. Keep looping when the
3418 decoder stopped because the output buffer is
3419 fullfilled (bug#5534).
3420
3421 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3422
98599f74
JD
34232010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3424
471e4f04 3425 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3426 bug #5571.
886cc2b8 3427 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3428 overdrawn.
98599f74 3429
182659ae
JD
34302010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3431
3432 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3433 doing_interact here.
3434 (ice_connection_closed): New function.
3435 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3436 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3437 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3438 returns I/O error.
3439 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3440 bug #5512.
3441
9be32c4e 34422010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3443
3444 * nsfont.m (nsfont_open): The system's value for the font descent
3445 is negative, so round it down to avoid clipping.
3446
a2f3eb19
CY
34472010-02-06 Chong Yidong <cyd@stupidchicken.com>
3448
3449 * charset.c (load_charset_map_from_file)
3450 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3451 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3452
3088147c
CY
34532010-02-05 Chong Yidong <cyd@stupidchicken.com>
3454
3455 * charset.c (load_charset_map_from_file): Allocate large
3456 charset_map_entries structure on the heap rather than the stack.
3457 (Bug#5526).
3458
b57d9029
KH
34592010-01-31 Kenichi Handa <handa@m17n.org>
3460
3461 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3462 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3463
c67d885b
CY
34642010-01-31 Chong Yidong <cyd@stupidchicken.com>
3465
3466 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3467 <deactivated@gmail.com> (Bug#3605).
3468
8fab2362
CY
34692010-01-31 David De La Harpe Golden <david@harpegolden.net>
3470
3471 * fileio.c (Frename_file): Correctly rename symlinks to
3472 directories (Bug#5496).
3473
cb2a62f2
CY
34742010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3475
3476 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3477
944c7a26
AS
34782010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3479
3480 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3481
c024ac08
CY
34822010-01-29 Chong Yidong <cyd@stupidchicken.com>
3483
3484 * frame.c (DEFAULT_ROWS): Change default to 35.
3485
3486 * xfns.c (x_default_font_parameter): Change default XFT font to
3487 monospace-10 (Bug#3643).
3488
af93af83
EZ
34892010-01-29 Eli Zaretskii <eliz@gnu.org>
3490
3491 * w32inevt.c (key_event): Remove unnecessary comparison of
3492 event->uChar.AsciiChar with 128.
3493
ca0eb708
CY
34942010-01-28 Chong Yidong <cyd@stupidchicken.com>
3495
b242dbfc
CY
3496 * fileio.c (Frename_file): Fix last change (Bug#5487).
3497
ca0eb708
CY
3498 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3499
3500 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3501
45d45af5
JD
35022010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3503
3504 * xfns.c (Fx_create_frame): Remove window size matching code from
3505 2010-01-15.
a73f9c9d 3506 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3507
7e233730
JR
35082010-01-27 Jason Rumney <jasonr@gnu.org>
3509
3510 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3511 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3512
86e893e3
KH
35132010-01-27 Kenichi Handa <handa@m17n.org>
3514
3515 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3516 pattern string (Bug#4209).
86e893e3 3517
8719abec
CY
35182010-01-27 David De La Harpe Golden <david@harpegolden.net>
3519
3520 * fileio.c (Frename_file): Call copy-directory and
3521 delete-directory for directories, in order to handle cross-device
3522 renaming (Bug#3353).
3523
844794c8
JD
35242010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3525
aa3e13b5 3526 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3527 sizes 24 and 10. Bug #3643.
844794c8 3528
bd4b5750
SM
35292010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3530
8dc1adf6 3531 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3532 * keymap.c (shadow_lookup): Add `remap' arg.
3533 (describe_map, describe_vector): Update calls to shadow_lookup.
3534 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3535 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3536 perform remapping during shadow_lookup check of remapped_sequences.
3537
285d07e2
CY
35382010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3539
3540 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3541 png_check_sig, which has been removed in libpng 1.4.
3542
c6d09b8d
CY
35432010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3544
3545 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3546 lacks this header file).
3547
3d782998
YM
35482010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3549
3550 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3551 as in Emacs 22.
3552
2aff7c53
YM
35532010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3554
3555 * lisp.h (make_pure_string): String pointer arg now points to const.
3556
3557 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3558 args now point to const.
3559
74327f7a
EZ
35602010-01-22 Eli Zaretskii <eliz@gnu.org>
3561
3562 * lread.c (Fload): Don't treat files without .elc extension as
3563 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3564 them. (bug#5303)
3565
4d1e6632
KH
35662010-01-20 Kenichi Handa <handa@m17n.org>
3567
3568 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3569 treat the source as actual byte sequence.
3570
1fdede8f
AM
35712010-01-19 Alan Mackenzie <acm@muc.de>
3572
3573 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3574 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3575 `signal_after_change_p' to `coherent_change_p', and make the
3576 invocation of `modify_region' conditional on it.
3577
67477f30
JD
35782010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3579
3580 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3581 for debug purpose.
3582 (syms_of_xsettings): Declare xft-settings.
3583
244b023e
CY
35842010-01-18 Chong Yidong <cyd@stupidchicken.com>
3585
3586 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3587
617364fe
CY
35882010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3589
3590 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3591
4fe22cdf
CY
35922010-01-16 Chong Yidong <cyd@stupidchicken.com>
3593
3594 * emacs.c (standard_args): Adjust arg priorities to reflect how
3595 they are processed in startup.el.
3596
e118d2be
AS
35972010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3598
3599 * Makefile.in (lisp, shortlisp): Update.
3600
523ae620
SM
36012010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3602
3603 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3604 code, link the new kboard into all_kboard before running Lisp code,
3605 and protect the new terminal with GCPRO (Bug#5365).
3606 (x_term_init): Remove unused var `atom'.
3607 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3608
f0d13888
JD
36092010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3610
3611 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3612 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3613 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3614 this. Bug #3643.
f0d13888 3615
cc320f07
KH
36162010-01-15 Kenichi Handa <handa@m17n.org>
3617
3618 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3619
7ffdf101
CY
36202010-01-15 Chong Yidong <cyd@stupidchicken.com>
3621
3622 * nsterm.m (Qnone): Define.
3623
3624 * nsfns.m (Qnone): Move definition to nsterm.m.
3625
d12bd917
KH
36262010-01-14 Kenichi Handa <handa@m17n.org>
3627
3628 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3629 systems.
3630
d9a7c140
KH
36312010-01-14 Kenichi Handa <handa@m17n.org>
3632
3633 Make auto-composition work on all buffers even if they are
3634 fundamental mode.
3635
3636 * composite.c (Vauto_composition_mode): New variable.
3637 (composition_compute_stop_pos): Check Vauto_composition_mode
3638 instead of Vauto_composition_function.
3639 (composition_adjust_point, Ffind_composition_internal): Likewise.
3640 (syms_of_composite): Declare Lisp variable
3641 "auto-composition-mode" here.
3642
63286bb2
CY
36432010-01-13 Chong Yidong <cyd@stupidchicken.com>
3644
3645 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3646 during call to vendor-specific-keysyms (Bug#5365).
3647
c2623ee7
YM
36482010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3649
3650 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3651 Call SIGNAL_THREAD_CHECK (Bug#5333).
3652
3653 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3654 Call SIGNAL_THREAD_CHECK.
3655
0b5397c2
SM
36562010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3657
3658 Try to fix bug#5314. This is probably not the final word, tho.
3659 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3660 recent-auto-save-p as a side-effect.
3661 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3662 * buffer.c (Fkill_buffer, reset_buffer):
3663 * editfns.c (Fsubst_char_in_region):
3664 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3665 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3666
dc954cb2
KH
36672010-01-13 Kenichi Handa <handa@m17n.org>
3668
3669 Display buffer name, etc. in mode line by composing correctly.
3670
3671 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3672 STRING is not nil.
0b5397c2 3673 (display_mode_element): Adjust for the change of
dc954cb2
KH
3674 decode_mode_spec and display_line.
3675 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3676 (display_string): Handle the case that STRING is non-null and
3677 LISP_STRING is not nil.
3678
0b5397c2
SM
3679 * xterm.c (x_draw_composite_glyph_string_foreground):
3680 Pay attention to s->face->overstrike.
dc954cb2
KH
3681
3682 * composite.c (composition_reseat_it): Don't check PT if STRING is
3683 non nil.
3684
4a00eaca
YM
36852010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3686
3687 * keyboard.c (read_char): Don't apply previous change when current
3688 buffer is unchanged by command execution.
3689
60abb287
JD
36902010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3691
3692 * keyboard.c (read_char): Return after executing from special map.
3693
893db5bc
GM
36942010-01-12 Glenn Morris <rgm@gnu.org>
3695
3696 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3697 bug-gnu-emacs rather than emacs-pretest-bug.
3698
4d03ece0
CY
36992010-01-11 Chong Yidong <cyd@stupidchicken.com>
3700
3701 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3702 initializing the Lisp variables that depend on them.
3703
1df47e38
YM
37042010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3705
3706 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3707 Clear areas that will not be updated after change of menu bar lines.
3708 Clear the menu bar window's current matrix when the window gets empty.
3709
2f1c6384
CY
37102010-01-09 Chong Yidong <cyd@stupidchicken.com>
3711
e398c61c
CY
3712 * intervals.h, textprop.c (extend_property_ranges): Return value
3713 and args changed. Discard properties that begin at or after the
3714 new end (Bug#5306).
3715
3716 * editfns.c (Fformat): Caller changed.
3717
e5a29a10
CY
3718 * nsterm.m (ns_set_default_prefs): Delete function.
3719 (syms_of_nsterm): Initialize ns_command_modifier,
3720 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3721 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3722
2f1c6384
CY
3723 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3724 position (Bug#4040).
3725
d427a9fa
EZ
37262010-01-09 Eli Zaretskii <eliz@gnu.org>
3727
3728 * editfns.c (Ffloat_time): Doc fix.
3729
21b9df2f
JD
37302010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3731
3732 * xfns.c (Fx_create_frame): Don't create frame larger than display
3733 by default bug#3643.
3734
4b00d3b1
YM
37352010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3736
3737 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3738 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3739 windows above internal border.
3740
3741 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3742 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3743 windows above internal border.
3744
3745 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3746 tool bar windows specially.
3747
3748 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3749
3750 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3751 specially.
3752 (XTflash): Take account of menu bar height.
3753
3754 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3755 specially.
3756
5075d853
JD
37572010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3758
ac146f82 3759 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3760 also be true before we can return early (bug #5339).
3761
474217c8
CY
37622010-01-06 David Reitter <david.reitter@gmail.com>
3763
3764 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3765 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3766 (Bug#3233).
3767
c0e6d47d
JD
37682010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3769
d0cf45b7
JD
3770 * font.c (font_open_entity): Enable chache and call cached_font_ok
3771 for the driver if defined.
3772 (QCuser_spec): New symbol.
3773 (font_spec_from_name): Save name as user-spec.
3774 (font_load_for_lface): Keep user-spec instead of name.
3775 (font_open_by_name): Save name as user-spec.
3776 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3777 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3778
3779 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3780 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3781 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3782
3783 * font.h (struct font_driver): Add cached_font_ok.
3784
c0e6d47d
JD
3785 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3786
7c583cd8
JD
37872010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3788
3789 * xterm.c (x_new_font): Move code for setting rows/cols before
3790 resizing ...
ac146f82 3791 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3792
3793 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3794 (xg_frame_resized, xg_frame_set_char_size):
3795 Call xg_clear_under_internal_border.
7c583cd8 3796 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3797
03f77f0a
CY
37982010-01-05 Chong Yidong <cyd@stupidchicken.com>
3799
3800 * keyboard.c (read_key_sequence): Catch keyboard switch after
3801 making a new tty frame (Bug#5095).
3802
2a1ef5be
KH
38032010-01-05 Kenichi Handa <handa@m17n.org>
3804
3805 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3806
e3eb1dae
SM
38072010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3808
3809 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3810 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3811 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3812
777013f2
MA
38132010-01-03 Michael Albinus <michael.albinus@gmx.de>
3814
3815 * dbusbind.c (xd_add_watch): Improve debug message.
3816 (xd_remove_watch): Improve debug message. If DATA is the session
3817 bus, unset D-Bus session environment.
3818 (Fdbus_init_bus): Pass the bus as argument to
3819 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3820
8932b1c2
CY
38212010-01-01 Chong Yidong <cyd@stupidchicken.com>
3822
87231e2c
CY
3823 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3824
4801c5fa
CY
3825 * lread.c (syms_of_lread): Make it clearer that these are the
3826 names of loaded files (Bug#5068).
3827
8932b1c2
CY
3828 * eval.c (run_hook_with_args): Handle the case where the global
3829 value has the obsolete single-function form (Bug#5026).
3830
11e3c684
CY
38312009-12-27 Chong Yidong <cyd@stupidchicken.com>
3832
3833 * minibuf.c (Fall_completions): Minor optimization.
3834
5b28ce35
EZ
38352009-12-26 Eli Zaretskii <eliz@gnu.org>
3836
5ce6e4f4
JB
3837 * .gdbinit (pgx): Fix display of composite glyphs.
3838 Display cmp.from and cmp.to as well.
3839 (pitx): Fix last change.
5b28ce35 3840
bcffff46
KH
38412009-12-25 Kenichi Handa <handa@m17n.org>
3842
3843 * composite.h (composition_adjust_point): Update prototype.
3844
3845 * composite.c (composition_reseat_it): Don't make a composition
3846 spanning over point.
3847 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3848 composable characters.
3849 (composition_adjust_point): New arg NEW_PT. Callers changed.
3850
3851 * keyboard.c (command_loop_1): Force redisplay if the last point
3852 was within a composition.
3853 (adjust_point_for_property): Don't adjust point for automatic
3854 composition when called after buffer modification.
3855
3f670e9a
EZ
38562009-12-19 Eli Zaretskii <eliz@gnu.org>
3857
5ce6e4f4
JB
3858 * .gdbinit (pitx): Don't use enum names, use their values.
3859 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3860 (pgx): Don't use enum names, use their values.
3861 (pitmethod): New helper command.
3862 (pitx): Use it to display iteration method.
3863 (pgrowit): New command.
3864
ad903955
EZ
3865 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3866
3f670e9a
EZ
3867 Update dependencies in Makefile.in.
3868
3869 * Makefile.in (alloc.o): Depend on termhooks.h.
3870 (atimer.o): Depend on blockinput.h.
3871 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3872 and frame.h.
3873 (callint.o): Depend on systime.h, coding.h, and composite.h.
3874 (callproc.o): Depend on buffer.h.
3875 (casefiddle.o): Don't depend on charset.h.
3876 (casetab.o): Depend on character.h.
3877 (ccl.o): Depend on composite.h.
3878 (chartab.o): Depend on ccl.h.
3879 (cm.o): Depend on dispextern.h.
3880 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3881 (coding.o): Don't depend on $(INTERVALS_H).
3882 (composite.o): Don't depend on dispextern.h explicitly (it's in
3883 $(INTERVALS_H)). Depend on ccl.h.
3884 (data.o): Depend on systime.h, coding.h, composite.h,
3885 dispextern.h, font.h, and ccl.h.
3886 (dired.o): Depend on composite.h.
3887 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3888 composite.h (it's in $(INTERVALS_H)).
3889 (doc.o): Depend on systime.h, coding.h, and composite.h.
3890 (editfns.o): Don't depend explicitly on dispextern.h.
3891 (emacs.o): Depend on frame.h and coding.h.
3892 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3893 (fileio.o): Depend on frame.h and commands.h. Don't depend
3894 explicitly on dispextern.h.
3895 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3896 composite.h.
3897 (fns.o): Don't depend on termhooks.h.
3898 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3899 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3900 coding.h, $(INTERVALS_H), window.h, xterm.h.
3901 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3902 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3903 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3904 fontset.h, ccl.h, and ftfont.h.
3905 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3906 (gtkutil.o): Depend on dispextern.h and composite.h.
3907 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3908 termhooks.h, and ccl.h.
3909 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3910 (intervals.o): Depend on systime.h and coding.h.
3911 (keyboard.o): Depend on composite.h and coding.h.
3912 (keymap.o): Depend on coding.h and frame.h.
3913 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3914 (macros.o): Depend on systime.h, coding.h, and composite.h.
3915 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3916 and atimer.h.
3917 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3918 dispextern.h explicitly.
0b5397c2
SM
3919 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3920 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3921 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3922 (regex.o): Don't depend on charset.h.
3923 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3924 (search.o): Don't depend explicitly on composite.h.
3925 (sound.o): Depend on atimer.h and systime.h.
3926 (syntax.o): Don't depend explicitly on composite.h.
3927 (sysdep.o): Depend on coding.h and composite.h.
3928 (term.o): Depend on xterm.h and buffer.h.
3929 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3930 (textprop.o): Don't depend on dispextern.h explicitly.
3931 (undo.o): Depend on dispextern.h.
3932 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3933 dispextern.h and composite.h explicitly.
3934 (xdisp.o): Depend on ccl.h.
3935 (xfaces.o): Depend on coding.h and ccl.h.
3936 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3937 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3938 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3939 ftfont.h.
3940 (xgselect.o): New dependency.
3941 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3942 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3943 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3944 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3945 (xsmfns.o): Depend on frame.h and dispextern.h.
3946 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3947 sysselect.h.
3948
7a6f7fea
AS
39492009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3950
3951 * font.c (Fclear_font_cache): Pass correct cache argument to
3952 font_clear_cache.
3953
f4c21026
AS
39542009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3955
3956 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3957 twice.
3958
f7ab0997
CY
39592009-12-15 Chong Yidong <cyd@stupidchicken.com>
3960
3961 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3962 calling file-remote-p. Reported by Jim Meyering.
3963
fa8e045a
MA
39642009-12-15 Michael Albinus <michael.albinus@gmx.de>
3965
3966 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3967 avoid compiler warnings. (Bug #5217)
fa8e045a 3968
a63dba42
KH
39692009-12-14 Kenichi Handa <handa@m17n.org>
3970
3971 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3972 in 8-bit encoding.
3973
5ce6e4f4 39742009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3975
3976 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3977 tooltip windows.
3978
223e5fc6
JD
39792009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3980
36acb2a7
JD
3981 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3982 Xatom_net_window_type.
3983
3984 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3985 Xatom_net_window_type.
3986
b8f00677
JD
3987 * xterm.c (my_log_handler): New function.
3988 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3989 so we can filter out buggy messages. (Bug #5120).
b8f00677 3990
e5f0bc9a
JD
3991 * xterm.c (xg_scroll_callback): Parameter list changed,
3992 use parameter GtkScrollType to determine scroll/line/page.
3993 Only allow dragging if a button < 4 is grabbed (bug #5177).
3994 (xg_end_scroll_callback): New function.
3995 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3996 xg_create_scroll_bar.
3997
3998 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3999 (scroll_end_callback): Remove.
4000 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4001 button-release-event. Replace value-changed event with change-value,
4002 bug #5177,
4003 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4004 bug #5177.
4005
4006 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4007 (xg_create_scroll_bar): Add GCallback end_callback.
4008
223e5fc6
JD
4009 * xftfont.c (QClcdfilter): New variable.
4010 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4011 (syms_of_xftfont): Initialize QClcdfilter.
4012
3c055b77
JD
40132009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4014
4015 * xsettings.c (struct xsettings): Add member seen.
4016 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4017 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4018 (apply_xft_settings): Only update Xft settings with what member seen
4019 indicates as new.
4020
05fe33ff
EZ
40212009-12-12 Eli Zaretskii <eliz@gnu.org>
4022
4023 * dispextern.h (struct text_pos): Use EMACS_INT;
4024 (struct glyph): Use EMACS_INT for charpos.
4025 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4026 region_beg_charpos, region_end_charpos,
4027 redisplay_end_trigger_charpos, and also for
4028 iterator_stack_entry.end_charpos and
4029 iterator_stack_entry.stop_charpos.
4030
e8d7886a
JD
40312009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4032
5ce6e4f4 4033 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4034 (xg_create_scroll_bar): Call scroll_end_callback on button release
4035 event (bug #5177).
4036 (xg_event_is_for_scrollbar): != replaced with ==.
4037
d0db2ec8
KH
40382009-12-12 Kenichi Handa <handa@m17n.org>
4039
4040 * ftfont.c (struct ftfont_info): New member matrix.
4041 (ftfont_open): Setup xftfont_info->matrix.
4042 (MFLTFontFT): New member matrix.
4043 (FLOOR, CEIL, ROUND): New macros.
4044 (ftfont_get_metrics): Handle matrix transformation.
4045 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4046
4047 * xftfont.c (struct xftfont_info): New member matrix.
4048 (xftfont_open): Setup xftfont_info->matrix.
4049
40502009-12-10 Kenichi Handa <handa@m17n.org>
4051
4052 * xdisp.c (append_space_for_newline): Consider face-remapping.
4053
2cc7b62f
AS
40542009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4055
b87dd913
AS
4056 * xsettings.c: Include "keyboard.h".
4057
eba5eb94
AS
4058 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4059
2cc7b62f
AS
4060 Fix implicit function declarations.
4061 * cmds.c: Include "frame.h".
4062 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4063 * frame.h: Move declaration of delete_frame outside of
4064 HAVE_WINDOW_SYSTEM.
4065
a4ef73c8
CY
40662009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4067
4068 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4069
4070 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4071 GTK builds.
4072
944a300c
AS
40732009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4074
4075 * unexelf.c (unexec): Don't search for .data twice.
4076
022eef62
CY
40772009-12-05 Chong Yidong <cyd@stupidchicken.com>
4078
426ac949
CY
4079 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4080 if push failed.
4081 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4082 of push_display_prop (Bug#5000).
4083
022eef62
CY
4084 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4085 value of font_list_entities (Bug#5085).
4086
be95bee9
JB
40872009-12-04 Juanma Barranquero <lekktu@gmail.com>
4088
4089 Fix `string-to-number' to deal consistently with integers and floats.
4090 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4091 trailing characters, not just whitespace.
4092 (read1): Pass new arg 0 to keep old behavior.
4093 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4094 trailing chars, as it is already done for integers. Doc fixes.
4095 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4096
24c2d7ce
EZ
40972009-12-04 Eli Zaretskii <eliz@gnu.org>
4098
0b5397c2
SM
4099 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4100 Delete unused enumeration value.
24c2d7ce 4101
7e694795
EZ
41022009-12-03 Eli Zaretskii <eliz@gnu.org>
4103
4104 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4105
84b31826
SM
41062009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4107
4108 * process.c (Fmake_network_process): Fix up the tests for
4109 "connectionless socket", so they DTRT for seqpacket sockets as well.
4110
f00c449b
SM
41112009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4112
4113 * process.c (Qseqpacket): New symbol.
4114 (HAVE_SEQPACKET): New macro.
4115 (Fmake_network_process): Accept new :type `seqpacket'.
4116 (init_process): Add `seqpacket' feature when applicable.
4117 (syms_of_process): Initialize Qseqpacket.
4118
8096a0ff
YM
41192009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4120
4121 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4122 if entity is Qnil.
4123
3e0de07f
SM
41242009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4125
4126 * print.c (print_preprocess): Preprocess the key_and_value table of
4127 hashtables, even tho they're "hidden" (bug#5082).
4128
abeafb2a
JD
41292009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4130
4131 * frame.c (frame_make_pointer_invisible)
4132 (frame_make_pointer_visible): Declare f before statements.
4133
4bf47195
EZ
41342009-11-28 Eli Zaretskii <eliz@gnu.org>
4135
4136 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4137 omitted dependencies on lisp.h.
4138
c525b3f2
JD
41392009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4140
ece2d4ed
JD
4141 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4142 is NULL.
4143
4144 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4145
4146 * frame.c (frame_make_pointer_invisible)
3e0de07f 4147 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4148 frame.
4149
c525b3f2
JD
4150 * search.c (simple_search): Remove warning by making *p const.
4151
2f00e299
DN
41522009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4153
4154 * xdisp.c (power_letter): Remove duplicate const.
4155
084b049b
JD
41562009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4157
a1fadc6f
JD
4158 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4159
5ce6e4f4 4160 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4161 defaults (bug #5025).
4162
28259cac
SM
41632009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4164
4165 * insdel.c (adjust_markers_for_delete): Move it in the
4166 right direction! (bug#4803)
4167
e8e14166
YM
41682009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4169
4170 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4171
4172 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4173
86677b58
GM
41742009-11-24 Glenn Morris <rgm@gnu.org>
4175
4176 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4177
581e51e8
JD
41782009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4179
cfc86c7a
JD
4180 * Makefile.in: Must create deps for ecrt0.o in its rule.
4181
581e51e8
JD
4182 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4183 because that is what Gtk+ font dialog understands.
4184
4185 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4186 of Fcopy_sequence.
4187 (font_open_by_name): Put name given into QCname for font-object returned.
4188
4189 * frame.c (x_set_font): Save original font name as frame parameter
4190 font-parameter.
4191
4192 * xsettings.c (set_default_xft_settings): New function.
4193 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4194 is found.
4195
8b264ecb
AS
41962009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4197
4198 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4199 searching backwards through multibyte buffer.
4200
872870b2
JD
42012009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4202
4203 * xterm.c: #include xgselect.h.
4204 (x_initialize): Call xgselect_initialize.
4205
4206 * xsettings.c (something_changedCB): C++ comments => C comments.
4207 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4208 does that now.
4209
4210 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4211 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4212 (scroll_bar_button_cb): Remove.
5ce6e4f4 4213 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4214 event.
4215 (xg_create_scroll_bar): Don't bind button-press-event and
4216 button-release-event.
4217
4218 * process.c: Include xgselect.h if defined (USE_GTK) ||
4219 defined (HAVE_GCONF).
4220 (wait_reading_process_output): Call xg_select for the same condition.
4221
4222 * xgselect.c (xg_select): New function to better integrate with
4223 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4224
4225 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4226
4227 * Makefile.in (XOBJ): Add xgselect.o.
4228
62a6e103
AS
42292009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4230
0b5397c2
SM
4231 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4232 Remove ignored second argument. All callers changed.
62a6e103
AS
4233 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4234 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4235 * xdisp.c (string_char_and_length): Likewise.
4236
b0ca0f33
DN
42372009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4238
4239 * xterm.c (x_new_font):
4240 * print.c (print_object):
4241 * cmds.c (Fself_insert_command): Move declarations before statements.
4242
dd5a6279
CY
42432009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4244
4245 * s/cygwin.h: Remove unneeded linker flags.
4246
4a8e097d
JD
42472009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4248
0d1d0d26
JD
4249 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4250
4251 * xsettings.h: Declare xsettings_get_system_font.
4252
4253 * xsettings.c (xsettings_get_system_font): New function.
4254 (init_gconf): No use initiating gconf unless we have Xft also.
4255 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4256 HAVE_GCONF.
4257
4a8e097d
JD
4258 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4259 add a blank entry so it doesn't collapse into nothing.
4260
8ab1650e
SM
42612009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4262
4263 * lread.c (Funintern): Comment out last change.
4264
82c602f0
RS
42652009-11-19 Richard Stallman <rms@gnu.org>
4266
4267 * lread.c (Funintern): Error if symbol is t or nil.
4268
87e32266
SM
42692009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4270
4271 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4272 representation of Lisp integers.
4273 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4274
1b9ac145
AS
42752009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4276
4277 * lisp.h: Remove declaration of Ffont_get_system_font.
4278 * xfns.c: Move include of "xsettings.h".
4279 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4280
dfb3c4c6
JD
42812009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4282
87e32266
SM
4283 * xsettings.c (something_changedCB, Ffont_get_system_font):
4284 Check use_system_font.
dfb3c4c6
JD
4285 (syms_of_xsettings): DEFVAR font-use-system-font.
4286
9370c1d8
AS
42872009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4288
25fe851a
AS
4289 * xfns.c (x_default_font_parameter): Remove dead assignment.
4290
9370c1d8
AS
4291 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4292
637fa988
JD
42932009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4294
87e32266 4295 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4296 not have FC_LCD_*. #define them if not there.
a6eb20d8 4297
87e32266 4298 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4299
637fa988
JD
4300 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4301
4302 * xterm.c (handle_one_xevent): Call xft_settings_event for
4303 ClientMessage, PropertyNotify and DestroyNotify.
4304 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4305 Call xsettings_initialize.
4306
4307 * xftfont.c (xftfont_fix_match): New function.
4308 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4309 Call xftfont_fix_match after XftFontMatch.
4310
4311 * xfont.c (xfont_driver): Initialize all members.
4312
87e32266
SM
4313 * xfns.c (x_default_font_parameter):
4314 Try font from Ffont_get_system_font.
637fa988
JD
4315 Do not get font from x_default_parameter if we got one from
4316 Ffont_get_system_font.
87e32266 4317 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4318
4319 * w32font.c (w32font_driver): Initialize all members.
4320
4321 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4322
4323 * lisp.h: Declare syms_of_xsettings.
4324
87e32266
SM
4325 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4326 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4327
4328 * ftfont.c (ftfont_filter_properties): New function.
4329
4330 * frame.c (x_set_font): Remove unused variable lval.
4331
87e32266 4332 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4333
4334 * font.c (font_put_extra): Don't return if val is nil, it means
4335 boolean option is off.
4336 (font_parse_fcname): Collect all extra properties in extra_props
4337 and call filter_properties for all drivers with extra_props and
4338 font as parameter.
87e32266
SM
4339 (font_open_entity): Do not use cache, it does not pick up new
4340 fontconfig settings like hinting.
637fa988
JD
4341 (font_load_for_lface): If spec had a name in it, store it in entity.
4342
a73f9c9d 4343 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4344
4345 * config.in: HAVE_GCONF is new.
4346
4347 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4348 xsettings.o is new.
4349
5a942932
KH
43502009-11-17 Kenichi Handa <handa@m17n.org>
4351
4352 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4353 back to the default font in case that no suitable font is found.
4354
b7c7a4d1
SM
43552009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4356
4357 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4358 Suggested by Chad Brown <yandros@mit.edu>.
4359 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4360
072f1e39
JD
43612009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4362
4363 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4364
5d1e70a2
AS
43652009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4366
87e32266 4367 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4368
a53cfbe5
JD
43692009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4370
473a99b7
JD
4371 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4372 has a parent.
4373
a53cfbe5 4374 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4375 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4376
4377 * config.in: Generated (AUTO_DEPEND).
4378
f04bb9b2
MA
43792009-11-13 Michael Albinus <michael.albinus@gmx.de>
4380
b7c7a4d1 4381 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4382 Vdbus_registered_functions_table, because it contains also
4383 properties. Fix docstring.
b7c7a4d1 4384 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4385
8f11f7ec
SM
43862009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4387
4388 * alloc.c (mark_object): Don't reprocess marked strings.
4389 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4390 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4391
8a605fe8
KH
43922009-11-13 Kenichi Handa <handa@m17n.org>
4393
8f11f7ec 4394 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4395 semantics of Vword_combining_categories.
4396 (Vword_combining_categories): Describe the slight change of the
4397 semantics.
4398
241c4680
EZ
43992009-11-13 Eli Zaretskii <eliz@gnu.org>
4400
4401 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4402
4403 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4404
5d58e44c
SM
44052009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4406
4407 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4408
5e13f9d3
JB
44092009-11-12 Juanma Barranquero <lekktu@gmail.com>
4410
4411 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4412
cf54c754
DR
44132009-11-11 David Reitter <david.reitter@gmail.com>
4414
4415 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4416 variables to fix 2009-11-09 change.
4417
a4ada374
DN
44182009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4419
91433552
DN
4420 * process.c (ifflag_def): Make flag_sym constant.
4421 (Fnetwork_interface_info): Use a constant pointer.
4422 (ifflag_table):
4423 * xfns.c (cursor_bits):
4424 * xdisp.c (power_letter):
4425 * termcap.c (speeds, esctab):
4426 * sysdep.c (baud_convert):
4427 * keyboard.c (lispy_accent_codes, modifier_names):
4428 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4429 (jpeg_format, tiff_format, gif_format, svg_format)
4430 (interlace_start, interlace_increment, gs_format):
4431 * gtkutil.c (separator_names):
4432 * fringe.c (swap_nibble):
4433 * fns.c (base64_value_to_char, base64_char_to_value):
4434 * fileio.c (make_temp_name_tbl):
4435 * coding.c (suffixes): Make constant.
4436
f4265f6c
DN
4437 * frame.c (make_initial_frame):
4438 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4439 build_string.
4440 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4441
04420943
DN
4442 * s/freebsd.h:
4443 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4444
0a5d24ae
DN
4445 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4446 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4447
a4ada374
DN
4448 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4449 * xterm.c (syms_of_xterm):
4450 * xfaces.c (syms_of_xfaces):
4451 * xdisp.c (syms_of_xdisp):
4452 * lread.c (syms_of_lread):
4453 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4454 build_string.
91433552 4455
a4ada374
DN
4456 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4457
af98fc7f
SM
44582009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4459
8ab1650e 4460 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4461
e90292a9
JD
44622009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4463
4464 * keyboard.h: Declare timer_check.
4465
4466 * keyboard.c (timer_check_2): New function that does what the old
4467 timer_check did.
4468 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4469 returned, i.e. don't return -1 with timers pending.
4470
4471 * process.c: Remove extern declaration of timer_check.
4472
4473 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4474 even if timer_check returned -1.
4475
af98fc7f
SM
4476 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4477 xg_dialog_data.
e90292a9
JD
4478 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4479 the event loop.
4480 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4481 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4482 Destroy the dialog after xg_dialog_run.
4483
045b83c0
SM
44842009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4485
4486 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4487
1fb99a3a
JD
44882009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4489
4490 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4491
04e452cb
JB
44922009-11-09 Juanma Barranquero <lekktu@gmail.com>
4493
4494 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4495
ef7417fd
SM
44962009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4497
4498 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4499 w32menu.c, and nsmenu.m.
4500 Simplify the obsolete case where position is nil.
4501 (cleanup_popup_menu): New function, moved from nsmenu.m.
4502 (struct skp): Remove slot `notreal'.
4503 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4504 adjust callers.
4505 (single_menu_item): Adjust call to parse_menu_item.
4506 (syms_of_menu): Defsubr x-popup-menu.
4507 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4508 (keymap_panes): Don't export any more.
4509 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4510 (xmenu_show): Declare.
4511 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4512 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4513 * keyboard.h (parse_menu_item): Update declaration.
4514 * xmenu.c (Fx_popup_menu): Remove.
4515 (syms_of_xmenu): Don't defsubr x-popup-menu.
4516 * w32menu.c (Fx_popup_menu): Remove.
4517 (syms_of_w32menu): Don't defsubr x-popup-menu.
4518 * nsmenu.m (cleanup_popup_menu): Remove.
4519 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4520 moved to menu.c's Fx_popup_menu.
4521 (Fx_popup_menu): Remove.
4522 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4523 menu_items (it's done in menu.c already).
4524
424d6179
SM
45252009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4526
4527 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4528 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4529
c0df13a6 45302009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4531
4532 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4533 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4534 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4535 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4536
2de9f71c
SM
45372009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4538
4539 Let integers use up 2 tags to give them one extra bit and thus double
4540 their range.
4541 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4542 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4543 New macros.
4544 (enum Lisp_Type): Use them. Give explicit values.
4545 (Lisp_Type_Limit): Remove.
4546 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4547 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4548 Pay attention to USE_2_TAGS_FOR_INTS.
4549 (INTEGERP): Use LISP_INT_TAG_P.
4550 * fns.c (internal_equal): Simplify the default case.
4551 (sxhash): Use case_Lisp_Int.
4552 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4553 any more.
4554 (Ftype_of): Use case_Lisp_Int.
4555 (store_symval_forwarding): Take into account the fact that Ints can
4556 now have more than one tag.
4557 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4558 buffer_slot_type_mismatch):
4559 * xfaces.c (face_attr_equal_p):
4560 * print.c (print_object):
4561 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4562 Use case_Lisp_Int.
4563
323637a2
EZ
45642009-11-06 Eli Zaretskii <eliz@gnu.org>
4565
7ac65b38
EZ
4566 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4567
323637a2
EZ
4568 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4569 warning.
4570
e511451f
JD
45712009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4572
4573 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4574
4575 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4576
4577 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4578 ButtonPressRelease and MotionNotify (bug#4870).
4579
5e2327cf
DN
45802009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4581
5adc433e
DN
4582 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4583
d67b4f80
DN
4584 * xterm.c (syms_of_xterm):
4585 * xselect.c (syms_of_xselect):
4586 * xmenu.c (syms_of_xmenu):
4587 * xfns.c (syms_of_xfns):
4588 * xfaces.c (syms_of_xfaces):
4589 * xdisp.c (syms_of_xdisp):
4590 * window.c (syms_of_window):
4591 * w32fns.c (syms_of_w32fns):
4592 * undo.c (syms_of_undo):
4593 * textprop.c (syms_of_textprop):
4594 * terminal.c (syms_of_terminal):
4595 * syntax.c (syms_of_syntax):
4596 * sound.c (syms_of_sound):
4597 * search.c (syms_of_search):
4598 * print.c (syms_of_print):
4599 * minibuf.c (syms_of_minibuf):
4600 * macros.c (syms_of_macros):
4601 * keymap.c (syms_of_keymap, initial_define_key)
4602 (initial_define_lispy_key):
4603 * keyboard.c (syms_of_keyboard):
4604 * insdel.c (syms_of_insdel):
4605 * image.c (syms_of_image):
4606 * fringe.c (syms_of_fringe):
4607 * frame.c (syms_of_frame):
4608 * fontset.c (syms_of_fontset):
4609 * fns.c (syms_of_fns):
4610 * fns.c (syms_of_fns):
4611 * fileio.c (syms_of_fileio):
4612 * fileio.c (syms_of_fileio):
4613 * eval.c (syms_of_eval):
4614 * doc.c (syms_of_doc):
4615 * dispnew.c (syms_of_display):
4616 * dired.c (syms_of_dired):
4617 * dbusbind.c (syms_of_dbusbind):
4618 * data.c (syms_of_data):
4619 * composite.c (syms_of_composite):
4620 * coding.c (syms_of_coding):
4621 * cmds.c (syms_of_cmds):
4622 * charset.c (define_charset_internal, syms_of_character):
4623 * ccl.c (syms_of_ccl):
4624 * category.c (syms_of_category, init_category_once):
4625 * casetab.c (syms_of_casetab):
4626 * casefiddle.c (syms_of_casefiddle):
4627 * callint.c (syms_of_callint):
4628 * bytecode.c (syms_of_bytecode):
4629 * buffer.c (keys_of_buffer, syms_of_buffer):
4630 * alloc.c (syms_of_alloc):
4631 * process.c (syms_of_process, init_process):
4632 * lread.c (syms_of_lread, init_obarray):
4633 * font.c (build_style_table):
4634 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4635 intern_c_string, calls to make_pure_string with
4636 make_pure_c_string. Use pure_cons instead of Fcons.
4637
5e2327cf
DN
4638 * process.c (socket_options): Make it const.
4639 (set_socket_option, init_process): Use a const pointer.
4640
4641 * lread.c (intern_c_string): New function.
4642 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4643 (defvar_int): Uset it. Make the name const char*.
4644
4645 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4646 (defvar_int): Update prototypes.
4647 (DEFUN, EXFUN): Support for prototypes is now required.
4648 (intern_c_string): New prototype.
4649 (struct Lisp_Subr): Make symbol_name constant.
4650
4651 * font.c (struct table_entry): Remove unused member. Make NAMES
4652 constant.
4653 (weight_table, slant_table, width_table): Make constant.
4654
4655 * emacs.c (struct standard_args): Make name and longname constant.
4656
4657 * character.h (DEFSYM): Use intern_c_string.
4658
a56eaaef
DN
46592009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4660
4661 * alloc.c (make_pure_c_string): New function.
4662
4663 * eval.c (Fautoload): Purecopy all arguments.
4664
f6a07420
KH
46652009-11-05 Kenichi Handa <handa@m17n.org>
4666
4667 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4668 the buffer in case of replace.
4669
5d28d4b1
DN
46702009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4671
4672 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4673
b349d111
SM
46742009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4675
d528b1ce
SM
4676 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4677 when applicable (bug#4851).
4678
b349d111
SM
4679 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4680 (P_): Support for prototypes is now required.
4681
c38eb027
CY
46822009-10-31 Chong Yidong <cyd@stupidchicken.com>
4683
4684 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4685 (Bug#4827).
4686
0405f8d9
EZ
46872009-10-30 Eli Zaretskii <eliz@gnu.org>
4688
d528b1ce 4689 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4690
ca0a881a
DN
46912009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4692
4693 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4694
d528b1ce
SM
4695 * lread.c (Fload): Purecopy the file name when building
4696 Vpreloaded_file_list.
ca0a881a 4697
47e0e0e4
JR
46982009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4699
4700 * w32fns.c (syms_of_w32fns): Change default value of
4701 w32-scroll-lock-modifier to nil. (Bug#2827)
4702
057bce6f
JB
47032009-10-26 Juanma Barranquero <lekktu@gmail.com>
4704
782a943e 4705 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4706
242bc74c
AS
47072009-10-26 Andreas Schwab <schwab@redhat.com>
4708
4709 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4710
522d013a
JB
47112009-10-26 Juanma Barranquero <lekktu@gmail.com>
4712
4713 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4714 For delta < 0, skip check that only makes sense when the mini-window
4715 is going to be enlarged. (Bug#4534)
4716
18060980
CY
47172009-10-25 Chong Yidong <cyd@stupidchicken.com>
4718
4719 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4720 string in menu maps (Bug#4471).
4721
fec8f0fe
CY
47222009-10-24 Chong Yidong <cyd@stupidchicken.com>
4723
4724 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4725 FRAME_NS_VIEW on terminal frames (Bug#4765).
4726
10d66ec0
AS
47272009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4728
1cae01f7
AS
4729 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4730 DBUS_TYPE_UINTnn separately to get proper sign extension.
4731
58a12889
AS
4732 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4733 can properly handle unsigned types.
d528b1ce 4734 (make_uid, make_gid): Remove.
58a12889 4735
987c9327
AS
4736 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4737 types again.
4738
522d013a 4739 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4740 (system_process_attributes): Likewise.
4741
905a9ed3
DN
47422009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4743
4744 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4745
4746 * eval.c (Fautoload): Purecopy the filename. Simplify.
4747
4748 * category.c (Fdefine_category): Purecopy docstring.
4749
a599b3e8
AS
47502009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4751
7b792fc9
AS
4752 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4753
a599b3e8
AS
4754 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4755
b35ac83e
CY
47562009-10-23 Chong Yidong <cyd@stupidchicken.com>
4757
4758 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4759 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4760 (Bug#4775).
4761
e8903e00
SM
47622009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4763
4764 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4765 (init_fileio_once):
4766 * lisp.h (init_fileio_once): Remove.
4767 * emacs.c (main): Don't call init_fileio_once.
4768
8f43cbf3
DN
47692009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4770
4771 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4772
26898943
AS
47732009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4774
4775 * doprnt.c (doprnt): Fix overflow check.
4776
5c646d5a
JD
47772009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4778
3132a7ea
JD
4779 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4780
5c646d5a
JD
4781 * xterm.h (x_wait_for_event): Declare it.
4782
4783 * xterm.c (pending_event_wait): New variable.
4784 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4785 see pending_event_wait.eventtype.
4786 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4787 (x_new_font): Call change_frame_size with new rows/columns before we
4788 try to resize the frame.
5c646d5a 4789 (x_wait_for_event): New function.
d528b1ce
SM
4790 (x_set_window_size_1): Don't change gravity unless change_gravity
4791 is set.
5c646d5a
JD
4792 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4793 don't change frame size, instead wait for the ConfigureNotify.
4794 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4795 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4796 (x_initialize): Initialize pending_event_wait.
4797
4798 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4799 size.
4800
4801 * widget.c (EmacsFrameSetValues): Add comment.
4802 (EmacsFrameSetCharSize): Just call x_set_window_size.
4803
4804 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4805 x_wait_for_event.
d528b1ce 4806 (flush_and_sync): Remove again.
5c646d5a
JD
4807 (xg_get_font_name): Suggest monospace if no previous font is known.
4808
e9c1637d
SM
48092009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4810
4811 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4812 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4813
5a72cccb
YM
48142009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4815
4816 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4817 processing pending events when event is filtered for input method.
ab04798f 4818 (Bug#3681)
5a72cccb 4819
2629aa37
JB
48202009-10-20 Juanma Barranquero <lekktu@gmail.com>
4821
4822 * fns.c: Add #endif accidentally removed in previous change.
4823
c3417a74
DN
48242009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4825
4826 * fns.c: Remove code for unsupported system: MAC_OS.
4827 * image.c: Likewise. Include setjmp.h.
4828
9685cef2
JD
48292009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4830
4831 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4832 pixel -1 (bug #4742).
4833
d7306fe6
DN
48342009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4835
019d2c4c
DN
4836 * process.c (create_pty): Remove conditionals for no longer
4837 supported systems: UNIPLUS and RTU.
4838
ee6bacd4
DN
4839 * xterm.c:
4840 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4841
d7306fe6
DN
4842 * alloc.c: Do not define struct catchtag.
4843 * eval.c: Move struct catchtag definition ...
4844 * lisp.h: ... here.
4845
4846 * image.c: Move png.h #include earlier to avoid warnings.
4847
4848 * xterm.c:
4849 * xsmfns.c:
4850 * xselect.c:
4851 * xrdb.c:
4852 * xmenu.c:
4853 * xftfont.c:
4854 * xfont.c:
4855 * xfns.c:
4856 * xfaces.c:
4857 * xdisp.c:
4858 * window.c:
4859 * widget.c:
4860 * w32xfns.c:
4861 * w32uniscribe.c:
4862 * w32term.c:
4863 * w32select.c:
4864 * w32reg.c:
4865 * w32proc.c:
4866 * w32menu.c:
4867 * w32inevt.c:
4868 * w32heap.c:
4869 * w32font.c:
4870 * w32fns.c:
4871 * w32console.c:
4872 * w32.c:
4873 * w16select.c:
4874 * vm-limit.c:
4875 * unexsol.c:
4876 * unexec.c:
4877 * unexcw.c:
4878 * unexaix.c:
4879 * undo.c:
4880 * tparam.c:
4881 * textprop.c:
4882 * terminfo.c:
4883 * terminal.c:
4884 * termcap.c:
4885 * term.c:
4886 * syntax.c:
4887 * sound.c:
4888 * sheap.c:
4889 * search.c:
4890 * scroll.c:
4891 * region-cache.c:
4892 * regex.c:
4893 * ralloc.c:
4894 * process.c:
4895 * print.c:
b024548b
DN
4896 * nsterm.m:
4897 * nsselect.m:
4898 * nsmenu.m:
4899 * nsimage.m:
4900 * nsfont.m:
4901 * nsfns.m:
d7306fe6
DN
4902 * msdos.c:
4903 * minibuf.c:
4904 * menu.c:
4905 * marker.c:
4906 * macros.c:
4907 * keymap.c:
4908 * keyboard.c:
4909 * intervals.c:
4910 * insdel.c:
4911 * indent.c:
4912 * gtkutil.c:
4913 * ftxfont.c:
4914 * ftfont.c:
4915 * fringe.c:
4916 * frame.c:
4917 * fontset.c:
4918 * font.c:
4919 * fns.c:
4920 * floatfns.c:
4921 * filelock.c:
4922 * fileio.c:
4923 * emacs.c:
4924 * editfns.c:
4925 * dosfns.c:
4926 * doprnt.c:
4927 * doc.c:
4928 * dispnew.c:
4929 * dired.c:
4930 * dbusbind.c:
4931 * data.c:
4932 * composite.c:
4933 * coding.c:
4934 * cmds.c:
4935 * cm.c:
4936 * chartab.c:
4937 * charset.c:
4938 * character.c:
4939 * ccl.c:
4940 * category.c:
4941 * casetab.c:
4942 * casefiddle.c:
4943 * callproc.c:
4944 * callint.c:
4945 * bytecode.c:
4946 * buffer.c:
4947 * atimer.c: Include setjmp.h. (Bug#4643)
4948
fd5f21e6
SM
49492009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4950
4c0354d7
SM
4951 Remove leftover table unibyte_to_multibyte_table.
4952 * character.c (unibyte_to_multibyte_table): Remove.
4953 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4954 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4955 * character.h (UNIBYTE_TO_CHAR): New macro.
4956 (MAKE_CHAR_MULTIBYTE): Use it.
4957 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4958 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4959 (message_dolog, set_message_1):
4960 * search.c (Freplace_match):
4961 * editfns.c (Fcompare_buffer_substrings):
4962 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4963 (concat):
4964 * insdel.c (copy_text, count_size_as_multibyte):
4965 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4966 * term.c (produce_glyphs):
4967 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4968 * regex.c (RE_CHAR_TO_MULTIBYTE):
4969 * cmds.c (internal_self_insert):
4970 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4971
fd5f21e6
SM
4972 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4973
4418646e
DN
49742009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4975
4976 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4977
35f5c1d2
JB
49782009-10-16 Juanma Barranquero <lekktu@gmail.com>
4979
4980 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4981
a0cd8f6b
AR
49822009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4983
4984 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4985 still needed under Tiger.
4986
4987 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4988
4989 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4990 __Apple__.
4991
4992 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4993
01a8d3fa
KH
49942009-10-15 Kenichi Handa <handa@m17n.org>
4995
4996 * print.c (print_object): Escape a symbol like "2E10" too.
4997
bf6c75c9 49982009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4999
5000 Cleanups and changes for 64-bit compile under Snow Leopard.
5001 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5002
5003 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5004
c5959062 5005 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5006 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5007 cast argument.
5008 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5009 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5010
5011 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5012
5013 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5014 where appropriate.
5015
5016 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5017 where appropriate.
6e4780c5
JB
5018 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5019 Use stringWithUTF8String.
bf6c75c9
AR
5020 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5021
6e4780c5
JB
5022 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5023 Add formal protocol mention to inheritance.
bf6c75c9
AR
5024 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5025
6e4780c5
JB
5026 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5027 Fix printf format.
bf6c75c9
AR
5028 (ns_query_color): Use CGFloat where appropriate.
5029 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5030 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5031 argument.
5032
3d87f118
AR
5033 * config.in (NS_HAVE_NSINTEGER): Drop.
5034
a95c8102
AR
5035 * dbusbind.c (dbus-method-return-internal)
5036 (dbus-method-error-internal): Use long format in printf, and cast
5037 argument.
5038
5039 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5040 in printf, and cast argument.
5041
6873acca 5042 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5043 cast argument.
5044
9ec6f100
GM
50452009-10-11 Glenn Morris <rgm@gnu.org>
5046
5047 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5048
5be883cd
JD
50492009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5050
5051 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5052 menu bar with a small width so it doesn't enlarge the frame.
5053
d7a39b51
JB
50542009-10-08 Juanma Barranquero <lekktu@gmail.com>
5055
5056 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5057
0c2b6f8e
GM
50582009-10-06 Glenn Morris <rgm@gnu.org>
5059
5060 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5061 SOME_MACHINE_LISP (this enters indirectly via DOC).
5062
e02131a2
EZ
50632009-10-05 Eli Zaretskii <eliz@gnu.org>
5064
5065 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5066
b4744254
EZ
50672009-10-04 Eli Zaretskii <eliz@gnu.org>
5068
5069 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5070 Doc fix.
5071
dbf64827
JB
50722009-10-03 Martin Rudalics <rudalics@gmx.at>
5073
5074 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5075
e9a0aef8
MA
50762009-10-02 Michael Albinus <michael.albinus@gmx.de>
5077
d528b1ce 5078 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5079 used anymore outside fileio.c.
5080
5081 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5082
64eb2b56
JB
50832009-10-01 Juanma Barranquero <lekktu@gmail.com>
5084
5085 * lisp.h (Qdelete_directory_internal):
5086 Declare, instead of Qdelete_directory.
5087
5088 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5089
9d28c33e
SM
50902009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5091
5092 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5093
9d8f3bd9
MA
50942009-10-01 Michael Albinus <michael.albinus@gmx.de>
5095
9d28c33e 5096 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5097 Fdelete_directory. It is not a command anymore. It has no file
5098 name handler.
5099
9694740b
SM
51002009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5101
5102 * xdisp.c (get_next_display_element): Use an enum in last change.
5103
748e162f
KH
51042009-09-28 Kenichi Handa <handa@m17n.org>
5105
9694740b 5106 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5107 unibyte_display_via_language_environment in handling
5108 Vnobreak_char_display.
5109
17efd58d
AR
51102009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5111
5112 * nsterm.h (ns_app_name): New extern variable.
5113
5114 * nsterm.m (ns_app_name): New variable.
5115 (ns_term_init): Set and use it.
5116 (ns_term_shutdown): Use it.
5117
5118 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5119 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5120
5121 * nsfns.m (ns_set_name_iconic, ns_set_name)
5122 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5123 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5124
9694740b
SM
5125 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5126 Remove double-casting in client_data comparison.
31c2d412 5127
3208cb35
YM
51282009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5129
5130 * keyboard.c (make_lispy_event): Remember last wheel direction.
5131 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5132
b7d552d6
GM
51332009-09-26 Glenn Morris <rgm@gnu.org>
5134
5135 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5136 internal.elc. Add term/pc-win.elc.
5137 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5138 term/x-win.elc.
5139 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5140 term/w32-win.elc.
5141 (NS_SUPPORT): New.
5142 (lisp): Add NS_SUPPORT.
5143 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5144
4ff670a8
DR
51452009-09-25 David Reitter <david.reitter@gmail.com>
5146
5147 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5148 on Mac OS X 10.6+ (bug#4513).
5149
feabfb6c
JB
51502009-09-24 Juanma Barranquero <lekktu@gmail.com>
5151
5152 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5153 some parts of Emacs code (like font selection) don't grok them.
5154 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5155
de59072a
AS
51562009-09-24 Andreas Schwab <schwab@redhat.com>
5157
5158 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5159
a489517b
JB
51602009-09-24 Juanma Barranquero <lekktu@gmail.com>
5161
5162 * dired.c (Fdirectory_files): Fix typo in docstring.
5163
0592970c
AR
51642009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5165
5166 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5167 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5168 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5169 under GNUstep.
5170 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5171
5172 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5173 glyph advancement.
5174
48e8a88b
AR
51752009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5176
5177 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5178 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5179
5180 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5181 deleted (bug #4492).
5182
e14f0a78
AR
5183 * nsfont.m (Vns_reg_to_script): New lisp variable.
5184 (syms_of_nsfont): Declare it.
5185 (ns_registry_to_script): New function.
5186 (ns_get_req_script): Call it.
5187 (ns_findfonts): Don't give up on non-unicode registry.
5188
5189 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5190
5b650faa
SM
51912009-09-20 Tom Tromey <tromey@redhat.com>
5192
5193 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5194 batch mode (bug#4228).
5195
a489517b 51962009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5197
5198 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5199 carefully. (Bug #4339)
0bae4e09 5200
fcfe06f3
CY
52012009-09-18 Chong Yidong <cyd@stupidchicken.com>
5202
d798ba87 5203 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5204
31642728
AR
52052009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5206
5207 * emacs.c (inhibit_x_resources): Update doc string for NS.
5208 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5209 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5210
5211 * nsterm.h (ns_no_defaults): Remove.
5212
5213 * nsterm.m (ns_no_defaults): Remove.
5214 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5215 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5216 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5217 don't update the NSWindow itself.
5218 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5219 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5220
5221 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5222 ns_use_qd_smoothing.
5223
5224 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5225 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5226 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5227 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5228
8686ac71
JB
52292009-09-17 Juanma Barranquero <lekktu@gmail.com>
5230
5231 * emacs.c (inhibit_x_resources): New variable.
5232 (main) [HAVE_NS]: Don't process --quick command line option.
5233 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5234
5235 * lisp.h (inhibit_x_resources): Declare it extern.
5236
5237 * w32reg.c (x_get_string_resource):
5238 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5239
e227ba05
EZ
52402009-09-17 Eli Zaretskii <eliz@gnu.org>
5241
362654a6
JB
5242 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5243 Add lisp/term/internal.elc.
e227ba05 5244
742d40e8
SM
52452009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5246
5247 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5248 (bug#4461).
5249
005bd5a2
DN
52502009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5251
5252 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5253
5254 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5255 (OBJECTS_MACHINE): Remove, unused.
5256
f9af9719
SM
52572009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5258
5259 * frame.c (x_get_resource_string): Remove unused.
5260
0307c7d2
JD
52612009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5262
5263 * xterm.c (x_new_font): Call change_frame_size before calling
5264 x_set_window_size, in case frame size won't change.
5265
5266 * frame.c (x_set_font): Remove dead code.
5267
428b13d6
SM
52682009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5269
5270 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5271
5766c380
SM
52722009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5273
5274 * lread.c (Fload): Don't output a message after loading an obsolete
5275 package any more (done in Lisp now).
5276
2fd0161b
CY
52772009-09-12 Chong Yidong <cyd@stupidchicken.com>
5278
5279 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5280
bc5e75b6
SM
52812009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5282
5283 * keymap.c (Fwhere_is_internal): Use nconc2.
5284
c31c985e
AM
52852009-09-11 Alan Mackenzie <acm@muc.de>
5286
5287 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5288 batch mode.
5289
78012bd2
AS
52902009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5291
5292 * xdisp.c (display_mode_element): Detect cycles.
5293
9d889332
SM
52942009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5295
5296 * keymap.c (where_is_internal): Don't erroneously return nil right after
5297 filling the cache.
5298 (where_is_internal_1): Fix up typo.
5299
7ab5d780
GM
53002009-09-11 Glenn Morris <rgm@gnu.org>
5301
5302 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5303 share a common doc-string.
5304
5238a749
SM
53052009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5306
66d77eda
SM
5307 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5308 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5309
5238a749
SM
5310 * keymap.c (QCadvertised_binding): New constant.
5311 (syms_of_keymap): Initialize it.
5312 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5313 if applicable.
5314
19f48442
SM
53152009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5316
50d4ba39
SM
5317 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5318 (parse_menu_item): Streamline since bindings are recomputed all the
5319 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5320 more and don't support lmenu's menu-alias any more either.
5321
a88a5372
SM
5322 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5323 (where_is_internal): Strip it down to only traverse the keymaps.
5324 Move the cache handling from Fwhere_is_internal to here.
5325 (Fwhere_is_internal): Move the handling of remapping and the choice of
5326 the best binding from where_is_internal to here.
5327 Unify the cached/noncached paths, so remapping is also handled
5328 correctly when the cache is used, and so the cache can be used to
5329 speed up remap-handling when applicable.
5330 Give preference to non-remapped bindings.
5331 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5332 non-remapped bindings.
5333 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5334 command remapping.
5335
19f48442
SM
5336 * xdisp.c (display_mode_element): Move list length limit from 50 to
5337 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5338
599498c3 53392009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5340
5341 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5342
f9b7b5ac
SM
53432009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5344
a53af587
JB
5345 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5346 (Bug#4334)
5347
f9b7b5ac
SM
5348 * keymap.c (where_is_internal): Filter out shadowed remappings.
5349 Assume that where_is_internal returns unshadowed bindings to simplify
5350 the code and get rid of the gotos. Use ASIZE.
5351
04f4b72d
JD
53522009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5353
4da146f2
JD
5354 * xterm.c (x_focus_changed): If we get a focusout and pointer
5355 is invisible, make it visible.
5356
04f4b72d
JD
5357 * xterm.h: Remove condition for declaration of
5358 x_*_window_to_frame.
5359
7cef7ce3
SM
53602009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5361
5362 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5363 initial terminal as well.
5364
a54fa5b7
JD
53652009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5366
5367 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5368 x_menubar_window_to_frame.
a54fa5b7 5369
50426a04 5370 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5371 (XTmouse_position): Do not return valid positions
5372 for clicks in the menubar and the toolbar for Gtk+.
5373
5374 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5375 if the widget for the event has the same top level as a frame,
5376 return the frame.
5377 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5378 internal windows, bug #4122.
5379 (x_non_menubar_window_to_frame): Remove.
5380
5a021dd0
GM
53812009-09-02 Glenn Morris <rgm@gnu.org>
5382
5383 * buffer.c (default-major-mode): Move most of the doc from here...
5384 (major-mode): ... to here.
5385
548fe2f3
NR
53862009-08-30 Nick Roberts <nickrob@snap.net.nz>
5387
5388 * process.c (wait_reading_process_output): Keep the descriptor
5389 when pty is used by a non-child process, e.g., in I/O buffer of
5390 GDB this allows inferior to be restarted.
5391
e0840eef
EZ
53922009-08-29 Eli Zaretskii <eliz@gnu.org>
5393
5394 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5395 both branches into one.
5396
82e98df4
SM
53972009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5398
5399 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5400 (main): Use enable-multibyte-characters rather than
5401 default-enable-multibyte-characters. Output a warning message when
5402 running a unibyte session.
5403
890617cb
YM
54042009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5405
5406 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5407 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5408 (copy_data_segment): Also copy __program_vars section.
5409 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5410 (dump_it) [LC_DYLD_INFO]: Use it.
5411
5412 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5413
e7adeadc
EZ
54142009-08-28 Eli Zaretskii <eliz@gnu.org>
5415
5416 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5417 $(SRC)/buildobj.h.
5418 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5419 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5420 $(SRC)/buildobj.h.
5421 (clean): Add buildobj.h.
5422
3ed8bbdc
TZ
54232009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5424
5425 * print.c (print_object): Set escapeflag to 1 when printing
5426 hashtable keys and values.
5427
155a6764
SM
54282009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5429
5430 * lread.c (read_integer): Use doubles (and potentially return a float
5431 number) as we do in string-to-number.
5432 (read1): Use strtol to read integers, signal errors on strtol's
5433 overflow and use floats if strtol's output is too large for
5434 Elisp integers.
5435
877610de
EZ
54362009-08-27 Eli Zaretskii <eliz@gnu.org>
5437
5438 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5439 (make-buildobj-SH): Fix last change.
5440 (SRC): Move to before where it's first used.
5441
ef73e7be
KH
54422009-08-27 Kenichi Handa <handa@m17n.org>
5443
550c8289
KH
5444 * process.c (send_process): Use encode_coding_object instead of
5445 encode_coding_string to perform eol-conversion even if the string
5446 is unibyte.
5447
60afa08d
KH
5448 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5449 character.
5450
ef73e7be 5451 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5452 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5453
7b3a82d7
DN
54542009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5455
5654bf63
DN
5456 * callproc.c (Fcall_process): Remove always true #if.
5457
7b3a82d7
DN
5458 * lisp.h: Replace #if 0 code for checking with text pointing to
5459 the --enable-checking configure flag.
5460
5461 * emacs.c (main): Mention the --enable-profiling configure flag
5462 instead of using CFLAGS.
5463
878bde49
KR
54642009-08-26 Ken Raeburn <raeburn@raeburn.org>
5465
5466 * Makefile.in (buildobj.h): New target.
5467 (doc.o): Depend on it.
5468 (temacs${EXEEXT}): Don't generate buildobj.lst.
5469 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5470 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5471 ($(BLD)/doc.$(O)): Depend on it.
5472 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5473 provided by Eli Zaretskii.)
5474 ($(TEMACS)): Don't generate buildobj.lst.
5475 * doc.c: Include buildobj.h.
5476 (buildobj): New static variable.
5477 (Fsnarf_documentation): Use it, instead of opening and reading
5478 buildobj.lst.
5479
1574224c
MA
54802009-08-25 Michael Albinus <michael.albinus@gmx.de>
5481
5482 * dbusbind.c (Fdbus_call_method)
5483 (Fdbus_call_method_asynchronously): Use English numeric format for
5484 timeout values in doc string.
5485
d9da2f45
KH
54862009-08-25 Kenichi Handa <handa@m17n.org>
5487
ef73e7be
KH
5488 * alloc.c (mark_char_table): New function.
5489 (mark_object): Use mark_char_table for a char-table.
5490
d9da2f45
KH
5491 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5492 (CHAR_TABLE_REF): Use it.
5493
c8edcc01
KR
54942009-08-23 Ken Raeburn <raeburn@raeburn.org>
5495
5496 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5497 before invoking the newly build emacs to check for load-path
5498 shadowing.
5499
7763401b
GM
55002009-08-22 Glenn Morris <rgm@gnu.org>
5501
5502 * Makefile.in (bootstrap_exe): New variable.
5503 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5504 Use ${bootstrap_exe}.
5505
729eadda
EZ
55062009-08-22 Eli Zaretskii <eliz@gnu.org>
5507
5508 * coding.h (encode_coding_string): Don't encode unibyte strings.
5509 (Bug#4047)
5510
eb4c6ace
MA
55112009-08-22 Michael Albinus <michael.albinus@gmx.de>
5512
5513 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5514
5515 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5516 intended as hotfix only.
5517 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5518
36e34d1b
AR
55192009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5520
5521 * nsterm.m (ns_get_color): Update documentation properly for last
5522 change, and clean up loose ends in the code left by it. Fix
5523 longstanding bug with 16-bit hex parsing, and add support for
5524 yet another X11 format (rgb:r/g/b) for compatibility.
5525 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5526 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5527
f983eb8a
SM
55282009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5529
5530 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5531
3f56d3c6
MA
55322009-08-20 Michael Albinus <michael.albinus@gmx.de>
5533
5534 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5535 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5536 (xd_initialize, xd_pending_messages): Check, whether
5537 $DBUS_SESSION_BUS_ADDRESS is set.
5538
fb641d68
YM
55392009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5540
5541 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5542
5543 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5544
cf59a374
GM
55452009-08-20 Glenn Morris <rgm@gnu.org>
5546
5547 * emacs.c (system-type): Doc fix.
5548
1373f3be
SM
55492009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5550
5551 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5552 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5553
058ed861
MA
55542009-08-18 Michael Albinus <michael.albinus@gmx.de>
5555
1373f3be
SM
5556 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5557 New functions.
058ed861
MA
5558 (xd_initialize): Revert change from 2009-08-16.
5559
563a866e 55602009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5561
5562 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5563 font-group vector, return nil.
5fc05db0 5564
e42bdf01
CY
55652009-08-17 Chong Yidong <cyd@stupidchicken.com>
5566
5567 * process.c (status_notify): Don't perform redisplay.
5568 (Fdelete_process, list_processes_1, process_send_signal):
5569 Expliticly perform redisplay.
5570 (wait_reading_process_output): Always check process status, but
5571 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5572
4230ab74
KR
55732009-08-17 Ken Raeburn <raeburn@raeburn.org>
5574
1373f3be 5575 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5576 (XFLOAT_INIT): New macro for storing a float value.
5577 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5578 * fns.c (sxhash): Copy out the value of a float in order to
5579 examine its bytes.
5580 * dbusbind.c (xd_append_arg): Likewise.
5581
4230ab74
KR
5582 * emacs.c (main): Don't call syms_of_data twice.
5583
a0645cdd
MA
55842009-08-16 Michael Albinus <michael.albinus@gmx.de>
5585
5586 * dbusbind.c (xd_initialize): Add connection file descriptor to
5587 input_wait_mask, in order to let select() detect, whether a new
5588 message has been arrived.
ca4f31ea 5589 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5590
485db0ba
MA
55912009-08-15 Michael Albinus <michael.albinus@gmx.de>
5592
1373f3be
SM
5593 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5594 New functions.
485db0ba
MA
5595
5596 * lisp.h (xd_pending_messages): Declare.
5597
5598 * keyboard.c (readable_events): Call xd_pending_messages.
5599
b5b98ff4
CY
56002009-08-15 Chong Yidong <cyd@stupidchicken.com>
5601
1373f3be 5602 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5603
f8354c6e
CY
5604 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5605
b5b98ff4
CY
5606 * buffer.c (set_buffer_internal_1)
5607 (swap_out_buffer_local_variables): Check for unbound local
5608 variables (Bug#4138).
5609
8b9fc636
EZ
56102009-08-14 Eli Zaretskii <eliz@gnu.org>
5611
5612 * process.c (create_pty): Fix last change.
5613
ce959360
CY
56142009-08-13 Chong Yidong <cyd@stupidchicken.com>
5615
5616 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5617 (xbm_load_image): Caller changed.
64b807c9 5618 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5619
c7baf7e9
NR
56202009-08-13 Nick Roberts <nickrob@snap.net.nz>
5621
5622 * process.c (create_pty): New function.
5623 (Fstart_process): Use it to allow Emacs to just associate a pty
5624 with the buffer. See associated change in gdb-mi.el.
5625 (list_processes_1): Deal with no program name.
5626 (start_process_unwind): Use pid == -2 to mean no process.
5627
1ac9108a
SM
56282009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5629
5630 * cmds.c (nonundocount): New global variable.
5631 (keys_of_cmds): Initialize it.
5632 (Fself_insert_command): Use it to combine upto 20 sequential chars
5633 into a single undo entry, just like the Qself_insert_command code in
5634 keyboard.c does.
5635 Call frame_make_pointer_invisible, also like the Qself_insert_command
5636 code in keyboard.c does.
5637 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5638 than its own local replacement for it.
5639
e267324c
KR
56402009-08-10 Ken Raeburn <raeburn@raeburn.org>
5641
1ac9108a 5642 * fns.c (concat): Don't re-set string length to its current value.
77437343 5643
1ac9108a
SM
5644 * coding.h (decode_coding_string, encode_coding_string):
5645 Use SBYTES macro.
f0bed503 5646
1ac9108a 5647 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5648 (doprnt): Merge with doprnt1, discarding lispstrings code.
5649 * lisp.h (doprnt_lisp): Don't declare.
5650
416e006d
JL
56512009-08-07 Juri Linkov <juri@jurta.org>
5652
5653 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5654
6f7d5780
DN
56552009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5656
5657 * print.c (syms_of_print): Undo previous change.
5658
f19a0f5b
TZ
56592009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5660
5661 * lread.c (read1, syms_of_lread): Read hashtables back from the
5662 readable format.
5663
5664 * print.c (print_preprocess, print_object): Print hashtables fully
5665 and readably.
5666 (syms_of_print): Provide 'hashtable-print-readable.
5667
b9173dc2
AR
56682009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5669
5670 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5671 no family set.
5672 (nsfont_open): Handle case when entity has no family.
5673
1586503c
AR
56742009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5675
5676 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5677 element, not a list, for match case.
5678
087048cd
KH
56792009-07-28 Kenichi Handa <handa@m17n.org>
5680
5681 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5682 rigidly.
5683
5684 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5685 font_parse_xlfd. Check font properties more rigidly.
5686
780c2506
DN
56872009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5688
31fd7c5c
JB
5689 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5690 bsd-common.h.
780c2506 5691
a8c0cc18
KH
56922009-07-27 Kenichi Handa <handa@m17n.org>
5693
5694 * xfaces.c (face_with_height): Call font_clear_prop.
5695
4fbe2306
CY
56962009-07-26 Chong Yidong <cyd@stupidchicken.com>
5697
111d9af3
CY
5698 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5699
5700 * xterm.c (x_term_init): Use Qx.
5701
4fbe2306
CY
5702 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5703
1ac9108a 5704 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5705 (ns_get_color): Revert 2009-07-16 change.
5706
beb0b7f9
EZ
57072009-07-25 Eli Zaretskii <eliz@gnu.org>
5708
5709 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5710 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5711
2baf5e76
KR
57122009-07-25 Ken Raeburn <raeburn@raeburn.org>
5713
1ac9108a
SM
5714 * coding.h (decode_coding_string, encode_coding_string):
5715 Use SCHARS macro.
8890e5f5 5716
2baf5e76 5717 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5718 (load_depth): Delete.
2baf5e76
KR
5719 (Qload_in_progress): New variable.
5720 (load_unwind): Don't reference load_depth or load_in_progress.
5721 (Fload): Likewise; specbind Qload_in_progress instead.
5722 (init_lread): Don't initialize load_depth.
5723 (syms_of_lread): Initialize and protect Qload_in_progress.
5724
1395c6f5
AR
57252009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5726
5727 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5728
4e2f36cf
AR
57292009-07-23 Yavor Doganov <yavor@gnu.org>
5730
5731 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5732
5dd9a6f7
AR
57332009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5734
5735 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5736 Bugs 3792, 3720, 2402.
5737 (ns_lookup_indexed_color): Check for bad index.
5738 (ns_index_color): Init unused slot to 0.
5739 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5740 Bug 3714, possibly 3082.
5dd9a6f7 5741
c902b920
JR
57422009-07-22 Jason Rumney <jasonr@gnu.org>
5743
1ac9108a
SM
5744 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5745 Position IME window at cursor (Bug#2570).
c902b920
JR
5746 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5747 (globals_of_w32fns): Dynamically load functions required above.
5748
5749 * w32term.c (w32_draw_window_cursor): Send message to reposition
5750 any IME window.
5751
090101cf
CY
57522009-07-21 Chong Yidong <cyd@stupidchicken.com>
5753
5754 * fileio.c: Revert 2009-07-16 changes.
5755 (Vauto_save_include_big_deletions): New variable.
5756 (Fdo_auto_save): Disable auto-save only if
5757 auto-save-include-big-deletions is nil.
5758
e6583e3d
CY
57592009-07-21 Chong Yidong <cyd@stupidchicken.com>
5760
5761 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5762 the overflowed pixels into account (Bug#3879).
5763
ece435a5
KR
57642009-07-21 Ken Raeburn <raeburn@raeburn.org>
5765
5766 * lread.c (load_depth): New variable.
5767 (Fload, load_unwind, init_lread): Set it to the load recursion
5768 depth; set load_in_progress as a simple boolean based on the
5769 current load_depth. (Bug#3892)
5770
40b2d973
AR
57712009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5772
5773 * nsfont.m (ns_has_attribute): Remove.
5774 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5775
10be7e0d
JL
57762009-07-18 Juri Linkov <juri@jurta.org>
5777
5778 * process.c (Fset_process_query_on_exit_flag): Mention killing
5779 a buffer in docstring.
5780
fa055055
KH
57812009-07-17 Kenichi Handa <handa@m17n.org>
5782
5783 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5784
042f7b69
YM
57852009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5786
5787 * nsfns.m (Fns_set_alpha): Remove function.
5788 (syms_of_nsfns): Don't defsubr it.
5789
5790 * nsterm.m (ns_get_color): Remove incompatible color formats.
5791 (ns_color_to_lisp): Generate #rrggbb color format string.
5792
4be941e3
RS
57932009-07-16 Richard Stallman <rms@gnu.org>
5794
5795 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5796 (Fset_buffer_auto_saved): Handle save_length = -2.
5797
4e6b227d
CY
57982009-07-16 Chong Yidong <cyd@stupidchicken.com>
5799
5800 * xterm.c (Qx_gtk_map_stock): New var.
5801
5802 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5803 of calling intern each time.
5804
a1856973
YM
58052009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5806
5807 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5808 does tiling.
5809
5810 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5811
497e54d8
KH
58122009-07-14 Kenichi Handa <handa@m17n.org>
5813
72d36834
KH
5814 * font.c (font_vconcat_entity_vectors): New function.
5815 (struct font_sort_data): New member font_driver_preference.
5816 (font_compare): Check font_driver_preference.
5817 (font_sort_entities): The format of the first argument changed.
5818 (font_delete_unmatched): Likewise.
5819 (font_list_entities): The return type changed.
5820 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5821 (font_find_for_lface): Adjuste for the above changes.
5822 Don't suppress the checking of C even if the repertory supports it.
5823 (Flist_fonts): Adjust for the above changes.
72d36834 5824
1ac9108a
SM
5825 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5826 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5827 Reject a font who has adstyle property that is different from a
5828 langname derived from registry property.
1ac9108a 5829 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5830
b6046155
EZ
58312009-07-13 Eli Zaretskii <eliz@gnu.org>
5832
5833 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5834 local copy of dirfilename.
5835
fb6b6049
KH
58362009-07-13 Kenichi Handa <handa@m17n.org>
5837
e2402a5e
KH
5838 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5839 against max_char.
5840
fb6b6049
KH
5841 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5842 calling XSYMBOL (sym).
5843
65156807
EZ
58442009-07-11 Eli Zaretskii <eliz@gnu.org>
5845
1ac9108a
SM
5846 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5847 New function.
5848 (directory_files_internal) [WINDOWSNT]:
5849 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5850 the filesystem of the directory is fast or slow.
5851
5852 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5853 file name.
5854 (is_slow_fs): New function.
5855 (stat): Use it to determine whether to issue more system calls to
5856 get accurate file attributes, when w32-get-true-file-attributes is
5857 `local'.
5858
e0ab5fcf
JD
58592009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5860
5861 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5862 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5863 parameter font-parameter as default to the font dialog.
5864
784ceded
KH
58652009-07-10 Kenichi Handa <handa@m17n.org>
5866
5867 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5868
fb8edc0b
EZ
58692009-07-09 Eli Zaretskii <eliz@gnu.org>
5870
1ac9108a 5871 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5872
fb8edc0b
EZ
5873 * w32.c (stat): Treat UNC file names as residing on remote
5874 drives. (Bug#3542)
5875
635c75b1
KH
58762009-07-09 Kenichi Handa <handa@m17n.org>
5877
5878 * fontset.c (fontset_find_font): Fix previous change.
5879
c1d5ce94
MA
58802009-07-08 Michael Albinus <michael.albinus@gmx.de>
5881
5882 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5883 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5884 error flag.
5885
edb61b39
KH
58862009-07-08 Kenichi Handa <handa@m17n.org>
5887
374bf7e4
KH
5888 * fontset.c (fontset_find_font): Fix the logic of handling
5889 charset_matched.
5890 (font_for_char): Delete unused var.
5891 (generate_ascii_font_name): Delete it.
5892
edb61b39
KH
5893 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5894
5895 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5896 (encode_coding_sjis): Fix the code range check.
5897
0f3f018c
CY
58982009-07-07 Chong Yidong <cyd@stupidchicken.com>
5899
5900 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5901 (Fexpand_file_name): Copy string data properly (Bug#3772).
5902
fcaf6f3a
JD
59032009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5904
5905 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5906 first MapNotify.
5907
6809ca75
KH
59082009-07-07 Kenichi Handa <handa@m17n.org>
5909
5910 * character.h (unibyte_has_multibyte_table): Delete extern.
5911 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5912
5913 * charset.c (Fset_charset_priority): Update charset_unibyte.
5914 (syms_of_charset): Initialize charset_unibyte.
5915
5916 * character.c (unibyte_has_multibyte_table): Delete it.
5917 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5918 charset_unibyte.
5919 (multibyte_char_to_unibyte_safe): Likewise.
5920 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5921
1ac9108a 5922 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5923 (x_produce_glyphs): Likewise.
5924
5925 * .gdbinit (xcharset): Fix the treating $arg0.
5926
ad9e2d54
EZ
59272009-07-04 Eli Zaretskii <eliz@gnu.org>
5928
5929 Emulation of `getloadavg' on MS-Windows.
50426a04 5930 * w32.c: Include float.h.
ad9e2d54
EZ
5931 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5932 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5933 (get_native_system_info, get_system_times): New functions.
5934 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5935 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5936 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5937 g_b_init_get_system_times, and num_of_processors.
5938
0a3472c7
JR
59392009-07-03 Jason Rumney <jasonr@gnu.org>
5940
5941 * w32term.c (w32_initialize): Use standard types.
5942
80904120
EZ
59432009-07-03 Eli Zaretskii <eliz@gnu.org>
5944
5945 * dired.c (Ffile_attributes): Decode user and group names by the
5946 locale's encoding. (Bug#3443)
5947
6978862d
DN
59482009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5949
f8d23104
DN
5950 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5951 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5952
5953 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5954
5955 * term.c (init_tty): Remove spurious #ifdef.
5956
6978862d
DN
5957 * m/mips.h: Mention this file is also used for netbsd.
5958 * m/pmax.h: Remove file.
5959
e044e4fc
JD
59602009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5961
5962 * xterm.h (struct x_display_info): Add invisible_cursor.
5963 (struct x_output): Add current_cursor.
5964
5965 * xterm.c (XTtoggle_invisible_pointer): New function.
5966 (x_define_frame_cursor): Don't define cursor if invisible or the
5967 same as before. Set current_cursor.
5968 (x_create_terminal): Set toggle_invisible_pointer_hook.
5969
5970 * xfns.c (make_invisible_cursor): New function.
5971 (x_set_mouse_color): Call make_invisible_cursor.
5972 Set current_cursor.
5973 (x_window): Set current_cursor.
5974
5975 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5976
5977 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5978 inserting a character.
5979 (read_avail_input): Call frame_make_pointer_visible.
5980
5981 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5982 (frame_make_pointer_invisible, frame_make_pointer_visible):
5983 New functions.
e044e4fc
JD
5984 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5985
5986 * frame.h: Declare frame_make_pointer_invisible and
5987 frame_make_pointer_visible.
5988 (struct frame): Add pointer_invisible.
5989
574c8efa
JD
59902009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5991
7b507248
JD
5992 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5993 frame isn't visible.
5994 (xg_frame_resized): If width/height is -1, get size of window
5995 from X server.
5996
5997 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5998 for MapNotify.
5999
835bdaa7 6000 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6001 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6002 (flush_and_sync): Reintroduce.
574c8efa 6003
3f1c6666 60042009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6005
31fd7c5c 6006 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6007
6008 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6009 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6010
6011 * frame.h: Declare Qsticky.
6012
cad9ef74
JD
6013 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6014
6015 * nsfns.m (ns_frame_parm_handlers): Ditto.
6016
6017 * frame.c: Declare Qsticky.
6018 (frame_parms): Add sticky.
6019
6020 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6021
6022 * xterm.h: Declare x_set_sticky.
6023
6024 * xterm.c (x_set_sticky): New function.
6025
69b16610
JD
6026 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6027 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6028 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6029
6030 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6031
6032 * frame.c: Qmaximized is new.
6033 (x_set_frame_parameters): Do not handle fullscreen specially.
6034 Only set width and height if explicitly set.
6035 (x_set_fullscreen): Handle Qmaximized.
6036 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6037 (syms_of_frame): Initialize Qmaximized.
6038
1ac9108a
SM
6039 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6040 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6041
6042 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6043 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6044 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6045 set gravity to NorthWestGravity when USE_GTK.
6046 (set_wm_state): New function.
31fd7c5c 6047 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6048 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6049 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6050 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6051 to x_real_positions and x_fullscreen_adjust.
6052
6053 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6054 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6055 flush_and_sync.
6056 (xg_height_changed): New function.
6057 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6058 and gtk_window_set_policy. Set frame gravity after parsing the
6059 geometry string.
3f1c6666
JD
6060 (xg_update_frame_menubar, free_frame_menubar)
6061 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6062 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6063 Remove calls to xg_frame_set_char_size.
6064
fd503d99
KH
60652009-07-01 Kenichi Handa <handa@m17n.org>
6066
6067 * keyboard.c (decode_keyboard_code): New function.
6068 (tty_read_avail_input): Decode the input bytes if necessary.
6069
1ac9108a
SM
6070 * coding.c (setup_coding_system):
6071 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6072 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6073 use Qno_conversion.
6074
24ed93fb
YM
60752009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6076
6077 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6078
99061dfc
CY
60792009-06-30 Chong Yidong <cyd@stupidchicken.com>
6080
1ac9108a 6081 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6082
ff90fbde
JR
60832009-06-30 Jason Rumney <jasonr@gnu.org>
6084
6085 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6086 is already loaded.
6087 Set user model ID if supported (bug#1849).
6088
5f445726
JM
60892009-06-29 Jim Meyering <meyering@redhat.com>
6090
6091 Remove useless if-before-xfree test.
6092 * nsfont.m (nsfont_close): Remove useless test.
6093 * term.c (delete_tty): Likewise.
6094 * w32.c (system_process_attributes): Likewise.
6095 * w32font.c (w32font_close): Likewise.
6096 * xfaces.c (x_free_gc): Likewise.
6097 * xselect.c (buffer): Likewise.
6098
b9607587
AS
60992009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6100
6101 * process.c (send_process): Keep decoded string in a local
6102 variable and protect it from GC. (Bug#3521)
6103
89ba96f4
EZ
61042009-06-28 Eli Zaretskii <eliz@gnu.org>
6105
6106 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6107 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6108
098a1589
CY
61092009-06-28 Chong Yidong <cyd@stupidchicken.com>
6110
485422be
CY
6111 * xdisp.c (start_display, handle_face_prop)
6112 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6113 (redisplay_window, try_window_id, produce_image_glyph):
6114 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6115
098a1589
CY
6116 * xterm.c (x_update_window_begin, x_new_focus_frame)
6117 (x_scroll_bar_handle_click, handle_one_xevent)
6118 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6119 (x_make_frame_visible, x_make_frame_invisible)
6120 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6121 code chunks that are now obsolete.
6122
78c38319
MA
61232009-06-28 Michael Albinus <michael.albinus@gmx.de>
6124
6125 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6126 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6127 for hours, when optimzation is enabled.
6128 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6129 (xd_read_message): Make them static.
6130
4189ed40
CY
61312009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6132
6133 * term.c (turn_on_face): Allow simultaneously bold and dim
6134 terminal faces (Bug#3530).
6135
cd9b5e16
CY
61362009-06-27 Chong Yidong <cyd@stupidchicken.com>
6137
4e23bedb
CY
6138 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6139
cd9b5e16
CY
6140 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6141 truncation glyphs (Bug#3686).
6142
07cc3c35
GM
61432009-06-27 Glenn Morris <rgm@gnu.org>
6144
6145 * m/pmax.h: Restore file, with only netbsd portions.
6146
31fd7c5c 61472009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6148
cd9b5e16 6149 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6150
42d4a64f
KH
61512009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6152
6153 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6154 the arg FORCE_SYMBOL.
6155
930fe55b 61562009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6157
6158 * fontset.c (fontset_find_font): When a usable rfont_def is found
6159 in a fallback font-group, make it the first element of the group.
6160
57ebc3fd
CY
61612009-06-24 Chong Yidong <cyd@stupidchicken.com>
6162
6163 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6164
f084f942
KH
61652009-06-24 Kenichi Handa <handa@m17n.org>
6166
6167 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6168 set for C.
6169 (fontset_font): Record the availability of a font for C both in
6170 the realized fontsets of the current one and the default one.
6171
2f686c87
DN
61722009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6173
6174 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6175 conditional, it is always defined on AIX.
6176
666e158e
MB
61772009-06-23 Miles Bader <miles@gnu.org>
6178
6179 * window.c (Vrecenter_redisplay): New variable.
6180 (syms_of_window): Initialize it.
6181 (Qtty): New extern declaration.
6182 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6183
c6da7cd2
JM
61842009-06-23 Jim Meyering <meyering@redhat.com>
6185
1ac9108a
SM
6186 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6187 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6188 pointer dereferences are guaranteed to be valid.
c6da7cd2 6189
678dca3d
KH
61902009-06-23 Kenichi Handa <handa@m17n.org>
6191
74d75424
KH
6192 * emacs.c (main): Call init_font ().
6193
6194 * font.h (Vfont_log): Extern it.
6195 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6196
6197 * font.c (font_sort_entities, font_list_entities)
6198 (font_matching_entity, font_open_entity)
6199 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6200 (Vfont_log): Delete static.
6201 (font_log_env_checked): Delete this variable.
6202 (font_add_log): Don't check font_log_env_checked.
6203 (font_deferred_log): Check Vfont_log.
6204 (init_font): New function.
6205
678dca3d
KH
6206 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6207
6208 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6209
6210 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6211
6212 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6213
6214 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6215 (face_for_char): Don't call font_deferred_log here.
6216 (font_for_char): Likewise.
6217
8a668709
CY
62182009-06-22 Chong Yidong <cyd@stupidchicken.com>
6219
9a01ee33
CY
6220 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6221 rather than its background_width for drawing the overline and
6222 underline (Bug#489).
6223
6224 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6225 rather than its background_width for drawing the overline and
6226 underline (Bug#489).
ec7c9926
CY
6227 (xg_default_icon_file): New variable.
6228 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6229 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6230
8a668709
CY
6231 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6232 (load_overlay_strings): Remove externs.
6233 (fast_find_position): Function deleted.
6234 (mouse_face_from_buffer_pos): New function, based on
6235 fast_find_position. Correctly handle before-strings,
6236 display-strings, and after-strings (Bug#1220).
6237 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6238
4d4c02d8
CY
62392009-06-21 Chong Yidong <cyd@stupidchicken.com>
6240
1ac9108a 6241 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6242 (move_it_in_display_line_to, move_it_in_display_line_to)
6243 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6244
70243478
CY
62452009-06-21 Chong Yidong <cyd@stupidchicken.com>
6246
6247 * Branch for 23.1.
6248
13087e59
JR
62492009-06-21 Jason Rumney <jasonr@gnu.org>
6250
6251 * w32term.c (keyboard_codepage): New static variable.
6252 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6253 (w32_read_socket) [WM_CHAR]: Use it to decode character
6254 input (bug#3237).
6255 (w32_initialize): Initialize it.
6256 (codepage_for_locale): New function.
6257
4735b74e
KR
62582009-06-20 Ken Raeburn <raeburn@raeburn.org>
6259
6260 * process.c (status_message): Pass Faset index argument as a lisp
6261 object, so as to work with USE_LISP_UNION_TYPE.
6262
0e727afa
YM
62632009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6264
6265 * coding.c (Ffind_coding_systems_region_internal):
6266 Cache checked characters.
6267
cf299835
KH
62682009-06-18 Kenichi Handa <handa@m17n.org>
6269
1ac9108a 6270 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6271
90f20d94
AS
62722009-06-18 Andreas Schwab <aschwab@redhat.com>
6273
6274 * xdisp.c (redisplay_internal): Check that the frame is still
6275 live after redisplay of its windows.
6276 (redisplay_windows): Check that the window is still live.
6277
7f1faf1c
KH
62782009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6279
6280 * coding.c (detect_coding_utf_16): Fix previous change.
6281
cc13543e
KH
62822009-06-16 Kenichi Handa <handa@m17n.org>
6283
6284 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6285 UTF-16 by checking the dispersion of Eth and Oth bytes.
6286
977b85f4
AS
62872009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6288
6289 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6290
66bd43d1
KH
62912009-06-15 Kenichi Handa <handa@m17n.org>
6292
6293 * process.c (status_message): Fix previous change. Be sure to
6294 decode a localized string.
6295
cb5ca9c5
YM
62962009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6297
6298 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6299 add comment explaining why.
6300
ec7709ba 63012009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6302
ec7709ba 6303 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6304
4b7f335c
AR
63052009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6306
6307 * nsfont.m (ns_attribute_value): Remove.
6308 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6309 (ns_has_attribute): Shrink the normal range.
6310 (ns_findfonts): Don't worry about requested spec in determining
6311 need for synthItal.
e41820ee 6312 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6313
73b26103
SZ
63142009-06-14 Seiji Zenitani <zenitani@mac.com>
6315
6316 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6317
5753e4da
KH
63182009-06-11 Kenichi Handa <handa@m17n.org>
6319
6320 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6321 overhang for the static composition case.
6322
3561b671
KH
63232009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6324
5753e4da
KH
6325 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6326 overhang for the automatic composition case.
6327
3561b671
KH
6328 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6329 composition case.
6330
852bbd41
CY
63312009-06-10 Chong Yidong <cyd@stupidchicken.com>
6332
6333 * xdisp.c (get_next_display_element): When handling wrap-prefix
6334 and line-prefix, treat \n as a control character (bug#3502).
6335
9903d1e6
KH
63362009-06-10 Kenichi Handa <handa@m17n.org>
6337
6338 * font.c (font_parse_family_registry): Fix for one-char foundry.
6339 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6340
0bcbaaaa
CY
63412009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6342
6343 * process.c (status_message): Fix handling of multibyte signal
6344 string (Bug#3499).
6345
40aa3f13
JM
63462009-06-09 Jim Meyering <meyering@redhat.com>
6347
1f80c7e2
CY
6348 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6349 color name is missing.
40aa3f13 6350
72d51285
KH
63512009-06-09 Kenichi Handa <handa@m17n.org>
6352
6353 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6354 FROM-CODE and TO-CODE are codepoints of CHARSET.
6355
c1d04d84
AR
63562009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6357
6358 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6359
63602009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6361
6362 Changes to support :script/:lang/:otf in NS font driver.
6363 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6364 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6365 indicate not part of font driver interface, and change callers.
6366 (ns_get_family): Remove pointless null check.
6367 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6368 ns_spec_to_descriptor, ns_descriptor_to_entity.
6369 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6370 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6371 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6372 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6373 (ns_get_req_script, ns_accumulate_script_ranges)
6374 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6375 New functions.
6376 (nsfont_list, nsfont_match): Use ns_findfonts.
6377 (nsfont_open): Use font descriptor instead of traits.
6378 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6379 (dump_glyphstring): Rename to ns_dump_glyphstring.
6380
c7eb9816
AR
6381 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6382
c1d04d84
AR
6383 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6384
6385 * fontset.c (fontset_from_font): Remove NS-specific code.
6386
ec7709ba 63872009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6388
6389 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6390 nonactive windows.
6391
31fd7c5c 63922009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6393
1ac9108a 6394 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6395
68852c13 63962009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6397
6398 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6399
6756cd1d
CY
64002009-06-07 Chong Yidong <cyd@stupidchicken.com>
6401
6402 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6403 account for the overflowing of newlines into the last glyph on the
6404 display line (Bug#3482).
6405
28bf482a
DR
64062009-06-05 David Reitter <david.reitter@gmail.com>
6407
ec7709ba
JB
6408 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6409 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6410 Fns_selection_exists_p, Fns_selection_owner_p.
6411
fdb55376
JR
64122009-06-03 Jason Rumney <jasonr@gnu.org>
6413
6414 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6415 available. (Bug#3379)
6416
05129fbe
KH
64172009-05-29 Kenichi Handa <handa@m17n.org>
6418
1ac9108a
SM
6419 * coding.c (get_translation_table):
6420 Check Venable_character_translation.
05129fbe 6421
ec7709ba 64222009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6423
ec7709ba
JB
6424 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6425 (x_make_frame_visible): Move frame to front rather than calling
15891144 6426 ns_raise_frame().
ec7709ba 6427 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6428 isn't key window.
ec7709ba 6429 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6430 drawRect may be called by NSView even if the frame is hidden.
6431
ec7709ba
JB
6432 * nsfns.m (Fx_create_frame): Follow other ports in
6433 determining visibility; default to t. Ensure async_visible is set.
15891144 6434
21f73755
EZ
64352009-05-23 Eli Zaretskii <eliz@gnu.org>
6436
6437 * dired.c (Ffile_attributes): Doc fix.
6438
34001e41
CY
64392009-05-22 Chong Yidong <cyd@stupidchicken.com>
6440
6441 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6442
46306a17
SM
64432009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6444
6445 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6446 and xfont_scratch_props.
6447 (syms_of_xfont): Do it here instead.
6448 (xfont_find_ccl_program): Delete, unused.
6449 (xfont_open): Delete unused var `i'.
6450
ef6e0694
KH
64512009-05-21 Kenichi Handa <handa@m17n.org>
6452
6453 * fontset.c (Qlatin): Don't make it static.
6454
46306a17
SM
6455 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6456 New functions.
ef6e0694
KH
6457 (xfont_scripts_cache, xfont_scratch_props): New variables.
6458 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6459 (xfont_list_pattern): Argument changed. Callers changed.
6460 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6461 (xfont_list): Don't reject a font spec with :script property.
6462 (xfont_has_char): Fix setting of encoding.
6463 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6464 xfont_scratch_props.
6465
64662009-05-19 Kenichi Handa <handa@m17n.org>
6467
46306a17 6468 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6469 Callers changed.
6470
64712009-05-18 Kenichi Handa <handa@m17n.org>
6472
6473 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6474
ac71ced7
SM
64752009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6476
6477 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6478 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6479
1c6d1051
YM
64802009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6481
6482 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6483 (x_delete_terminal): Dissociate resource database from display and
6484 then call XrmDestroyDatabase before closing display.
6485
9b9b779c
AR
64862009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6487
6488 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6489 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6490 whether selected frame is viable before raising it (based on patch
6491 by David Reitter), and improve commentary.
6492 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6493
cccd42d5
KH
64942009-05-15 Kenichi Handa <handa@m17n.org>
6495
6496 * font.c (Ffont_spec): Check arguments.
6497
337fbd17
CY
64982009-05-14 Chong Yidong <cyd@stupidchicken.com>
6499
6500 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6501 weight when testing attributes (Bug#3282).
6502
47a6002f
JD
65032009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6504
6505 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6506 what we expect to get in the next ConfigureNotify event.
6507
9cb363db
YM
6508 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6509 before Xft one (Bug#1696).
6510
b9126609
CY
65112009-05-07 David Reitter <david.reitter@gmail.com>
6512
6513 * nsfns.m (Fx_display_planes): Compute bitplanes using
6514 NSBitsPerPixelFromDepth (Bug#3207).
6515
27a69fd9
CY
65162009-05-10 Chong Yidong <cyd@stupidchicken.com>
6517
6518 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6519
00f37552
TTN
65202009-05-10 Ulrich Mueller <ulm@gentoo.org>
6521
6522 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6523
2d82a920
DR
65242009-05-07 David Reitter <david.reitter@gmail.com>
6525
ec7709ba
JB
6526 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6527 Respect mouse face background.
2d82a920 6528
46b0d52d
DR
65292009-05-07 David Reitter <david.reitter@gmail.com>
6530
ec7709ba
JB
6531 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6532 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6533 in ns_update_begin and ns_update_end.
6534
ce1b23bb
SM
65352009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6536
5996e1b7
SM
6537 * nsfns.m (ns_get_screen): Rewrite.
6538 Don't presume selected-frame is of type `ns'.
6539
ba98e3a0
SM
6540 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6541 all drivers.
6542
ce1b23bb
SM
6543 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6544
bcda200f
YM
65452009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6546
6547 * keyboard.h (add_user_signal): Fix typo in extern.
6548
6549 * lisp.h (add_user_signal): Remove extern.
6550
6551 * unexelf.c (unexec): Consider a section to precede the .bss section
6552 if its addresses overlap that of .bss.
6553 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6554 instead of dumping process.
6555
864660a2
SM
65562009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6557
6558 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6559
50da4e56
SM
65602009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6561
6562 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6563
51520a1a
DN
65642009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6565
6566 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6567 any statements.
6568
409ea3a1
AS
65692009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6570
59c4c60f
AS
6571 * process.c (read_process_output): Make sure the current buffer is
6572 always restored.
6573
409ea3a1
AS
6574 * coding.c (record_conversion_result): Don't modify
6575 Vlast_code_conversion_error for successful result.
6576 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6577
56f00ed2
KH
65782009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6579
6580 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6581 (load_charset_map): Remove unnecessary code.
56f00ed2 6582
4491c9d2
DR
65832009-04-30 David Reitter <david.reitter@gmail.com>
6584
35f5b128 6585 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6586 through f24.
6587
6970f632
CY
65882009-04-30 Chong Yidong <cyd@stupidchicken.com>
6589
6590 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6591
6592 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6593 face_at_buffer_position.
6594 (face_before_or_after_it_pos, get_next_display_element)
6595 (note_mouse_highlight): Update face_at_buffer_position call.
6596
6597 * term.c (term_mouse_highlight):
6598 * msdos.c (IT_note_mouse_highlight):
6599 * fontset.c (Finternal_char_font):
35f5b128 6600 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6601
6602 * dispextern.h (face_at_buffer_position): Update prototype.
6603
0c616f63
KH
66042009-04-30 Kenichi Handa <handa@m17n.org>
6605
35f5b128 6606 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6607
ad3aaf33
AS
66082009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6609
6610 * callproc.c (Fcall_process): Fix GC protection. Make sure
6611 current buffer is always restored.
6612
c3c963a0
YM
66132009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6614
6615 * atimer.c (init_atimer): Also clear stopped_atimers.
6616
6617 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6618
7e3386cb
YM
6619 * process.c (create_process): Clean up merger residues of
6620 2008-07-17 change.
6621
91f68422
CY
66222009-04-29 Ulrich Mueller <ulm@gentoo.org>
6623
6624 * lread.c (Vread_circle): New variable.
6625 (read1): Disable recursive read if Vread_circle is nil.
6626
24b34550
KH
66272009-04-29 Kenichi Handa <handa@m17n.org>
6628
6629 * fontset.h (set_default_ascii_font): Delete extern.
6630
6631 * fontset.c (set_default_ascii_font): Delete this unused function.
6632
6633 * frame.c (x_set_font): When ARG is a font-object, check if the
6634 font-object matches with the ASCII font-spec of the frame's
9c358bda 6635 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6636
77bf07e1
AS
66372009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6638
6639 * fns.c (Flocale_info): Protect vector from GC during decoding.
6640
6641 * process.c (Fstart_process): Protect argv strings from GC during
6642 encoding.
6643
2c55aacf
AS
66442009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6645
6646 * sysdep.c: Include <ctype.h>.
6647
b892d3c9
DR
66482009-04-27 David Reitter <david.reitter@gmail.com>
6649
35f5b128 6650 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6651 Remove commented-out code.
6652
9d0644c4
JB
66532009-04-26 Johan Bockgård <bojohan@gnu.org>
6654
6655 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6656
b7053016
JR
66572009-04-25 Jason Rumney <jasonr@gnu.org>
6658
6659 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6660
4e8231f3
YM
66612009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6662
6663 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6664 Swap bytes in short integer if fringe bitmap width > 8.
6665
493dcf2c
KH
66662009-04-23 Kenichi Handa <handa@m17n.org>
6667
6668 * xfaces.c (Fx_list_fonts): If a font size is specified in
6669 PATTERN, set it in returned scalable fonts.
6670
401e9e57
CY
66712009-04-22 Chong Yidong <cyd@stupidchicken.com>
6672
708e05dc
CY
6673 * keyboard.c (Fset_input_meta_mode): Doc fix.
6674
6675 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6676
1ac9108a 6677 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6678
6679 * coding.c (Fterminal_coding_system): Doc fix.
6680
6681 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6682 (Fx_display_pixel_height, Fx_display_planes)
6683 (Fx_display_color_cells, Fx_server_max_request_size)
6684 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6685 (Fx_display_mm_height, Fx_display_mm_width)
6686 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6687 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6688 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6689 (check_x_display_info): Handle terminal objects instead of
6690 terminal ids.
6691
401e9e57
CY
6692 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6693 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6694 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6695 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6696
df80c7f0
KH
66972009-04-21 Kenichi Handa <handa@m17n.org>
6698
5a8f12af 6699 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6700 (font_score): Check AVGWIDTH too.
908567ef 6701
df80c7f0
KH
6702 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6703 worst case.
1ac9108a
SM
6704 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6705 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6706
705af33f
JR
67072009-04-19 Jason Rumney <jasonr@gnu.org>
6708
6709 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6710 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6711
6712 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6713 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6714 get_phys_cursor_geometry.
6715
b71ac3dd 6716 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6717 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6718 using get_phys_cursor_geometry.
6719
6720 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6721 correctly calculated.
6722
dc2933eb
JD
67232009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6724
1ac9108a
SM
6725 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6726 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6727 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6728 is deprecated.
6729
973e7849
AS
67302009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6731
6732 * font.c (font_put_frame_data): Use xfree instead of free.
6733
314d66f4
JB
67342009-04-17 Juanma Barranquero <lekktu@gmail.com>
6735
6736 * w32font.c (Qja, Qko): Remove declarations.
6737 (syms_of_w32font): Don't DEFSYM them.
6738
cf702558
CY
67392009-04-17 Chong Yidong <cyd@stupidchicken.com>
6740
6741 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6742
6743 * font.h (Qja, Qko): Extern them.
6744
6745 * ftfont.c (Qja, Qko): Remove declarations.
6746
6747 * xfont.c (Qja, Qko): Remove declarations.
6748
b50504f5
KH
67492009-04-17 Kenichi Handa <handa@m17n.org>
6750
bde25748
KH
6751 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6752 string from a vector to handle Latin-1 characters correctly.
6753
b50504f5
KH
6754 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6755 entity even if the cache hits.
6756
f4646fff
AS
67572009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6758
6759 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6760 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6761
e7deaab0
AS
6762 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6763 * lisp.h: Adjust prototypes.
6764
0a0e7d49
CY
67652009-04-16 Chong Yidong <cyd@stupidchicken.com>
6766
6767 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6768 change (Bug#3003).
6769
3c908a57
KH
67702009-04-16 Kenichi Handa <handa@m17n.org>
6771
1ac9108a 6772 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6773
6774 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6775 adstyle.
6776
6777 * ftfont.c (Qja, Qko): Don't make them static.
6778 (enum ftfont_cache_for): New enum.
6779 (fc_charset_table): Undo the previous change.
6780 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6781 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6782 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6783 non-scarable font, try to get AVERAGE_WIDTH.
6784 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6785 Change ft_face_cache from a list of a hash-table. Don't check
6786 `ja' and `ko' adstyle here.
6787 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6788 FTFONT_CACHE_FOR_CHARET.
6789 (ftfont_get_charset): Undo the previous change.
1ac9108a 6790 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6791 (ftfont_close): Likewise.
6792 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6793
6794 * font.c (font_sort_entites): Change the meaning of the arg
6795 BEST-ONLY. Don't optimize for VEC of lenght 1.
6796 (font_select_entity): Just return the value of font_sort_entites.
6797
6798 * xfaces.c (merge_face_vectors): Reflect font properties in
6799 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6800 font_clear_prop if a face attribute doesn't change.
6801
3c908a57
KH
6802 * charset.h (charset_ksc5601): Extern it.
6803
6804 * charset.c (charset_ksc5601): New variable.
6805 (Fdefine_charset_internal): Set charset_ksc5601.
6806 (init_charset_once): Initialize charset_ksc5601 to -1.
6807
d65859c3
DN
68082009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6809
6810 * fileio.c (history_delete_duplicates): Remove unused declaration.
6811
6812 * callint.c (history_delete_duplicates): New declaration.
6813 (Fcall_interactively): Remove command history duplicates when
6814 history_delete_duplicates is true.
6815
3ba010e5
EZ
68162009-04-14 Eli Zaretskii <eliz@gnu.org>
6817
6818 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6819
06f19b91
KH
68202009-04-14 Kenichi Handa <handa@m17n.org>
6821
6822 * font.c (Ffont_info): Fix docstring. Fix the second element of
6823 the returned value (bug#2949).
6824
2cce8bfc
CY
68252009-04-14 Chong Yidong <cyd@stupidchicken.com>
6826
6827 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6828
d156542d
KH
68292009-04-14 Kenichi Handa <handa@m17n.org>
6830
6831 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6832 encoding charset is ascii_compatible.
6833
6834 * charset.c (Fdefine_charset_internal): Make charset
6835 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6836 code_offset is 0, and covers all ASCII characters.
6837
86fa089e
SM
68382009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6839
6840 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6841 (ns_string_to_pasteboard_internal):
6842 * nsmenu.m (process_dialog):
6843 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6844 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6845 * lisp.h (Fx_load_color_file): Declare.
6846
a8a3728b
KH
68472009-04-13 Kenichi Handa <handa@m17n.org>
6848
1ac9108a 6849 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6850 (font_select_entity): Suppress the code to optimize for the same
6851 kind of fonts.
6852 (font_load_for_lface): Get a font that supports at least ASCII
6853 characters.
6854
6855 * ftfont.c (Qja, Qko): New variables.
6856 (fc_charset_table): Delete uniquifier data for iso8859-1.
6857 (ftfont_get_latin1_charset): New function.
6858 (get_adstyle_property): New function.
6859 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6860 bitmap fonts.
6861 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6862 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6863 `ko' or `ja'.
6864 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6865 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6866 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6867 property.
6868 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6869 (syms_of_ftfont): DEFSYM Qja and Qko.
6870
483670b5
KH
68712009-04-09 Kenichi Handa <handa@m17n.org>
6872
12b55765
KH
6873 * charset.c (map_charset_chars): For a charset of `superset'
6874 method, fix calculation of code range.
6875
483670b5
KH
6876 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6877 from the list of extra properties.
6878 (font_clear_prop): Be sure to delete `:name' font property.
6879
57d3b93b
KH
68802009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6881
b4b2c2ca
YM
6882 * dispnew.c (redraw_overlapping_rows): Fix detection of
6883 overlapping for topmost and bottommost rows.
6884
1ac9108a 6885 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6886
472c3609
JR
68872009-04-06 Jason Rumney <jasonr@gnu.org>
6888
6889 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6890
ab193662
KH
68912009-04-06 Kenichi Handa <handa@m17n.org>
6892
6893 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6894
6895 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6896
0c26f026
KH
68972009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6898
6899 * ftfont.c (ftfont_open): Fix checking of the return value of
6900 FT_Load_Char. Fix setting font->underline_thickness.
6901
e173bbce
CY
69022009-04-04 Chong Yidong <cyd@stupidchicken.com>
6903
6904 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6905 (Fterminal_parameters, Fterminal_parameter)
6906 (Fset_terminal_parameter): In doc string, refer to terminal
6907 objects rather than terminal ids.
6908
693a2698
EZ
69092009-04-04 Eli Zaretskii <eliz@gnu.org>
6910
6911 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6912 ret_lim_data. (Bug#2867)
6913
d5221487
CY
69142009-04-03 Chong Yidong <cyd@stupidchicken.com>
6915
6916 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6917 so they don't get wider than the window, matching 2006-01-23
6918 change to the partner function in xdisp.c (Bug#2800).
6919
223509a3
KH
69202009-04-03 Kenichi Handa <handa@m17n.org>
6921
6922 * print.c (print_object): Make each lowest sub_char_table start a
6923 new line (Bug#2866).
6924
74fcd0b1
KH
69252009-04-02 Kenichi Handa <handa@m17n.org>
6926
6927 * fontset.c (fontset_font): Record no-font when a fontset
6928 explicitly tells not to try another font-specs.
6929
c542407d
SM
69302009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6931
6932 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6933
e3869731
KH
69342009-03-30 Kenichi Handa <handa@m17n.org>
6935
d8d2f142
KH
6936 * fontset.c (fontset_from_font): Specify only registry in a
6937 font-spec for all characters supported by that registry.
6938
e3869731
KH
6939 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6940 even if HAVE_M17N_FLT is not defined.
6941
5da5f805
CY
69422009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6943
6944 * ftfont.c: Conditionalize prototyping and use of
6945 ftfont_variation_glyphs.
6946
ab226c50
SM
69472009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6948
9628fed7
SM
6949 * frame.c (delete_frame): Work around compiler bug.
6950
6951 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6952 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6953 Some more EMACS_INT.
6954 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6955
6956 * xdisp.c (dump_glyph): Fix typo.
6957
ae19ba7c
SM
6958 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6959 (adjust_markers_gap_motion, adjust_markers_for_delete)
6960 (adjust_markers_for_insert, adjust_point)
6961 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6962 (make_gap, copy_text, count_size_as_multibyte, insert)
6963 (insert_and_inherit, insert_before_markers)
6964 (insert_before_markers_and_inherit, insert_1)
6965 (count_combining_before, count_combining_after, insert_1_both)
6966 (insert_from_string, insert_from_string_before_markers)
6967 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6968 (insert_from_buffer_1, adjust_after_replace)
6969 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6970 (replace_range_2, del_range, del_range_1, del_range_byte)
6971 (del_range_both, del_range_2, modify_region)
6972 (prepare_to_modify_buffer, signal_before_change)
6973 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6974 for buffer positions and sizes.
6975 * lisp.h: Adjust prototypes accordingly.
6976
6977 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6978 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6979 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6980
ab226c50
SM
6981 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6982
46dfb8fb
JD
69832009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6984
6985 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6986 lines and columns so we keep the same pixel height and width.
6987
6988 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6989 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6990 (x_handle_net_wm_state): New function to update frame parameter
6991 fullscreen.
6992 (x_term_init): Initialize atoms for _NET_WM_STATE.
6993
6994 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6995
d347e494
SM
69962009-03-27 Kevin Ryde <user42@zip.com.au>
6997
6998 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6999 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7000 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7001 (Fgpm_mouse_stop): Pass that new parameter.
7002 * termhooks.h (close_gpm): Adjust prototype.
7003
84db11d6
SM
70042009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7005
c95a5008
SM
7006 * lisp.h (Fx_focus_frame): Declare.
7007
84db11d6
SM
7008 * callint.c (Fcall_interactively): For '^' just delegate the work to
7009 handle-shift-selection.
7010 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7011
0a1958d6
CY
70122009-03-24 Chong Yidong <cyd@stupidchicken.com>
7013
0bfdff23
CY
7014 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7015
0a1958d6
CY
7016 * data.c (Qinteractive_form): New variable.
7017 (Finteractive_form): Use it.
7018
7019 * eval.c (Fcommandp): Use Qinteractive_form.
7020
58aec0d6
JR
70212009-03-24 Jason Rumney <jasonr@gnu.org>
7022
7023 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7024 Calculate total size precisely. Decode environment variables
7025 before substituting. (Bug#38)
7026
553dd618
KH
70272009-03-24 Kenichi Handa <handa@m17n.org>
7028
7029 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7030 encoding (Bug#2722).
553dd618 7031
c39ea606
JD
70322009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7033
7034 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7035 that gdpy is set.
7036
bc9b2b5e
AM
70372009-03-22 Alan Mackenzie <acm@muc.de>
7038
7039 * callint.c (Finteractive): Clarify the doc string - even
7040 promptless elements need \n separators.
7041
9f995a76
JR
70422009-03-22 Jason Rumney <jasonr@gnu.org>
7043
7044 * w32term.c (syms_of_w32term): Doc fix for
7045 x-use-underline-position-properties.
7046
22749e9a
EZ
70472009-03-21 Eli Zaretskii <eliz@gnu.org>
7048
7049 * w32.c (getpwuid): Change argument type to unsigned.
7050 (struct w32_id): Change type of `rid' member to unsigned.
7051 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7052 argument ID to unsigned. All callers changed.
7053 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7054
e00553bf
EZ
70552009-03-20 Eli Zaretskii <eliz@gnu.org>
7056
7057 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7058 negative, produce a float value.
7059
7060 * dired.c (make_uid, make_gid): New functions.
7061 (Ffile_attributes): Use them to avoid negative UID and GID.
7062
f761d6b6
JB
70632009-03-20 Juanma Barranquero <lekktu@gmail.com>
7064
7065 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7066 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7067 Fix typos in docstrings.
7068
d507f8d7
KH
70692009-03-19 Kenichi Handa <handa@m17n.org>
7070
7071 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7072 changed, use font_load_for_lface to get a new font object.
7073 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7074
7075 * frame.c (x_set_font): Handle the case that ARG is a cons.
7076
c68845e0
GM
70772009-03-19 Glenn Morris <rgm@gnu.org>
7078
7079 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7080
bfa49dd1
CY
70812009-03-19 Chong Yidong <cyd@stupidchicken.com>
7082
7083 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7084
8458d4c1
KH
70852009-03-19 Kenichi Handa <handa@m17n.org>
7086
7087 * charset.c (load_charset_map_from_file): When a mapfile can't be
7088 loaded, signal an error.
7089
78e7d1fe
EZ
70902009-03-18 Eli Zaretskii <eliz@gnu.org>
7091
7092 * dired.c (Ffile_attributes): Make sure UID and GID are always
7093 positive, even if the value is too large for a positive EMACS_INT.
7094 Doc fix.
7095
7096 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7097
5da9fdfa
YM
70982009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7099
7100 * xmenu.c (xdialog_show): Move Fredisplay call ...
7101 (Fx_popup_dialog): ... here.
7102
7519c40d
SM
71032009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7104
7105 * dired.c (file_name_completion): Disable the first optimization just
7106 installed, since it is not implemented correctly.
7107
2cd298e2
SM
71082009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7109
7110 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7111 only if the entry can affect bestmatch.
2cd298e2
SM
7112 Stop the search early, as Ftry_completion already does.
7113
48d37adf
CY
71142009-03-17 Chong Yidong <cyd@stupidchicken.com>
7115
e10c9c93 7116 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7117
9286b16a
CY
71182009-03-15 Chong Yidong <cyd@stupidchicken.com>
7119
7120 * keyboard.c (parse_menu_item): Don't display remappings as menu
7121 equivalent bindings (Bug#788).
7122
f7b146dc
JR
71232009-03-15 Jason Rumney <jasonr@gnu.org>
7124
7125 * w32term.h (WM_EMACS_PAINT): New message.
7126 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7127 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7128 before passing to lisp thread. (Bug#950)
7129
f761d6b6 71302009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7131
d93f9575
CY
7132 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7133 variable as it was never reset.
7134 (ns_term_init): Remove initialization of Lisp-settable defaults
7135 and ns_expand_space.
7136 (-setPanelFromDefaultValues): Remove ns_expand_space.
7137 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7138 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7139 i.e. no additional spacing, similar to Carbon port.
7140
d93f9575
CY
7141 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7142 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7143
305018ec
JD
71442009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7145
7146 * sound.c (alsa_configure): Remove call to deprecated
7147 snd_pcm_sw_params_set_xfer_align.
7148
f761d6b6 71492009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7150
7151 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7152 after clicking in a detached tool bar.
7153 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7154
46e722a9
SM
71552009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7156
348db3dd
SM
7157 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7158 int/Lisp_Object mixup).
46e722a9 7159
a3d16f39
KH
71602009-03-13 Kenichi Handa <handa@m17n.org>
7161
7162 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7163 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7164 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7165 (set_fontset_font): Change ARG to a vector. Handle range_list in
7166 ARG correctly.
7167 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7168 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7169 the above change.
7170 (fontset_from_font): Fix previous change.
fe24f56a 7171 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7172 entry. If FONTSET is the default fontset, don't set the extra
7173 slot of the returning char-table.
7174
b066e6b6
JB
71752009-03-12 Juanma Barranquero <lekktu@gmail.com>
7176
7177 * nsfns.m (Fx_close_connection): Doc fix.
7178 (Fns_do_applescript): Reflow docstring.
7179 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7180 (Fx_display_pixel_width, Fx_display_pixel_height)
7181 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7182 Fix typos in docstrings.
7183 (Fns_set_alpha): Fix typos in error messages.
7184
d472514e 71852009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7186
d472514e 7187 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7188 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7189 were used for such events.
7190
d472514e
JB
7191 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7192 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7193
d472514e 7194 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7195 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7196
fb930676
KH
71972009-03-11 Kenichi Handa <handa@m17n.org>
7198
ff85581a
KH
7199 * font.h (font_open_by_spec): Extern it.
7200
c50b7e98
KH
7201 * font.c (font_open_by_spec): New function.
7202 (font_open_by_name): Use font_open_by_spec.
7203
fb930676
KH
7204 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7205 fontset of the frame.
7206
7207 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7208 modify the default font of frames that use this fontset.
7209 (num_auto_fontsets): New variable.
7210 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7211 name. Be sure to set FONTSET_ASCII to the correct font name.
7212 (update_auto_fontset_alist): New function.
7213
df4e8455
JB
72142009-03-11 Juanma Barranquero <lekktu@gmail.com>
7215
7216 * makefile.w32-in: Update dependencies.
7217
0a375797
AR
72182009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7219
7220 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7221
61313fa3
SM
72222009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7223
7224 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7225
b55103fb
CY
72262009-03-10 Chong Yidong <cyd@stupidchicken.com>
7227
7228 * lread.c (Feval_buffer): Doc fix.
7229
dde2559c
KH
72302009-03-09 Kenichi Handa <handa@m17n.org>
7231
7232 * charset.c (Qfile_name_handler_alist): Extern it.
7233 (load_charset_map_from_file): Temporarily bind
7234 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7235
df4e8455 72362009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7237
47f588bb
GM
7238 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7239 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7240
4ddf94bd
AR
72412009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7242
4c9bdfc2
AR
7243 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7244 (x_set_window_size): Change back to calculated method of setting
7245 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7246 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7247 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7248
fe41ae9e
AR
7249 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7250
4c9bdfc2
AR
7251 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7252 accelerator in parens under GNUstep.
7253
825d0875
KH
72542009-03-06 Kenichi Handa <handa@m17n.org>
7255
7256 These changes are to detect incorrect composition sequence without
f3b3be74 7257 looking ahead the source. (Bug#2370)
825d0875
KH
7258
7259 * coding.h: Include "composite.h".
7260 (enum compisition_state): New enum.
7261 (struct compisition_status): New struct.
7262 (struct iso_2022_spec): New member cmp_status.
7263 (struct emacs_mule_spec): New struct.
7264 (struct coding_system): New members ctext_extended_segment_len and
7265 embedded_utf_8. Change the union member
7266 spec.emacs_mule_full_support to spec.emacs_mule.
7267
7268 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7269 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7270 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7271 (ADD_COMPOSITION_DATA): New arg nbytes.
7272 (emacs_mule_char): New arg cmp_status.
7273 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7274 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7275 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7276 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7277 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7278 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7279 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7280 (EMACS_MULE_COMPOSITION_END): New macro.
7281 (emacs_mule_finish_composition): New function.
7282 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7283 (decode_coding_emacs_mule): Avoid long looking ahead while
7284 handling composition.
7285 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7286 (ENCODE_COMPOSITION_RULE): New macro.
7287 (finish_composition): New function.
7288 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7289 (DECODE_COMPOSITION_START): New implementation.
7290 (DECODE_COMPOSITION_END): Likewise.
7291 (STORE_COMPOSITION_RULE): New macro.
7292 (decode_coding_iso_2022): Avoid long looking ahead while handling
7293 composition, CTEXT extended segment, and embedded UTF-8.
7294 (setup_coding_system): For a coding of type iso-2022, reset
7295 CODING_ISO_EXTSEGMENT_LEN (coding) and
7296 CODING_ISO_EMBEDDED_UTF_8 (coding).
7297 (get_translation): Delete arguments last_block, from_nchars,
7298 to_nchars. Callers changed.
7299 (produce_chars): Don't modify charbuf. Adjusted for the change of
7300 get_translation.
98a326f7 7301 (produce_composition): Adjust for the new annotation sequence.
825d0875 7302 (handle_composition_annotation): Likewise.
98a326f7 7303 (consume_chars): Adjust for the change of get_translation.
825d0875 7304
ccbc4452
AR
73052009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7306
4ddf94bd 7307 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7308
988a7ddb
KH
73092009-03-05 Kenichi Handa <handa@m17n.org>
7310
7311 * font.c (font_select_entity): New function.
7312 (font_find_for_lface): Use font_select_entity to select a font.
7313
7314 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7315 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7316 font with C restriction.
7317
98a326f7 73182009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7319
be1bce46 7320 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7321
10ea2b82
JR
73222009-03-04 Jason Rumney <jasonr@gnu.org>
7323
2c93b248 7324 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7325 characters that have already been read. (Bug#2569)
2c93b248 7326
10ea2b82
JR
7327 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7328 Log an error message if check_image_size failed.
7329 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7330 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7331
71a0c011
EZ
73322009-03-02 Eli Zaretskii <eliz@gnu.org>
7333
7334 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7335 when decoding process output.
7336
2f63bba8
RS
73372009-03-01 Richard M Stallman <rms@gnu.org>
7338
7339 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7340
7341 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7342
0a9564cb
EZ
73432009-02-28 Eli Zaretskii <eliz@gnu.org>
7344
7345 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7346 (decode_coding_emacs_mule, decode_coding_iso_2022)
7347 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7348 (decode_coding_raw_text, decode_coding_charset)
7349 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7350 Honor inhibit-eol-conversion. (Bug #2186)
7351
449148b3
JR
73522009-02-28 Jason Rumney <jasonr@gnu.org>
7353
7354 * coding.c (detect_coding_charset): If not checking latin extra,
7355 fail on characters between 0x80 and 0xA0. (Bug#2354)
7356
a4aee864
EZ
73572009-02-28 Eli Zaretskii <eliz@gnu.org>
7358
7359 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7360 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7361
d88bee5a
GM
73622009-02-27 Glenn Morris <rgm@gnu.org>
7363
7364 * callint.c (Finteractive): Doc fix.
7365
a808f22d
KH
73662009-02-27 Kenichi Handa <handa@m17n.org>
7367
7368 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7369
caf8d60c
CY
73702009-02-27 Chong Yidong <cyd@stupidchicken.com>
7371
7372 * font.c (font_style_to_value): Set value for unknown symbols to
7373 100 instead of 255.
b61137ea
CY
7374 (weight_table, slant_table, width_table): Treat "unspecified" as
7375 the default value.
caf8d60c 7376
1a0de25c
JB
73772009-02-26 Juanma Barranquero <lekktu@gmail.com>
7378
7379 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7380
8fc45744
JB
73812009-02-25 Juanma Barranquero <lekktu@gmail.com>
7382
107bd7d1
JB
7383 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7384 error as soon as a recursive load is detected.
8fc45744 7385
f097e223
AR
73862009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7387
7388 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7389 before caching.
7390
8810a12f
KH
73912009-02-24 Kenichi Handa <handa@m17n.org>
7392
7393 * fontset.c (fontset_find_font): Fix the condition for checking
7394 unavailable font.
7395
2c7d1565
GM
73962009-02-24 Glenn Morris <rgm@gnu.org>
7397
7398 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7399 whitespace that confuses documentation.
7400
a20878b6
MB
74012009-02-23 Miles Bader <miles@gnu.org>
7402
7403 * process.c (Flist_system_processes, Fprocess_attributes)
7404 (syms_of_process): Rename `system-process-attributes' to
7405 `process-attributes'.
7406
b3b58c01
AS
74072009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7408
1b3b981b
AS
7409 * coding.h (struct coding_system): Make safe_charsets a pointer to
7410 unsigned char.
7411 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7412 being 255.
7413 (SAFE_CHARSET_P): Likewise.
7414 (setup_iso_safe_charsets): Properly setup safe_charsets.
7415 (Fdefine_coding_system_internal): Likewise.
7416 (setup_coding_system): Likewise. Remove unneeded casts.
7417 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7418 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7419 unneeded casts.
7420
b3b58c01
AS
7421 * insdel.c (del_range_2): Don't modify gap contents when called
7422 from decode_coding_object. (Bug#1809)
7423
0b6f228c
CY
74242009-02-21 Chong Yidong <cyd@stupidchicken.com>
7425
7426 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7427 Qfont_object.
7428 (Ftype_of): Recognize font objects.
7429
7430 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7431
7432 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7433 moved to data.c.
7434
52f8870b
AR
74352009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7436
7437 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7438 async_iconified. Based on a patch by Christian Lynbech
7439 <christian.lynbech@tieto.com>.
7440 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7441
7087d5e9
GM
74422009-02-20 Glenn Morris <rgm@gnu.org>
7443
7444 * syntax.c (Fskip_chars_forward): Fix doc typo.
7445
41d2ceef
CY
74462009-02-20 Chong Yidong <cyd@stupidchicken.com>
7447
7448 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7449
1a3b7ca6
CY
74502009-02-19 Chong Yidong <cyd@stupidchicken.com>
7451
7452 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7453
73cce38d
KH
74542009-02-19 Kenichi Handa <handa@m17n.org>
7455
7456 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7457 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7458
a51092ee
DN
74592009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7460
7461 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7462
c423ecca
KH
74632009-02-18 Kenichi Handa <handa@m17n.org>
7464
7465 * font.c (font_check_otf_features): Fix handling of `nil' element.
7466 (Ffont_spec): Describe :lang and :otf in the docstring.
7467
4c1958f4
AS
74682009-02-16 Andreas Schwab <schwab@suse.de>
7469
7470 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7471 string.
7472
5704f39a
KH
74732009-02-16 Kenichi Handa <handa@m17n.org>
7474
7475 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7476 (Bug#1723)
5704f39a 7477
8f0085aa
CY
74782009-02-14 Chong Yidong <cyd@stupidchicken.com>
7479
a057d86a 7480 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7481
7482 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7483 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7484
aff01dd9
EZ
74852009-02-14 Eli Zaretskii <eliz@gnu.org>
7486
7487 * msdos.c (MAX_SCREEN_BUF): New macro.
7488 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7489 Encode the entire run of glyphs sharing the same face, instead of
7490 doing that one glyph at a time (fixes a bug with displaying
7491 double-size characters).
7492
ba301db3
AR
74932009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7494
7495 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7496
7497 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7498 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7499 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7500
7501 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7502 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7503
51d861de
SM
75042009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7505
ac146f82 7506 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7507 invisible areas.
7508
7fed8996
JR
75092009-02-12 Jason Rumney <jasonr@gnu.org>
7510
631ea4fb
JR
7511 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7512 (add_font_entity_to_list): Call check_face_name even when family
7513 is unspecified.
7514
cb4a3e42
JR
7515 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7516 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7517 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7518
7fed8996 7519 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7520 raster fonts. (Bug#2219)
7fed8996 7521
895416e3
KH
75222009-02-12 Kenichi Handa <handa@m17n.org>
7523
7524 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7525 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7526 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7527 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7528 (find_automatic_composition): While looking forward and backward,
7529 check static composition. Fix where to stop looking forward.
7530 (composition_adjust_point): Fix checking of static composition.
7531 (Fcomposition_get_gstring): Pay attention to
1dacf998 7532 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7533
7534 * lisp.h (fast_looking_at): Extern it.
7535
7536 * search.c (fast_looking_at): New function.
7537
51d861de 7538 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7539 <struct glyph>.u.cmp.to.
7540 (append_composite_glyph): Likewise.
7541
51d861de 7542 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7543 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7544 composition.
51d861de 7545 (append_composite_glyph): Adjust for the change of
895416e3
KH
7546 <strcut glyph>.u.cmp.to.
7547
8510724d
JB
75482009-02-11 Juanma Barranquero <lekktu@gmail.com>
7549
7550 * casetab.c (init_casetab_once):
7551 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7552 * font.c (font_update_lface):
7553 * fontset.c (Fnew_fontset):
7554 * ftfont.c (ftfont_drive_otf):
7555 * xfont.c (xfont_open):
7556 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7557
294fa707
SM
75582009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7559
7560 * fileio.c (Fwrite_region): !NILP -> CONSP.
7561
b5bfebec
AS
75622009-02-10 Andreas Schwab <schwab@suse.de>
7563
7564 * process.c (send_process): Properly relocate pointer into data
adab88bd 7565 when using encoded data. (Bug#2272)
b5bfebec 7566
cb84a2be
KH
75672009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7568
7569 * coding.c (detect_coding_charset): Fix previous change.
7570
89e09428
JR
75712009-02-08 Jason Rumney <jasonr@gnu.org>
7572
7573 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7574 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7575
4470a277
AS
75762009-02-07 Andreas Schwab <schwab@suse.de>
7577
7578 * unexelf.c (unexec): Fix error message.
7579
3175b12a
AR
75802009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7581
7582 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7583 when modal window is active. (Bug #2152)
3175b12a
AR
7584 (applicationShouldTerminate:): Remove now-unneeded while loop
7585 around NSRunAlertPanel.
7586
7587 * nsmenu.m (popupSession): New file-global variable.
7588 (pop_down_menu): End the popupSession before closing dialog.
7589 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7590 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7591 don't query NSApp for events (just sleep instead).
7592
8434d0b8
EZ
75932009-02-07 Eli Zaretskii <eliz@gnu.org>
7594
51d861de
SM
7595 * coding.c (syms_of_coding) <translation-table-for-input>:
7596 Modify doc string to discourage use for character code unification.
8434d0b8 7597
aa82edfd
CY
75982009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7599
7600 * atimer.c (run_timers): Update pending_atimers.
7601
2d283c7c
CY
76022009-02-06 Chong Yidong <cyd@stupidchicken.com>
7603
eb306cab
CY
7604 * image.c (svg_load_image): Fix last change.
7605
2d283c7c
CY
7606 * xfns.c (Fx_create_frame): Signal an error if no font is
7607 found (Bug#2147).
7608
4d8e170e
JB
76092009-02-05 Juanma Barranquero <lekktu@gmail.com>
7610
7611 * character.c (syms_of_character) <script-representative-chars>:
7612 Fix typo in docstring.
7613
c96169a0
AR
76142009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7615
7616 * nsmenu.m (pop_down_menu): New function.
7617 (ns_popup_dialog): Call it on unwind.
7618 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7619 call timer_check() (Bug#2154).
7620 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7621 handling_signal is set.
7622 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7623
31fd7c5c 7624 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7625
7626 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7627
7628 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7629
51d861de
SM
7630 * keyboard.c (poll_for_input_1, handle_async_input):
7631 Set handling_signal under HAVE_NS.
c96169a0 7632
aacd8ba1
GM
76332009-02-04 Glenn Morris <rgm@gnu.org>
7634
7635 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7636
4cb75c4b
KH
76372009-02-04 Kenichi Handa <handa@m17n.org>
7638
7639 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7640
7641 * charset.c (Fchar_charset): New optional arg restriction.
7642
7643 * coding.h (coding_system_charset_list): Extern it.
7644
7645 * coding.c (coding_system_charset_list): New function.
7646
7647 * composite.c: Include coding.h and termhooks.h.
7648 (composition_gstring_p): Fix for the terminal case.
7649 (composition_gstring_width): Likewise.
7650 (fill_gstring_body): Likewise.
7651 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7652 the frame.
7653 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7654 is within a composition.
867d4bb3 7655 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7656
7657 * term.c (encode_terminal_code): Fix handling of composition.
7658 (produce_composite_glyph): For static composition, get pixel_width
7659 from struct composition.
7660
826ba17e
AS
76612009-02-02 Andreas Schwab <schwab@suse.de>
7662
7663 * unexelf.c (unexec): Handle unaligned bss offset.
7664
8ad093db
AR
76652009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7666
7667 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7668 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7669
8ad093db
AR
7670 * keyboard.c (handle_interrupt): Don't call
7671 quit_throw_to_read_char() under NS.
d0a76a6e 7672
8ad093db
AR
7673 * blockinput.h: Remove NS-specific code.
7674
4d18a7a2
DN
76752009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7676
db878925
DN
7677 * dispnew.c (window_change_signal): Don't try to get the size of a
7678 suspended tty frame.
7679 * term.c (Fresume_tty): Resize if the size has changed while the
7680 tty was suspended.
7681
4d18a7a2
DN
7682 * alloc.c (mark_stack): Properly conditionalize previous change.
7683
8984df7c
JB
76842009-01-30 Juanma Barranquero <lekktu@gmail.com>
7685
7686 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7687 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7688 Remove; this code is not used on Windows.
7689
75f4f1ac
EZ
76902009-01-30 Eli Zaretskii <eliz@gnu.org>
7691
7692 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7693 EOLs that also has stray ^M characters.
7694
07a1e794
JB
76952009-01-30 Juanma Barranquero <lekktu@gmail.com>
7696
7697 * atimer.c (run_timers, alarm_signal_handler):
7698 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7699 * w32inevt.c (w32_console_read_socket):
7700 * w32term.c (w32_read_socket):
7701 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7702
a8b11cc9
CY
77032009-01-30 Chong Yidong <cyd@stupidchicken.com>
7704
7705 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7706 Initialize it as a relative filename pattern.
7707 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7708 (Fcall_process_region): Simplify temp file creation using
7709 temporary-file-directory.
7710
c279587b
EZ
77112009-01-29 Eli Zaretskii <eliz@gnu.org>
7712
7713 * msdos.c: Rename pending_signals to msdos_pending_signals.
7714 (sig_suspender, sigprocmask): Adjust.
7715
a8fe3242
CY
77162009-01-29 Chong Yidong <cyd@stupidchicken.com>
7717
7718 * keyboard.c (pending_signals): New var.
7719 (poll_for_input, input_available_signal, init_keyboard): Set it.
7720 (process_pending_signals): New function.
7721
7722 * lisp.h (QUIT): Check pending_signals instead of
7723 interrupt_input_pending. Use process_pending_signals.
7724
51d861de 7725 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7726
51d861de 7727 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7728
7729 * sysdep.c (emacs_write): Use process_pending_signals.
7730
7731 * xterm.c (XTread_socket): Update pending_signals.
7732
7733 * w32term.c (w32_read_socket): Update pending_signals.
7734
7735 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7736
6570a1c4
KH
77372009-01-29 Kenichi Handa <handa@m17n.org>
7738
7739 * xftfont.c (xftfont_has_char): New function.
7740 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7741
d72a4afa
AR
77422009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7743
7744 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7745 under GNUstep.
7746 (ns_query_color): New declaration.
7747
7748 * nsterm.m (ns_confirm_quit): New variable.
7749 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7750 (EmacsApp-applicationShouldTerminate:): Use it.
7751 (EmacsPrefsController): Let user set it.
7752 (ns_query_color): New function.
7753 (ns_defined_color): Use it.
7754 (ns_initialize): Drop.
7755 (ns_term_init): Add two lines from ns_initialize(), and set
7756 input_interrupt_mode to nil.
7757
7758 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7759 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7760
9fe78804
KH
77612009-01-28 Kenichi Handa <handa@m17n.org>
7762
7763 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7764 (fontset_get_font_group): Remember that no font-group is specified
7765 for C.
9fe78804 7766
fa57de36
CY
77672009-01-27 Chong Yidong <cyd@stupidchicken.com>
7768
930600e9
CY
7769 * fns.c (concat): Check for string overflow (bug#1787).
7770
fa57de36
CY
7771 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7772 Quadruple undo limits (bug#1501).
7773
7179ce7b
KH
77742009-01-27 Kenichi Handa <handa@m17n.org>
7775
7776 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7777 directly use GT_Get_Char_index.
7778
7779 * xftfont.c (struct xftfont_info): New member `index'.
7780
7781 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7782 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7783
5be8fcc0
CY
77842009-01-26 Kenichi Handa <handa@m17n.org>
7785
7786 * fontset.c (fontset_find_font): Fix handling of non-cons return
7787 value of fontset_get_font_group.
7788 (fontset_font): Revert last change.
7789
19ae3e61
JR
77902009-01-26 Jason Rumney <jasonr@gnu.org>
7791
7792 * w32font.c (w32font_list_internal): Return quickly if registry is
7793 unknown. Simplify final return.
7794 (add_font_entity_to_list): Break complex logic down into more
7795 manageable chunks. Move unknown registry check to
7796 w32font_list_internal.
7797
8612b71a
AR
77982009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7799
7800 Changes to remove Feval calls from GUI under NS.
7801
d8038940
JB
7802 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7803 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7804 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7805
7806 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7807 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7808 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7809 instead of NON_ASCII_KEYSTROKE_EVENT.
7810 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7811 (EmacsApp-applicationShouldTerminate:): Query user.
7812 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7813 instead of Feval.
7814
7815 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7816
7817 * keyboard.c (kbd_buffer_get_event): Check for it.
7818 (keys_of_keyboard): Define lispy keys for
7819 ns-put/unput-working-text.
7820
7821 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7822 versions.
7823 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7824
6288ae55
CY
78252009-01-25 Chong Yidong <cyd@stupidchicken.com>
7826
7827 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7828 setting current_buffer directly. (Bug#2044)
6288ae55 7829
289e7f8f
CY
78302009-01-24 Chong Yidong <cyd@stupidchicken.com>
7831
5ce87308 7832 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7833 any work. (Bug#1952, bug#1990).
5ce87308 7834
64cc3cf6 7835 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7836
b3243e6f
AR
78372009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7838
7839 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7840 (ns_no_defaults): New declaration.
7841 (main): Use it.
e0d2e69a 7842
d900b2af 7843 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7844
d900b2af 7845 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7846
d900b2af
AR
7847 * nsterm.m (ns_no_defaults): New variable.
7848 (ns_initialize): Don't read defaults when ns_no_defaults.
7849 (EmacsView-readSelectionFromPasteboard:)
7850 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7851 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7852 (ns_dumpglyphs_stretch): New function.
7853 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7854 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7855
e0d2e69a
AR
7856 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7857
3ac71f5d
CY
78582009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7859
7860 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7861 call for Sparc64.
7862
3fe53a83
AR
78632009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7864
7865 * nsfns.m:
7866 * nsgui.h:
7867 * nsmenu.m:
7868 * nsselect.m:
7869 * nsterm.h:
7870 * nsterm.m: Remove '23' comments that indicated code added during
7871 update from emacs-20 -> emacs-23.
7872
10f87c6f 78732009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7874
7875 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7876 ns_alternate_modifier. (Bug#1217)
a3b53a85 7877
c7cef62d
AR
7878 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7879 Display all shortcuts, including those w/o super modifier.
7880
575fb8bd
AR
7881 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7882
918b848b
CY
78832009-01-22 Chong Yidong <cyd@stupidchicken.com>
7884
7885 * fileio.c (Vwrite_region_post_annotation_function)
7886 (Vwrite_region_annotation_buffers): New vars.
7887 (build_annotations_unwind): Just reset
7888 Vwrite_region_annotation_buffers.
7889 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7890 Call write-region-post-annotation-function.
7891 (build_annotations): Add to Vwrite_region_annotation_buffers if
7892 buffer changes.
7893
a39e2539
AR
78942009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7895
7896 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7897 Tiger.
51d861de
SM
7898 * nsfns.m (ns_do_applescript):
7899 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7900
35ed44db
AR
79012009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7902
7903 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7904
cbe0b5bf
AR
79052009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7906
7907 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7908
6049d3a0
AR
7909 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7910
7911 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7912 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7913 handle Ctrl-tab. (Bug#1841)
7914 (ns_get_color): Use unsigned long long for scanned hex string value.
7915 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7916 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7917 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7918 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7919 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7920 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7921 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7922
d3810c21 7923 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7924 DPI. (Bug#1316)
d3810c21
AR
7925 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7926 values in onTiger section.
4c7077c3 7927
e301e634
CY
79282009-01-19 Chong Yidong <cyd@stupidchicken.com>
7929
7f82490b
CY
7930 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7931 Check return value of font_spec_from_name.
64cc3cf6 7932 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7933
7934 * font.c (font_spec_from_name): Return Qnil if font name could not
7935 be parsed.
7936 (font_parse_name): Treat a `?' character as part of an XLFD.
7937
e301e634
CY
7938 * fns.c (Fsubstring): Doc fix.
7939
1c0db158
KH
79402009-01-19 Kenichi Handa <handa@m17n.org>
7941
51d861de 7942 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7943 (ftfont_list): Likewise.
7944
acf20901
JB
79452009-01-18 Juanma Barranquero <lekktu@gmail.com>
7946
fff4e459
JB
7947 * dbusbind.c (Fdbus_register_signal):
7948 * process.c (conv_sockaddr_to_lisp):
7949 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7950
acf20901
JB
7951 * callproc.c (Fgetenv_internal): Doc fix.
7952
e7abcdfb
CY
79532009-01-16 Chong Yidong <cyd@stupidchicken.com>
7954
7955 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7956 it is not even used.
7957
b60861e6
GM
79582009-01-16 Glenn Morris <rgm@gnu.org>
7959
7960 * font.c (Ffont_variation_glyphs): Silence compiler.
7961
8db52afe
JB
79622009-01-15 Juanma Barranquero <lekktu@gmail.com>
7963
7964 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7965 Reported by David Robinow <drobinow@gmail.com>.
7966
4cddb209
KH
79672009-01-15 Kenichi Handa <handa@m17n.org>
7968
51d861de 7969 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7970
f247f67b
JR
79712009-01-14 Jason Rumney <jasonr@gnu.org>
7972
7973 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7974 never a fontset. (Bug#1562)
f247f67b 7975
f56a4450
KH
79762009-01-14 Kenichi Handa <handa@m17n.org>
7977
7978 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7979 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7980
4e99855e
CY
79812009-01-13 Chong Yidong <cyd@stupidchicken.com>
7982
7983 * font.c (font_clear_prop): If clearing the family, clear the font
7984 width index too.
7985
fff4e459 7986 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7987
24f01470
JB
79882009-01-12 Juanma Barranquero <lekktu@gmail.com>
7989
7990 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7991 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7992 functions, use sizeof.
7993
a41240a3
MR
79942009-01-12 Martin Rudalics <rudalics@gmx.at>
7995
7996 * keyboard.c (read_char): Fix case where last_nonmenu_event
7997 returned a bad value with submenus. (Bug#447)
7998
944636b8
CY
79992009-01-12 Chong Yidong <cyd@stupidchicken.com>
8000
8001 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8002 family, clear the font width index too.
8003
0dad7c6f
JR
80042009-01-11 Jason Rumney <jasonr@gnu.org>
8005
8006 * keyboard.c (cmd_error_internal): Exit when errors occur before
8007 frame creation and not in daemon mode. (Bug#1836)
8008
7c2363af
CY
80092009-01-10 Chong Yidong <cyd@stupidchicken.com>
8010
8011 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8012 of a display vector, backtrack.
8013 (try_window_reusing_current_matrix): Check glyph type before
8014 referencing charpos member.
8015
97b1b294
EZ
80162009-01-10 Eli Zaretskii <eliz@gnu.org>
8017
8018 Fix Bug #876:
8019
8020 * coding.c (inhibit_null_byte_detection): New variable.
8021 (detect_coding, detect_coding_system): Don't pay attention to null
8022 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8023 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8024 <inhibit-iso-escape-detection>: Doc fix.
8025
4624b6e3
JR
80262009-01-09 Jason Rumney <jasonr@gnu.org>
8027
8028 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8029 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8030 Only report Unicode Plane 2 fonts as unicode-sip.
8031
323b840c
CY
80322009-01-09 Chong Yidong <cyd@stupidchicken.com>
8033
51d861de
SM
8034 * xfaces.c (Fx_font_family_list): Delete function.
8035 Move compatibility version to faces.el.
323b840c 8036
51d861de 8037 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8038
eba7400d
MR
80392009-01-09 Martin Rudalics <rudalics@gmx.at>
8040
8041 * frame.c (x_set_frame_parameters): Remember requested value for
8042 fullscreen before it's reset by the parameter handler.
8043
4b09796d
GM
80442009-01-09 Glenn Morris <rgm@gnu.org>
8045
8046 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8047 (last_command_event): ... and update all users.
4b09796d
GM
8048 (last_input_char): For clarity, rename to...
8049 (last_input_event): ... and update all users.
8050 (last-command-char, last-input-char): Move to subr.el as aliases.
8051 * cmds.c, commands.h: Update for last_command_char rename.
8052
14ccea62
CY
80532009-01-08 Chong Yidong <cyd@stupidchicken.com>
8054
51d861de 8055 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8056
5f004711
JR
80572009-01-08 Jason Rumney <jasonr@gnu.org>
8058
8059 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8060 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8061 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8062 Don't declare.
fff4e459 8063 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8064 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8065
b71f6f73
KH
80662009-01-07 Kenichi Handa <handa@m17n.org>
8067
50b06221 8068 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8069 remember the coding system used for decoding in
50b06221
KH
8070 coding_system (Bug#1039).
8071
b71f6f73 8072 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8073 breaking the loop. (Bug#870)
b71f6f73
KH
8074 (decode_coding_utf_16, decode_coding_emacs_mule)
8075 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8076 (decode_coding_charset): Likewise.
8077
56f668f7
MR
80782009-01-05 Martin Rudalics <rudalics@gmx.at>
8079
8080 * frame.c (x_set_frame_parameters): Make sure height (width) get
8081 applied when fullwidth (fullheight) is set. (Bug#1522)
8082
5da9424d
JB
80832009-01-04 Juanma Barranquero <lekktu@gmail.com>
8084
8085 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8086 (utc_base): Declare as ULONGLONG, not long double.
8087 (convert_time_raw): Delete.
8088 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8089 (initialize_utc_base): New function.
8090 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8091 (convert_from_time_t): Use initialize_utc_base; compute result with
8092 64-bit arithmetic.
8093 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8094
c4605e09
EZ
80952009-01-03 Eli Zaretskii <eliz@gnu.org>
8096
9acef61c 8097 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8098 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8099 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8100 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8101 [!subprocesses]: Define.
8102 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8103 (Flist_system_processes, Fsystem_process_attributes)
8104 [!subprocesses]: Call list_system_processes and
8105 system_process_attributes instead of returning Qnil.
8106
9acef61c
JB
8107 * dosfns.c (system_process_attributes, list_system_processes):
8108 New functions.
c4605e09
EZ
8109
8110 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8111
8112 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8113 Don't use the default (no-op) implementation.
8114
8b7d0a16
JR
81152009-01-03 Jason Rumney <jasonr@gnu.org>
8116
a6d46bc1
JR
8117 * keyboard.c (parse_modifiers_uncached): Wheel events are
8118 clicks (bug#687).
8119
8b7d0a16
JR
8120 * w32term.c (x_query_colors, x_query_color): New functions.
8121
8122 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8123 (svg_load_image): Cast returned pointers from dynamically loaded
8124 functions. Eliminate W32 specific code.
8125
bfe11752
DN
81262009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8127
89e2438a
DN
8128 * nsfns.m (x_set_foreground_color, x_set_background_color)
8129 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8130 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8131 x_ prefix instead of ns_. Update references.
8132 (syms_of_nsfns): Add a FIXME comment.
8133
8134 * nsterm.m (x_set_cursor_type): New prototype.
8135 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8136
bfe11752
DN
8137 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8138 for Solaris instead of incorrectly providing Qutime and Qcutime.
8139
031da700
EZ
81402009-01-02 Eli Zaretskii <eliz@gnu.org>
8141
8142 * w32.c (process_times): Compute sum of utime and stime.
8143 (system_process_attributes): Add Qtime to the alist.
8144
8145 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8146 and add them to the alist.
8147
8148 * process.c (top level) <Qtime, Qctime>: New variables.
8149 (syms_of_process): staticpro them.
8150 (Fsystem_process_attributes): Add their documentation to the doc
8151 string.
8152
8153 * process.h: Declare Qtime and Qctime.
8154
df23bf08
JR
81552009-01-02 Jason Rumney <jasonr@gnu.org>
8156
9acef61c 8157 * image.c (Qgobject): New symbol.
df23bf08
JR
8158 (syms_of_image): Initialize it.
8159 (init_svg_functions): Load some functions from gobject library.
8160
5bbdf7aa
DN
81612009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8162
8163 * frame.c (make_terminal_frame): Remove redundant code and useless
8164 block.
8165
63136da6
AS
81662009-01-01 Andreas Schwab <schwab@suse.de>
8167
8168 * process.c (conv_sockaddr_to_lisp): Add workaround for
8169 getsockname bug on BSD.
8170
9ef69046
CY
81712009-01-01 Chong Yidong <cyd@stupidchicken.com>
8172
d6fafbe0
CY
8173 * xfns.c (x_create_tip_frame): Set border width of the X window.
8174
51d861de 8175 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8176
f9c34147
JR
81772009-01-01 Jason Rumney <jasonr@gnu.org>
8178
9acef61c 8179 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8180 Don't block input, as per earlier xterm.c changes.
8181
f5497e45
AR
81822008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8183
8184 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8185 (ns_appkit_version_int): New function.
8186 (x-server-version): Use ns_appkit_version_int and follow 21+
8187 convention of returning 3 integers.
8188
c19cab20
KH
81892008-12-30 Kenichi Handa <handa@m17n.org>
8190
8191 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8192 (CHAR_SURROGATE_PAIR_P): New macro.
8193
8194 * font.h (struct font_driver): New member get_variation_glyphs.
8195
9acef61c 8196 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8197 (Ffont_variation_glyphs): New function.
8198 (syms_of_font): Defsubr it.
8199
8200 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8201 ftfont_variation_glyphs.
8202 (setup_otf_gstring): New function.
8203 (ftfont_drive_otf): Use it.
8204 (ftfont_shape_by_flt): Handle variation selector.
8205 (ftfont_variation_glyphs): New function.
8206
28cd591f
MR
82072008-12-30 Martin Rudalics <rudalics@gmx.at>
8208
8209 * frame.c (Vemacs_iconified): Remove.
8210
7f714baf
JR
82112008-12-30 Jason Rumney <jasonr@gnu.org>
8212
8213 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8214 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8215
9d2d22ab
CY
82162008-12-30 Chong Yidong <cyd@stupidchicken.com>
8217
8218 * indent.c (Fvertical_motion): Don't advance iterator if we have
8219 reseated to the desired position.
8220
8221 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8222 checking for pos match.
8223
545312c2
KH
82242008-12-30 Kenichi Handa <handa@m17n.org>
8225
1ede3eb6
KH
8226 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8227 just get the low 8-bit of the code.
8228
545312c2
KH
8229 * font.c (font_intern_prop): Validate str as multibyte.
8230
bd7bbf29
DN
82312008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8232
31e0750e
DN
8233 * dispextern.h (struct face): Move lface and hash from the middle
8234 of bitfields.
8235
bd7bbf29
DN
8236 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8237
b5672e7c
DN
82382008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8239
8240 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8241 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8242 instead of intervals.h.
8243
d704470f
AS
82442008-12-26 Andreas Schwab <schwab@suse.de>
8245
8246 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8247 cons.
8248
54b33868
MR
82492008-12-26 Martin Rudalics <rudalics@gmx.at>
8250
8251 * textprop.c (Qminibuffer_prompt): New variable.
8252 (syms_of_textprop): Initialize it.
8253 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8254 in minibuffer-prompt face. (Bug#1662)
8255
40b615d6
JR
82562008-12-25 Jason Rumney <jasonr@gnu.org>
8257
8258 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8259
baae5c2d
JR
82602008-12-24 Jason Rumney <jasonr@gnu.org>
8261
8262 * ralloc.c (r_alloc_reset_variable): New function.
8263
8264 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8265 record of what points where. (Bug#716)
baae5c2d 8266
a9051c88
DN
82672008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8268
8269 * minibuf.c (read_minibuf): Follow the non-interactive case when
8270 running as a daemon, before detaching.
8271
8b146312
AS
82722008-12-22 Andreas Schwab <schwab@suse.de>
8273
8274 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8275 * gtkutil.c (free_widget_value): Use xfree instead of free.
8276
56f2de10
MR
82772008-12-22 Martin Rudalics <rudalics@gmx.at>
8278
8279 * frame.c (delete_frame): New function derived from
8280 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8281 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8282 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8283 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8284 * frame.h: Extern delete_frame.
8285 * window.c (window_loop):
8286 * terminal.c (delete_terminal):
8287 * xterm.c (x_connection_closed):
8288 * xfns.c (Fx_hide_tip):
9acef61c 8289 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8290
1fc200d6
JR
82912008-12-21 Jason Rumney <jasonr@gnu.org>
8292
8293 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8294 when character maps to .notdef character.
8295
5e252df2
SM
82962008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8297
8298 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8299
99b72cc4
JR
83002008-12-20 Jason Rumney <jasonr@gnu.org>
8301
8302 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8303 a graphical frame on Windows. (Bug#1325)
99b72cc4 8304
acc49a52
JD
83052008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8306
8307 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8308
6ea15123
CY
83092008-12-20 Chong Yidong <cyd@stupidchicken.com>
8310
8311 * minibuf.c (Fread_buffer): Doc fix.
8312
b2dab6c8
JR
83132008-12-20 Jason Rumney <jasonr@gnu.org>
8314
54ea0c87 8315 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8316 server name in UNC paths. (Bug#719)
54ea0c87 8317
b2dab6c8 8318 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8319 charbuf. (Bug#1035)
b2dab6c8 8320
6d1921be
DN
83212008-12-19 Daniel Engeler <engeler@gmail.com>
8322
8323 * sysdep.c (serial_configure): Fix typo.
8324
53934c98
DN
83252008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8326
8327 * sysdep.c: Include alloca.h.
f4f634e8
DN
8328 (system_process_attributes): Add implementation for Solaris.
8329
8330 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8331
06e111a6
DN
83322008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8333
8334 Reorganize implementation of Flist_system_processes and
8335 Fsystem_process_attributes. No functional changes.
8336 * process.c: Don't #include pwd.h, grp.h and limits.h.
8337 (Flist_system_processes): Just call list_system_processes.
8338 (Fsystem_process_attributes): Just call system_process_attributes.
8339 (procfs_list_system_processes, time_from_jiffies)
8340 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8341 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8342
8343 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8344 (list_system_processes): Rename from
8345 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8346 Provide a do nothing implementation.
8347 (system_process_attributes): Rename from
8348 procfs_list_system_processes.
8349 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8350 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8351
8352 * w32.c (list_system_processes): Rename from
8353 w32_list_system_processes.
8354 (system_process_attributes): Rename from
8355 w32_system_process_attributes.
8356
8357 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8358
8359 * process.h (w32_list_system_processes)
8360 (w32_system_process_attributes): Remove.
362654a6
JB
8361 (list_system_processes, system_process_attributes):
8362 New prototypes.
06e111a6 8363
6a705b23
KH
83642008-12-19 Kenichi Handa <handa@m17n.org>
8365
8366 * xfont.c (xfont_decode_coding_xlfd): New function.
8367 (xfont_encode_coding_xlfd): New function.
8368 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8369 (xfont_list): Decode and encode XLFD by iso-8859-1.
8370 (xfont_match): Likewise.
8371 (xfont_list_family): Likewise.
8372 (xfont_open): Likewise.
8373
d66c0241 8374 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8375 names are utf-8.
8376
d66c0241 8377 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8378 names are utf-8.
8379
5a130941
JD
83802008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8381
8382 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8383 changed.
bfd20325
JD
8384 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8385 clicked on a detached tool bar button.
5a130941 8386
fd95644b
DN
83872008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8388
8389 * emacs.c (main): Print and error and exit when no data is read
8390 from the pipe.
8391
e6eee6ae
JR
83922008-12-17 Jason Rumney <jasonr@gnu.org>
8393
8394 * w32font.c (w32font_has_char): Always return -1.
8395
a35dd56b
KH
83962008-12-16 Kenichi Handa <handa@m17n.org>
8397
8398 * font.c (font_open_entity): Fix previous change.
8399
0e3635c2
DN
84002008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8401
8402 * process.c: Include <limits.h>.
8403
d4835507 84042008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8405
8406 * font.c (font_update_drivers): Fix mistake in reconstructing the
8407 driver list.
8408
84092008-12-16 Chong Yidong <cyd@stupidchicken.com>
8410
8411 * font.c (font_clear_cache): Fix format of font cache data.
8412
e2cbc401
CY
84132008-12-15 Chong Yidong <cyd@stupidchicken.com>
8414
8415 * xftfont.c (xftfont_open): Free Xft font pattern if
8416 XftFontOpenPattern fails.
8417
8418 * xterm.c (x_free_frame_resources): Remove extraneous call to
8419 free_frame_faces.
8420
b131d535
CY
84212008-12-13 Chong Yidong <cyd@stupidchicken.com>
8422
8423 * xterm.c (x_delete_display): Move xim_close_dpy call to
8424 x_delete_terminal.
8425 (x_delete_terminal): Call xim_close_dpy.
8426
e6df5336
JR
84272008-12-13 Jason Rumney <jasonr@gnu.org>
8428
8429 * w32font.c (intern_font_name): New function.
8430 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8431 (w32font_open_internal, Fx_select_font): Decode font name.
8432 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8433
8434 * w32font.h (intern_font_name): Declare new function.
8435
8436 * w32uniscribe.c (add_opentype_font_name_to_list):
8437 Use intern_font_name.
8438
20d68145
CY
84392008-12-13 Chong Yidong <cyd@stupidchicken.com>
8440
9f2554de
CY
8441 * frame.c (Fdelete_frame): Call free_font_driver_list.
8442
3d9bec9a
CY
8443 * font.c (free_font_driver_list): Implement missing function.
8444
20d68145
CY
8445 * w32term.c (w32_term_init): Don't initialize the image cache
8446 here; it will be done in init_frame_faces.
8447
8448 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8449 (struct x_display_info): Remove unused member null_pixel. New
8450 member xim_callback_data.
8451
8452 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8453 (xim_initialize): Save pointer to callback function data.
8454 (xim_close_dpy): Free callback function data. Call XCloseIM,
8455 reverting 2008-11-04 change by David Smith.
8456 (x_term_init): Don't initialize the image cache here; it will be
8457 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8458 (x_delete_display): Free x_dnd_atoms member.
8459
96f9306b
KH
84602008-12-13 Kenichi Handa <handa@m17n.org>
8461
6dec9044
JB
8462 * font.c (font_rescale_ratio): Moved from xfaces.c.
8463 Argument type changed. Handle a font-spec too.
96f9306b 8464 (font_score): Check Vface_font_rescale_alist.
6dec9044 8465 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8466
8467 * xfaces.c (font_rescale_ratio): Moved to font.c.
8468
8d5b4964
CY
84692008-12-13 Chong Yidong <cyd@stupidchicken.com>
8470
8471 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8472
e6df5336
JR
84732008-12-12 Jason Rumney <jasonr@gnu.org>
8474
8475 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8476 Vwindow_system_version to the real w32 major version.
8477
97c6058a
DN
84782008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8479
8480 * term.c (init_tty): Move setting the terminal name before the
8481 potential user: maybe_fatal.
8482
ec4e88d7
CY
84832008-12-11 Chong Yidong <cyd@stupidchicken.com>
8484
d4835507
JB
8485 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8486 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8487
b4233ec9
JR
84882008-12-11 Jason Rumney <jasonr@gnu.org>
8489
8ec71e23 8490 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8491 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8492
b4233ec9 8493 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8494 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8495
011a0143
JB
84962008-12-11 Juanma Barranquero <lekktu@gmail.com>
8497
8498 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8499
3c309f34
JB
85002008-12-11 Juanma Barranquero <lekktu@gmail.com>
8501
8502 * process.c (Fsystem_process_attributes, syms_of_process):
8503 Fix typo in name of Ssystem_process_attributes.
8504 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8505
fedc6ab5
JB
85062008-12-11 Juanma Barranquero <lekktu@gmail.com>
8507
8508 * syntax.c (Fmodify_syntax_entry): Doc fix.
8509
ba3de0e8
JB
85102008-12-10 Juanma Barranquero <lekktu@gmail.com>
8511
8512 * font.c (Ffont_spec): Move usage to end of docstring.
8513
174f1c74
JR
85142008-12-10 Jason Rumney <jasonr@gnu.org>
8515
8516 * w32font.c (Qcham): New symbol.
8517 (font_supported_scripts): Add cham, and comments for other new
8518 scripts in bitfield from OpenType spec.
9d32f818
JR
8519 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8520 contain characters beyond the bmp.
174f1c74 8521
7b649478
KH
85222008-12-10 Kenichi Handa <handa@m17n.org>
8523
8524 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8525 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8526 Qunicode_sip.
8527
2133e2d1
JB
85282008-12-10 Juanma Barranquero <lekktu@gmail.com>
8529
8530 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8531 (Fcoding_system_put): Use QCdefault_char.
8532 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8533
9af886ee
CY
85342008-12-09 Chong Yidong <cyd@stupidchicken.com>
8535
74d819eb
CY
8536 * xftfont.c (syms_of_xftfont): Fix typo.
8537
4ccfa1c0 8538 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8539
7c19d3ae
DN
85402008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8541
8542 * emacs.c (main): Close daemon_pipe on exec.
8543
567826bb
CY
85442008-12-08 Chong Yidong <cyd@stupidchicken.com>
8545
8546 * termchar.h (struct tty): New members termcap_term_buffer and
8547 termcap_strings_buffer.
8548
8549 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8550 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8551 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8552 All callers changed.
8553 (init_tty): Store termcap data and string buffers in new struct
8554 tty members termcap_term_buffer and termcap_strings_buffer.
8555 (delete_tty): Free them.
4ccfa1c0 8556 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8557
aa96c42b
SZ
85582008-12-07 Seiji Zenitani <zenitani@mac.com>
8559
8560 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8561 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8562
b7e1d896
CY
85632008-12-06 Chong Yidong <cyd@stupidchicken.com>
8564
8565 * coding.c (make_conversion_work_buffer): Disable buffer
8566 modification hooks in the work buffer.
8567
b5ec91a5
EZ
85682008-12-05 Eli Zaretskii <eliz@gnu.org>
8569
8570 * process.c (procfs_system_process_attributes): If `nread' has a
8571 negative value, assign zero to it.
8572
a5d2a52b
CY
85732008-12-05 Chong Yidong <cyd@stupidchicken.com>
8574
68c5540b 8575 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8576
7bf1bb21
KH
85772008-12-05 Kenichi Handa <handa@m17n.org>
8578
8579 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8580 second character is a combining character.
8581
2fdc7d00
EZ
85822008-12-05 Eli Zaretskii <eliz@gnu.org>
8583
8584 * process.c (procfs_system_process_attributes): Don't use cmd,
8585 cmdsize, and q without initializing them first.
8586
bf6bfba8
JR
85872008-12-04 Jason Rumney <jasonr@gnu.org>
8588
8589 * w32font.c (w32font_draw): Initialize orig_clip before getting
8590 it, and delete it when finished.
8591
a3b1a468
DN
85922008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8593
8594 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8595 case when running as a daemon before detaching.
8596
8b8be8eb
JB
85972008-12-03 Juanma Barranquero <lekktu@gmail.com>
8598
805f2638 8599 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8600
b1bde622
KH
86012008-12-03 Kenichi Handa <handa@m17n.org>
8602
e500c47d
KH
8603 * font.c (font_at): Set `multibyte' at first.
8604
ca516334
KH
8605 * coding.c (decode_coding_charset): Check type of an element of
8606 vector VALIDS.
7bf1bb21 8607 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8608
4ccfa1c0 8609 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8610 (font_for_char): Likewise.
8611
1e5ecd37
CY
86122008-12-03 Chong Yidong <cyd@stupidchicken.com>
8613
d5b01609 8614 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8615 (font_update_lface): Handle fonts with corrupted size specs,
8616 i.e. non-int and non-float.
d5b01609 8617
11e3a6e4 8618 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8619 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8620 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8621
ab06788b
CY
8622 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8623
1e5ecd37 8624 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8625 underline_minimum_offset for underline position.
1e5ecd37 8626
63c125ab
DN
86272008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8628
8629 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8630
8631 * character.c (c_string_width): Specify the type for LEN.
8632
3a8406e1
KH
86332008-12-03 Kenichi Handa <handa@m17n.org>
8634
4ccfa1c0 8635 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8636 (decode_coding_utf_8): Likewise.
4ccfa1c0 8637 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8638 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8639
651df7d9
CY
86402008-12-02 Chong Yidong <cyd@stupidchicken.com>
8641
8642 * keyboard.c (make_lispy_position): Only use PT if the selected
8643 window is current.
8644
1f625c6c
AS
86452008-12-02 Andreas Schwab <schwab@suse.de>
8646
f7741ce9
AS
8647 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8648
1f625c6c
AS
8649 * doprnt.c (doprnt1): Fix size of charbuf.
8650
92bc2678
CY
86512008-12-02 Chong Yidong <cyd@stupidchicken.com>
8652
8653 * keyboard.c (timer_check): Revert last change.
8654
93b9e8cc
JB
86552008-12-02 Juanma Barranquero <lekktu@gmail.com>
8656
8657 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8658
fd7a37d5
JB
86592008-12-01 Juanma Barranquero <lekktu@gmail.com>
8660
8661 * makefile.w32-in: Update dependencies.
8662 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8663
c115043b
AS
86642008-12-01 Andreas Schwab <schwab@suse.de>
8665
8666 * font.c (register_font_driver): Use xmalloc.
8667 (font_put_frame_data): Likewise.
8668
f5668d2a
CY
86692008-12-01 Chong Yidong <cyd@stupidchicken.com>
8670
860d96be
CY
8671 * xfaces.c (realize_x_face): Make abort condition clearer.
8672
f5668d2a
CY
8673 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8674
379c17e7
CY
86752008-11-30 Chong Yidong <cyd@stupidchicken.com>
8676
8677 * keyboard.c (timer_check): After a timer runs, ensure that the
8678 selected window's buffer is current.
8679
35f36d65
JB
86802008-11-30 Juanma Barranquero <lekktu@gmail.com>
8681
f952c61c
JB
8682 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8683 It was accidentally restored by the Unicode merge.
8684
35f36d65
JB
8685 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8686
b23077df
JB
86872008-11-29 Juanma Barranquero <lekktu@gmail.com>
8688
8689 * w32proc.c: Include "coding.h".
8690 (Fw32_short_file_name): Encode filename passed to Windows API.
8691 (Fw32_long_file_name): Encode filename passed to Windows API and
8692 decode back the result. (Bug#1433)
8693
b8ebe9dd
KH
86942008-11-29 Kenichi Handa <handa@m17n.org>
8695
8cc53f96
KH
8696 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8697 not before accessing it.
8698
b8ebe9dd
KH
8699 * charset.c (Fdefine_charset_internal): After calculating
8700 min_char, max_char, and fastmap, copy the charset structure again.
8701 (encode_char): Fix the previous change.
8702
59bc82c0
SZ
87032008-11-28 Seiji Zenitani <zenitani@mac.com>
8704
8705 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8706
8707 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8708
8709 * nsterm.m (x_set_frame_alpha): New function.
8710
32247e3d
EZ
87112008-11-27 Eli Zaretskii <eliz@gnu.org>
8712
8713 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8714
b003e5ff
JB
87152008-11-27 Juanma Barranquero <lekktu@gmail.com>
8716
8717 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8718 pointer to check_face_name.
8719
708550f5
KH
87202008-11-27 Kenichi Handa <handa@m17n.org>
8721
8722 * category.h (SET_CATEGORY_SET): Call set_category_set.
8723 (set_category_set): Extern it.
8724
8725 * category.c (hash_get_category_set): New function.
8726 (Fmodify_category_entry): Adjusted for the change of
8727 char_table_ref_and_range. Call hash_get_category_set to get a
8728 category set to store in the table.
8729
8730 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8731 Funify_charset.
8732
2ae37cf0 8733 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8734 (DECODE_CHAR): Check if the decoder vector is ready.
8735 (ENCODE_CHAR): Check if the encoder char-table is ready.
8736 (maybe_unify_char): Extern it.
8737
8738 * charset.c (Vchar_unified_charset_table): Delete it.
8739 (inhibit_load_charset_map): New variable.
8740 (temp_charset_work): New variable.
8741 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8742 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8743 New macros.
8744 (load_charset_map): Meaning of control_flag changed. If
8745 inhibit_load_charset_map is nonzero, setup a table in
8746 temp_charset_work.
8747 (load_charset): New argument control_flag.
8748 (map_charset_for_dump): New function.
8749 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8750 map_charset_for_dump.
8751 (Fdefine_charset_internal): If the charset method is MAP, load
8752 mapping tables by calling load_charset.
8753 (Funify_charset): Don't load a mapping table but directly set
8754 Vchar_unify_table.
8755 (maybe_unify_char): New function.
8756 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8757 Handle the case of inhibit_load_charset_map being nonzero.
8758 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8759 Handle the case of inhibit_load_charset_map being nonzero.
8760 (Fclear_charset_maps): Just free temp_charset_work.
8761 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8762 variable.
8763
8764 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8765 change of char_table_ref_and_range.
8766 (char_table_ref_and_range): Change the meaning of argument FROM
8767 and TO. Now the caller must provide initial values for *FROM
8768 and *TO.
8769
8770 * fontset.c (fontset_add): Adjusted for the change of
8771 char_table_ref_and_range.
8772 (fontset_get_font_group): Likewise.
8773 (Ffontset_info): Likewise.
8774
8775 * keymap.c (describe_vector): Adjusted for the change of
8776 char_table_ref_and_range. For char-table, put boundary between
8777 non-ASCII and 8-bit characters.
8778
8779 * print.c (print_object): For bool-vector, delete unnecessary
8780 check of ASCII_BYTE_P.
8781
9196133b
JR
87822008-11-26 Jason Rumney <jasonr@gnu.org>
8783
8784 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8785 leading in font height. (Bug#879)
9196133b 8786
9f688acf
GM
87872008-11-26 Glenn Morris <rgm@gnu.org>
8788
8789 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8790 redefinition with ifdef. (Bug#1383)
8791
90d19aff
AR
87922008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8793
8794 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8795
4ccfa1c0 87962008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8797
8798 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8799 New EmacsView methods.
8800 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8801 Fixes bug #1048,1357,1414.
8802
88032008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8804
8805 Fix bug #1362.
8806 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8807 is not an indexed color.
8808 * nsterm.m (free_indexed_color): Add argument checking.
8809 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8810
e7d5ecb3
CY
88112008-11-24 Chong Yidong <cyd@stupidchicken.com>
8812
8813 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8814 Document confirm-after-completion value for
8815 minibuffer-completion-confirm.
8816
c285743c
JR
88172008-11-24 Jason Rumney <jasonr@gnu.org>
8818
8819 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8820 warning.
8821
b0857706
JR
88222008-11-23 Jason Rumney <jasonr@gnu.org>
8823
8824 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8825 restored before returning.
8826
8827 * w32font.c (check_face_name): New function.
8828 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8829 fonts. (Bug#642)
b0857706 8830
ee50ff07
MR
88312008-11-22 Martin Rudalics <rudalics@gmx.at>
8832
8833 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8834 confirm-nonexistent-file-or-buffer in doc-string.
8835
b8ff72fa
SM
88362008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8837
8838 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8839 Fix copy/paste typo. Add checks.
8840
cee53ed4
KH
88412008-11-21 Kenichi Handa <handa@m17n.org>
8842
8843 * coding.c (detect_coding_iso_2022): Reject invalid composition
8844 sequence.
8845 (DECODE_COMPOSITION_START): If the current source is the last
8846 block, and the current composition doesn't end, regard this
8847 sequence as invalid.
8848 (decode_coding_iso_2022): Handle invalid composition sequence.
8849
f6ef1e65
MR
88502008-11-20 Martin Rudalics <rudalics@gmx.at>
8851
8852 * window.c (coordinates_in_window): Don't return
8853 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8854 line when the window is not the rightmost one. (Bug#1372)
8855
e08b1705
MR
88562008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8857
8858 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8859
ad98e89f
EZ
88602008-11-15 Eli Zaretskii <eliz@gnu.org>
8861
8862 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8863 and bright_bg if noninteractive is non-zero.
8864
fb098a4b
CY
88652008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8866
8867 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8868 x_draw_glyph_string_background.
8869
8870 * w32term.c (x_draw_glyph_string): Likewise.
8871
ce952b6e
CY
88722008-11-15 Chong Yidong <cyd@stupidchicken.com>
8873
8874 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8875 the next glyph string once past the overhang width.
8876
8877 * nsterm.m (ns_draw_glyph_string): Likewise.
8878
8879 * w32term.c (x_draw_glyph_string): Likewise.
8880
26ea7079
CY
88812008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8882
8883 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8884 double file close.
8885
1c33c906
MR
88862008-11-14 Martin Rudalics <rudalics@gmx.at>
8887
8888 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8889 dedicated status of window before attempting to display another
8890 buffer in it.
8891
8fc29035
JB
88922008-11-14 Juanma Barranquero <lekktu@gmail.com>
8893
8894 * msdos.c (Fmsdos_long_file_names):
8895 (syms_of_msdos) <dos-unsupported-char-glyph>:
8896 * dosfns.c (Fint86): Fix typos in docstrings.
8897
55fb4286
EZ
88982008-11-14 Eli Zaretskii <eliz@gnu.org>
8899
8900 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8901
3fda0315
KY
89022008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8903
8904 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8905
7e849c17
CY
89062008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8907
8908 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8909
8910 * frame.h: Negative alpha means "don't touch".
8911
8912 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8913
8914 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8915
b9fd67bd
DN
89162008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8917
8918 * hftctl.c:
8919 * chpdef.h:
8920 * acldef.h: Remove files used only for systems no longer supported.
8921
8922 * Makefile.in: Fix .o alphabetical ordering.
8923 (hftctl.o): Remove dependency, file removed.
8924 (keymap.o, print.o): Depend on charset.h.
8925
d5998e03
KH
89262008-11-10 Kenichi Handa <handa@m17n.org>
8927
2ae37cf0 8928 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8929
be70e183
CY
89302008-11-08 Chong Yidong <cyd@stupidchicken.com>
8931
8932 * dired.c (file_name_completion): If completion_ignore_case is
8933 enabled, ignore case when checking completion-regexp-list.
8934
7cf94eac
EZ
89352008-11-08 Eli Zaretskii <eliz@gnu.org>
8936
8937 * vm-limit.c (get_lim_data): Fix last change.
8938
ee107a89
KH
89392008-11-08 Kenichi Handa <handa@m17n.org>
8940
8941 * character.c (Fget_byte): New function.
8942 (syms_of_character): Defsubr Fget_byte.
8943
5fd15622
CY
89442008-11-07 Chong Yidong <cyd@stupidchicken.com>
8945
8946 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8947 cursor position is valid after scrolling.
8948
13d62fad
JB
89492008-11-06 Juanma Barranquero <lekktu@gmail.com>
8950
8951 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8952
a1dd2936
GM
89532008-11-06 Glenn Morris <rgm@gnu.org>
8954
8955 * xterm.c (handle_one_xevent): Don't let popup menus cause
8956 mouse-autoselect-window related window switching. (Bug#1261)
8957
860cd236
CY
89582008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8959
8960 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8961
653a3150
AS
89622008-11-04 Andreas Schwab <schwab@suse.de>
8963
8964 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8965
870f5cac
CY
89662008-11-03 Chong Yidong <cyd@stupidchicken.com>
8967
8968 * xfns.c (Fx_wm_set_size_hint): New function.
8969
1e02f3cb
MR
89702008-11-03 Martin Rudalics <rudalics@gmx.at>
8971
8972 * textprop.c (Fprevious_single_char_property_change): Return 0
8973 when there's no change in a string. (Bug#1301)
8974
e630dfc6
MR
89752008-11-02 Martin Rudalics <rudalics@gmx.at>
8976
8977 * frame.c (do_switch_frame): New argument NORECORD passed to
8978 Fselect_window.
8979 (Fselect_frame): New argument NORECORD passed to
8980 do_switch_frame.
8981 (Fset_frame_selected_window): New argument NORECORD passed to
8982 Fselect_frame.
8983 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8984 in call of do_switch_frame.
8985 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8986 Handle NORECORD argument in call of Fselect_frame.
8987 * lisp.h (do_switch_frame, Fselect_frame)
8988 (Fset_frame_selected_window): Adjust declarations.
8989 * window.c (select_frame_norecord): New function.
8990 (run_window_configuration_change_hook): Use it and call
8991 Fselect_frame with NORECORD set.
8992 (Fselect_window): Pass NORECORD to Fselect_frame.
8993 (Fset_window_configuration): Handle NORECORD argument in call of
8994 do_switch_frame.
8995 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8996 Fset_frame_selected_window.
8997 * keyboard.c (command_loop_1): Handle NORECORD in call of
8998 Fselect_frame (currently ifdefd).
8999
9020b223
GM
90002008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9001
9002 * emacs.c (USAGE2): Untabify.
9003
793ffee8
SM
90042008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9005
9006 * composite.c (fill_gstring_header): Fix copy/paste typo.
9007
ab6d1131
MR
90082008-10-31 Martin Rudalics <rudalics@gmx.at>
9009
9010 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9011 (Fother_window): Rename argument and rewrite doc-string.
9012 (select_window_norecord): Fix return value. (Bug#1276)
9013
601a9cf1
JB
90142008-10-30 Juanma Barranquero <lekktu@gmail.com>
9015
9016 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9017 new frames overriding foreground for tooltips. Based on similar patch
9018 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9019
813b0652
CY
90202008-10-29 Chong Yidong <cyd@stupidchicken.com>
9021
9022 * emacs.c (Fdaemon_initialized): Initialize nfd.
9023
4414f58f
MR
90242008-10-29 Martin Rudalics <rudalics@gmx.at>
9025
9026 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9027 (Fwindow_text_height): Clarify doc-strings.
9028 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9029 doc-string of window-scroll-functions.
9030
ecdcaa09
RS
90312008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9032
9033 * category.c (syms_of_category): Fix typo in docstring.
9034
23fe745a
JB
90352008-10-28 Juanma Barranquero <lekktu@gmail.com>
9036
9037 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9038 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9039 Fix typos in docstrings.
9040
ff808935
DN
90412008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9042
9043 * emacs.c (daemon_pipe): Make non-static.
9044 (IS_DAEMON): Move definition ...
9045 * lisp.h (IS_DAEMON): ... here.
9046 (daemon_pipe): Declare.
9047 (is_daemon): Remove.
9048 * dispnew.c (init_display): Use IS_DAEMON.
9049
fc012771
SM
90502008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9051
9052 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9053 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9054
9055 * emacs.c (is_daemon): Remove.
9056 (main): Don't set is_daemon.
9057 (IS_DAEMON): New macro.
9058 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9059 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9060 parent exits.
9061 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9062
d8bdbe6f
CY
90632008-10-27 Chong Yidong <cyd@stupidchicken.com>
9064
d1a072bf
CY
9065 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9066 over-sized glyph, draw it with the default glyph width.
9067
e2e325aa
CY
9068 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9069 glyph, draw it with the default glyph width.
9070
9071 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9072 glyph, draw it with the default glyph width.
9073
d8bdbe6f
CY
9074 * xdisp.c (try_scrolling): When computing the distance from the
9075 scroll margin to PT, try moving some distance past the window
9076 bottom before giving up.
9077
7bfac547
MR
90782008-10-27 Martin Rudalics <rudalics@gmx.at>
9079
9080 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9081 (Fset_window_buffer): Explain in doc-string that a window can be
9082 "strongly" dedicated to its buffer.
9083
4ff029f6
DN
90842008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9085
9086 * emacs.c (daemon_name): New variable.
9087 (main): Deal with --daemon=SERVER_NAME.
9088 (Fdaemonp): Return a name if one was passed to --daemon.
9089
5790ef40
DN
90902008-10-26 Romain Francoise <romain@orebokech.com>
9091
f9bd0df9 9092 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9093 (main): Create a pipe before forking, make the parent exit only after
9094 the child has closed its end of the pipe. Move closing the
9095 descriptors ...
9096 (Fdaemon_initialized): ... here. New function.
9097
f5385255
SM
90982008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9099
4d632321
SM
9100 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9101 the previous unoptimized table.
9102
f5385255
SM
9103 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9104 the distinction between non-nil and non-t value of `dedicated'.
9105
6c56a0f3
CY
91062008-10-25 Chong Yidong <cyd@stupidchicken.com>
9107
9108 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9109 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9110
fec89261
MR
91112008-10-25 Martin Rudalics <rudalics@gmx.at>
9112
9113 * window.c (Fget_buffer_window, Fdelete_windows_on)
9114 (Freplace_buffer_in_windows): Make buffer argument optional and
9115 rename to buffer_or_name.
9116
34fcddd0
CY
91172008-10-24 Chong Yidong <cyd@stupidchicken.com>
9118
f5385255
SM
9119 * xdisp.c (handle_single_display_spec, handle_display_prop):
9120 Undo 2005-05-16 change.
34fcddd0
CY
9121 (handle_stop): Pop iterator if it's loaded with an empty string.
9122 (get_overlay_strings_1): Don't save iterator if it's loaded with
9123 an empty string (bug#1201).
9124
064766f2
KH
91252008-10-24 Kenichi Handa <handa@m17n.org>
9126
9127 * ftfont.c (ftfont_otf_features): Fix previous change.
9128 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9129 calling ftfont_otf_features.
9130
f9bd0df9 91312008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9132
9133 * font.c (font_match_p): Fix for the case that a vector of
9134 characters is in script-representative-chars.
9135
1dae9197
MA
91362008-10-24 Michael Albinus <michael.albinus@gmx.de>
9137
9138 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9139 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9140 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9141 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9142 macro. (Bug#1186)
1dae9197 9143
f9bd0df9 91442008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9145
9146 * s/sol2-10.h: New file.
9147
878a4584
JB
91482008-10-23 Juanma Barranquero <lekktu@gmail.com>
9149
9150 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9151 poor beast has survived 9+ years and the jump from xterm.c!).
9152
cd265ca6
MR
91532008-10-23 Martin Rudalics <rudalics@gmx.at>
9154
9155 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9156 Reword doc-string.
f5385255 9157 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9158
472a4dc9
JB
91592008-10-23 Juanma Barranquero <lekktu@gmail.com>
9160
9161 * character.c (syms_of_character) <script-representative-chars>:
9162 <unicode-category-table>: Doc fixes.
9163
159bd5a2
NF
91642008-10-23 Noah Friedman <friedman@splode.com>
9165
9166 * coding.c (make_conversion_work_buffer): Check that
9167 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9168 Fget_buffer_create.
9169
49f9c344
KH
91702008-10-23 Kenichi Handa <handa@m17n.org>
9171
9172 * font.c (font_add_log): Check the values of extra properties.
9173
12bb3111
MR
91742008-10-22 Martin Rudalics <rudalics@gmx.at>
9175
9176 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9177 Reword doc-string.
9178 (Fset_window_parameter): Use NILP.
9179 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9180 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9181
bbeb4e99
JB
91822008-10-22 Juanma Barranquero <lekktu@gmail.com>
9183
9184 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9185
91862008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9187
9188 * nsfns.m (ns_appkit_version): New function.
9189 (x-server-version): Use it.
9190 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9191 (x-server-vendor): Don't check_ns().
9192
9193 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9194
a9b555d3
JB
91952008-10-22 Juanma Barranquero <lekktu@gmail.com>
9196
9197 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9198 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9199
4626499f
KH
92002008-10-22 Kenichi Handa <handa@m17n.org>
9201
e3681952
KH
9202 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9203 scripts.
9204
4626499f
KH
9205 * category.c (word_boundary_p): Check scripts instead of charset.
9206 Handle nil value in word-separating-categories and
9207 word-combining-categories.
9208 (syms_of_category): Fix docstrings of word-separating-categories
9209 and word-combining-categories.
9210
1560f91a
EZ
92112008-10-21 Eli Zaretskii <eliz@gnu.org>
9212
9213 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9214 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9215
f4668441
MR
92162008-10-21 Martin Rudalics <rudalics@gmx.at>
9217
9218 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9219 Rename arg "buffer" to "buffer_or_name".
9220 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9221 it optional.
9222 (no_switch_window): Remove since the return value is not used.
a9b555d3 9223 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9224 Consider window as dedicated when Fwindow_dedicated_p returns a
9225 non-nil value.
9226 * lisp.h: Remove prototype for no_switch_window.
9227
fd75ddb2
JD
92282008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9229
9230 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9231 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9232
07295713
KH
92332008-10-21 Kenichi Handa <handa@m17n.org>
9234
9235 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9236 check Vlatin_extra_code_table.
9237
712adc82
EZ
92382008-10-20 Eli Zaretskii <eliz@gnu.org>
9239
9240 * fileio.c (Fset_file_modes): Doc fix.
9241
f549eb0b
MA
92422008-10-19 Michael Albinus <michael.albinus@gmx.de>
9243
9244 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9245 in arrays.
9246
aac0c6e3
MR
92472008-10-19 Martin Rudalics <rudalics@gmx.at>
9248
9249 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9250 Mention kill-buffer in doc-string.
9251 (Fset_window_buffer): Reinsert tem check removed in last commit.
9252 (Fenlarge_window, Fshrink_window): Have argument names and
9253 doc-string follow Elisp manual more closely.
9254
92552008-10-18 Eli Zaretskii <eliz@gnu.org>
9256
9257 * fileio.c (Fset_file_modes): Doc fix.
9258
92592008-10-18 Martin Rudalics <rudalics@gmx.at>
9260
9261 * window.c (Fwindow_width, Fset_window_start)
9262 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9263 (Fdelete_windows_on, Freplace_buffer_in_windows):
9264 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9265 (Fwindow_dedicated_p): Make window argument optional.
9266 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9267 (Fset_window_buffer): Respect any non-nil dedicated value for
9268 window. Rename "buffer" argument to "buffer_or_name".
9269
92702008-10-18 Ulrich Mueller <ulm@gentoo.org>
9271
9272 * m/sh3.h: New file, machine description for SuperH.
9273
92742008-10-17 Martin Rudalics <rudalics@gmx.at>
9275
9276 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9277
92782008-10-17 Kenichi Handa <handa@m17n.org>
9279
9280 * ftfont.c (ftfont_otf_features): Fix indexing
9281 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9282
92832008-10-16 Magnus Henoch <mange@freemail.hu>
9284
9285 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9286 (Fdbus_call_method_asynchronously): Ditto.
9287 This change makes C-h f display the argument list.
9288
92892008-10-16 Chong Yidong <cyd@stupidchicken.com>
9290
9291 * fileio.c (Fexpand_file_name): Doc fix.
9292
9293 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9294 of :foreground and :background equivalent to unspecified (20.x
9295 compatibility).
9296
92972008-10-15 Eli Zaretskii <eliz@gnu.org>
9298
9299 * buffer.c (syms_of_buffer): Doc fix.
9300
93012008-10-14 Kenichi Handa <handa@m17n.org>
9302
9303 * font.c (font_clear_prop): When clearing font width, clear the
9304 average width field too.
9305
93062008-10-12 Andreas Schwab <schwab@suse.de>
9307
9308 * ftfont.c (ftfont_shape_by_flt): Make static.
9309 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9310
9311 * font.c: Don't include <m17n-flt.h>.
9312
93132008-10-10 Eli Zaretskii <eliz@gnu.org>
9314
9315 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9316
93172008-10-09 Eli Zaretskii <eliz@gnu.org>
9318
9319 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9320 away code.
9321
93222008-10-09 Chong Yidong <cyd@stupidchicken.com>
9323
9324 * dispnew.c (update_text_area): Avoid looping due to large glyph
9325 overhangs (bug#1070).
9326
93272008-10-09 Kenichi Handa <handa@m17n.org>
9328
9329 * fontset.c (face_for_char): If face->fontset is negative, just
9330 return ascii_face.
9331
f5385255
SM
9332 * font.c (font_delete_unmatched): Fix previous change.
9333 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9334
93352008-10-09 Martin Rudalics <rudalics@gmx.at>
9336
9337 * frame.c (Fraise_frame): On text-only terminals select frame in
9338 order to make it visible. (Bug#1061)
9339
93402008-10-08 Chong Yidong <cyd@stupidchicken.com>
9341
9342 * fontset.c (fontset_find_font): Check frame validity.
9343
93442008-10-07 Chong Yidong <cyd@stupidchicken.com>
9345
a9b555d3 9346 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9347 (xg_display_close): Allow Emacs to close all displays (bug#985).
9348
93492008-10-06 Andreas Schwab <schwab@suse.de>
9350
f5385255 9351 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9352
93532008-10-06 Chong Yidong <cyd@stupidchicken.com>
9354
f5385255 9355 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9356
a9b555d3 9357 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9358
9359 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9360 during initialization.
9361
93622008-10-04 Eli Zaretskii <eliz@gnu.org>
9363
9364 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9365 whole thing on MSDOS frames as well as on a TTY.
9366
9367 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9368 well as for TTY.
9369 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9370 well as on a TTY.
9371
9372 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9373 as well as for TTY.
9374
9375 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9376
9377 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9378 MSDOS frames as well.
9379
93802008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9381
9382 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9383 correct arguments.
b71ac3dd 9384 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9385
93862008-10-03 Glenn Morris <rgm@gnu.org>
9387
9388 * emacs.c (USAGE1): Add --daemon.
9389
93902008-10-02 Eli Zaretskii <eliz@gnu.org>
9391
9392 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9393 100, so it's in percents as advertised.
9394
93952008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9396
9397 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9398 (ns_output.current_cursor, ns_output.desired_cursor)
9399 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9400 (FRAME_NEW_CURSOR_COLOR): Remove.
9401
9402 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9403 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9404 enumeration (HOLLOW_BOX_CURSOR, etc.).
9405
9406 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9407 (draw_window_cursor): Simplify code.
f5385255
SM
9408 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9409 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9410 updates manually.
a9b555d3
JB
9411 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9412 Use core Emacs cursor types.
aac0c6e3 9413
b8ff72fa 9414 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9415
94162008-10-02 Martin Rudalics <rudalics@gmx.at>
9417
9418 * process.c (Faccept_process_output): Fix doc-string.
9419
94202008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9421
9422 * gmalloc.c (__sbrk): Also define for uClibc.
9423
9424 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9425 for uClibc.
9426
94272008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9428
9429 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9430 styles.
9431 (nsfont_open): Reenable the cache.
9432
94332008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9434
9435 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9436 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9437
94382008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9439
9440 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9441 a suspended terminal.
9442
94432008-09-30 Michael Albinus <michael.albinus@gmx.de>
9444
9445 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9446
94472008-09-30 Eli Zaretskii <eliz@gnu.org>
9448
9449 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9450
94512008-09-30 Chong Yidong <cyd@stupidchicken.com>
9452
9453 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9454 in a continued line coincides with a line beginning.
9455
94562008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9457
9458 * nsfont.m (nsfont_trait_distance): Fix bug.
9459 (nsfont_list): Return a list rather than a vector (syncs with Handa
9460 changes of 2008-05-14).
9461 (nsfont_open): Improve logging.
9462
94632008-09-29 Andreas Schwab <schwab@suse.de>
9464
9465 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9466
94672008-09-28 Martin Rudalics <rudalics@gmx.at>
9468
9469 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9470 name as char-resolve-modifiers.
9471 Reported by: Markus Triska <markus.triska@gmx.at>
9472
94732008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9474
9475 * dispnew.c (init_display): Return earlier when running as a daemon.
9476
94772008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9478
9479 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9480
94812008-09-27 Eli Zaretskii <eliz@gnu.org>
9482
9483 * composite.c (Fcomposition_get_gstring)
9484 (Fcompose_region_internal, Fcompose_string_internal)
9485 (Ffind_composition_internal): Doc fix.
9486 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9487 (syms_of_composite) <auto-composition-function>: Doc fix.
9488 (syms_of_composite) <composition-function-table>: Doc fix.
9489
94902008-09-25 Chong Yidong <cyd@stupidchicken.com>
9491
9492 * search.c (wordify): New argument for lax word-ends.
9493 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9494
94952008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9496
9497 * lisp.h (is_daemon): Declare.
9498 * dispnew.c (init_display): Do not try to initialize the terminal
9499 when running as a daemon.
9500
95012008-09-22 Chong Yidong <cyd@stupidchicken.com>
9502
9503 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9504 x_display_pixel_height.
9505
95062008-09-22 Martin Rudalics <rudalics@gmx.at>
9507
9508 * undo.c (record_point): Don't call Fundo_boundary for first
9509 change. (Bug#731)
9510
95112008-09-22 Juanma Barranquero <lekktu@gmail.com>
9512
9513 * emacs.c (Fdaemonp): Doc fix.
9514
95152008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9516
9517 * emacs.c (main): Place #ifdef in the proper place.
9518
95192008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9520
9521 * emacs.c (standard_args): Add --daemon.
9522 (main): Disconnect from the terminal when --daemon is passed.
9523 (is_daemon): New variable.
9524 (Fdaemonp): New function.
9525 (syms_of_emacs): Defsubr it.
9526
95272008-09-20 Chong Yidong <cyd@stupidchicken.com>
9528
9529 * xdisp.c (get_next_display_element): Handle string display
9530 correctly when checking for the end of a box run.
9531
95322008-09-20 Glenn Morris <rgm@gnu.org>
9533
9534 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9535 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9536 (Frename_file): Avoid copying to trash if a rename involves
9537 a delete. (Bug#964).
9538
95392008-09-20 Eli Zaretskii <eliz@gnu.org>
9540
9541 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9542 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9543 frames as well as termcap frames.
9544 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9545 get_named_tty.
9546
95472008-09-19 Eli Zaretskii <eliz@gnu.org>
9548
9549 * process.c (procfs_system_process_attributes): Fix cmdline in
9550 case /proc/PID/cmdline is empty.
9551
9552 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9553 x_display_pixel_height.
9554
95552008-09-19 Juanma Barranquero <lekktu@gmail.com>
9556
9557 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9558
9559 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9560 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9561
95622008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9563
9564 * dispextern.h (struct it): Move line_wrap away from the middle of
9565 bitfields. Move voffset in struct iterator_stack_entry after the
9566 bitfields. Move tab_width near after another short.
9567
95682008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9569
9570 * frame.h (struct frame): Move alpha from the middle of bitfields.
9571
9572 * window.h (struct window): Move frozen_window_start_p after the
9573 rest of the bitfields to reduce padding.
9574
95752008-09-18 Chong Yidong <cyd@stupidchicken.com>
9576
9577 * xterm.h (x_display_info): Remove `height' and `width' members.
9578
9579 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9580
9581 * w32term.h (w32_display_info): Remove `height', `width',
9582 `height_in', and `width_in' members.
9583
b8ff72fa
SM
9584 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9585 New functions.
aac0c6e3
MR
9586 (x_calc_absolute_position): Use them.
9587 (x_term_init): Omit removed `height' and `width' members.
9588
b8ff72fa
SM
9589 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9590 New functions.
aac0c6e3
MR
9591 (w32_read_socket, x_calc_absolute_position): Use them.
9592 (w32_initialize_display_info, w32_term_init): Omit removed members
9593 of w32_display_info.
9594
b8ff72fa
SM
9595 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9596 New functions.
9597 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9598
b8ff72fa
SM
9599 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9600 New functions.
aac0c6e3
MR
9601 (x_calc_absolute_position): Use them.
9602 (x_term_init): Omit removed `height' and `width' members.
9603
9604 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9605 (compute_tip_xy):
9606 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9607 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9608 x_display_pixel_width.
9609
96102008-09-18 Kenichi Handa <handa@m17n.org>
9611
9612 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9613 (composition_compute_stop_pos): Fix handling of static composition.
9614 (Fcomposition_get_gstring): Check FROM and TO at first.
9615
96162008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9617
46e722a9 9618 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9619 mixup (YAILOM).
9620
96212008-09-17 Chong Yidong <cyd@stupidchicken.com>
9622
9623 * indent.c (Fvertical_motion): Use position reported by iterator
9624 instead of PT for determining screen motion (bug#943).
9625
96262008-09-17 Romain Francoise <romain@orebokech.com>
9627
9628 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9629
96302008-09-17 Kenichi Handa <handa@m17n.org>
9631
9632 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9633
9634 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9635 if necessary.
9636
96372008-09-16 Kenichi Handa <handa@m17n.org>
9638
9639 * coding.c (make_conversion_work_buffer): Avoid calling
9640 Fget_buffer_create if it is not necessary.
9641
96422008-09-15 Martin Rudalics <rudalics@gmx.at>
9643
9644 * window.c (Fselect_window): Don't update window_select_count and
9645 use_time when norecord is not nil.
9646
96472008-09-14 Kenichi Handa <handa@m17n.org>
9648
9649 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9650 specpdl_ptr.
9651
96522008-09-12 Kenichi Handa <handa@m17n.org>
9653
9654 * indent.c (scan_for_column): Don't handle automatic composition
9655 if the current buffer is not associated with a window.
9656
9657 * composite.c (composition_reseat_it): If the current buffer is
9658 not associated with a window, ignore the automatic composition.
9659 (find_automatic_composition): Likewise.
9660
96612008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9662
9663 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9664 (Fgpm_mouse_stop): Use it.
9665 * termhooks.h (close_gpm): Declare.
9666 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9667 connection if Gpm_GetEvent fails.
9668
9669 * window.c (set_window_buffer): Always preserve current-buffer.
9670
96712008-09-12 Glenn Morris <rgm@gnu.org>
9672
9673 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9674
96752008-09-11 Glenn Morris <rgm@gnu.org>
9676
9677 * charset.c (charset-map-path): Doc fix.
9678
96792008-09-10 Kenichi Handa <handa@m17n.org>
9680
9681 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9682
9683 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9684 compose a grapheme cluster with the preceding base glyph.
9685
9686 * composite.c (composition_compute_stop_pos): Fix previous change.
9687 Reset cmp_it->id to -1 at first.
9688
96892008-09-10 Glenn Morris <rgm@gnu.org>
9690
9691 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9692
96932008-09-09 Chong Yidong <cyd@stupidchicken.com>
9694
9695 * keyboard.c (read_key_sequence): Reapply translation maps when
9696 switching keyboards.
9697
96982008-09-09 Kenichi Handa <handa@m17n.org>
9699
9700 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9701 characters.
9702
9703 * composite.c (FORWARD_CHAR): Fix calculation
9704 of (POSITION).pos_byte.
9705 (composition_compute_stop_pos): Limit the search of composition to
9706 at most 500 characters ahead. If we reach the limit or find a
9707 newline, set cmp_it->ch to -2 and return 0.
9708 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9709
97102008-09-08 Kenichi Handa <handa@m17n.org>
9711
9712 * indent.c (Fvertical_motion): Be sure to set
9713 it_overshoot_expected if it.cmp_it.id is non-negative.
9714
97152008-09-07 Andreas Schwab <schwab@suse.de>
9716
9717 * callproc.c (Fcall_process): Don't hold references to string data
9718 across garbage collection. Move initialisation of new_argv down
9719 to avoid compiler bug.
9720
97212008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9722
9723 * process.c (Fsystem_process_attributes): Doc fix.
9724
97252008-09-07 Chong Yidong <cyd@stupidchicken.com>
9726
9727 * callproc.c (Fcall_process): Canonicalize current directory name.
9728
9729 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9730 iterator advances to the next line if the current line ends in a
9731 continued tab.
9732
97332008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9734
9735 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9736 member to point to cmp_from.
9737
9738 * xdisp.c: Doc fix for references to gidx data member.
9739
97402008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9741
9742 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9743
97442008-09-07 Kenichi Handa <handa@m17n.org>
9745
9746 * composite.c (FORWARD_CHAR): Check STOP after
9747 incrementing (POSITION).pos.
9748
97492008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9750
9751 * process.c (Fsystem_process_attributes): Doc fix.
9752
97532008-09-06 Chong Yidong <cyd@stupidchicken.com>
9754
9755 * keyboard.c (Ftop_level): Doc fix.
9756
97572008-09-06 Eli Zaretskii <eliz@gnu.org>
9758
9759 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9760 minibuffer, don't let lower part of menu invade the echo area.
9761
9762 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9763 "char *q" to access menu text and advance through it. Revert the
9764 change that displayed ">" instead of ASCII character 0x10.
9765
97662008-09-05 Eli Zaretskii <eliz@gnu.org>
9767
9768 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9769 toggle boxes and radio buttons on MS-DOS as well.
9770
97712008-09-05 Kenichi Handa <handa@m17n.org>
9772
9773 * composite.c (autocmp_chars): Check lookback count.
9774 (composition_compute_stop_pos): Set cmp_it->lookback.
9775 (composition_reseat_it): Check lookback count.
9776 (struct position_record): New struct.
9777 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9778 (find_automatic_composition): New function.
9779 (composition_adjust_point): Use find_automatic_composition.
9780
9781 * dispextern.h (struct composition_it): New member lookback.
9782
97832008-09-02 Chong Yidong <cyd@stupidchicken.com>
9784
9785 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9786 if moving by a single line.
9787
97882008-09-02 Andreas Schwab <schwab@suse.de>
9789
9790 * xterm.c (x_delete_display): Fix merge error.
9791
9792 * fileio.c (Fexpand_file_name): Remove unused variables.
9793
97942008-09-02 Eli Zaretskii <eliz@gnu.org>
9795
9796 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9797 storage on all platforms, not just on DOS_NT.
9798
97992008-09-02 Jason Rumney <jasonr@gnu.org>
9800
b8ff72fa
SM
9801 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9802 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9803
98042008-09-01 Chong Yidong <cyd@stupidchicken.com>
9805
9806 * xfaces.c (Finternal_set_alternative_font_family_alist)
9807 (Finternal_set_alternative_font_registry_alist): Properly copy
9808 entire alist structure.
9809
98102008-09-01 Kenichi Handa <handa@m17n.org>
9811
d66c0241 9812 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9813 representative chars of the script is a vector.
d66c0241
JB
9814 (ftfont_list): Handle the case where the representative chars of
9815 the script is a vector.
aac0c6e3
MR
9816
9817 * character.c (syms_of_character): Docstring of
9818 script-representative-chars fixed.
9819
98202008-08-31 Eli Zaretskii <eliz@gnu.org>
9821
9822 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9823 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9824 the menu. Allocate larger buffer for `text', to account for
9825 possible ^C characters.
9826
98272008-08-31 Martin Rudalics <rudalics@gmx.at>
9828
9829 * xdisp.c (prepare_menu_bars): Don't call
9830 Vwindow_size_change_functions with arg Qt.
9831
98322008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9833
9834 * font.h (font_range):
9835 * fileio.c (report_file_error):
46e722a9
SM
9836 * composite.c (composition_update_it): Yet another int/Lisp_Object
9837 mixup (YAILOM).
aac0c6e3
MR
9838
98392008-08-30 Glenn Morris <rgm@gnu.org>
9840
9841 * data.c (Fmake_variable_frame_local): Doc fix.
9842
9843 * frame.c (Fmodify_frame_parameters): Doc fix.
9844
98452008-08-30 Eli Zaretskii <eliz@gnu.org>
9846
9847 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9848 needed by GetTokenInformation.
9849 (w32_system_process_attributes): Check return values of all system
9850 APIs.
9851
9852 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9853 only when the state changes.
9854 (IT_update_begin, IT_update_end): Add termscript trace.
9855
9856 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9857 clipboard is unavailable. Set dst to NULL if it doesn't point to
9858 malloc'ed data.
9859 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9860 passing random values to xfree.
9861
9862 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9863 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9864
98652008-08-29 Jason Rumney <jasonr@gnu.org>
9866
9867 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9868
98692008-08-29 Eli Zaretskii <eliz@gnu.org>
9870
9871 * composite.c (fill_gstring_body): Avoid compiler warnings.
9872
9873 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9874 LGLYPH_SET_CODE to avoid compiler warnings.
9875
2ae37cf0 9876 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9877
9878 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9879
9880 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9881 LGLYPH_SET_CODE.
9882
98832008-08-29 Kenichi Handa <handa@m17n.org>
9884
9885 * fileio.c (report_file_error): Don't downcase the first character
9886 of errstring if it is still unibyte.
9887
98882008-08-29 Kenichi Handa <handa@m17n.org>
9889
9890 These changes are to re-implement the automatic composition so
9891 that it doesn't use text properties.
9892
9893 * Makefile.in (ftfont.o): Depend on composite.h.
9894 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9895
9896 * character.h (Vunicode_category_table): Extern it.
9897
9898 * character.c (Vunicode_category_table): New variable.
9899 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9900
9901 * chartab.c (optimize_sub_char_table): Perform more greedy
9902 optimization.
9903
b8ff72fa
SM
9904 * composite.h (enum composition_method):
9905 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9906 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9907 (Vcomposition_function_table): Extern it.
9908 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9909 (composition_gstring_put_cache, composition_gstring_from_id)
9910 (composition_gstring_p, composition_gstring_width)
9911 (composition_compute_stop_pos, composition_reseat_it)
9912 (composition_update_it, composition_adjust_point): Extern them.
9913 (Fcomposition_get_gstring): EXFUN it.
9914
d66c0241 9915 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9916 (Vcomposition_function_table)
9917 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9918 (gstring_hash_table, gstring_work, gstring_work_headers):
9919 New variables.
aac0c6e3
MR
9920 (gstring_lookup_cache, composition_gstring_put_cache)
9921 (composition_gstring_from_id, composition_gstring_p)
9922 (composition_gstring_width, fill_gstring_header)
9923 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9924 (composition_reseat_it, composition_update_it)
b8ff72fa 9925 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9926 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9927 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9928 Defsubr composition_get_gstring.
aac0c6e3
MR
9929
9930 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9931 cmp_id.
9932 (struct glyph_string): Delete the member gidx. New members
9933 cmp_id, cmp_from, and cmp_to.
9934 (enum it_method): Delete GET_FROM_COMPOSITION.
9935 (struct composition_it): New struct.
9936 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9937 Delete c, len, cmp_id, cmp_len in u.comp.
9938
9939 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9940 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9941 (enum lglyph_indices): Likewise.
b8ff72fa 9942 (font_range): Adjust extern.
aac0c6e3
MR
9943 (font_fill_lglyph_metrics): Extern it.
9944
9945 * font.c (QCf): New variable.
9946 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9947 (font_prepare_composition): Delete this function.
9948 (font_range): Type and arguments changed.
9949 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9950 (font_fill_lglyph_metrics): New function.
b8ff72fa 9951 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9952 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9953 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9954 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9955
9956 * fontset.h (font_for_char): Extern it.
9957
9958 * fontset.c (font_for_char): New function.
9959
9960 * ftfont.c: Include composite.h.
9961 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9962 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9963
9964 * indent.c: Include composite.h and dispextern.h.
9965 (check_composition): Delete this function.
9966 (scan_for_column): Handle composition by
9967 composition_compute_stop_pos, composition_reseat_it, and
9968 composition_update_it.
9969 (compute_motion): Likewise.
9970 (Fvertical_motion): Fix checking of composition.
9971
9972 * keyboard.c (adjust_point_for_property): Check composition by
9973 composition_adjust_point.
9974
b8ff72fa 9975 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9976 struct glyph_string.
9977
b8ff72fa
SM
9978 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9979 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9980 struct glyph.
9981 (produce_composite_glyph): Likewise.
9982
b8ff72fa
SM
9983 * w32term.c (x_draw_composite_glyph_string_foreground):
9984 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9985 (x_draw_glyph_string): Likewise.
9986
9987 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9988 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9989
9990 * xdisp.c: Include font.h.
9991 (it_props): Delete the entry for Qauto_composed.
9992 (init_iterator): Initialize it->cmp_it.id to -1.
9993 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9994 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9995 (handle_auto_composed_prop): Delete it.
9996 (handle_composition_prop): Handle only static composition.
9997 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9998 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9999 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10000 (pop_it): Likewise.
10001 (get_next_element): Delete next_element_from_composition.
10002 (CHAR_COMPOSED_P): New macro.
10003 (get_next_display_element): For automatic composition, get a face
10004 from the font in the glyph-string.
10005 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10006 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10007 (next_element_from_string): Check if the character at the current
10008 position is composed by CHAR_COMPOSED_P.
10009 (next_element_from_buffer): Likewise.
d66c0241
JB
10010 (next_element_from_composition): Adjust for the change of struct it.
10011 Update it->cmp_it.
b8ff72fa
SM
10012 (dump_glyph): Adjust for the change of struct glyph.
10013 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10014 it and struct glyph. Don't handle automatic composition here.
10015 (fill_gstring_glyph_string): New function.
10016 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10017 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10018 (BUILD_GSTRING_GLYPH_STRING): New macro.
10019 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10020 automatic composition.
b8ff72fa 10021 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10022 struct glyph.
b8ff72fa 10023 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10024
b8ff72fa 10025 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10026 the change of struct glyph_string.
10027 (x_draw_glyph_string): Likewise.
10028
100292008-08-29 Glenn Morris <rgm@gnu.org>
10030
10031 * buffer.c (word-wrap): Doc fix.
10032 * xdisp.c (truncate-partial-width-windows): Doc fix.
10033 Increase default to 50.
10034
100352008-08-29 Chong Yidong <cyd@stupidchicken.com>
10036
10037 * xdisp.c (update_tool_bar_unwind): New function.
10038 (update_tool_bar): Temporarily set selected frame before building
10039 tool-bar items.
10040
100412008-08-28 Michael Albinus <michael.albinus@gmx.de>
10042
10043 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10044 snprintf, respectively.
10045 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10046
100472008-08-28 Chong Yidong <cyd@stupidchicken.com>
10048
10049 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10050 LDFLAGS to GNUstep CC invocation.
10051
100522008-08-27 Chong Yidong <cyd@stupidchicken.com>
10053
10054 * indent.c (Fvertical_motion): Revert last change. Handle the
10055 general case where we are moving forward, and PT spans multiple
10056 screen lines.
10057
10058 * eval.c (find_handler_clause): Temporarily increase
10059 max-lisp-eval-depth while printing the backtrace buffer, to
10060 guarantee that help-mode code can run.
10061
100622008-08-27 Eli Zaretskii <eliz@gnu.org>
10063
10064 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10065 colors under -rv.
10066 (IT_set_frame_parameters): Don't swap foreground and background
10067 colors if `(reverse . t)' is present in the frame properties.
10068 (internal_terminal_init): Call init_frame_faces only for the
10069 initial frame.
10070
100712008-08-27 Andreas Schwab <schwab@suse.de>
10072
10073 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10074
100752008-08-27 Andreas Schwab <schwab@suse.de>
10076
10077 * search.c (search_buffer): Set char_base to zero only at the end.
10078
100792008-08-27 Kenichi Handa <handa@m17n.org>
10080
b8ff72fa 10081 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10082
100832008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10084
10085 * xterm.c (x_term_init): Temporarily hide the partially
10086 initialized terminal while calling vendor-specific-keysyms.
10087
100882008-08-26 Eli Zaretskii <eliz@gnu.org>
10089
10090 * msdos.c (internal_terminal_init): Most initializations done only
10091 once, especially initial_screen_colors[] and termscript open.
10092
100932008-08-26 Chong Yidong <cyd@stupidchicken.com>
10094
10095 * eval.c (Fcondition_case): Doc fix.
10096
10097 * widgetprv.h (EmacsFramePart): Change font member to the new font
10098 struct.
10099
10100 * widget.c: Include character.h and font.h for XSETFONT.
10101 (setup_frame_gcs): Compute X font id from font struct, just once.
10102
101032008-08-26 Eli Zaretskii <eliz@gnu.org>
10104
10105 * term.c (get_named_tty): Fix last change.
10106
101072008-08-26 Chong Yidong <cyd@stupidchicken.com>
10108
10109 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10110 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10111
101122008-08-25 Eli Zaretskii <eliz@gnu.org>
10113
10114 * frame.c (do_switch_frame): Mark previously displayed frame as
10115 obscured for FRAME_MSDOS_P frames as well.
10116
101172008-08-24 Eli Zaretskii <eliz@gnu.org>
10118
10119 * frame.c (make_terminal_frame): Initialize f->terminal,
10120 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10121 Set the top frame to newly created frame.
10122 (Fmake_terminal_frame): Reuse the_only_display_info.
10123
10124 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10125 estimating available memory.
10126
b97439ce 101272008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10128
10129 * nsterm.m (ns_draw_window_cursor): Don't call
10130 NSDisableScreenUpdates and NSEnableScreenUpdates on
10131 non-NS_IMPL_COCOA systems.
10132
101332008-08-23 Andreas Schwab <schwab@suse.de>
10134
10135 * process.c (procfs_system_process_attributes): Fix use of
10136 uninitialized variables.
10137
101382008-08-23 Eli Zaretskii <eliz@gnu.org>
10139
10140 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10141
10142 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10143 calling tty-set-up-initial-frame-faces.
10144
b8ff72fa
SM
10145 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10146 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10147
10148 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10149 addition to output_termcap.
10150
10151 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10152
10153 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10154 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10155 highlight.
10156
10157 * process.c [!subprocesses]: Define QCname.
10158 (syms_of_process): Intern and staticpro it.
10159
10160 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10161 Adjust for changes in encoding/decoding routines.
10162 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10163 encode_coding and decode_coding.
10164
b8ff72fa 10165 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10166
10167 * dosfns.c: Include frame.h before termhooks.h.
10168 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10169 variable termscript.
10170
10171 * s/msdos.h (USER_FULL_NAME): Define.
10172 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10173
10174 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10175 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10176 pw->pw_gecos.
10177
10178 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10179 SELECTED_FRAME as additional (1st) argument.
10180 (tty_read_avail_input): Handle output_msdos_raw in
10181 addition to output_termcap.
10182
10183 * msdos.c: Include frame.h before termhooks.h.
10184 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10185 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10186 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10187 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10188 (IT_set_terminal_modes, IT_reset_terminal_modes)
10189 (IT_set_frame_parameters): Use tty->termscript instead of a global
10190 variable termscript.
10191 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10192 global variable terminal_coding. Don't refer to
10193 Vnonascii_translation_table.
10194 (internal_terminal_init): Set Vwindow_system in current_kboard.
10195 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10196 Announce date and time of session start, if termscript is open.
10197 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10198 term.c:init_tty). Open termscript only of not already open.
10199 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10200 here instead of dos_ttraw. Don't initialize display if this is an
10201 initial tty. Don't set FRAME_FONT.
10202 (Vwindow_system_version): Bump to 23.
10203 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10204 is available, set up mouse_position_hook.
10205 (dos_ttraw, IT_set_terminal_modes): If called with initial
10206 terminal, do nothing.
10207 (IT_set_frame_parameters): Handle the Qtty_type frame
10208 parameter by calling internal_terminal_init.
10209 (dos_set_window_size, show_mouse_face)
10210 (clear_mouse_face, IT_note_mode_line_highlight)
10211 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10212 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10213 (initialize_msdos_display): New function.
10214 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10215 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10216 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10217 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10218 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10219 (request_sigio, unrequest_sigio): Don't define, now defined on
10220 sysdep.c.
10221 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10222
10223 * term.c [MSDOS]: Include msdos.h.
10224 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10225 conditional to DOS_NT. Allow only one call to this function in a
10226 session. Don't allocate a new struct tty_display_info; instead,
10227 reuse the_only_display_info. Call get_tty_size to get screen
10228 dimensions. Call init_baud_rate to set bad_rate.
10229 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10230 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10231 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10232 (get_tty_terminal, get_named_tty, Ftty_type)
10233 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10234 output_termcap.
b8ff72fa
SM
10235 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10236 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10237 only when subprocesses are supported.
aac0c6e3
MR
10238
10239 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10240 f->output_data.x.
10241 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10242 terminal devices.
10243
5582fbc7 10244 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10245 x_output.
10246 (FRAME_FONT): Use output_data.tty.
10247 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10248 (struct x_display_info): Rename from display_info. Update all users in
10249 msdos.c.
aac0c6e3 10250 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10251 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10252 (dos_ttraw): Update prototype.
10253
10254 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10255 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10256
102572008-08-23 Jason Rumney <jasonr@gnu.org>
10258
10259 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10260 (fn_TIFFSetDirectory): New library function used.
10261 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10262 (tiff_load): Use :index to select among multiple images. Set count
10263 property when multiple images exist.
10264 (gif_format): Use :index, not :image.
10265
102662008-08-23 Chong Yidong <cyd@stupidchicken.com>
10267
10268 * xdisp.c (try_scrolling): Check INT_MAX instead of
10269 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10270 to obtain INT_MAX.
10271
102722008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10273
10274 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10275
102762008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10277
10278 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10279 GNUstep library location.
10280
102812008-08-21 Chong Yidong <cyd@stupidchicken.com>
10282
10283 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10284 before using it.
10285
10286 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10287
102882008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10289
10290 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10291 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10292 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10293 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10294 (EmacsApp-cursor_blink_handler): Remove declaration.
10295 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10296 match 01 Feb 2008 changes in xterm.c.
10297 (ns_read_socket): Add cast to avoid warning.
10298 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10299 GNUstep.
10300
103012008-08-20 Chong Yidong <cyd@stupidchicken.com>
10302
10303 * xselect.c (x_get_foreign_selection): Return nil if desired
10304 selection could not be obtained, instead of signalling an error.
10305
103062008-08-20 David Reitter <david.reitter@gmail.com>
10307
10308 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10309 * nsterm.m: Remove ns-specific code for cursor blinking.
10310 (ns_draw_window_cursor): Clear cursor properly rather than
10311 redrawing the area. Respect width of bar cursors.
10312 These changes enable the use of generic blink-cursor-mode and
10313 generic cursor types in NS and support smooth cursor movements (do
10314 not blink off after command).
10315 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10316 Nextstep, too.
10317
103182008-08-19 Kenichi Handa <handa@m17n.org>
10319
10320 * font.c (Vfont_log_deferred): New variable.
10321 (font_add_log): Check Vfont_log_deferred.
10322 (font_deferred_log): New function.
10323
10324 * font.h (font_deferred_log): Extern it.
10325
10326 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10327 for sorting.
10328 (face_for_char): Use deferred log.
10329
103302008-08-18 Kenichi Handa <handa@m17n.org>
10331
10332 * fontset.c (face_for_char): Add font log.
10333
10334 * font.c (font_add_log): Add the font properties :script, :lang,
10335 and :otf in the log.
10336
103372008-08-17 Chong Yidong <cyd@stupidchicken.com>
10338
10339 * xdisp.c: Remove dead code.
10340 (handle_invisible_prop, next_overlay_string): Defer call to
10341 setup_for_ellipsis.
10342 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10343
103442008-08-15 Chong Yidong <cyd@stupidchicken.com>
10345
10346 * xfaces.c (lookup_derived_face): Properly handle possible zero
10347 return value of get_lface_attributes.
10348 (merge_faces): Don't tell lookup_derived_face to signal an error
10349 if face is not found.
10350
10351 * dired.c (Fdirectory_files): Doc fix.
10352
10353 * process.c (make_process): Initialize kill_without_query struct
10354 member.
10355
103562008-08-15 Eli Zaretskii <eliz@gnu.org>
10357
10358 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10359 Alternative calculation of totphys for Visual Studio 6.
10360
10361 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10362
10363 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10364 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10365 All users changed.
10366 (stat): Only root directory passed to GetDriveType. Allow RAM
10367 disk as well as local fixed disk when w32-get-true-file-attributes
10368 is set to `local'.
10369 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10370 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10371 (w32_cached_id, w32_add_to_cache): New functions.
10372 (get_name_and_id): Look account names in the cache before calling
10373 lookup_account_sid.
10374 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10375 New initialization flags.
10376 (globals_of_w32): Initialize them to zero.
10377 (w32_system_process_attributes): Use w32_cached_id and
10378 w32_add_to_cache.
10379
103802008-08-14 Lawrence Mitchell <wence@gmx.li>
10381
10382 * lread.c (Fread_char, Fread_char_exclusive): If no character
10383 event is read before timeout is reached, return nil, rather than
10384 converting to a number.
10385
103862008-08-14 Chong Yidong <cyd@stupidchicken.com>
10387
10388 * fns.c (use_dialog_box): Doc fix.
10389
10390 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10391 on OS X.
10392
103932008-08-13 Chong Yidong <cyd@stupidchicken.com>
10394
10395 * frame.c (Qns_parse_geometry): New var.
10396 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10397
103982008-08-11 Chong Yidong <cyd@stupidchicken.com>
10399
10400 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10401 space character in calculating tabs.
10402
104032008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10404
10405 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10406
104072008-08-10 Glenn Morris <rgm@gnu.org>
10408
10409 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10410 silence gcc "limited range of data type" warnings in some
10411 make_fixnum_or_float calls.
10412
104132008-08-09 Eli Zaretskii <eliz@gnu.org>
10414
10415 * w32.c (w32_system_process_attributes): If the process does not
10416 exist, return nil.
10417
10418 * w32.c: Include thelp32.h, psapi.h and coding.h.
10419 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10420 declarations.
10421 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10422 (Process32Next_Proc): New typedefs.
10423 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10424 (g_b_init_process32_next, g_b_init_open_thread_token)
10425 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10426 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10427 (g_b_init_get_process_working_set_size)
10428 (g_b_init_global_memory_status_ex): New static variables.
10429 (globals_of_w32): Initialize them.
10430 (create_toolhelp32_snapshot, process32_first, process32_next)
10431 (open_thread_token, impersonate_self, revert_to_self)
10432 (get_process_memory_info, get_process_working_set_size)
10433 (global_memory_status, global_memory_status_ex): New wrapper
10434 functions.
10435 (w32_list_system_processes, w32_system_process_attributes)
10436 (enable_privilege, restore_privilege, ltime, process_times):
10437 New functions.
10438 (convert_time_raw): New function.
10439 (convert_time): Remove conversion of FILETIME into time in 100
10440 nsec units, call convert_time_raw instead.
10441
10442 * process.h (w32_list_system_processes, w32_system_process_attributes):
10443 Add prototypes.
10444 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10445 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10446 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10447 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10448
10449 * process.c (Fsystem_process_attributes): Doc fix.
10450
104512008-08-08 Chong Yidong <cyd@stupidchicken.com>
10452
10453 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10454 a continued multi-char glyph; if so, advance to the actual glyph.
10455
104562008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10457
10458 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10459
10460 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10461 (.m.o): Use it.
10462 * config.in: Regenerate.
10463
104642008-08-07 Chong Yidong <cyd@stupidchicken.com>
10465
10466 * xdisp.c (redisplay_window): Revert last change.
10467 (try_window): Check bottom scroll margin too.
10468
104692008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10470
10471 * config.in: Regenerate.
10472
10473 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10474 -list-load-path-shadows'.
10475 (nsgui.h): Reduce number of things depending on it.
10476
104772008-08-06 Chong Yidong <cyd@stupidchicken.com>
10478
10479 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10480 instead of window-end which does the wrong thing at eob.
10481 (try_cursor_movement): Minor optimization.
10482 (redisplay_window): If scroll margin is defined, don't assume
10483 window doesn't need scrolling.
10484
104852008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10486
10487 * config.in: Regenerate.
10488
10489 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10490 (mostlyclean): Don't delete *.d under NS.
10491
10492 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10493
104942008-08-06 Kenichi Handa <handa@m17n.org>
10495
10496 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10497
104982008-08-06 Andreas Schwab <schwab@suse.de>
10499
10500 * config.in: Regenerate.
10501
105022008-08-05 Chong Yidong <cyd@stupidchicken.com>
10503
10504 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10505 forcing a window start.
10506
10507 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10508 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10509
105102008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10511
10512 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10513 argument.
10514
105152008-08-05 Juanma Barranquero <lekktu@gmail.com>
10516
10517 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10518 <scroll-down-aggressively, before-change-functions>:
10519 <after-change-functions>: Reflow docstrings.
10520
105212008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10522 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10523
10524 Dock menu customization, based on a patch by Ken Raeburn, plus some
10525 other fixes.
10526 * nsmenu.m (dockMenu): New variable.
10527 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10528
10529 * nsterm.h (dockMenu): Declare.
10530
10531 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10532 (ns_term_init): Initialize dockMenu.
10533 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10534 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10535 left.
10536
10537 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10538
105392008-08-04 Chong Yidong <cyd@stupidchicken.com>
10540
10541 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10542
10543 * config.in: Regenerate.
10544
105452008-08-04 Seiji Zenitani <zenitani@mac.com>
10546
10547 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10548
105492008-08-04 Chong Yidong <cyd@stupidchicken.com>
10550
10551 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10552
105532008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10554
10555 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10556
10557 * keyboard.h: Comment an #endif.
10558
10559 * lisp.h (have_menus_p): Adjust comment.
10560
10561 * menu.c (find_and_return_menu_selection): Fix comparison with
10562 client_data.
10563
10564 * nsmenu.m (popup_activated_flag): New variable.
10565 (popup_activated): New function.
10566 (menu-or-popup-active-p): New exported lisp definition.
10567 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10568 when popup done.
10569 (ns_popup_dialog): Set popup_activated_flag.
10570
10571 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10572 version for GNUstep (handled by conditional typedef in nsterm.m).
10573 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10574 in rgb.txt).
10575
10576 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10577
10578 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10579
10580 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10581
10582 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10583 shortcircuit if popup_activated like GTK and X toolkit.
10584
10585 * m/inter386.h: Change DARWIN to DARWIN_OS.
10586
10587 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10588 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10589 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10590 comment on NO_SOCK_SIGIO.
10591
105922008-08-03 Chong Yidong <cyd@stupidchicken.com>
10593
10594 * nsterm.m (windowDidResize): Remove stopModal call.
10595
105962008-08-03 Andreas Schwab <schwab@suse.de>
10597
10598 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10599 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10600
106012008-08-02 Chong Yidong <cyd@stupidchicken.com>
10602
10603 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10604 Don't use uninitialized pointer variable when using getrlimit.
10605
106062008-08-02 Jason Rumney <jasonr@gnu.org>
10607
10608 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10609
106102008-08-02 Eli Zaretskii <eliz@gnu.org>
10611
10612 * alloc.c (NSTATICS): Bump to 0x640.
10613
10614 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10615
10616 * lisp.h: Add prototype for directory_files_internal.
10617
10618 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10619 New functions.
10620 (syms_of_process): Defsubr them. Add initializations for various
10621 Q* symbols used in procfs_system_process_attributes.
10622 (procfs_list_system_processes, procfs_system_process_attributes)
10623 [HAVE_PROCFS]: New functions.
10624 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10625 (procfs_get_total_memory): New functions.
10626
106272008-08-01 Juanma Barranquero <lekktu@gmail.com>
10628
10629 * xfaces.c (Fx_load_color_file): Fix previous change;
10630 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10631
106322008-08-01 Michael Albinus <michael.albinus@gmx.de>
10633
10634 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10635
106362008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10637
10638 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10639
106402008-08-01 Chong Yidong <cyd@stupidchicken.com>
10641
10642 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10643
10644 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10645 define NSApplicationDelegateReplySuccess.
10646 (EmacsView -converstationIdentifier): Use long instead of
10647 NSInteger for GNUstep, since it doesn't have NSInteger.
10648
10649 * xmenu.c: Revert last change.
10650
10651 * keyboard.h: Fix last change.
10652
106532008-08-01 Juanma Barranquero <lekktu@gmail.com>
10654
10655 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10656 on Windows.
10657
106582008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10659
10660 Warning clearing and clean-up in NS port.
10661 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10662 Add prototypes.
10663 * nsgui.h (FACE_DEFAULT): Remove, unused.
10664 (XGCValues): Change colors to unsigned long.
10665 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10666 nsterm.m.
10667 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10668 (ns_list_fonts): Remove, unused.
10669 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10670 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10671 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10672 (nsfont_draw): Compare face colors to 0, not nil.
10673 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10674 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10675 (-addSubmenuWithTitle:): Use NSMenuItem class.
10676 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10677 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10678 (ns_clip_to_row): Make gc arg a BOOL.
10679 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10680 ns_clip_to_row() call.
10681 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10682 used). Cast FRAME_FONT assignments.
10683 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10684 (ns_string_to_lispmod): Change arg to const char.
10685 (ns_term_init): Use NSMenuItem class.
10686 (EmacsApp -openFile:): Move to different section of file.
10687 (EmacsApp -application:openFiles:): Don't return a value, call
10688 -replyToOpenOrPrint:.
10689 (EmacsView -keyDown:): Fix up cast.
10690 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10691 (EmacsView -menuDown:): Cast tag in call to
10692 find_and_call_menu_selection().
10693 (ns_list_fonts): Remove, unused.
10694 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10695 (ns_fontname_to_xlfd): Make static.
10696 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10697 Remove prototypes (now in keyboard.h).
10698 (next_menubar_widget_id): Remove, unused.
10699 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10700 Remove prototypes (now in keyboard.h).
10701 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10702
107032008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10704
10705 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10706 (floatfns.o): Depend on syssignal.h.
10707 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10708
10709 * systty.h: Fix previous change that removed BSD_TERMIOS.
10710 Add comments to #ifdefs.
10711
107122008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10713
10714 * w32fns.c (w32-load-color-file): Remove.
10715 (x-open-connection): Use renamed Fx_load_color_file.
10716 * xfaces.c (x-load-color-file): Add.
10717 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10718 Emacs.clr.
10719 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10720
107212008-07-31 Michael Albinus <michael.albinus@gmx.de>
10722
10723 * dbusbind.c (Fdbus_call_method_asynchronously)
10724 (Fdbus_method_error_internal): New defuns.
10725 (xd_read_message): Handle also reply messages.
10726 (Vdbus_registered_functions_table): Extend docstring.
10727
107282008-07-31 Juanma Barranquero <lekktu@gmail.com>
10729
10730 * keyboard.c (gobble_input): Fix previous change.
10731
107322008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10733
10734 * bitmaps/README:
10735 * xfns.c:
10736 * termcap.c:
10737 * term.c:
10738 * syswait.h:
10739 * systty.h:
10740 * systime.h:
10741 * syssignal.h:
10742 * sysdep.c:
10743 * process.h:
10744 * process.c:
10745 * print.c:
10746 * ndir.h:
10747 * lread.c:
10748 * keyboard.c:
10749 * getpagesize.h:
10750 * floatfns.c:
10751 * fileio.c:
10752 * emacs.c:
10753 * doc.c:
10754 * dispnew.c:
10755 * dired.c:
10756 * data.c:
10757 * callproc.c:
10758 * buffer.c:
10759 * README:
10760 * Makefile.in:
10761 * s/template.h:
10762 * s/msdos.h:
10763 * m/vax.h: Remove VMS support.
10764 * s/vms.h:
10765 * vlimit.h:
10766 * uaf.h:
10767 * temacs.opt:
10768 * param.h:
10769 * ioctl.h: Remove file.
10770
107712008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10772
10773 * s/ms-w32.h (MULTI_KBOARD): Remove.
10774 * xterm.c:
10775 * xselect.c:
10776 * xfns.c:
10777 * window.c:
10778 * w32term.c:
10779 * w32fns.c:
10780 * terminal.c:
10781 * termhooks.h:
10782 * term.c:
10783 * sysdep.c:
10784 * keyboard.h:
10785 * keyboard.c:
10786 * frame.h:
10787 * frame.c:
10788 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10789 * config.in: Regenerate.
10790
107912008-07-30 Jason Rumney <jasonr@gnu.org>
10792
10793 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10794
10795 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10796 (w32font_open_internal): Get unicode version of textmetrics.
10797 Don't enable or disable glyph indices here.
10798 (w32font_open): Disable use of glyph indices.
10799
10800 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10801
108022008-07-30 Chong Yidong <cyd@stupidchicken.com>
10803
10804 * minibuf.c (Vread_buffer_function): Doc fix.
10805
108062008-07-30 John Paul Wallington <jpw@pobox.com>
10807
10808 * minibuf.c (read_buffer_completion_ignore_case): New var.
10809 (Fread_buffer): Use it.
10810
108112008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10812
10813 * systty.h (sensemode): Remove empty #if. Remove reference to
10814 BSD_TERMIOS, unused.
10815
10816 * sysdep.c: Remove reference to DGUX.
10817 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10818
10819 * config.in: Regenerate.
10820
108212008-07-30 Jason Rumney <jasonr@gnu.org>
10822
10823 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10824
108252008-07-29 Jason Rumney <jasonr@gnu.org>
10826
10827 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10828 is populated.
10829 (uniscribe_encode_char): Always use uniscribe.
10830 Avoid using context if cache is populated.
10831
108322008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10833
10834 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10835 open menu.
10836
10837 * gtkutil.c (menu_nav_ended): Remove.
10838 (create_menus): Remove signal connect for menu_nav_ended.
10839
108402008-07-28 Chong Yidong <cyd@stupidchicken.com>
10841
10842 * xdisp.c (redisplay_window): Check return value of
10843 compute_window_start_on_continuation_line before forcing a window
10844 start.
10845
108462008-07-28 Jason Rumney <jasonr@gnu.org>
10847
10848 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10849
10850 * w32term.c (w32_enable_unicode_output, cleartype_active):
10851 Remove obsolete display options.
10852 (x_draw_glyph_string_background): Don't use old cleartype_active
10853 workaround.
10854 (w32_initialize): Remove cleartype_active initialization.
10855 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10856
108572008-07-28 Andreas Schwab <schwab@suse.de>
10858
10859 * lisp.h (init_weak_hash_tables, syms_of_font)
10860 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10861 (remove_hash_entry): Don't declare.
10862 * eval.c (maybe_call_debugger): Make static and move before use.
10863 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10864 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10865 * xterm.h (x_set_frame_alpha): Declare.
10866
108672008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10868
10869 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10870 (create_menus): Connect selection-done to menu_nav_ended.
10871
108722008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10873
10874 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10875 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10876 parameter with read of 'alpha' one.
10877 (Qns_frame_parameter): Remove.
5582fbc7 10878 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10879 (next-selection-coding-system, Vselection_coding_system)
10880 (Vnext_selection_coding_system): Drop.
10881
108822008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10883
10884 * nsfns.m (do-applescript, do_applescript): Rename to
10885 ns-do-applescript, ns_do_applescript, and move within file.
10886
108872008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10888
10889 Remove support for Mac Carbon.
10890 * mactoolbox.c:
10891 * macterm.h:
10892 * macterm.c:
10893 * macselect.c:
10894 * macmenu.c:
10895 * macgui.h:
10896 * macfns.c:
10897 * mac.c: Remove file.
10898 * s/darwin.h:
10899 * m/intel386.h:
10900 * xfaces.c:
10901 * xdisp.c:
10902 * window.c:
10903 * tparam.c:
10904 * termhooks.h:
10905 * termcap.c:
10906 * term.c:
10907 * syssignal.h:
10908 * sysselect.h:
10909 * sysdep.c:
10910 * process.c:
10911 * lread.c:
10912 * lisp.h:
10913 * keyboard.c:
10914 * image.c:
10915 * fringe.c:
10916 * frame.h:
10917 * frame.c:
10918 * fontset.c:
10919 * font.h:
10920 * font.c:
10921 * fns.c:
10922 * fileio.c:
10923 * emacs.c:
10924 * dispnew.c:
10925 * dispextern.h:
10926 * config.in:
10927 * atimer.c:
2ae37cf0 10928 * Makefile.in: Remove code for Carbon.
aac0c6e3 10929
f0131492 109302008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10931
10932 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10933
109342008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10935
10936 * macterm.h (kCGBitmapByteOrder32Host): New define for
10937 non-universal SDKs.
10938
10939 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10940 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10941
10942 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10943 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10944
109452008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10946
10947 * w32inevt.c: Include dispextern.h.
10948
109492008-07-26 Andreas Schwab <schwab@suse.de>
10950
10951 * print.c (print_object): Fix off-by-one in last change.
10952
109532008-07-25 Juanma Barranquero <lekktu@gmail.com>
10954
10955 * term.c (syms_of_term): Don't initialize default_orig_pair,
10956 default_set_foreground and default_set_background on Windows.
10957
109582008-07-25 Jason Rumney <jasonr@gnu.org>
10959
10960 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10961 ScriptItemize. Clean up return value checking. Remove unused
10962 variables.
10963 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10964 shaping engine.
10965
10966 * w32font.c (w32font_has_char): Handle the case where we can't
10967 determine the script for a character.
10968
109692008-07-25 Chong Yidong <cyd@stupidchicken.com>
10970
10971 * term.c (syms_of_term): Initialize default_orig_pair,
10972 default_set_foreground, and default_set_background.
10973
10974 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10975 clash (bug#86).
10976 (getloadavg): Callers changed.
10977
10978 * image.c (svg_load_image): Fix last change.
10979 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10980 image size is valid. Use g_object_unref instead of deprecated
10981 rsvg_handle_free to free rsvg handle.
10982 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10983
109842008-07-25 Jason Rumney <jasonr@gnu.org>
10985
10986 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10987 surrogates before looking up glyph index.
10988 (w32font_text_extents): Encode as surrogates if falling back to
10989 functions that need UTF-16 wide chars.
10990
10991 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10992 BMP as surrogates before looking up glyph index.
10993
109942008-07-25 Chong Yidong <cyd@stupidchicken.com>
10995
10996 * image.c (svg_load_image): Check for failure in return value of
10997 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10998
109992008-07-25 Jason Rumney <jasonr@gnu.org>
11000
11001 * w32font.c (Fx_select_font): Reverse sense of second arg.
11002
110032008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11004
11005 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11006 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11007
11008 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11009 (PURESIZE): Use it.
11010
110112008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11012
11013 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11014 * m/alpha.h (TEXT_END):
11015 * m/ibmrs6000.h (TEXT_END):
11016 * m/macppc.h (TEXT_END):
11017 * s/darwin.h (TEXT_END):
11018 * s/msdos.h (TEXT_END): Remove, unused.
11019 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11020 * s/cygwin.h: Remove comment.
11021
11022 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11023 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11024 * m/intel386.h (DOT_GLOBAL_START):
11025 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11026 (USG): Remove, file not used on USG platforms.
11027
11028 * Makefile.in (HAVE_X11): Remove empty #else.
11029
110302008-07-24 Andreas Schwab <schwab@suse.de>
11031
11032 * fileio.c (Finsert_file_contents): Properly adjust undo list
11033 after format conversion.
11034
110352008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11036
11037 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11038 (menu_nav_ended): Remove.
11039 (create_menus): Remove signal connect for menu_nav_ended.
11040 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11041 create_menus.
11042 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11043
110442008-07-23 Jason Rumney <jasonr@gnu.org>
11045
11046 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11047 with opened font.
11048 (w32font_open): Set font type to gdi.
11049
11050 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11051
110522008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11053
11054 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11055 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11056 defines it.
11057 * unexec.c (ADDR_CORRECT): Define unconditionally.
11058
11059 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11060
11061 * unexec.c: Remove code depending on !COFF and USG, the file is
11062 not used for such systems.
11063
11064 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11065 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11066 (LD_SWITCH_SYSTEM_1): Remove, update users.
11067
11068 * s/darwin.h (DATA_END):
11069 * m/intel386.h (DATA_END):
11070 * m/ibmrs6000.h (DATA_END):
11071 * m/alpha.h (DATA_END): Remove, unused.
11072
11073 * config.in: Regenerate.
11074 * s/ms-w32.h (subprocesses): Define unconditionally.
11075 * s/template.h (subprocesses): Update comment.
11076 * s/vms.h (subprocesses):
11077 * s/usg5-4.h (subprocesses):
11078 * s/hpux10-20.h (subprocesses):
11079 * s/gnu-linux.h (subprocesses):
11080 * s/cygwin.h (subprocesses):
11081 * s/bsd-common.h (subprocesses):
11082 * s/aix4-2.h (subprocesses):
11083 * s/darwin.h (subprocesses): Do not define, defined by default now.
11084
11085 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11086 Remove all references.
11087 (temacs): Add GNUstep specific ld flags.
11088
11089 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11090 similarly to what X does.
11091
110922008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11093
11094 * nsfns.m (x-list-fonts): Remove.
11095 (syms_of_nsfns): Drop the x-list-fonts declaration.
11096 * nsterm.m: Get rid of remaining "//" comments.
11097
110982008-07-22 Chong Yidong <cyd@stupidchicken.com>
11099
11100 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11101
11102 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11103 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11104 (Fns_own_selection_internal, Fx_disown_selection_internal)
11105 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11106
11107 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11108 ... */' style of docstrings. Doc fixes.
11109
111102008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11111
11112 * terminfo.c (UP, BC, PC): Undo previous change.
11113
11114 * nsfns.m: Rename ns prefixed functions/variables to the
11115 corresponding x versions. Update references.
11116
111172008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11118
11119 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11120
111212008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11122
11123 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11124 Remove forwarding functions.
11125 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11126 non-static.
11127 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11128 non-static.
11129 (ns_frame_parm_handlers): Use the new names.
11130 (syms_of_nsfns): Move to the end of file.
11131
11132 * nsterm.m (syms_of_nsterm): Move to the end of file.
11133
11134 * dispnew.c (init_display): Remove code for X10.
11135
111362008-07-22 Jason Rumney <jasonr@gnu.org>
11137
11138 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11139 bare drive.
11140
111412008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11142
11143 * nsterm.m (syms_of_nsterm): Remove debugging println.
11144
111452008-07-22 David Reitter <david.reitter@gmail.com>
11146
11147 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11148 Carbon implementation of the same functionality: execute arbitrary
11149 AppleScript code.
11150
111512008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11152
11153 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11154 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11155 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11156 (Fx_display_mm_height, Fx_display_mm_width)
11157 (Fx_display_backing_store, Fx_display_visual_class)
11158 (Fx_display_save_under, Fx_open_connection)
11159 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11160 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11161 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11162 (Fx_display_pixel_width, Fx_display_pixel_height)
11163 (Fx_display_usable_bounds, Fx_display_planes)
11164 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11165 ... */' style of docstrings.
11166
111672008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11168
11169 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11170 on this platform.
11171 (mips):
11172 * m/iris4d.h (mips): Do not define.
11173 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11174
11175 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11176
11177 * image.c:
11178 * nsfns.m:
11179 * nsselect.m:
11180 * nsterm.h:
11181 * nsterm.m: Rename ns prefixed functions/variables to the
11182 corresponding x versions. Update references.
11183
11184 * m/ibms390x.h (NO_REMAP): Do not undefine.
11185
11186 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11187
111882008-07-21 Chong Yidong <cyd@stupidchicken.com>
11189
11190 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11191 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11192 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11193 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11194 (Fns_display_mm_height, Fns_display_mm_width)
11195 (Fns_display_backing_store, Fns_display_visual_class)
11196 (Fns_display_save_under, Fns_open_connection)
11197 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11198 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11199 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11200 (Fns_display_pixel_width, Fns_display_pixel_height)
11201 (Fns_display_usable_bounds, Fx_display_planes)
11202 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11203
112042008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11205
11206 * print.c (print_object): Check print_depth before searching for
11207 circularities.
11208
112092008-07-21 Michael Albinus <michael.albinus@gmx.de>
11210
11211 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11212 only sprintf.
11213
112142008-07-21 Kenichi Handa <handa@m17n.org>
11215
11216 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11217
112182008-07-20 Andreas Schwab <schwab@suse.de>
11219
11220 * syntax.c (find_start_pos, find_start_value)
11221 (find_start_value_byte, find_start_begv, find_defun_start)
11222 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11223
112242008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11225
11226 * s/sol2-3.h: Insert contents of s/sol2.h.
11227 (LD_SWITCH_SYSTEM): Remove redundant definition.
11228 * s/sol2.h: Remove, unused.
11229
112302008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11231
11232 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11233
112342008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11235
11236 * Makefile.in (ns_appdir): Fix typo in find command.
11237
112382008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11239
11240 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11241
11242 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11243 added not supported anymore.
11244
11245 * s/usg5-4-2.h (LIBS_SYSTEM):
11246 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11247
11248 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11249 * s/lynxos.h (GETPGRP_NO_ARG):
11250 * s/hpux10-20.h (NO_SIOCTL_H):
11251 * s/gnu.h (GETPGRP_NO_ARG):
11252 * s/gnu-linux.h (NO_SIOCTL_H):
11253 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11254 * s/cygwin.h (GETPGRP_NO_ARG):
11255 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11256 (C_DEBUG_SWITCH): Remove duplicate definition.
11257
11258 * m/ibms390.h: Remove boilerplate comments.
11259
11260 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11261
11262 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11263 (wait_reading_process_output): Remove code for SunOS, platform not
11264 supported anymore. Use SOLARIS2 instead of sun.
11265
112662008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11267
11268 * font.c (font_open_by_name): Under NS, default lface height to zero.
11269 (font_open_for_lface): Under NS, set size based on frame fontsize.
11270 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11271 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11272
112732008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11274
11275 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11276 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11277 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11278 YES/NO.
11279 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11280 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11281 * Makefile.in (clean): Clear out build destination dir.
11282
112832008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11284
11285 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11286 xterm, xselect.
11287 * lisp.h: Remove declaration of hash_remove.
11288 * nsgui.h: Remove redefinitions of hash_remove.
11289 * fns.c (hash_remove): Rename to hash_remove_from_table.
11290
112912008-07-19 Seiji Zenitani <zenitani@mac.com>
11292
11293 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11294 strdup() the family UTF8String before modifying it.
11295
112962008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11297
11298 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11299 NS_FACE_BACKGROUND with 0 instead of nil.
11300 * nsfont.m (nsfont_draw): Same.
11301
113022008-07-19 Chong Yidong <cyd@stupidchicken.com>
11303
11304 * nsfns.m (ns_set_background_color): Fix crash.
11305
113062008-07-18 Chong Yidong <cyd@stupidchicken.com>
11307
11308 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11309
113102008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11311
11312 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11313
113142008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11315
11316 * gtkutil.c: Include <config.h> instead of "config.h".
11317
11318 * lisp.h (Foverlay_buffer): Add EXFUN.
11319
11320 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11321 child process to complete child_setup. Undo 2005-09-21 change.
11322
11323 * s/darwin.h: Mention setsid after vfork.
11324
113252008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11326
11327 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11328 Depend on macgui.h.
11329
11330 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11331 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11332
11333 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11334 and f19.
11335 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11336
11337 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11338 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11339 Remove enumerators.
11340
11341 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11342 Check if FACE_FROM_ID returns NULL.
11343
113442008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11345
11346 * w32inevt.c (change_frame_size): Remove extern declaration.
11347 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11348 change_frame_size.
11349
113502008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11351
11352 * getloadavg.c: Revert last change (2008-07-15).
11353
113542008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11355
11356 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11357 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11358 from configure.
11359
113602008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11361
11362 * s/sol2.h:
11363 * s/sol2-4.h: Reorganize conditionals.
11364
11365 * ecrt0.c: Remove code depending on m68000, not used anymore.
11366
11367 * fns.c (hash_remove): Make static.
11368 * lisp.h (hash_remove): Don't prototype.
11369
11370 * m/ibmrs6000.h:
11371 * m/ibms390x.h:
11372 * m/macppc.h: Remove boilerplate comments.
11373
11374 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11375 Solaris, which does not need them.
11376
11377 * m/vax.h: Remove comments about unsupported systems.
11378
11379 * s/darwin.h: Reorganize ifdefs.
11380
113812008-07-17 Andreas Schwab <schwab@suse.de>
11382
11383 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11384
113852008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11386
11387 Use SDATA. Follow coding convention of placing operators at
11388 beginning of next line rather than end of previous line, and placing
11389 spaces around infix operators.
11390
11391 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11392 in case it was defined already.
11393 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11394 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11395 ns_default.
11396 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11397 Lisp_Objects.
11398 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11399 (ns_defined_color, ns_color_to_lisp): Declare.
11400 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11401 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11402 it's accepted even with USE_LISP_UNION_TYPE.
11403 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11404 (update_frame_tool_bar): Remove apparently obsolete tests for
11405 non-integerness of f->tool_bar_lines.
11406 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11407 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11408 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11409 (nsfont_open): Don't confuse NULL for Qnil.
11410 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11411 * menu.h (find_and_call_menu_selection):
11412 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11413 (find_and_return_menu_selection): Always return something.
11414 * frame.h: Include dispextern.h for Display_Info.
11415 (display_x_get_resource): Declare.
11416
114172008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11418
11419 * syntax.c: Remove stdio.h include accidentally introduced in
11420 Emacs.app commit.
11421 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11422 NS_IMPL_COCOA.
11423 * keyboard.c (handle_async_input, input_available_signal): Remove
11424 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11425
114262008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11427
11428 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11429 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11430 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11431 Use SDATA.
11432
11433 * keymap.c: Remove all NS-specific code.
11434 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11435 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11436 where_is_preferred_modifier, return a different value depending on how
11437 preferred is the binding.
11438 (where_is_internal): Adjust accordingly.
11439 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11440 Adjust to new preferred_sequence_p.
11441 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11442 * keyboard.c (parse_solitary_modifier): Not static any more.
11443 * keyboard.h (parse_solitary_modifier): Declare.
11444
114452008-07-16 Andreas Schwab <schwab@suse.de>
11446
11447 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11448 of easymenu.
11449
114502008-07-16 Chong Yidong <cyd@stupidchicken.com>
11451
11452 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11453 that we don't move off the line.
11454
114552008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11456
11457 * keyboard.c (Qsuper): Remove.
11458 (parse_menu_item): Don't call where_is_internal specially for NS.
11459
114602008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11461
11462 * s/gnu-linux.h: Remove boilerplate comments.
11463
11464 * m/alpha.h (__ELF__): Consolidate conditions.
11465
11466 * m/m68k.h (linux): Use GNU_LINUX instead.
11467 Remove boilerplate comments.
11468
11469 * m/intel386.h: Undo refactoring from previous change.
11470 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11471 too, remove dead code.
11472 (linux): Use GNU_LINUX instead.
11473
114742008-07-16 Jason Rumney <jasonr@gnu.org>
11475
11476 * w32gui.h: Repeat 26 June changes lost by last change.
11477
114782008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11479
11480 * systty.h: Remove code for Aix on 386, unsupported platform.
11481
11482 * s/ms-w32.h: Remove boilerplate comments.
11483 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11484
11485 * s/gnu-linux.h (TERM): Remove support.
11486 (HAVE_SYSVIPC): Remove, unused.
11487 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11488 for this system.
11489
11490 * process.c: Remove support for IRIS, unused.
11491 Remove support for TERM, not relevant anymore.
11492
11493 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11494 used with the definition.
11495
11496 * s/aix4-2.h (static): Do not undef.
11497
11498 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11499 only used on Aix.
11500 (HAVE_SYSVIPC): Remove, unused.
11501
11502 * m/hp800.h (CANNOT_DUMP): Do not undef.
11503
11504 * m/alpha.h: Fix comment.
11505
11506 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11507 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11508 used by this configuration.
11509 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11510 * unexec.c: Remove code depending on HPUX and
11511 USG_SHARED_LIBRARIES, not used with this file. Remove code
11512 depending on IRIS, unused. Remove if 0-ed code.
11513
11514 * s/template.h: Remove comments about static.
11515
11516 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11517 Remove if 0-ed code.
11518 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11519 were the same as the default.
11520 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11521 Remove boilerplate comments.
11522 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11523 (HAVE_SYSVIPC): Remove, unused.
11524 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11525
11526 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11527 Remove boilerplate comments.
11528 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11529 Remove boilerplate comments.
11530 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11531 Remove boilerplate comments.
11532 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11533
11534 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11535 USG systems which do not use DATA_SEG_BITS.
11536 Refactor code. Remove boilerplate comments.
11537
11538 * m/ibms390.h:
11539 * m/m68k.h:
11540 * s/bsd-common.h:
11541 * s/cygwin.h:
11542 * s/darwin.h:
11543 * s/freebsd.h:
11544 * s/gnu.h:
11545 * s/msdos.h: Remove boilerplate comments.
11546
11547 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11548 do not use this file.
aac0c6e3
MR
11549 (IRIS_4D): Remove, unused.
11550
11551 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11552 do not use this file.
aac0c6e3
MR
11553 (SIGN_EXTEND_CHAR):
11554 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11555 * unexmips.c: Remove file, unused.
11556
11557 * editfns.c (Fuser_full_name): Replace the only use of
11558 USER_FULL_NAME with its value.
11559 * config.in: Regenerate.
11560
115612008-07-16 David Reitter <david.reitter@gmail.com>
11562
11563 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11564 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11565
115662008-07-16 Glenn Morris <rgm@gnu.org>
11567
11568 * emacs.c (system-type): Doc fix.
11569
115702008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11571
11572 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11573 If the cache doesn't work, let's fix it, rather than work around it.
11574
115752008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11576
11577 * Makefile.in: Correct additions for nsfont.o in last commit.
11578 * nsfont.m: New file (forgot last commit).
11579
115802008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11581
11582 * callproc.c (set_initial_environment): Initialize
11583 Vprocess_environment under CANNOT_DUMP (fixes crash when
11584 batch-compiling for bootstrap).
11585
115862008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11587 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11588
11589 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11590 fix crash due to different init order.
11591
115922008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11593
11594 Changes and additions for NeXTstep windowing system (Cocoa and
11595 GNUstep) support.
11596
11597 * Makefile.in:
11598 * config.in: Support defines and build commands for NS port.
11599 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11600 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11601 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11602 windowing.
11603 (struct face): Add synth_ital field.
11604 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11605 (init_display): Initialize Vinitial_window_system to "ns" when so
11606 compiled.
11607 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11608 (display_arg): Use under NS.
11609 (main): Under NS, allocate autorelease pool and handle command line
11610 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11611 (standard_args): Add NS-specific args.
11612 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11613 * font.c (DEFAULT_ENCODING): New variable.
11614 (font_find_for_lface): Use it.
11615 (syms_of_font): Load syms_of_nsfont under NS.
11616 * font.h: Declare nsfont_driver when compiled under NS.
11617 * fontset.c: When compiling under NS, include nsterm.h.
11618 (fontset_from_font): Autoconstruct fontset under NS.
11619 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11620 symbol, document and use it.
11621 (do_switch_frame): When for_deletion under Cocoa, add
11622 Fraise_frame(Qnil).
11623 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11624 (x_get_arg): Allow "yes" and "no" as boolean values.
11625 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11626 Qright under Cocoa.
11627 (focus-follows-mouse): Default to 0 under NS.
11628 * frame.h (enum output_method): Add output_ns.
11629 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11630 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11631 (FRAME_WINDOW_P): NS-specific definition.
11632 * fringe.c (max_used_fringe_bitmap): Make public.
11633 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11634 (getloadavg): Use NeXT code under descendant OS's.
11635 * image.c (includes and header section, x_create_bitmap_from_data)
11636 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11637 (image_background_transparent, x_clear_image_1)
11638 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11639 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11640 (x_to_xcolors, x_from_xcolors, x_disable_image)
11641 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11642 other GUIs, including XPM support using code originally written for
11643 Carbon GUI.
11644 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11645 using NS API.
11646 (image_ascent): Use font metrics macros instead of direct struct field
11647 access.
11648 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11649 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11650 Also, handle NS as GTK for menu bar purposes.
11651 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11652 toolkit where they differ.
11653 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11654 use cachelist, still needed under NS.
11655 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11656 (struct widget_value): Define it here for menu.c.
11657 * keymap.c (includes): Include modifier internals.
11658 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11659 NS.
11660 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11661 support for preferring sequences using certain modifiers, specified by
11662 the FIRSTONLY argument.
11663 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11664 under NS GNUstep implementation.
11665 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11666 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11667 * menu.c: Include nsterm.h under NS.
11668 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11669 (free_menubar_widget_tree_value, update_submenu_strings)
11670 (find_and_call_menu_selection): Treat NS as X and NT.
11671 (find_and_return_menu_selection): New function, used for popup menus.
11672 * nsgui.h:
11673 * nsterm.h:
11674 * nsfns.m:
11675 * nsimage.m:
11676 * nsmenu.m:
11677 * nsselect.m:
11678 * nsterm.m: New files.
11679 * process.c (wait_reading_process_output): Under NS, call ns_select()
11680 instead of plain select().
11681 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11682 beginning of buffer.
11683 * sysselect.h (init_process): Rename when compiling under Cocoa to
11684 avoid name conflict.
11685 * termhooks.h (display_info): Add ns_display_info to union.
11686 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11687 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11688 COCOA environment.
11689 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11690 unexec() signature. (Note, this will dump, but the resulting file
11691 crashes; unexosx is used instead; keeping around for reference and
11692 possible aid in getting dump working under GNUstep.)
11693 * w32gui.h (button_type, widget_value): Remove definitions (now in
11694 keyboard.h).
11695 * window.c: Include nsterm.h when compiling under NS.
11696 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11697 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11698 other GUI windowing systems.
11699 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11700 GTK.
11701 (x_consider_frame_title): Under NS, set icon type and frame
11702 modified-state indicator; use ns_set_name_as_filename() when using
11703 formatted title.
11704 (update_window_cursor): Make public when compiling under NS.
11705 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11706 (hourglass_atimer, Vhourglass_delay
11707 * xfaces.c (header section, init_frame_faces, clear_font_table)
11708 (defined_color, unload_color, x_face_list_fonts)
11709 (prepare_face_for_display): Add NS support parallel to other GUIs.
11710 Emulate GCs like other non-X GUIs.
11711 (split_font_name): Don't lowercase font name under NS.
11712 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11713 under NS.
11714 * s/darwin.h: Add support for compilation under NS.
11715
117162008-07-15 Jason Rumney <jasonr@gnu.org>
11717
11718 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11719 (w32_show_hourglass): Rename from show_hourglass.
11720 (w32_hide_hourglass): Rename from hide_hourglass.
11721 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11722 (Vhourglass_delay): Declare extern.
11723 (hourglass_started): Remove.
11724
11725 * xdisp.c (Vhourglass_delay): Remove static.
11726 (hourglass_started, start_hourglass, cancel_hourglass):
11727 Don't include these versions on WINDOWSNT.
11728
117292008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11730
11731 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11732 variables (formerly in xfns.c).
11733 (show_hourglass, hide_hourglass): New prototypes (same).
11734 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11735 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11736 in xfns.c).
11737 (syms_of_xdisp): Declare/initialize display-hourglass,
11738 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11739 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11740 formerly in xfns.c.
11741 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11742 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11743 (start_hourglass, cancel_hourglass): Remove.
11744 (show_hourglass, hide_hourglass): Remove prototypes and static
11745 modifiers.
11746 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11747 hourglass_atimer, hourglass_shown_p declaration/initialization.
11748 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11749 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11750 (start_hourglass, cancel_hourglass): Remove.
11751 (show_hourglass, hide_hourglass): Remove prototypes and static
11752 modifiers.
11753 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11754 hourglass_atimer, hourglass_shown_p declaration/initialization.
11755 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11756 (DEFAULT_HOURGLASS_DELAY): Remove.
11757 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11758 hourglass_shown_p declaration/initialization.
11759
117602008-07-14 Jason Rumney <jasonr@gnu.org>
11761
11762 * w32fns.c (w32_get_arg): Remove wrapper function.
11763 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11764 directly.
11765 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11766
117672008-07-14 Kenichi Handa <handa@m17n.org>
11768
11769 * xfont.c (xfont_open): Add workaround for X's bug.
11770
117712008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11772
11773 * fontset.c: Include <stdio.h> unconditionally.
11774
117752008-07-13 Michael Albinus <michael.albinus@gmx.de>
11776
11777 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11778 for filtering.
11779
117802008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11781
11782 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11783
11784 * m/macppc.h:
11785 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11786
11787 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11788 (SPECIAL_EMACS_INT):
11789 * m/ia64.h (SPECIAL_EMACS_INT):
11790 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11791 * s/gnu.h (NLIST_STRUCT):
11792 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11793 * s/gnu-linux.h (LINUX):
11794 * s/msdos.h (HAVE_FACES):
11795 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11796
11797 * systty.h:
11798 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11799 anymore.
11800
118012008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11802
11803 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11804 always defined as int.
11805
11806 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11807 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11808 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11809 * s/freebsd.h (HAVE_WAIT_HEADER):
11810 * s/bsd-common.h (HAVE_UNION_WAIT):
11811 * s/aix4-2.h (HAVE_WAIT_HEADER):
11812 * m/mips.h (HAVE_UNION_WAIT):
11813 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11814 (COFF, static): Do not define, they are undefined later in the file.
11815
11816 * process.c (update_status): Don't use a union.
11817 (status_convert):
11818 (sigchld_handler): Use int instead of WAITTYPE.
11819
118202008-07-12 Chong Yidong <cyd@stupidchicken.com>
11821
11822 * indent.c (Fvertical_motion): Restore hscroll before moving to
11823 goal column.
11824
118252008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11826
11827 * lisp.h: Remove left over code.
11828
118292008-07-11 Andreas Schwab <schwab@suse.de>
11830
11831 * lisp.h: Fix logic in last change.
11832
11833 * menu.h: New file.
11834 * menu.c: Include it.
11835 * xmenu.c: Likewise.
11836 * Makefile.in: Update dependencies.
11837
118382008-07-11 Kenichi Handa <handa@m17n.org>
11839
11840 * fontset.c (fontset_from_font): Cancel the previous change.
11841
118422008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11843
11844 * lisp.h:
11845 * w32heap.c:
11846 * emacs.c:
11847 * alloc.c: Replace all references of NO_UNION_TYPE with
11848 USE_LISP_UNION_TYPE.
11849
11850 * m/xtensa.h (NO_UNION_TYPE):
11851 * m/vax.h (NO_UNION_TYPE):
11852 * m/template.h (NO_UNION_TYPE):
11853 * m/sparc.h (NO_UNION_TYPE):
11854 * m/mips.h (NO_UNION_TYPE):
11855 * m/macppc.h (NO_UNION_TYPE):
11856 * m/m68k.h (NO_UNION_TYPE):
11857 * m/iris4d.h (NO_UNION_TYPE):
11858 * m/intel386.h (NO_UNION_TYPE):
11859 * m/ibms390x.h (NO_UNION_TYPE):
11860 * m/ibms390.h (NO_UNION_TYPE):
11861 * m/ibmrs6000.h (NO_UNION_TYPE):
11862 * m/ia64.h (NO_UNION_TYPE):
11863 * m/hp800.h (NO_UNION_TYPE):
11864 * m/arm.h (NO_UNION_TYPE):
11865 * m/amdx86-64.h (NO_UNION_TYPE):
11866 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11867 defining it the same.
11868
118692008-07-10 Chong Yidong <cyd@stupidchicken.com>
11870
11871 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11872
118732008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11874
11875 * fileio.c:
50426a04 11876 * sysdep.c:
aac0c6e3
MR
11877 * systty.h:
11878 * m/ibmrs6000.h:
11879 * m/iris4d.h:
11880 * s/aix4-2.h:
11881 * s/freebsd.h:
11882 * s/gnu-linux.h:
11883 * s/hpux10-20.h:
11884 * s/hpux11.h:
11885 * s/netbsd.h:
11886 * s/sol2-3.h:
11887 * s/sol2-4.h:
11888 * s/sol2.h:
11889 * s/usg5-4.h:
11890 * s/vms.h: Remove references to unused variables.
11891
118922008-07-10 Andreas Schwab <schwab@suse.de>
11893
11894 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11895 pattern before matching the generic family.
11896
118972008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11898
11899 * unexec.c:
11900 * s/vms.h:
11901 * s/usg5-4-2.h:
11902 * s/sol2-5.h:
11903 * s/freebsd.h:
11904 * s/darwin.h: Remove dead code.
11905
11906 * m/template.h:
11907 * m/sparc.h:
11908 * m/mips.h:
11909 * m/m68k.h:
11910 * m/iris4d.h:
11911 * m/intel386.h:
11912 * m/ibms390x.h:
11913 * m/ibms390.h:
11914 * m/ia64.h:
11915 * m/hp800.h:
11916 * m/arm.h:
11917 * m/amdx86-64.h: Remove dead code and references to unused
11918 and compiler defined symbols.
11919
11920 * unexmips.c:
11921 * unexelf.c: Remove references to desupported systems.
11922
11923 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11924
11925 * m/powermac.h: Remove boilerplate comments.
11926 (NO_REMAP): Remove unused definition.
11927
11928 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11929 define them.
11930
119312008-07-10 Kenichi Handa <handa@m17n.org>
11932
11933 * xfont.c (xfont_open): Log the reason of failure.
11934
119352008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11936
11937 * fontset.c (fontset_get_font_group):
11938 * font.c (font_check_otf): Specify argument types.
11939
119402008-07-09 Kenichi Handa <handa@m17n.org>
11941
11942 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11943 non-ASCII char is found.
11944
11945 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11946 (reorder_font_vector): Change the arg preferred_family to font.
11947 Prefer the spec matching with font.
11948 (fontset_get_font_group): New function.
11949 (fontset_find_font): Change the format of an element of a realized
11950 fontset. Use fontset_get_font_group.
11951 (fontset_font): Try the current fontset, the default fontset, the
11952 fallbacks of the current fontset, and the fallbacks of the default
11953 fontset in this order.
11954 (face_for_char): Delete the shortcut to use the current font.
11955 (fontset_from_font): Don't set fonts for Latin in the fontset.
11956
11957 * font.h (font_make_object, font_match_p): Adjust prototypes.
11958
11959 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11960
11961 * font.c (font_make_object): New arg entity and pixelsize.
11962 (font_check_otf_features, font_check_otf): New functions.
11963 (font_match_p): Check :lang, :script, and :otf properties.
11964
11965 * xfont.c (xfont_open): Adjust it for the change of
11966 font_make_object.
11967 (xfont_text_extents): Fix initial setting of metrics.
11968
11969 * ftfont.c (struct ftfont_info): New member index, delete member
11970 fc_charset_idx. Make the member order compatible with struct
11971 xftfont_info.
11972 (fc_charset_table): Change charset names to registry names.
11973 (ftfont_pattern_entity): Delete the args registry and
11974 fc_charset_idx. Change the value of :font-entity property
11975 to (FONTNAME . INDEX). Always set :registry property to
11976 `iso10646-1'.
11977 (struct ftfont_cache_data): New struct.
11978 (ftfont_lookup_cache): New arg for_face.
11979 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11980 (ftfont_driver): Set the member otf_capability.
11981 (ftfont_get_charset): Adjust it for the change of
11982 fc_charset_table.
11983 (OTF_TAG_SYM): New macro.
11984 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11985 for the change of fc_charset_table.
11986 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11987 ftfont_pattern_entity. Add FC_INDEX to objset.
11988 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11989 and ftfont_pattern_entity.
11990 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11991 font_make_object, struct ftfont_info.
11992 (ftfont_has_char): Use ftfont_get_fc_charset.
11993 (ftfont_otf_features, ftfont_otf_capability): New functions.
11994 (ftfont_shape): Use ftfont_get_otf.
11995 (ftfont_text_extents): Fix initial setting of metrics.
11996
11997 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11998 member order compatible with struct ftfont_info.
11999 (xftfont_open): Add FC_CHARSET to the pattern. Set
12000 xftfont_info->ft_size. Don't unlock the face. Check BDF
12001 properties if appropriate.
12002 (xftfont_close): Unlock the face.
12003 (xftfont_anchor_point, xftfont_shape): Deleted.
12004 (syms_of_xftfont): Don't set members anchor_point and shape of
12005 xftfont_driver.
12006
12007 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12008 font_make_object.
12009
12010 * w32font.c (w32font_open): Adjust it for the change of
12011 font_make_object.
12012 (w32font_open_internal): Don't set properties of font_object here.
12013
120142008-07-08 Chong Yidong <cyd@stupidchicken.com>
12015
12016 * macfns.c (x_create_tip_frame):
12017 * w32fns.c (x_create_tip_frame):
12018 * xfns.c (x_create_tip_frame): Pass parameter argument to
12019 face-set-after-frame-default.
12020
12021 * xfaces.c (Finternal_merge_in_global_face): Save merged
12022 attributes for the default face back into the face vector.
12023
120242008-07-08 Andreas Schwab <schwab@suse.de>
12025
12026 * fontset.h: Declare fontset_from_font. Don't declare
12027 new_fontset_from_font and fontset_from_font_name.
12028 * xterm.c: Include "fontset.h".
12029 * Makefile.in (xterm.o): Update dependencies.
12030
120312008-07-08 Glenn Morris <rgm@gnu.org>
12032
12033 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12034 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12035
120362008-07-07 Chong Yidong <cyd@stupidchicken.com>
12037
12038 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12039 (x_set_frame_parameters): Don't bind it.
12040
120412008-07-07 Juanma Barranquero <lekktu@gmail.com>
12042
12043 * w32fns.c (map_w32_filename): Declare extern.
12044
120452008-07-07 Jason Rumney <jasonr@gnu.org>
12046
12047 * w32term.c (WS_EX_LAYERED): Define if not already.
12048
120492008-07-06 Chong Yidong <cyd@stupidchicken.com>
12050
12051 * xfaces.c (set_font_frame_param): Don't try to set the font
12052 parameter if it is still unspecified in the lface.
12053
120542008-07-05 Chong Yidong <cyd@stupidchicken.com>
12055
12056 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12057 face if it didn't already exist.
12058
12059 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12060
120612008-07-05 Andreas Schwab <schwab@suse.de>
12062
12063 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12064
120652008-07-05 Chong Yidong <cyd@stupidchicken.com>
12066
12067 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12068 word-wrapping.
12069 (IT_DISPLAYING_WHITESPACE): New macro.
12070 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12071 when word-wrapping. Simplify word-wrapping logic. Use correct
12072 pixel positions when saving copies of the iterator.
12073 (display_line): Use proper wrap point if the last character on a
12074 line was preceded by whitespace.
12075
120762008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12077
12078 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12079
120802008-07-04 Kenichi Handa <handa@m17n.org>
12081
12082 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12083
12084 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12085
120862008-07-02 Jason Rumney <jasonr@gnu.org>
12087
12088 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12089 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12090
12091 * xdisp.c (next_element_from_display_vector): Move assignment out
12092 of if statement.
12093
120942008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12095
12096 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12097
12098 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12099 (syms_of_fileio): Initialize and export them.
12100 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12101
12102 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12103 (Fsystem_move_file_to_trash): New function.
12104 (syms_of_w32fns): Export it to lisp.
12105
121062008-07-01 Jason Rumney <jasonr@gnu.org>
12107
12108 * w32font.c (w32font_text_extents): Don't count overhang as part
12109 of width.
12110
121112008-06-30 Miles Bader <miles@gnu.org>
12112
12113 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12114 Add `avoid_cursor_p' field.
12115
12116 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12117 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12118 (append_glyph, append_composite_glyph, produce_image_glyph)
12119 (append_stretch_glyph): Initialize avoid_cursor_p.
12120 (get_it_property): Rename from `get_line_height_property'.
12121 (x_produce_glyphs): Use get_it_property.
12122 (handle_line_prefix, push_display_prop): New functions.
12123 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12124 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12125 New variables.
12126 (syms_of_xdisp): Initialize them.
12127
121282008-06-30 Kenichi Handa <handa@m17n.org>
12129
12130 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12131 XftDefaultSubstitute (they are called in XftFontMatch).
12132 (xftfont_open): Fix args to ftfont_font_format.
12133
12134 * ftfont.c (fc_charset_table): New member lang.
12135 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12136 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12137 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12138 (ftfont_open): Fix args to ftfont_font_format.
12139 (ftfont_font_format): New arg filename.
12140
121412008-06-30 Chong Yidong <cyd@stupidchicken.com>
12142
12143 * xfaces.c (Finternal_merge_in_global_face): If default face was
12144 modified, realize it again. Update the font face attribute.
12145
121462008-06-29 Jason Rumney <jasonr@gnu.org>
12147
12148 * w32term.c (x_set_frame_alpha): Fix logic.
12149
121502008-06-29 Kenichi Handa <handa@m17n.org>
12151
12152 * fontset.c (Finternal_char_font): Return font-object instead of
12153 font-name.
12154
12155 * composite.c (get_composition_id): Fix the width calculation for TAB.
12156
121572008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12158
12159 * indent.c (Fvertical_motion): Properly handle float column arg.
12160
121612008-06-28 Jason Rumney <jasonr@gnu.org>
12162
12163 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12164 (pfnSetLayeredWindowAttributes): New function pointer.
12165 (w32_initialize): Initialize it when supported.
12166 (x_set_frame_alpha): New function.
12167
12168 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12169 (w32_frame_parm_handlers): Set alpha handler.
12170
12171 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12172
121732008-06-27 Jason Rumney <jasonr@gnu.org>
12174
12175 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12176 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12177 (w32_to_x_charset, x_to_w32_charset)
12178 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12179 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12180 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12181 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12182 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12183 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12184 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12185 (Qw32_charset_unicode): Remove.
12186 (syms_of_w32fns): Update for above changes.
12187
12188 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12189 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12190 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12191 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12192 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12193 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12194 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12195 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12196 (syms_of_w32font): Update for above changes.
12197
121982008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12199
12200 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12201 removed #if.
12202 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12203
122042008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12205 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12206
12207 * makefile.w32-in (LOCAL_FLAGS):
12208 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12209
12210 * sysdep.c (_spawnlp, _getpid):
12211 Declare with explicit _cdecl instead of _CRTAPI1.
12212
12213 * editfns.c (Fget_internal_run_time):
12214 Check for WINDOWSNT with #ifdef, not #if.
12215
122162008-06-26 Jason Rumney <jasonr@gnu.org>
12217
12218 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12219
12220 * w32term.c (x_draw_glyph_string_foreground)
12221 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12222 Use FONT_HANDLE macro.
12223 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12224
12225 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12226 (uniscribe_encode_char): Use FONT_HANDLE macro.
12227
12228 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12229 (w32font_text_extents): Use precast w32_font.
12230 (w32font_close): Free cached metrics.
12231 (w32font_open_internal): Allocate space for name on stack.
12232
122332008-06-26 Chong Yidong <cyd@stupidchicken.com>
12234
12235 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12236
122372008-06-26 Jason Rumney <jasonr@gnu.org>
12238
12239 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12240 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12241
122422008-06-26 Juanma Barranquero <lekktu@gmail.com>
12243
12244 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12245
122462008-06-26 Jason Rumney <jasonr@gnu.org>
12247
12248 * w32bdf.c, w32bdf.h: Remove obsolete files.
12249
12250 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12251
12252 * w32gui.h: Don't include w32bdf.h.
12253 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12254 Remove obsolete font support.
12255
12256 * w32font.h (struct w32font_info): Remove compat_w32_font.
12257 Add hfont member.
12258 (FONT_COMPAT): Remove obsolete macro.
12259
12260 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12261 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12262 (w32font_open_internal): Remove compat code. Set new hfont member.
12263 (Fx_select_font): Use new hfont member.
12264
12265 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12266 (uniscribe_encode_char): Use new hfont member.
12267
12268 * w32term.c (x_draw_glyph_string_foreground)
12269 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12270 (x_draw_glyph_string): Use metrics in w32font_info.
12271
122722008-06-26 Kenichi Handa <handa@m17n.org>
12273
12274 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12275
122762008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12277
12278 * unexnext.c:
12279 * m/ews4800.h:
12280 * m/hp9000s300.h:
12281 * m/ibm370aix.h:
12282 * m/mips-siemens.h:
12283 * m/ncr386.h:
12284 * m/next.h:
12285 * m/pmax.h:
12286 * m/powerpcle.h:
12287 * m/tandem-s2.h:
12288 * s/386bsd.h:
12289 * s/bsd386.h:
12290 * s/bsd4-1.h:
12291 * s/bsd4-2.h:
12292 * s/bsdos2-1.h:
12293 * s/bsdos2.h:
12294 * s/bsdos3.h:
12295 * s/bsdos4.h:
12296 * s/nextstep.h:
12297 * s/ultrix4-3.h:
12298 * s/usg5-0.h:
12299 * s/usg5-2-2.h:
12300 * s/usg5-2.h:
12301 * s/usg5-4-3.h:
12302 * s/ux4800.h:
12303 * s/uxpds.h:
12304 * s/uxpv.h: Remove support for obsolete systems.
12305 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12306 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12307 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12308 Remove, insert contents in s/aix4-2.h.
12309 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12310 * s/bsd4-3.h: Rename to ...
12311 * s/bsd-common.h: ... this.
12312 * data.c:
12313 * doc.c:
12314 * ecrt0.c:
12315 * emacs.c:
12316 * fileio.c:
12317 * floatfns.c:
12318 * keyboard.c:
12319 * mem-limits.h:
12320 * print.c:
12321 * process.c:
12322 * sysdep.c:
12323 * syssignal.h:
12324 * systty.h:
12325 * syswait.h:
12326 * term.c:
12327 * unexec.c:
12328 * unexelf.c:
12329 * unexhp9k800.c:
12330 * m/hp800.h:
12331 * m/ibmrs6000.h:
12332 * m/mips.h:
12333 * m/vax.h:
12334 * s/darwin.h:
12335 * s/freebsd.h:
12336 * s/gnu.h:
12337 * s/ms-w32.h:
12338 * s/msdos.h:
12339 * s/netbsd.h:
12340 * s/template.h: Remove references to obsolete variables.
12341
12342 * Makefile.in: Add dependencies for all unexec files.
12343 (admindir): Remove unused variable.
12344 (UNEXEC_SRC): Remove references.
12345
123462008-06-25 Chong Yidong <cyd@stupidchicken.com>
12347
12348 * xfns.c (x_default_font_parameter): If Xft is available, first
12349 try Monospace-12 for the default font.
12350
123512008-06-25 Jason Rumney <jasonr@gnu.org>
12352
12353 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12354
123552008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12356
12357 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12358
12359 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12360
123612008-06-25 Juanma Barranquero <lekktu@gmail.com>
12362
12363 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12364 <scroll-conservatively>: Fix typo in docstring.
12365
12366 * xselect.c (Fx_send_client_event): Doc fix.
12367
123682008-06-25 Kenichi Handa <handa@m17n.org>
12369
12370 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12371
12372 * font.c (font_parse_fcname): Remove unused variables.
12373 (font_sort_entites): Delete the arg SPEC. Caller changed.
12374 Fix for the case of ! best_only.
12375 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12376
12377 * lisp.h (Fstring_to_unibyte): EXFUN it.
12378
12379 * character.h (str_to_unibyte): Extern it.
12380
12381 * character.c (str_to_unibyte): New function.
12382
12383 * fns.c (Fstring_to_unibyte): New function.
12384 (syms_of_fns): Defsubr it.
12385
123862008-06-24 Kenichi Handa <handa@m17n.org>
12387
12388 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12389 DPI too.
12390 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12391
123922008-06-24 Andreas Schwab <schwab@suse.de>
12393
12394 * Makefile.in (${lispsource}loaddefs.el): Rename from
12395 ../lisp/loaddefs.el.
12396 (bootstrap-clean): Do what distclean does but don't remove
12397 Makefile.
12398 (distclean): Depend on bootstrap-clean and remove Makefile.
12399
124002008-06-24 Chong Yidong <cyd@stupidchicken.com>
12401
12402 * buffer.h (struct buffer): New member word_wrap.
12403
12404 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12405 word-wrap.
12406 (init_buffer_once): Initialize them.
12407
12408 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12409 line_wrap enum possessing three possible values.
12410
12411 * termopts.h: Replace truncate_partial_width_windows with
12412 Vtruncate_partial_width_windows.
12413
12414 * dispnew.c (direct_output_for_insert): Avoid direct output when
12415 inserting a space with word wrap on.
12416
12417 * indent.c (compute_motion): Obey integer values of
12418 truncate-partial-width-windows.
12419
12420 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12421 replacing truncate_partial_width_windows.
12422 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12423 truncate only if the window width is below that integer.
12424 (start_display, resize_mini_window, produce_stretch_glyph)
12425 (display_string, move_it_in_display_line_to): Use line_wrap.
12426 (back_to_previous_visible_line_start, reseat_1): Reset
12427 string_from_display_prop_p.
12428 (display_line): Extend default face to end of line when wrapping.
12429
124302008-06-24 Kim F. Storm <storm@cua.dk>
12431
12432 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12433 to wrap continued lines at word boundaries.
12434
124352008-06-24 Jason Rumney <jasonr@gnu.org>
12436
12437 * font.c (Ffont_face_attributes): Multiply pixel size before point
12438 conversion to avoid multiplying rounding error.
12439
124402008-06-23 Jason Rumney <jasonr@gnu.org>
12441
12442 * w32term.c (x_draw_glyph_string_background)
12443 (x_draw_glyph_string): Remove old bdf font code.
12444
12445 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12446
124472008-06-22 Kenichi Handa <handa@m17n.org>
12448
12449 * font.c (font_find_for_lface): Try the adstyle specified in
12450 the property of LFACE_FONT of LFACE (if any).
12451
124522008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12453 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12454
12455 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12456
124572008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12458
12459 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12460 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12461 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12462 (witness-emacs): Remove.
12463 (lisp, shortlisp): Move loaddefs.el earlier.
12464 (mostlyclean): Forget about witness-emacs.
12465
124662008-06-22 Glenn Morris <rgm@gnu.org>
12467
12468 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12469 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12470
124712008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12472
12473 * Makefile.in (PRECOMP): Remove.
12474 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12475 (witness-emacs): Run `compile-first'.
12476 (.el.elc): Use the new compile-onefile target.
12477
124782008-06-21 Kenichi Handa <handa@m17n.org>
12479
12480 * xftfont.c (xftfont_open): Handle QCembolden only when
12481 FC_EMBOLDEN is defined.
12482
124832008-06-21 Andreas Schwab <schwab@suse.de>
12484
12485 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12486 (.el.elc): Likewise.
12487
124882008-06-21 Miles Bader <miles@gnu.org>
12489
12490 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12491 build dir, not the lisp source dir.
12492
124932008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12494
12495 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12496 (bootstrapclean): Remove.
12497 (.el.elc): New rule.
12498 (PRECOMP): New var.
12499 (../lisp/subdirs.el): Remove.
12500 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12501 (witness-emacs): New target.
12502 (mostlyclean): Remove witness-emacs as well.
12503 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12504 Add witness-emacs dependency.
12505
125062008-06-20 Chong Yidong <cyd@stupidchicken.com>
12507
12508 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12509 defined by the font.
12510
125112008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12512
12513 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12514 (bootstrap-clean): New target that keeps TAGS around.
12515 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12516 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12517
125182008-06-20 Jason Rumney <jasonr@gnu.org>
12519
12520 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12521 Remove obsolete font code.
12522
12523 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12524 to determine language support.
12525
125262008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12527
12528 * sysdep.c (cfsetspeed): New fun extracted from the code.
12529 (cfmakeraw): Move before first use.
12530
125312008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12532
12533 * sysdep.c (cfmakeraw): Provide fallback implementation.
12534 (serial_configure): Provide fallback implementation of cfsetspeed.
12535
125362008-06-20 Kenichi Handa <handa@m17n.org>
12537
12538 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12539 the pattern.
12540
12541 * fontset.c (fontset_from_font): Copy font_spec before changing
12542 the elements.
12543
12544 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12545
125462008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12547
12548 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12549 for explicit `font' parameters.
12550
12551 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12552
125532008-06-19 Kenichi Handa <handa@m17n.org>
12554
12555 * frame.c: Include <ctype.h>.
12556 (x_set_font_backend): Allow spacing characters in the X resource
12557 for FontBackend.
12558
125592008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12560
12561 * w32fns.c, xfns.c (Qfont_param): New var.
12562 (syms_of_w32fns): Initialize it.
12563 (x_default_font_parameter): Record explicit `font' into
12564 `font-parameter'.
12565
125662008-06-18 Kenichi Handa <handa@m17n.org>
12567
12568 * font.c (font_parse_xlfd): Fix previous change.
12569 (font_parse_fcname): Don't use :fc-unknown-spec.
12570 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12571 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12572 (font_add_log): Prepend the driver name to the resulting fonts.
12573
12574 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12575 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12576 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12577
12578 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12579 (QCembolden): New variables.
12580 (syms_of_xftfont): DEFSYM them.
12581 (xftfont_open): Call XftFontMatch. Don't trust the result of
12582 XftTextExtents8 if the pixel_size is less than 5.
12583
125842008-06-18 Andreas Schwab <schwab@suse.de>
12585
12586 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12587 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12588
125892008-06-18 Jason Rumney <jasonr@gnu.org>
12590
12591 * w32font.c (w32font_list, w32font_match): Add logging.
12592
12593 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12594
125952008-06-17 Chong Yidong <cyd@stupidchicken.com>
12596
12597 * font.c (font_parse_fcname): Store divider characters for
12598 unknown-spec list. For known key symbols, intern using correct
12599 symbol name.
12600
126012008-06-17 Kenichi Handa <handa@m17n.org>
12602
12603 * xfaces.c (realize_default_face): If the frame is not on window
12604 system, set the fontset of face to nil.
12605
126062008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12607
12608 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12609
126102008-06-16 Juanma Barranquero <lekktu@gmail.com>
12611
12612 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12613 (build_font_name_from_vector): Delete externs.
12614
12615 * xfaces.c (struct font_name): Don't declare.
12616
126172008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12618
12619 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12620
126212008-06-16 Chong Yidong <cyd@stupidchicken.com>
12622
12623 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12624
126252008-06-16 Juanma Barranquero <lekktu@gmail.com>
12626
12627 * font.c (Ffont_spec): Fix usage in docstring.
12628 (Ffont_face_attributes): Doc fix.
12629
126302008-06-16 Andreas Schwab <schwab@suse.de>
12631
12632 * font.c (Ffont_face_attributes): Fix definition.
12633
126342008-06-16 Jason Rumney <jasonr@gnu.org>
12635
12636 * font.h (font_style_symbolic_from_value): Remove.
12637
12638 * font.c (font_style_symbolic_from_value): Remove.
12639 (font_style_symbolic): Revert to pre 2008-06-13 version.
12640
12641 * w32font.c (w32_to_fc_weight): New function.
12642 (w32font_full_name, logfont_to_fcname): Use it.
12643
126442008-06-16 Kenichi Handa <handa@m17n.org>
12645
12646 * font.c (font_check_object): Delete it.
12647 (font_clear_cache): Check if a font-object is alive.
12648 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12649 font-object to nil.
12650 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12651 (font_at): Don't call font_check_object.
12652 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12653
126542008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12655
12656 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12657
126582008-06-16 Chong Yidong <cyd@stupidchicken.com>
12659
12660 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12661
126622008-06-15 Chong Yidong <cyd@stupidchicken.com>
12663
12664 * font.c (font_parse_fcname): Only one decimal point.
12665 (font_unparse_fcname): Handle data in family and foundry indices
12666 as symbols, not strings.
12667 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12668
12669 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12670
12671 * font.h (font_unparse_gtkname): Add prototype.
12672
126732008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12674
12675 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12676
126772008-06-15 Andreas Schwab <schwab@suse.de>
12678
12679 * font.c (font_update_drivers): Fix crash when no drivers match.
12680
126812008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12682
12683 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12684 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12685
126862008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12687
12688 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12689
126902008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12691
12692 * process.c (Fserial_process_configure, Fprocess_send_eof):
12693 Use EQ to compare Lisp_Objects.
12694
126952008-06-13 Jason Rumney <jasonr@gnu.org>
12696
12697 * w32fns.c (Fw32_select_font): Remove old font API function.
12698
12699 * w32font.c (logfont_to_fcname): New function.
12700 (Fx_select_font): New font dialog function compatible with
12701 GTK/fontconfig version.
12702
12703 * font.c (font_style_symbolic_from_value): New function.
12704 (font_style_symbolic): Use it.
12705
12706 * font.h (font_style_symbolic_from_value): Declare new function.
12707
127082008-06-13 Juanma Barranquero <lekktu@gmail.com>
12709
12710 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12711 <font-width-table>: Fix typos in docstrings.
12712
127132008-06-13 Daniel Engeler <engeler@gmail.com>
12714
12715 These changes add serial port access.
12716 * process.c: Add HAVE_SERIAL.
12717 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12718 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12719 (list_processes_1, select_wrapper, Fstop_process)
12720 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12721 (status_notify): Modify to handle serial processes.
12722 [HAVE_SERIAL] (Fserial_process_configure)
12723 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12724 New functions.
12725 * process.h (struct Lisp_Process): Add `type'.
12726 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12727 New functions.
12728 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12729 serial ports.
b71ac3dd 12730 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12731 * w32.h: Add FILE_SERIAL.
12732 (struct _child_process): Add ovl_read, ovl_write.
12733
127342008-06-13 Kenichi Handa <handa@m17n.org>
12735
12736 * dispextern.h (enum lface_attribute_index): New member
12737 LFACE_FOUNDRY_INDEX.
12738
12739 * font.c (font_score): Delete arg alternate_families. Check only
12740 weight, slant, width, and size. Ignore the difference of alias
12741 style symbols.
12742 (font_sort_entites): Adjust for the above change. Reflect the
12743 order of font-driver to scores.
12744 (font_list_entities): Don't check alternate_familes here.
12745 (font_clear_prop): Handle foundry.
12746 (font_update_lface): Don't parse "foundry-family" form here.
12747 Handle FONT_FOUNDRY_INDEX.
12748 (font_find_for_lface): Likewise. Handle alternate families here.
12749 If registry is nil, try iso8859-1 and ascii-0.
12750 (font_open_for_lface): Pay attention to size in ENTITY.
12751 (font_open_by_name): Simplify by calling font_load_for_lface.
12752 (free_font_driver_list): Delete it.
12753 (font_update_drivers): Preserve the order of backends.
12754 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12755 of font_score and font_sort_entites.
12756 (font_update_sort_order): Likewise.
12757
12758 * xfaces.c (LFACE_FOUNDRY): New macro.
12759 (check_lface_attrs): Check foundry.
12760 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12761 (merge_face_vectors): Check foundry.
12762 (merge_face_ref): Likewise.
12763 (Finternal_set_lisp_face_attribute): Likewise.
12764 (x_update_menu_appearance): Likewise.
12765 (Finternal_get_lisp_face_attribute): Likewise.
12766 (lface_hash): Likewise.
12767 (lface_same_font_attributes_p): Likewise.
12768 (x_supports_face_attributes_p): Likewise.
12769 (tty_supports_face_attributes_p): Likewise.
12770 (Finternal_set_alternative_font_family_alist): Intern strings.
12771 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12772 (realize_default_face): Set LFACE_FOUNDRY (lface).
12773
12774 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12775 font-driver at first.
12776
12777 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12778
127792008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12780
12781 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12782
127832008-06-12 Jim Meyering <meyering@redhat.com>
12784
12785 Make unexec_free handle NULL the same way free does.
12786 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12787
127882008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12789
12790 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12791 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12792 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12793 (WEAK_ALIAS): Simplify.
12794 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12795 when searching a unibyte buffer.
12796
127972008-06-12 Chong Yidong <cyd@stupidchicken.com>
12798
12799 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12800
128012008-06-12 Juanma Barranquero <lekktu@gmail.com>
12802
12803 * w32font.c: Include ctype.h.
12804
128052008-06-11 Jason Rumney <jasonr@gnu.org>
12806
12807 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12808 misreported as space.
12809 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12810 as aliases for registry iso10646-1.
12811
128122008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12813
12814 * buffer.c (clone_per_buffer_values): Skip `name'.
12815
128162008-06-11 Chong Yidong <cyd@stupidchicken.com>
12817
12818 * font.c (font_parse_fcname): Fix last change; accept decimal
12819 points in font size.
12820
128212008-06-10 Jason Rumney <jasonr@gnu.org>
12822
12823 * w32uniscribe.c (add_opentype_font_name_to_list):
12824 Skip non unicode fonts.
12825
128262008-06-10 Chong Yidong <cyd@stupidchicken.com>
12827
12828 * xfns.c (Fx_font_dialog): New function.
12829
12830 * gtkutil.c (xg_dialog_response_cb): Rename from
12831 xg_file_response_callback.
12832 (pop_down_dialog): Rename from pop_down_file_dialog.
12833 (xg_get_file_name): Callers changed.
12834 (xg_get_font_name): New function.
12835
12836 * gtkutil.h (xg_get_font_name): Insert prototype.
12837
128382008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12839
12840 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12841 x_underline_minimum_display_offset.
12842 (syms_of_xdisp): Declare it here rather than in xterm.c.
12843 * dispextern.h (underline_minimum_offset): Declare it.
12844 * w32term.c (x_draw_glyph_string): Use it.
12845 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12846 (syms_of_xterm): Don't declare it any more.
12847 (x_draw_glyph_string): Adjust to the new name.
12848
8719abec 128492008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12850
12851 * xterm.c (x_underline_minimum_display_offset): New var.
12852 (x_draw_glyph_string): Use it.
12853 (syms_of_xterm): Declare it.
12854
128552008-06-10 Chong Yidong <cyd@stupidchicken.com>
12856
12857 * font.c (font_parse_fcname): Accept GTK-style font names too.
12858
128592008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12860
12861 * dired.c (file_name_completion): Don't return t if the match is exact
12862 but with different capitalization.
12863 * minibuf.c (Ftry_completion): Simplify.
12864
12865 * window.c (Vwindow_point_insertion_type): New var.
12866 (set_window_buffer): Use it.
12867 (syms_of_window): Init and export it to Lisp.
12868
128692008-06-10 Kenichi Handa <handa@m17n.org>
12870
12871 * font.h (font_intern_prop): Prototype adjusted.
12872
12873 * font.c (font_intern_prop): New arg force_symbol.
12874 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12875 Adjust for the change of font_intern_prop.
12876
12877 * ftfont.c (ftfont_pattern_entity):
12878 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12879 (w32_registry):
12880 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12881 the change of font_intern_prop.
12882
128832008-06-09 Juanma Barranquero <lekktu@gmail.com>
12884
12885 * w32menu.c (digest_single_submenu): Declare extern.
12886
128872008-06-09 Jason Rumney <jasonr@gnu.org>
12888
12889 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12890
12891 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12892 (parse_single_submenu): Remove.
12893 (digest_single_submenu): Remove.
12894 (syms_of_w32menu): Don't initialise variables that have moved
12895 to menu.c.
12896 (set_frame_menubar): Sync with version in xmenu.c.
12897 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12898
12899 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12900 Make static again.
12901
129022008-06-09 Jason Rumney <jasonr@gnu.org>
12903
12904 Changes to w32 files related to the move of common menu code
12905 to menu.c on 2008-06-08 by Chong Yidong.
12906
12907 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12908 defs to w32gui.h.
12909 (single_keymap_panes, push_menu_item, push_menu_pane):
12910 Make globally visible.
12911
12912 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12913 (local_free, malloc_widget_value, free_widget_value)
12914 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12915 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12916 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12917 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12918 (menu_items, menu_items_allocated, menu_items_used)
12919 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12920 (init_menu_items, finish_menu_items, discard_menu_items)
12921 (grow_menu_items, push_submenu_start, push_submenu_end)
12922 (push_left_right_boundary, push_menu_pane, push_menu_item)
12923 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12924 (free_menubar_widget_tree_value, parse_single_submenu)
12925 (update_submenu_strings): Remove functions.
12926 (xmalloc_widget_value): Remove and declare extern.
12927
12928 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12929 (OBJ1): Build it.
12930
12931 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12932 (local_heap, local_alloc, local_free, malloc_widget_value)
12933 (free_widget_value): Define here.
12934
129352008-06-09 Kenichi Handa <handa@m17n.org>
12936
12937 * font.h (Qascii_0): Extern it.
12938
12939 * font.c (Qascii_0): New variable.
12940 (syms_of_font): DEFSYM it.
12941 (font_open_by_name): If the registry "iso8859-1" fails, try also
12942 "ascii-0".
12943
12944 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12945
129462008-06-08 Kenichi Handa <handa@m17n.org>
12947
12948 * .gdbinit (xfont): New command.
12949
129502008-06-08 Andreas Schwab <schwab@suse.de>
12951
12952 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12953 * Makefile.in (menu.o): Update dependencies.
12954
12955 * Makefile.in (obj): Always add menu.o.
12956 * emacs.c (main): Always call syms_of_menu.
12957 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12958
129592008-06-08 Chong Yidong <cyd@stupidchicken.com>
12960
12961 * Makefile.in: Compile menu.c.
12962
12963 * lisp.h: Declare syms_of_menu.
12964
12965 * emacs.c (main): Call syms_of_menu.
12966
12967 * keyboard.h: Relocate platform-independent menu definitions from
12968 xmenu.c.
12969
12970 * menu.c: New file. Relocate platform-independent menu
12971 definitions from xmenu.c. Suggested by Adrian Robert.
12972
12973 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12974 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12975 (menu_items_used, menu_items_n_panes)
12976 (menu_items_submenu_depth): Move to keyboard.h.
12977 (init_menu_items, finish_menu_items, unuse_menu_items)
12978 (discard_menu_items, restore_menu_items, save_menu_items)
12979 (grow_menu_items, push_submenu_start, push_submenu_end)
12980 (push_left_right_boundary, push_menu_pane, push_menu_item)
12981 (keymap_panes, single_keymap_panes, single_menu_item)
12982 (list_of_panes, list_of_items, find_and_call_menu_selection)
12983 (xmalloc_widget_value, free_menubar_widget_value_tree)
12984 (parse_single_submenu, digest_single_submenu)
12985 (update_submenu_strings): Move to menu.c.
12986
129872008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12988
12989 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12990
129912008-06-06 Miles Bader <miles@gnu.org>
12992
12993 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12994 face, not frame default.
12995
129962008-06-05 Martin Rudalics <rudalics@gmx.at>
12997
12998 * window.c (pop_up_windows, pop_up_frames)
12999 (display_buffer_reuse_frames, Vpop_up_frame_function)
13000 (Vdisplay_buffer_function, Veven_window_heights)
13001 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13002 (Vspecial_display_function, Vsame_window_buffer_names)
13003 (Vsame_window_regexps, split_height_threshold)
13004 (Vsplit_window_preferred_function): Move those vars to window.el.
13005 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13006 (Fdisplay_buffer): Move those functions to window.el.
13007 (syms_of_window): Remove corresponding declarations.
13008 (display_buffer): New function.
13009 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13010 * dispnew.c (Flast_nonminibuf_frame): New function.
13011 * buffer.c (Fpop_to_buffer): Move to window.el.
13012
130132008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13014
13015 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13016
130172008-06-05 Kenichi Handa <handa@m17n.org>
13018
13019 * coding.c (detect_coding): Fix previous change.
13020 (detect_coding_system): Likewise.
13021
130222008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13023
13024 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13025
13026 * keymap.c (Vminibuffer_local_filename_must_match_map):
13027 Rename from Vminibuffer_local_must_match_filename_map.
13028 (syms_of_keymap):
13029 * minibuf.c (Fcompleting_read): Adjust accordingly.
13030 * commands.h: Rename declaration as well.
13031
130322008-06-05 Kenichi Handa <handa@m17n.org>
13033
13034 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13035 family name.
13036 (Ffont_put): Likewise.
13037
13038 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13039 current font-spec.
13040
13041 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13042 is unspecified.
13043
13044 * xfaces.c (realize_x_face): If the font-related face attributes
13045 are the same as those of default face, realize a new fontset from
13046 default->fontset.
13047 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13048
130492008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13050
13051 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13052 (move_it_in_display_line): New wrapper.
13053
13054 * window.c (window_scroll_pixel_based_preserve_x)
13055 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13056 (window_scroll_pixel_based, window_scroll_line_based):
13057 Use them to preserve column positions.
13058 (syms_of_window): Initialize them.
13059
13060 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13061 (HPOS . VPOS) pair.
13062
13063 * dispextern.h (move_it_in_display_line): Declare.
13064
130652008-06-05 Juanma Barranquero <lekktu@gmail.com>
13066
13067 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13068 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13069 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13070
130712008-06-04 Juanma Barranquero <lekktu@gmail.com>
13072
13073 * window.c (Fset_window_parameter): Doc fix.
13074 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13075
130762008-06-04 Joakim Verona <joakim@verona.se>
13077
13078 * window.h (struct window): Add new member window_parameters.
13079
13080 * window.c (Fwindow_parameters, Fwindow_parameter)
13081 (Fset_window_parameter): New defuns.
13082 (syms_of_window): Defsubr the new defuns.
13083 (make_window): Initialize window_parameters to nil.
13084
130852008-06-04 John Paul Wallington <jpw@pobox.com>
13086
13087 * eval.c (Fdefmacro): Doc fix.
13088
130892008-06-04 Kenichi Handa <handa@m17n.org>
13090
13091 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13092 Be sure to call setup_coding_system when we find a proper coding system.
13093 (detect_coding_system): Fix handling of coding->head_ascii.
13094
130952008-06-03 Andreas Schwab <schwab@suse.de>
13096
13097 * font.c (font_prop_validate_spacing): Fix last change.
13098
130992008-06-03 Kenichi Handa <handa@m17n.org>
13100
13101 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13102 (font_parse_fcname): Fix handling of unknown key.
13103
13104 * xfont.c (xfont_list): Try an alias.
13105
13106 * charset.c (char_charset): Return NULL if the arg charset_list is
13107 specified and C doesn't belong to any of them.
13108
131092008-06-02 Chip Coldwell <coldwell@redhat.com>
13110
13111 * font.c (font_pixel_size): Don't take cdr of an integer.
13112
131132008-06-02 Jim Meyering <meyering@redhat.com>
13114
13115 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13116 * alloc.c (xfree): Return right away for a NULL arg.
13117 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13118 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13119 * mac.c (create_apple_event_from_event_ref): Likewise.
13120 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13121 Likewise.
13122 * doprnt.c (doprnt1): Likewise.
13123 * frame.c (frame): Likewise.
13124 * keyboard.c (wipe_kboard): Likewise.
13125 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13126 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13127 * term.c (tty_default_color_capabilities, maybe_fatal)
13128 (delete_tty): Likewise.
13129 * w16select.c (string): Likewise.
13130 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13131 * w32bdf.c (w32_free_bdf_font): Likewise.
13132 * w32fns.c (w32_unload_font): Likewise.
13133 * w32font.c (w32font_close): Likewise.
13134 * window.c (size_window): Likewise.
13135 * xselect.c (receive_incremental_selection): Likewise.
13136 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13137 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13138 * w32.c (stat): Likewise.
13139
13140 Remove useless if-before-free tests.
13141 * editfns.c (Fset_time_zone_rule): Likewise.
13142 * lread.c (nosuffix): Likewise.
13143 * ralloc.c (get_bloc): Likewise.
13144 * regex.c (reg_free): Likewise.
13145 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13146 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13147 * xsmfns.c (smc_save_yourself_CB): Likewise.
13148
131492008-06-02 Kenichi Handa <handa@m17n.org>
13150
13151 * font.c (font_find_for_lface): Handle float font size.
13152 (font_open_for_lface): Likewise.
13153
13154 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13155 comparing the properties.
13156
131572008-06-01 Jason Rumney <jasonr@gnu.org>
13158
13159 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13160 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13161 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13162 Don't add empty script list.
13163 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13164
131652008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13166
13167 * Makefile.in (dot, dotdot): Remove, update users.
13168 ".." has been used elsewhere in the file for a long time.
13169 (LIBXT_STATIC): Remove conditional based on unused variable.
13170
131712008-06-01 Miles Bader <miles@gnu.org>
13172
13173 * xfaces.c (Vface_remapping_alist): New variable.
13174 (syms_of_xfaces): Initialize it.
13175 (enum named_merge_point_kind): New type.
13176 (struct named_merge_point): Add `named_merge_point_kind' field.
13177 (push_named_merge_point): Make cycle detection respect different
13178 named-merge-point kinds.
13179 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13180 Remove face-name alias resolution.
13181 (lface_from_face_name): New definition using
13182 `lface_from_face_name_no_resolve'.
13183 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13184 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13185 (get_lface_attributes): New definition that layers face-remapping on
13186 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13187 (lookup_basic_face): New function.
13188 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13189 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13190 `get_lface_attributes'.
13191 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13192 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13193 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13194
13195 * xdisp.c (init_iterator): Pass base_face_id through
13196 `lookup_basic_face' when we actually use it as a face-id.
13197 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13198 DEFAULT_FACE_ID.
13199
13200 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13201 lookup the initial face-id.
13202
13203 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13204
132052008-06-01 Juanma Barranquero <lekktu@gmail.com>
13206
13207 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13208 (Fremove_text_properties): Fix typos in docstrings.
13209
132102008-05-31 Kenichi Handa <handa@m17n.org>
13211
13212 * font.c (font_list_entities): Fix the car part of data to be
13213 stored in the cache.
13214
13215 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13216
132172008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13218
13219 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13220 Add a `test' argument so another predicate than `equal' can be used.
13221 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13222 (map_char_table): Remove unused vars `c' and `i'.
13223 * lisp.h (Foptimize_char_table): Adjust declaration.
13224 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13225
132262008-05-30 Kenichi Handa <handa@m17n.org>
13227
13228 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13229 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13230 defined.
13231
132322008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13233
13234 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13235 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13236 frame-local settings for the same variable.
13237
132382008-05-30 Kenichi Handa <handa@m17n.org>
13239
13240 * fontset.c (Ffont_info): Move to font.c.
13241 (syms_of_fontset): Delete defsubr of Sfont_info.
13242
13243 * font.c (font_style_to_value, font_score): Delete casting of the
13244 args to xstcasecmp.
13245 (register_font_driver): Increment num_font_drivers only when
13246 registering the driver globally.
13247 (Ffont_info): Move from fontset.c. Handle a font object too.
13248 (syms_of_font): Defsubr Sfont_info.
13249
132502008-05-29 Kenichi Handa <handa@m17n.org>
13251
13252 * coding.h (enum define_coding_utf8_arg_index): New enum.
13253 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13254 coding_attr_utf_bom.
13255 (enum utf_bom_type): Rename from utf_16_bom_type.
13256 (struct utf_16_spec): Adjust for the above change.
13257 (struct coding_system): Add utf_8_bom in `spec' union.
13258
13259 * coding.c (CODING_UTF_8_BOM): New macro.
13260 (enum coding_category): Delete coding_category_utf_8, add
13261 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13262 coding_category_utf_8_sig.
13263 (CATEGORY_MASK_UTF_8): Delete it.
13264 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13265 (CATEGORY_MASK_UTF_8_SIG): New macros.
13266 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13267 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13268 CATEGORY_MASK_UTF_8_SIG.
13269 (CATEGORY_MASK_UTF_8): New macro.
13270 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13271 (detect_coding_utf_8): Check BOM.
13272 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13273 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13274 (encode_coding_utf_16): Likewise.
13275 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13276 (detect_coding, detect_coding_system): Handle utf-8-auto.
13277 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13278 (syms_of_coding): Fix setting up of Vcoding_category_table.
13279
132802008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13281
13282 * process.c (Faccept_process_output): If `millisec' is non-nil,
13283 `seconds' default to 0.
13284 (wait_reading_process_output): Also return non-nil if we read output
13285 from a non-running process.
13286
132872008-05-29 Jason Rumney <jasonr@gnu.org>
13288
13289 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13290 `raster' specified.
13291 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13292 in the uniscribe backend, but disallow any font that has no
13293 unicode subrange support.
13294
132952008-05-29 Juanma Barranquero <lekktu@gmail.com>
13296
13297 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13298 Fix typos in docstrings.
13299
133002008-05-29 Kenichi Handa <handa@m17n.org>
13301
13302 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13303 (Fx_family_fonts): Set frame correctly.
13304
133052008-05-28 Jason Rumney <jasonr@gnu.org>
13306
13307 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13308
133092008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13310
13311 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13312 calling build_annotations.
13313
133142008-05-28 Juanma Barranquero <lekktu@gmail.com>
13315
13316 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13317 (Fencode_coding_string):
13318 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13319 <latin-extra-code-table>: Fix typos in docstrings.
13320 (syms_of_coding) <coding-system-alist>: Doc fix.
13321 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13322
133232008-05-28 Kenichi Handa <handa@m17n.org>
13324
13325 * fontset.c (Ffont_info): Don't call font_close_object.
13326
13327 * font.c (font_parse_family_registry): Use Ffont_put to validate
13328 foundry and family.
13329 (font_delete_unmatched): Don't check spacing.
13330 (font_list_entities): Add spacing to the spec to list fonts.
13331
13332 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13333 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13334
13335 * coding.c (encode_coding_raw_text): Fix previous change.
13336 (encode_coding_object): When the dst_object is a buffer and is
13337 different from src_object, move gap to PT.
13338
133392008-05-27 Chong Yidong <cyd@stupidchicken.com>
13340
13341 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13342
133432008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13344
13345 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13346 all branches. Compute it differently.
13347
13348 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13349
133502008-05-27 Juanma Barranquero <lekktu@gmail.com>
13351
13352 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13353 into "else if () ... else ...".
13354
133552008-05-27 Jason Rumney <jasonr@gnu.org>
13356
13357 * w32font.c (w32font_open_internal): Determine if glyph indices
13358 are likely to work here.
13359
133602008-05-27 Chong Yidong <cyd@stupidchicken.com>
13361
13362 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13363 draw overlap glyphs with appropriate highlighting.
13364
133652008-05-27 Kenichi Handa <handa@m17n.org>
13366
13367 * xfont.c (xfont_open): Fix calculation of font->average_width.
13368
133692008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13370
13371 * casefiddle.c (casify_object): Try to guess better whether the
13372 argument is a byte or a char.
13373
133742008-05-26 Andreas Schwab <schwab@suse.de>
13375
13376 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13377 Always send multiples of format size.
13378
13379 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13380
133812008-05-26 Jason Rumney <jasonr@gnu.org>
13382
13383 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13384 (compute_metrics): Don't set failure if we just cleared the cache.
13385 (w32_weight_table): Remove unused variable.
13386 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13387 backwards compatibility.
13388
133892008-05-25 Kenichi Handa <handa@m17n.org>
13390
13391 * w32term.c (x_draw_glyph_string):
13392 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13393
13394 * xfaces.c: Delete unused function prototypes.
13395 (xstrlwr, font_frame): Delete them.
13396 (clear_face_cache): Delete unused variable.
13397
13398 * xftfont.c (xftfont_open): Delete unused variable.
13399 If underline_thickness is not 1, adjust underline_position.
13400
13401 * ftxfont.c (ftxfont_open): Delete unused variable.
13402
13403 * fontset.c (face_for_char): Optimize for the case of no charset
13404 property.
13405
13406 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13407 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13408 (otf_open, font_otf_capability, generate_otf_features)
13409 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13410 Comment out by surrounding "#if 0" and "#endif" for the moment.
13411 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13412 (syms_of_font): Codes for accessing above commented out.
13413
134142008-05-24 Eli Zaretskii <eliz@gnu.org>
13415
13416 * w32proc.c: Include dispextern.h.
13417
13418 * w32.c: Include dispextern.h.
13419
134202008-05-23 Juanma Barranquero <lekktu@gmail.com>
13421
13422 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13423 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13424 Fix typos in docstrings.
13425
134262008-05-23 Jason Rumney <jasonr@gnu.org>
13427
13428 * xsmfns.c: Remove includes that are already included by config.h.
13429
134302008-05-23 Kenichi Handa <handa@m17n.org>
13431
13432 * charset.c (Qemacs, charset_emacs): New variables.
13433 (char_charset): Fix for non-Unicode characters.
13434 (syms_of_charset): Define charset_emacs.
13435
13436 * w32term.c (x_draw_glyph_string): Be sure to update
13437 s->underline_thickness and s->underline_position. Be sure to draw
13438 underline within the current line area.
13439
13440 * xterm.c (x_draw_glyph_string): Be sure to update
13441 s->underline_thickness and s->underline_position. Be sure to draw
13442 underline within the current line area.
13443
13444 * fontset.c: Delete unused variables and add casting for char *
13445 throughout the file.
13446 (fontset_font): Try the fallback fonts of the current fontset
13447 before consulting the default fontset.
13448
13449 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13450
13451 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13452
134532008-05-22 Jason Rumney <jasonr@gnu.org>
13454
13455 * font.c: Don't include strings.h.
13456
13457 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13458
13459 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13460 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13461 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13462 to call xstrcasecmp.
13463
13464 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13465
13466 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13467
13468 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13469
13470 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13471
134722008-05-22 Kenichi Handa <handa@m17n.org>
13473
13474 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13475
13476 * font.c (font_prop_validate_style): Adjust for the format
13477 change of font_style_table.
13478
13479 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13480 two args.
13481
13482 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13483 two args.
13484
134852008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13486
13487 * minibuf.c (keys_of_minibuf): Delete.
13488 * lisp.h (keys_of_minibuf): Delete.
13489 * emacs.c (main): Don't call keys_of_minibuf.
13490
134912008-05-22 Kenichi Handa <handa@m17n.org>
13492
13493 * ftfont.c (ftfont_resolve_generic_family): Rename from
13494 ftfont_list_generic_family. Return a single family for each
13495 generic family.
13496 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13497 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13498 Call font_add_log.
13499 (ftfont_match): Call font_add_log.
13500
13501 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13502 (FONT_DEBUG): Define it.
13503 (font_add_log): Extern it.
13504 (font_assert): Rename from xassert.
13505
13506 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13507 (xfont_list_family): Call font_add_log.
13508 (xfont_match): Likewise.
13509 (memq_no_quit): Delete.
13510
13511 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13512 call of Ffont_xlfd_name.
13513
13514 * xfaces.c (struct table_entry, slant_table, weight_table)
13515 (swidth_table): Move to font.c.
13516
13517 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13518 xassert are changed to font_assert. Delete many unused variables.
13519 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13520 New variables.
13521 (struct table_entry): Move from xfaces.c and modified.
13522 (weight_table, slant_table, width_table): Move from xfaces.c and
13523 contents adjusted for the change of struct table_entry.
13524 (font_style_to_value, font_style_symbolic): Adjust for the
13525 format change of font_style_table.
13526 (font_parse_family_registry): Don't overwrite existing foundry and
13527 family of font_spec.
13528 (font_score): Fix calculation of diff for sizes.
13529 (font_sort_entites): Call font_add_log.
13530 (font_delete_unmatched): Return a newly created list.
13531 (font_list_entities): Fix previous change. Call font_add_log.
13532 (font_matching_entity, font_open_entity, font_close_entity):
13533 Call font_add_log.
13534 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13535 (Finternal_set_font_style_table): Delete.
13536 (BUILD_STYLE_TABLE): New macro.
13537 (build_style_table): New function.
13538 (Vfont_log, font_log_env_checked): New variables.
13539 (font_add_log): New function.
13540 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13541 Declare Lisp variables "font-weight-table", "font-slant-table",
13542 "font-width-table", and "font-log". Initialize font_style_table.
13543
135442008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13545
13546 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13547
135482008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13549 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13550
13551 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13552 (Vframe_alpha_lower_limit): New variable.
13553 (x_set_alpha): New function.
13554
13555 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13556
13557 * xfns.c (x-create-frame, Qalpha):
13558 Initialize the frame parameter `alpha'.
13559 * xterm.c (OPAQUE, OPACITY): New.
13560 (x_set_frame_alpha): New function.
13561 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13562
13563 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13564 * w32fns.c (w32_frame_parm_handlers): Likewise.
13565
135662008-05-20 Jason Rumney <jasonr@gnu.org>
13567
13568 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13569 truetype fonts to opentype list.
13570
135712008-05-20 Juanma Barranquero <lekktu@gmail.com>
13572
13573 * fontset.c (Ffontset_info): Doc fix.
13574 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13575 <ignore-relative-composition>: Fix typos in docstrings.
13576
13577 * font.c (syms-of-font) <font-encoding-alist>:
13578 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13579 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13580 (Ffont_otf_alternates): Doc fixes.
13581
135822008-05-20 Kenichi Handa <handa@m17n.org>
13583
13584 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13585 font.h through out the file.
13586 (FONT_DRIVERS): Rename from FONTOBJ.
13587 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13588 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13589
13590 * emacs.c (main): Call syms_of_font unconditionally.
13591
13592 * font.h (find_font_encoding): Extern it.
13593
13594 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13595 fontset.c.
194d44e7 13596 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13597 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13598 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13599 only when HAVE_WINDOW_SYSTEM is defined.
13600 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13601 when HAVE_WINDOW_SYSTEM is defined.
13602
13603 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13604 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13605
13606 * xfaces.c: Include font.h unconditionally.
13607 (merge_face_ref, merge_face_vectors)
13608 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13609
136102008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13611
13612 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13613 indirect_variable.
13614 * eval.c (lisp_indirect_variable): New fun.
13615 (Fuser_variable_p): Use it.
13616
136172008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13618
13619 * lisp.h (indirect_variable):
13620 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13621 Use Lisp_Symbol pointers rather than Lisp_Object.
13622 Adjust callers.
13623 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13624 To this end, change calling-convention.
13625
13626 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13627 if some non-hidden buffers are selected by string&pred.
13628
136292008-05-19 Chong Yidong <cyd@stupidchicken.com>
13630
13631 * process.c (wait_reading_process_output): Always check status
13632 when in batch mode.
13633
136342008-05-19 Kenichi Handa <handa@m17n.org>
13635
13636 * font.c (font_list_entities): Fix handling of cache.
13637 (font_matching_entity): Likewise.
13638
13639 * ftfont.c (cs_iso8859_1): Delete.
13640 (ft_face_cache): New variable.
13641 (struct ftfont_info): New member fc_charset_idx.
13642 (ftfont_build_basic_charsets): Delete.
13643 (fc_charset_table): New variable.
13644 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13645 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13646 Callers changed.
13647 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13648 (ftfont_spec_pattern): New argument fc_charset_idx.
13649 Check registry more rigidly. Change callers.
13650 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13651 change of :font-entity property of the font.
13652
13653 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13654 property of the font.
13655
136562008-05-18 Juanma Barranquero <lekktu@gmail.com>
13657
13658 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13659 (Funencodable_char_position, Fcheck_coding_systems_region)
13660 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13661 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13662 (Ffind_operation_coding_system, Fset_coding_system_priority)
13663 (Fcoding_system_eol_type): Doc fixes.
13664
136652008-05-17 Glenn Morris <rgm@gnu.org>
13666
13667 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13668
136692008-05-16 Eli Zaretskii <eliz@gnu.org>
13670
13671 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13672 and st_gid.
13673
13674 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13675 HAVE_WINDOW_SYSTEM is not defined.
13676
13677 * xfaces.c (merge_face_ref, merge_face_vectors)
13678 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13679 HAVE_WINDOW_SYSTEM is defined.
13680 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13681
136822008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13683
13684 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13685
136862008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13687
13688 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13689
136902008-05-15 Kenichi Handa <handa@m17n.org>
13691
13692 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13693 preference.
13694
136952008-05-15 Glenn Morris <rgm@gnu.org>
13696
13697 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13698
136992008-05-15 Chong Yidong <cyd@stupidchicken.com>
13700
13701 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13702 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13703
13704 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13705
137062008-05-15 Kenichi Handa <handa@m17n.org>
13707
13708 * ftfont.c (ftfont_list): Downcase family name to check generic
13709 families.
13710
13711 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13712 font-spec for QCfont value.
13713
13714 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13715 buffer. Check the return value of it.
13716
137172008-05-14 Jason Rumney <jasonr@gnu.org>
13718
13719 * w32term.c (w32_get_glyph_overhangs): Remove.
13720 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13721
137222008-05-14 Kenichi Handa <handa@m17n.org>
13723
13724 * font.c (font_prop_validate): Make nil a valid value.
13725 (font_clear_cache): Check if the cached vector of entities is nil
13726 or not.
13727
137282008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13729
13730 * emacs.c (main_thread): Conditionalize on
13731 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13732 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13733
13734 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13735 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13736 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13737
137382008-05-14 Kenichi Handa <handa@m17n.org>
13739
13740 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13741 has no corresponding coding system.
13742
137432008-05-14 Jason Rumney <jasonr@gnu.org>
13744
13745 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13746
13747 * w32font.h (w32font_open_internal): Update declaration.
13748
13749 * w32font.c (w32font_open_internal): Change last argument from
13750 w32font_info struct to font object. Fill in font object from
13751 font_entity. Get Outline metrics if possible. Use them to
13752 calculate underline position and thickness. Use xlfd name as name
13753 property. Don't set codepage.
13754 (w32font_open): Pass font_object to w32font_open_internal. Don't
13755 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13756 (w32font_draw): Use s->font.
13757 (clear_cached_metrics): Don't clear non-existent blocks.
13758
13759 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13760 font was not found.
13761 (x_draw_glyph_string): Use underline position and thickness from font.
13762
13763 * w32uniscribe.c (uniscribe_open): Pass font_object to
13764 w32font_open_internal.
13765
137662008-05-14 Kenichi Handa <handa@m17n.org>
13767
13768 These changes are to delete all legacy font-handling codes, and
13769 make Emacs use only font-backends.
13770
13771 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13772 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13773
13774 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13775
13776 * charset.h (Vcharset_non_preferred_head)
13777 (Vcurrent_iso639_language): Extern them.
13778
13779 * charset.c (Vcharset_non_preferred_head): New variable.
13780 (Vcurrent_iso639_language): New variable.
13781 (syms_of_charset): Declare it as a Lisp variable.
13782 (char_charset): Don't check non preferred charsets. As a last
13783 resort, return charset_unicode.
13784 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13785
13786 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13787 conditionals. Don't check enable_font_backend. Delete all codes
13788 used only when USE_FONT_BACKEND is not defined.
13789
13790 * dispextern.h (struct glyph_string): Change type of `font' to
13791 `struct font *'.
13792 (struct glyph_string): New member underline_position and
13793 underline_thickness.
13794 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13795 (struct face): Change type of `font' to `struct font *'. Remove
13796 members `font_name', `font_info_id'.
13797 (per_char_metric, encode_char): Delete externs.
13798 (calc_pixel_width_or_height): Adjust the prototype.
13799
13800 * emacs.c (enable_font_backend): Delete extern.
13801 (main): Don't set enable_font_backend. Don't check the command
13802 line argument "-disable-font-backend".
13803
13804 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13805 (enum font_property_index): New members FONT_DPI_INDEX,
13806 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13807 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13808 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13809 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13810 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13811 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13812 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13813 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13814 (struct font_spec, struct font_entity): New structs.
13815 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13816 (struct font): Many members from old "struct font_info" moved to
13817 here. Members font and entity deleted.
13818 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13819 the new font-related objects.
13820 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13821 (CHECK_FONT_GET_OBJECT): Likewise.
13822 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13823 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13824 (struct font_driver): New members case_sensitive anc check. Type
13825 of the member list and open changed.
13826 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13827 (font_symbolic_width, font_find_object, font_get_spec)
13828 (font_set_lface_from_name): Delete extern.
13829 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13830
13831 * font.c: Include <strings.h>.
13832 (enable_font_backend): Delete it.
13833 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13834 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13835 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13836 (null_string): Delete it.
13837 (null_vector): Make it static.
13838 (font_family_alist): Delete it.
13839 (Qnormal): Extern it.
13840 (QCextra, QClanguage): Delete it.
13841 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13842 (font_make_spec, font_make_entity, font_make_object)
13843 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13844 the string. Callers changed.
13845 (font_pixel_size): Adjusted for the format change of font-related
13846 objects.
13847 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13848 (font_style_to_value, font_style_symbolic): New function.
13849 (build_font_family_alist): Delete it.
13850 (font_registry_charsets): Use Fassoc_string instead of
13851 assq_no_quit.
13852 (font_prop_validate_symbol): Don't return null_string.
13853 (font_prop_validate_style): Adjusted for the change of
13854 style-related values in a font vector.
13855 (font_property_table): Delete entries for QClanguage and
13856 QCantialias, add entries for QCavgwidth.
13857 (get_font_prop_index): Delete the 2nd argument FROM.
13858 (font_prop_validate): Arguments changed.
13859 (font_put_extra): Adjusted for the change of font-related objects.
13860 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13861 (font_parse_fcname, font_unparse_fcname)
13862 (font_prepare_composition): Likewise.
13863 (font_parse_family_registry): Renamed from font_merge_old_spec.
13864 (otf_open): Delete the 1st arg entity.
13865 (font_otf_capability): Adjusted for the above change.
13866 (font_score): New arg alternate_families. Adjusted for the change
13867 of font-related objects.
13868 (font_sort_entites): New arg best_only.
13869 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13870 Delete them.
13871 (font_match_p): Check alternate families.
13872 (font_find_object): Delete it.
13873 (font_check_object): New function.
13874 (font_clear_cache): Adjusted for the change of font-related objects.
13875 (font_delete_unmatched): New arg.
13876 (font_list_entities): Call font_driver->list with a spec that
13877 doesn't specify style-related properties.
13878 (font_matching_entity): Arguments changed. Caller changed.
13879 (font_open_entity): Adjusted for the change of font-related objects.
13880 (font_close_object, font_has_char, font_encode_char)
13881 (font_get_name, font_get_spec): Likewise.
13882 (font_spec_from_name, font_clear_prop, font_update_lface):
13883 New functions.
13884 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13885 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13886 (font_at): Adjusted for the change of font-related objects.
13887 (font_range): New function.
13888 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13889 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13890 (Fcopy_font_spec, Fmerge_font_spec): New function.
13891 (Ffont_family_list): Renamed from list-families.
13892 (Finternal_set_font_style_table): Arguments changed.
13893 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13894 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13895 change of font-related objects.
13896 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13897
13898 * fontset.h (struct font_info): Delete it. Most members go to
13899 struct font.
13900 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13901 (enum FONT_SPEC_INDEX): Delete it.
13902 (font_info, list_fonts_func, load_font_func, query_font_func)
13903 (set_frame_fontset_func, find_ccl_program_func)
13904 (get_font_repertory_func, new_fontset_from_font_name): Delete
13905 externs.
13906 (fontset_from_font_name): Extern it.
13907 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13908 (FONT_INFO_FROM_FACE): Deleted.
13909 (face_for_font): Adjust prototype.
13910
13911 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13912 conditionals. Don't check enable_font_backend. Delete all codes
13913 used only when USE_FONT_BACKEND is not defined.
13914 (get_font_info_func, list_font_func, load_font_func)
13915 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13916 (get_font_repertory_func): Delete them.
13917 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13918 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13919 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13920 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13921 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13922 (fontset_compare_rfontdef): New function.
13923 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13924 rfont-defs by qsort. Adjusted for the change of font-group vector.
13925 (load_font_get_repertory): Deleted.
13926 (fontset_find_font): Use new macros to ref/set elements of
13927 font-def and rfont-def.
13928 (fontset_font): Fix the timing of remembering that no font for C.
13929 (free_face_fontset): Do nothing if the face has no fontset.
13930 (face_suitable_for_char_p): Use new macros to ref/set elements of
13931 rfont-def.
13932 (face_for_char): Likewise. Call face_for_char with font_object.
13933 (fs_load_font): Delete. Delete #pragma surrounding it.
13934 (fs_query_fontset): Use strcasecmp instead of strcmp.
13935 (generate_ascii_font_name): Adjusted for the format change of
13936 font-spec.
13937 (Fset_fontset_font): Likewise. Use new macros to set elements of
13938 font-def.
13939 (Fnew_fontset): Use font_unparse_xlfd to generate
13940 FONTSET_ASCII (fontset).
13941 (new_fontset_from_font_name): Deleted.
13942 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13943 a fontset is already created for the font. FIx updating of
13944 Vfontset_alias_alist.
13945 (fontset_ascii_font): Deleted.
13946 (Ffont_info): Adjusted for the format change of font-spec.
13947 (Finternal_char_font): Likewise.
13948 (Ffontset_info): Likewise.
13949 (syms_of_fontset): Don't check load_font_func.
13950
13951 * fns.c (internal_equal): Handle PREV_FONT.
13952
13953 * frame.h: Delete USE_FONT_BACKEND conditional.
13954
13955 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13956 conditionals. Don't check enable_font_backend. Delete all codes
13957 used only when USE_FONT_BACKEND is not defined.
13958 (x_set_font): Call x_new_font, not x_new_fontset2.
13959 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13960 already set for the frame.
13961
13962 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13963 a font-entity by font_make_entity. Use font_intern_prop instead
13964 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13965 font property. If a font is scalable, set avgwidth property to 0.
13966 Set font-entity property by font_put_extra.
13967 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13968 (ffont_driver): Adjusted for the change of struct font_driver.
13969 (ftfont_spec_pattern): New function.
13970 (ftfont_list): Return a list, not vector.
13971 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13972 (ftfont_list_family): Don't downcase names.
13973 (ftfont_free_entity): Deleted.
13974 (ftfont_open): Return a font-object. Adjusted for the change of
13975 struct font. Get underline_thickness and underline_position from
13976 font property. Don't update dpyinfo->smallest_font_height and
13977 dpyinfo->smallest_char_width.
13978 (ftfont_close): Don't free `struct font'.
13979 (ftfont_has_char): Adjusted for the format change of font-entity.
13980 (ftfont_encode_char, ftfont_text_extents): Likewise.
13981
13982 * ftxfont.c (ftxfont_list): Return a list, not vector.
13983 (ftxfont_open): Return a font-object. Adjusted for the change of
13984 struct font. Get underline_thickness and underline_position from
13985 font property. Don't update dpyinfo->smallest_font_height and
13986 dpyinfo->smallest_char_width.
13987 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13988 (ftxfont_draw): Adjusted for the change of struct font.
13989
13990 * image.c (image_ascent): Don't include "charset.h". Include
13991 "character.h" and "font.h".
13992
13993 * lisp.h (enum pvec_type): New member PREV_FONT.
13994 (Fassoc_string): EXFUN it.
13995
13996 * print.c: Include font.h.
13997 (print_object): Handle font-related objects.
13998
13999 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14000 conditionals. Don't check enable_font_backend. Delete all codes
14001 used only when USE_FONT_BACKEND is not defined.
14002 (handle_auto_composed_prop): Do nothing if it->f is not on a
14003 window system. Check how many following characters can be
14004 displayed by the same font.
14005 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14006 'struct font *'.
14007 (get_char_face_and_encoding): Assign the whole encoding task to
14008 the `encode-char' method of a font driver.
14009 (fill_composite_glyph_string): Adjusted for the change of `struct
14010 face' and `struct glyph_string'.
14011 (fill_glyph_string): Likewise.
14012 (get_per_char_metric): Arguments changed.
14013 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14014 and `struct glyph_string'.
14015 (produce_stretch_glyph, calc_line_height_property)
14016 (x_produce_glyphs): Likewise.
14017
14018 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14019 conditionals. Don't check enable_font_backend. Delete all codes
14020 used only when USE_FONT_BACKEND is not defined. Use
14021 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14022 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14023 (Qp): Extern them.
14024 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14025 Deleted.
14026 (struct font_name): Deleted.
14027 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14028 (compare_fonts_by_sort_order): New function.
14029 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14030 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14031 Deleted.
14032 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14033 compare_fonts_by_sort_order.
14034 (Fx_font_family_list): Call Ffont_family_list.
14035 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14036 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14037 (face_symbolic_slant, face_symbolic_swidth)
14038 (split_font_name_into_vector, build_font_name_from_vector)
14039 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14040 (font_rescale_ratio, split_font_name, build_font_name)
14041 (free_font_names, sort_fonts, x_face_list_fonts)
14042 (face_font_available_p, sorted_font_list, cmp_font_names)
14043 (font_list_1, concat_font_list, font_list, remove_duplicates):
14044 Deleted.
14045 (Fx_list_fonts): Use Ffont_list.
14046 (LFACE_AVGWIDTH): Deleted.
14047 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14048 by FONTP.
14049 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14050 (set_lface_from_font_name): Delete it.
14051 (set_lface_from_font): Renamed from
14052 set_lface_from_font_and_fontset. Caller changed. Don't set
14053 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14054 for face.
14055 (merge_face_vectors): Copy font-spec if necessary.
14056 Clear properties of the font-spec if necessary.
14057 (merge_face_ref): Clear properties of the font-spec if necessary.
14058 (Finternal_set_lisp_face_attribute): Likewise.
14059 (set_font_frame_param): Use font_load_for_lface to load a
14060 font-object, and call Fmodify_frame_parameters with it.
14061 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14062 font name by Ffont_xlfd_name.
14063 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14064 QCslant, and QCwidth.
14065 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14066 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14067 Compare fonts by EQ.
14068 (lookup_non_ascii_face): Deleted.
14069 (face_for_font): The 2nd argument changed.
14070 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14071 Check atomic font properties by case insensitive.
14072 (realize_non_ascii_face): Set face->overstrike correctly.
14073 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14074 (dump_realized_face): Get font name from
14075 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14076
14077 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14078 conditionals. Don't check enable_font_backend. Delete all codes
14079 used only when USE_FONT_BACKEND is not defined.
14080 (xic_create_xfontset): Original code deleted and renamed from
14081 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14082 (x_make_gc): Don't set GCFont in GCs.
14083 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14084 opened by "fixed".
14085 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14086 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14087 get_font_repertory_func.
14088
14089 * xfont.c: Include <stdlib.h> and "ccl.h".
14090 (struct xfont_info): New structure.
14091 (xfont_query_font): Deleted.
14092 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14093 moved from xterm.c.
14094 (xfont_driver): Adjusted for the change of struct font_driver.
14095 (compare_font_names): New function.
14096 (xfont_list_pattern): Sort font names case insensitively. Make
14097 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14098 (xfont_list): Return a list, not vector.
14099 (xfont_match): If the font doesn't have QCname property, generate
14100 a name from the other font properties.
14101 (xfont_open): Return a font-object. Adjusted for the change of
14102 struct font. Get underline_thickness and underline_position from
14103 font property. Don't update dpyinfo->smallest_font_height and
14104 dpyinfo->smallest_char_width.
14105 (xfont_close): Don't free struct font.
14106 (xfont_prepare_face): Adjusted for the change of struct font.
14107 (xfont_done_face): Deleted.
14108 (xfont_has_char): Adjusted for the change of struct font.
14109 (xfont_encode_char, xfont_draw): Likewise.
14110 (xfont_check): New function.
14111
14112 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14113 callback function.
14114 (xftfont_match): Adjusted for the format change of font-entity.
14115 (xftfont_open): Adjusted for the format change of font-entity and
14116 font-object. Adjusted for the change of struct font. Return a
14117 font-object. Don't update dpyinfo->smallest_font_height and
14118 dpyinfo->smallest_char_width.
14119 (xftfont_close): Block input while calling XftFontClose.
14120 (xftfont_prepare_face): Don't block input while calling
14121 xftfont_get_colors. Adjusted for the change of struct font.
14122 (xftfont_shape): Return value of error case fixed.
14123
14124 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14125
14126 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14127 conditionals.
14128 (FONT_WIDTH): Return (f)->max_width.
14129 (struct x_display_info): Delete member `font'.
14130 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14131 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14132 (struct x_output): Change type of `font' to `struct font *'.
14133
14134 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14135 conditionals. Don't check enable_font_backend. Delete all codes
14136 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14137 (x_per_char_metric, x_encode_char): Deleted.
14138 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14139 (x_compute_glyph_string_overhangs): Adjusted for the change of
14140 `struct face'.
14141 (x_draw_glyph_string_foreground)
14142 (x_draw_composite_glyph_string_foreground): Likewise.
14143 (x_draw_glyph_string): Likewise. Use font->underline_position and
14144 font->underline_thickness.
14145 (x_new_font): Renamed from x_new_fontset2.
14146 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14147 (x_check_font): Call `check' method of a font driver.
14148 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14149 (x_query_font, x_get_font_repertory): Deleted.
14150 (x_find_ccl_program): Renamed and moved to xfont.c.
14151 (x_redisplay_interface): Adjusted for the change of `struct
14152 redisplay_interface'.
14153
14154 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14155 conditionals. Don't check enable_font_backend. Delete all codes
14156 used only when USE_FONT_BACKEND is not defined. Surround non-used
14157 code by "#ifdef OLD_FONT" and "endif".
14158 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14159
14160 * w32font.h (struct w32font_info): New member.
14161 (FONT_COMPAT): New macro.
14162 (w32font_open_internal): Prototype adjusted.
14163
14164 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14165 OLD_FONT" and "endif".
14166
14167 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14168 conditionals. Don't check enable_font_backend. Delete all codes
14169 used only when USE_FONT_BACKEND is not defined.
14170 (w32font_open): Return a font-object. Make a font-object by
14171 font_make_object. Adjusted for the change of struct w32font_info.
14172 (w32font_close): Don't free struct font. Adjusted for the change
14173 of struct w32font_info.
14174 (w32font_encode_char, w32font_text_extents, w32font_draw):
14175 Adjusted for the change of struct w32font_info.
14176 (w32font_draw): Likewise.
14177 (w32font_list_internal): Return a list, not vector.
14178 (w32font_open_internal): Change the 4th arg to font-object.
14179 Adjusted for the change of struct w32font_info and font-object format.
14180 (add_font_name_to_list): Don't downcase names.
14181 (w32_enumfont_pattern_entity): Make a font-entity by
14182 font_make_entity. Adjusted for the format change of font-entity.
14183 Use FONT_SET_STYLE to set a style-related font property. If a
14184 font is scalable, set avgwidth property to 0. Set font-entity
14185 property by font_put_extra.
14186 (font_matches_spec): Adjusted for the format change of font-entity.
14187 (w32_weight_table, w32_decode_weight): New variables.
14188 (w32_encode_weight): New function.
14189 (fill_in_logfont): Adjusted for the format change of font-spec.
14190 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14191 weight value.
14192 (w32font_driver): Adjusted for the change of struct font_driver.
14193
14194 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14195 conditionals. Don't check enable_font_backend. Surround non-used
14196 code by "#ifdef OLD_FONT" and "endif".
14197 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14198 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14199
14200 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14201 conditionals. Don't check enable_font_backend. Delete all codes
14202 used only when USE_FONT_BACKEND is not defined. Surround non-used
14203 code by "#ifdef OLD_FONT" and "endif".
14204
14205 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14206 (uniscribe_open): Return value changed to font-object.
14207 Adjusted for the format change of font-object.
14208 (uniscribe_otf_capability): Adjusted for the change of struct font.
14209 (add_opentype_font_name_to_list): Don't downcase names.
14210 (uniscribe_font_driver): Adjusted for the change of struct
14211 font_driver.
14212
142132008-05-13 Chong Yidong <cyd@stupidchicken.com>
14214
14215 * dispnew.c (update_frame_1): Check if tty output is still valid
14216 before flushing it.
14217
142182008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14219
14220 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14221 to Gtk+ menus.
14222
142232008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14224
14225 * dired.c (file_name_completion): Tweak the code so as to always do it
14226 in a single pass. Tighten the scope of some variables.
14227
14228 * dired.c (Qdefault_directory): New var.
14229 (file_name_completion): Use it instead of Fexpand_file_name.
14230 (syms_of_dired): Initialize it.
14231
142322008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14233
14234 * fileio.c (double_dollars): Remove dead code.
14235
142362008-05-10 Eli Zaretskii <eliz@gnu.org>
14237
14238 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14239 Mention w32-get-true-file-attributes in doc string.
14240
14241 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14242
142432008-05-09 Glenn Morris <rgm@gnu.org>
14244
14245 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14246 2008-04-23.
14247
142482008-05-09 Eli Zaretskii <eliz@gnu.org>
14249
14250 Support for reporting owner and group of each file on MS-Windows:
14251 * dired.c (stat_uname, stat_gname): New functions, with special
14252 implementation for w32.
14253 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14254
14255 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14256 (dflt_group_name): New static variable.
14257 (dflt_group): Rename from the_group.
14258 (init_user_info): Init dflt_group fields. Get user's group name
14259 from LookupAccountSid.
14260 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14261 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14262 New initialization states.
14263 (globals_of_w32): Initialize them to zero. Initialize the default
14264 group name to "None".
14265 (GetFileSecurity_Name): New global var, the name of the function
14266 to call for GetFileSecurity.
14267 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14268 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14269 (get_file_security, get_security_descriptor_owner)
14270 (get_security_descriptor_group, is_valid_sid)
14271 (get_file_security_desc, get_rid, get_name_and_id)
14272 (get_file_owner_and_group): New functions.
14273 (stat): Use get_file_security_desc and get_file_owner_and_group to
14274 report the owner and primary group of each file. Don't ignore the
14275 high 32 bits of file's size, now that st_size is 64-bit wide.
14276 Fix test when to get true file attributes.
14277 (init_user_info): Use get_rid instead of equivalent inline code.
14278 (fstat): Don't ignore the high 32 bits of file's size.
14279
142802008-05-09 Chong Yidong <cyd@stupidchicken.com>
14281
14282 * image.c (png_load): Use correct bit-depth for setting background
14283 color.
14284
142852008-05-08 Eli Zaretskii <eliz@gnu.org>
14286
14287 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14288 epa-hook.elc.
14289
142902008-05-08 Juanma Barranquero <lekktu@gmail.com>
14291
14292 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14293
142942008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14295
14296 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14297 because the original parameters are in pure storage now.
14298 (mac_window): Remove unused params. Update callers.
14299
143002008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14301
14302 * lread.c (substitute_object_recurse): Use lower-level primitives.
14303 Don't signal errors when traversing sub-char-tables.
14304 Don't loop over all the possible characters when traversing char-tables.
14305
14306 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14307 just like we do in print.c.
14308
143092008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14310
14311 * minibuf.c (Ftry_completion): Remove code left over from when we used
14312 scmp instead of Fcompare_strings.
14313
143142008-05-04 Juanma Barranquero <lekktu@gmail.com>
14315
14316 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14317
143182008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14319
14320 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14321 Create bitmap context in native byte order.
14322
14323 * macterm.c (XDrawLine)
14324 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14325 context in native byte order.
14326
143272008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14328
14329 * config.in: Regenerate.
14330
14331 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14332 New definitions for Image I/O support.
14333 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14334 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14335 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14336 (mac_data_provider_release_data, image_load_image_io)
14337 [USE_MAC_IMAGE_IO]: New functions.
14338 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14339 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14340 (init_image_func_pointer) [MAC_OSX]: Remove function.
14341 (image_load_quartz2d) [MAC_OSX]: Check availability of
14342 CGImageCreateWithPNGDataProvider at compile time.
14343 Use lowercase `false' for boolean constant.
14344 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14345 Use image_load_image_io.
14346 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14347 Don't check MyCGImageCreateWithPNGDataProvider.
14348 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14349 Don't call init_image_func_pointer.
14350
14351 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14352
14353 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14354 Make variable non-static.
14355 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14356 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14357
14358 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14359 (RED_FROM_ULONG): Mask off higher bits.
14360 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14361
14362 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14363 Include AvailabilityMacros.h.
14364 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14365 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14366
143672008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14368
14369 * chartab.c (Fset_char_table_range): If range is t, really set all
14370 chars to that value.
14371
143722008-05-03 Eli Zaretskii <eliz@gnu.org>
14373
14374 * dired.c (Ffile_attributes): Don't allow the device number become
14375 negative.
14376
143772008-05-02 Daiki Ueno <ueno@unixuser.org>
14378
14379 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14380
143812008-05-02 Juri Linkov <juri@jurta.org>
14382
14383 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14384 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14385 DEFAULT argument as a list of default values in docstrings.
14386
143872008-05-01 Chong Yidong <cyd@stupidchicken.com>
14388
14389 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14390
143912008-05-01 Martin Rudalics <rudalics@gmx.at>
14392
14393 * dispnew.c (change_frame_size_1): Preserve small windows when
14394 shrinking frames by calling set_window_height|width with third
14395 arg 2.
14396
14397 * window.h (struct window): Replace field too_small_ok by field
14398 resize_proportionally.
14399
14400 * window.c (make_window): Initialize resize_proportionally.
14401 (enlarge_window): Temporarily set resize_proportionally to make
14402 sure that shrink_windows does scale the window proportionally.
14403 (shrink_windows): When window has resize_proportionally set try
14404 to shrink it proportionally by stealing from other windows.
14405 (struct saved_window, Fset_window_configuration)
14406 (compare_window_configurations): Handle resize_proportionally.
14407 (WINDOW_TOTAL_SIZE): New macro.
14408 (window_min_size, shrink_windows, size_window): Use it.
14409 (check_min_window_sizes): Remove. Invalid values of
14410 window-min-height|width are handled by window_min_size_2 now.
14411 (size_window, Fsplit_window, enlarge_window)
14412 (adjust_window_trailing_edge, grow_mini_window): Don't call
14413 check_min_window_sizes.
14414 (window_min_size_2, window_min_size_1, window_min_size):
14415 New argument safe_p for retrieving "safe" minimum sizes.
14416 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14417 (adjust_window_trailing_edge, grow_mini_window):
14418 Adjust arguments of window_min_size... functions.
14419 (shrink_windows): Argument min_size removed. New argument
14420 safe_p allows shrinking windows to their safe minimum sizes.
14421 Calculate minimum size and decide whether a window shall be
14422 deleted for each window individually.
14423 (size_window): When nodelete_p equals 2, tell shrink_windows to
14424 delete windows only if their new minimum size is no more safe.
14425 (shrink_window_lowest_first): Call window_min_size_1 to make
14426 sure to preserve modeline of bottom-most window when resizing
14427 the minibuffer.
14428 (Fset_window_configuration, Fcurrent_window_configuration)
14429 (compare_window_configurations): Do not handle
14430 window-min-height|width any more.
14431 (syms_of_window): Clarify window-min-height|width doc-strings.
14432
144332008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14434
14435 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14436 some more. Copy some of the code from Ftry_completions.
14437 Remove special case code that dates back to initial revision when the
14438 slash was only added when necessary and that can't trigger nowadays.
14439
144402008-04-27 Kenichi Handa <handa@m17n.org>
14441
14442 * font.c (font_prop_validate): Signal `error' instead of `font'.
14443
144442008-04-29 Jason Rumney <jasonr@gnu.org>
14445
14446 * w32fns.c (Fw32_battery_status): New defun.
14447 (syms_of_w32fns): Defsubr it.
14448
144492008-04-28 Andreas Schwab <schwab@suse.de>
14450
14451 * dired.c (file_name_completion): Fix another mixing of encoded
14452 and decoded names.
14453
144542008-04-28 Juanma Barranquero <lekktu@gmail.com>
14455
14456 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14457
144582008-04-27 Juanma Barranquero <lekktu@gmail.com>
14459
14460 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14461
144622008-04-27 Andreas Schwab <schwab@suse.de>
14463
14464 * dired.c (file_name_completion): Fix inappropriate mixing of
14465 encoded and decoded names.
14466
14467 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14468
14469 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14470
144712008-04-26 Eli Zaretskii <eliz@gnu.org>
14472
14473 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14474 2008-03-31, it's not needed anymore with `struct stat' definition
14475 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14476 for the same reasons.
14477
144782008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14479
14480 * m/sparc.h: Additional redefinitions for GNU/Linux.
14481
144822008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14483
14484 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14485 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14486 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14487 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14488 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14489 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14490 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14491 Likewise.
14492
14493 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14494 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14495 (mac_ax_number_of_characters): Add externs.
14496 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14497 [USE_MAC_TSM]: Likewise.
14498 (mac_handle_text_input_event) [MAC_OSX]:
14499 Handle kEventTextInputOffsetToPos for no active input area case.
14500 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14501 (mac_handle_document_access_event)
14502 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14503 (install_application_handler) [MAC_OSX]: Register handlers for
14504 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14505 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14506 Register mac_handle_document_access_event.
14507
14508 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14509 Make functions non-static.
14510
145112008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14512
14513 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14514 (read_file_name_completion_ignore_case, insert_default_directory)
14515 (Qdefault_directory): Move to minibuffer.el.
14516 (Fread_file_name): Call the new `read-file-name' instead.
14517
145182008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14519
14520 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14521 Make function non-static.
14522 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14523 Remove function.
14524 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14525 Move to mactoolbox.c.
14526 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14527
14528 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14529 (mac_rect_make): New macro.
14530
14531 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14532 instead of float.
14533 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14534 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14535 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14536 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14537 CGRectMake.
14538 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14539 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14540 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14541 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14542 instead of WindowRef in argument type.
14543 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14544 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14545 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14546 instead of DISPLAY. All uses changed.
14547 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14548 (x_calc_absolute_position): Simplify so as not to use
14549 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14550
14551 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14552 instead of WindowRef in argument type.
14553 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14554 [TARGET_API_MAC_CARBON]: Remove externs.
14555 (create_apple_event, mac_event_parameters_to_lisp)
14556 [TARGET_API_MAC_CARBON]: Add externs.
14557
14558 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14559 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14560 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14561 is clicked.
14562 (x_activate_menubar): Remove extern for saved_menu_event_location.
14563 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14564 Move from mac.c.
14565
145662008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14567
14568 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14569 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14570
145712008-04-23 Jason Rumney <jasonr@gnu.org>
14572
14573 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14574 attributes only for local files.
14575
14576 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14577 default to Qlocal.
14578
145792008-04-22 Juri Linkov <juri@jurta.org>
14580
14581 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14582 read-buffer-to-switch instead of using the letter "B".
14583
145842008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14585
14586 * fileio.c (Qdefault_directory): New variable.
14587 (Fread_file_name): Use it to pass `dir' to the completion functions.
14588
145892008-04-20 Chong Yidong <cyd@stupidchicken.com>
14590
14591 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14592
145932008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14594
14595 * keyboard.c (Vpre_help_message): Remove.
14596 (show_help_echo): Remove default C code.
14597
14598 * dired.c (directory_files_internal, file_name_completion):
14599 Only call ENCODE_FILE if the string is indeed decoded.
14600
146012008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14602
14603 * Makefile.in (TOOLKIT_DEFINES): Remove.
14604 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14605
146062008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14607
14608 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14609 (mactoolbox.o): New target.
14610
14611 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14612 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14613
14614 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14615 Use mac_set_frame_window_background instead of XSetWindowBackground.
14616 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14617 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14618 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14619 instead of SetWindowTitleWithCFString.
14620 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14621 Move function to mactoolbox.c.
14622 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14623 Use mac_set_window_modified instead of SetWindowModified.
14624 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14625 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14626 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14627 FrontNonFloatingWindow. Use mac_activate_window instead of
14628 ActivateWindow. Use mac_active_non_floating_window instead of
14629 ActiveNonFloatingWindow.
14630 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14631 Use mac_show_hourglass and mac_hide_hourglass.
14632 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14633 instead of GetGlobalMouse.
14634 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14635 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14636 Use mac_bring_window_to_front instead of BringToFront.
14637 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14638 mactoolbox.c.
14639 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14640 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14641 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14642 mactoolbox.c.
14643
14644 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14645 (XtPointer): Move typedef from macmenu.c.
14646 (enum button_type): Move enum from macmenu.c.
14647 (widget_value): Move typedef from macmenu.c.
14648 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14649 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14650 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14651 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14652 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14653 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14654 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14655 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14656 (Selection): Move typedef from macselect.c.
14657 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14658 macterm.c.
14659 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14660 (mac_is_window_collapsed, mac_bring_window_to_front)
14661 (mac_send_window_behind, mac_hide_window, mac_show_window)
14662 (mac_collapse_window, mac_front_non_floating_window)
14663 (mac_active_non_floating_window, mac_activate_window)
14664 (mac_move_window_structure, mac_move_window, mac_size_window)
14665 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14666
14667 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14668 (enum mac_menu_kind): Move enum to mactoolbox.c.
14669 (min_menu_id): Move variable to mactoolbox.c.
14670 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14671 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14672 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14673 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14674 [TARGET_API_MAC_CARBON]: Likewise.
14675 (XtPointer): Move typedef to macgui.h.
14676 (enum button_type): Move enum to macgui.h.
14677 (widget_value): Move typedef to macgui.h.
14678 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14679 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14680 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14681 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14682 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14683 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14684 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14685 (popup_activated_flag): Make variable non-static.
14686 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14687 (add_menu_item, fill_menu, dispose_menus):
14688 Move functions to mactoolbox.c.
14689 (restore_show_help_function, menu_target_item_handler)
14690 (install_menu_target_item_handler, mac_handle_dialog_event)
14691 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14692 [TARGET_API_MAC_CARBON]: Likewise.
14693 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14694 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14695 (find_and_call_menu_selection, name_is_separator): Make function
14696 non-static.
14697 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14698 to mactoolbox.c.
14699 (set_frame_menubar): Don't call install_menu_quit_handler.
14700 (menu_item_selection): New variable.
14701 (mac_menu_show): Use create_and_show_popup_menu.
14702 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14703 selection but set variable menu_item_selection. All uses changed.
14704 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14705 Call install_menu_quit_handler. Move to mactoolbox.c.
14706
14707 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14708 (Selection): Move typedef to macgui.h.
14709 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14710 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14711 Make variables non-static.
14712 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14713 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14714 Make functions non-static.
14715 (Vmac_service_selection) [MAC_OSX]: Likewise.
14716 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14717 (mac_valid_selection_target_p, mac_clear_selection)
14718 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14719 (mac_put_selection_value, mac_selection_has_target_p)
14720 (mac_get_selection_value, mac_get_selection_target_list)
14721 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14722 Move functions to mactoolbox.c.
14723 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14724 Likewise.
14725 (copy_scrap_flavor_data, mac_handle_service_event)
14726 (install_service_handler) [MAC_OSX]: Likewise.
14727 (syms_of_macselect) <Vmac_dnd_known_types>:
14728 Use mac_dnd_default_known_types.
14729
14730 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14731 Move to mactoolbox.c.
14732 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14733 (Fx_selection_owner_p): Add EXFUN.
14734 (install_window_handler, remove_window_handler, XSetWindowBackground):
14735 Remove externs.
14736 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14737 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14738 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14739 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14740 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14741 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14742 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14743 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14744 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14745 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14746 (mac_valid_selection_target_p, mac_clear_selection)
14747 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14748 (mac_put_selection_value, mac_selection_has_target_p)
14749 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14750 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14751 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14752 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14753 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14754 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14755 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14756 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14757 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14758
14759 * mactoolbox.c: New file.
14760
147612008-04-18 Jason Rumney <jasonr@gnu.org>
14762
14763 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14764
147652008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14766
14767 * character.c (Fmultibyte_char_to_unibyte):
14768 Return latin1 chars unchanged.
14769
14770 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14771 relocated if it points to `name'.
14772
147732008-04-17 Kenichi Handa <handa@m17n.org>
14774
14775 * data.c (Faset): Allow setting a multibyte character in an
14776 ASCII-only unibyte string.
14777
14778 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14779
147802008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14781
14782 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14783 done in config.h.
14784
147852008-04-16 Juanma Barranquero <lekktu@gmail.com>
14786
14787 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14788 (Fchar_direction): Add usage in the docstring.
14789
147902008-04-15 Chong Yidong <cyd@stupidchicken.com>
14791
14792 * keyboard.c (read_key_sequence): Remove always-true checks.
14793
147942008-04-14 Jason Rumney <jasonr@gnu.org>
14795
14796 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14797 compatibility struct, for better underline positioning.
14798
147992008-04-13 David Hansen <david.hansen@gmx.net>
14800
14801 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14802 string.
14803
148042008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14805
14806 * m/hp800.h (XUINT, XSET): Remove.
14807
148082008-04-12 Juanma Barranquero <lekktu@gmail.com>
14809
14810 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14811 previous change.
14812
148132008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14814
14815 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14816 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14817
148182008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14819
14820 * keymap.h (map_keymap_canonical): Declare.
14821 * xmenu.c (single_keymap_panes): Use it.
14822
148232008-04-11 Glenn Morris <rgm@gnu.org>
14824
14825 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14826 set the target's value to that of the alias.
14827
148282008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14829
14830 * term.c (set_tty_color_mode): Left over typo.
14831
148322008-04-10 Michael Albinus <michael.albinus@gmx.de>
14833
14834 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14835 only after check for file name handler functions. Signal, when
14836 native functionality is not supported.
14837 (syms_of_fileio): Declare it unconditionally.
14838
148392008-04-10 Jason Rumney <jasonr@gnu.org>
14840
14841 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14842 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14843
14844 * w32.c (logon_network_drive): Also logon to remote drives that
14845 are mapped to drive letters.
14846
148472008-04-10 Glenn Morris <rgm@gnu.org>
14848
14849 * xdisp.c (truncate-partial-width-windows): Doc fix.
14850
148512008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14852
14853 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14854 Move functions to minibuffer.el.
14855 (syms_of_fileio): Don't declare them.
14856
148572008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14858
14859 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14860 (syms_of_minibuf): Remove its initialization.
14861
14862 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14863
148642008-04-09 Juanma Barranquero <lekktu@gmail.com>
14865
14866 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14867
148682008-04-09 Jason Rumney <jasonr@gnu.org>
14869
14870 * makefile.w32-in (distclean): Delete makefile too.
14871 (maintainer-clean): New target.
14872
14873 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14874
14875 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14876 for new font backend and composite cases.
14877
148782008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14879
14880 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14881 Most of the code moved to run_timers.
14882 (do_pending_atimers): Call run_timers.
14883 (run_timers): New function.
14884
14885 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14886 run atimers.
14887
14888 * process.c (wait_reading_process_output): The same as above.
14889
148902008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14891
14892 * minibuf.c (last_exact_completion): Remove variable.
14893 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14894 (complete_and_exit_1, complete_and_exit_2)
14895 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14896 (Fdisplay_completion_list, display_completion_list_1)
14897 (Fminibuffer_completion_help, Fself_insert_and_exit)
14898 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14899 minibuffer.el.
14900 (syms_of_minibuf): Remove corresponding initializations.
14901
14902 * keyboard.c (Qdeactivate_mark): New var.
14903 (command_loop_1): Use it to call `deactivate-mark'.
14904 (syms_of_keyboard): Initialize it.
14905
14906 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14907 to another frame.
14908 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14909 Don't call set_tty_color_mode.
14910 (store_frame_param): Reset previous_frame rather than call
14911 set_tty_color_mode.
14912 * term.c (set_tty_color_mode): Rewrite.
14913 * dispextern.h (set_tty_color_mode): New type.
14914 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14915
149162008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14917
14918 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14919 for generic chars, which do not exist any more in emacs-unicode.
14920
149212008-04-08 Michael Albinus <michael.albinus@gmx.de>
14922
14923 * coding.c (detect_coding_emacs_mule)
14924 (Ffind_operation_coding_system): Fix typo.
14925
149262008-04-08 Jason Rumney <jasonr@gnu.org>
14927
14928 * w32uniscribe.c (SNAME): Extract only symbol name.
14929
14930 * w32font.h (struct w32_metric_cache): New struct.
14931 (w32font_info): Use it.
14932 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14933 (CACHE_BLOCKSIZE): New constants.
14934
14935 * w32font.c (Qja, Qko, Qzh): New symbols.
14936 (syms_of_w32font): Initialise them.
14937 (font_matches_spec): Use them to filter by language.
14938 (recompute_cached_metrics): Remove function.
14939 (compute_metrics, clear_cached_metrics): New functions.
14940 (w32font_encode_char): Use them to manage metric cache.
14941 (w32font_text_extents): Cache metrics for all glyphs on demand.
14942 Delay converting glyph indices to WORD until needed.
14943 (w32font_open_internal): Initialize metric cache to empty.
14944 (registry_to_w32_charset): Charset should always be a symbol.
14945 (fill_in_logfont, list_all_matching_fonts): Family should
14946 always be a symbol.
14947
149482008-04-06 Jason Rumney <jasonr@gnu.org>
14949
14950 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14951 Give up if glyph indices not supported. Use uniscribe obtained
14952 ABC widths for individual metrics. Map glyph clusters back to
14953 characters using fClusterStart flag. Return number of glyphs
14954 produced, not chars processed.
14955 (uniscribe_shape): Map char at FROM to current glyph.
14956
149572008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14958
14959 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14960 Use SetMenuItemHierarchicalMenu.
14961
149622008-04-05 Jason Rumney <jasonr@gnu.org>
14963
14964 * image.c (pbm_load): Allow color values up to 65535.
14965 Throw an error if max_color_idx is outside the supported range.
14966 Report an error when image size is invalid.
14967 Read two bytes at a time when raw images have max_color_idx above 255.
14968
aac0c6e3
MR
149692008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14970
14971 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14972 append "CCL: Quitted" when the CCL program is quitted.
14973 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14974
14975 * ccl.h (struct ccl_program): New member quit_silently.
14976
149772008-04-05 Chong Yidong <cyd@stupidchicken.com>
14978
14979 * search.c (compile_pattern_1): Treat non-nil and non-string of
14980 search-spaces-regexp as nil.
14981
14982 * minibuf.c (Fassoc_string): Tweak docstring.
14983
149842008-04-05 Eli Zaretskii <eliz@gnu.org>
14985
14986 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14987 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14988 2008-03-14 to force inode be positive.
14989
14990 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14991 _S_* ones, since we now use our own sys/stat.h.
14992 (stat, fstat): Don't mangle the inode number.
14993 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14994
149952008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14996
14997 * frame.h (struct frame): Give one more bit to `visible' since we use
14998 values larger than 1 to indicate obscured frames on ttys.
14999
15000 * keymap.c (Qkeymap_canonicalize): New var.
15001 (Fmap_keymap_internal): New fun.
15002 (describe_map): Use keymap-canonicalize.
15003
15004 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15005 (Fundo_boundary): Set them.
15006 (syms_of_undo): Initialize them.
15007 (record_point): Use them instead of last_point_position*.
15008 (last_undo_buffer): Change type.
15009
150102008-04-04 Jason Rumney <jasonr@gnu.org>
15011
15012 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15013 (recompute_cached_metrics): Don't set ascent and descent per char.
15014
15015 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15016 (uniscribe_check_otf): Add GC protection before consing.
15017 Rearrange loop for counting features.
15018
150192008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15020
15021 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15022 buffer with byte-size of source buffer.
15023
150242008-04-03 Chong Yidong <cyd@stupidchicken.com>
15025
15026 * callint.c (Fcall_interactively): Handle temporary region even
15027 when shift-select-mode is off.
15028
150292008-04-03 Jason Rumney <jasonr@gnu.org>
15030
15031 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15032
150332008-04-03 Kenichi Handa <handa@m17n.org>
15034
15035 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15036 (CATEGORY_MASK_UTF_16): Likewise.
15037 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15038 binary file.
15039 (detect_coding): Add null-byte detection for a binary file.
15040 (detect_coding_system): Likewise.
15041
150422008-04-03 Jason Rumney <jasonr@gnu.org>
15043
15044 * w32uniscribe.c: New file.
15045
15046 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15047
15048 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15049
15050 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15051 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15052 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15053 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15054 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15055 (Qphonetic): New symbols.
15056 (syms_of_w32font): Initialize them.
15057 (font_supported_scripts): Use them.
15058 (w32font_list_family): List all charsets.
15059 (w32font_text_extents, recompute_cached_metrics): Fix metric
15060 calculations.
15061 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15062 Give opentype fonts their own format.
15063 (font_matches_spec): New arguments backend and logfont.
15064 Handle :otf spec for uniscribe backend.
15065 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15066 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15067
15068 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15069 font backend.
15070 (globals_of_w32fns): Initialize uniscribe font backend.
15071
15072 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15073 dependencies.
15074 (w32uniscribe.$(O)): New file to build.
15075 (FONT_OBJ): Include w32uniscribe.$(O).
15076 (LIBS): Add uniscribe libraries.
15077
15078 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15079
150802008-04-02 Chong Yidong <cyd@stupidchicken.com>
15081
15082 * callint.c (Vshift_select_mode): New var.
15083 (Finteractive): Document new ^ spec.
15084 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15085 is present.
15086
15087 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15088 (command_loop_1): Avoid running the direct display versions of
15089 forward-char and backward-char if shift-selection may occur.
15090 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15091 shift-translation takes place.
15092
15093 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15094 avoid clobbering by define-minor-mode.
15095
15096 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15097 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15098
15099 * syntax.c (Fforward_word): Add ^ interactive spec.
15100
15101 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15102 (Fscroll_right): Add ^ interactive spec.
15103
151042008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15105
15106 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15107
15108 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15109
15110 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15111
151122008-03-31 Juri Linkov <juri@jurta.org>
15113
15114 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15115
151162008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15117
15118 * gtkutil.c (xg_set_geometry): Fix indentation.
15119 (xg_resize_outer_widget): Remove.
15120 (x_wm_size_hint_off): Fix indentation.
15121 (xg_frame_set_char_size): Call flush_and_sync after
15122 gtk_window_resize.
15123 (x_wm_set_size_hint): Pass NULL as geometry window to
15124 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15125 Add menu bar and tool bar height to base height.
15126 (xg_update_frame_menubar, free_frame_menubar)
15127 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15128 (update_frame_tool_bar, free_frame_tool_bar):
15129 Change xg_resize_outer_widget to xg_frame_set_char_size.
15130
151312008-03-30 Michael Albinus <michael.albinus@gmx.de>
15132
15133 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15134 (Fdbus_call_method): New parameter TIMEOUT.
15135 (dbus-send-signal): Optimize UNGCPRO call.
15136
151372008-03-29 Juri Linkov <juri@jurta.org>
15138
15139 * window.c (Fdisplay_buffer): Move call to
15140 Vsplit_window_preferred_function out of conditions that check
15141 if window is eligible for vertical splitting.
15142 When Vsplit_window_preferred_function is non-nil, call it and use
15143 its non-nil return value as window. Otherwise, continue doing
15144 vertical splitting using Fsplit_window with arg horflag=nil.
15145 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15146 default value from `split-window' to nil.
15147
151482008-03-29 Juri Linkov <juri@jurta.org>
15149
15150 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15151 for interactive code letters 'b' and 'B'.
15152
151532008-03-29 Eli Zaretskii <eliz@gnu.org>
15154
15155 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15156 multibyte string.
15157
151582008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15159
15160 * keyboard.c (pending_funcalls): New var.
15161 (timer_check): Run it.
15162 (syms_of_keyboard): Initialize it.
15163 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15164 (Vdelete_terminal_functions): New vars.
15165 (syms_of_terminal): Initialize them.
15166 (Fdelete_terminal): Run delete-terminal-functions.
15167 * xdisp.c (safe_eval): Rewrite.
15168 (safe_call2): New fun.
15169 * frame.c (Qdelete_frame_functions): New var.
15170 (syms_of_frame): Initialize it.
15171 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15172 * lisp.h (safe_call2, pending_funcalls): Declare.
15173
151742008-03-28 Andreas Schwab <schwab@suse.de>
15175
15176 * indent.c (Fmove_to_column): Move declaration before statements.
15177
151782008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15179
15180 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15181 (struct frame): Use bit fields for boolean vars.
15182
15183 * process.c (server_accept_connection): Simplify naming.
15184 (emacs_get_tty_pgrp): Use SDATA.
15185
15186 * coding.c (decode_coding_object): Fix last change.
15187
151882008-03-27 Jason Rumney <jasonr@gnu.org>
15189
15190 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15191
151922008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15193
15194 * charset.c (Fdefine_charset_internal): Change the way of
15195 registering charsets in Vcharset_order_list.
15196 (syms_of_charset): Make the charset `eight-bit' supplementary.
15197
151982008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15199
15200 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15201 operations, to avoid having the difference between pointers
15202 overflow.
15203
152042008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15205
15206 * indent.c (check_display_width): New fun.
15207 (scan_for_column): Use it.
15208
15209 * data.c (syms_of_data): Mark most-positive-fixnum and
15210 most-negative-fixnum as constants.
15211
15212 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15213
15214 * indent.c (scan_for_column): Extract from current_column_1.
15215 Merge with the same code from Fmove_to_column.
15216 (current_column_1, Fmove_to_column): Use it.
15217
152182008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15219
15220 * keymap.c (map_keymap_internal): New fun.
15221 (map_keymap): Use it.
15222 (Fmap_keymap_internal): New fun.
15223 (Fmap_keymap): Remove left-out test from before make_save_value.
15224
15225 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15226
15227 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15228 Use XCAR/XCDR.
15229
15230 * process.h (struct Lisp_Process): Remove filter_multibyte.
15231 * process.c (QCfilter_multibyte): Remove.
15232 (setup_process_coding_systems): Don't use filter_multibyte.
15233 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15234 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15235 (Fset_process_filter_multibyte): Change the coding-system to
15236 approximate the previous behavior.
15237 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15238 coding-system.
15239
15240 * coding.c (decode_coding_object): When not decoding into a buffer,
15241 obey the coding system's preference of (uni|multi)byte.
15242
152432008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15244
15245 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15246 every char is changed and has a different byte-length.
15247 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15248 Fix int -> EMACS_INT.
15249
152502008-03-23 David Hansen <david.hansen@gmx.net>
15251
15252 * dbusbind.c (xd_read_message): Remove extra copying of message
15253 strings. Check for NULL `interface' or `member'.
15254
152552008-03-22 Eli Zaretskii <eliz@gnu.org>
15256
15257 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15258 cFileName a file name that includes `?' characters, use the 8+3
15259 alias in cAlternateFileName instead.
15260
152612008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15262
15263 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15264
152652008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15266
15267 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15268 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15269 work on current_buffer only instead (that was already the case
15270 for some of the code anyway).
15271 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15272 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15273 (SET_PT, SET_PT_BOTH): Adjust.
15274 * intervals.h (set_point, temp_set_point, set_point_both)
15275 (temp_set_point_both): Remove redundant declarations.
15276
152772008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15278
15279 * fileio.c (Finsert_file_contents):
15280 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15281 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15282 when buffer != current_buffer anyway.
15283
152842008-03-20 Andreas Schwab <schwab@suse.de>
15285
15286 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15287 as default.
15288
152892008-03-19 Jason Rumney <jasonr@gnu.org>
15290
15291 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15292 (syms_of_w32fns): Initialize them.
15293 (HOURGLASS_ID): New constant.
15294 (x_window_to_frame): Don't check hourglass_window.
15295 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15296 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15297 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15298 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15299 Only change the cursor if hourglass is not active.
15300 (Fx_create_frame): Initialize frame's current_cursor.
15301 (hourglass_atimer): Remove.
15302 (hourglass_started): New function.
15303 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15304 (show_hourglass): Adapt to w32, changing argument to frame.
15305
15306 * w32term.h (struct w32_output): Remove hourglass_window.
15307 Add current_cursor.
15308
15309 * eval.c (call_debugger, Fsignal):
15310 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15311 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15312 (Fexecute_extended_command, cancel_hourglass_unwind):
15313 * minibuf.c (read_minibuf):
15314 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15315
153162008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15317
15318 * window.c (run_funs): New fun.
15319 (run_window_configuration_change_hook): Use it to run the buffer-local
15320 and the global part of the hook.
15321
15322 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15323 (unwind_format_mode_line): Restore selected window.
15324 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15325
153262008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15327
15328 * editfns.c (Fchar_equal): Check they are valid characters.
15329
15330 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15331
153322008-03-17 Andreas Schwab <schwab@suse.de>
15333
15334 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15335 against a charset.
15336
15337 * lisp.h (Fbuffer_list): Declare.
15338
153392008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15340
aac0c6e3
MR
15341 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15342 handlebox_widget is != 0.
15343
153442008-03-16 Juri Linkov <juri@jurta.org>
15345
15346 * callint.c (Fcall_interactively): For interactive code letters
15347 'b' and 'B' put the buffer list into the list of default "future"
15348 values of the minibuffer.
15349
153502008-03-16 Andreas Schwab <schwab@suse.de>
15351
15352 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15353 modifiers.
15354
15355 * regex.c (re_match_2_internal): Correct matching of a charset
15356 against latin-1 characters.
15357
153582008-03-16 Kenichi Handa <handa@m17n.org>
15359
15360 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15361 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15362 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15363 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15364 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15365 CHAR_STRING_ADVANCE.
15366 (produce_chars): Fix for the case that the source and the
15367 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15368 instead of CHAR_STRING_ADVANCE.
15369 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15370 STRING_CHAR_ADVANCE.
15371
153722008-03-15 Andreas Schwab <schwab@suse.de>
15373
15374 * regex.c (re_match_2_internal): Correct matching of eight bit
15375 characters in unibyte strings.
15376
153772008-03-15 Martin Rudalics <rudalics@gmx.at>
15378
15379 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15380 at end of range when it coincides with the end of the buffer.
15381
153822008-03-14 Eli Zaretskii <eliz@gnu.org>
15383
15384 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15385
15386 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15387
153882008-03-14 Jason Rumney <jasonr@gnu.org>
15389
15390 * editfns.c (initial_tz): New variable.
15391 (syms_of_editfns): Initialize it.
15392 (Fset_time_zone_rule): Set it when first called.
15393 Use it when TZSTRING is nil.
15394
15395 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15396 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15397 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15398 (globals_of_w32fns): Initialize them.
15399 (compute_tip_xy): Use them to position tooltips.
15400
154012008-03-14 Glenn Morris <rgm@gnu.org>
15402
15403 * emacs.c (main): Revert previous change.
15404 (standard_args): Revert -internal-script back to -scriptload,
15405 and remove the long-option form.
15406
154072008-03-13 Glenn Morris <rgm@gnu.org>
15408
15409 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15410 Remove option -enable-font-backend.
15411
154122008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15413
15414 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15415
154162008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15417
15418 * xterm.c (x_connection_closed): For GTK: If this is the last
15419 terminal just exit without closing the display.
15420
154212008-03-11 Jason Rumney <jasonr@gnu.org>
15422
15423 * w32font.c (w32font_full_name): Use floor to round.
15424
f0131492 154252008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15426
15427 * sound.c (alsa_configure): Declare vol at beginning of block.
15428
15429 * fontset.c (Ffontset_info): Remove extra semicolon.
15430
154312008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15432
15433 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15434 size of resulting string.
15435
154362008-03-10 Jason Rumney <jasonr@gnu.org>
15437
15438 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15439
154402008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15441
15442 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15443 Don't pretend as if characters with display property haven't been
15444 consumed for string-replacing-string case.
15445
154462008-03-08 Kim F. Storm <storm@cua.dk>
15447
15448 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15449 (get_next_display_element, next_element_from_string)
15450 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15451
154522008-03-08 Andreas Schwab <schwab@suse.de>
15453
15454 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15455
154562008-03-06 Jason Rumney <jasonr@gnu.org>
15457
15458 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15459 when charset not specified. Only translate ANSI to unicode when
15460 font_type is truetype.
15461 (w32font_coverage_ok): New function.
15462 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15463
154642008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15465
15466 * lread.c (Fread_char): Resolve modifiers.
15467 (Fread_char_exclusive): Likewise.
15468
15469 * character.c (char_resolve_modifier_mask): New function.
15470 (char_string): Use char_resolve_modifier_mask.
15471 (Fchar_resolve_modifiers): New function.
15472 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15473 function.
15474
154752008-03-04 Jason Rumney <jasonr@gnu.org>
15476
15477 * makefile.w32-in: Always include w32font.c in the build.
15478 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15479
154802008-03-04 Andreas Schwab <schwab@suse.de>
15481
15482 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15483 (versionclean): Likewise.
15484
154852008-03-04 Juanma Barranquero <lekktu@gmail.com>
15486
15487 * .cvsignore: Add oo.
15488
154892008-03-03 Andreas Schwab <schwab@suse.de>
15490
15491 * coding.c (decode_coding_object): Inhibit gap shrinking while
15492 decoding in place.
15493
154942008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15495
15496 * w32term.c: Remove unused include "gnu.h".
15497 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15498
15499 * gnu.h: Rename to ...
15500 * emacs-icon.h: ... this.
15501 * xterm.c: Use emacs-icon.h instead of gnu.h.
15502 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15503
155042008-03-03 Juanma Barranquero <lekktu@gmail.com>
15505
15506 * w32font.c: Include math.h.
15507
155082008-03-03 Jason Rumney <jasonr@gnu.org>
15509
15510 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15511 Compute options separately.
15512 (w32font_open_internal): Set glyph_idx before caching metrics.
15513
15514 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15515 Define if system headers don't.
15516 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15517 (w32font_encode_char): Don't declare here.
15518
15519 * w32font.c (Quniscribe, QCformat): New symbols.
15520 (syms_of_w32font): Define them.
15521 (w32font_has_char): Indicate uncertainty.
15522 (w32font_encode_char): Encode as glyph point. Make static.
15523 (recompute_cached_metrics): New function.
15524 (w32font_open_internal): Use it. Set font to use glyph points
15525 initially. Set format based on type of font.
15526 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15527 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15528 on it. Set format based on information available here.
15529 (add_font_entity_to_list): Identify backend based on opentype_only.
15530
155312008-03-02 Andreas Schwab <schwab@suse.de>
15532
15533 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15534
15535 * coding.c (decode_coding_big5, produce_chars):
15536 Fix typos in last change.
15537
155382008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15539
15540 * gnu.h: New icon.
15541
155422008-03-02 Kenichi Handa <handa@m17n.org>
15543
15544 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15545 `dos', don't decode '\r' if that is the last in the source.
15546 (decode_coding_utf_16, decode_coding_emacs_mule)
15547 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15548 (decode_coding_raw_text, decode_coding_charset): Likewise.
15549 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15550
155512008-03-01 Jason Rumney <jasonr@gnu.org>
15552
15553 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15554
155552008-03-01 Kim F. Storm <storm@cua.dk>
15556
15557 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15558
155592008-03-01 Jason Rumney <jasonr@gnu.org>
15560
15561 * w32font.c (w32font_full_name): New function.
15562 (w32font_open_internal): Use it.
15563
155642008-03-01 Kim F. Storm <storm@cua.dk>
15565
15566 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15567
155682008-03-01 Jason Rumney <jasonr@gnu.org>
15569
15570 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15571
155722008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15573
15574 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15575 xg_frame_resized when the event is for the edit widget.
15576
15577 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15578
15579 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15580 set_char_size.
15581 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15582 operations on widgets here. Just set frame size if needed.
15583 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15584 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15585 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15586 the whole frame.
15587 (xg_create_tool_bar): Move attachment of the tool bar to
15588 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15589 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15590
155912008-03-01 Jason Rumney <jasonr@gnu.org>
15592
15593 * w32fns.c (w32_msg_pump): Disable debug code.
15594
155952008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15596
15597 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15598
155992008-02-29 Chong Yidong <cyd@stupidchicken.com>
15600
15601 * xdisp.c (next_overlay_string): Don't set
15602 overlay_strings_at_end_processed_p if we're currently reading from
15603 a display string.
15604
156052008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15606
15607 * xdisp.c (get_overlay_strings_1): Fix typo.
15608
156092008-02-29 Chong Yidong <cyd@stupidchicken.com>
15610
15611 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15612
156132008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15614
15615 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15616
15617 * xdisp.c (display_mode_element): Cancel the previous change.
15618 (decode_mode_spec): Likewise.
15619 (handle_auto_composed_prop): Don't make composition if it->string
15620 is a string.
15621
156222008-02-27 Kim F. Storm <storm@cua.dk>
15623
15624 * lisp.h (GLYPH): Change type from int to struct with separate char
15625 and face_id members.
15626 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15627 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15628 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15629 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15630 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15631 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15632 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15633 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15634 handle new Lisp glyph code encoding, either an integer or a cons.
15635
15636 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15637 (GLYPH_ALIAS): Delete.
15638 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15639 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15640 (GLYPH_FROM_CHAR): Replace macro by ...
15641 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15642
15643 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15644 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15645 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15646 (GLYPH_INVALID_P): New macro.
15647 (spec_glyph_lookup_face): Update prototype.
15648
15649 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15650 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15651 new glyph code encoding.
15652 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15653 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15654
15655 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15656 Adapt to new glyph type and new glyph code encoding.
15657
15658 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15659
15660 * indent.c (current_column, current_column_1, Fmove_to_column)
15661 (compute_motion): Adapt to new glyph code encoding.
15662
15663 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15664
156652008-02-27 Chong Yidong <cyd@stupidchicken.com>
15666
15667 * process.c (wait_reading_process_output): Check for window
15668 changes caused by timers.
15669 Suggested by Johan Bockgård.
15670
156712008-02-27 Glenn Morris <rgm@gnu.org>
15672
15673 * emacs.c (USAGE1): Add `--disable-font-backend'.
15674
156752008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15676
15677 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15678 is made to the buffer.
15679
156802008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15681
15682 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15683 (face_at_string_position):
15684 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15685 (face_at_string_position):
15686 * xdisp.c (display_string, next_overlay_change):
15687 * buffer.h (overlays_at):
15688 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15689 Update callers.
15690
156912008-02-26 Chong Yidong <cyd@stupidchicken.com>
15692
15693 * editfns.c (Fformat): Doc fix.
15694
156952008-02-26 Juanma Barranquero <lekktu@gmail.com>
15696
15697 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15698 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15699 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15700
157012008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15702
15703 * buffer.c (Fbuffer_swap_text): New function.
15704 (syms_of_buffer): Defsubr it.
15705
157062008-02-25 Chong Yidong <cyd@stupidchicken.com>
15707
15708 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15709
157102008-02-25 Jason Rumney <jasonr@gnu.org>
15711
15712 * w32font.c (w32font_draw): Draw one character at a time when padding.
15713
157142008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15715
15716 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15717 Handle a nil arg. Use run_window_configuration_change_hook.
15718 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15719 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15720 Use run_window_configuration_change_hook.
15721
157222008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15723
15724 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15725 1-pixel width.
15726
157272008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15728
15729 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15730 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15731 if the glyph in the font is zero pixel with.
15732
15733 * dispextern.h (struct glyph_string): New member padding_p.
15734
15735 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15736
15737 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15738
15739 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15740
15741 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15742
15743 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15744
157452008-02-25 Jason Rumney <jasonr@gnu.org>
15746
15747 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15748
157492008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15750
15751 Allow fine-grained image-cache flushing.
15752 * dispextern.h (struct image): Add `dependencies' field.
15753 (clear_image_caches): Change arg to Lisp_Object.
15754 * image.c (make_image): Initialize `dependencies' field.
15755 (clear_image_cache): Change arg to allow fine-grained flushing.
15756 Perform the flush even if image-cache-eviction-delay is nil.
15757 (clear_image_caches): Change arg to Lisp_Object.
15758 (Fclear_image_cache): Expand meaning of the argument.
15759 (mark_image): Mark `dependencies' field.
15760 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15761 (lface_hash): Use XHASH rather than XFASTINT.
15762 (face_at_buffer_position): Fix int -> EMACS_INT position.
15763 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15764 (select_frame_for_redisplay): Remove code duplication.
15765 (redisplay_internal): Adapt arg to call to clear_image_caches.
15766
157672008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15768
15769 * s/vms4-0.h:
15770 * s/vms4-2.h:
15771 * s/vms4-4.h:
15772 * s/vms5-5.h: Remove, unused.
15773
15774 * s/irix5-2.h:
15775 * s/irix6-0.h:
15776 * s/riscos5.h:
15777 * s/mach-bsd4-3.h:
15778 * m/mips4.h: Remove files for obsolete systems.
15779
15780 * Makefile.in:
15781 * filelock.c:
15782 * unexmips.c:
15783 * m/hp9000s300.h:
15784 * m/iris4d.h:
15785 * s/aix3-1.h:
15786 * s/hpux.h:
15787 * s/msdos.h:
15788 * s/usg5-0.h:
15789 * s/usg5-2-2.h:
15790 * s/usg5-2.h:
15791 * s/usg5-3.h: Remove references to obsolete variables.
15792
15793 * s/irix5-0.h: Remove, move all the contents ...
15794 * s/irix6-5.h: ... here. Simplify.
15795 * config.in: Regenerate.
15796
157972008-02-24 Jason Rumney <jasonr@gnu.org>
15798
15799 * w32term.c (x_draw_glyph_string_background): Clear the background
15800 manually when cleartype is in use.
15801 (x_draw_glyph_string_foreground): Draw text transparently when
15802 cleartype is in use.
15803
15804 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15805 a font into it unless we have to.
15806
158072008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15808
15809 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15810 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15811
aac0c6e3
MR
158122008-02-18 Jason Rumney <jasonr@gnu.org>
15813
15814 * w32fns.c (Fw32_shell_execute): Encode parameters.
15815
158162008-02-09 Eli Zaretskii <eliz@gnu.org>
15817
15818 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15819
158202008-02-05 Juanma Barranquero <lekktu@gmail.com>
15821
15822 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15823
158242008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15825
15826 * xterm.c (x_set_offset): Don't change the gravity if
15827 CHANGE_GRAVITY is -1.
15828
158292008-02-23 Chong Yidong <cyd@stupidchicken.com>
15830
15831 * fileio.c (auto_save_error_occurred): New var.
15832 (auto_save_error): Set it.
15833 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15834 error occurred.
15835
158362008-02-23 Eli Zaretskii <eliz@gnu.org>
15837
15838 * w32.c (globals_of_w32): Add initializations for
15839 g_b_init_get_sid_sub_authority and
15840 g_b_init_get_sid_sub_authority_count.
15841
158422008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15843
15844 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15845 (font_parse_xlfd): Use them for sanity check.
15846 (Finternal_set_font_style_table): Make sure the table is bijective.
15847
15848 Consolidate the image_cache to the terminal struct.
15849 * termhooks.h (P_): Remove redundant def.
15850 (struct terminal): New field `image_cache'.
15851 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15852 of FRAME_X_IMAGE_CACHE.
15853 * xterm.h (struct x_display_info): Remove image_cache field.
15854 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15855 * w32term.h (struct w32_display_info): Remove image_cache field.
15856 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15857 * macterm.h (struct mac_display_info): Remove image_cache field.
15858 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15859 * xterm.c (x_term_init):
15860 * w32term.c (w32_term_init):
15861 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15862 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15863 Remove declarations.
15864 (clear_image_caches, mark_image_cache): New declarations.
15865 * xfaces.c (clear_face_cache):
15866 * xdisp.c (redisplay_internal): Use clear_image_caches.
15867 * image.c (clear_image_cache): Don't check that a frame is on
15868 a window-system before checking if it shares the same cache.
15869 (clear_image_caches): New function.
15870 (Fclear_image_cache): Use it.
15871 (mark_image): Move from allo.c.
15872 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15873 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15874 (mark_object): Don't call mark_image_cache for frames.
15875 (mark_terminals): Call mark_image_cache.
15876
15877 * lisp.h (Fdelete_terminal): Declare.
15878
15879 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15880 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15881 wrong_type_argument.
15882
158832008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15884
15885 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15886 malayalam.el, and tamil.el. Add sinhala.el.
15887
158882008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15889
15890 * xterm.c (x_connection_closed): Consolidate identical tests.
15891 (x_delete_terminal): Don't crash if called via x_connection_closed.
15892
158932008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15894
15895 * xdisp.c (decode_mode_spec): New arg string.
15896 (display_mode_element): Adjust for the above change.
15897
158982008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15899
15900 * callint.c (Fcall_interactively): Use AREF.
15901
159022008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15903
15904 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15905
159062008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15907
15908 * xfns.c (Fx_show_tip): Set string to " " if empty.
15909
159102008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15911
15912 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15913 with Qt.
15914
159152008-02-17 Kenichi Handa <handa@m17n.org>
15916
15917 * ftfont.c (ftfont_shape): Return Lispy number.
15918
15919 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15920 for GCs.
15921 (Finternal_set_font_selection_order): Call font_update_sort_order
15922 only when enable_font_backend is set.
15923 (realize_x_face): Set face->font_info to that of default face only
15924 when enable_font_backend is set.
15925
15926 * xdisp.c (handle_composition_prop): Set it->c to the fist
15927 character of the composed region.
15928 (fill_composite_glyph_string): Set base_face->font_info to
15929 s->font_info. Get a face for ascii from base_face->ascii_face.
15930 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15931 with a face already decided.
15932 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15933 non-negative.
15934 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15935 call font_prepare_composition unconditionally.
15936
15937 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15938
15939 * xterm.h (struct x_display_info): New member font.
15940
15941 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15942 (x_set_mouse_face_gc, x_new_font): Likewise.
15943 (x_term_init): Setup display_info->font.
15944 (x_delete_terminal): Free display_info->font.
15945
15946 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15947
15948 * ftxfont.c (ftxfont_default_fid): Delete it.
15949 (ftxfont_open): Set xfont->fid to 0.
15950 (ftxfont_end_for_frame): Clear data specific to the frame and the
15951 font-driver.
15952
15953 * xftfont.c (xftfont_default_fid): Delete it.
15954 (xftfont_open): Set xfont->fid to 0.
15955
15956 * fontset.c (FONTSET_OBJLIST): New macro.
15957 (fontset_find_font): Update font-object list of the fontset.
15958 (free_realized_fontset): New function.
15959 (free_face_fontset): Call free_realized_fontset.
15960 (Ffont_info): Call font_close_object only when enable_font_backend
15961 is set.
15962
15963 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15964 [HAVE_NTGUI]: Include w32term.h.
15965 [MAC_OS]: Include macterm.ch.
15966 (font_otf_ValueRecord): Use make_number.
15967 (font_finish_cache): Fix handling of reference count.
15968 (font_clear_cache): Update num_fonts.
15969 (font_open_entity): Update smallest_char_width and
15970 smallest_font_height of the frame.
15971 (font_close_object): Update num_fonts.
15972 (Fclear_font_cache): Fix finding the target cache data.
15973
159742008-02-16 Glenn Morris <rgm@gnu.org>
15975
15976 * fontset.c (Finternal_char_font): Fix compilation warning.
15977
159782008-02-16 Eli Zaretskii <eliz@gnu.org>
15979
15980 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15981 instead of char arrays. Enlarge the size of array passed to
15982 get_token_information.
15983
15984 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15985 warnings.
15986
159872008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15988
15989 * .gdbinit: Don't set `args', it breaks gdb --args.
15990
159912008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15992
15993 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15994 within a narrowed buffer.
15995
159962008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15997
15998 * coding.c (decode_coding_object, encode_coding_object):
15999 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16000
160012008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16002
16003 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16004 hardcoding 1.
16005 (detect_coding_system):
16006 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16007 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16008 * insdel.c (insert_from_gap):
16009 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16010 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16011 (string_to_multibyte):
16012 * character.c (chars_in_text, multibyte_chars_in_text):
16013 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16014
16015 * character.h (FETCH_STRING_CHAR_ADVANCE)
16016 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16017 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16018 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16019
16020 * casefiddle.c (casify_region): Only call after-change and composition
16021 functions on the part of the region that was changed.
16022
16023 * keyboard.c (read_avail_input):
16024 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16025
160262008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16027
16028 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16029 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16030
160312008-02-11 Juanma Barranquero <lekktu@gmail.com>
16032
16033 * w32menu.c (push_submenu_start, push_submenu_end)
16034 (push_left_right_boundary, push_menu_pane, push_menu_item):
16035 * keyboard.c (read_key_sequence): Don't pass args with side effects
16036 to AREF, it fails when compiling with -DENABLE_CHECKING.
16037
160382008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16039
16040 * Makefile.in (${lispsource}international/charprop.el):
16041 Delete this target.
16042
16043 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16044 emacs-unicode-2.
16045
160462008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16047
16048 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16049
160502008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16051
16052 * frame.c (Qnoelisp): New symbol.
16053 (syms_of_frame): Initialize it.
16054 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16055 harmless Elisp code, from a strong `force' from x_connection_closed.
16056 * frame.h (Qnoelisp): Declare.
16057 * xterm.c (x_connection_closed): Pass `noelisp'.
16058
16059 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16060 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16061 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16062 rather than `int' for the type of `type'.
16063
160642008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16065
16066 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16067
16068 * Makefile.in (GNUC): Remove support for gcc-1.x.
16069
160702008-02-10 Richard Stallman <rms@gnu.org>
16071
16072 * lisp.h (ASET): Use AREF, not ASLOT.
16073
160742008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16075
16076 * lisp.h (ASET): Check bounds.
16077
160782008-02-10 Glenn Morris <rgm@gnu.org>
16079
16080 * buffer.c (mode-name): Doc fix.
16081
160822008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16083
16084 * Makefile.in:
16085 * emacs.c:
16086 * gmalloc.c:
16087 * keyboard.c:
16088 * lisp.h:
16089 * m/ibm370aix.h:
16090 * process.c:
16091 * regex.c:
16092 * s/hpux.h:
16093 * sysdep.c:
16094 * sysselect.h:
16095 * systty.h:
16096 * unexec.c:
16097 * w32term.c:
16098 * xsmfns.c:
16099 * xterm.c: Remove code that deals with obsolete variables.
16100
16101 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16102
16103 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16104 nothing else needs it anymore.
16105
161062008-02-09 Eli Zaretskii <eliz@gnu.org>
16107
16108 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16109 instead of unibyte_char_to_multibyte.
16110
161112008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16112
16113 * s/gnu-linux.h: Remove commented out code.
16114
16115 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16116
16117 * Makefile.in: Update what RMS says about using autoconf.
16118 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16119 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16120 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16121 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16122
161232008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16124
16125 * keymap.c (Fkey_description): Move side effect outside of macro call.
16126
16127 * xfaces.c (Finternal_make_lisp_face):
16128 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16129
16130 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16131 (syms_of_fontset): Use ASET.
16132
16133 * fns.c (concat): Move side effect outside of macro call.
16134 (hash_clear): Use ASET.
16135
161362008-02-08 Richard Stallman <rms@gnu.org>
16137
16138 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16139 If FORCE, and frame has a surrogate minibuffer for another frame,
16140 delete the other frame first.
16141
161422008-02-07 Timo Savola <timo.savola@iki.fi>
16143
16144 * xterm.c (x_detect_focus_change): Handle embed client message.
16145 (handle_one_xevent): Ditto.
16146 (handle_one_xevent): If embedded and we get a button press/release,
16147 request focus.
16148 (xembed_set_info, xembed_send_message): New functions.
16149 (x_make_frame_visible): Call xembed_set_info if embedded.
16150 (x_make_frame_invisible): Call xembed_set_info if embedded.
16151 (x_term_init): Initialize Xatom_XEMBED.
16152 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16153 (x_iconify_frame): Ditto.
16154
16155 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16156 (enum xembed_info, enum xembed_message, enum xembed_focus)
16157 (enum xembed_modifier, enum xembed_accelerator): New.
16158 (xembed_set_info, xembed_send_message): Declare.
16159 (FRAME_X_EMBEDDED_P): New.
16160
16161 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16162 gtk_plug_new.
16163
16164 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16165 window ID of a frame.
16166 (x_window): Reparent frame if embedded.
16167 (Fx_create_frame): Don't set border width if embedded.
16168
16169 * emacs.c (USAGE3): Add --parent-id.
16170 (standard_args): Ditto.
16171
161722008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16173
16174 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16175
161762008-02-07 Jim Meyering <meyering@redhat.com>
16177
16178 Use "do...while (0)", not "if (1)...else" in macro definitions.
16179 The latter provokes a warning from gcc about the empty else, when
16180 followed by ";". Also, without that trailing semicolon, it would
16181 silently swallow up any following statement.
16182 * syntax.h (SETUP_SYNTAX_TABLE)
16183 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16184 * buffer.h (DECODE_POSITION): Likewise.
16185 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16186 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16187 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16188 (FETCH_CHAR_ADVANCE): Likewise.
16189 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16190
161912008-02-07 Jim Meyering <meyering@redhat.com>
16192
16193 * lread.c [lint]: Don't include <sys/inode.h>.
16194
161952008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16196
16197 * xselect.c (x_handle_dnd_message):
16198 * xmenu.c (digest_single_submenu, xmenu_show):
16199 * xdisp.c (with_echo_area_buffer_unwind_data)
16200 (format_mode_line_unwind_data, unwind_format_mode_line)
16201 (display_menu_bar):
16202 * eval.c (Ffetch_bytecode):
16203 * doc.c (store_function_docstring):
16204 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16205 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16206 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16207
162082008-02-07 Kenichi Handa <handa@m17n.org>
16209
16210 * ftxfont.c (ftxfont_open): Don't set
16211 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16212
16213 * ftfont.c (ftfont_open): Fix previous change.
16214
162152008-02-06 Jason Rumney <jasonr@gnu.org>
16216
16217 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16218 Use cached metrics for ASCII characters.
16219 (w32font_open_internal): Don't set font's owning_frame.
16220 Cache metrics for ASCII characters.
16221
16222 * w32font.h (struct w32font_info): Add ascii_metrics.
16223 Remove owning_frame.
16224
162252008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16226
16227 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16228 to negative value.
16229
16230 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16231
16232 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16233
16234 * charset.c (syms_of_charset): Set QCtest and Qeq.
16235
162362008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16237
16238 * process.c (Fstart_process):
16239 * callproc.c (Fcall_process): Handle the case where
16240 Funhandled_file_name_directory returns nil.
16241
16242 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16243 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16244 * font.c (check_gstring): Use them and AREF to access the vector before
16245 we know it's really a gstring.
16246 (Ffont_shape_text): Fix typo.
46e722a9 16247 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16248
16249 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16250 Declare.
16251
16252 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16253
162542008-02-05 Jason Rumney <jasonr@gnu.org>
16255
16256 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16257 Set smallest_font_height and smallest_char_width in display info.
16258
162592008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16260
16261 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16262
162632008-02-05 Miles Bader <miles@gnu.org>
16264
16265 * xfaces.c (get_lface_attributes, merge_named_face)
16266 (lookup_named_face, lookup_derived_face, realize_named_face):
16267 Revert 2008-02-01 change by cyd@stupidchicken.com.
16268
162692008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16270
16271 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16272 fallback fonts.
16273 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16274
162752008-02-04 Jason Rumney <jasonr@gnu.org>
16276
16277 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16278 set full_name.
16279 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16280
162812008-02-03 Jason Rumney <jasonr@gnu.org>
16282
16283 * makefile.w32-in (OBJ1): Include font.o here.
16284 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16285
162862008-02-02 Jason Rumney <jasonr@gnu.org>
16287
16288 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16289
162902008-02-01 Jason Rumney <jasonr@gnu.org>
16291
16292 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16293
16294 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16295
162962008-02-01 Andreas Schwab <schwab@suse.de>
16297
16298 * Makefile.in (shortlisp, lisp): Update for rename of
16299 ../lisp/language/myanmar.el.
16300
163012008-02-01 Chong Yidong <cyd@stupidchicken.com>
16302
16303 * xfaces.c (get_lface_attributes): Delete function.
16304 (merge_named_face, lookup_named_face, lookup_derived_face)
16305 (realize_named_face): Call lface_from_face_name directly, and use
16306 the fact that merge_face_vectors does not alter its FROM argument.
16307
163082008-02-01 Jason Rumney <jasonr@gnu.org>
16309
16310 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16311 input in the default locale. Handle non-Unicode multibyte input.
16312
163132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16314
16315 * fontset.c (reorder_font_vector): Exclude nil elements from the
16316 font group. Don't try multiple fonts.
16317 (fontset_font): Adjust for the above change.
16318 (Finternal_char_font): Return nil if the found font doesn't
16319 contain the character ch.
16320
16321 * Makefile.in (lisp, shortlisp): Add cham.el.
16322
163232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16324
16325 * font.h (FONTP): Make it return 1 also for a font-object.
16326
16327 * .gdbinit (xfontset): New function.
16328
16329 * font.c (font_find_for_lface): Check if the character C is
16330 supported or not only for the first font.
16331
16332 * fontset.c (reorder_font_vector): Fix typo.
16333 (fontset_find_font): Don't add a font-spec specifying a script.
16334 Use 0 (not Qt) for the indication of empty font-group. Change the
16335 format of RFONT-DEF. Return Qt if no font in the font-group
16336 support the character.
16337 (fontset_font): Adjust for the above change. If no font was
16338 found the character, remember that.
16339 (face_for_char): Adjust for the change of RFONT-DEF.
16340 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16341 no font for the target.
16342 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16343
163442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16345
16346 * font.c (font_load_for_face): Handle the case that the font in
16347 face->lface is a string.
16348
163492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16350
16351 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16352
163532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16354
16355 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16356 Fix previous change. If the frame is not on a window system,
16357 signal an error.
16358
163592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16360
16361 * coding.c (decode_coding_object, encode_coding_object): Adjust
16362 marker positions after conversion.
16363
16364 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16365
163662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16367
16368 * font.c (font_find_for_lface): Fix the handling of the return
16369 value of font_has_char.
16370 (Ffont_shape_text): Fix previous change.
16371
16372 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16373 (fontset_ref_and_range): Delete it.
16374 (fontset_find_font): Call char_table_ref_and_range instead of
16375 FONTSET_REF_AND_RANGE.
16376 (make_fontset): Don't setup font groups of Latin here.
16377 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16378 (new_fontset_from_font): Make the specified font the default for
16379 all Latin characters.
16380
163812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16382
16383 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16384 is on a window system before accessing the fontset of the frame.
16385
163862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16387
16388 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16389
16390 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16391 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16392
16393 * font.c (Ffont_shape_text): If the font driver doesn't have a
16394 shaper function, make zero-width glyphs to have at least one-pixel
16395 width. Fix setting of `to' field of glyphs.
16396
163972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16398
16399 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16400 glyphs.
16401
16402 * font.h (struct font_driver): Improve docstring of member `shape'.
16403
164042008-02-01 Kenichi Handa <handa@m17n.org>
16405
16406 * composite.c (syms_of_composite): Fix docstring of
16407 auto-composition-function.
16408
16409 * font.h (LGLYPH_SIZE): New macro.
16410
16411 * font.c (Ffont_fill_gstring): Stop filling when a character not
16412 supported by the font is found.
16413 (Ffont_shape_text): When a shape callback function returns nil,
16414 try at most two more times with larger gstring.
16415 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16416
16417 * xdisp.c (handle_auto_composed_prop): Change the argument to
16418 auto-composition-function.
16419
16420 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16421 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16422 Lispy glyph and store it in the lgstring.
16423
16424 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16425
16426 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16427
164282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16429
16430 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16431
16432 * fontset.c (Vfont_encoding_charset_alist): New variable.
16433 (syms_of_fontset): DEFVAR it.
16434 (reorder_font_vector, fontset_find_font): Optimize for the case of
16435 no need of reordering.
16436 (face_for_char): Map the charset property by
16437 Vfont_encoding_charset_alist.
16438
164392008-02-01 Jason Rumney <jasonr@gnu.org>
16440
16441 * w32font.c (logfonts_match): Don't check adstyle here.
16442 (font_matches_spec): Check here against physical font instead.
16443 (add_font_entity_to_list): Avoid some substitutions.
16444
16445 * font.c (font_parse_fcname): Default weight and slant to normal.
16446 (font_score): Prefer normal fonts if weight or slant unspecified.
16447 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16448 match freetype scores.
16449
164502008-02-01 Jason Rumney <jasonr@gnu.org>
16451
16452 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16453 font, as it may have been deleted.
16454 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16455 most common hyphenless variation.
16456 (logfonts_match): Check generic family.
16457 (font_matches_spec): Don't check generic family here.
16458 (fill_in_logfont): Set generic family based on adstyle.
16459
16460 * w32font.h (w32font_get_cache): Update declaration.
16461
164622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16463
16464 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16465
16466 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16467 If none of the new drivers are available, call font_update_drivers
16468 with the old drivers.
16469
16470 * w32font.c (w32font_get_cache): Adjust the argument type.
16471
16472 * xfont.c (xfont_get_cache): Adjust the argument type.
16473
16474 * font.h (struct font_driver): Change argument type of get_cache.
16475
16476 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16477
16478 * font.c (Ffont_get): Fix arguments to Fassoc.
16479 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16480 (font_clear_cache): New function.
16481 (font_list_entities, font_matching_entity): Use font_get_cache.
16482 (font_update_drivers): Call font_clear_cache when finishing a driver.
16483
16484 * fontset.c (fontset_find_font): Fix previous change.
16485
164862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16487
16488 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16489 dpyinfo->font_table.
16490 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16491 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16492
16493 * font.c (font_at): Handle the case that the arg C is negative.
16494 Handle the unibyte case.
16495 (Ffont_at): Call font_at with the arg C -1.
16496
16497 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16498 the position here, and call font_at with the arg C -1.
16499 Don't check the range of the existing composition at the point.
16500
165012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16502
16503 * fontset.c (fontset_add): New args charset_id and family.
16504 Change caller.
16505 (load_font_get_repertory, fontset_find_font): Assume that
16506 font_spec is always a font-spec object.
16507 (Fset_fontset_font): Always store a font-spec object in a fontset.
16508
16509 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16510 instead of get_property_and_range.
16511
165122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16513
16514 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16515 (xftfont_open): Don't keep locking face.
16516 (xftfont_close): Don't unlock face.
16517 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16518
16519 * fontset.c (fontset_find_font): Don't prefer a font of
16520 supplementary charset.
16521
165222008-02-01 Kenichi Handa <handa@m17n.org>
16523
16524 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16525 script, langsys_tag to langsys, new member script.
16526 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16527 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16528 listing to the script specified in that property. Fix arg to
16529 OTF_check_features.
16530
165312008-02-01 Jason Rumney <jasonr@gnu.org>
16532
16533 * w32font.h: New file.
16534
16535 * w32font.c: Include it.
16536 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16537 (w32font_open): Set owning_frame.
16538 (w32font_text_extents): Use owning_frame.
16539 (struct font_callback_data): Add opentype_only field.
16540 (add_font_entity_to_list): Use it to filter fonts.
16541 Don't check against full name.
16542 (w32font_list_internal): New function.
16543 (w32font_list): Use it.
16544 (w32font_match_internal): New function.
16545 (w32font_match): Use it.
16546 (w32font_open_internal): New function.
16547 (w32font_open): Use it.
16548 (w32font_get_cache, w32font_close, w32font_has_char)
16549 (w32font_encode_char, w32font_text_extents, w32font_draw):
16550 Make non-static.
16551
16552 * makefile.w32-in (w32font.o): Depend on w32font.h.
16553
165542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16555
16556 * charset.c (Fdefine_charset_internal): Record a supplementary
16557 charset at the tail of Vcharset_order_list.
16558
16559 * font.c (Ffont_shape_text): Fix the return value.
16560
16561 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16562
16563 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16564
165652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16566
16567 * ftfont.c (struct OpenTypeSpec): New struct.
16568 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16569 (ftfont_get_open_type_spec): New function.
16570 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16571
16572 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16573
165742008-02-01 Jason Rumney <jasonr@gnu.org>
16575
16576 * w32font.c (add_font_entity_to_list): Compare only the beginning
16577 of full name.
16578
165792008-02-01 Kenichi Handa <handa@m17n.org>
16580
16581 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16582 Never return HANDLED_RECOMPUTE_PROPS.
16583
165842008-02-01 Kenichi Handa <handa@m17n.org>
16585
16586 * font.c (font_gstring_produce): Delete it.
16587
16588 * composite.h (COMPOSITION_METHOD):
16589 Handle COMPOSITION_WITH_GLYPH_STRING.
16590
165912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16592
16593 * xfont.c (Qx): Delete.
16594 (syms_of_xfont): Don't initialize Qx.
16595
16596 * composite.h (enum composition_method):
16597 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16598
165992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16600
16601 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16602 (choose_face_font): Accept new form of font-spec.
16603
16604 * frame.h (font_driver_list): Declare it unconditionally.
16605 (struct frame): Define members font_driver_list and font_data_list
16606 unconditionally.
16607
16608 * fontset.c: Include "font.h" unconditionally.
16609 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16610 (Fset_fontset_font): Accept a font-spec object.
16611
16612 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16613 PIXEL_SIZE part a wild card.
16614
16615 * dispextern.h (struct glyph_string): Define members clip and
16616 num_clips unconditionally.
16617 (struct face): Define members font_info and extra unconditionally.
16618
16619 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16620 ftfont_info only when HAVE_LIBOTF is defined.
16621
166222008-02-01 Andreas Schwab <schwab@suse.de>
16623
16624 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16625 and end.
16626
166272008-02-01 Jason Rumney <jasonr@gnu.org>
16628
16629 * w32font.c (w32font_driver): Add new fields.
16630
166312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16632
16633 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16634 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16635 (LIBES): Add @M17N_FLT_CFLAGS@.
16636
16637 * composite.c (compose_text): Don't treat the new style
16638 composition specially.
16639
16640 * emacs.c (main): Call syms_of_font unconditionally.
16641
16642 * font.h (FONT_ENTITY_NOT_LOADABLE)
16643 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16644 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16645 (struct font_driver): New member shape.
16646 (font_registry_charsets): Extern it.
16647 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16648 (font_otf_capability, font_drive_otf): Delete their externs.
16649
16650 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16651 (font_charset_alist, font_registry_charsets): Move from xfont.c
16652 and rename.
16653 (font_prop_validate_otf): New function.
16654 (font_property_table): Register it for QCotf.
16655 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16656 (font_drive_otf): Delete.
16657 (font_prepare_composition): New arg F. Adjust for the change of
16658 lispy gstring.
16659 (font_find_for_lface): New arg C.
16660 (font_load_for_face): Adjust for the change of font_find_for_lface.
16661 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16662 lispy gstring.
16663 (Ffont_shape_text): New function.
16664 (Fopen_font): If the font size is not given, use 12-pixel.
16665 (Ffont_at): New arg STRING.
16666 (syms_of_font): Initalize font_charset_alist.
16667 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16668 conditionally.
16669
16670 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16671 fonts of the same font-spec. Change the format of RFONT-DEF.
16672 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16673 Adjust for the change of RFONT-DEF.
16674 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16675
16676 * ftfont.h: New file.
16677
16678 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16679 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16680 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16681 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16682 font_otf_capability and font_drive_otf, set ftfont_shape.
16683 (ftfont_list): Adjust for the change of :otf property value.
16684 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16685 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16686 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16687 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16688 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16689 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16690
16691 * w32term.c (x_draw_composite_glyph_string_foreground):
16692 Adjust for the change of lispy gstring.
16693
16694 * xdisp.c (handle_composition_prop): Adjust for the change of
16695 lispy gstring. Call a function for auto-composition with the
16696 third arg it->window.
16697 (fill_composite_glyph_string): Adjust for the change of lispy string.
16698 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16699
16700 * xfaces.c (set_font_frame_param): Adjust for the change of
16701 font_find_for_lface.
16702
16703 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16704 (xfont_registry_charsets): Likewise. Change caller.
16705 (syms_of_xfont): Don't handle x_font_charset_alist.
16706
16707 * xftfont.c: Include "ftfont.h".
16708 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16709 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16710 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16711 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16712 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16713 Set xftfont_driver.shape to xftfont_shape.
16714
16715 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16716 the change of lispy gstring.
16717
167182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16719
16720 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16721
167222008-02-01 Jason Rumney <jasonr@gnu.org>
16723
16724 * w32font.c (w32font_draw): Fill background manually.
16725
167262008-02-01 Jason Rumney <jasonr@gnu.org>
16727
16728 * font.c (Qfontp): Remove unused symbol.
16729 (QCantialias): New symbol.
16730 (syms_of_font): Define it.
16731 (font_property_table): Set a validator for QCantialias.
16732
16733 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16734 Define if not already.
16735 (QCfamily): Share with xfaces.c.
16736 (Qstandard, Qsubpixel, Qnatural): New symbols.
16737 (syms_of_w32font): Define them. Don't define QCfamily here.
16738 (w32_antialias_type, lispy_antialias_type): New functions.
16739 (w32_enumfont_pattern_entity): New arg requested_font.
16740 Set antialias parameter if non-default was requested.
16741 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16742
167432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16744
16745 * lread.c (read1): Undo the previous change.
16746
167472008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16748
16749 * frame.c (Fdelete_frame): Call font_update_drivers only when
16750 USE_FONT_BACKEND is defined.
16751
167522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16753
16754 * font.h (struct font_bitmap): New member bits_per_pixel.
16755 (struct font_driver): New members start_for_frame and end_for_frame.
16756 (struct font_data_list): New struct.
16757 (font_put_frame_data, font_get_frame_data): Extern them.
16758
16759 * frame.h (struct frame): New member font_data_list.
16760
16761 * font.c (font_update_drivers): Call driver->start_for_frame and
16762 driver->end_for_frame at proper timings.
16763 (font_put_frame_data, font_get_frame_data): New functions.
16764 (Ffont_spec): Add usage in the docstring.
16765
16766 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16767 (Fdelete_frame): Call font_update_drivers.
16768
16769 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16770 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16771 (xftfont_get_xft_draw): New function.
16772 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16773 (xftfont_end_for_frame): New function.
16774 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16775
16776 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16777 Change argument. Cache GCs in the per-frame data.
16778 (struct ftxfont_frame_data): New struct.
16779 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16780 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16781 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16782 (ftxfont_end_for_frame): New function.
16783 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16784
16785 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16786
167872008-02-01 Kenichi Handa <handa@m17n.org>
16788
16789 * xselect.c (Vselection_coding_system)
16790 (Vnext_selection_coding_system): Delete them.
16791 (syms_of_xselect): Don't declare selection-coding-system and
16792 next-selection-coding-system. They are declared in select.el.
16793
167942008-02-01 Jason Rumney <jasonr@gnu.org>
16795
16796 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16797
16798 * w32fns.c: Include imm.h.
16799 (get_composition_string_fn, get_ime_context_fn): New optional
16800 system functions.
16801 (globals_of_w32fns): Load them from imm32.dll.
16802 (ignore_ime_char): New flag.
16803 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16804 WM_IME_ENDCOMPOSITION messages.
16805
16806 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16807 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16808
168092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16810
16811 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16812 (READCHAR_REPORT_MULTIBYTE): New macro.
16813 (readchar): New 2nd arg MULTIBYTE.
16814 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16815 Make symbol's name multibyte according to the multibyteness of the
16816 source.
16817
168182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16819
16820 * xfaces.c (face_for_overlay_string): Call lookup_face with
16821 correct arguments (fix of synching with the trunk).
16822
168232008-02-01 Kenichi Handa <handa@m17n.org>
16824
16825 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16826 (font_prop_validate_non_neg, font_prop_validate_spacing):
16827 Delete argument prop_index.
16828 (font_property_table): Change arguments to validater. Change Callers.
16829 (font_lispy_object): Delete.
16830 (font_at): Use font_find_object instead fo font_lispy_object.
16831
168322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16833
16834 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16835 and file names.
16836
168372008-02-01 Jason Rumney <jasonr@gnu.org>
16838
16839 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16840 (font_matches_spec): Remove debug output.
16841 (add_font_entity_to_list): Avoid using substituted fonts.
16842
168432008-02-01 Jason Rumney <jasonr@gnu.org>
16844
16845 * doc.c (Fsnarf_documentation):
16846 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16847
168482008-02-01 Miles Bader <miles@gnu.org>
16849
16850 * dispextern.h (struct glyph_row): Only define "clip" field if
16851 HAVE_WINDOW_SYSTEM is defined.
16852
168532008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16854
16855 Fix up multi-tty merge.
16856
16857 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16858 and indentation.
16859
16860 * xfaces.c (free_realized_face, clear_face_gcs):
16861 Include font_done_for_face in the input_blocked section, just in case.
16862
16863 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16864 (get_char_face_and_encoding): Undo last change and remove the *other*
16865 duplicate definition (i.e. keep the one that's better scoped and that
16866 includes code for the font-backend).
16867
16868 * terminal.c (create_terminal): Default keyboard_coding to
16869 `no-conversion' and terminal_coding to `undecided'.
16870
16871 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16872
16873 * fontset.c (free_realized_fontsets): Check that the table entry does
16874 contain a fontset before trying to compare it to `base'.
16875
16876 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16877 syms_of_charset, and syms_of_coding earlier because init_window_once
16878 now needs Vcoding_system_hash_table to be setup.
16879
16880 * coding.h (default_buffer_file_coding): Remove.
16881
16882 * coding.c (default_buffer_file_coding): Remove.
16883 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16884 than ->symbol, and use the terminal-local coding system.
16885 (syms_of_coding): Don't setup the coding-systems that are not
16886 terminal-local.
16887 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16888
16889 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16890 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16891
16892 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16893 in chartab.c and were re-added here by mistake.
16894 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16895
16896 * doc.c (Fsnarf_documentation):
16897 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16898 src to etc.
16899
16900 * ChangeLog.10: Add mistakenly removed entry.
16901
169022008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16903
16904 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16905
169062008-02-01 Miles Bader <miles@gnu.org>
16907
16908 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16909 Add extra args to FACE_FOR_CHAR.
16910
169112008-02-01 Kenichi Handa <handa@m17n.org>
16912
16913 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16914 in sequence.
16915
16916 * chartab.c (map_sub_char_table, map_char_table): If the range
16917 contains just one character, call the function with that character
16918 even if the depth is not 3.
16919
169202008-02-01 Jason Rumney <jasonr@gnu.org>
16921
16922 * w32font.c (w32font_text_extents): Calculate metrics for the
16923 whole string.
16924
169252008-02-01 Jason Rumney <jasonr@gnu.org>
16926
16927 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16928
169292008-02-01 Jason Rumney <jasonr@gnu.org>
16930
16931 * w32term.c (x_set_glyph_string_clipping): Use
16932 get_glyph_string_clip_rects.
16933 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16934 Adjust for the change of struct glyph_string.
16935
16936 * w32font.c (w32font_draw): Do clipping here.
16937
169382008-02-01 Kenichi Handa <handa@m17n.org>
16939
16940 * xftfont.c (xftfont_draw): Adjust for the change of struct
16941 glyph_string.
16942
16943 * xterm.c (x_set_glyph_string_clipping): Use
16944 get_glyph_string_clip_rects.
16945 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16946 Adjust for the change of struct glyph_string.
16947
16948 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16949 the resulting clip(s}.
16950 (expose_overlaps): Add arg r. Change callers. Set it to
16951 row->clip temporarily.
16952 (expose_window): Redraw rows overlapping the exposed area.
16953
16954 * dispextern.h (struct glyph_row): New member clip.
16955 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16956 clip_height, new member clip, and num_clips.
16957
169582008-02-01 Kenichi Handa <handa@m17n.org>
16959
16960 * data.c (Fchar_or_string_p): Fix docstring.
16961
169622008-02-01 Kenichi Handa <handa@m17n.org>
16963
16964 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16965 create a temporary XftDraw object.
16966
169672008-02-01 Kenichi Handa <handa@m17n.org>
16968
16969 * font.c (Ffontp): Fix docstring.
16970
16971 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16972 strong evidence of ISO-2022.
16973
169742008-02-01 Kenichi Handa <handa@m17n.org>
16975
16976 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16977 SYNTAX_ENTRY_FOLLOW_PARENT.
16978
169792008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16980
16981 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16982 its type.
16983 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16984 Update to the new type of weak_hash_tables and next_weak.
16985
16986 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16987 a plain C pointer to Lisp_Hash_Table.
16988
16989 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16990 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16991 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16992 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16993 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16994 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16995 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16996 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16997 (GC_EQ): Remove since they've been identical to their non-GC_
16998 alter-egos ever since the markbit was eradicated.
16999
17000 * alloc.c:
17001 * buffer.c:
17002 * buffer.h:
17003 * data.c:
17004 * fileio.c:
17005 * filelock.c:
17006 * fns.c:
17007 * frame.h:
17008 * lisp.h:
17009 * macterm.c:
17010 * print.c:
17011 * process.c:
17012 * w32fns.c:
17013 * w32menu.c:
17014 * w32term.c:
17015 * xfns.c:
17016 * xmenu.c:
17017 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17018
170192008-02-01 Kenichi Handa <handa@m17n.org>
17020
17021 * chartab.c (map_sub_char_table): Make it work for the top-level
17022 char-table. Fix handling of parent char-table.
17023 (map_char_table): Adjust for the above change.
17024
170252008-02-01 Jason Rumney <jasonr@gnu.org>
17026
17027 * w32font.c (Qgdi): Rename from Qw32.
17028
170292008-02-01 Jason Rumney <jasonr@gnu.org>
17030
17031 * w32bdf.c (get_quoted_string): Make function static.
17032
170332008-02-01 Kenichi Handa <handa@m17n.org>
17034
17035 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17036 bigger ascent and descent than those of the font, use them as
17037 font's ascent and descent.
17038
170392008-02-01 Kenichi Handa <handa@m17n.org>
17040
17041 * Makefile.in (${lispsource}international/charprop.el): Move this
17042 target within "#ifdef HAVE_UNIDATA" and "#endif".
17043
170442008-02-01 Kenichi Handa <handa@m17n.org>
17045
17046 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17047 (shortlisp): Add ../lisp/language/tai-viet.el.
17048
170492008-02-01 Ulrich Mueller <ulm@gentoo.org>
17050
17051 * Makefile.in (${lispsource}international/charprop.el): Depend on
17052 temacs${EXEEXT}.
17053
170542008-02-01 Jason Rumney <jasonr@gnu.org>
17055
17056 * w32font.c (w32font_close): Delete the GDI font object.
17057
17058 * w32menu.c: Include character.h.
17059
17060 * w32proc.c: Likewise.
17061
17062 * w32select.c: Likewise.
17063
17064 * makefile.w32-in (w32proc.o): Depend on character.h.
17065
170662008-02-01 Jason Rumney <jasonr@gnu.org>
17067
17068 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17069
17070 * w32menu.c (syms_of_w32menu): Likewise.
17071
17072 * w32proc.c (syms_of_ntproc): Likewise.
17073
17074 * w32select.c (syms_of_w32select): Likewise.
17075
17076 * w32term.c (syms_of_w32term): Likewise.
17077
170782008-02-01 Jason Rumney <jasonr@gnu.org>
17079
17080 * w32font.c (w32font_draw): Delete brush after using it.
17081
170822008-02-01 Jason Rumney <jasonr@gnu.org>
17083
17084 * w32font.c (w32font_open): Don't set font_idx.
17085 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17086 to font settings.
17087 (w32font_draw): Fill background explicitly.
17088
170892008-02-01 Jason Rumney <jasonr@gnu.org>
17090
17091 * w32term.c (w32_initialize): Don't call w32font_initialize.
17092
17093 * w32font.c (w32font_info): Remove subranges.
17094 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17095 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17096 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17097 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17098 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17099 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17100 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17101 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17102 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17103 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17104 New symbols.
17105 (font_callback_data): New struct.
17106 (w32font_list, w32font_match): Use it.
17107 (w32font_open): Don't populate subranges.
17108 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17109 (w32font_encode_char): Always return unicode code-point as-is.
17110 (w32font_text_extents): Supply a transformation matrix to
17111 GetGlyphOutline. Never look up by glyph index. Avoid looping
17112 twice. Use unicode version of GetTexExtentPoint32 instead of
17113 glyph index version.
17114 (set_fonts_frame): Remove.
17115 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17116 set frame parameter. Use backward compatible fake foundries.
17117 Save generic family in extra slot under QCfamily. Make width slot
17118 constant. Save QCspacing value. Save list of scripts instead of
17119 binary subranges.
17120 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17121 (add_font_entity_to_list): Use font_callback_data struct. Filter
17122 unwanted fonts.
17123 (add_one_font_entity_to_list): Use font_callback_data struct.
17124 (w32_registry): Default to iso10646_1.
17125 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17126 string font registries. Don't fill in font name if it is a generic
17127 family name, fill family instead. Use spacing, family and script
17128 extra info to fill pitch, family and charset fields.
17129 (list_all_matching_fonts): Use font_callback_data struct.
17130 (unicode_range_for_char): Remove.
17131 (font_supported_scripts): New function.
17132 (w32font_initialize): Remove.
17133 (syms_of_w32font): Update which symbols are defined.
17134
171352008-02-01 Jason Rumney <jasonr@gnu.org>
17136
17137 * font.c (font_pixel_size): Reverse assq_no_quit args.
17138
17139 * w32term.h (FONT_WIDTH): Report max width, not average.
17140 (FONT_MAX_WIDTH): Remove.
17141 (FONT_AVG_WIDTH): New macro.
17142
17143 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17144 redefinition of FONT_WIDTH.
17145
17146 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17147 (w32_cache_char_metrics): Use FONT_WIDTH.
17148
17149 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17150
171512008-02-01 Jason Rumney <jasonr@gnu.org>
17152
17153 * w32font.c (w32font_open): Make lfHeight negative.
17154
17155 * w32fns.c (x_default_font_parameter): Use new style font name.
17156 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17157
171582008-02-01 Jason Rumney <jasonr@gnu.org>
17159
17160 * w32font.c (QCsubranges): New symbol.
17161 (w32font_open, w32font_has_char): Get subranges from subproperty
17162 of extra.
17163 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17164 (syms_of_w32font): Define :subranges symbol.
17165
17166 * font.c (font_put_extra): Expose externally.
17167
17168 * font.h (font_put_extra): Move declaration from font.c.
17169
17170 * font.c (Ffont_get): Use font driver to determine otf capability.
17171 (adjust_anchor): Check if driver defines anchor_point before using.
17172
17173 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17174 (w32font_draw): Use options.
17175 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17176 Fix detection of truetype fonts.
17177 (registry_to_w32_charset): Handle charsets other than iso8859-1
17178 expressed as lisp symbols.
17179 (w32_registry): Express charset as lisp symbol.
17180 (fill_in_logfont): Reverse pixel and point height logic.
17181 Don't set width here. Set quality to default.
17182
17183 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17184 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17185
17186 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17187 Remove redundant loop and allocation.
17188
17189 * makefile.w32-in (font.o, w32font.o): New objects.
17190 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17191 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17192
17193 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17194 STORE_XCHARB a valid l-value.
17195
17196 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17197 calculations for non-Truetype fonts.
17198 (x_draw_glyph_string): Sync with xterm.c.
17199 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17200 Remove redundant code.
17201 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17202
17203 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17204 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17205
17206 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17207 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17208
17209 * w32font.c: New file for w32 font backend.
17210
172112008-02-01 Kenichi Handa <handa@m17n.org>
17212
17213 * term.c: Don't include "buffer.h" twice.
17214
172152008-02-01 Kenichi Handa <handa@m17n.org>
17216
17217 * character.c (Funibyte_string): New function.
17218 (syms_of_character): Defsubr it.
17219
172202008-02-01 Jason Rumney <jasonr@gnu.org>
17221
17222 * w32term.c [USE_FONT_BACKEND]:
17223 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17224 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17225 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17226 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17227 (x_free_frame_resources): Sync with xterm.c.
17228
172292008-02-01 Andreas Schwab <schwab@suse.de>
17230
17231 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17232 char-table size.
17233
172342008-02-01 Kenichi Handa <handa@m17n.org>
17235
17236 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17237
172382008-02-01 Kenichi Handa <handa@m17n.org>
17239
17240 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17241 font_otf_gpos, add font_drive_otf.
17242
17243 * fontset.c (fontset_find_font): Pay attention to font size
17244 specified for a font.
17245 (reorder_font_vector): Check contents of font_def.
17246
17247 * font.c (struct otf_list): Delete it.
17248 (otf_list): Make it a lisp variable.
17249 (otf_open): Use lispy otf_list.
17250 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17251 (check_otf_features): New function.
17252 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17253 New functions.
17254 (font_drive_otf): New function merging font_otf_gsub and
17255 font_otf_gpos.
17256 (font_open_for_lface): New arg spec. Change argument order.
17257 (font_load_for_face): Adjust for the change of font_open_for_lface.
17258 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17259 Ffont_otf_gpos.
17260 (syms_of_font): Staticpro otf_list. Delete defsubr of
17261 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17262
17263 * xfaces.c (set_font_frame_param): Adjust for the change of
17264 font_open_for_lface.
17265
17266 * font.h (font_open_for_lface): Adjust prototype.
17267 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17268 member otf_drive.
17269 (font_otf_gsub, font_otf_gpos): Delete externs.
17270 (font_drive_otf): Extern it.
17271
172722008-02-01 Kenichi Handa <handa@m17n.org>
17273
17274 * font.c (font_at): If the window W is not on a window system,
17275 return Qnil.
17276
17277 * coding.c (produce_chars, encode_coding): Don't call
17278 insert_from_gap if no characters to produce.
17279
172802008-02-01 Kenichi Handa <handa@m17n.org>
17281
17282 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17283 Fclear_face_cache.
17284
17285 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17286
172872008-02-01 Miles Bader <miles@gnu.org>
17288
17289 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17290 Parse "--disable-font-backend" option.
17291 (standard_args): Add "--disable-font-backend" option.
17292
172932008-02-01 Kenichi Handa <handa@m17n.org>
17294
17295 * fontset.c (fontset_find_font): New function.
17296 (fontset_font): Use fontset_find_font.
17297 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17298 Register the specified font for all Latin characters.
17299 (new_fontset_from_font): Register the specified font for all Latin
17300 characters.
17301 (dump_fontset): For a realized fontset, include the base fontset
17302 name in the returned vector.
17303
173042008-02-01 Kenichi Handa <handa@m17n.org>
17305
17306 * character.h (CHAR_STRING): Cast C to unsigned on calling
17307 char_string.
17308
17309 * character.c (char_string): Type of arg C changed to unsigned.
17310 Signal an error if C is an invalid character code.
17311
17312 * editfns.c (general_insert_function, Fchar_to_string):
17313 Use CHARACTERP, not INTEGERP.
17314
173152008-02-01 Kenichi Handa <handa@m17n.org>
17316
17317 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17318 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17319
17320 * regex.c (analyse_first): Fix for multibyte characters in "case
17321 charset:" and "case categoryspec:".
17322
173232008-02-01 Andreas Schwab <schwab@suse.de>
17324
17325 * Makefile.in (LIBES): Move standard libraries to the end.
17326
173272008-02-01 Kenichi Handa <handa@m17n.org>
17328
17329 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17330 nonzero, don't shrink the buffer nextb.
17331
17332 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17333
17334 * coding.c (coding_alloc_by_making_gap): New arg offset.
17335 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17336 offset.
17337 (decode_coding_iso_2022): Update coding->safe_charsets.
17338 (decode_coding_gap): Temporarily set
17339 current_buffer->text->inhibit_shrinking to 1.
17340
173412008-02-01 Kenichi Handa <handa@m17n.org>
17342
17343 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17344 indexing into elements of s->cmp and s->char2b.
17345
173462008-02-01 Juanma Barranquero <lekktu@gmail.com>
17347
17348 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17349
173502008-02-01 Kenichi Handa <handa@m17n.org>
17351
17352 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17353 target_multibyte instead of multibyte.
17354 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17355 (bcmp_translate): Change the argument name from multibyte to
17356 target_multibyte.
17357
173582008-02-01 Kenichi Handa <handa@m17n.org>
17359
17360 These changes are to compile a regexp into a pattern that can be
17361 used both for multibyte and unibyte targets.
17362
17363 * Makefile.in (search.o): Depend on charset.h.
17364
17365 * character.c (multibyte_char_to_unibyte_safe): New function.
17366
17367 * search.c: Include "charset.h".
17368 (compile_pattern_1): Delete argument multibyte. Don't set
17369 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17370 (compile_pattern): Don't compare cp->buf.target_multibyte.
17371 Compare cp->buf.charset_unibyte.
17372 (compile_pattern): Set cp->buf.target_multibyte.
17373
17374 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17375
17376 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17377
17378 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17379 multibyte. Change callers.
17380 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17381 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17382 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17383 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17384 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17385 (regex_compile): Make the compiled pattern usable both for
17386 multibyte and unibyte targets.
17387 (analyse_first): Make the fastmap usable both for multibyte and
17388 unibyte targets.
17389 (TRANSLATE_VIA_MULTIBYTE): Delete.
17390 (re_match_2_internal): Pay attention to the case that the
17391 multibyteness of bufp and target may be different.
17392
173932008-02-01 Kenichi Handa <handa@m17n.org>
17394
17395 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17396 empty box occupy at least one column width.
17397
173982008-02-01 Miles Bader <miles@gnu.org>
17399
17400 * Makefile.in: Remove redundant HAVE_XFT clause.
17401
174022008-02-01 Kenichi Handa <handa@m17n.org>
17403
17404 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17405
174062008-02-01 Kenichi Handa <handa@m17n.org>
17407
17408 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17409 being nil.
17410
174112008-02-01 Kenichi Handa <handa@m17n.org>
17412
17413 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17414
174152008-02-01 Kenichi Handa <handa@m17n.org>
17416
17417 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17418
174192008-02-01 Kenichi Handa <handa@m17n.org>
17420
17421 * search.c (simple_search): Fix previous change.
17422
174232008-02-01 Kenichi Handa <handa@m17n.org>
17424
17425 * xftfont.c (ftfont_font_format): Extern declaration.
17426
17427 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17428
17429 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17430 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17431
17432 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17433 (ftfont_font_format): Fix previous change.
17434
17435 * font.h (Ffont_xlfd_name): EXFUN it.
17436
17437 * font.c (font_parse_xlfd): Fix the array size of `f'.
17438 (register_font_driver): Use EQ to compare driver->type.
17439
17440 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17441 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17442 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17443
174442008-02-01 Kenichi Handa <handa@m17n.org>
17445
17446 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17447 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17448
174492008-02-01 Kenichi Handa <handa@m17n.org>
17450
17451 * xfont.c (xfont_open): Set font->format.
17452
17453 * xftfont.c (xftfont_open): Set font->format.
17454
17455 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17456 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17457 (ftfont_open): Set font->format.
17458 (ftfont_font_format): New function.
17459
17460 * font.h (struct font): New member format.
17461
17462 * font.c (Qopentype): New variable.
17463 (syms_of_font): Defsym it.
17464 (Fquery_font): Change the format of the last element of the return
17465 value.
17466
174672008-02-01 Kenichi Handa <handa@m17n.org>
17468
17469 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17470 last resort.
17471
174722008-02-01 Kenichi Handa <handa@m17n.org>
17473
17474 * coding.c (detect_coding_charset): Fix detection of multi-byte
17475 charset.
17476
174772008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17478
17479 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17480
174812008-02-01 Kenichi Handa <handa@m17n.org>
17482
17483 * xdisp.c (get_next_display_element): Set it->face_id for the
17484 first component of a composition.
17485 (x_produce_glyphs): Check if the font is changed or not for composition.
17486
174872008-02-01 Kenichi Handa <handa@m17n.org>
17488
17489 * fontset.c (Qlatin): New variable.
17490 (syms_of_fontset): Define it as a lisp symbol.
17491 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17492
174932008-02-01 Kenichi Handa <handa@m17n.org>
17494
17495 * font.c (font_unparse_fcname): Pay attention to the case that
17496 some of font property is a null string.
17497
174982008-02-01 Kenichi Handa <handa@m17n.org>
17499
17500 * term.c: Include "composite.h".
17501 (encode_terminal_code): Output all components of composition.
17502 Check the size of encode_terminal_src.
17503 (produce_glyphs): For composition, call produce_composite_glyph.
17504 (append_composite_glyph, produce_composite_glyph): New functions.
17505
17506 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17507 is not found, get font_info from the current ascii face.
17508
175092008-02-01 Kenichi Handa <handa@m17n.org>
17510
17511 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17512 buffer-file-name to Qnil before calling insert_from_buffer.
17513
17514 * font.c (font_unparse_fcname): Pay attention to the case that
17515 foundry is a null string.
17516
175172008-02-01 Kenichi Handa <handa@m17n.org>
17518
17519 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17520
17521 * font.c (Qunicode_sip): New variable.
17522 (syms_of_font): Declare it as a Lisp symbol.
17523
17524 * font.h (Qunicode_sip): Extern it.
17525
175262008-02-01 Kenichi Handa <handa@m17n.org>
17527
17528 * composite.c (get_composition_id): Pay attention to TAB component.
17529
17530 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17531 TAB. Adjust for the change of s->char2b which always points to
17532 the first element of allocated memory.
17533
17534 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17535
17536 * xdisp.c (handle_composition_prop): Set it->c to the first
17537 non-TAB component.
17538 (fill_composite_glyph_string): Change argument.
17539 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17540 (x_produce_glyphs): Fix handling of left/right padding.
17541
175422008-02-01 Kenichi Handa <handa@m17n.org>
17543
17544 * coding.c (detect_coding_system): Fix for handling off
17545 inhibit_iso_escape_detection. Fix for the case that no coding
17546 system is defined for a specific coding category.
17547
175482008-02-01 Kenichi Handa <handa@m17n.org>
17549
17550 * font.c (font_matching_entity): Delete unused local var.
17551
17552 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17553 opening a font.
17554
17555 * fileio.c (Finsert_file_contents): On recovering a file, assume
17556 Unix-like eol.
17557 (choose_write_coding_system): On auto-saving a file, force
17558 Unix-like eol.
17559
17560 * coding.c (setup_coding_system): Fix setting of
17561 coding->common_flags based on eol_type.
17562 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17563 inherit from it.
17564
175652008-02-01 Kenichi Handa <handa@m17n.org>
17566
17567 * alloc.c (NSTATICS): Increas to 0x600.
17568
175692008-02-01 Kenichi Handa <handa@m17n.org>
17570
17571 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17572 (ftfont_list): Don't check :name property.
17573 (ftfont_match): New function.
17574 (ftfont_pattern_entity): If the pattern doesn't contain
17575 FC_SPACING, don't assume FC_MONO.
17576
17577 * font.h (struct font_driver): New member `match'.
17578 (font_update_drivers): Adjust prototype.
17579
17580 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17581 property of FONT.
17582 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17583 them unconditionally.
17584 (font_matching_entity): New function.
17585 (font_open_by_name): Try font_matching_entity if exact match is
17586 not found.
17587 (font_update_drivers): Delete the arg FONT. Return a list of
17588 actually used backends. Don't free faces, font caches here.
17589 Don't store data in frame parameters. Don't call x_set_font.
17590 (Ffont_spec): Store :name property as is.
17591 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17592 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17593 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17594 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17595 Call font->driver->otf_gsub instead of font_otf_gsub.
17596
17597 * frame.c (x_set_font_backend): Do more works that were done in
17598 font_update_drivers before.
17599
17600 * xfont.c (xfont_match): New function.
17601 (xfont_driver): Set xfont_driver.match to xfont_match.
17602 (xfont_draw): Set font in GC if necessary.
17603
17604 * ftxfont.c (ftxfont_match): New function.
17605 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17606
17607 * xftfont.c (xftfont_match): New function.
17608 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17609
176102008-02-01 Kenichi Handa <handa@m17n.org>
17611
17612 * font.h (struct font): New member scalable.
17613 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17614 (font_otf_gsub): Adjust prototype.
17615
17616 * font.c (font_otf_capability): Fix handling of the default langsys.
17617 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17618 Check the contents of SPEC.
17619 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17620 (check_gstring): New function.
17621 (REPLACEMENT_CHARACTER): New macro.
17622 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17623 glyph codes of GSTRING.
17624 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17625 (font_prepare_composition): Set cmp->glyph_len.
17626 (font_open_entity): Set font->scalable.
17627 (Ffont_get): Handle :otf property.
17628 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17629 functions.
17630 (Fquery_font): Use font->font.full_name.
17631 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17632 Sfont_otf_alternates.
17633
17634 * ftfont.c (ftfont_open): Set font->font.full_name and
17635 font->font.name properly. Fix calculation of font->font.height
17636 and font->min_width.
17637
17638 * ftxfont.c (ftxfont_create_gcs): New function.
17639 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17640 (ftxfont_draw_backgrond): Fix filling region.
17641 (ftxfont_default_fid): New function.
17642 (ftxfont_open): Set xfont->fid to the return value of
17643 ftxfont_default_fid.
17644 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17645 (ftxfont_done_face): Free only GCs that are created by
17646 ftxfont_create_gcs.
17647 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17648
17649 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17650 Clip to src->width, etc (not src->clip_XXX).
17651
17652 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17653 FontBackend frame parameter.
17654
176552008-02-01 Kenichi Handa <handa@m17n.org>
17656
17657 * font.h (struct font_driver_list): New member `on'.
17658 (Fclear_font_cache): EXFUN it.
17659 (font_update_drivers): Extern it.
17660
17661 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17662 (font_list_entities): Check driver_list->on.
17663 (register_font_driver): Initalize `on' member to 0.
17664 (font_update_drivers): New function.
17665 (Fclear_font_cache): Check driver_list->on.
17666
17667 * frame.h (Qfont_backend): Extern it.
17668 (x_set_font_backend): Extern it.
17669
17670 * frame.c (Qfont_backend): New variable.
17671 (frame_parms): New element for font-backend.
17672 (x_set_font_backend): New function.
17673
17674 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17675 FontBackend frame parameter.
17676 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17677 x_set_font_backend.
17678
17679 * xfont.c (xfont_list): Don't try listing by :name property if the
17680 name is not for XLFD.
17681
176822008-02-01 Kenichi Handa <handa@m17n.org>
17683
17684 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17685 (LGLYPH_SET_TO): New macros.
17686 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17687 element of G is vector or not.
17688 (font_at): Extern it.
17689
17690 * font.c: Include window.h.
17691 (font_lispy_object): New function.
17692 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17693 end of valid glyph.
17694 (font_close_object): Fix getting (struct font *).
17695 (font_at): New function.
17696 (Ffont_get): If FONT is a font-object, get entity from it.
17697 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17698 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17699 range check.
17700 (Ffont_at): New function.
17701 (syms_of_font): Defsubr Sfont_at.
17702
17703 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17704 before the entry for Qcomposition.
17705 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17706 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17707 the font in gstring.
17708 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17709 LGLYPH_FORM (g) to detect the end of valid glyph.
17710 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17711 we are composing with gstring.
17712
17713 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17714 Check if adjustment is vector or not.
17715
17716 * Makefile.in (font.o): Make it depends on window.h.
17717
177182008-02-01 Kenichi Handa <handa@m17n.org>
17719
17720 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17721 adjustment is vector or not.
17722
177232008-02-01 Miles Bader <miles@gnu.org>
17724
17725 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17726
177272008-02-01 Kenichi Handa <handa@m17n.org>
17728
17729 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17730 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17731 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17732
17733 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17734 (DEVICE_DELTA): Fix typo.
17735 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17736 LGLYPH format.
17737
17738 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17739 the change of LGLYPH format.
17740
177412008-02-01 Kenichi Handa <handa@m17n.org>
17742
17743 * ftfont.c (ftfont_list): Fix typo.
17744 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17745
177462008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17747
17748 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17749
17750 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17751 xftface_info is non-NULL.
17752
177532008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17754
17755 * ftfont.c (ftfont_list): Move misplaced #endif.
17756
177572008-02-01 Kenichi Handa <handa@m17n.org>
17758
17759 * ftfont.c (ftfont_list): Pay attention to the case that
17760 FC_CAPABILITY is not defined.
17761
177622008-02-01 Kenichi Handa <handa@m17n.org>
17763
17764 * xftfont.c (xftfont_open): Set charset related members to -1.
17765
17766 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17767 QCname.
17768 (ftfont_open): Set charset related members to -1.
17769
17770 * fontset.c (Votf_script_alist): New variable.
17771 (syms_of_fontset): Initialize it.
17772 (fontset_font): Delete unused variable.
17773
17774 * fontset.h (Votf_script_alist): Extern it.
17775
17776 * font.c (font_find_for_lface): Optimize code.
17777
17778 * font.h (font_close_object, font_merge_old_spec): Extern them.
17779
177802008-02-01 Kenichi Handa <handa@m17n.org>
17781
17782 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17783 (syms_of_font): Initialize them.
17784 (font_pixel_size): Allow float value in dpi.
17785 (font_prop_validate_type): Delete.
17786 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17787 Change caller.
17788 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17789 (font_prop_validate_extra): Delete.
17790 (font_prop_validate_spacing): New function.
17791 (font_property_table): Add elements for all known properties.
17792 (get_font_prop_index): Rename from check_font_prop_name. New
17793 argument FROM. Change caller.
17794 (font_prop_validate): Validate all known properties.
17795 (font_put_extra): Delete argument force. Change caller.
17796 (font_expand_wildcards): Make it static. Fix the way of shrinking
17797 the possible range.
17798 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17799 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17800 Change caller.
17801 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17802 (font_parse_fcname): Delete argument merge. Fix parsing of point
17803 size. Don't validate properties values here. Change caller.
17804 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17805 (font_open_by_name): Delete unused variable.
17806 (Ffont_spec): Likewise. Validate property values.
17807 (Ffont_match_p): New function.
17808
17809 * font.h (QCscalable): Extern it.
17810 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17811
17812 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17813
17814 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17815 (xfont_list_pattern): New function.
17816 (xfont_list): Use xfont_list_pattern.
17817
178182008-02-01 Kenichi Handa <handa@m17n.org>
17819
17820 * font.h (Flist_fonts): EXFUN it.
17821
178222008-02-01 Jason Rumney <jasonr@gnu.org>
17823
17824 * w32term.c (w32_initialize): Add back smoothing_type and
17825 smoothing_enabled definitions.
17826
178272008-02-01 Kenichi Handa <handa@m17n.org>
17828
17829 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17830 s->face->font on determining underline position.
17831
178322008-02-01 Kenichi Handa <handa@m17n.org>
17833
17834 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17835 (font_has_char): Accept font-object too.
17836 (font_find_for_lface): Try at first with a size specified in face.
17837
178382008-02-01 Kenichi Handa <handa@m17n.org>
17839
17840 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17841 font_open_by_name.
17842
178432008-02-01 Kenichi Handa <handa@m17n.org>
17844
17845 * font.h (QCspacing, QCdpi): Extern them.
17846 (enum font_spacing): New enum.
17847 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17848
17849 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17850 (QCspacing, QCdpi): New variables.
17851 (syms_of_font): Initialize them.
17852 (font_pixel_size): New function.
17853 (font_put_extra): New function.
17854 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17855 in FONT_EXTRA.
17856 (font_parse_fcname): Handle enumerated values (e.g. bold).
17857 Fix handling font size. Add QCname property that contains only
17858 unknown properties.
17859 (font_score): Change argument. Change caller. Pay attention to
17860 FONT_PIXEL_SIZE_QUANTUM.
17861 (font_sort_entites, font_list_entities, font_find_for_lface)
17862 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17863 (Ffont_spec): Add QCname property that contains only unknown properties.
17864
17865 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17866 include weight in listing pattern, instead check weight of each
17867 listed font. Don't include scalable in pattern. Pay attention to
17868 FONT_PIXEL_SIZE_QUANTUM.
17869
178702008-02-01 Kenichi Handa <handa@m17n.org>
17871
17872 * font.c (font_parse_fcname): Fix parsing of point-size.
17873 (font_unparse_fcname): Produce symbolic names for style properties.
17874 (font_list_entities): Handle float size correctly.
17875 (font_open_by_name): Prefer `normal' property values if the name
17876 doesn't specify them.
17877
17878 * fontset.c (Finternal_char_font): Use font_get_name, not
17879 Ffont_xlfd_name.
17880
17881 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17882 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17883 pattern. Don't force scalable.
17884
17885 * xftfont.c (xftfont_open): For generating a name, start from
17886 96-byte buffer.
17887
178882008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17889
17890 * frame.h (x_new_fontset2): Fix prototype.
17891
178922008-02-01 Kenichi Handa <handa@m17n.org>
17893
17894 * font.h (struct font_driver): Delete member parse_name.
17895 (font_match_p, font_get_spec, font_parse_fcname)
17896 (font_unparse_fcname): Extern them.
17897 (font_get_name): Adjust prototype.
17898
17899 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17900 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17901 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17902 unnecessary checks for weight, slant, and swidth.
17903 (font_parse_fcname): New function.
17904 (font_unparse_fcname): New function.
17905 (font_parse_name): New function.
17906 (font_match_p): New function.
17907 (font_get_name): Change return value to Lisp string.
17908 (font_get_spec): New function.
17909 (Qunspecified, Qignore_defface): Don't extern them.
17910 (font_find_for_lface): Assume that LFACE is fully specified.
17911 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17912 object, use it for FACE.
17913 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17914 driver->parse_name.
17915 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17916
17917 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17918 prototype.
17919
17920 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17921 argument F. Don't call Fnew_fontset. Instead, directly call
17922 make_fontset.
17923
17924 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17925
17926 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17927 of x_new_fontset2.
17928
17929 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17930 (Qsans__serif): New variables.
17931 (ftfont_generic_family_list): New variable.
17932 (syms_of_ftfont): Initialize the above variables.
17933 (ftfont_pattern_entity): Delete argument NAME.
17934 (ftfont_list_generic_family): New function.
17935 (ftfont_parse_name): Delete this function.
17936 (ftfont_list): Try generic family only when FcFontList found no font.
17937 (ftfont_list_family): Fix args to FcObjectSetBuild.
17938
17939 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17940 object in attrs[LFACE_FONT_INDEX].
17941 (set_lface_from_font_name): Cancel all changes for font-backend.
17942 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17943 function.
17944 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17945 font object in QCfont attribute.
17946 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17947 (realize_default_face) [USE_FONT_BACKEND]: Call
17948 set_lface_from_font_and_fontset.
17949
17950 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17951 "fixed", and signal error here if no suitable font was found.
17952
17953 * xfont.c (xfont_parse_name): Delete this function.
17954
17955 * xftfont.c (xftfont_open): Change coding style of error
17956 handling. Generate fontconfig's fontname pattern.
17957
17958 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17959 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17960
17961 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17962 Both args FONTSET and FONT_OBJECT must be existing ones.
17963
179642008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17965
17966 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17967
179682008-02-01 Kenichi Handa <handa@m17n.org>
17969
17970 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17971
17972 * font.h (struct font): Fix typo.
17973
17974 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17975 XLFD_XXX_INDEX.
17976 (enum xlfd_field_mask): New enum.
17977 (intern_font_field): Changed argument. Change caller. If digits
17978 are followed by non-digits, return a symbol.
17979 (font_expand_wildcards): New function.
17980 (font_parse_xlfd): Fix wildcard handling.
17981 (Ffont_spec): If :name is specified, reflect the info in the other
17982 properties.
17983
17984 * ftfont.c (ftfont_pattern_entity): Fix typo.
17985 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17986 locale.
17987
179882008-02-01 Kenichi Handa <handa@m17n.org>
17989
17990 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17991
17992 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17993 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17994 registry doesn't specify encoding part.
17995 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17996 (font_open_by_name): At first try parsing the name.
17997 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17998 as Lisp symbols.
17999
18000 * fontset.c (reorder_font_vector): Pay attention to the case that
18001 the 3rd element of font_def is nil.
18002 (fontset_font): For the default fontset, append one more fontset
18003 elements for a script-based font specification. Don't add script
18004 attribute on finding a font.
18005 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18006 font name.
18007 (fontset_ascii_font): If a font can't be opened, return nil.
18008
18009 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18010 (ftfont_pattern_entity): New function.
18011 (ftfont_get_cache): Assume that freetype_font_cache is already
18012 initialized.
18013 (ftfont_list): Handle the case that a file is specified in font
18014 name. Use ftfont_pattern_entity to generate entities.
18015 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18016 (syms_of_ftfont): Initialize freetype_font_cache.
18017
18018 * xftfont.c (xftfont_open): Make the font name fontconfig's
18019 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18020 (xftfont_close): Free font->font.name if not NULL.
18021
18022 * xfont.c (xfont_list): If script is specified for a font, return
18023 null_vector.
18024 (xfont_list_family): Declare argument type.
18025
18026 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18027 name, set LFACE_FONT (lface) to nil.
18028
18029 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18030 return Qnil.
18031
180322008-02-01 Kenichi Handa <handa@m17n.org>
18033
18034 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18035 (standard_args): Add "-enable-font-backend".
18036
180372008-02-01 Kenichi Handa <handa@m17n.org>
18038
18039 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18040 (struct xftdraw_list, xftdraw_list): Delete them.
18041 (register_xftdraw, check_xftdraw): Delete them.
18042 (xftfont_prepare_face): Don't call register_xftdraw.
18043 (xftfont_done_face): Don't call check_xftdraw.
18044 (xftfont_draw): Get background color only when with_background is
18045 nonzero.
18046
18047 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18048
180492008-02-01 Kenichi Handa <handa@m17n.org>
18050
18051 These changes are for the new font handling codes.
18052
18053 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18054 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18055 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18056 (FONTSRC, FONTOBJ): New variables.
18057 (obj): Add $(FONTOBJ).
18058 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18059 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18060 @LIBOTF_LIBS@.
18061 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18062 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18063
18064 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18065
18066 * character.h (Vscript_representative_chars): Extern it.
18067
18068 * character.c (Vscript_representative_chars): New variable.
18069 (syms_of_character): Declare it as a Lisp variable.
18070
18071 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18072 enable_font_backend is nonzero, accept the composition method
18073 COMPOSITION_WITH_GLYPH_STRING.
18074
18075 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18076 enumeration COMPOSITION_WITH_GLYPH_STRING.
18077
18078 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18079 members clip_x, clip_y, clip_width, and clip_height.
18080 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18081
18082 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18083 --enable-font-backend. Call syms_of_font.
18084
18085 * fns.c (assoc_no_quit): New function.
18086
18087 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18088 (face_for_font, new_fontset_from_font)
18089 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18090
18091 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18092 (fontset_font, fontset_ascii, face_for_char)
18093 (make_fontset_for_ascii_face, Ffont_info)
18094 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18095 is nonzero, use font-backend mechanism.
18096 (find_font_encoding): Make it non-static.
18097 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18098 New functions.
18099
18100 * frame.h (struct frame): New members resx and resy.
18101 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18102 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18103
18104 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18105 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18106
18107 * lisp.h (assoc_no_quit): Extern it.
18108
18109 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18110 Through out the file, use FONT_INFO_FROM_FACE instead of
18111 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18112 rif->per_char_metric.
18113 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18114 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18115 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18116 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18117 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18118 nonzero, use font-backend mechanism.
18119 (get_per_char_metric): New function.
18120
18121 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18122 (set_lface_from_font_name)
18123 (set_font_frame_param, free_realized_face)
18124 (prepare_face_for_display, clear_face_gcs)
18125 (Finternal_set_font_selection_order, realize_x_face)
18126 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18127 font-backend mechanism.
18128 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18129 (load_face_font) [USE_FONT_BACKEND]: Abort.
18130 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18131 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18132
18133 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18134 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18135 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18136 nonzero, register all available font drivers. Call
18137 x_default_font_parameter for deciding a font.
18138 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18139
18140 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18141 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18142 (x_set_glyph_string_clipping_exactly)
18143 (x_compute_glyph_string_overhangs)
18144 (x_draw_glyph_string_foreground)
18145 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18146 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18147 enable_font_backend is nonzero, use font-backend mechanism.
18148 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18149
181502008-02-01 Kenichi Handa <handa@m17n.org>
18151
18152 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18153 system_eol_type.
18154 (syms_of_coding): Initialize system_eol_type.
18155
18156 * process.c (Fset_process_coding_system): Inherit system's eol
18157 format if necessary.
18158
181592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18160
18161 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18162
181632008-02-01 Kenichi Handa <handa@m17n.org>
18164
18165 * coding.c (decode_eol): Pay attention to buffer relocation in
18166 del_range_2.
18167 (decode_coding): Call decode_eol before restoring undo_list.
18168
181692008-02-01 Kenichi Handa <handa@m17n.org>
18170
18171 * charset.c (Fdefine_charset_internal): Fix setting of
18172 emacs_mule_bytes.
18173
181742008-02-01 Kenichi Handa <handa@m17n.org>
18175
18176 * keyboard.c (read_char): Check if C is a character or not before
18177 looking up Vkeyboard_translate_table.
18178
181792008-02-01 Kenichi Handa <handa@m17n.org>
18180
18181 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18182 condition to terminate the loop.
18183
181842008-02-01 Kenichi Handa <handa@m17n.org>
18185
18186 * coding.c (produce_composition): Compare charbuf[i] instead of
18187 args[i] against 0.
18188 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18189
181902008-02-01 Kenichi Handa <handa@m17n.org>
18191
18192 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18193 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18194 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18195 detect_coding.
18196 (emacs_mule_char): Handle old style (Emacs 20) component character
18197 of a composition.
18198 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18199 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18200 composition rule.
18201 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18202
182032008-02-01 Kenichi Handa <handa@m17n.org>
18204
18205 * coding.c (encode_coding_ccl): Allocate destination dynamically
18206 when necessary.
18207
182082008-02-01 Kenichi Handa <handa@m17n.org>
18209
18210 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18211 the loop. When quitted, show a proper error message.
18212
182132008-02-01 Kenichi Handa <handa@m17n.org>
18214
18215 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18216 src->clip_head and src->clip_tail temporarily instead of src->hl.
18217
18218 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18219 character sequence.
18220 (Fccl_execute_on_string): Use ASET, not XSET.
18221
182222008-02-01 Kenichi Handa <handa@m17n.org>
18223
18224 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18225
182262008-02-01 Kenichi Handa <handa@m17n.org>
18227
18228 * coding.c (decode_coding): Fix the condition of terminating the
18229 decoding loop.
18230
182312008-02-01 Kenichi Handa <handa@m17n.org>
18232
18233 * data.c (Faset): On setting a character bigger than 255 in a
18234 unibyte string, signal an error instead of make the string multibyte.
18235
182362008-02-01 Kenichi Handa <handa@m17n.org>
18237
18238 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18239 made by a mapping table.
18240
182412008-02-01 Kenichi Handa <handa@m17n.org>
18242
18243 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18244 not.
18245 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18246 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18247
18248 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18249 s->face is NULL or not.
18250
182512008-02-01 Kenichi Handa <handa@m17n.org>
18252
18253 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18254 (x_draw_glyph_string): Fix drawing of right_overhang and
18255 left_overhang around/on cursor.
18256
18257 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18258
182592008-02-01 Kenichi Handa <handa@m17n.org>
18260
18261 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18262
182632008-02-01 Kenichi Handa <handa@m17n.org>
18264
18265 * coding.c (Fdefine_coding_system_internal)
18266 (Fdefine_coding_system_alias): Avoid a duplicated element in
18267 Vcoding_system_alist.
18268
182692008-02-01 Kenichi Handa <handa@m17n.org>
18270
18271 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18272
18273 * coding.c (Qcoding_system_define_form): New variable.
18274 (syms_of_coding): Intern and staticpro it.
18275 (Fcoding_system_p): Check Qcoding_system_define_form.
18276 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18277
18278 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18279 Fcoding_system_p.
18280 (CHECK_CODING_SYSTEM): If ID is not available, call
18281 Fcheck_coding_system.
18282 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18283 Try also Fcheck_coding_system.
18284
182852008-02-01 Kenichi Handa <handa@m17n.org>
18286
18287 * coding.c (code_conversion_restore): GCPRO arg.
18288
182892008-02-01 Kenichi Handa <handa@m17n.org>
18290
18291 * character.c (lisp_string_width): Check multibyteness of STRING.
18292
182932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18294
18295 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18296 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18297 (decode_mac_font_name): Use decode_coding_c_string instead of
18298 decode_coding.
18299 (x_load_font): Initialize fontp->fontset to -1. Set
18300 fontp->encoding_type.
18301
183022008-02-01 Kenichi Handa <handa@m17n.org>
18303
18304 * search.c (search_buffer): Give up BM search on case-fold-search
18305 if one of a target character has a case-equivalence of different
18306 byte length even if that target charcter is an ASCII.
18307 (simple_search): Fix calculation of byte length of matched text.
18308 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18309
183102008-02-01 Kenichi Handa <handa@m17n.org>
18311
18312 * coding.c (decode_coding): Fix handling of invalid bytes.
18313
183142008-02-01 Kenichi Handa <handa@m17n.org>
18315
18316 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18317 Unicode characters.
18318
183192008-02-01 Kenichi Handa <handa@m17n.org>
18320
18321 * coding.c (encode_coding_object): If a pre-write-conversion
18322 function makes a new buffer, kill it.
18323
183242008-02-01 Kenichi Handa <handa@m17n.org>
18325
18326 * coding.c (QCascii_compatible_p): New variable.
18327 (syms_of_coding): Initialize it.
18328 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18329 calling string_char.
18330 (record_conversion_result): Add `default:' case.
18331 (coding_charset_list): Delete unused variable `coding_type'.
18332 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18333 property in the plist of the coding system.
18334 (Fcoding_system_put): Check QCascii_compatible_p.
18335
183362008-02-01 Miles Bader <miles@gnu.org>
18337
18338 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18339 removed calculation of frame `f', as it's now used.
18340
183412008-02-01 Kenichi Handa <handa@m17n.org>
18342
18343 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18344 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18345 (UNIDATA): New variable.
18346 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18347 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18348 $(RUN_TEMACS) unconditionally.
18349
183502008-02-01 Kenichi Handa <handa@m17n.org>
18351
18352 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18353 (admindir): New variable.
18354 ($(lispsource)international/charprop.el): New target.
18355
183562008-02-01 Miles Bader <miles@gnu.org>
18357
18358 * character.c (chars-in-region): Remove obsolete function.
18359 (syms_of_character): Remove its initialization.
18360
183612008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18362
18363 * w32select.c (validate_coding_system)
18364 (setup_windows_coding_system): New functions.
18365 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18366 setup_windows_coding_system.
18367 (setup_config, Fw32_get_clipboard_data): Use
18368 validate_coding_system.
18369 (Fx_selection_exists): Move call to setup_config to a place
18370 where signals are allowed.
18371
18372 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18373 (Fcheck_coding_system): Add declarations.
18374
183752008-02-01 Kenichi Handa <handa@m17n.org>
18376
18377 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18378
183792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18380
18381 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18382 string as the second argument for x_new_fontset.
18383
183842008-02-01 Kenichi Handa <handa@m17n.org>
18385
18386 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18387 (encode_coding_object): Use safe_call instead of call2.
18388
183892008-02-01 Kenichi Handa <handa@m17n.org>
18390
18391 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18392
18393 * Makefile.in (lisp): Include charprop.el.
18394
183952008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18396
18397 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18398 Not sure if it's unnecessary.
18399
184002008-02-01 Steven Tamm <steventamm@mac.com>
18401
18402 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18403 some possibly unnecessary fontset checking code that crashed
18404 when creating a new frame.
18405
184062008-02-01 Kenichi Handa <handa@m17n.org>
18407
18408 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18409 lookup_face.
18410
18411 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18412
18413 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18414
184152008-02-01 Kenichi Handa <handa@m17n.org>
18416
18417 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18418 (coding_charset_list): New function.
18419
18420 * coding.h (coding_charset_list): Extern it.
18421
184222008-02-01 Kenichi Handa <handa@m17n.org>
18423
18424 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18425 concatenation of family and registry.
18426
184272008-02-01 Kenichi Handa <handa@m17n.org>
18428
18429 * character.h (BYTE8_STRING): Fix typo.
18430
18431 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18432 string to multibyte (sync to HEAD).
18433
18434 * casefiddle.c (casify_region): Handle changes in byte-length
18435 using replace_range_2 (sync to HEAD).
18436
184372008-02-01 Andreas Schwab <schwab@suse.de>
18438
18439 * chartab.c (map_char_table): GCPRO table and arg.
18440
184412008-02-01 Kenichi Handa <handa@m17n.org>
18442
18443 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18444 already at limit.
18445
184462008-02-01 Kenichi Handa <handa@m17n.org>
18447
18448 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18449 instead of fast_c_string_match_ignore_case.
18450 (find_font_encoding): Change argument to Lisp_Object. Use
18451 fast_string_match_ignore_case instead of
18452 fast_c_string_match_ignore_case. Change caller.
18453
184542008-02-01 Kenichi Handa <handa@m17n.org>
18455
18456 * xdisp.c (get_next_display_element): In unibyte case, decide to
18457 display in octal form by checking a character by
18458 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18459
18460 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18461
18462 * character.c (unibyte_has_multibyte_table): New variable.
18463
18464 * character.h (unibyte_has_multibyte_table): Extern it.
18465 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18466
184672008-02-01 Kenichi Handa <handa@m17n.org>
18468
18469 * coding.c (encode_coding_iso_2022): Fix handling of charset
18470 annotation.
18471
184722008-02-01 Kenichi Handa <handa@m17n.org>
18473
18474 * coding.c (setup_coding_system): If coding_system is nil, use
18475 Qundecided.
18476 (Fterminal_coding_system): Return nil if terminal coding system is
18477 `undecided'.
18478 (syms_of_coding): Define coding-system `undecided' here. Setup
18479 terminal_coding as `undecided'.
18480
184812008-02-01 Kenichi Handa <handa@m17n.org>
18482
18483 * xdisp.c (message_dolog, set_message_1): Call
18484 unibyte_char_to_multibyte with arg type int.
18485
18486 * lread.c (read1): Fix reading of a char-table.
18487
18488 * print.c (print_object): Include sub char-table in circularities
18489 detection.
18490
184912008-02-01 Kenichi Handa <handa@m17n.org>
18492
18493 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18494 Append the found sequences in car of ARGS instead of prepending.
18495
184962008-02-01 Kenichi Handa <handa@m17n.org>
18497
18498 * fileio.c (report_file_error): Make a unibyte string from
18499 strerror (errorno).
18500 (Fsubstitute_in_file_name): Fix the arg to
18501 unibyte_char_to_multibyte. It is evaluated twice.
18502
185032008-02-01 Kenichi Handa <handa@m17n.org>
18504
18505 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18506
185072008-02-01 Kenichi Handa <handa@m17n.org>
18508
18509 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18510 BOM is not found.
18511 (detect_coding, detect_coding_system): Optimization for ISO-2022
18512 when no 8-bit data is found.
18513
185142008-02-01 Jason Rumney <jasonr@gnu.org>
18515
18516 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18517
185182008-02-01 Kenichi Handa <handa@m17n.org>
18519
18520 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18521 CHARS.
18522
185232008-02-01 Steven Tamm <steventamm@mac.com>
18524
18525 * macterm.c (mac_encode_char): Add charset argument and update
18526 to use encoding_type.
18527 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18528 switch to pure fontset.
18529 (decode_mac_font_name): Temporarily remove decoding.
18530 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18531 (x_load_font): Temporarily remove encoding.
18532
185332008-02-01 Kenichi Handa <handa@m17n.org>
18534
18535 * xfaces.c (Fface_font): If frame is not on a window system,
18536 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18537 refer to face->font.
18538 (split_font_name_into_vector, build_font_name_from_vector)
18539 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18540 when HAVE_WINDOW_SYSTEM is defined.
18541
185422008-02-01 Kenichi Handa <handa@m17n.org>
18543
18544 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18545 (x_produce_glyphs): Fix setting of members of cmp in case
18546 cmp->glyph_len is zero.
18547
18548 * fontset.c (Fset_fontset_font): Fix docstring.
18549 (Ffontset_info): Make it backward compatible. New arg ALL.
18550
185512008-02-01 Kim F. Storm <storm@cua.dk>
18552
18553 * process.c (read_process_output): Grow decoding_buf when needed;
18554 this could cause a crash in allocate_string and compact_small_strings.
18555
185562008-02-01 Kenichi Handa <handa@m17n.org>
18557
18558 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18559
185602008-02-01 Kenichi Handa <handa@m17n.org>
18561
18562 * coding.c (setup_coding_system): Set coding->common_flags
18563 correctly for raw-text.
18564 (consume_chars): On encoding unibyte text by raw-text, don't check
18565 multibyte form.
18566 (encode_coding): On encoding by raw-text, never use translation tables.
18567
18568 * fileio.c (e_write): Short cut for the case of no encoding.
18569
185702008-02-01 Kenichi Handa <handa@m17n.org>
18571
18572 * coding.c (detect_coding, detect_coding_system): Delete unused
18573 variables.
18574
185752008-02-01 Kenichi Handa <handa@m17n.org>
18576
18577 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18578 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18579
185802008-02-01 Kenichi Handa <handa@m17n.org>
18581
18582 * coding.c (Ffind_coding_systems_region_internal): Include
18583 raw-text and no-conversion in the result.
18584
185852008-02-01 Kenichi Handa <handa@m17n.org>
18586
18587 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18588 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18589 FONT_DEF.
18590 (font_def_arg, add_arg, from_arg, to_arg): New args.
18591 (set_fontset_font): Change argument.
18592 (Fset_fontset_font): Fix for the case that TARGET is a script
18593 name and charset name.
18594 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18595
185962008-02-01 Kenichi Handa <handa@m17n.org>
18597
18598 * fontset.c (fontset_font): Rename from fontset_face. Change return
18599 value.
18600 (face_suitable_for_char_p, face_for_char): Adjust for the change
18601 of fontset_font.
18602 (make_fontset_for_ascii_face): Fix setting of the fontset element
18603 for ASCII.
18604 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18605 to get a font name.
18606 (Ffontset_info): Adjust for the change of fontset_font.
18607
18608 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18609
18610 * character.h (LEADING_CODE_LATIN_1_MIN)
18611 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18612
186132008-02-01 Kenichi Handa <handa@m17n.org>
18614
18615 * editfns.c (check_translation): New function.
18616 (Ftranslate_region_internal): Handle M:N mapping.
18617
186182008-02-01 Kenichi Handa <handa@m17n.org>
18619
18620 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18621
186222008-02-01 Kenichi Handa <handa@m17n.org>
18623
18624 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18625 goto invalid_code.
18626 (decode_coding_iso_2022): Fix handling of invalid designation.
18627
18628 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18629 after calling code_conversion_save.
18630
186312008-02-01 Kenichi Handa <handa@m17n.org>
18632
18633 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18634
18635 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18636
18637 * fontset.c: Include "intervals.h".
18638 (fontset_face): Fix comparing of Lisp_Objects.
18639 (free_face_fontset, new_fontset_from_font_name): Fix
18640 Lisp_Object/int mixup.
18641
18642 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18643
18644 * coding.c: Add many prototypes for static functions.
18645 (get_translation_table): Allow max_lookup to be NULL.
18646 (decode_coding, Ffind_coding_systems_region_internal)
18647 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18648 get_translation_table with max_lookup NULL.
18649
186502008-02-01 Kenichi Handa <handa@m17n.org>
18651
18652 * coding.c (get_translation_table): Declare it as Lisp_Object.
18653 (LOOKUP_TRANSLATION_TABLE): New macro.
18654 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18655 instead of CHAR_TABLE_REF.
18656
186572008-02-01 Kenichi Handa <handa@m17n.org>
18658
18659 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18660 annotation data format.
18661 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18662 Change arguments FROM and TO to single argument NCHARS. Change caller.
18663 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18664 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18665 (decode_coding_ccl, decode_coding_charset): Pay attention to
18666 coding->charbuf_used.
18667 (get_translation): New function.
18668 (produce_chars): New arguments translation_table and last_block.
18669 Translate characters here. Return number of carryover chars.
18670 Change caller.
18671 (produce_composition): New argument pos. Change caller.
18672 Adjust for the change of annotation data format.
18673 (produce_charset, produce_annotation): Likewise.
18674 (decode_coding, encode_coding): Don't call translate_chars.
18675 (consume_chars): New arg translation_table. Change caller.
18676 (translate_chars): Delete.
18677 (syms_of_coding): Make translation-table's number of extra slots 2.
18678
186792008-02-01 Kenichi Handa <handa@m17n.org>
18680
18681 * search.c (simple_search): Fix setting this_pos_byte in backward
18682 search.
18683
18684 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18685 byte sequence.
18686 (detect_coding_ccl): Fix setting of the variable valids.
18687
186882008-02-01 Kenichi Handa <handa@m17n.org>
18689
18690 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18691
18692 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18693
18694 * editfns.c (Ftranslate_region_internal): Rename from
18695 Ftranslate_region. Accept a char-table in TABLE.
18696 (syms_of_editfns): Defsubr Stranslate_region_internal.
18697
18698 * xfaces.c (set_lface_from_font_name): If a font is specified for
18699 a frame, generate a fontset from the font.
18700 (build_scalable_font_name): If the scalable font is requested for
18701 a specific size, don't change that size.
18702 (try_font_list): Try a scalable font also in the case that a
18703 pattern string is specified.
18704
187052008-02-01 Kenichi Handa <handa@m17n.org>
18706
18707 * xfaces.c (Fface_font): New optional arg CHARACTER.
18708
187092008-02-01 Kenichi Handa <handa@m17n.org>
18710
18711 * charset.h (CHARSET_OFFSET): New macro.
18712
187132008-02-01 Kenichi Handa <handa@m17n.org>
18714
18715 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18716
18717 * fontset.c (fontset_face): Handle the case that repertory is a
18718 char-table.
18719 (find_font_encoding): Return nil for unknown encoding.
18720 (Fset_fontset_font): Ignore a font of unknown encoding.
18721
187222008-02-01 Kenichi Handa <handa@m17n.org>
18723
18724 * keymap.c (describe_vector): Handle default value of a char table.
18725
18726 * fontset.c (fontset_face): Handle fallback fonts correctly.
18727 (Ffontset_info): Return infomation about fallback fonts.
18728
187292008-02-01 Kenichi Handa <handa@m17n.org>
18730
18731 * fontset.c (FONTSET_DEFAULT): New macro.
18732 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18733 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18734 the case that it is nil.
18735 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18736 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18737
18738 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18739 subset or superset.
18740
187412008-02-01 Kenichi Handa <handa@m17n.org>
18742
18743 * emacs.c (main): Call init_charset after syms_of_XXX.
18744
18745 * charset.c (Vcharset_map_directory): Delete.
18746 (Vcharset_map_path): New variable.
18747 (load_charset_map_from_file): Use Vcharset_map_path instead.
18748 (init_charset): Initialize Vcharset_map_path.
18749 (syms_of_charset): Delete declaration of "charset-map-directory",
18750 add declaration of "charset-map-path".
18751
187522008-02-01 Kenichi Handa <handa@m17n.org>
18753
18754 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18755 ASCII only string.
18756
18757 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18758
18759 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18760 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18761
187622008-02-01 Kenichi Handa <handa@m17n.org>
18763
18764 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18765
18766 * coding.c (QCmnemonic, QCdefalut_char)
18767 (QCdecode_translation_table, QCencode_translation_table)
18768 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18769 (get_translation_table): Return a list of translation tables if
18770 necessary.
18771 (decode_coding): Call get_translation_table with ENCODEP 0.
18772 (char_encodable_p): If translation_table is non-nil, always call
18773 translate_char.
18774 (Fdefine_coding_system_internal): Accept list of translation
18775 tables as :encode-translation-table and :decode-translation-table.
18776 (Fcoding_system_put): New function.
18777 (syms_of_coding): Declare new symbols. Defsubr
18778 Scoding_system_put.
18779 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18780 typically JISX0212.
18781
18782 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18783 when the charset is superset type.
18784
18785 * character.c (translate_char): Accept list of translation tables.
18786
187872008-02-01 Kenichi Handa <handa@m17n.org>
18788
18789 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18790 (CODING_ATTR_TRANS_TBL): New macro.
18791
18792 * coding.c (get_translation_table): New function.
18793 (translate_chars): Fix the bug of skipping annotation data.
18794 (decode_coding, encode_coding): Utilize get_translation_table.
18795 (char_encodable_p, Funencodable_char_position): Translate char if
18796 necessary.
18797 (Ffind_coding_systems_region_internal)
18798 (Fcheck_coding_systems_region): Setup translation table for encode
18799 in a coding system attribute vector in advance.
18800 (Fdefine_coding_system_internal): Allow a symbol as translation
18801 table. For shift-jis type coding system, allow 4th charset.
18802
188032008-02-01 Kenichi Handa <handa@m17n.org>
18804
18805 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18806
18807 * xdisp.c (get_next_display_element): Pass -1 as POS to
18808 FACE_FOR_CHAR if displaying a C-string.
18809
188102008-02-01 Kenichi Handa <handa@m17n.org>
18811
18812 * composite.c (get_composition_id): Handle xoff and yoff in a
18813 composition rule.
18814
18815 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18816 (struct composition): New member lbearing and rbearing.
18817
18818 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18819 (x_get_glyph_overhangs): Handle a composition glyph.
18820 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18821
18822 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18823 composition glyph.
18824
188252008-02-01 Kenichi Handa <handa@m17n.org>
18826
18827 * print.c: Include charset.h.
18828 (Vprint_charset_text_property): New variable.
18829 (Qdefault): Extern it.
18830 (PRINT_STRING_NON_CHARSET_FOUND)
18831 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18832 (print_check_string_result): New variable.
18833 (print_check_string_charset_prop): New function.
18834 (print_prune_charset_plist): New variable.
18835 (print_prune_string_charset): New function.
18836 (print_object): Call print_prune_string_charset if
18837 Vprint_charset_text_property is not t.
18838 (print_interval): Print nothing if interval->plist is nil.
18839 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18840 variable. Init and staticpro print_prune_charset_plist.
18841
188422008-02-01 Kenichi Handa <handa@m17n.org>
18843
18844 * fontset.c (new_fontset_from_font_name): Use the specified font
18845 for all characters in the new fontset.
18846
18847 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18848 OBJECT args.
18849
18850 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18851 OBJECT args for composition too.
18852
18853 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18854 OBJECT args.
18855
188562008-02-01 Kenichi Handa <handa@m17n.org>
18857
18858 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18859
18860 * fontset.c (reorder_font_vector): Adjust for the change of
18861 FONT_DEF format.
18862 (fontset_face): New arg id. Change caller.
18863 (face_for_char): New args pos and object.
18864 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18865 (fs_query_fontset): Check NAME by Fassoc too.
18866 (Fset_fontset_font): Allow non-XLFD font name.
18867 (Ffontset_info): Adjust for the change of FONT_DEF format.
18868
18869 * fontset.h (face_for_char): Adjust prototype.
18870
18871 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18872 (append_space, extend_face_to_end_of_line)
18873 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18874 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18875
18876 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18877 POS and OBJECT args.
18878
18879 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18880 POS and OBJECT args.
18881
188822008-02-01 Jason Rumney <jasonr@gnu.org>
18883
18884 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18885 of GlobalAlloc'ed memory.
18886
188872008-02-01 Kenichi Handa <handa@m17n.org>
18888
18889 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18890
18891 * charset.h (charset_table_used): Delete extern.
18892
18893 * charset.c (charset_table_used): Make it static.
18894 (map_charset_chars): Fix args to c_function with.
18895
18896 * chartab.c (map_sub_char_table_for_charset): Fix args to
18897 c_function with.
18898
18899 * coding.h (enum coding_result_code): Delete
18900 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18901
18902 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18903 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18904 (Vlast_code_conversion_error): New variables.
18905 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18906 (ONE_MORE_BYTE): Record error if any instead of signaling an
18907 error. If non-ASCII multibyte char is found, return the negative
18908 value of the code. All callers changed to check it.
18909 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18910 (record_conversion_result): New function. Change all codes setting
18911 coding->result to call this function.
18912 (detect_coding_utf_8, decode_coding_utf_8)
18913 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18914 Don't use the local variable incomplete.
18915 (emacs_mule_char): Change the second arg to `const'.
18916 (decode_coding): Fix of flushing out unprocessed data.
18917 (make_conversion_work_buffer): Fix making of a work buffer.
18918 (decode_coding_object): Return coding->dst_object.
18919
18920 * fontset.c (set_fontset_font): Fix args.
18921
18922 * lisp.h (CHARACTERBITS): Define as 22.
18923
18924 * process.c (send_process): Be sure to set coding->src_multibyte.
18925
18926 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18927
189282008-02-01 Kenichi Handa <handa@m17n.org>
18929
18930 * xdisp.c (handle_auto_composed_prop): Give limit to
18931 Fnext_single_char_property_change.
18932
189332008-02-01 Kenichi Handa <handa@m17n.org>
18934
18935 * composite.c (syms_of_composite): Don't make the composition hash
18936 table weak.
18937
18938 * fontset.c (Fset_fontset_font): Fix docstring.
18939
18940 * lisp.h (detect_coding_system): Adjust prototype.
18941
18942 * fileio.c (kill_workbuf_unwind): Delete this function.
18943 (Finsert_file_contents): Adjust the call of detect_coding_system.
18944 Get conversion_buffer by code_conversion_save. Use the macro
18945 CODING_MAY_REQUIRE_DECODING. After decoding, update
18946 coding_system.
18947
18948 * coding.h (make_conversion_work_buffer): Delete extern.
18949 (code_conversion_save): Extern it.
18950
18951 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18952 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18953 (decode_coding_utf_8): Don't do eol converion.
18954 (detect_coding_utf_16): Check coding->src_chars, not
18955 coding->src_bytes. Add heuristics for those that have no signature.
18956 (decode_coding_emacs_mule, decode_coding_iso_2022)
18957 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18958 Don't do eol converion.
18959 (adjust_coding_eol_type): Return a new coding system.
18960 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18961 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18962 each change.
18963 (decode_coding): Pay attention to undo_list. Do eol conversion for
18964 all types of coding-systems (if necessary).
18965 (Vcode_conversion_work_buf_list): Delete it.
18966 (Vcode_conversion_reused_workbuf): Rename from
18967 Vcode_conversion_reused_work_buf.
18968 (Vcode_conversion_workbuf_name): New variable.
18969 (reused_workbuf_in_use): New variable.
18970 (make_conversion_work_buffer): Delete the arg DEPTH.
18971 (code_conversion_restore): Change argument to cons.
18972 (code_conversion_save): Delete the argument BUFFER. Change callers.
18973 (detect_coding_system): New argument src_chars. Change callers.
18974 Fix for utf-16 detection.
18975 (init_coding_once): Don't use ISO_carriage_return.
18976 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18977 reused_workbuf_in_use.
18978
189792008-02-01 Kenichi Handa <handa@m17n.org>
18980
18981 * keymap.c (store_in_keymap): Pay attention to the case that idx
18982 is a cons specifying a character range.
18983
189842008-02-01 Kenichi Handa <handa@m17n.org>
18985
18986 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18987 HANDLED_RECOMPUTE_PROPS.
18988
18989 * coding.c (Fdefine_coding_system_internal): Fix checking of
18990 ascii compatibility.
18991
189922008-02-01 Kenichi Handa <handa@m17n.org>
18993
18994 * charset.c (find_charsets_in_text): Delete unused locale variable.
18995 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18996
18997 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18998 Resync charset_list to Vemacs_mule_charset_list.
18999
19000 * keymap.c (store_in_keymap): Pay attention to the case that idx
19001 is a cons specifying a character range.
19002
190032008-02-01 Kenichi Handa <handa@m17n.org>
19004
19005 * composite.c (update_compositions): Bind inhibit-read-only, etc
19006 to t before calling remove-list-of-text-properties.
19007
19008 * print.c (print_object): Always print ASCII chars as is.
19009
190102008-02-01 Kenichi Handa <handa@m17n.org>
19011
19012 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19013
19014 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19015 is a char table.
19016
190172008-02-01 Kenichi Handa <handa@m17n.org>
19018
19019 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19020
190212008-02-01 Kenichi Handa <handa@m17n.org>
19022
19023 * xfaces.c (set_lface_from_font_name): Fix for the case that
19024 FONTNAME is not fontset name.
19025
190262008-02-01 Kenichi Handa <handa@m17n.org>
19027
19028 * fns.c (base64_encode_1): Fix previous change.
19029
190302008-02-01 Kenichi Handa <handa@m17n.org>
19031
19032 * fontset.c (set_fontset_font): New function.
19033 (Fset_fontset_font): If a font is specified for a charset, use
19034 map_charset_chars to store the font spec in a fontset.
19035
190362008-02-01 Kenichi Handa <handa@m17n.org>
19037
19038 * fontset.c (fontset_face): Create a fallback fontset on demand.
19039 (make_fontset): Don't create a fallback fontset here.
19040 (free_face_fontset): Free a fallback fontset (if any) too.
19041 (n_auto_fontsets): Delete this variable.
19042 (auto_fontset_alist): New variable.
19043 (new_fontset_from_font_name): Check auto_fontset_alist.
19044 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19045 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19046 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19047 Defsubr Sfontset_list_all.
19048
190492008-02-01 Kenichi Handa <handa@m17n.org>
19050
19051 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19052
190532008-02-01 Kenichi Handa <handa@m17n.org>
19054
19055 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19056
190572008-02-01 Kenichi Handa <handa@m17n.org>
19058
19059 * editfns.c (Fgoto_char): Fix docstring.
19060
190612008-02-01 Kenichi Handa <handa@m17n.org>
19062
19063 * insdel.c (insert_from_gap): Adjust intervals correctly.
19064
190652008-02-01 Jason Rumney <jasonr@gnu.org>
19066
19067 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19068 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19069 (w32_initialize): Try to load it.
19070 (x_get_font_repertory): Use it if available.
19071 (w32_encode_char): Add shortcut for unicode output.
19072
19073 * w32fns.c (w32_load_system_font): Default charset to -1.
19074 (x_to_w32_charset): Match all fonts for unicode.
19075 (w32_to_x_charset): New parameter matching. Don't return partial
19076 or wildcard charsets.
19077 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19078 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19079 (w32_to_x_font): Match charset to real charset.
19080 (enum_font_cb2): Always list unicode versions.
19081
19082 * makefile.w32-in (temacs): Increase EMHEAP.
19083
190842008-02-01 Jason Rumney <jasonr@gnu.org>
19085
19086 * w32term.c (w32_encode_char): New charset parameter.
19087 font_info.encoding becomes encoding_type.
19088 (x_get_font_repertory): New function. Warning: stub only!
19089 (x_new_font): Return quickly if font already set.
19090 (x_new_fontset): fontsetname parameter is Lisp_Object.
19091 Use new fs_query_fontset. Try new_fontset_from_font_name.
19092 Use fontset_name for return value.
19093
19094 * w32term.h: Declare x_get_font_repertory.
19095
19096 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19097 place of find_charset_in_text. Use encode_coding_object in place
19098 of encode_coding.
19099 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19100 decode_coding.
19101
19102 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19103 of x_new_fontset.
19104 (w32_load_system_font): Initialize charset as unicode.
19105 font_info.encoding becomes encoding_type.
19106 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19107 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19108 (syms_of_w32fns): Set get_font_repertory_func.
19109
19110 * w32console.c: Include character.h. Use terminal_encode_buffer
19111 from term.c.
19112 (write_glyphs): Use new version of encode_terminal_code. Use
19113 encode_coding_object in place of encode_coding.
19114
19115 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19116 encoding becomes encoding_type.
19117
19118 * term.c (terminal_encode_buffer): Make externally visible.
19119
19120 * makefile.w32-in: Add character.h dependancies.
19121 (character.o, chartab.o): New targets.
19122
191232008-02-01 Kenichi Handa <handa@m17n.org>
19124
19125 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19126 CODING_ID_EOL_TYPE.
19127
191282008-02-01 Andreas Schwab <schwab@suse.de>
19129
19130 * coding.c (produce_chars): Revert last change.
19131
191322008-02-01 Kenichi Handa <handa@m17n.org>
19133
19134 * charset.h (charset_unicode): Extern it.
19135
19136 * charset.c (string_xstring_p): Check by (C >= 0x100).
19137 (find_charsets_in_text): Change format of the arc CHARSETS. New
19138 arg MULTIBYTE.
19139 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19140 change of find_charsets_in_text.
19141 (Fsplit_char): Fix doc. Never return unknown.
19142
19143 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19144
19145 * coding.c (Fdefine_coding_system_alias): Update
19146 Vcoding_system_list.
19147
19148 * fontset.c (load_font_get_repertory): Pay attention to the case
19149 that ENCODING of a font is specified by a char-table.
19150
19151 * xterm.c (x_get_font_repertory): Handle the case that the
19152 encoding of font is other than Unicode.
19153
191542008-02-01 Kenichi Handa <handa@m17n.org>
19155
19156 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19157 if a character is encodable by the terminal coding system. If
19158 not, produces proper number of `?'s. Update
19159 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19160 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19161
191622008-02-01 Kenichi Handa <handa@m17n.org>
19163
19164 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19165 variables.
19166 (encode_terminal_code): Change argument. Encode multiple
19167 characters at once. Store the result of encoding in
19168 terminal_encode_buffer.
19169 (write_glyphs, insert_glyphs): Adjust for the change of
19170 encode_terminal_code.
19171 (term_init): Initialize terminal_encode_buffer and
19172 terminal_encode_buf_size.
19173
19174 * coding.c (consume_chars): If coding->src_object is nil, don't
19175 check annotation.
19176
191772008-02-01 Kenichi Handa <handa@m17n.org>
19178
19179 * character.c (char_string): Use ASCII_CHAR_P instead of
19180 SINGLE_BYTE_CHAR_P.
19181
191822008-02-01 Kenichi Handa <handa@m17n.org>
19183
19184 * xdisp.c (handle_auto_composed_prop): Check if the last
19185 characters of auto-composed region is newly composed with the
19186 following characters.
19187 (handle_composition_prop): Fix checking of point being inside
19188 composition.
19189
191902008-02-01 Kenichi Handa <handa@m17n.org>
19191
19192 * fns.c (concat): Don't change multibyteness of the result by
19193 concatenating an 8-bit character.
19194
19195 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19196 multibyteness of the result when newelt is an 8-bit character.
19197
191982008-02-01 Dave Love <fx@gnu.org>
19199
19200 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19201 EMACS_INT.
19202
19203 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19204
19205 * xfaces.c (face_numeric_value): Declare dim size_t.
19206 (Finternal_lisp_face_equal_p): Remove unused f.
19207
19208 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19209 (MATRIX_ROW): Remove unused vars.
19210 (draw_glyphs, x_insert_glyphs, fast_find_position)
19211 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19212 byte/char counts.
19213
19214 * regex.c (regex_compile): Remove unused var.
19215
19216 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19217
19218 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19219 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19220
19221 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19222
19223 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19224
19225 * fileio.c (Fwrite_region): Remove unused var.
19226
19227 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19228 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19229
19230 * composite.c (Fremove_list_of_text_properties): Declare.
19231
19232 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19233 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19234 (coding_inherit_eol_type): Remove unused attrs.
19235 (detect_coding): Cast arg of detect_eol.
19236
19237 * charset.c (syms_of_charset): Remove unused var p.
19238 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19239 byte/char counts.
19240
19241 * casetab.c (set_case_table): Remove unused var.
19242
19243 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19244 unused vars.
19245
192462008-02-01 Dave Love <fx@gnu.org>
19247
19248 * xterm.c (x_bitmap_mask): Declare.
19249
192502008-02-01 Dave Love <fx@gnu.org>
19251
19252 * xterm.c (x_term_init): Fix type error.
19253
19254 * lisp.h: Add Funibyte_char_to_multibyte.
19255
19256 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19257 (Fset_coding_system_priority): Doc fix.
19258
19259 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19260
19261 * indent.c (check_composition): Make start and end EMACS_INT.
19262
19263 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19264
19265 * xdisp.c (handle_composition_prop, check_point_in_composition):
19266 Make buffer positions EMACS_INT.
19267
19268 * composite.c (find_composition, run_composition_function)
19269 (update_compositions, Ffind_composition_internal): Make buffer
19270 positions EMACS_INT.
19271
19272 * composite.h (find_composition, update_compositions): Make
19273 position args EMACS_INT.
19274
19275 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19276
19277 * intervals.c (get_property_and_range):
19278 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19279
19280 * unexalpha.c: Don't include varargs.h.
19281
192822008-02-01 Dave Love <fx@gnu.org>
19283
19284 * coding.h (ENCODE_UTF_8): New.
19285
19286 * Makefile.in (gtkutil.o): Depend on coding.h.
19287
19288 * coding.c (Fset_coding_system_priority): Doc fix.
19289
192902008-02-01 Kenichi Handa <handa@m17n.org>
19291
19292 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19293 the case of auto saving.
19294
192952008-02-01 Andreas Schwab <schwab@suse.de>
19296
19297 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19298 `range' from GC.
19299
193002008-02-01 Kenichi Handa <handa@m17n.org>
19301
19302 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19303
193042008-02-01 Kenichi Handa <handa@m17n.org>
19305
19306 * fileio.c (choose_write_coding_system): Return a decided coding system.
19307 (Fwrite_region): Set Vlast_coding_system_used to the return value
19308 of choose_write_coding_system.
19309
193102008-02-01 Kenichi Handa <handa@m17n.org>
19311
19312 * charset.c (Fset_charset_priority): Pay attention to duplicated
19313 arguments.
19314
19315 * coding.c (QCcategory): New variable.
19316 (syms_of_coding): Defsym it. Set all elements of
19317 Vcoding_category_table and their symbol values.
19318 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19319 coding-category-XXX, and coding-category-list.
19320 (Fdefine_coding_system_internal): Add category in the plist.
19321
193222008-02-01 Kenichi Handa <handa@m17n.org>
19323
19324 * callproc.c (Fcall_process): Handle carryover correctly.
19325
19326 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19327 (raw_text_coding_system): Check NILP (coding_system).
19328 (coding_inherit_eol_type): Check NILP (coding_system) and
19329 NILP (parent).
19330 (consume_chars): Fix for the case of raw-text.
19331
19332 * process.c (read_process_output): Handle carryover correctly.
19333
193342008-02-01 Dave Love <fx@gnu.org>
19335
19336 * regex.c (re_search_2): Fix last change.
19337
193382008-02-01 Kenichi Handa <handa@m17n.org>
19339
19340 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19341 target_multibyte. Even in a unibyte case, return a converted
19342 multibyte char.
19343 (GET_CHAR_AFTER): New macro.
19344 (PATFETCH): Translate via multibyte char.
19345 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19346 (SETUP_MULTIBYTE_RANGE): New macro.
19347 (regex_compile): Setup compiled code so that its multibyteness
19348 matches that of a target. Fix the handling of "[X-YZ]" using
19349 SETUP_MULTIBYTE_RANGE.
19350 (analyse_first) <charset>: For filling fastmap for all multibyte
19351 characters, don't check by BASE_LEADING_CODE_P.
19352 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19353 the same as RE_MULTIBYTE_P (bufp) now.
19354 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19355 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19356 (TRANSLATE_VIA_MULTIBYTE): New macro.
19357 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19358 It is the same as RE_MULTIBYTE_P (bufp) now.
19359 <exactn>: Translate via multibyte.
19360 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19361 translate it.
19362 <charset, charset_not>: Fetch a character by
19363 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19364 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19365 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19366 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19367 by GET_CHAR_AFTER.
19368 (bcmp_translate): Likewise.
19369
19370 * search.c (compile_pattern): Check the member target_multibyte,
19371 not the member multibyte of buf.
19372
19373 * lread.c (read1): While reading a string, set force_singlebyte
19374 and force_multibyte correctly.
19375
19376 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19377 up of unibyte_to_multibyte_table.
19378
193792008-02-01 Kenichi Handa <handa@m17n.org>
19380
19381 * coding.c (setup_coding_system): If coding has
19382 post-read-conversion or pre-write-conversion, set
19383 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19384 respectively.
19385 (decode_coding_gap): Run post-read-conversion if any.
19386
19387 * fileio.c (Finsert_file_contents): Even if we read into a
19388 unibyte buffer, check if we must decode the result or not.
19389
193902008-02-01 Kenichi Handa <handa@m17n.org>
19391
19392 * coding.c (make_conversion_work_buffer): Change the work buffer
19393 name to the same one as that of Emacs 21.
19394
193952008-02-01 Kenichi Handa <handa@m17n.org>
19396
19397 * coding.h (make_conversion_work_buffer): Adjust prototype.
19398 (code_conversion_restore): Don't extern it.
19399
19400 * coding.c (detected_mask): Delete unused variable.
19401 (decode_coding_iso_2022): Pay attention to the byte sequence of
19402 CTEXT extended segment, and retain those bytes as is.
19403 (decode_coding_ccl): Delete unused variable `valids'.
19404 (setup_coding_system): Delete unused variable `category'.
19405 (consume_chars): Delete unused variable `category'. Make it work
19406 for non-multibyte case.
19407 (make_conversion_work_buffer): Change argument.
19408 (saved_coding): Delete unused variable.
19409 (code_conversion_restore): Don't check saved_coding->destination.
19410 (code_conversion_save): New function.
19411 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19412 instead of record_unwind_protect.
19413 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19414 (detect_coding_system): Delete unused variable `mask'.
19415 (Fdefine_coding_system_internal): Delete unused variable id.
19416
19417 * fileio.c (kill_workbuf_unwind): New function.
19418 (Finsert_file_contents): On replacing, call
19419 make_conversion_work_buffer with correct args, and call
19420 record_unwind_protect with the first arg kill_workbuf_unwind.
19421
19422 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19423
194242008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19427 (fontset_add): Fix for the case that TO is less than TO1.
19428 (Ffontset_info): Don't use fallback fontset on checking the
19429 default fontset.
19430 (dump_fontset): New function for debugging.
19431
19432 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19433 coding_type is Qcharset.
19434
194352008-02-01 Kenichi Handa <handa@m17n.org>
19436
19437 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19438 (map_char_table): Don't inherit the value from the parent on
19439 initializing VAL. Adjust for the above change.
19440
194412008-02-01 Kenichi Handa <handa@m17n.org>
19442
19443 * coding.c (Qsignature, Qendian): Delete these variables.
19444 (syms_of_coding): Don't initialize them.
19445 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19446 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19447 detect_info->found.
19448 (decode_coding_utf_16): Don't detect BOM here.
19449 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19450 is NOT utf_16_without_bom.
19451 (setup_coding_system): For a coding system of type utf-16, check
19452 if the attribute :endian is Qbig or not (not nil or not), and set
19453 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19454 (detect_coding): If coding type is utf-16 and BOM detection is
19455 required, detect it.
19456 (Fdefine_coding_system_internal): For a coding system of type
19457 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19458
194592008-02-01 Kenichi Handa <handa@m17n.org>
19460
19461 * coding.c (coding_set_source): Fix for the case that the current
19462 buffer is different from coding->src_object.
19463 (decode_coding_object): Don't use the conversion work buffer if
19464 DST_OBJECT is a buffer.
19465
194662008-02-01 Dave Love <fx@gnu.org>
19467
19468 * lread.c (read_emacs_mule_char) [len==2]: Index
19469 emacs_mule_charset correctly.
19470
194712008-02-01 Dave Love <fx@gnu.org>
19472
19473 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19474 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19475 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19476 treated specially.)
19477 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19478 (detected_mask): Remove Big5 bits.
19479
194802008-02-01 Kenichi Handa <handa@m17n.org>
19481
19482 The following changes are to make the font rescaling facility
19483 compatible with Emacs 21.
19484
19485 * xfaces.c (Vface_font_rescale_alist): Rename from
19486 Vface_resizing_fonts.
19487 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19488 (font_rescale_ratio): Rename from font_resizing_ratio.
19489 (split_font_name): Set font->rescale_ratio.
19490 (better_font_p): Pay attention to font->rescale_ratio.
19491 (build_scalable_font_name): Likewise. Change RESX, and RESY
19492 fields.
19493 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19494
194952008-02-01 Kenichi Handa <handa@m17n.org>
19496
19497 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19498 (Qutf_16_le): Remove these variables.
19499 (syms_of_coding): Don't DEFSYM them.
19500 (decode_coding_utf_16): Fix handling of BOM.
19501 (encode_coding_utf_16): Fix handling of BOM.
19502
195032008-02-01 Kenichi Handa <handa@m17n.org>
19504
19505 * fileio.c (Finsert_file_contents): On replacing, before decoding
19506 the file into the work buffer, set point of the work buffer to the end.
19507
195082008-02-01 Dave Love <fx@gnu.org>
19509
19510 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19511
195122008-02-01 Dave Love <fx@gnu.org>
19513
19514 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19515 and fix C types.
19516
195172008-02-01 Kenichi Handa <handa@m17n.org>
19518
19519 * xdisp.c (SKIP_GLYPHS): New macro.
19520 (set_cursor_from_row): Pay attention to string display properties.
19521
19522 * category.c (copy_category_entry): Fix for the case that RANGE
19523 is an integer.
19524
19525 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19526
19527 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19528
195292008-02-01 Kenichi Handa <handa@m17n.org>
19530
19531 * charset.c (Fcharset_id_internal): New function.
19532 (syms_of_charset): Defsubr it.
19533
19534 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19535 with the last arg charset_list acquired from coding.
19536 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19537 the attribute coding_attr_ccl_valids.
19538
19539 * coding.h (enum define_coding_ccl_arg_index): Set the first
19540 member coding_arg_ccl_decoder to coding_arg_max.
19541
19542 * ccl.h (ccl_driver): Adjust prototype.
19543
19544 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19545 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19546 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19547 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19548 last arg Qnil.
19549
195502008-02-01 Kenichi Handa <handa@m17n.org>
19551
19552 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19553 call encode_char.
19554
19555 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19556
195572008-02-01 Dave Love <fx@gnu.org>
19558
19559 * composite.c (syms_of_composite): Make composition_hash_table weak.
19560
195612008-02-01 Kenichi Handa <handa@m17n.org>
19562
19563 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19564 (font_name_registry): Don't extern them.
19565 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19566
19567 * fontset.h (Qfontset): Don't extern it.
19568 (new_fontset_from_font_name): Extern it.
19569
19570 * fontset.c: Give 8 extra slots to fontset objects.
19571 (Qfontset_info): New variable.
19572 (syms_of_fontset): Defsym it.
19573 (FONTSET_FALLBACK): New macro.
19574 (fontset_face): Try also the default fontset.
19575 (make_fontset): Realize a fallback fontset from the default fontset.
19576 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19577 using split_font_name_into_vector and build_font_name_from_vector.
19578 (Fset_fontset_font): Access the elements of font_spec by enum
19579 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19580 name by using split_font_name_into_vector.
19581 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19582 generate a proper font name from the fontset name. Update
19583 Vfontset_alias_alist.
19584 (n_auto_fontsets): New variable.
19585 (new_fontset_from_font_name): New function.
19586 (Ffont_info): Store the information about fonts generated from the
19587 default fontset in the first extra slot of the returned char-table.
19588
19589 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19590 (font_name_registry): Delete function.
19591 (split_font_name_into_vector): New function.
19592 (build_font_name_from_vector): New function.
19593 (font_list): The argument REGISTRY is now a list of registry names.
19594 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19595 specifies an explicit font name, return the name as is. Make a
19596 list of registy names.
19597
19598 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19599 of x_new_fontset.
19600 (Fx_create_frame): Don't call x_new_fontset here. Just use
19601 x_list_fonts to check the existence of fonts.
19602
19603 * xterm.h (x_new_fontset): Adjust prototype.
19604
19605 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19606 string. Use new_fontset_from_font_name to create a fontset from a
19607 font name.
19608
196092008-02-01 Kenichi Handa <handa@m17n.org>
19610
19611 * syntax.c (Vfind_word_boundary_function_table): New name for
19612 Vnext_word_boundary_function_table.
19613 (find-word-boundary-function-table): New name for
19614 next-word-boundary-function-table.
19615
196162008-02-01 Dave Love <fx@gnu.org>
19617
19618 * Makefile.in: Fix some dependencies.
19619
19620 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19621 set it to nil before returning.
19622
19623 * composite.c (update_compositions): Fix type error.
19624
19625 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19626
196272008-02-01 Kenichi Handa <handa@m17n.org>
19628
19629 * xterm.c (x_new_font): Optimize for the case that the font is
19630 already set for the frame.
19631
196322008-02-01 Kenichi Handa <handa@m17n.org>
19633
19634 * chartab.c (char_table_ascii): Check if the char table contents
19635 is sub-char-table or not.
19636 (char_table_set, char_table_set_range): Fix argument to
19637 char_table_ascii.
19638
19639 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19640 (detect_coding_utf_8, detect_coding_utf_16)
19641 (detect_coding_emacs_mule, detect_coding_iso_2022)
19642 (detect_coding_sjis, detect_coding_big5)
19643 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19644 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19645 sequence is valid in this coding system. Change callers.
19646 (MAX_ANNOTATION_LENGTH): New macro.
19647 (ADD_ANNOTATION_DATA): New macro.
19648 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19649 ADD_ANNOTATION_DATA. Change the format of annotation data.
19650 (ADD_CHARSET_DATA): New macro.
19651 (emacs_mule_char): New argument ID. Change callers.
19652 (decode_coding_emacs_mule, decode_coding_iso_2022)
19653 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19654 Produce charset annotation data in coding->charbuf.
19655 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19656 to charset annotation data in coding->charbuf.
19657 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19658 coding->common_flags if the coding system is iso-2022 based and
19659 uses designation.
19660 (produce_composition): Adjust for the new annotation data format.
19661 (produce_charset): New function.
19662 (produce_annotation): Handle charset annotation.
19663 (handle_composition_annotation, handle_charset_annotation): New
19664 functions.
19665 (consume_chars): Handle charset annotation. Utilize the above two
19666 functions.
19667 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19668 buffer, get the deleted text as a string and set
19669 coding->src_object to that string.
19670 (detect_coding, detect_coding_system): Use the new struct
19671 coding_detection_info.
19672
19673 * coding.h (struct coding_detection_info): New structure.
19674 (struct coding_system): Adjust prototype of the member `detector'.
19675 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19676
196772008-02-01 Kenichi Handa <handa@m17n.org>
19678
19679 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19680
196812008-02-01 Dave Love <fx@gnu.org>
19682
19683 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19684 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19685 to new local and nullify apropos_accumulate before returning.
19686 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19687
196882008-02-01 Kenichi Handa <handa@m17n.org>
19689
19690 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19691 correctly.
e3eea1fc 19692
aac0c6e3
MR
196932008-02-01 Dave Love <fx@gnu.org>
19694
19695 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19696
196972008-02-01 Kenichi Handa <handa@m17n.org>
19698
19699 The following changes are to make character composition happen
19700 automatically on displaying.
19701
19702 * Makefile.in (lisp, shortlisp): Add composite.elc.
19703
19704 * composite.h (Qauto_composed, Vauto_composition_function)
19705 (Qauto_composition_function): Extern them.
19706
19707 * composite.c (Vcomposition_function_table)
19708 (Qcomposition_function_table): Delete variables.
19709 (Qauto_composed, Vauto_composition_function)
19710 (Qauto_composition_function): New variables.
19711 (run_composition_function): Don't call
19712 compose-chars-after-function.
19713 (update_compositions): Clear `auto-composed' text property.
19714 (compose_chars_in_text): Delete this function.
19715 (syms_of_composite): Staticpro Qauto_composed and
19716 Qauto_composition_function. Declare Vauto_composition_function as
19717 a Lisp variable.
19718
19719 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19720
19721 * xdisp.c (it_props): Add an entry for Qauto_composed.
19722 (handle_auto_composed_prop): New function.
19723
19724 * xselect.c (selection_data_to_lisp_data): Don't call
19725 compose_chars_in_text.
19726
197272008-02-01 Dave Love <fx@gnu.org>
19728
19729 * keyboard.c (read_char): Modify checking around use of
19730 Vkeyboard_translate_table.
19731
19732 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19733 and fix C types.
19734
197352008-02-01 Kenichi Handa <handa@m17n.org>
19736
19737 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19738 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19739 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19740 the case that the last byte is '\r' correctly.
19741 (decode_coding): Flush out the unprocessed data correctly.
19742 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19743
197442008-02-01 Dave Love <fx@gnu.org>
19745
19746 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19747 Add XK_ISO... case.
19748 (xaw_scroll_callback): Revert last change.
19749
197502008-02-01 Kenichi Handa <handa@m17n.org>
19751
19752 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19753
197542008-02-01 Kenichi Handa <handa@m17n.org>
19755
19756 * xfaces.c (Vface_resizing_fonts): New variable.
19757 (struct font_name): New member `resizing_ratio'.
19758 (font_resizing_ratio): New function.
19759 (split_font_name): Set font->resizing_ratio.
19760 (better_font_p): Pay attention to font->resizing_ratio.
19761 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19762 RESX, and RESY fields.
19763 (try_alternative_families): Try scalable fonts if
19764 Vscalable_fonts_allowed is not Qt.
19765 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19766
197672008-02-01 Dave Love <fx@gnu.org>
19768
19769 * xterm.c (xaw_scroll_callback): Cast correctly.
19770
197712008-02-01 Dave Love <fx@gnu.org>
19772
19773 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19774 (lispy_kana_keys): Comment out.
19775 (make_lispy_event) [XK_kana_A]: Comment out.
19776
19777 * xterm.c (xaw_scroll_callback): Cast call_data.
19778 (XTread_socket): Deal with ASCII keysyms.
19779 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19780
197812008-02-01 Dave Love <fx@gnu.org>
19782
19783 * xterm.c (Vx_keysym_table): New.
19784 (syms_of_xterm): Initialize it.
19785 (XTread_socket): Use it.
19786 From head: Eliminate incorrect optimization that tried to avoid
19787 decoding the output of X*LookupString.
19788 (x_get_font_repertory): Delete charset declaration.
19789
197902008-02-01 Kenichi Handa <handa@m17n.org>
19791
19792 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19793 return 0.
19794 (Fdefine_coding_system_internal): Setup
19795 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19796
197972008-02-01 Dave Love <fx@gnu.org>
19798
19799 * coding.c (Fcheck_coding_system): Doc fix.
19800
19801 * editfns.c (Finsert_byte): Return a proper value.
19802
198032008-02-01 Kenichi Handa <handa@m17n.org>
19804
19805 * coding.c (decode_coding): Fix args to translate_chars. Pay
19806 attention to Vstandard_translation_table_for_decode.
19807 (encode_coding): Fix args to translate_chars. Pay attention to
19808 Vstandard_translation_table_for_encode.
19809
19810 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19811 SINGLE_BYTE_CHAR_P.
19812
19813 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19814 not by SINGLE_BYTE_CHAR_P.
19815
19816 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19817 SINGLE_BYTE_CHAR_P.
19818
19819 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19820 SINGLE_BYTE_CHAR_P.
19821
19822 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19823 by SINGLE_BYTE_CHAR_P.
19824
19825 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19826 SINGLE_BYTE_CHAR_P.
19827
198282008-02-01 Dave Love <fx@gnu.org>
19829
19830 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19831
198322008-02-01 Dave Love <fx@gnu.org>
19833
19834 * fns.c (Flanginfo): Fix typo.
19835
19836 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19837
198382008-02-01 Kenichi Handa <handa@m17n.org>
19839
19840 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19841 (detect_coding_emacs_mule, detect_coding_iso_2022)
19842 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19843 incomplete byte sequence. Don't update *mask when correctly detected.
19844 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19845 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19846 (detect_coding, detect_coding_system): Adjust for the changes above.
19847
198482008-02-01 Kenichi Handa <handa@m17n.org>
19849
19850 * character.c (char_string): Rename from
19851 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19852 (string_char): Rename from string_char.
19853
19854 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19855 if C is greater than MAX_3_BYTE_CHAR.
19856 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19857 string_char instead of string_char_with_unification.
19858
198592008-02-01 Dave Love <fx@gnu.org>
19860
19861 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19862
198632008-02-01 Kenichi Handa <handa@m17n.org>
19864
19865 * keymap.c (push_key_description): Pay attention to force_multibyte.
19866
19867 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19868
198692008-02-01 Dave Love <fx@gnu.org>
19870
19871 * charset.c (define_charset_internal): Rename `supprementary'.
19872
19873 * Makefile.in (lisp, shortlisp): Remove latin-N.
19874
198752008-02-01 Dave Love <fx@gnu.org>
19876
19877 * xfns.c (x_window, x_window): Use use_xim.
19878
19879 * xterm.c (use_xim): Initialize.
19880 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19881 (x_term_init): Maybe set use_xim.
19882
19883 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19884
198852008-02-01 Kenichi Handa <handa@m17n.org>
19886
19887 * search.c (search_buffer): Fix case-fold-search of multibyte
19888 characters.
19889 (boyer_moore): Rename the last argument to char_high_bits.
19890
198912008-02-01 Kenichi Handa <handa@m17n.org>
19892
19893 * xdisp.c (display_string): Fix for the case of zero width glyph.
19894
19895 * xfns.c (x_set_font): Change the error message of the case that
19896 x_new_fontset returns Qt.
19897
19898 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19899 (Finternal_set_lisp_face_attribute): Use signal_error for the
19900 error of invalid fontset.
19901
19902 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19903 fontset, return Qt.
19904
199052008-02-01 Dave Love <fx@gnu.org>
19906
19907 * unexelf.c (unexec): Make .got handling not SGI-specific.
19908
19909 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19910
19911 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19912
19913 * keyboard.c (read_key_sequence): Fix type error.
19914
19915 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19916 type error.
19917
19918 * fontset.c (fontset_add): Return Lisp_Object.
19919
199202008-02-01 Dave Love <fx@gnu.org>
19921
19922 * charset.h (charset_ordered_list_tick): Declare extern.
19923
199242008-02-01 Kenichi Handa <handa@m17n.org>
19925
19926 The following changes (and some of 2008-02-01 changes of mine) are
19927 for handling syntax, category, and case conversion for unibyte
19928 characters by converting them to multibyte on the fly. With these
19929 changes, we don't have to setup syntax and case tables for unibyte
19930 characters in each language environment.
19931
19932 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19933 multibyte if necessary.
19934
19935 * bytecode.c (Fbyte_code): Likewise.
19936
19937 * character.h (LEADING_CODE_LATIN_1_MIN)
19938 (LEADING_CODE_LATIN_1_MAX): New macros.
19939 (unibyte_to_multibyte_table): Extern it.
19940 (unibyte_char_to_multibyte): New macro.
19941 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19942 (CHAR_LEADING_CODE): New macro.
19943 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19944
19945 * character.c (unibyte_to_multibyte_table): New variable.
19946 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19947 (multibyte_char_to_unibyte): If C is an eight-bit character,
19948 convert it to the corresponding byte value.
19949
19950 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19951 not 1, signals an error. Update the elements of
19952 unibyte_to_multibyte_table.
19953 (init_charset_once): Initialize unibyte_to_multibyte_table.
19954 (syms_of_charset): Define the charset `iso-8859-1'.
19955
19956 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19957 as is without converting it to unibyte. In a unibyte buffer,
19958 convert C to multibyte before checking the syntax.
19959
19960 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19961
19962 * minibuf.c (Fminibuffer_complete_word): Use the macro
19963 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19964
19965 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19966
19967 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19968 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19969 that is zero, convert an eight-bit char to multibyte.
19970 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19971 non-emacs case.
19972 (PATFETCH): Convert an eight-bit char to multibyte.
19973 (HANDLE_UNIBYTE_RANGE): New macro.
19974 (regex_compile): Setup the compiled pattern for multibyte chars
19975 even if the given regex string is unibyte. Use PATFETCH_RAW
19976 instead of PATFETCH in many places. To handle `charset'
19977 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19978 only for ASCII chars.
19979 (analyse_first) <exactn>: Simplify because the compiled pattern
19980 is multibyte.
19981 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19982 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19983 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19984 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19985 multibyte always 1.
19986 (re_search_2): In emacs, set the locale variable multibyte to 1,
19987 otherwise to 0. New local variable target_multibyte. Check it
19988 to decide the multibyteness of STR1 and STR2. If
19989 target_multibyte is zero, convert unibyte chars to multibyte
19990 before translating and checking fastmap.
19991 (TARGET_CHAR_AND_LENGTH): New macro.
19992 (re_match_2_internal): In emacs, set the locale variable multibyte
19993 to 1, otherwise to 0. New local variable target_multibyte. Check
19994 it to decide the multibyteness of STR1 and STR2. Use
19995 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19996 <charset, charset_not>: If multibyte is nonzero, check fastmap
19997 only for ASCII chars. Call bcmp_translate with
19998 target_multibyte, not with multibyte.
19999 <begline>: Declare the local variable C as `unsigned'.
20000 (bcmp_translate): Change the last arg name to target_multibyte.
20001
20002 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20003 the regexp pattern and the matching target. Set cp->buf.multibyte
20004 to the multibyteness of the regexp pattern. Set
20005 cp->but.target_multibyte to the multibyteness of the matching target.
20006 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20007 FETCH_STRING_CHAR_ADVANCE.
20008 (Freplace_match): Convert unibyte chars to multibyte.
20009
20010 * syntax.c (char_quoted, back_comment, scan_words)
20011 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20012 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20013 unibyte chars to multibyte.
20014 (skip_chars): Delete the arg syntaxp, and move the code for
20015 handling syntaxes to skip_syntaxes. Change callers.
20016 Fix the case that the multibyteness of STRING and the current
20017 buffer doesn't match.
20018 (skip_syntaxes): New function.
20019 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20020 SINGLE_BYTE_CHAR_P.
20021
200222008-02-01 Kenichi Handa <handa@m17n.org>
20023
20024 * xfaces.c (QCfontset): New variable.
20025 (LFACE_FONTSET): New macro.
20026 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20027 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20028 (Finternal_set_lisp_face_attribute)
20029 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20030 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20031 check also LFACE_FONTSET_INDEX.
20032 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20033 attrs[LFACE_FONT_INDEX].
20034 (syms_of_xfaces): Intern and staticpro QCfontset.
20035
20036 * dispextern.h (enum lface_attribute_index): New member
20037 LFACE_FONTSET_INDEX.
20038
20039 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20040
200412008-02-01 Kenichi Handa <handa@m17n.org>
20042
20043 * coding.c (coding_set_destination): Fix coding->destination for
20044 the case converting a region.
20045 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20046 (encode_coding_object): Fix coding->dst_pos and
20047 coding->dst_pos_byte for the case converting a region.
20048
20049 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20050
20051 * character.h (BYTE8_STRING): New macro.
20052
20053 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20054
200552008-02-01 Kenichi Handa <handa@m17n.org>
20056
20057 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20058 characters by octal form.
20059
20060 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20061
20062 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20063 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20064 _fetch_multibyte_char_len.
20065 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20066
20067 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20068
20069 * casefiddle.c (casify_object): Simplify. Handle the case that
20070 the case conversion change the byte length.
20071 (casify_region): Likewise.
20072
20073 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20074
20075 * character.c (_fetch_multibyte_char_len): Delete this variable.
20076 (syms_of_character): Setup Vprintable_chars.
20077
20078 * editfns.c (Fchar_equal): Fix for the unibyte case.
20079 (Finsert_byte): New function.
20080 (syms_of_editfns): Defsubr it.
20081
20082 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20083 of direct code 0x3ffff.
20084
20085 * search.c (Freplace_match): Fix for the unibyte case.
20086
200872008-02-01 Kenichi Handa <handa@m17n.org>
20088
20089 * lread.c (safe_to_load_p): Fix the logic.
20090
20091 * syntax.c (scan_words): Don't treat characters belonging to
20092 different scripts as constituting a word.
20093
20094 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20095
20096 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20097
20098 * emacs.c (main): In the case of --unibyte, instead of aborting on
20099 finding non-empty buffer, make it unibyte.
20100
201012008-02-01 Kenichi Handa <handa@m17n.org>
20102
20103 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20104 to create a fontset.
20105
201062008-02-01 Dave Love <fx@gnu.org>
20107
20108 * character.c (Funibyte_char_to_multibyte): Doc fix.
20109
20110 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20111
201122008-02-01 Kenichi Handa <handa@m17n.org>
20113
20114 * fontset.c (fontset_add): Make the type `int'.
20115 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20116
20117 * character.c (unibyte_char_to_multibyte)
20118 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20119 charset_unibyte, not charset_primary.
20120
20121 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20122
20123 * charset.c (charset_unibyte): Rename from charset_primary.
20124 (Funibyte_charset): Rename from Fprimary_charset.
20125 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20126 (syms_of_charset): Adjust for the above changes.
20127
20128 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20129 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20130 it->multibyte_p is zero.
20131
20132 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20133 Delete extern.
20134
201352008-02-01 Kenichi Handa <handa@m17n.org>
20136
20137 * coding.c (Fdefine_coding_system_internal): Fix category setting
20138 for a coding system of type iso-2022.
20139
201402008-02-01 Kenichi Handa <handa@m17n.org>
20141
20142 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20143
201442008-02-01 Kenichi Handa <handa@m17n.org>
20145
20146 * syntax.c (Vnext_word_boundary_function_table): New variable.
20147 (next-word-boundary-function-table): Declare it as a Lisp variable
20148 in syms_of_syntax.
20149 (scan_words): Call functions in Vnext_word_boundary_function_table
20150 if any.
20151
20152 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20153
20154 * fontset.c (fs_load_font): If fontp->charset is not negative,
20155 return fontp without setting its members.
20156
201572008-02-01 Dave Love <fx@gnu.org>
20158
20159 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20160
20161 * m/sparc.h (HAVE_ALLOCA): Delete.
20162
20163 * s/irix6-5.h: Don't include strings.h.
20164 (bcopy, bzero, bcmp): Don't undef.
20165
20166 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20167
20168 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20169 (TIOCSIGSEND): Don't test IRIX6.
20170 (bcopy, bzero, bcmp): Define conditionally.
20171
201722008-02-01 Kenichi Handa <handa@m17n.org>
20173
20174 * buffer.c (Qas, Qmake, Qto): New variables.
20175 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20176 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20177
20178 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20179 we are inserting a process output into a multibyte buffer.
20180
20181 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20182 multibyte_char_to_unibyte.
20183
20184 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20185 by the primary charset, make it eight-bit char.
20186 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20187
20188 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20189 (charset_8_bit__control, charset_8_bit_graphic)
20190 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20191 (define_charset_internal): New function.
20192 (syms_of_charset): Call define_charset_internal for pre-defined
20193 charsets.
20194
20195 * charset.h (charset_8_bit): Extern it.
20196
20197 * coding.c (make_conversion_work_buffer): Adjust for the change
20198 of Fset_buffer_multibyte.
20199 (encode_coding_raw_text): Increment p0 in the loop.
20200
20201 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20202
20203 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20204 for the change of Fset_buffer_multibyte.
20205
20206 * fns.c (Fstring_to_multibyte): New function.
20207 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20208
202092008-02-01 Dave Love <fx@gnu.org>
20210
20211 * xfns.c (x_put_x_image): Declare args.
20212
20213 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20214 (try_font_list): Declare an arg.
20215
20216 * xdisp.c (message2_nolog, set_message): Declare an arg.
20217
20218 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20219
20220 * syntax.c (scan_sexps_forward): Declare an arg.
20221
20222 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20223 Declare an arg.
20224
20225 * lisp.h (Fnew_fontset): Declare.
20226
20227 * keymap.c (push_key_description): Call CHARACTERP correctly.
20228
20229 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20230 (face_for_char): Delete unused vars.
20231 (Fset_fontset_font): Doc fix. Delete unused vars.
20232
20233 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20234
20235 * composite.c (update_compositions): Declare arg.
20236
20237 * cm.c (calccost, cmgoto): Declare args.
20238
20239 * charset.c: Remove `emacs' conditional. Doc fixes.
20240 (map_char_table_for_charset): Declare.
20241
20242 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20243
20244 * ccl.c: Remove `emacs' conditional.
20245
202462008-02-01 Kenichi Handa <handa@m17n.org>
20247
20248 The following changes are to allow specifying multiple font
20249 patterns for a character range (specified by script or charset).
20250
20251 * Makefile.in (abbrev.o): Depend on syntax.h.
20252 (xfaces.o): Depend on charset.h.
20253
20254 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20255 SINGLE_BYTE_CHAR_P.
20256
20257 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20258
20259 * character.h (Vchar_script_table): Extern it.
20260
20261 * character.c (Vscript_alist): Delete.
20262 (Vchar_script_table, Qchar_script_table): New variable.
20263 (syms_of_character): Declare Vchar_script_table as a lisp variable
20264 and initialize it.
20265
20266 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20267 have property char-table-extra-slots, make no extra slot.
20268
20269 * dispextern.h (struct face): Delete member `charset'.
20270 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20271 SINGLE_BYTE_CHAR_P.
20272 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20273 Add prototypes.
20274 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20275 (generate_ascii_font_name): Rename from generate_ascii_font.
20276
20277 * fontset.h (get_font_repertory_func): New prototype.
20278 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20279 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20280
20281 * fontset.c (Qprepend, Qappend): New variables.
20282 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20283 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20284 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20285 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20286 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20287 (load_font_get_repertory): New functions.
20288 (fontset_set): Delete.
20289 (fontset_face): New arg FACE. Return face ID, not face.
20290 Complete re-write to handle new fontset structure. Change caller.
20291 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20292 (face_for_char): Don't call lookup_face.
20293 (make_fontset_for_ascii_face): New arg FACE.
20294 (fs_load_font): New arg CHARSET_ID. Don't check
20295 Vfont_encoding_alist here.
20296 (find_font_encoding): New function.
20297 (list_fontsets): Use STRINGP, not ! NILP.
20298 (accumulate_script_ranges): New function.
20299 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20300 re-written to handle new fontset structure.
20301 (Ffontset_font): Return a copy of element.
20302 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20303 docstring of font-encoding-alist.
20304
20305 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20306 (Fset_fotset_font): Fix arguments to 5.
20307
20308 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20309
20310 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20311 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20312 (highlight_trailing_whitespace): Adjust for the change of
20313 lookup_named_face.
20314
20315 * xfaces.c: Include charset.h.
20316 (load_face_font): Delete argument C. Change caller.
20317 (generate_ascii_font_name): Rename from generate_ascii_font.
20318 (font_name_registry): New function.
20319 (cache_face): Store ascii faces before non-ascii faces in buckets.
20320 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20321 Lookup only ascii faces.
20322 (lookup_non_ascii_face): New function.
20323 (lookup_named_face): Delete argument C. Change caller.
20324 (lookup_derived_face): Delete argument C. Change caller.
20325 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20326 a string, just call font_list with it.
20327 (choose_face_font): Delete arguments FACE and C. New arg
20328 FONT_SPEC. Change caller.
20329 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20330 Change caller.
20331 (realize_non_ascii_face): New function.
20332 (realize_x_face): Call load_face_font here.
20333 (realize_tty_face): Delete argument C. Change caller.
20334 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20335 get a face ID.
20336 (dump_realized_face): Don't print charset of FACE.
20337
20338 * xfns.c (x_set_font): Always call x_new_fontset and
20339 store_frame_parameter.
20340 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20341 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20342
20343 * xterm.h (x_get_font_repertory): Extern it.
20344
20345 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20346 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20347 it->multibyte_p is zero.
20348 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20349 (x_new_fontset): If FONTSETNAME doesn't match any existing
20350 fontsets, create a new one.
20351 (x_get_font_repertory): New function.
20352
203532008-02-01 Kenichi Handa <handa@m17n.org>
20354
20355 * coding.c (Ffind_coding_systems_region_internal): Detect an
20356 ASCII only string correctly.
20357
20358 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20359 version is 0.
20360
203612008-02-01 Kenichi Handa <handa@m17n.org>
20362
20363 * lread.c: Include "coding.h".
20364 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20365 (load_each_byte, unread_char): New variables.
20366 (readchar_backlog): Delete.
20367 (readchar): Return a character unless load_each_byte is nonzero.
20368 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20369 cons. If unread_char is not -1, simply return it.
20370 (unreadchar): Handle the case that readcharfun is
20371 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20372 (read_multibyte): Delete.
20373 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20374 (read_emacs_mule_char): New functions.
20375 (Fload): Even if the file doesn't have the extension ".elc", if
20376 safe_to_load_p returns a positive version number, assume that the
20377 file contains bytecompiled code. If the version is less than 22,
20378 load the file while decoding multibyte sequences by emacs-mule.
20379 (readevalloop): Don't use readchar_backlog.
20380 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20381 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20382 (read_escape): Delete the arg BYTEREP.
20383 (read1): Set load_each_byte to 1 temporarily while handling
20384 #@NUMBER. Don't call read_multibyte.
20385 (read_vector): Call Fread with a cons. If readcharfun is
20386 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20387 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20388 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20389 and Qload_force_doc_strings.
20390
203912008-02-01 Kenichi Handa <handa@m17n.org>
20392
20393 * xdisp.c (face_before_or_after_it_pos): Call
20394 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20395
203962008-02-01 Kenichi Handa <handa@m17n.org>
20397
20398 * character.h (TRAILING_CODE_P): New macro.
20399 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20400 (string_char_with_unification): Fix prototype.
20401 (Vscript_alist): Extern it.
20402
20403 * character.c (Vscript_alist): New variable.
20404 (string_char_with_unification, str_as_unibyte)
20405 (string_escape_byte8): Add `const' to local variables.
20406 (syms_of_character): Declare script-alist as a Lisp variable.
20407
20408 * charset.h (Vcharset_ordered_list): Extern it.
20409 (charset_ordered_list_tick): Extern it.
20410 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20411 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20412 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20413 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20414 (Funify_charset): Adjust for the change of Funify_charset.
20415
20416 * charset.c (charset_ordered_list_tick): New variable.
20417 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20418 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20419 deunify intead of unify a charset.
20420 (string_xstring_p): Add `const' to local variables.
20421 (find_charsets_in_text): Add `const' to arguments and local variables.
20422 (encode_char): Adjust for the change of Funify_charset. Fix
20423 detecting of invalid code.
20424 (Fset_charset_priority): Increment charset_ordered_list_tick.
20425 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20426 and TO_CODE.
20427
20428 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20429 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20430 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20431 (decode_coding_ccl, consume_chars)
20432 (Ffind_coding_systems_region_internal)
20433 (Fcheck_coding_systems_region): Add `const' to local variables.
20434
20435 * print.c (print_object): Use octal form for printing the
20436 contents of a bool vector.
20437
204382008-02-01 Dave Love <fx@gnu.org>
20439
20440 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20441 <version == 20>: Refuse to load.
20442
204432008-02-01 Dave Love <fx@gnu.org>
20444
20445 * fns.c: Move coding.h.
20446 (Qcodeset, Qdays, Qmonths): New.
20447 (concat): Use CHARACTERP instead of INTEGERP.
20448 (Flocale_codeset): Delete.
20449 (Flanginfo): New function.
20450 (syms_of_fns): Change accordingly.
20451
20452 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20453
204542008-02-01 Dave Love <fx@gnu.org>
20455
20456 * casetab.c (init_casetab_once, init_casetab_once): Fix
20457 CHAR_TABLE_SET call.
20458
20459 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20460
20461 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20462
20463 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20464 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20465 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20466
20467 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20468
20469 * coding.c (ENCODE_DESIGNATION, decode_eol)
20470 (make_conversion_work_buffer, code_conversion_restore)
20471 (Fdefine_coding_system_internal): Convert Lisp types.
20472 (code_conversion_restore): Use EQ, not ==.
20473 (Fencode_coding_string): Fix code_convert_string call.
20474
20475 * coding.h (code_convert_region): Fix prototype.
20476
20477 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20478
20479 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20480 (Ffontset_info): Convert Lisp types.
20481
20482 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20483
20484 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20485
20486 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20487
20488 * chartab.c: Include "...h", not <...h> in some cases.
20489
20490 * callproc.c (Fcall_process): Remove unused variables.
20491
204922008-02-01 Dave Love <fx@gnu.org>
20493
20494 * coding.c (Fset_coding_system_priority): Allow null arg list.
20495
204962008-02-01 Dave Love <fx@gnu.org>
20497
20498 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20499 (Fself_insert_and_exit): Use CHARACTERP.
20500
20501 * callproc.c (Fcall_process): Remove unused vars.
20502
20503 * xterm.c (XTread_socket): Add extra dead keysyms.
20504
20505 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20506
20507 * dispextern.h: Remove prototypes for redraw_frame,
20508 redraw_garbaged_frames.
20509
20510 * cmds.c (Fself_insert_command): Use CHARACTERP.
20511
20512 * chartab.c (make_sub_char_table): Remove unused var.
20513 (Fset_char_table_default, Fmap_char_table): Doc fix.
20514
20515 * keymap.c (access_keymap): Remove generic char code.
20516 (push_key_description): Use CHARACTERP.
20517
205182008-02-01 Dave Love <fx@gnu.org>
20519
20520 * charset.c: Doc fixes.
20521 (Funify_charset): Extra checking.
20522
205232008-02-01 Dave Love <fx@gnu.org>
20524
20525 * lread.c: Remove some unused variables.
20526 (safe_to_load_p): If safe, return the magic number version byte.
20527 (Fload): Maybe use load-with-code-conversion.
20528
205292008-02-01 Kenichi Handa <handa@m17n.org>
20530
20531 * category.c (Fmodify_category_entry): Don't modify the contents
20532 of category_set for characters out of the range. Avoid
20533 unnecessary modification.
20534
20535 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20536 Vchar_unify_table. The default value of the table is now nil.
20537
20538 * character.c (syms_of_character): Setup Vchar_width_table for
20539 eight-bit-control and raw-byte chars.
20540
20541 * charset.h (enum define_charset_arg_index): Delete
20542 charset_arg_parents and add charset_arg_subset and
20543 charset_arg_superset.
20544 (enum charset_attr_index): Delete charset_parents and add
20545 charset_subset and charset_superset.
20546 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20547 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20548 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20549 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20550 (CHARSET_SUPERSET): New macros.
20551 (charset_work): Extern it.
20552 (ENCODE_CHAR): Use charset_work.
20553 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20554 (map_charset_chars): Extern it.
20555
20556 * charset.c (load_charset_map): Set the default value of encoder
20557 and deunifier char-tables to nil.
20558 (map_charset_chars): Change argument. Change callers. Use
20559 map_char_table_for_charset instead of map_char_table.
20560 (Fmap_charset_chars): New optional args from_code and to_code.
20561 (Fdefine_charset_internal): Adjust for the change of
20562 `define-charset' (:parents -> :subset or :superset).
20563 (charset_work): New variable.
20564 (encode_char, syms_of_charset): Adjust for the change of
20565 Fdefine_charset_internal.
20566 (Ffind_charset_string): Setup the vector `charsets' correctly.
20567
20568 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20569 the previous change.
20570 (char_table_ref_and_range): Adjust for the above change.
20571 (map_sub_char_table_for_charset): New function.
20572 (map_char_table_for_charset): New function.
20573
20574 * keymap.c (describe_vector): Handle a char-table directly here.
20575 (describe_char_table): Delete.
20576
20577 * lisp.h (map_charset_chars): Delete.
20578
205792008-02-01 Dave Love <fx@gnu.org>
20580
20581 * fns.c (count_combining): Comment out (unused).
20582 (Flocale_codeset): New.
20583 (syms_of_fns): Defsubr it.
20584
20585 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20586 (size_t): Remove.
20587
205882008-02-01 Dave Love <fx@gnu.org>
20589
20590 * Makefile.in (chartab.o): Depend on charset.h.
20591
205922008-02-01 Kenichi Handa <handa@m17n.org>
20593
20594 * character.c (syms_of_character): Set the default value of
20595 Vprintable_chars to Qnil.
20596
205972008-02-01 Dave Love <fx@gnu.org>
20598
20599 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20600
206012008-02-01 Kenichi Handa <handa@m17n.org>
20602
20603 * charset.c (load_charset_map): Handle the case that from < to
20604 correctly.
20605
20606 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20607 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20608 Pay attention to raw-8-bit chars.
20609
206102008-02-01 Kenichi Handa <handa@m17n.org>
20611
20612 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20613 It is not bytecompiled now.
20614
20615 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20616 (charset_jisx0208): New variables.
20617 (Fdefine_charset_internal): Setup them if appropriate.
20618 (init_charset_once): Initialize them to -1.
20619
20620 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20621 (charset_jisx0208): Extern them.
20622
20623 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20624 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20625 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20626 (setup_iso_safe_charsets): Fix arguments to Fassq.
20627 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20628 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20629 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20630 (encode_coding_iso_2022): Change the 1st arg to
20631 ENCODE_ISO_CHARACTER to a variable.
20632
206332008-02-01 Kenichi Handa <handa@m17n.org>
20634
20635 * charset.h (enum define_charset_arg_index): New enums
20636 charset_arg_min_code and charset_arg_max_code.
20637 (struct charset): New member char_index_offset.
20638
20639 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20640 Take charset->char_index_offset into account.
20641 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20642 args[charset_arg_max_code]. Setup charset.char_index_offset.
20643 (syms_of_charset): Fix args to Fdefine_charset_internal.
20644
206452008-02-01 Dave Love <fx@gnu.org>
20646
20647 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20648
206492008-02-01 Dave Love <fx@gnu.org>
20650
20651 * coding.c: Doc fixes.
20652 (Fcoding_system_aliases): Fix return value.
20653 (Qmac): Remove (duplicated) definition.
20654
206552008-02-01 Dave Love <fx@gnu.org>
20656
362654a6
JB
20657 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20658 New functions.
aac0c6e3
MR
20659
20660 * character.c (Fstring): Doc fix.
20661
20662 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20663
362654a6 20664 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20665 (font-encoding-alist): Doc fix.
20666
206672008-02-01 Dave Love <fx@gnu.org>
20668
20669 * term.c (costs_set): Declare static, non-initialized for pcc.
20670 (encode_terminal_code): Remove unused var.
20671
20672 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20673 for K&R.
20674
20675 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20676
20677 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20678 (suffixes): Move out of make_subsidiaries for K&R.
20679
20680 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20681
20682 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20683
206842008-02-01 Dave Love <fx@gnu.org>
20685
20686 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20687
20688 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20689
206902008-02-01 Yong Lu <lyongu@asia-infonet.com>
20691
20692 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20693
20694 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20695
206962008-02-01 Kenichi Handa <handa@m17n.org>
20697
20698 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20699 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20700
207012008-02-01 Kenichi Handa <handa@m17n.org>
20702
20703 * coding.c (decode_coding_charset): Adjust for the change of
20704 Fdefine_coding_system_internal.
20705 (Fdefine_coding_system_internal): For a coding system of
20706 `charset' type, store a list of charset IDs in
20707 `charset_attr_charset_valids' element of coding attributes.
20708
207092008-02-01 Kenichi Handa <handa@m17n.org>
20710
20711 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20712 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20713 caller. Handle 2-byte and 3-byte charsets correctly.
20714 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20715 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20716 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20717 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20718 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20719 sequence.
20720 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20721 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20722 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20723 and alt&rule composition.
20724 (decode_coding_iso_2022): Handle composition correctly.
20725 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20726
20727 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20728 re-defining a charset. If the charset has :emacs-mule-id, setup
20729 emacs_mule_bytes.
20730 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20731
207322008-02-01 Kenichi Handa <handa@m17n.org>
20733
20734 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20735 (encode_coding_big5, encode_coding_charset): If coding requires safe
20736 encoding, produce a character specified by
20737 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20738
207392008-02-01 Dave Love <fx@gnu.org>
20740
20741 * xterm.c (XSetIMValues): Declare.
20742
20743 * process.c: Conditionally include sys/wait.h, pty.h.
20744
20745 * print.c (print_object): Fix print format for 64-bit systems.
20746
20747 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20748
20749 * buffer.c (emacs_strerror): Declare.
20750
20751 * fontset.c (Fclear_face_cache): Declare.
20752 (accumulate_font_info): Comment-out (unused).
20753 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20754 variables.
20755
20756 * character.h (string_escape_byte8): Declare.
20757
20758 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20759 unused vars.
20760 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20761 (Fmap_charset_chars): Doc fix.
20762
20763 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20764 (Fset_coding_system_priority, Fset_coding_system_priority)
20765 (Fdefine_coding_system_internal): Doc fix.
20766
207672008-02-01 Dave Love <fx@gnu.org>
20768
20769 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20770
207712008-02-01 Kenichi Handa <handa@m17n.org>
20772
20773 * character.c (string_escape_byte8): Make multibyte string with
20774 correct size.
20775
20776 * charset.c (Fmake_char): Delete unnecessary code.
20777
207782008-02-01 Kenichi Handa <handa@m17n.org>
20779
20780 * xfns.c (x_encode_text): Allocate coding.destination here, and
20781 call encode_coding_object with dst_object Qnil.
20782
20783 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20784 multibyte form correctly.
20785
20786 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20787 against Vfont_encoding_alist.
20788
20789 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20790 handling of charset list.
20791 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20792 (decode_coding_object): Move point to coding->dst_pos before
20793 calling post-read-conversion function.
20794 (encode_coding_object): Give correct arguments to
20795 pre-write-conversion. Ignore the return value of
20796 pre-write-conversion function. Pay attention to the case that
20797 pre-write-conversion changes the current buffer. If dst_object is
20798 Qt, even if coding->src_bytes is zero, allocate at least one byte
20799 to coding->destination.
20800
20801 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20802
20803 * charset.c (Fmake_char): Make it more backward compatible.
20804 (Fmap_charset_chars): Fix docstring.
20805
208062008-02-01 Dave Love <fx@gnu.org>
20807
20808 * coding.c: Doc fixes.
20809 (Fdefine_coding_system_alias): Use names, not symbols, in
20810 coding-system-alist.
20811
208122008-02-01 Kenichi Handa <handa@m17n.org>
20813
20814 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20815 of calling free_realized_face.
20816
208172008-02-01 Yong Lu <lyongu@asia-infonet.com>
20818
20819 * charset.c (read_hex): Don't treat SPC as a comment starter.
20820 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20821 (Fdecode_char): Fix typo.
20822
208232008-02-01 Kenichi Handa <handa@m17n.org>
20824
20825 * charset.h (struct charset): New member `code_space_mask'.
20826
20827 * coding.c (coding_set_source): Delete the local variable beg_byte.
20828 (encode_coding_charset, Fdefine_coding_system_internal):
20829 Delete the local variable charset.
20830 (Fdefine_coding_system_internal): Setup
20831 attrs[coding_attr_charset_valids] correctly.
20832
20833 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20834 member to check if CODE is valid or not.
20835 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20836 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20837 is within the range of charset->min_code and carset->max_code.
20838
208392008-02-01 Dave Love <fx@gnu.org>
20840
20841 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20842
20843 * dispextern.h (generate_ascii_font): Fix return type.
20844
20845 * xfaces.c (generate_ascii_font): Fix arg declaration.
20846
20847 * coding.c (coding_inherit_eol_type)
20848 (Fset_terminal_coding_system_internal)
20849 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20850
208512008-02-01 Kenichi Handa <handa@m17n.org>
20852
20853 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20854 multiple charsets correctly.
20855
208562008-02-01 Kenichi Handa <handa@m17n.org>
20857
20858 * search.c (boyer_moore): Fix handling of multibyte character
20859 translation.
20860
20861 * xdisp.c (display_mode_element): When the variable `elt' is
20862 changed, update `this' and `lisp_string'.
20863
208642008-02-01 Kenichi Handa <handa@m17n.org>
20865
20866 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20867
20868 * callproc.c (Fcall_process): Be sure to give the current buffer
20869 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20870
20871 * charset.c (struct charset_map_entries): New struct.
20872 (load_charset_map): Rename from parse_charset_map. New args
20873 entries and n_entries. Change caller.
20874 (load_charset_map_from_file): Rename from load_charset_map.
20875 Change caller. New arg control_flag. Call load_charset_map at
20876 the tail.
20877 (load_charset_map_from_vector): New function.
20878 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20879 (encode_char): If the charset is compact, change a character index
20880 to a code point.
20881
20882 * coding.c (coding_alloc_by_making_gap): Check the case that the
20883 source and destination are the same correctly.
20884 (decode_coding_raw_text): Set coding->consumed_char and
20885 coding->consumed to 0.
20886 (produce_chars): If coding->chars_at_source is nonzero, update
20887 coding->consumed_char and coding->consumed before calling
20888 alloc_destination.
20889 (Fdefine_coding_system_alias): Register ALIAS in
20890 Vcoding_system_alist.
20891 (syms_of_coding): Define `no-conversion' coding system at the tail.
20892
20893 * fileio.c (Finsert_file_contents): Set coding_system instead of
20894 val. If the current buffer is multibyte, always call
20895 decode_coding_gap.
20896
20897 * xfaces.c (try_font_list): Give higher priority to fontset's
20898 family than face's family.
20899
209002008-02-01 Kenichi Handa <handa@m17n.org>
20901
20902 * callproc.c (Fcall_process): Be sure to give the current buffer
20903 to decode_coding_c_string.
20904
20905 * xfaces.c (try_font_list): Give a family specified in a fontset
20906 higher priority than a family specified in a face.
20907
209082008-02-01 Kenichi Handa <handa@m17n.org>
20909
20910 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20911 Fix arguments to insert_from_buffer.
20912
20913 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20914
209152008-02-01 Kenichi Handa <handa@m17n.org>
20916
20917 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20918 (decode_coding_gap): Set coding->dst_multibyte correctly.
20919
209202008-02-01 Kenichi Handa <handa@m17n.org>
20921
20922 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20923 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20924 (encode_coding_utf_16): Substitute coding->default_char for
20925 non-Unicode characters.
20926 (decode_coding): Don't call record_insert here.
20927 (setup_coding_system): Initialize `surrogate' of
20928 coding->spec.utf_16 to 0.
20929 (EMIT_ONE_BYTE): Fix for multibyte case.
20930
20931 * insdel.c (insert_from_gap): Call record_insert.
20932
209332008-02-01 Kenichi Handa <handa@m17n.org>
20934
20935 * casefiddle.c (casify_region): Fix multibyte case.
20936
20937 * character.c (c_string_width): Add return type `int'.
20938 (char_string_with_unification): Delete arg ADVANCED.
20939
20940 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20941 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20942 (CHAR_STRING_ADVANCE): Make it do-while statement.
20943
20944 * chartab.c (sub_char_table_set_range): Optimize for the case
20945 DEPTH == 3. Add workaround code for a GCC optimization bug.
20946
20947 * charset.c (parse_charset_map): Remove an unused variable.
20948
20949 * coding.c: Delete unused variables.
20950
20951 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20952 earlier. If inserted is zero and the coding system doesn't
20953 require flushing, don't call decode_coding_gap.
20954
20955 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20956
209572008-02-01 Kenichi Handa <handa@m17n.org>
20958
20959 The following changes are for using Unicode as an internal
20960 character model, and use UTF-8 format for buffer/string
20961 representation.
20962
20963 * .gdbinit (xchartable): Adjust for the change of char table structure.
20964 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20965
20966 * Makefile.in (obj): Add character.o and chartab.o.
20967 (lisp, shortlisp): Remove utf-8.elc.
20968 (*.o): For many files, change dependency on charset.h to
20969 character.h, and add dependency on character.h.
20970 (character.o, chartab.o): New targets.
20971
20972 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20973 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20974 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20975 of "charset.h".
20976
20977 * dired.c, filelock.c: Include "character.h".
20978
20979 * alloc.c: Include "character.h" instead of "charset.h".
20980 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20981 (syms_of_alloc): Remove defsubr for Smake_char_table.
20982
20983 * buffer.c: Include "character.h" instead of "charset.h", don't
20984 include "coding.h".
20985 (Fset_buffer_multibyte): Adjust for UTF-8.
20986
20987 * buffer.h: EXFUN Fbuffer_live_p.
20988
20989 * callproc.c: Include "character.h" instead of "charset.h".
20990 (Fcall_process): Big change for the new code-conversion APIs.
20991
20992 * casetab.c: Include "character.h" instead of "charset.h".
20993 (set_canon, set_identity, shuffle): Adjust for the new
20994 map_char_table spec.
20995 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20996 accessing the char table structure.
20997
20998 * chartab.c: New file that implements char table.
20999
21000 * category.c: Include "character.h".
21001 (copy_category_entry): New function.
21002 (copy_category_table): Call map_char_table and copy_category_entry.
21003 (Fmake_category_table): Initialize all top-level slots.
21004 (char_category_set): New function.
21005 (modify_lower_category_set): Delete.
21006 (Fmodify_category_entry): Call char_table_ref_and_range.
21007
21008 * category.h (CATEGORY_SET): Just call char_category_set.
21009
21010 * ccl.c: Include "character.h".
21011 (Qccl, Qcclp): New variables.
21012 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21013 it's less than 256.
21014 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21015 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21016 and DST type.
21017 (ccl_driver): Change types of argument, adjust code accordingly.
21018 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21019 ccl_driver.
21020 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21021
21022 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21023 New members src_multibyte, dst_multibyte, consumed, and produced.
21024 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21025 (CODING_SPEC_CCL_PROGRAM): New macro.
21026 (ccl_driver): Update prototype.
21027 (Qccl, Qcclp, Fccl_program_p): Extern them.
21028 (CHECK_CCL_PROGRAM): New macro.
21029
21030 * character.c, character.h, chartab.c: New files.
21031
21032 * charset.c: Mostly re-written. Move character and multibyte sequence
21033 handling codes to character.c.
21034
21035 * charset.h: Mostly re-written. Move character and multibyte sequence
21036 handling codes to character.h.
21037
21038 * coding.c, coding.h: Mostly re-written.
21039
21040 * composite.c: Include "character.h" instead of "charset.h".
21041 (CHAR_WIDTH): Move to character.h.
21042 (HASH_KEY, HASH_VALUE): Delete.
21043
21044 * composite.h (enum composition_method): Change order of enumeration
21045 symbols.
21046
21047 * data.c: Include "character.h" instead of "charset.h".
21048 (Faref): Call CHAR_TABLE_REF for a char table.
21049 (Faset): Call CHAR_TABLE_SET for a char table.
21050
21051 * dispextern.h (free_realized_face, check_face_attribytes)
21052 (generate_ascii_font): Extern them.
21053 (free_realized_multibyte_face): Delete extern.
21054
21055 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21056 table structure.
21057
21058 * editfns.c: Include "character.h" instead of "charset.h".
21059 (Fchar_to_string): Always call CHAR_STRING.
21060
21061 * emacs.c (main): Call init_charset_once, init_charset,
21062 syms_of_chartab, and syms_of_character.
21063
21064 * fileio.c: Include "character.h" instead of "charset.h".
21065 (Finsert_file_contents): Big change for the new code-conversion API.
21066 (choose_write_coding_system, Fwrite_region): Likewise.
21067 (build_annotations_2): Delete.
21068 (e_write): Big change for the new code-conversion API.
21069
21070 * fns.c: Include "character.h" instead of "charset.h".
21071 (copy_sub_char_table): Move to chartab.c.
21072 (Fcopy_sequence): Call copy_char_table for a char table.
21073 (concat): Delete codes calling count_multibyte.
21074 (string_char_to_byte, string_byte_to_char): Adjust for the new
21075 multibyte form.
21076 (internal_equal): Adjust for the change of char table structure.
21077 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21078 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21079 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21080 (char_table_translate, optimize_sub_char_table)
21081 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21082 chartab.c.
21083 (char_table_ref_and_index): Delete.
21084 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21085 (Fmd5): Call preferred_coding_system instead of accessing
21086 Vcoding_category_list. Adjust for the new code-conversion API.
21087 (syms_of_fns): Move defsubr for char table related functions to
21088 chartab.c.
21089
21090 * fontset.c: Mostly re-written.
21091
21092 * fontset.h (struct font_info): Change type of the member encoding_type.
21093 (enum FONT_SPEC_INDEX): New enum.
21094 (fontset_font_pattern, fs_load_font): Update prototype.
21095 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21096
21097 * indent.c: Include "character.h" instead of "charset.h".
21098 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21099
21100 * insdel.c: Include "character.h" instead of "charset.h".
21101 (copy_text): Don't refer to Vnonascii_translation_table.
21102 (insert_from_gap): New function.
21103
21104 * keyboard.c: Include "character.h" instead of "charset.h".
21105 (command_loop_1): Never call direct_output_forward_char before
21106 a non-ASCII character.
21107 (read_char): If Vkeyboard_translate_table is a char table, always
21108 translate a character.
21109
21110 * keymap.c: Include "character.h".
21111 (store_in_keymap): Handle the case that IDX is a cons.
21112 (Fdefine_key): Handle the case that KEY is a cons and the car part
21113 is also a cons (range).
21114 (push_key_description): Adjust for the new character code.
21115 (describe_vector): Call describe_char_table for a char table.
21116 (describe_char_table): New function.
21117
21118 * keymap.h (describe_char_table): Extern it.
21119
21120 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21121 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21122 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21123 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21124 Delete.
21125 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21126 structure.
21127 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21128 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21129 (CHARTAB_SIZE_BITS_3): New macros.
21130 (chartab_size): Extern it.
21131 (struct Lisp_Char_Table): Re-design.
21132 (struct Lisp_Sub_Char_Table): New structure.
21133 (HASH_KEY, HASH_VALUE): Move from fns.c.
21134 (CHARACTERBITS): Define as 22.
21135 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21136 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21137 (GC_SUB_CHAR_TABLE_P): New macro.
21138 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21139 (code_convert_string_norecord): Deleted extern.
21140 (init_character_once, syms_of_character, init_charset)
21141 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21142
21143 * lread.c: Include "character.h".
21144 (read_multibyte): New arg NBYTES.
21145 (read_escape): Change the meaning of returned *BYTEREP.
21146 (to_multibyte): Delete.
21147 (read1): Adjust the handling of char table and string.
21148
21149 * print.c: Include "character.h" instead of "charset.h".
21150 (print_string): Convert 8-bit raw bytes to octal form by
21151 string_escape_byte8.
21152 (print_object): Adjust for the new multibyte form. Print 8-bit
21153 raw bytes always in octal form. Handle sub char table correctly.
21154
21155 * process.c: Include "character.h" instead of "charset.h".
21156 (read_process_output, send_process): Adjust for the new
21157 code-conversion API.
21158
21159 * puresize.h (BASE_PURESIZE): Increase.
21160
21161 * regex.c: Include "character.h" instead of "charset.h".
21162 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21163 (regex_compile): Accept a range whose starting and ending
21164 character have different leading bytes.
21165 (analyse_first): Adjust for the above change.
21166
21167 * search.c: Include "character.h" instead of "charset.h".
21168 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21169 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21170
21171 * syntax.c: Include "character.h" instead of "charset.h".
21172 (syntax_parent_lookup): Delete.
21173 (Fmodify_syntax_entry): Accept a cons as CHAR.
21174 (skip_chars): Adjust for the new multibyte form.
21175 (init_syntax_once): Call char_table_set_range instead of directly
21176 accessing the structure of a char table.
21177
21178 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21179 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21180 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21181 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21182
21183 * term.c: Include "buffer.h" and "character.h".
21184 (encode_terminal_code, write_glyphs): Adjust for the new
21185 code-conversion API.
21186 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21187
21188 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21189
21190 * xdisp.c: Include "character.h".
21191 (get_next_display_element): Adjust for the new multibyte form.
21192 (disp_char_vector): Adjust for the new char table structure.
21193 (decode_mode_spec_coding): Adjust for the new structure of
21194 coding system.
21195 (decode_mode_spec): Adjust for the new code-conversion API.
21196
21197 * xfaces.c: Include "character.h" instead of "charset.h".
21198 (load_face_font): Adjust for the change of choose_face_font and
21199 FS_LOAD_FONT.
21200 (generate_ascii_font): New function.
21201 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21202 (set_font_frame_param): Adjust for the change of choose_face_font.
21203 (free_realized_face): Make it public.
21204 (free_realized_faces_for_fontset): Rename from
21205 free_realized_multibyte_face. Free also faces realized for ASCII.
21206 (choose_face_font): Change arguments. Adjust for the change of
21207 fontset_font_pattern and FS_LOAD_FONT.
21208
21209 * xfns.c: Include "character.h".
21210 (x_encode_text): Adjust for the new code-conversion API.
21211
21212 * xselect.c: Don't include "charset.h".
21213 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21214
21215 * xterm.c: Include "character.h".
21216 (x_encode_char): New argument CHARSET. Change caller.
21217 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21218 Call ENCODE_CHAR instead of SPLIT_CHAR.
21219 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21220 CHAR_WIDTH instead of CHARSET_WIDTH.
21221 (XTread_socket): Adjust for the new code-conversion API.
21222 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21223 (x_load_font): Adjust for the change of struct font.
21224
212252008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21226
21227 * xfaces.c (face_at_buffer_position): Remove unused vars.
21228
212292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21230
21231 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21232 Fix overflow checking.
21233
212342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21235
21236 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21237 Cancel previous change.
21238
212392008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21240
21241 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21242 ccl->eight_bit_control. Fix check for buffer overflow.
21243 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21244 (ccl_driver): Initialize extra_bytes to 0.
21245
212462008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21247
21248 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21249 return it ORed with ctrl_modifier.
21250
212512008-01-29 Miles Bader <miles@gnu.org>
21252
21253 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21254
212552008-01-28 Jason Rumney <jasonr@gnu.org>
21256
21257 * w32.c (stat): Don't double check for networked drive.
21258
212592008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21260
21261 * window.c (run_window_configuration_change_hook): New function.
21262 Code extracted from set_window_buffer. Set the selected frame.
21263 (set_window_buffer): Use it.
21264 * window.h (run_window_configuration_change_hook): Declare.
21265 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21266
21267 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21268
212692008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21270
21271 * Makefile.in: Remove references to unused macros.
21272
212732008-01-26 Eli Zaretskii <eliz@gnu.org>
21274
21275 * w32.c (g_b_init_get_sid_sub_authority)
21276 (g_b_init_get_sid_sub_authority_count): New static variables.
21277 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21278 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21279 (init_user_info): Use them to retrieve uid and gid.
21280 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21281 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21282 st_uid and st_gid of the file.
21283
212842008-01-26 Jason Rumney <jasonr@gnu.org>
21285
21286 * w32.c (logon_network_drive): New function.
21287 (stat): Use it.
21288
212892008-01-26 Chong Yidong <cyd@stupidchicken.com>
21290
21291 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21292 invisible text covered with an ellipsis.
21293
212942008-01-25 Richard Stallman <rms@gnu.org>
21295
21296 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21297 jump back to beginning. Move some other initializations after that.
21298 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21299 New variables.
21300 (syms_of_xdisp): Init them.
21301
21302 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21303
21304 * buffer.c (reset_buffer_local_variables):
21305 Implement `permanent-local-hook'.
21306 (Qpermanent_local_hook): New variable.
21307 (syms_of_buffer): Init and staticpro it.
21308
213092008-01-25 Michael Albinus <michael.albinus@gmx.de>
21310
21311 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21312
213132008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21314
21315 * fns.c (Fclrhash): Return TABLE.
21316
213172008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21318
21319 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21320 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21321 is set even without positional changes.
21322 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21323
21324 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21325
213262008-01-23 Jason Rumney <jasonr@gnu.org>
21327
21328 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21329
21330 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21331 the unicode range available in MULE by locale-coding-system.
21332 Improve dbcs lead byte detection. Set event timestamp and modifiers
21333 earlier.
21334
213352008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21336
21337 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21338 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21339 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21340 when used on child processes.
21341
213422008-01-21 Michael Albinus <michael.albinus@gmx.de>
21343
21344 * dbusbind.c (Fdbus_method_return_internal): Rename from
21345 Fdbus_method_return.
21346 (Fdbus_unregister_object): Move to dbus.el.
21347 (Fdbus_call_method, Fdbus_method_return_internal)
21348 (Fdbus_send_signal): Improve debug messages.
21349
213502008-01-20 Martin Rudalics <rudalics@gmx.at>
21351
21352 * undo.c (undo_inhibit_record_point): New variable.
21353 (syms_of_undo): Initialize it.
21354 (record_point): Don't record point when undo_inhibit_record_point
21355 is set.
21356
213572008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21358
21359 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21360
21361 * xdisp.c (Qauto_hscroll_mode): New var.
21362 (syms_of_xdisp): Initialize it.
21363 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21364 window's buffer.
21365 (hscroll_windows): Don't check automatic_hscrolling_p here.
21366
21367 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21368 vscroll if we're setting window-buffer to the value it already has.
21369
213702008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21371
21372 * m/intel386.h: Remove references to XENIX.
21373
213742008-01-17 Andreas Schwab <schwab@suse.de>
21375
21376 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21377 instead of HAVE_X86_64_LIB64_DIR.
21378 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21379
213802008-01-17 Glenn Morris <rgm@gnu.org>
21381
21382 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21383 to HAVE_X86_64_LIB64_DIR.
21384
213852008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21386
21387 * s/irix3-3.h:
21388 * s/irix4-0.h:
21389 * s/386-ix.h:
21390 * s/domain.h:
21391 * s/hpux9-x11r4.h:
21392 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21393
21394 * sysdep.c: Remove code containing references to symbols defined
21395 by unsupported systems.
21396
213972008-01-16 Glenn Morris <rgm@gnu.org>
21398
21399 * coding.c (select-safe-coding-system-function): Doc fix.
21400
214012008-01-15 Glenn Morris <rgm@gnu.org>
21402
21403 * config.in: Revert 2008-01-13 change: this is a generated file.
21404
214052008-01-13 Tom Tromey <tromey@redhat.com>
21406
21407 * lisp.h: Fix typo.
21408
214092008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21410
21411 * m/sequent-ptx.h:
21412 * m/sequent.h:
21413 * s/ptx.h:
21414 * s/ptx4-2.h:
21415 * s/ptx4.h: Remove files for systems no longer supported.
21416
21417 * callproc.c (Fcall_process): Fix previous change.
21418
214192008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21420
21421 * unexsunos4.c: Remove file, system not supported anymore.
21422
21423 * m/mips.h:
21424 * m/intel386.h:
21425 * callproc.c:
21426 * config.in:
21427 * ecrt0.c:
21428 * emacs.c:
21429 * fileio.c:
21430 * frame.c:
21431 * getpagesize.h:
21432 * keyboard.c:
21433 * lread.c:
21434 * process.c:
21435 * puresize.h:
21436 * sysdep.c:
21437 * systty.h:
21438 * syswait.h:
21439 * unexec.c:
21440 * xdisp.c:
21441 * alloc.c: Remove code containing references to symbols defined by
21442 unsupported systems.
21443
214442008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21445
21446 * coding.c (detect_coding_mask): Fix previous change.
21447
214482008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21449
21450 * coding.c (detect_coding_iso2022): New arg
21451 latin_extra_code_state. Allow Latin extra codes only
21452 when *latin_extra_code_state is nonzero.
21453 (detect_coding_mask): If there is a NULL byte, detect the encoding
21454 as UTF-16 or binary. If Latin extra codes exist, detect the
21455 encoding as ISO-2022 only when there's no other proper encoding is
21456 found.
21457
214582008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21459
21460 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21461 #ifdef MAC_OS.
21462
214632008-01-08 Richard Stallman <rms@gnu.org>
21464
21465 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21466
214672008-01-06 Nick Roberts <nickrob@snap.net.nz>
21468
21469 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21470 menu bar in parentheses.
21471
214722008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21473
21474 * m/7300.h:
21475 * m/acorn.h:
21476 * m/alliant-2800.h:
21477 * m/alliant.h:
21478 * m/alliant1.h:
21479 * m/alliant4.h:
21480 * m/altos.h:
21481 * m/amdahl.h:
21482 * m/apollo.h:
21483 * m/att3b.h:
21484 * m/aviion-intel.h:
21485 * m/aviion.h:
21486 * m/celerity.h:
21487 * m/clipper.h:
21488 * m/cnvrgnt.h:
21489 * m/convex.h:
21490 * m/cydra5.h:
21491 * m/delta88k.h:
21492 * m/dpx2.h:
21493 * m/dual.h:
21494 * m/elxsi.h:
21495 * m/f301.h:
21496 * m/gould-np1.h:
21497 * m/gould.h:
21498 * m/i860.h:
21499 * m/ibmps2-aix.h:
21500 * m/ibmrt-aix.h:
21501 * m/ibmrt.h:
21502 * m/irist.h:
21503 * m/is386.h:
21504 * m/isi-ov.h:
21505 * m/mega68.h:
21506 * m/mg1.h:
21507 * m/news-r6.h:
21508 * m/news-risc.h:
21509 * m/news.h:
21510 * m/nh3000.h:
21511 * m/nh4000.h:
21512 * m/ns16000.h:
21513 * m/ns32000.h:
21514 * m/nu.h:
21515 * m/orion.h:
21516 * m/orion105.h:
21517 * m/paragon.h:
21518 * m/pfa50.h:
21519 * m/plexus.h:
21520 * m/pyramid.h:
21521 * m/pyrmips.h:
21522 * m/sh3el.h:
21523 * m/sps7.h:
21524 * m/sr2k.h:
21525 * m/stride.h:
21526 * m/sun1.h:
21527 * m/sun2.h:
21528 * m/sun3-68881.h:
21529 * m/sun3-fpa.h:
21530 * m/sun3-soft.h:
21531 * m/sun3.h:
21532 * m/sun386.h:
21533 * m/symmetry.h:
21534 * m/tad68k.h:
21535 * m/tahoe.h:
21536 * m/targon31.h:
21537 * m/tek4300.h:
21538 * m/tekxd88.h:
21539 * m/tower32.h:
21540 * m/tower32v3.h:
21541 * m/ustation.h:
21542 * m/wicat.h:
21543 * m/xps100.h:
21544 * s/cxux.h:
21545 * s/cxux7.h:
21546 * s/dgux.h:
21547 * s/dgux4.h:
21548 * s/dgux5-4-3.h:
21549 * s/dgux5-4r2.h:
21550 * s/esix.h:
21551 * s/esix5r4.h:
21552 * s/hiuxmpp.h:
21553 * s/hiuxwe2.h:
21554 * s/iris3-5.h:
21555 * s/iris3-6.h:
21556 * s/isc2-2.h:
21557 * s/isc3-0.h:
21558 * s/isc4-0.h:
21559 * s/isc4-1.h:
21560 * s/newsos5.h:
21561 * s/newsos6.h:
21562 * s/osf1.h:
21563 * s/osf5-0.h:
21564 * s/riscix1-1.h:
21565 * s/riscix12.h:
21566 * s/sco4.h:
21567 * s/sco5.h:
21568 * s/sunos4-0.h:
21569 * s/sunos4-1.h:
21570 * s/sunos413.h:
21571 * s/sunos4shr.h:
21572 * s/umax.h:
21573 * s/unipl5-2.h:
21574 * s/xenix.h:
21575 * cxux-crt0.s:
21576 * unexapollo.c:
21577 * unexconvex.c:
21578 * unexenix.c:
21579 * unexsni.c: Remove files for systems no longer supported.
21580
21581 * m/intel386.h: Remove references to unsupported systems.
21582
21583 * w32.c (get_emacs_configuration): Remove reference to i860.
21584
21585 * sysdep.c: Remove dead code.
21586
215872008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21588
21589 * s/rtu.h:
21590 * m/masscomp.h: Remove files. Platform is obsolete.
21591
215922008-01-04 Michael Albinus <michael.albinus@gmx.de>
21593
21594 * dbusbind.c (Fdbus_method_return): New function.
21595 (xd_read_message): Add the serial number to the event.
21596 (Fdbus_register_method): Activate the function.
21597
215982008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21599
21600 * keyboard.c (read_key_sequence): Fix typo.
21601
216022008-01-03 Michael Albinus <michael.albinus@gmx.de>
21603
21604 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21605 (xd_signature, xd_append_arg): Handle element type detection for
21606 empty arrays.
21607 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21608 SDATA () calls; this must be solved more general.
21609 (Fdbus_register_signal): Use SBYTES instead of strlen.
21610
216112008-01-03 Magnus Henoch <magnus@zemdatav>
21612
21613 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21614 unsigned int for byte values (necessary for big-endian platform).
21615 (Fdbus_call_method): Handle the case of no returned arguments.
21616
216172007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21618
21619 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21620
216212007-12-31 Magnus Henoch <mange@freemail.hu>
21622
21623 * dbusbind.c (xd_signature): Signature of variant is just "v".
21624
216252007-12-30 Michael Albinus <michael.albinus@gmx.de>
21626
21627 * dbusbind.c: Fix several errors and compiler warnings.
21628 Reported by Tom Tromey <tromey@redhat.com>.
21629 (XD_ERROR, XD_DEBUG_MESSAGE)
21630 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21631 (xd_append_arg): Part for basic D-Bus types rewritten.
21632 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21633 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21634 appropriate.
21635 (xd_read_message): Return Qnil. Don't signal an error; it is not
21636 useful during event reading.
21637 (Fdbus_register_signal): Signal an error if the check for
21638 FUNCTIONP fails.
21639 (Fdbus_register_method): New function. The implementation is not
21640 complete, the call of the function signals an error therefore.
21641 (Fdbus_unregister_object): New function, renamed from
21642 Fdbus_unregister_signal. The initial check signals an error, if
21643 the object is not well formed.
21644
216452007-12-30 Richard Stallman <rms@gnu.org>
21646
21647 * textprop.c (get_char_property_and_overlay):
21648 Signal error if POSITION is out of range in a buffer.
21649
216502007-12-29 Martin Rudalics <rudalics@gmx.at>
21651
21652 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21653 because the original parameters are in pure storage now.
21654
216552007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21656
21657 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21658
216592007-12-22 Eli Zaretskii <eliz@gnu.org>
21660
21661 * callint.c (syms_of_callint) <command-history>: Add reference to
21662 history-length in the doc string.
21663
216642007-12-17 Jason Rumney <jasonr@gnu.org>
21665
21666 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21667 before passing as wParam.
21668
216692007-12-22 Michael Albinus <michael.albinus@gmx.de>
21670
21671 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21672 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21673 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21674 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21675 as number.
21676 (Fdbus_call_method): Fix docstring.
21677
216782007-12-21 Michael Albinus <michael.albinus@gmx.de>
21679
21680 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21681 New macros.
21682 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21683 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21684 Simplify.
21685 (xd_signature): New function.
21686 (xd_append_arg): Compute also signatures. Major rewrite.
21687 (xd_retrieve_arg): Make debug messages friendly.
21688 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21689 Check for signatures of arguments.
21690
216912007-12-19 Michael Albinus <michael.albinus@gmx.de>
21692
21693 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21694 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21695 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21696 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21697 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21698 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21699 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21700 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21701 (xd_retrieve_value): Remove. Functionality included in ...
21702 (xd_append_arg): New function.
21703 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21704
217052007-12-16 Michael Albinus <michael.albinus@gmx.de>
21706
21707 * dbusbind.c (top): Include <stdio.h>.
21708 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21709 dbus_message_new_method_call and dbus_message_new_signal.
21710 (Fdbus_register_signal): Rename unique_name to uname.
21711 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21712 non-existing unique name. Fix typos in matching rule. Return an
21713 object which is useful in Fdbus_unregister_signal.
21714 (Fdbus_unregister_signal): Reimplementation, in order to remove
21715 only the corresponding entry.
21716 (Vdbus_registered_functions_table): Change the order of entries.
21717 Apply these changes in xd_read_message and Fdbus_register_signal.
21718
217192007-12-16 Andreas Schwab <schwab@suse.de>
21720
21721 * fileio.c (Finsert_file_contents): Fix overflow check to not
21722 depend on undefined integer overflow.
21723
217242007-12-14 Jason Rumney <jasonr@gnu.org>
21725
21726 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21727 for characters above 127.
21728
217292007-12-13 Jason Rumney <jasonr@gnu.org>
21730
21731 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21732 before dereferencing array.
21733 (lookup_vk_code): Remove zero comparison.
21734
217352007-12-14 Michael Albinus <michael.albinus@gmx.de>
21736
21737 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21738 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21739 Use `unsigned int' instead of `uint'.
21740 (xd_read_message, Fdbus_register_signal): Split expressions into
21741 multiple lines before operators "&&" and "||", according to the
21742 GNU Coding Standards.
21743
217442007-12-14 Eli Zaretskii <eliz@gnu.org>
21745
21746 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21747
217482007-12-12 Juri Linkov <juri@jurta.org>
21749
21750 * buffer.c (Frename_buffer): In interactive spec replace
21751 `read-buffer' with `read-string' that uses `buffer-name-history'
21752 as history, and the current buffer's name as default.
21753
217542007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21755
21756 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21757 manipulating the backtrace manually.
21758 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21759 (struct backtrace, backtrace_list): Remove.
21760 (command_loop_1): Remove dead var `no_direct'.
21761
21762 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21763 preserve non-built-in buffer-local variables.
21764 (Fkill_all_local_variables): Don't re-create&re-set permanent
21765 buffer-local variables.
21766
217672007-12-09 Juri Linkov <juri@jurta.org>
21768
21769 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21770 Lisp code that uses `read-buffer' with current buffer as default.
21771
217722007-12-08 Michael Albinus <michael.albinus@gmx.de>
21773
21774 * dbusbind.c (xd_read_message): Generate an event for every
21775 registered handler. There might be several handlers registered
21776 for the same signal.
21777 (Fdbus_register_signal): Don't overwrite a registration for the
21778 same signal. Add a new registration if handlers are different.
21779 (Vdbus_registered_functions_table): Rework doc string.
21780
217812007-12-07 Michael Albinus <michael.albinus@gmx.de>
21782
21783 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21784 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21785 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21786 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21787 Unify argument lists.
21788 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21789 arguments and hash table keys. Use unique name for service.
21790 (Fdbus_unregister_signal): Remove checks.
21791 (Vdbus_registered_functions_table): Fix doc string.
21792
217932007-12-05 Magnus Henoch <mange@freemail.hu>
21794
21795 * process.c (make_process): Initialize pty_flag to 0.
21796
217972007-12-05 Jason Rumney <jasonr@gnu.org>
21798
21799 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21800 specified XBMs.
21801
218022007-12-05 Richard Stallman <rms@gnu.org>
21803
21804 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21805
218062007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21807
21808 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21809 New variable.
21810 (mac_try_close_socket) [MAC_OSX]: New function.
21811 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21812 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21813
21814 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21815 Use mac_try_close_socket.
21816
218172007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21818
21819 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21820 reloc_base.
21821 (copy_dysymtab): Compute relocation base here.
21822 (rebase_reloc_address) [__ppc64__]: New function.
21823 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21824 changed.
21825
218262007-12-05 Jason Rumney <jasonr@gnu.org>
21827
21828 * w32proc.c (sys_spawnve): Quote args with wildcards.
21829
218302007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21831
21832 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21833 __objc_* sections.
21834 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21835
218362007-12-05 Michael Albinus <michael.albinus@gmx.de>
21837
21838 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21839 Move check for Vdbus_registered_functions_table to
21840 xd_read_queued_messages.
21841 (xd_read_queued_messages): Protect xd_read_message calls by
21842 internal_condition_case_1.
21843
218442007-12-04 Michael Albinus <michael.albinus@gmx.de>
21845
21846 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21847 Qdbus_system_bus and Qdbus_session_bus, respectively.
21848 (Vdbus_intern_symbols): Remove.
21849 (Vdbus_registered_functions_table): New hash table.
21850 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21851 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21852 Rewrite in order to manage registered functions by hash table
21853 Vdbus_registered_functions_table.
21854
218552007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21856
21857 * xterm.c: Update URL to Window Manager Specification in comment.
21858
218592007-12-02 Michael Albinus <michael.albinus@gmx.de>
21860
21861 * config.in (HAVE_DBUS): Add.
21862
21863 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21864 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21865 (obj): Add $(DBUS_OBJ).
21866 (LIBES): Add $(DBUS_LIBS).
21867 (dbusbind.o): New target.
21868
21869 * dbusbind.c: New file.
21870
21871 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21872
21873 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21874 (Qdbus_event): New Lisp symbol.
21875 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21876 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21877 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21878
21879 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21880
218812007-12-01 Richard Stallman <rms@gnu.org>
21882
21883 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21884
218852007-11-30 Jason Rumney <jasonr@gnu.org>
21886
21887 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21888 (w32con_reset_terminal_modes): Clear screen buffer.
21889 (w32_face_attributes): Don't use color indexes that are out of range.
21890 Only reverse the default colors.
21891
21892 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21893 WINDOWSNT.
21894
21895 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21896
218972007-11-29 Jason Rumney <jasonr@gnu.org>
21898
21899 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21900 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21901 if the terminal colors are initialized.
21902 (unspecified_fg, unspecified_bg): Remove unused declarations.
21903
219042007-11-29 Andreas Schwab <schwab@suse.de>
21905
21906 * keyboard.c (apply_modifiers): Fix typo.
21907
219082007-11-29 Richard Stallman <rms@gnu.org>
21909
21910 * keymap.c (Fcurrent_local_map): Doc fix.
21911
219122007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21913
21914 * s/gnu-kfreebsd.h: New file.
21915
219162007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21917
21918 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21919 Don't cast redundantly.
21920
21921 * keyboard.c (KEY_TO_CHAR): New macro.
21922 (parse_modifiers, apply_modifiers): Accept integer arguments.
21923 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21924 for chars and symbol keys.
21925 After doing such remapping, apply function-key-map again.
21926
219272007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21928
21929 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21930 compiled anymore.
21931
219322007-11-26 Andreas Schwab <schwab@suse.de>
21933
21934 * process.c (list_processes_1): Fix indentation level of the
21935 command column.
21936
219372007-11-23 Andreas Schwab <schwab@suse.de>
21938
21939 * editfns.c (Fformat): Handle %c specially since it requires the
21940 argument to be of type int.
21941
219422007-11-23 Markus Triska <markus.triska@gmx.at>
21943
21944 * emacs.c (main): Call init_editfns before init_process, since
21945 init_process sets Vprocess_connection_type depending on OS release.
21946
219472007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21948
21949 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21950 (find_symbol_value): Use do_symval_forwarding.
21951
21952 * data.c (set_internal): Set the value in the `cons-cell' (for
21953 Buffer_Local_values) not only for frame-local variables.
21954
219552007-11-22 Andreas Schwab <schwab@suse.de>
21956
21957 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21958 values to sprintf.
21959 * keymap.c (Fsingle_key_description): Likewise.
21960 * print.c (print_object): Likewise.
21961
219622007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21963
21964 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21965 file for image is nil.
21966
219672007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21968
21969 * term.c: Include stdarg.h.
21970 (fatal): Implement using varargs.
21971 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21972
219732007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21974
21975 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21976 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21977 Update call to buffer_slot_type_mismatch.
21978 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21979 (buffer_slot_type_mismatch): Update.
21980 * buffer.c (buffer_local_types): Remove.
21981 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21982 (defvar_per_buffer): Set the type in the buffer_objfwd.
21983
219842007-11-21 Jason Rumney <jasonr@gnu.org>
21985
21986 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21987 CreateFileMapping returns NULL on failure.
21988
219892007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21990
21991 * search.c (Fset_match_data): Remove the `evaporate' feature.
21992 (unwind_set_match_data): Don't use the `evaporate' feature.
21993
219942007-11-21 Jason Rumney <jasonr@gnu.org>
21995
21996 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21997
21998 * w32console.c (w32con_write_glyphs): Remove unused variables.
21999
220002007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22001
22002 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22003
22004 * s/darwin.h (MULTI_KBOARD): Remove.
22005
22006 * macfns.c (x_create_tip_frame, Fx_create_frame)
22007 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22008
220092007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22010
22011 * buffer.c (Fbuffer_local_value): Remove redundant test.
22012 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22013 than in `current-buffer' to match the comment.
22014 Do the swap using swap_in_global_binding.
22015
22016 * data.c (store_symval_forwarding, set_internal):
22017 * eval.c (specbind): Remove dead code.
22018
22019 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22020 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22021 Since we do not want to see internal Lisp_*fwd objects here.
22022
220232007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22024
22025 * sysdep.c (init_system_name): Use getaddrinfo if available.
22026
22027 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22028 (x_scroll_bar_note_movement): start, end, with, height in struct
22029 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22030
220312007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22032
22033 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22034
220352007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22036
22037 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22038 This undoes Richard's change of 14-Oct-2002.
22039
22040 * alloc.c (allocate_other_vector):
22041 * lisp.h (allocate_other_vector): Remove.
22042
22043 * window.c (struct save_window_data): Move non-lisp data to the end
22044 and make it `int' rather than Lisp_Object.
22045 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22046 Done wrap/unwrap integer values.
22047 (Fset_window_configuration, compare_window_configurations):
22048 Update use of fields to their new types.
22049
22050 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22051 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22052 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22053 (SET_SCROLL_BAR_X_WINDOW): Remove.
22054 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22055 Access the new x_window field directly.
22056 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22057 Don't wrap/unwrap integers into Lisp_Objects.
22058 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22059 (x_scroll_bar_report_motion):
22060 Don't wrap/unwrap integers into Lisp_Objects.
22061 (x_term_init): Use SDATA.
22062 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22063 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22064 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22065 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22066 * xfns.c (x_set_background_color):
22067 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22068 Access the new x_window field directly.
22069
22070 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22071 (allocate_pseudovector): Make non-static.
22072
22073 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22074 (allocate_pseudovector): Declare.
22075 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22076
220772007-11-15 Andreas Schwab <schwab@suse.de>
22078
22079 * editfns.c (Fformat): Correctly format EMACS_INT values.
22080 Also take precision into account when formatting an integer.
22081
22082 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22083
220842007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22085
22086 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22087 (syms_of_keyboard): Defsubr it.
22088
22089 * data.c (swap_in_global_binding): Fix longstanding bug where
22090 store_symval_forwarding was not called with the right second argument,
22091 thus causing objfwd-ing from being dropped.
22092
220932007-11-14 Juanma Barranquero <lekktu@gmail.com>
22094
22095 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22096 (Fx_display_pixel_height, Fx_display_planes)
22097 (Fx_display_color_cells, Fx_server_max_request_size)
22098 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22099 (Fx_display_visual_class, Fx_display_save_under):
22100 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22101 (Fx_display_pixel_height, Fx_display_planes)
22102 (Fx_display_color_cells, Fx_server_max_request_size)
22103 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22104 (Fx_display_mm_height, Fx_display_mm_width)
22105 (Fx_display_backing_store, Fx_display_visual_class)
22106 (Fw32_select_font, Fx_display_save_under):
22107 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22108 (Fx_display_pixel_height, Fx_display_planes)
22109 (Fx_display_color_cells, Fx_server_max_request_size)
22110 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22111 (Fx_display_save_under): Fix typos in docstrings.
22112
221132007-11-14 Juanma Barranquero <lekktu@gmail.com>
22114
22115 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22116 corresponding to deleted entries; they are an implementation detail.
22117 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22118 Remove variables.
22119 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22120 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22121 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22122 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22123 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22124 (Fw32_define_rgb_color, Fw32_load_color_file)
22125 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22126 Fix typos in docstrings.
22127 (Fx_server_version): Reflow docstring.
22128 (Fw32_shell_execute): Doc fixes.
22129
221302007-11-13 Juanma Barranquero <lekktu@gmail.com>
22131
22132 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22133 if w32_parse_hot_key returned nil.
22134
221352007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22136
22137 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22138
221392007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22140
aac0c6e3
MR
22141 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22142
22143 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22144
22145 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22146 Remove W32_SCROLL_BAR_CLICK_EVENT.
22147
22148 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22149 Add MULTIMEDIA_KEY_EVENT.
22150
22151 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22152 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22153 (make_lispy_event) [WINDOWSNT]: Use it to translate
22154 MULTIMEDIA_KEY_EVENT.
22155
22156 * w32term.h (WM_APPCOMMAND): Define if not already.
22157 (GET_APPCOMMAND_LPARAM): Likewise.
22158
22159 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22160 WM_APPCOMMAND.
22161
22162 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22163 (syms_of_w32fns): Export and initialize it.
22164 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22165
221662007-11-09 Chong Yidong <cyd@stupidchicken.com>
22167
22168 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22169 twice.
22170
22171 * xdisp.c (handle_face_prop): Fix last change.
22172
221732007-11-09 Richard Stallman <rms@gnu.org>
22174
22175 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22176 not just for after-strings and before-strings.
22177 Call face_for_overlay_string and pass the overlay to it.
22178 (handle_display_prop): Determine whether property came from an overlay.
22179 Pass OVERLAY arg to handle_single_display_spec.
22180 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22181 (load_overlay_strings): Fill in it->string_overlays.
22182 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22183
22184 * xfaces.c (face_for_overlay_string): Function renamed from
22185 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22186
22187 * dispextern.h (struct it): New elt string_overlays.
22188 New elt from_overlay, also in stack.
22189 Rearrange a few elements.
22190 (face_for_overlay_string): Decl renamed from
22191 face_at_buffer_position_no_overlays, and add argument.
22192
221932007-11-09 Richard Stallman <rms@gnu.org>
22194
22195 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22196 to get the base face for an overlay string.
22197
22198 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22199
22200 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22201
22202 * xdisp.c (handle_stop): Move some code out of loop.
22203
222042007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22205
22206 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22207 Fix conversion from Lisp object to ATSUFontID.
22208
222092007-11-09 Jason Rumney <jasonr@gnu.org>
22210
22211 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22212
222132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22214
22215 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22216 Don't assume regions are aligned to page boundary.
22217 (print_load_command_name): Add LC_UUID if defined.
22218
222192007-11-09 Richard Stallman <rms@gnu.org>
22220
22221 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22222
222232007-11-07 Jason Rumney <jasonr@gnu.org>
22224
22225 * s/windows95.h: Remove.
22226
222272007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22228
22229 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22230 abort with a message on unhandled store_type values.
22231
222322007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22233
22234 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22235 Remove HAVE_X11R5 and HAVE_X11R4.
22236
222372007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22238
22239 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22240
222412007-11-01 Johan Bockgård <bojohan@gnu.org>
22242
22243 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22244 Don't set s->stippled_p here, since it has already been set by
22245 x_set_glyph_string_gc from x_draw_glyph_string.
22246
222472007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22248
22249 * sunfns.c: Remove file.
22250
22251 * m/sun386.h:
22252 * m/sun2.h:
22253 * m/sparc.h: Remove Sun windows code.
22254
222552007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22256
22257 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22258 (init_keyboard): Set current_kboard's window-system to nil.
22259 (tty_read_avail_input): Typo.
22260 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22261
222622007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22263
22264 * s/usg5-4.h:
22265 * s/usg5-3.h:
22266 * s/ptx.h:
22267 * m/is386.h:
22268 * m/ibmps2-aix.h:
22269 * Makefile.in: Remove all mentions of X10.
22270
22271 * dispnew.c (syms_of_display): Don't mention version 10.
22272
222732007-10-28 Juanma Barranquero <lekktu@gmail.com>
22274
22275 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22276 ($(BLD)/abbrev.$(O)): Remove.
22277
222782007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22279
22280 Rewrite abbrev.c in Elisp.
22281 * image.c (Qcount): Don't declare as extern.
22282 (syms_of_image): Initialize and staticpro `Qcount'.
22283 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22284 * emacs.c (main): Don't call syms_of_abbrev.
22285 * Makefile.in (obj): Remove abbrev.o.
22286 (abbrev.o): Remove.
22287 * abbrev.c: Remove.
22288
222892007-10-26 Martin Rudalics <rudalics@gmx.at>
22290
22291 * window.c (window_min_size_2): Don't count header-line.
22292
222932007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22294
22295 * frame.h (struct frame): Move all bit fields after the first bit
22296 field to take advantage of the available space. Group all the
22297 chars together to reduce wasted space due to padding.
22298
222992007-10-26 Juanma Barranquero <lekktu@gmail.com>
22300
22301 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22302
22303 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22304 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22305 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22306 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22307 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22308 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22309 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22310 (last_marked, mark_object_loop_halt): Make static.
22311
22312 * frame.c (syms_of_frame) <delete-frame-functions>:
22313 Fix typo in docstring.
22314
223152007-10-25 Juanma Barranquero <lekktu@gmail.com>
22316
22317 * w32.c (init_environment): Fix tiny memory leak.
22318 (w32_get_resource): Remove unused variable `ok'.
22319
223202007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22321
22322 Make `window-system' into a keyboard-local variable (rather than
22323 frame-local as done originally by multi-tty).
22324
22325 * keyboard.h (struct kboard): Add Vwindow_system.
22326 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22327 (mark_kboards): Mark Vwindow_system.
22328
22329 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22330 (init_display): Don't set the obsolete `window-system' frame-param.
22331
22332 * xterm.c (x_term_init):
22333 * w32term.c (w32_create_terminal):
22334 * term.c (init_tty): Set Vwindow_system.
22335 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22336 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22337
22338 * xfns.c (Fx_create_frame, x_create_tip_frame):
22339 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22340 * macfns.c (Fx_create_frame):
22341 Don't set the obsolete `window-system' frame-param.
22342
22343 * frame.h (Qwindow_system): Remove.
22344 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22345 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22346
223472007-10-24 Richard Stallman <rms@gnu.org>
22348
22349 * frame.c (x_figure_window_size): For fullscreen case,
22350 set USPosition | PPosition without clobbering rest of window_prompting.
22351
22352 * keyboard.c (Fcurrent_idle_time): Doc fix.
22353
22354 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22355
223562007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22357
22358 * process.c (unwind_request_sigio): Only define if __ultrix__.
22359
22360 * callproc.c (child_setup): Remove spurious *.
22361
22362 * lisp.h (Fget_text_property): Declare.
22363 (have_menus_p): Declare it here rather than in sys-dep header files.
22364 * macterm.h (have_menus_p):
22365 * msdos.h (have_menus_p):
22366 * xterm.h (have_menus_p): Remove.
22367
22368 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22369 (Fmake_variable_frame_local): Just check the variable's const-ness
22370 rather than checking nil or t.
22371
223722007-10-22 Jason Rumney <jasonr@gnu.org>
22373
22374 * w32fns.c: Include math.h.
22375 (w32_abort): Declaration moved to nt/config.nt.
22376
22377 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22378 (abort): Redefinition moved to nt/config.nt.
22379
22380 * m/windowsnt.h: Remove.
22381
223822007-10-22 Juanma Barranquero <lekktu@gmail.com>
22383
22384 * emacs.c (Fdump_emacs): Fix typo in message.
22385 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22386 <installation-directory>: Reflow docstring.
22387
223882007-10-22 Juri Linkov <juri@jurta.org>
22389
22390 * minibuf.c: Allow minibuffer default to be a list of default values.
22391 With empty input use the first element of this list as returned default.
22392 (string_to_object)
22393 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22394 (read_minibuf): If defalt is cons, set histstring to its car.
22395 (Fread_string): If default_value is cons, set val to its car.
22396 (Fread_buffer): If def is cons, use its car.
22397 (Fcompleting_read): If defalt is cons, set val to its car.
22398
223992007-10-21 Michael Albinus <michael.albinus@gmx.de>
22400
22401 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22402
224032007-10-20 Juanma Barranquero <lekktu@gmail.com>
22404
22405 * doc.c (Fdocumentation): Check for advice in all cases.
22406
224072007-10-19 Chong Yidong <cyd@stupidchicken.com>
22408
22409 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22410
224112007-10-19 Richard Stallman <rms@gnu.org>
22412
22413 * doc.c (Fdocumentation): Check for and handle an advised function.
22414
224152007-10-19 Juanma Barranquero <lekktu@gmail.com>
22416
22417 * process.c (Fset_process_filter): Doc fix.
22418
224192007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22420
22421 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22422 which caused key-translation-map to applied repeatedly (thus breaking
22423 double-mode).
22424
224252007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22426
22427 * xselect.c (x_own_selection, x_handle_selection_clear)
22428 (x_clear_frame_selections):
22429 * w32menu.c (list_of_panes, list_of_items):
22430 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22431 * textprop.c (validate_plist, interval_has_all_properties)
22432 (interval_has_some_properties, interval_has_some_properties_list)
22433 (add_properties, text_property_list):
22434 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22435 * minibuf.c (Fassoc_string):
22436 * macselect.c (x_own_selection, x_clear_frame_selections)
22437 (Fx_disown_selection_internal):
22438 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22439 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22440
224412007-10-17 Chong Yidong <cyd@stupidchicken.com>
22442
22443 * process.c: Link to libs for calling res_init() if available.
22444 (Fmake_network_process): Call res_init() before getaddrinfo or
22445 gethostbyname, if possible.
22446
224472007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22448
22449 * lread.c (read1): Set pvectype for char_tables.
22450
22451 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22452 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22453 Add type checks.
22454 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22455
22456 * alloc.c (free_misc): Use XMISCTYPE.
22457 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22458
224592007-10-17 Glenn Morris <rgm@gnu.org>
22460
22461 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22462 (syms_of_minibuf): Add Qcompletion_ignore_case.
22463 * dired.c (Qcompletion_ignore_case): Change to external.
22464 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22465 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22466 (Fread_file_name): Use it rather than intern'ing.
22467
22468 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22469 (Fread_coding_system): Ignore case of user input.
22470
224712007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22472
22473 * xdisp.c (handle_display_prop): Ignore display specs after
22474 replacing one when string text is being replaced.
22475 (handle_single_display_spec): Pretend as if characters with display
22476 property haven't been consumed only when buffer text is being replaced.
22477
224782007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22479
22480 * xfns.c (Fx_create_frame, Fx_display_list):
22481 * window.c (window_fixed_size_p, enlarge_window)
22482 (shrink_window_lowest_first):
22483 * macterm.c (init_font_name_table):
22484 * macfns.c (Fx_create_frame, Fx_display_list):
22485 * lread.c (close_load_descs):
22486 * keyboard.c (read_char_x_menu_prompt):
22487 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22488 * coding.c (code_convert_region_unwind): Test the type of an object
22489 rather than just !NILP before extracting data from it.
22490
22491 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22492
22493 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22494 (XMISCANY): New macro.
22495 (XMISCTYPE): Use it.
22496 (struct Lisp_Misc_Any): New type.
22497 (union Lisp_Misc): Use it.
22498 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22499 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22500 (find_symbol_value, set_internal, default_value, Fset_default)
22501 (Fmake_variable_buffer_local, Fmake_local_variable)
22502 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22503 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22504 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22505 * alloc.c (allocate_buffer): Set the size and tag.
22506 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22507 Use XMISCANY.
22508 (die): Follow the GNU convention for error messages.
22509 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22510 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22511 tag any more.
22512 (set_buffer_internal_1):
22513 * frame.c (store_frame_param):
22514 * eval.c (specbind):
22515 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22516
22517 * doc.c (Fsnarf_documentation): Simplify.
22518
225192007-10-14 Juanma Barranquero <lekktu@gmail.com>
22520
22521 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22522 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22523
225242007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22525
22526 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22527
225282007-10-14 Juanma Barranquero <lekktu@gmail.com>
22529
22530 * eval.c (do_autoload): Don't save autoloads.
22531
22532 * data.c (Ffset): Save autoload of the function being set.
22533
225342007-10-07 John Paul Wallington <jpw@pobox.com>
22535
22536 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22537 parameter before setting up faces.
22538
225392007-10-13 Eli Zaretskii <eliz@gnu.org>
22540
22541 * ccl.c (Fregister_code_conversion_map):
22542 * keyboard.c (append_tool_bar_item): Reformat last change.
22543
22544 * lisp.h (eabs): Rename from `abs'. All callers changed.
22545
225462007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22547
22548 * buffer.c (add_overlay_mod_hooklist):
22549 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22550 * fontset.c (make_fontset):
22551 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22552 (append_tool_bar_item):
22553 * macmenu.c (grow_menu_items):
22554 * w32menu.c (grow_menu_items):
22555 * xmenu.c (grow_menu_items): Use larger_vector.
22556
225572007-10-13 Eli Zaretskii <eliz@gnu.org>
22558
22559 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22560 selected frame'' on MSDOS).
22561
225622007-10-12 Martin Rudalics <rudalics@gmx.at>
22563
22564 * frame.c (Qexplicit_name): New variable.
22565 (x_report_frame_params): Report it in parameter alist.
22566 (syms_of_frame): Intern and staticpro it.
22567
225682007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22569
22570 * macfns.c (x_create_tip_frame): Set terminal for frame.
22571
225722007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22573
22574 * frame.c (Qenvironment): Remove.
22575 (syms_of_frame) <Qenvironment>: Don't initialize.
22576 (Fdelete_frame): Don't treat the `environment' param specially.
22577 * frame.h (Qenvironment): Don't declare.
22578 * callproc.c (set_initial_environment): Don't set unused frame param.
22579
22580 * frame.c (Fframe_with_environment): Remove.
22581 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22582
22583 * lisp.h (Fframe_with_environment): Don't declare.
22584
225852007-10-10 Juanma Barranquero <lekktu@gmail.com>
22586
22587 * indent.c (indent_tabs_mode, last_known_column)
22588 (last_known_column_modified): Make static.
22589 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22590
225912007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22592
22593 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22594
225952007-10-09 Jason Rumney <jasonr@gnu.org>
22596
22597 * w32term.c (x_set_window_size): Disable code that attempts to tell
22598 Lisp code about a size change before it actually happens.
22599
226002007-10-09 Richard Stallman <rms@gnu.org>
22601
22602 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22603 return HANDLED_RETURN.
22604
226052007-10-08 Martin Rudalics <rudalics@gmx.at>
22606
22607 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22608 when there's an unread command event.
22609
22610 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22611 window autoselection act appropriately when leaving selected frame.
22612 (syms_of_frame): Initialize focus_follows_mouse.
22613 * frame.h (focus_follows_mouse): Extern it.
22614 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22615 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22616 * msdos.c (dos_rawgetc): Likewise.
22617 * w32term.c (w32_read_socket): Likewise.
22618 * xterm.c (handle_one_xevent): Likewise.
22619 * xdisp.c (syms_of_xdisp): In doc-string of
22620 mouse-autoselect-window mention focus-follows-mouse.
22621
226222007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22623
22624 * macterm.c (mac_load_query_font): Fix missing return value.
22625 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22626 Add BLOCK_INPUT.
22627
226282007-10-08 Richard Stallman <rms@gnu.org>
22629
22630 * xdisp.c (get_window_cursor_type): Implement documented behavior
22631 for cursor-in-non-selected-windows = t.
22632
226332007-10-08 Jason Rumney <jasonr@gnu.org>
22634
22635 * w32.c (w32_get_resource): Always close registry keys.
22636
226372007-10-08 Jason Rumney <jasonr@gnu.org>
22638
22639 * makefile.w32-in (LIBS): Add COMCTL32.
22640
22641 * w32fns.c (globals_of_w32fns): Init common controls.
22642
226432007-10-08 Richard Stallman <rms@gnu.org>
22644
22645 * image.c (our_memory_buffer): Rename from omfib_buffer.
22646
226472007-10-08 Richard Stallman <rms@gnu.org>
22648
22649 * buffer.c (Foverlays_at): Doc fix.
22650
226512007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22652
22653 * fns.c (Fplist_put): Preserve uneven tail data.
22654
226552007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22656
22657 * termhooks.h (enum event_kind): Remove trailing comma.
22658
22659 * frame.h (enum): Remove trailing comma.
22660
226612007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22662
22663 * w32proc.c (delete_child): Don't terminate threads of zombies.
22664
226652007-10-08 Martin Rudalics <rudalics@gmx.at>
22666
22667 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22668
22669 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22670 last-repeatable-command.
22671 (init_kboard): Initialize Vlast_repeatable_command.
22672 (command_loop_1): Set it to real_this_command unless that was
22673 bound to an input event.
22674 (mark_kboards): Mark it.
22675
226762007-10-08 Richard Stallman <rms@gnu.org>
22677
22678 * eval.c (condition-case): Doc fix.
22679
226802007-10-08 Masatake YAMATO <jet@gyve.org>
22681
22682 * xfaces.c (tty_supports_face_attributes_p): Fix code
22683 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22684 was copied and not edited.
22685
226862007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22687
22688 Add new `input-decode-map' keymap and use it for terminal
22689 escape sequences.
22690 * keyboard.h (struct kboard): Add Vinput_decode_map.
22691 Remove Vlocal_key_translation_map.
22692 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22693 (init_kboard): Init input-decode-map.
22694 Replace local-key-translation-map back with key-translation-map.
22695 (syms_of_keyboard): Declare input-decode-map.
22696 Remove local-key-translation-map. Update docstrings.
22697 (mark_kboards): Mark Vinput_decode_map.
22698 Don't mark Vlocal_key_translation_map.
22699 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22700 Replace local-key-translation-map back with key-translation-map.
22701 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22702 Bind in input-decode-map rather than function-key-map.
22703
22704 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22705 This was made redundant by the previous introduction of XSETPVECTYPE.
22706
227072007-10-09 Richard Stallman <rms@gnu.org>
22708
22709 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22710
227112007-09-29 Richard Stallman <rms@gnu.org>
22712
22713 * eval.c (internal_condition_case_2, internal_condition_case_1)
22714 (internal_condition_case): Reenable abort if x_catching_errors ()
22715 to see if that really happens and why.
22716
227172007-10-06 Andreas Schwab <schwab@suse.de>
22718
22719 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22720
227212007-10-04 Juanma Barranquero <lekktu@gmail.com>
22722
22723 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22724
227252007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22726
22727 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22728
227292007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22730
22731 * window.h (struct window):
22732 * window.c (struct save_window_data, struct saved_window):
22733 * termhooks.h (struct terminal):
22734 * process.h (struct Lisp_Process):
22735 * frame.h (struct frame):
22736 * buffer.h (struct buffer):
22737 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22738 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22739 The size field of (pseudo)vectors is now unsigned.
22740 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22741
22742 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22743 Turn `count' into an integer.
22744
22745 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22746 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22747 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22748 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22749 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22750
22751 * alloc.c (allocate_pseudovector): New fun.
22752 (ALLOCATE_PSEUDOVECTOR): New macro.
22753 (allocate_window, allocate_terminal, allocate_frame)
22754 (allocate_process): Use it.
22755 (mark_vectorlike): New function.
22756 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22757 (mark_terminals): Use it.
22758 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22759 (Fmake_byte_code): Use XSETPVECTYPE.
22760
22761 * frame.c (Fframe_parameters): Minor simplification.
22762
22763 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22764
22765 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22766
22767 * buffer.c (Fget_buffer_create, init_buffer_once):
22768 * lread.c (defsubr):
22769 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22770
22771 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22772 defined differently in the m/*.h files.
22773 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22774 (XSETPVECTYPE): New macro.
22775 (XSETPSEUDOVECTOR): Use it.
22776
22777 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22778 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22779
22780 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22781 * lread.c (defvar_per_buffer):
22782 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22783
22784 * window.c (candidate_window_p): Only consider as visible frames that
22785 are on the same terminal.
22786
22787 * m/ibms390x.h (MARKBIT): Remove unused macro.
22788
227892007-10-01 Juanma Barranquero <lekktu@gmail.com>
22790
22791 * lread.c (Fload): Fix typo in docstring.
22792
227932007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22794
22795 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22796 of a non-zero value can't yield zero.
22797
227982007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22799
22800 * term.c (term_clear_mouse_face, term_mouse_highlight)
22801 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22802
22803 * print.c (safe_debug_print): Use XHASH.
22804
22805 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22806 Lisp elements such as tags.
22807 (XHASH): New macro.
22808 (EQ): Use it.
22809 (SREF, SSET, STRING_COPYIN): Use SDATA.
22810 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22811
22812 * alloc.c (mark_terminal): Remove left-over declaration.
22813 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22814 (allocate_vectorlike): Remove type argument. Adjust callers.
22815 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22816 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22817
22818 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22819 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22820 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22821 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22822 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22823 Use them.
22824
22825 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22826 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22827 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22828
228292007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22830
22831 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22832 loaded by default.
22833
228342007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22835
22836 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22837 on this tty.
22838 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22839
22840 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22841 Update all users.
22842 (handle_one_term_event): Use Gpm_DrawPointer.
22843 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22844 Signal errors instead of returning nil. Always return nil.
22845 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22846 Make it a noop if gpm-mouse was not activated.
22847 (syms_of_term): Update names.
22848
228492007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22850
22851 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22852 (init_sys_modes): Check that gpm_tty is the current tty.
22853
22854 * alloc.c (allocate_terminal): Set the vector size to only count the
22855 lisp fields. Initialize those to nil.
22856 (mark_object): Don't treat terminals specially.
22857 (mark_terminal): Remove.
22858 (mark_terminals): Use mark_object instead.
22859
22860 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22861 the GC to the beginning.
22862
22863 * indent.h:
22864 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22865
22866 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22867
228682007-09-25 Jason Rumney <jasonr@gnu.org>
22869
22870 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22871
22872 * w32console.c (create_w32cons_output): Remove.
22873
22874 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22875
22876 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22877 (reset_sys_modes): Use reset_terminal_modes_hook.
22878
228792007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22880
22881 * eval.c (do_autoload): Don't output any message.
22882
228832007-09-24 Juri Linkov <juri@jurta.org>
22884
22885 * emacs.c (standard_args): Change priority of "--no-splash"
22886 from 40 to 3. Add "--no-desktop" with the same priority.
22887
228882007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22889
22890 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22891 and optimize the case where they are all 1.
22892
228932007-09-23 Johannes Weiner <hannes@saeurebad.de>
22894
22895 * lisp.h (abs): Define if not defined.
22896 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22897 Don't define `abs', since it's defined in lisp.h.
22898
228992007-09-22 Eli Zaretskii <eliz@gnu.org>
22900
22901 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22902 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22903 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22904 (init_tty): Use DEV_TTY instead of "/dev/tty".
22905 [WINDOWSNT]: No need to protect from NAME arg being null.
22906
229072007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22908
22909 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22910 up the tty state.
22911
229122007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22913
22914 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22915 (gpm_tty): Change its type.
22916 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22917 (gpm_tty): Change its type and initialize it.
22918 (Fterm_open_connection): Check the frame is indeed a tty.
22919 Use the new gpm_tty.
22920 (Fterm_close_connection): Use the new gpm_tty.
22921 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22922 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22923
229242007-09-21 Juanma Barranquero <lekktu@gmail.com>
22925
22926 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22927 underline_color, to draw strike-through.
22928
229292007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22930
22931 * lisp.h (allocate_terminal): Declare.
22932
22933 * window.c (candidate_window_p): Consider frames that are being placed
22934 by the user as somewhere between visible and iconified.
22935 (window_loop): Prefer windows on the current frame.
22936 (Fselect_window): Move the use of select-frame to the beginning so we
22937 can just delegate all the work (it'll call us back anyway).
22938
22939 * frame.c (Qdisplay_environment_variable):
22940 * frame.h (Qdisplay_environment_variable): Delete.
22941
22942 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22943 of the first arg, since that value may be a union.
22944
22945 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22946 parameter rather than Qdisplay_environment_variable. If all else
22947 fails, look for DISPLAY in initial-environment.
22948
229492007-09-21 Glenn Morris <rgm@gnu.org>
22950
22951 * Makefile.in (emacstool): Remove target.
22952 (lisp, shortlisp): Remove termdev.elc.
22953
229542007-09-21 Markus Triska <markus.triska@gmx.at>
22955
22956 * xterm.c (x_delete_display): Compile session management conditionally.
22957
229582007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22959
22960 * callproc.c (getenv_internal_1): New function.
22961 (getenv_internal): Use it.
22962 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22963
22964 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22965 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22966 (Fset_terminal_parameter): Work with dead terminals as well.
22967 (Fmodify_terminal_parameters): Remove.
22968
22969 * terminal.c (get_terminal): Handle terminals.
22970 Make sure the terminal returned is live.
22971 (create_terminal): Use allocate_terminal.
22972 (mark_terminals): Move to alloc.c.
22973 (delete_terminal): Use terminal->name as liveness status.
22974 NULL out fields after freeing their contents.
22975 Don't deallocate the object.
22976 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22977 rather than an int.
22978 (Fterminal_live_p): Accept non-integer arguments.
22979 (Fterminal_list): Return terminal objects rather than an ints.
22980
22981 * alloc.c (enum mem_type): New member for `terminal' objects.
22982 (allocate_terminal): New function.
22983 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22984 Handle terminals.
22985 (mark_terminal): New fun.
22986 (mark_terminals): Move from terminal.c.
22987
22988 * term.c (get_tty_terminal): Don't treat output_initial specially.
22989 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22990 (delete_tty): Use terminal->name as liveness status.
22991
22992 * termhooks.h (struct terminal): Make it into a pseudovector.
22993 Remove `deleted' replaced by checking `name's nullness.
22994
22995 * print.c (print_object): Handle terminals.
22996
22997 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22998 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22999
23000 * frame.c (make_terminal_frame):
23001 * keyboard.c (tty_read_avail_input):
23002 * w32term.c (x_delete_terminal):
23003 * xfns.c (Fx_create_frame, x_create_tip_frame):
23004 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23005
230062007-09-20 Glenn Morris <rgm@gnu.org>
23007
23008 * process.c (Fmake_network_process): Doc fix.
23009
230102007-09-19 Jason Rumney <jasonr@gnu.org>
23011
23012 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23013
230142007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23015
23016 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23017 Fix a C warning regarding variable constness.
23018
23019 * xterm.c (handle_one_xevent): Fix a C warning.
23020
230212007-09-18 Jason Rumney <jasonr@gnu.org>
23022
23023 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23024
230252007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23026
23027 * gtkutil.c (gdpy_def): New variable.
23028 (xg_initialize): Initialize gdpy_def.
23029 (xg_display_close): If no other display exists, set gdpy_def to a
23030 new connection.
23031
230322007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23033
23034 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23035 when we have no file name for the icon.
23036 (xg_tool_bar_expose_callback): Remove.
23037 (xg_create_tool_bar): Don't connect expose signal to
23038 xg_tool_bar_expose_callback.
23039 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23040
230412007-09-16 Andreas Schwab <schwab@suse.de>
23042
23043 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23044 values instead of zapping them.
23045
230462007-09-14 Glenn Morris <rgm@gnu.org>
23047
23048 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23049 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23050 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23051 scope and rename to omfib_buffer for clarity.
23052 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23053
230542007-09-14 Kenichi Handa <handa@m17n.org>
23055
23056 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23057
230582007-09-13 Jason Rumney <jasonr@gnu.org>
23059
23060 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23061
23062 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23063
23064 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23065 (mac_term_init): Call here instead, passing rif.
23066
230672007-09-13 Glenn Morris <rgm@gnu.org>
23068
23069 * s/hpux.h: No longer define `static' as nothing.
23070
230712007-09-13 Johan Bockgård <bojohan@gnu.org>
23072
23073 * callint.c (Fcall_interactively): Remove unused var `fun'.
23074
230752007-09-12 Romain Francoise <romain@orebokech.com>
23076
23077 * window.c (prefer_window_split_horizontally, display_buffer):
23078 Revert 2007-09-08 change.
23079
230802007-09-12 Glenn Morris <rgm@gnu.org>
23081
23082 * alloca.c: Remove file.
23083 * Makefile.in (alloca): Do not undef.
23084 (allocaobj, alloca.o): Remove.
23085 (otherobj): Remove allocaobj.
23086 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23087 * regex.c (C_ALLOCA): Remove all references and code that was only
23088 used when this was defined.
23089 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23090 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23091 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23092
23093 * Makefile.in (SOURCES, unlock, relock): Delete.
23094
23095 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23096 (menu_grab_callback): All uses changed.
23097
23098 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23099 (x_reply_selection_request): All uses changed.
23100
231012007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23102
23103 * lread.c (load_warn_old_style_backquotes): Change message to look
23104 better when it appears in the middle of byte-compiler messages.
23105
231062007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23107
23108 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23109
23110 * xterm.c (x_create_terminal): Add comment.
23111
23112 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23113
231142007-09-10 Richard Stallman <rms@gnu.org>
23115
23116 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23117
231182007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23119
23120 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23121 (DEFUN): Document `intspec', use it instead of `prompt'.
23122
23123 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23124
23125 * data.c (Finteractive_form): If the interactive specification starts
23126 with a `(', use it as a Lisp form.
23127
23128 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23129 name and file modes.
23130
23131 * callint.c (Fcall_interactively): Comment fixes.
23132
231332007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23134
23135 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23136 and compiled functions.
23137
231382007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23139
23140 * window.c (prefer_window_split_horizontally): New variable.
23141 (display_buffer): Consider splitting window horizontally depending
23142 on prefer_window_split_horizontally.
23143
231442007-09-08 Eli Zaretskii <eliz@gnu.org>
23145
23146 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23147
231482007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23149
23150 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23151
23152 * frame.c (x_set_frame_parameters): Check number is positive before
23153 using XFASTINT.
23154
23155 * window.c (freeze_window_start): Don't presume selected_window holds
23156 a window object.
23157 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23158
231592007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23160
23161 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23162
231632007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23164
23165 * window.c (Vsplit_window_preferred_function): New var.
23166 (Fdisplay_buffer): Use it.
23167 (syms_of_window): Export, and initialize it.
23168
231692007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23170
23171 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23172
231732007-09-06 Glenn Morris <rgm@gnu.org>
23174
23175 * gtkutil.c (menu_grab_callback) <cnt>:
23176 * xselect.c (x_reply_selection_request) <cnt>: Move static
23177 variable to file scope.
23178
231792007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23180
23181 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23182 consistent values of selected_frame and selected_window.
23183
231842007-09-04 Jason Rumney <jasonr@gnu.org>
23185
23186 * w32console.c (initialize_w32_display): Zero unused hooks.
23187
231882007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23189
23190 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23191 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23192
231932007-09-04 Jason Rumney <jasonr@gnu.org>
23194
23195 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23196 in w32console.c. Set up input. Remove XXX comments that have been
23197 confirmed as correct.
23198
23199 * s/ms-w32.h (MULTI_KBOARD): Define.
23200
23201 * w32console.c (one_and_only_w32cons): Remove.
23202 (initialize_w32_display): Take terminal argument.
23203
23204 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23205 initialize_w32_display.
23206 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23207
23208 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23209
23210 * keyboard.c (discard_mouse_events): Discard it.
23211 (make_lispy_event): Translate it to a lisp event.
23212 (lispy_wheel_names): Add wheel-left and right events.
23213 (syms_of_keyboard): Enlarge wheel_syms.
23214
23215 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23216 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23217
23218 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23219
23220 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23221 from WM_MOUSEHWHEEL.
23222 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23223
23224 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23225 terminal.
23226
23227 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23228 keyboard for the terminal.
23229
232302007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23231
23232 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23233 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23234 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23235 and resume-tty-function to resume-tty-hook.
23236 (Fsuspend_tty, Fresume_tty): Use new names.
23237
232382007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23239
23240 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23241 if it starts with "n:".
23242
232432007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23244
23245 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23246
232472007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23248
23249 * frame.h:
23250 * frame.c (Qterm_environment_variable): Remove.
23251 (syms_of_frame): Don't init and staticpro it.
23252
23253 * callproc.c (getenv_internal): Remove special case for $TERM.
23254
23255 * callproc.c (Vinitial_environment): New variable.
23256 (set_initial_environment): Initialize it.
23257 (syms_of_callproc): Declare it.
23258 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23259 TERM under which a process runs is never related to the TERM in which
23260 Emacs is running.
23261
232622007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23263
23264 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23265 * s/darwin.h: ... do it here.
23266
232672007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23268
23269 * lisp.h (set_initial_environment): Rename from set_global_environment.
23270
23271 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23272 removed by mistake on the multi-tty branch.
23273
23274 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23275 (Fmodify_frame_parameters): Return a value.
23276
23277 * image.c (png_load): Comment-out var only used in commented-out code.
23278
23279 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23280 before passing it to mark_object.
23281
23282 * xfaces.c (internal_resolve_face_name): Return a value.
23283 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23284
23285 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23286 (x_icon): Comment-out var only used in commented-out code.
23287
232882007-08-29 Romain Francoise <romain@orebokech.com>
23289
23290 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23291 QUIT hasn't been provided.
23292
232932007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23294
23295 * callproc.c (child_setup, getenv_internal): Use the
23296 display-environment-variable and term-environment-variable frame params.
23297 (set_initial_environment): Initialise Vprocess_environment.
23298
23299 * config.in: Disable multi-keyboard support on a mac.
23300
23301 * frame.c (Qterm_environment_variable)
23302 (Qdisplay_environment_variable): New variables.
23303 (syms_of_frame): Intern and staticpro them.
23304 (Fmake_terminal_frame): Disable output method test.
23305
23306 * frame.h: Declare them here.
23307
23308 * macfns.c (x_set_mouse_color): Get rif from the frame.
23309 (x_set_tool_bar_lines): Don't use updating_frame.
23310 (mac_window): Add 2 new parameters for consistency with other systems.
23311 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23312 frame parameters following what is done in X11 and w32. Don't use
23313 FRAME_MAC_DISPLAY_INFO.
23314 (Fx_open_connection, start_hourglass): Remove window-system check.
23315 (x_create_tip_frame): Get the keyboard from the terminal.
23316
23317 * macmenu.c: Reorder includes.
23318 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23319
23320 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23321 terminal parameter.
23322 (x_clear_frame): Add a frame parameter.
23323 (note_mouse_movement): Get rif from the frame.
23324 (mac_term_init): Initialize the terminal.
23325 (mac_initialize): Make static and move terminal initialization ...
23326 (mac_create_terminal): ... to this new function.
23327
23328 * macterm.h (struct mac_display_info): Add terminal.
23329 (mac_initialize): Delete declaration.
23330
23331 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23332
23333 * sysdep.c: Comment out text after #endif.
23334
23335 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23336 is defined. Better initialize ttys in windows. Use terminal
23337 specific mouse_position_hook.
23338
23339 * termhooks.h (union display_info): Add mac_display_info.
23340
23341 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23342 Set the default minibuffer frame, window_system and the rest of the
23343 frame parameters following what is done in X11.
23344
23345 * w32term.c (w32_initialize): Make static.
23346
23347 * xselect.c (x_handle_selection_clear): Only access
23348 terminal->kboard when MULTI_KBOARD is defined.
23349
23350 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23351 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23352
233532007-08-29 Jason Rumney <jasonr@gnu.org>
23354
23355 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23356 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23357
23358 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23359 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23360
23361 * keyboard.c (restore_kboard_configuration): Only define when
23362 MULTI_KBOARD defined.
23363
23364 * makefile.w32-in: Update dependancies from Makefile.in.
23365 (OBJ1): Add terminal.$(O)
23366
23367 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23368 Don't define function body.
23369 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23370
23371 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23372
23373 * w32.c (request_sigio, unrequest_sigio): Remove.
23374
23375 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23376 (w32con_clear_frame, w32con_clear_end_of_line)
23377 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23378 (w32con_delete_glyphs, w32con_set_terminal_window)
23379 (scroll_line, w32_sys_ring_bell): Add frame arg.
23380 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23381 Add terminal arg.
23382 (PICK_FRAME): Remove.
23383 (w32con_write_glyphs): Use frame specific terminal coding.
23384 (one_and_only_w32cons): New global variable.
23385 (initialize_w32_display): Use it for storing hooks.
23386 (create_w32cons_output): New function.
23387
23388 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23389 arg a frame.
23390
23391 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23392 Set window_system.
23393 (x_set_tool_bar_lines): Don't use updating_frame.
23394 (Fx_create_frame): Set terminal and ref count.
23395 (Fx_open_connection): Remove window-system check.
23396
23397 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23398
23399 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23400 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23401 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23402 Add frame arg.
23403 (x_delete_terminal, w32_create_terminal): New functions.
23404 (w32_term_init): Create a terminal.
23405 (w32_initialize): Move terminal specific initialization to
23406 w32_create_terminal.
23407
23408 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23409 (w32_clear_rect, w32_clear_area): Use background from frame.
23410 (w32_display_info): Add terminal.
23411 (w32_sys_ring_bell, x_delete_display): Declare here.
23412
23413 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23414
23415 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23416
234172007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23418
23419 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23420 Fix get_named_tty calls for the controlling tty.
23421
234222007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23423
194d44e7 23424 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23425
234262007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23427
23428 * term.c (tty_insert_glyphs): Add missing first parameter.
23429
234302007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23431
23432 * buffer.c (Fbuffer_list, Fbury_buffer):
23433 Take frame->buried_buffer_list into account.
23434
23435 * cm.c (current_tty): New variable, for cmputc().
23436 (cmputc): Use it.
23437 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23438 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23439 (cmgoto): Add tty parameter. Pass it on to calccost().
23440 Use emacs_tputs() instead of tputs().
23441
23442 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23443 tputs().
23444 (current_tty): New variable, for cmputc().
23445 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23446
23447 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23448 (internal_condition_case, internal_condition_case_1)
23449 (internal_condition_case_2): Don't abort when x_catching_errors.
23450
23451 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23452 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23453 prevent crashes caused by bogus longjmps in read_char.
23454
23455 * keymap.h (Fset_keymap_parent): Add EXFUN.
23456
23457 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23458 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23459 Remove redundant definition.
23460
23461 * macfns.c (x_set_mouse_color, x_make_gc):
23462 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23463
23464 * w32term.c (x_free_frame_resources):
23465 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23466 (w32_initialize): Use the accessor macros for terminal characteristics.
23467
23468 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23469 Use the accessor macros for terminal characteristics.
23470 * msdos.c (internal_terminal_init): Use the accessor macros for
23471 terminal characteristics.
23472 (ScreenVisualBell, internal_terminal_init):
23473 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23474
23475 * termopts.h (no_redraw_on_reenter): Declare.
23476
23477 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23478 (mark_terminals, mark_ttys): Declare.
23479 (Fgarbage_collect): Call them.
23480 (mark_object): Mark buried_buffer_list.
23481
23482 * prefix-args.c: Include stdlib.h for exit.
23483
23484 * syssignal.h: Add comment.
23485
23486 * indent.c: Include stdio.h.
23487
23488 * window.h (Vinitial_window_system): Declare.
23489 (Vwindow_system): Delete declaration.
23490
23491 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23492
23493 * image.c (lookup_image): Don't initialize `c' until the xasserts
23494 have been run.
23495
23496 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23497 FRAME_FOREGROUND_PIXEL.
23498
23499 * print.c (print_preprocess): Don't lose print_depth levels while
23500 iterating.
23501
23502 * widget.c (update_from_various_frame_slots):
23503 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23504
23505 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23506 frames.
23507 (window_internal_height): Remove bogus make_number call.
23508 (init_window_once): Call make_terminal_frame with two zero parameters.
23509
23510 * fileio.c (Fread_file_name): Update comment.
23511
23512 * callint.c (Fcall_interactively):
23513 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23514 Make sure it is correctly unwound.
23515
23516 * xsmfns.c (x_session_close): New function.
23517
23518 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23519 Delete declarations.
23520
23521 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23522 (x_output): Remove background_pixel and foreground_pixel fields.
23523 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23524 (x_delete_device, x_session_close): Declare.
23525
23526 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23527 (read_filtered_event): Call `read_char' with a local
23528 `wrong_kboard_jmpbuf'.
23529
23530 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23531 Don't call single_kboard_state. Use FRAME_RIF.
23532
23533 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23534 systems.
23535
23536 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23537 (Fframe_with_environment, Fset_input_meta_mode)
23538 (Fset_quit_char): EXFUN.
23539 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23540 (init_sys_modes, reset_sys_modes): Update prototypes.
23541 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23542
23543 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23544 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23545 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23546 Delete declarations.
23547 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23548 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23549 New declarations.
23550
23551 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23552 already does that during init_display(). Call syms_of_keymap
23553 before syms_of_keyboard. Call `syms_of_terminal'.
23554 Call set_initial_environment, not set_process_environment.
23555 (shut_down_emacs): Call reset_all_sys_modes() instead of
23556 reset_sys_modes().
23557
23558 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23559 (internal_resolve_face_name, resolve_face_name_error): New functions.
23560 (resolve_face_name): Protect against loops and errors thrown by Fget.
23561 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23562 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23563
23564 * scroll.c: Replace CURTTY() with local variables throughout the
23565 file (where applicable).
23566 (calculate_scrolling, calculate_direct_scrolling)
23567 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23568 characteristics.
23569
23570 * keymap.c (Vfunction_key_map): Remove.
23571 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23572 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23573 (Vkey_translation_map): Remove.
23574 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23575 (Fdescribe_buffer_bindings)
23576 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23577 Update for terminal-local key-translation-map.
23578
23579 * Makefile.in (callproc.o): Update dependencies.
23580 (lisp, shortlisp): Add termdev.elc.
23581 (obj): Add terminal.o.
23582 (terminal.o): Add dependencies.
23583 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23584 (data.o, fns.o): Add termhooks.h dependency.
23585 (SOME_MACHINE_LISP): Add dnd.elc.
23586 (minibuf.o): Fix typo.
23587 Update dependencies.
23588
23589 * data.c (do_symval_forwarding, store_symval_forwarding)
23590 (find_symbol_value): Use the selected frame's keyboard, not
23591 current_kboard.
23592
23593 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23594 Vwindow_system.
23595
23596 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23597 Fmenu_bar_open.
23598 (syms_of_xmenu): Update defsubr.
23599 (mouse_position_for_popup, Fx_popup_menu)
23600 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23601 (set_frame_menubar, free_frame_menubar)
b97439ce 23602 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23603 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23604 an X frame.
23605
23606 * xselect.c (x_own_selection): Abort if not an X frame.
23607 (some_frame_on_display): Check if it is an X frame.
23608 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23609
23610 * coding.c: Include frame.h and termhooks.h.
23611 (terminal_coding, keyboard_coding): Delete.
23612 (Fset_terminal_coding_system_internal)
23613 (Fset_keyboard_coding_system_internal)
23614 (Fkeyboard_coding_system)
23615 (Fterminal_coding_system): Add a terminal parameter.
23616 Get terminal_coding from the terminal.
23617 (init_coding_once): Don't call setup_coding_system here.
23618
23619 * dispextern.h (set_scroll_region, turn_off_insert)
23620 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23621 (tty_clear_end_of_line, tty_setup_colors)
23622 (delete_tty, updating_frame)
23623 (produce_special_glyphs, produce_glyphs, write_glyphs)
23624 (insert_glyphs): Remove.
23625 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23626 (tty_turn_off_highlight, get_tty_size): Add declaration.
23627 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23628
23629 * frame.h (enum output_method): Add output_initial.
23630 (struct x_output): Delete.
23631 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23632 Access foreground_pixel and background_pixel directly from the frame.
23633 (tty_display): Delete.
23634 (struct frame): Add buried_buffer_list, foreground_pixel,
23635 background_pixel and terminal. Delete kboard.
23636 (union output_data): Add tty.
23637 (FRAME_KBOARD): Get the kboard from the terminal.
23638 (FRAME_INITIAL_P): New macro.
23639 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23640 (Qterm_environment_variable, Qdisplay_environment_variable)
23641 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23642 New declarations.
23643
23644 * termchar.h (tty_output, tty_display_info): New structures.
23645 (tty_list): Declare.
23646 (FRAME_TTY, CURTTY): New macros.
23647 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23648 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23649 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23650 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23651
23652 * callproc.c: Include frame.h and termhooks.h, for terminal
23653 parameters.
23654 (add_env): New function.
23655 (child_setup): Use it.
23656 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23657 (getenv_internal): Fix get_terminal_param call.
23658 (Fgetenv_internal, egetenv): Update doc.
23659 (syms_of_callproc): Initialize Vprocess_environment to nil.
23660 Register and initialize them. Remove obsolete defvars. Update doc
23661 strings.
23662 (child_setup): Handle Vlocal_environment_variables.
23663 (getenv_internal): Add terminal parameter.
23664 Handle Vlocal_environment_variables.
23665 (Fgetenv_internal): Add terminal parameter.
23666 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23667 environment in a frame (not terminal) parameter. Update doc strings.
23668 (set_initial_environment): Rename from set_global_environment.
23669 Store Emacs environment in initial frame parameter.
23670
23671 * xdisp.c (redisplay_internal): Update references to
23672 `previous_terminal_frame'.
23673 (display_mode_line, Fformat_mode_line): Replace calls to
23674 `push_frame_kboard' with `push_kboard'.
23675 (get_glyph_string_clip_rects): Add extra parentheses and
23676 braces to prevent compiler warnings.
23677 (calc_pixel_width_or_height): Add xassert to check that the
23678 frame is alive. Don't call `lookup_image' on a termcap frame.
23679 (message2_nolog, message3_nolog, redisplay_internal)
23680 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23681 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23682 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23683 (Fx_display_pixel_width, Fx_display_pixel_height)
23684 (Fx_display_planes, Fx_display_color_cells)
23685 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23686 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23687 (Fx_display_backing_store, Fx_display_visual_class)
23688 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23689 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23690
23691 * xfns.c (x_set_foreground_color x_set_background_color)
23692 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23693 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23694 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23695 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23696 terminal that is being deleted.
23697 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23698 frame parameter, and make sure it overrides any user-supplied setting.
23699 (Fx_close_connection, Fx_synchronize): Unify argument names with
23700 the rest of the DEFUNs.
23701
23702 * dispnew.c (Fsend_string_to_terminal): Update call to
23703 `get_tty_terminal'.
23704 (Fredraw_frame, Fsend_string_to_terminal)
23705 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23706 FRAME_TERMCAP_P and FRAME_TTY.
23707 (window_change_signal): Don't believe width/height values that are
23708 impossibly small.
23709 (Vinitial_window_system): Rename from Vwindow_system.
23710 (termscript, Wcm, rif): Delete.
23711
23712 * termhooks.h (struct terminal): New struct containing the
23713 previously global text display hooks and new members NAME,
23714 DELETED and PARAM_ALIST.
23715 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23716 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23717 (FRAME_RIF): New macros.
23718 (get_terminal_param, get_device): New declarations.
23719 (termscript): Delete declaration.
23720
23721 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23722 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23723 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23724 FRAME_FOREGROUND_PIXEL.
23725 (x_fully_uncatch_errors): Disable definition.
23726 (x_scroll_bar_expose): Fix reference to foreground pixel.
23727 (XTread_socket): Disable loop on all X displays.
23728 (x_delete_terminal): Don't set terminal->deleted and let
23729 delete_terminal delete the frames on the terminal.
23730 (x_delete_display): Doc update to reflect changes in
23731 delete_terminal.
23732 (x_display_info) <terminal>: Move member earlier in the struct.
23733 (deleting_tty): Remove old variable.
23734 (Fsuspend_tty): Call clear_tty_hooks.
23735 (Fresume_tty, init_tty): Call set_tty_hooks.
23736 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23737 errors on X frames.
23738 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23739 (handle_one_xevent): Initialize `f' to NULL.
23740 (x_delete_terminal, x_create_terminal): New functions.
23741 (XTset_terminal_modes, XTreset_terminal_modes)
23742 (XTread_socket, x_connection_closed, x_term_init)
23743 (x_term_init, x_delete_display): Add terminal parameter.
23744 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23745 X connections.
23746
23747 * frame.c: Include termchar.h.
23748 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23749 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23750 (Qdisplay_environment_variable): New vars.
23751 (Fframep): Deal with output_initial.
23752 (Fframe-live-p): Doc fix.
23753 (Fwindow-system): New function.
23754 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23755 (make_terminal_frame): Don't create frames on a terminal that is
23756 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23757 (store_frame_param): Check for found_for_frame before calling XFRAME.
23758 (Fmake_terminal_frame): Handle NULL tty names correctly.
23759 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23760 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23761 frames to refer to a deleted frame in their 'environment parameter.
23762 (Fframe_with_environment): New function.
23763 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23764 (get_future_frame_param): New function.
23765 (Fmake_terminal_frame): Use it.
23766 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23767
23768 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23769 * sysdep.c (reset_sys_modes): Update for renames.
23770
23771 * keyboard.c (tty_read_avail_input): New function.
23772 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23773 (syms_of_keyboard): Defsubr them.
23774 (Fset_input_meta_mode, Fset_quit_char): New functions.
23775 (Fset_input_mode): Split to above functions.
23776 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23777 parameter. Use it in call to `read_char'.
23778 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23779 Set wrong_kboard_jmpbuf correctly in recursive calls.
23780 Use current_kboard to access Vkeyboard_translate_table.
23781 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23782 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23783 Update longjmp invocations. Remember the original current_kboard,
23784 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23785 changes it. Comment out unnecessary calls to
23786 `record_single_kboard_state' and `any_kboard_state'.
23787 Update recursive calls.
23788 (wrong_kboard_jmpbuf): Remove global variable.
23789 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23790 Handle deleted interrupted_kboards correctly; that is a legal
23791 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23792 and read_char calls. Abort if interrupted_kboard died in read_char.
23793 (any_kboard_state, single_kboard_state)
23794 (push_frame_kboard): Remove function.
23795 (pop_kboard): Switch out of single_kboard mode if the kboard has
23796 been deleted. Remove unused variable. Help debugging by not
23797 changing current_kboard unnecessarily. Set current_kboard to the
23798 kboard of the selected frame when the stored kboard object has
23799 been deleted before pop_kboard.
23800 (temporarily_switch_to_single_kboard): Change first parameter to a
23801 frame pointer. Throw an error when caller wants to change kboards
23802 while in single_kboard mode. Don't push_kboard if we weren't in
23803 single kboard state. Don't pop_kboard if we popped into any
23804 kboard state.
23805 (restore_kboard_configuration): Abort if pop_kboard changed the
23806 kboard in single_kboard mode. Call pop_kboard only after setting
23807 up single_kboard mode.
23808 (Frecursive_edit): Switch to single_kboard mode only in nested
23809 command loops.
23810 (cmd_error, command_loop, command_loop_1, timer_check):
23811 Comment out unnecessary call to `any_kboard_state' and
23812 `record_single_kboard_state'.
23813 (delete_kboard): Exit single_kboard mode if we have just deleted
23814 that kboard. Use FRAME_KBOARD.
23815 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23816 `fatal_error_signal'.
23817 (record_single_kboard_state): Don't push_kboard if we weren't in
23818 single kboard state. Don't pop_kboard if we popped into any
23819 kboard state.
23820 (push_frame_kboard): Rename to push_kboard.
23821 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23822 (read_avail_input): Read input from all terminals.
23823 (mark_kboards): Also mark Vkeyboard_translate_table.
23824 (kbd_buffer_store_event_hold): Simplify condition.
23825 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23826 (Vkeyboard_translate_table): Move to struct kboard.
23827 (init_kboard): Initialize Vkeyboard_translate_table.
23828 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23829 Vkeyboard_translate_table. Update doc strings. Update docs of
23830 local-function-key-map and function-key-map.
23831
23832 * terminal.c: New file.
23833
23834 * term.c: Include errno.h.
23835 (Vring_bell_function, device_list, initial_device)
23836 (next_device_id, ring_bell, update_begin, update_end)
23837 (set_terminal_window, cursor_to, raw_cursor_to)
23838 (clear_to_end, clear_frame, clear_end_of_line)
23839 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23840 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23841 (syms_of_term): Move their initialization to terminal.c.
23842 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23843 (Ftty_display_color_cells)
23844 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23845 (clear_tty_hooks, set_tty_hooks)
23846 (init_tty, maybe_fatal): New functions.
23847 (Ftty_type): Return nil if terminal is not on a tty instead of
23848 throwing an error. Doc update.
23849 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23850 Doc update. Initialize new subrs and variables.
23851 (delete_tty): Use terminal->deleted.
23852 (tty_set_terminal_modes): Rename from set_terminal_modes.
23853 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23854 (set_scroll_region): Rename to `tty_set_scroll_region'.
23855 (turn_on_insert): Rename to `tty_turn_on_insert'.
23856 (turn_off_insert): Rename to `tty_turn_off_insert'.
23857 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23858 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23859 (toggle_highligh): Rename to `tty_toggle_highlight'.
23860 (background_highlight): Rename to `tty_background_highlight'.
23861 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23862 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23863 (tty_set_scroll_region, tty_background_highlight)
23864 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23865 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23866 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23867 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23868 Add static modifier.
23869 (tty_reset_terminal_modes, tty_set_terminal_window)
23870 (tty_set_scroll_region, tty_background_highlight)
23871 (tty_highlight_if_desired, tty_cursor_to)
23872 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23873 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23874 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23875 renames.
23876
238772007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23878
23879 * keyboard.c: Qrtl is new.
23880 (parse_tool_bar_item): Handle :rtl keyword.
23881 (syms_of_keyboard): Intern :rtl keyword.
23882
23883 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23884
23885 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23886 so no Lisp code is executed.
23887 (file_for_image, find_rtl_image): New functions.
23888 (xg_get_image_for_pixmap): Use file_for_image.
23889 (update_frame_tool_bar): If direction is RTL, use RTL image if
23890 defined. Use Gtk stock images if defined.
23891
238922007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23893
23894 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23895 for nonexistent or zero-width glyph in composition glyph.
23896
238972007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23898
23899 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23900
23901 * xdisp.c (Finvisible_p): New function.
23902 (syms_of_xdisp): defsubr it.
23903
239042007-08-24 Juanma Barranquero <lekktu@gmail.com>
23905
23906 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23907 Doc fixes.
23908
239092007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23910
23911 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23912
239132007-08-24 Martin Rudalics <rudalics@gmx.at>
23914
23915 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23916 whether decoding has modified buffer contents.
23917
239182007-08-24 Jason Rumney <jasonr@gnu.org>
23919
23920 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23921 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23922 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23923 (init_svg_functions) [HAVE_NTGUI]: New function.
23924 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23925 (svg_load_image): Use them.
23926 (svg_load_image) [HAVE_NTGUI]: Implement background.
23927
239282007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23929
23930 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23931 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23932 (LIBX): Remove @RSVG_LIBS@.
23933 (LIBES): Add $(RSVG_LIBS).
23934
23935 * image.c (svg_load_image): Blend with specified background if exists.
23936 Use IMAGE_BACKGROUND. Add Mac OS Support.
23937
23938 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23939 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23940 Remove macros.
23941 [MAC_OSX] (socket_callback): Do nothing.
23942 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23943 ReceiveNextEvent.
23944 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23945 socket_callback.
23946 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23947
239482007-08-22 Glenn Morris <rgm@gnu.org>
23949
23950 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23951
239522007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23953
23954 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23955
23956 * image.c: Add support for SVG images. Some additional comments
23957 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23958 (svg_image_p): New function to test for SVG image.
23959 (svg_load): New function to load SVG image.
23960 (svg_load_image): New function, helper for svg_load.
23961 (Qsvg): New Lisp_object.
23962 (svg_keyword_index): New enum.
23963 (svg_format): New static `image_keyword' struct.
23964 (svg_type): New static `image_type' struct.
23965 (librsvg/rsvg.h): Include it.
23966
239672007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23968
23969 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23970
239712007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23972
23973 * lread.c (Qold_style_backquotes): New var.
23974 (syms_of_lread): Init and staticpro it.
23975 (load_warn_old_style_backquotes): New fun.
23976 (Fload): Use them to warn about old style backquotes.
23977 (end_of_file_error, Fload): Remove unused vars.
23978
23979 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23980
23981 * lread.c (Vold_style_backquotes): New var.
23982 (syms_of_lread): Init and export it to Elisp.
23983 (read1): Set it when we find an old-style (back)quote.
23984
239852007-08-22 Jason Rumney <jasonr@gnu.org>
23986
23987 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23988
239892007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23990
23991 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23992
239932007-08-19 Richard Stallman <rms@gnu.org>
23994
23995 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23996
239972007-08-19 Andreas Schwab <schwab@suse.de>
23998
23999 * alloc.c (pure): Round PURESIZE up.
24000
240012007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24002
24003 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24004 active frame.
24005
240062007-08-16 Richard Stallman <rms@gnu.org>
24007
24008 * eval.c (Fcommandp): Add parens to clarify.
24009
24010 * minibuf.c (Fall_completions): Use enum for type of table.
24011
24012 * emacs.c (USAGE2): Improve text.
24013
240142007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24015
24016 * term.c (tty_default_color_capabilities): Declare static
24017 variables in file scope, to avoid HPUX compiler problem.
24018
240192007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24020
24021 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24022 to gtk_toolbar_insert.
24023
240242007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24025
24026 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24027
24028 * insdel.c (reset_var_on_error): New fun.
24029 (signal_before_change, signal_after_change):
24030 Use it to reset (after|before)-change-functions to nil in case of error.
24031 Bind inhibit-modification-hooks to t.
24032 Don't bind (after|before)-change-functions to nil while they run.
24033
240342007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24035
24036 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24037 filling pixmap with stippled background.
24038
240392007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24040
24041 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24042 Don't use invisible frame as parent window for repositioning.
24043
240442007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24045
24046 * print.c (new_backquote_output): Rename from old_backquote_output.
24047 (print): Inverse its logic (according to its name) so as to match the
24048 behavior of new_backquote_flag in lread.c.
24049
240502007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24051
24052 * gmalloc.c (posix_memalign): New function.
24053
24054 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24055 ActivateControl/DeactivateControl here.
24056 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24057 frame-notice-user-settings is non-nil.
24058 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24059 for kEventParamFMFontStyle.
24060 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24061 mac_pass_command_to_system and mac_pass_control_to_system here.
24062 (XTread_socket): Call ActivateControl/DeactivateControl here.
24063 (XTread_socket) [TARGET_API_MAC_CARBON]:
24064 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24065 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24066 for window repositioning.
24067
240682007-08-08 Glenn Morris <rgm@gnu.org>
24069
24070 * Replace `iff' in doc-strings and comments.
24071
240722007-08-07 Chong Yidong <cyd@stupidchicken.com>
24073
24074 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24075
240762007-08-07 Martin Rudalics <rudalics@gmx.at>
24077
24078 * fileio.c (Finsert_file_contents): Run format-decode and
24079 after_insert_file_functions on entire buffer when REPLACE is
24080 non-nil and inhibit modification_hooks and point_motion_hooks.
24081 For consistency, run after_insert_file_functions iff something
24082 got inserted. Move signal_after_change and update_compositions
24083 after code running after_insert_file_functions. Make sure that
24084 undo_list doesn't record intermediate steps of the decoding process.
24085
240862007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24087
24088 * emacs.c (main)
24089 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24090 Call malloc_enable_thread on interactive startup.
24091
24092 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24093 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24094 [USE_PTHREAD]: Conditionalize with it.
24095 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24096 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24097 New functions.
24098
240992007-08-06 Chong Yidong <cyd@stupidchicken.com>
24100
24101 * xdisp.c (redisplay_window): When restoring original buffer
24102 position, make sure it is still valid.
24103
24104 * image.c (png_load): Ignore png-supplied background color.
24105
241062007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24107
24108 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24109 Use kCFAbsoluteTimeIntervalSince1970.
24110
24111 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24112 New variable.
24113 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24114 event loop should be quit.
24115 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24116 Quit dialog event loop if quit_dialog_event_loop is set.
24117
24118 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24119 (Selection): New typedef. Use instead of ScrapRef.
24120 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24121 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24122 (mac_clear_selection): Rename from clear_scrap.
24123 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24124 scrap_has_target_type. All uses changed.
24125 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24126 (mac_selection_has_target_p): New functions.
24127 (mac_put_selection_value): Rename from put_scrap_string.
24128 (mac_get_selection_value): Rename from get_scrap_string.
24129 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24130 (put_scrap_private_timestamp, scrap_has_target_type)
24131 (get_scrap_private_timestamp): Remove functions.
24132 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24133 (x_own_selection, x_get_local_selection):
24134 Use mac_valid_selection_value_p.
24135 (x_own_selection): Don't use put_scrap_private_timestamp.
24136 Record OWNERSHIP-INFO into Vselection_alist instead.
24137 (x_get_local_selection): Don't check type if request is local.
24138 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24139 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24140
241412007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24142
24143 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24144 add comment explaining why.
24145
241462007-08-03 Richard Stallman <rms@gnu.org>
24147
24148 * fileio.c (Fvisited_file_modtime): Use make_time.
24149
241502007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24151
24152 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24153 build.
24154
241552007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24156
24157 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24158
241592007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24160
24161 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24162
241632007-07-30 Richard Stallman <rms@gnu.org>
24164
24165 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24166
241672007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24168
24169 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24170
241712007-07-28 Nick Roberts <nickrob@snap.net.nz>
24172
24173 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24174 remote default-directory.
24175
24176 * buffer.c (mode-line-format): Update doc string.
24177
241782007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24179
24180 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24181 scroll bar gap.
24182 (x_scroll_bar_create): Set bar->fringe_extended_p.
24183 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24184 on frame edge. Check fringe background extension. Don't clear
24185 extended fringe background area.
24186
24187 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24188 (w32_fill_area): Enclose multiple statements with do ... while (0).
24189
24190 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24191 Extend fringe background to scroll bar gap.
24192 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24193 Set bar->fringe_extended_p.
24194 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24195 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24196 background extension. Don't clear extended fringe background area.
24197
24198 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24199 New member fringe_extended_p.
24200
242012007-07-25 Glenn Morris <rgm@gnu.org>
24202
24203 * Relicense all FSF files to GPLv3 or later.
24204
24205 * COPYING: Switch to GPLv3.
24206
242072007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24208
24209 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24210
24211 * data.c (Finteractive_form): Check for the presence of an
24212 `interactive-form' symbol property more thoroughly.
24213
24214 * data.c (Finteractive_form): Use an `interactive-form' property if
24215 present, analogous to the function-documentation property.
24216
242172007-07-24 Jason Rumney <jasonr@gnu.org>
24218
24219 * w32fns.c (x_real_positions): Get real position from OS instead of
24220 calculating it.
24221
242222007-07-23 Jason Rumney <jasonr@gnu.org>
24223
24224 * filelock.c (current_lock_owner): Allow for @ sign in username.
24225
242262007-07-22 Nick Roberts <nickrob@snap.net.nz>
24227
24228 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24229 remote default-directory.
24230
24231 * buffer.c (mode-line-format): Describe above case in doc string.
24232
242332007-07-20 Eli Zaretskii <eliz@gnu.org>
24234
24235 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24236 Define if not defined.
24237
242382007-07-18 Jason Rumney <jasonr@gnu.org>
24239
24240 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24241
242422007-07-18 Richard Stallman <rms@gnu.org>
24243
24244 * data.c (Fsetq_default): Doc fix.
24245
24246 * eval.c (Fsetq): Doc fix.
24247
242482007-07-18 Juanma Barranquero <lekktu@gmail.com>
24249
24250 * coding.c (Ffind_operation_coding_system):
24251 * eval.c (For, Fand): Doc fixes.
24252 Reported by Johan Bockgård.
24253
242542007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24255
24256 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24257
24258 * xterm.h: Declare x_ewmh_activate_frame.
24259
24260 * xterm.c (x_ewmh_activate_frame): New function.
24261 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24262
242632007-07-17 Martin Rudalics <rudalics@gmx.at>
24264
24265 * window.c (Fdisplay_buffer): If largest or LRU window is the
24266 only window, split it even if it is not eligible for splitting.
24267 This restores the original behavior broken by the 2007-07-15
24268 change.
24269
242702007-07-17 Glenn Morris <rgm@gnu.org>
24271
24272 * abbrev.c (abbrev_check_chars): New function.
24273 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24274 Call abbrev_check_chars to check abbrev characters are word
24275 constituents. Doc fix.
24276
242772007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24278
24279 * process.c (Fstart_process, Fmake_network_process)
24280 (read_process_output): Fix up last changes.
24281
242822007-07-16 Eli Zaretskii <eliz@gnu.org>
24283
24284 * makefile.w32-in (clean): Don't delete *~.
24285
242862007-07-16 Andreas Schwab <schwab@suse.de>
24287
24288 * window.c (Fdisplay_buffer): Use NILP.
24289 (Fset_window_scroll_bars): Likewise.
24290
242912007-07-15 Martin Rudalics <rudalics@gmx.at>
24292
24293 * window.c (window_min_size_2): New function.
24294 (window_min_size_1, size_window, Fdisplay_buffer)
24295 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24296 windows without mode- or header-lines when window-min-height is
24297 too small.
24298 (size_window): Reset nodelete_p after testing it, following an
24299 earlier note by Kim F. Storm.
24300 (display_buffer): Do not set split_height_threshold to twice the
24301 value of window_min_height to avoid changing the value of a
24302 customizable variable. Rather explicitly check whether the
24303 height of the window that shall be splitted is at least as large
24304 as split_height_threshold.
24305 (Fwindow_full_width_p): New defun.
24306 (syms_of_window): Defsubr it.
24307
24308 * window.h: Add EXFUN for Fwindow_full_width_p.
24309
243102007-07-14 Jason Rumney <jasonr@gnu.org>
24311
24312 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24313
243142007-07-14 Richard Stallman <rms@gnu.org>
24315
24316 * eval.c (maybe_call_debugger): New function.
24317 (find_handler_clause): Use maybe_call_debugger.
24318 Call it when the handler says `debug'.
24319 Eliminate DEBUGGER_VALUE_PTR.
24320 (Fsignal): Eliminate debugger_value.
24321 (Qdebug): New variable.
24322 (syms_of_eval): Initialize it.
24323
243242007-07-14 Juanma Barranquero <lekktu@gmail.com>
24325
24326 * eval.c (Fprogn):
24327 * keyboard.c (Ftrack_mouse):
24328 * print.c (Fwith_output_to_temp_buffer):
24329 * window.c (Fsave_window_excursion): Doc fix.
24330
243312007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24332
24333 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24334
243352007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24336
24337 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24338 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24339 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24340 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24341 Remove unused encoding_carryover.
24342 * process.c: Adjust all functions accordingly.
24343
243442007-07-12 Richard Stallman <rms@gnu.org>
24345
24346 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24347
243482007-07-11 Jason Rumney <jasonr@gnu.org>
24349
24350 * makefile.w32-in (LIBS): Include OLE32.
24351
24352 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24353 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24354
243552007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24356
24357 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24358 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24359 from a Lisp_Object into a bare pointer.
24360 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24361 Adjust the code correspondingly.
24362
24363 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24364
24365 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24366 (term_show_mouse_face): Remove unused var `j'.
24367 (handle_one_term_event): Remove unused vars `i' and `j'.
24368 Don't cast return value of ttyname since it's not necessary.
24369
243702007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24371
24372 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24373 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24374
24375 * fns.c (map_char_table): Use an array of int for `indices' rather than
24376 an array of Lisp_Objects (which are only ever integers anyway).
24377 (Fmap_char_table): Update caller.
24378 * lisp.h: Update prototype.
24379 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24380 * fontset.c (Ffontset_info):
24381 * casetab.c (set_case_table): Update callers.
24382
24383 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24384
24385 * keymap.c (struct accessible_keymaps_data)
24386 (struct where_is_internal_data): New structures.
24387 (accessible_keymaps_1, where_is_internal_1): Use them to change
24388 interface to adhere to the one used by map_keymap.
24389 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24390 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24391
24392 * keymap.h (map_keymap_function_t): More informative prototype.
24393
243942007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24395
24396 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24397 (looking_at_1): Don't change search_regs and last_thing_searched
24398 if `inhibit-changing-match-data' is non-nil.
24399 (string_match_1, search_buffer, set_search_regs): Likewise.
24400 (syms_of_search): Add Lisp level definition for
24401 `inhibit-changing-match-data' and set it to nil.
24402 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24403 start and end of the match, instead of using values in search_regs.
24404
244052007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24406
24407 * minibuf.c (Fcompleting_read): New value `confirm-only'
24408 for `require-match'.
24409
244102007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24411
24412 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24413 part of the 2007-06-27 change to syms_of_fileio.
24414
244152007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24416
24417 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24418 Check WINDOWP before using XWINDOW. Consolidate return statements.
24419
244202007-06-27 Richard Stallman <rms@gnu.org>
24421
24422 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24423
244242007-06-27 Juanma Barranquero <lekktu@gmail.com>
24425
24426 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24427
244282007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24429
24430 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24431 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24432 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24433 (_free_internal, memalign): Use them.
24434 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24435 Initialize to PTHREAD_MUTEX_INITIALIZER.
24436 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24437 (morecore_nolock): Rename from morecore. All uses changed.
24438 Use only nolock versions of internal allocation functions.
24439 (_malloc_internal_nolock, _realloc_internal_nolock)
24440 (_free_internal_nolock): New functions created from
24441 _malloc_internal, _realloc_internal, and _free_internal.
24442 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24443 Copy hook value to automatic variable before its use.
24444 (memalign): Copy hook value to automatic variable before its use.
24445
244462007-06-26 Kenichi Handa <handa@m17n.org>
24447
24448 * coding.c (Ffind_operation_coding_system): Docstring improved.
24449 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24450
244512007-06-25 David Kastrup <dak@gnu.org>
24452
24453 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24454 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24455 cater for additional parameter.
24456
24457 * keymap.h: Adjust number of parameters to `current-active-maps'.
24458
24459 * doc.c (Fsubstitute_command_keys): Adjust call of
24460 `current-active-maps'.
24461
244622007-06-25 David Kastrup <dak@gnu.org>
24463
24464 * callint.c (Fcall_interactively): Make the parsing of interactive
24465 specs somewhat more readable.
24466
244672007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24468
24469 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24470 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24471 if extended background has already been filled.
24472
244732007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24474
24475 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24476 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24477
24478 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24479 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24480 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24481 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24482 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24483 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24484 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24485 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24486 Run timers during dialog popup.
24487 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24488
244892007-06-21 Jason Rumney <jasonr@gnu.org>
24490
24491 * image.c (convert_mono_to_color_image): Swap fore and background.
24492
244932007-06-20 Jason Rumney <jasonr@gnu.org>
24494
24495 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24496 (w32_free_bdf_font): Unmap memory not handle.
24497
244982007-06-20 Sam Steingold <sds@gnu.org>
24499
24500 * gmalloc.c (__morecore): Fix the declaration to comply with the
24501 definition.
24502
245032007-06-20 Juanma Barranquero <lekktu@gmail.com>
24504
24505 * w32term.c (w32_delete_display): Remove leftover declaration.
24506 (w32_define_cursor, w32_initialize): Make static.
24507
24508 * w32.c (_wsa_errlist): Fix typo in error message.
24509 (init_environment): Ignore any environment variable from the
24510 registry having a null value.
24511
245122007-06-20 Glenn Morris <rgm@gnu.org>
24513
24514 * Makefile.in (LIBGIF): Default to -lgif.
24515
245162007-06-17 Jason Rumney <jasonr@gnu.org>
24517
24518 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24519 unicode strings.
24520
245212007-06-16 Juanma Barranquero <lekktu@gmail.com>
24522
24523 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24524 Fix typo in docstring.
24525
245262007-06-16 Eli Zaretskii <eliz@gnu.org>
24527
24528 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24529 and their keybindings.
24530
245312007-06-15 Chong Yidong <cyd@stupidchicken.com>
24532
24533 * composite.c (update_compositions): Fix last fix.
24534
245352007-06-14 Jason Rumney <jasonr@gnu.org>
24536
24537 * w32.c (get_process_times_fn): New function pointer.
24538 (globals_of_w32): Intialize it if present in kernel32.dll.
24539 (w32_get_internal_run_time): New function.
24540
24541 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24542
245432007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24544
24545 * composite.c (update_compositions): Check the validness of
24546 compositions.
24547
245482007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24549
24550 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24551 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24552
24553 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24554 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24555
24556 * macgui.h (USE_MAC_TOOLBAR): New define.
24557
24558 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24559 Return immediately unless popup is activated.
24560
24561 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24562 background to scroll bar gap.
24563 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24564 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24565 scroll bars on frame edge. Check fringe background extension.
24566 Don't clear extended fringe background area.
24567 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24568 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24569 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24570 [USE_MAC_TOOLBAR]: New macros.
24571 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24572 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24573 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24574 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24575 [USE_MAC_TOOLBAR]: New functions.
24576 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24577 manually if previous repositioning has failed.
24578 (mac_handle_keyboard_event): Use precomputed event kind.
24579 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24580 as tool bar item click. Handle mouse movement over tool bar items.
24581
24582 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24583 toolbar_win_gravity.
24584 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24585 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24586 Add externs.
24587
24588 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24589 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24590
245912007-06-14 Chong Yidong <cyd@stupidchicken.com>
24592
24593 * image.c (search_image_cache): Remove unused variable.
24594
245952007-06-13 Chong Yidong <cyd@stupidchicken.com>
24596
24597 * xfns.c, xmenu.c: Link to xaw3d if available.
24598
245992007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24600
24601 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24602 frame_foreground and frame_background.
24603
24604 * image.c (lookup_image): Save frame foreground and background colors.
24605 (search_image_cache): Check if saved and current frame colors match.
24606
246072007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24608
24609 * regex.c (regex_compile): Remove the `regnum' counter.
24610 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24611
246122007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24613
24614 * term.c: Include intervals.h to declare Fget_text_property.
24615
246162007-06-10 Jason Rumney <jasonr@gnu.org>
24617
24618 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24619
246202007-06-08 Juanma Barranquero <lekktu@gmail.com>
24621
24622 * callint.c (Fcall_interactively):
24623 * editfns.c (Fdelete_and_extract_region):
24624 * fileio.c (Fread_file_name):
24625 * fns.c (Fmapconcat):
24626 * keyboard.c (cmd_error_internal):
24627 * keymap.c (Fkey_description):
24628 * lread.c (openp):
24629 * minibuf.c (read_minibuf):
24630 * search.c (wordify):
24631 * sunfns.c (sel_read):
24632 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24633 * xfns.c (x_default_scroll_bar_color_parameter):
24634 * xmenu.c (menu_help_callback):
24635 * xselect.c (Fx_get_atom_name):
24636 * xterm.c (x_term_init): Use empty_unibyte_string.
24637
246382007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24639
24640 * alloc.c (init_strings): Initialize canonical empty strings.
24641 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24642 canonical empty string when the requested size is 0.
24643
24644 * emacs.c (empty_unibyte_string): Rename from empty_string.
24645 (empty_multibyte_string): New canonical empty string.
24646 (syms_of_emacs): Don't initialize empty_string.
24647
24648 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24649 string, if appropriate.
24650 (empty_unibyte_string, empty_multibyte_string): New externs.
24651 (empty_string): Remove extern.
24652
24653 * lread.c (syms_of_lread): Use empty_unibyte_string.
24654
246552007-06-07 Jason Rumney <jasonr@gnu.org>
24656
24657 * s/ms-w32.h: Don't define HAVE_TZNAME.
24658
24659 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24660
246612007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24662
24663 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24664
24665 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24666 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24667
24668 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24669 Don't call next handler.
24670 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24671 Remove argument. Install handler to application.
24672 (set_frame_menubar): Don't change deep_p.
24673 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24674 FRAME_OUTER_TO_INNER_DIFF_Y.
24675 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24676 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24677 [HAVE_DIALOGS]: New macros.
24678 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24679 Use them.
24680 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24681
24682 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24683 init_service_handler. All callers changed. Return OSStatus value.
24684
24685 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24686 All callers changed so as not to call SetPortWindowPort.
24687 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24688 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24689 mac_draw_string_common.
24690 (mac_draw_image_string_qd): Likewise.
24691 (mac_draw_string_common): Use them. Add INLINE.
24692 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24693 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24694 GetGlobalMouse.
24695 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24696 and FRAME_OUTER_TO_INNER_DIFF_Y.
24697 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24698 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24699 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24700 repositioning window to mac_handle_window_event.
24701 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24702 saving window location to mac_handle_window_event
24703 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24704 (install_menu_target_item_handler): Remove argument in extern.
24705 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24706 Also accept command events.
24707 (do_keystroke): New function created from XTread_socket.
24708 (init_command_handler): Remove functions.
24709 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24710 and save window location by kEventWindowShowing and kEventWindowHiding
24711 handlers here. Don't call next handler for window state change and
24712 focus events.
24713 (mac_handle_application_event, mac_handle_keyboard_event)
24714 [TARGET_API_MAC_CARBON]: New functions.
24715 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24716 kEventWindowShowing and kEventWindowHiding events. Move installation
24717 of mouse, font, text input and menu target item handlers to
24718 install_application_handler.
24719 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24720 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24721 New function.
24722 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24723 Register it.
24724 (XTread_socket) [TARGET_API_MAC_CARBON]:
24725 Consolidate SendEventToEventTarget calls.
24726 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24727 Move application activation handler to mac_handle_application_event.
24728 Move keyboard handler to mac_handle_keyboard_event.
24729 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24730 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24731 init_command_handler. Call install_application_handler.
24732
24733 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24734 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24735
247362007-06-07 Glenn Morris <rgm@gnu.org>
24737
24738 * emacs.c (main): Use `emacs-copyright' in --version output.
24739
247402007-06-06 Chong Yidong <cyd@stupidchicken.com>
24741
24742 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24743
247442007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24745
24746 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24747
24748 * macgui.h: Replace WindowPtr with WindowRef.
24749
24750 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24751 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24752 Replace ControlHandle with ControlRef.
24753 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24754
24755 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24756 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24757 Replace ControlHandle with ControlRef.
24758 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24759 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24760
24761 * macterm.h (struct scroll_bar): Rename member control_handle_low
24762 and control_handle_high to control_ref_low and control_ref_high.
24763 All uses changed.
24764 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24765 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24766 respectively. All uses changed.
24767 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24768 (install_window_handler, remove_window_handler): Replace WindowPtr
24769 with WindowRef in externs.
24770
247712007-06-05 Juanma Barranquero <lekktu@gmail.com>
24772
24773 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24774
247752007-06-03 Nick Roberts <nickrob@snap.net.nz>
24776
24777 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24778
24779 * frame.c (Fmouse_position, Fmouse_pixel_position):
24780 Condition on HAVE_GPM too.
24781
24782 * term.c (term_mouse_highlight): Remove unused variables.
24783 (Fterm_open_connection): Set gpm_zerobased to 1.
24784 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24785 Use zero based co-ordinates.
24786 (handle_one_term_event): Report a drag as mouse movement too.
24787
24788 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24789
247902007-06-03 Chong Yidong <cyd@stupidchicken.com>
24791
24792 * image.c (search_image_cache): New function. Require background
24793 color match if background color is unspecified in the image spec.
24794 (uncache_image, lookup_image): Use it.
24795
247962007-06-01 Juanma Barranquero <lekktu@gmail.com>
24797
24798 * window.c (Fshrink_window): Reflow docstring.
24799
248002007-06-02 Chong Yidong <cyd@stupidchicken.com>
24801
24802 * Version 22.1 released.
24803
248042007-06-01 Richard Stallman <rms@gnu.org>
24805
24806 * xfns.c (x_encode_text): Add GCPRO.
24807
248082007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24809
24810 * xfns.c (x_set_name_internal): Save encoded name before
24811 x_encode_text in case string data is relocated.
24812
248132007-05-31 Richard Stallman <rms@gnu.org>
24814
24815 * buffer.c (syms_of_buffer): Doc fix.
24816
248172007-05-30 Nick Roberts <nickrob@snap.net.nz>
24818
24819 * sysdep.c (init_sys_modes): Add rather than replace with
24820 O_NONBLOCK.
24821
24822 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24823 term_mouse_moveto.
24824
24825 * termhooks.h (term_mouse_moveto): New extern.
24826
24827 * term.c (mouse_face_window): Rename...
24828 (Qmouse_face_window): ...to this.
24829 (term_show_mouse_face, term_clear_mouse_face)
24830 (term_mouse_highlight): Use Qmouse_face_window.
24831 (term_mouse_moveto): New function.
24832 (term_mouse_position): Make it work.
24833 (syms_of_term): Uncomment assignment to mouse_position_hook.
24834 Staticpro Qmouse_face_window.
24835
248362007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24837
24838 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24839 around current_column call.
24840
248412007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24842
24843 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24844 * xdisp.c (next_element_from_buffer):
24845 * window.c (delete_window):
24846 * term.c (term_mouse_highlight):
24847 * msdos.c (getdefdir):
24848 * macterm.c (mac_create_bitmap_from_bitmap_data)
24849 (init_font_name_table):
24850 * fns.c (Fsxhash):
24851 * data.c (Fmake_local_variable):
24852 * ccl.c (ccl_driver): Likewise.
24853
248542007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24855
24856 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24857 Call mac_wakeup_from_rne on window size change.
24858
248592007-05-25 Chong Yidong <cyd@stupidchicken.com>
24860
24861 * image.c (uncache_image): Fix typo.
24862
248632007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24864
24865 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24866
248672007-05-22 Richard Stallman <rms@gnu.org>
24868
24869 * xterm.c (x_connection_closed): Remove NO_RETURN.
24870
248712007-05-22 Martin Rudalics <rudalics@gmx.at>
24872
24873 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24874
248752007-05-21 Chong Yidong <cyd@stupidchicken.com>
24876
24877 * image.c (uncache_image): New function.
24878 (Fimage_refresh): New function.
24879
248802007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24881
24882 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24883
248842007-05-20 Nick Roberts <nickrob@snap.net.nz>
24885
24886 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24887 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24888
248892007-05-20 Nick Roberts <nickrob@snap.net.nz>
24890
24891 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24892 conditional on [HAVE_GPM_H].
24893
248942007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24895
24896 * syntax.c (skip_chars): Update syntax-table only after we checked that
24897 the new location is valid.
24898
248992007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24900
24901 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24902 mac_get_window_bounds.
24903
249042007-05-20 Nick Roberts <nickrob@snap.net.nz>
24905
24906 * Makefile.in (LIBGPM): Allow it to be set from configure.
24907 If set then link Emacs with it.
24908
24909 * config.in: Regenerate.
24910
24911 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24912 New externs.
24913
24914 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24915 Include gpm.h.
24916 (handle_one_term_event, term_gpm): New externs.
24917
24918 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24919 and allow it to be interrupted by SIGIO.
24920
24921 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24922 (wait_reading_process_output): Wait on gpm_fd too.
24923 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24924 (add_gpm_wait_descriptor_called_flag): New variable.
24925 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24926
24927 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24928 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24929 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24930 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24931 (make_lispy_event): Add case GPM_CLICK_EVENT.
24932 (read_avail_input): Handle mouse input.
24933
24934 * term.c (write_glyphs_with_face): New function.
24935 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24936 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24937 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24938 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24939 (last_mouse_x, last_mouse_y): New variables.
24940 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24941 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24942 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24943 (Fterm_close_connection): New functions.
24944 (term_init): Initialise mouse_face_window.
24945
249462007-05-19 Chong Yidong <cyd@stupidchicken.com>
24947
24948 * xdisp.c (redisplay_window): If first window line is a
24949 continuation line, recompute the new window start instead of
24950 recentering.
24951
249522007-05-18 Glenn Morris <rgm@gnu.org>
24953
24954 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24955 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24956
249572007-05-17 Glenn Morris <rgm@gnu.org>
24958
24959 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24960
249612007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24962
24963 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24964 dead key repeat and up events.
24965
249662007-05-14 Chong Yidong <cyd@stupidchicken.com>
24967
24968 * image.c (pbm_load): Check image size for monochrome pbm.
24969
249702007-05-13 Chong Yidong <cyd@stupidchicken.com>
24971
24972 * xterm.c (XTread_socket): Revert last change.
24973
249742007-05-12 Chong Yidong <cyd@stupidchicken.com>
24975
24976 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24977
24978 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24979
249802007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24981
24982 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24983 mixup (YAILOM).
24984
249852007-05-07 Andreas Schwab <schwab@suse.de>
24986
24987 * keymap.c (Flookup_key): Fix typo in last change.
24988
249892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24990
24991 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24992 mapping for unibyte strings.
24993
249942007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24995
24996 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24997 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24998
249992007-04-29 Richard Stallman <rms@gnu.org>
25000
25001 * insdel.c (replace_range): For undo, record insertion first.
25002
250032007-04-29 Andreas Schwab <schwab@suse.de>
25004
25005 * lisp.h (VECSIZE): Use OFFSETOF.
25006
250072007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25008
25009 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25010 disabled lines.
25011
250122007-04-28 Richard Stallman <rms@gnu.org>
25013
25014 * lread.c (read_escape): In a string, \s is always space.
25015
250162007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25017
25018 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25019
25020 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25021 submenu for menu bar items.
25022
25023See ChangeLog.10 for earlier changes.
25024
25025;; Local Variables:
25026;; coding: utf-8
25027;; add-log-time-zone-rule: t
aac0c6e3
MR
25028;; End:
25029
e3eb1dae 25030 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25031
25032 This file is part of GNU Emacs.
25033
25034 GNU Emacs is free software: you can redistribute it and/or modify
25035 it under the terms of the GNU General Public License as published by
25036 the Free Software Foundation, either version 3 of the License, or
25037 (at your option) any later version.
25038
25039 GNU Emacs is distributed in the hope that it will be useful,
25040 but WITHOUT ANY WARRANTY; without even the implied warranty of
25041 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25042 GNU General Public License for more details.
25043
25044 You should have received a copy of the GNU General Public License
25045 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25046
25047;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40