MAINTAINERS: Update Eli Zaretskii's responsibilities.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d568829b
EZ
12010-07-08 Eli Zaretskii <eliz@gnu.org>
2
3 * process.c (kbd_is_on_hold, hold_keyboard_input)
4 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5
52214050
J
62010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7
8 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
9 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
10 unless USE_LUCID.
11
313d9eb2
DN
122010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
13
d8825aa3
DN
14 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
15
295d0d8f
DN
16 Clean up include guards.
17 * tparam.c: Remove include guards for config.h, string.h and code
18 that assumes #ifndef emacs.
19 * termcap.c:
20 * unexalpha.c:
21 * sysdep.c:
22 * filemode.c:
23 * filelock.c:
24 * bidi.c: Likewise.
25
49d9e6b0
DN
26 Remove prefix-args.c
27 * prefix-args.c: Remove file.
28 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
29 * Makefile.in (temacs${EXEEXT}): Remove references to
30 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
31 (mostlyclean): Remove reference to prefix-args.
32 (prefix-args): Remove.
33
313d9eb2
DN
34 Simplify cstart_of_data, start_of_code and related code.
35 * mem-limits.h: Remove !emacs and _LIBC conditional code.
36 (start_of_data): Merge into start_of_data function.
37 * sysdep.c (start_of_text): Remove. Move simplified versions of
38 it in the only users: unexaix.c and unexec.c.
39 (read_input_waiting): Remove local declaration of quit_char.
40 (start, etext): Remove declarations.
41 (start_of_data): Merge with the version in mem-limits.h and move
42 to vm-limits.c.
43 * vm-limit.c (start_of_data): Merged and simplified version of the
44 code formerly in mem-limits.h and sysdep.c.
45 * unexec.c (start): New declaration, moved from sysdep.c.
46 (start_of_text): Simplified version of the code formerly in sysdep.c.
47 * unexaix.c (start_of_text): Simplified version of the code
48 formerly in sysdep.c.
49 * m/alpha.h (HAVE_TEXT_START): Remove.
50 (TEXT_START): Move ...
51 * unexalpha.c (TEXT_START): ... here.
52 * s/hpux10-20.h (TEXT_START): Remove.
53 * s/darwin.h (TEXT_START):
54 * m/mips.h (TEXT_START):
55 * m/macppc.h (HAVE_TEXT_START):
56 * m/m68k.h (TEXT_START):
57 * m/iris4d.h (TEXT_START):
58 * m/intel386.h (TEXT_START):
59 * m/ibmrs6000.h (TEXT_START):
60 * m/ia64.h (HAVE_TEXT_START):
61 * s/msdos.h (TEXT_START): Likewise.
62
72af86bd
AS
632010-07-07 Andreas Schwab <schwab@linux-m68k.org>
64
65 * alloc.c (overrun_check_malloc, overrun_check_realloc)
66 (overrun_check_free, xstrdup, allocate_string)
67 (allocate_string_data, compact_small_strings, Fmake_string)
68 (make_unibyte_string, make_multibyte_string)
69 (make_string_from_bytes, make_specified_string, make_float)
70 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
71 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
72 memcpy, memmove, memset, memcmp.
73 * atimer.c (start_atimer, set_alarm): Likewise.
74 * buffer.c (clone_per_buffer_values, report_overlay_modification)
75 (mmap_realloc, init_buffer_once): Likewise.
76 * callint.c (Fcall_interactively): Likewise.
77 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
78 (getenv_internal_1): Likewise.
79 * casefiddle.c (casify_object): Likewise.
80 * ccl.c (ccl_driver): Likewise.
81 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
82 * charset.c (load_charset_map_from_file)
83 (load_charset_map_from_file, load_charset_map_from_vector)
84 (Fdefine_charset_internal): Likewise.
85 * cm.c (Wcm_clear): Likewise.
86 * coding.c (decode_eol, decode_coding_object)
87 (Fset_coding_system_priority, make_subsidiaries): Likewise.
88 * data.c (Faset): Likewise.
89 * dired.c (directory_files_internal, file_name_completion_stat):
90 Likewise.
91 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
92 (clear_glyph_row, copy_row_except_pointers)
93 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
94 (save_current_matrix, restore_current_matrix)
95 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
96 (mirror_line_dance, scrolling_window): Likewise.
97 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
98 Likewise.
99 * doprnt.c (doprnt): Likewise.
100 * editfns.c (Fuser_full_name, make_buffer_string_both)
101 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
102 * emacs.c (sort_args): Likewise.
103 * eval.c (Fapply, Ffuncall): Likewise.
104 * fileio.c (Ffile_name_directory, make_temp_name)
105 (Fexpand_file_name, search_embedded_absfilename)
106 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
107 (auto_save_error): Likewise.
108 * fns.c (Fstring_equal, Fcopy_sequence, concat)
109 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
110 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
111 (Fmake_hash_table): Likewise.
112 * fringe.c (Fdefine_fringe_bitmap): Likewise.
113 * ftfont.c (ftfont_text_extents): Likewise.
114 * getloadavg.c (getloadavg): Likewise.
115 * image.c (define_image_type, make_image, make_image_cache)
116 (x_create_x_image_and_pixmap, xbm_image_p)
117 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
118 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
119 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
120 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
121 (tiff_image_p, tiff_read_from_memory, gif_image_p)
122 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
123 Likewise.
124 * indent.c (scan_for_column, compute_motion): Likewise.
125 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
126 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
127 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
128 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
129 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
130 (store_user_signal_events, menu_bar_items, tool_bar_items)
131 (process_tool_bar_item, append_tool_bar_item)
132 (read_char_minibuf_menu_prompt, read_key_sequence)
133 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
134 Likewise.
135 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
136 Likewise.
137 * lisp.h (STRING_COPYIN): Likewise.
138 * lread.c (Fload, read1, oblookup): Likewise.
139 * msdos.c (Frecent_doskeys): Likewise.
140 * nsfns.m (Fx_create_frame): Likewise.
141 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
142 Likewise.
143 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
144 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
145 Likewise.
146 * nsmenu.m (ns_update_menubar): Likewise.
147 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
148 * print.c (print_unwind, printchar, strout, print_string)
149 (print_error_message): Likewise.
150 * process.c (conv_lisp_to_sockaddr, set_socket_option)
151 (Fmake_network_process, Fnetwork_interface_list)
152 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
153 (init_process): Likewise.
154 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
155 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
156 Likewise.
157 * scroll.c (do_scrolling, do_direct_scrolling)
158 (scrolling_max_lines_saved): Likewise.
159 * search.c (search_buffer, wordify, Freplace_match): Likewise.
160 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
161 * syntax.c (skip_chars, skip_syntaxes): Likewise.
162 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
163 (emacs_set_tty): Likewise.
164 * term.c (encode_terminal_code, calculate_costs)
165 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
166 Likewise.
167 * termcap.c (tgetst1, gobble_line): Likewise.
168 * termhooks.h (EVENT_INIT): Likewise.
169 * tparam.c (tparam1): Likewise.
170 * unexalpha.c (unexec): Likewise.
171 * unexec.c (write_segment): Likewise.
172 * unexmacosx.c (unexec_write_zero): Likewise.
173 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
174 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
175 * w32font.c (w32font_list_family, w32font_text_extents)
176 (w32font_list_internal, w32font_match_internal)
177 (w32font_open_internal, compute_metrics, Fx_select_font):
178 Likewise.
179 * w32menu.c (set_frame_menubar, add_menu_item)
180 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
181 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
182 * w32uniscribe.c (uniscribe_list_family): Likewise.
183 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
184 * window.c (make_window, replace_window, set_window_buffer)
185 (Fsplit_window): Likewise.
186 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
187 (add_to_log, message3, x_consider_frame_title)
188 (append_space_for_newline, extend_face_to_end_of_line)
189 (decode_mode_spec_coding, init_glyph_string): Likewise.
190 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
191 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
192 (face_attr_equal_p, make_realized_face, make_face_cache)
193 (free_realized_faces, lookup_named_face, smaller_face)
194 (face_with_height, lookup_derived_face)
195 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
196 (Finternal_set_font_selection_order, realize_default_face)
197 (compute_char_face, face_at_buffer_position)
198 (face_for_overlay_string, face_at_string_position, merge_faces):
199 Likewise.
200 * xfns.c (xic_create_fontsetname, Fx_create_frame)
201 (Fx_window_property, x_create_tip_frame)
202 (Fx_backspace_delete_keys_p): Likewise.
203 * xfont.c (xfont_list, xfont_match, xfont_list_family)
204 (xfont_text_extents): Likewise.
205 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
206 * xrdb.c (magic_file_p, x_get_resource): Likewise.
207 * xselect.c (x_queue_event, x_get_window_property)
208 (receive_incremental_selection): Likewise.
209 * xsmfns.c (x_session_check_input): Likewise.
210 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
211 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
212 Likewise.
213 * character.h (BCOPY_SHORT): Removed.
214 * config.in: Regenerate.
215 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
216 * emacs.c (main) [PROFILING]: Don't declare
217 dump_opcode_frequencies.
218 * lisp.h (safe_bcopy): Remove declaration.
219 (memset) [!HAVE_MEMSET]: Declare.
220 (memcpy) [!HAVE_MEMCPY]: Likewise.
221 (memmove) [!HAVE_MEMMOVE]: Likewise.
222 (memcmp) [!HAVE_MEMCMP]: Likewise.
223 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
224 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
225 Don't define.
226 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
227 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
228 (BCOPY_DOWNWARD_SAFE): Don't define.
229 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
230 (memcpy) [!HAVE_MEMCPY]: Define.
231 (memmove) [!HAVE_MEMMOVE]: Define.
232 (memcmp) [!HAVE_MEMCMP]: Define.
233
cb768704
J
2342010-07-07 Jan Djärv <jan.h.d@swipnet.se>
235
236 * process.c (kbd_is_on_hold): New variable.
237 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
238 functions.
239 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
240 select on empty input mask.
241 (init_process): Initialize kbd_is_on_hold to 0.
242
243 * process.h (hold_keyboard_input, unhold_keyboard_input)
244 (kbd_on_hold_p): Declare.
245
246 * keyboard.c (input_available_signal): Declare.
247 (kbd_buffer_nr_stored): New function.
248 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
249 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
250 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
251 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
252 (tty_read_avail_input): If input is on hold, return.
253 Don't read more that free slots in kbd_buffer (Bug#6571).
254
3a8ce822
EZ
2552010-07-07 Eli Zaretskii <eliz@gnu.org>
256
257 * msdos.h:
258 * msdos.c:
259 * dosfns.c:
260 * w16select.c: Convert function definitions to ANSI C.
261
262 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
263 unused prototypes.
264
cf84bb53
JB
2652010-07-07 Juanma Barranquero <lekktu@gmail.com>
266
267 * coding.c, sysdep.c: Convert some more functions to standard C.
268
1a4990fb
JB
2692010-07-07 Juanma Barranquero <lekktu@gmail.com>
270
271 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
272 (encode_coding_object): Use SPECPDL_INDEX.
273 (syms_of_coding): Use DOS_NT.
274
c0f2f16b
DN
2752010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
276
48fb6855
DN
277 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
278
c0f2f16b
DN
279 Make the function member of Lisp_Subr use standard C prototypes.
280 * lisp.h (struct Lisp_Subr): Use a union for the function member.
281 (DECL_ALIGN): Add a cast for the function.
282 * eval.c (Feval, Ffuncall): Use the proper type for each type
283 function call.
284
67aecef9
CY
2852010-07-06 Chong Yidong <cyd@stupidchicken.com>
286
287 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
288 fringe face id, so face-remapping-alist works (Bug#6091).
289
b56ceb92
JB
2902010-07-06 Juanma Barranquero <lekktu@gmail.com>
291
292 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
293 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
294 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
295
7af07b96
AS
2962010-07-06 Andreas Schwab <schwab@linux-m68k.org>
297
298 * xterm.c (x_get_keysym_name): Change type of parameter to int.
299 * lisp.h: Declare x_get_keysym_name.
300 * keyboard.c (modify_event_symbol): Don't declare
301 x_get_keysym_name here.
302
69e24e34
DN
3032010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
304
305 * ecrt0.c: Revert conversion to standard C.
306
d3da34e0 3072010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
308
309 * vm-limit.c (memory_warnings):
310 * keyboard.c (modify_event_symbol):
311 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
312 (round2, emacs_rint):
313 * process.c (send_process, old_sigpipe): Convert function
314 definitions and declarations to standard C.
315
3162010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
317
318 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
319 * xdisp.c: Convert function definitions to standard C.
320
321 * cm.c (cmputc): Arg C is now int, not char.
322 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
323
00be444c
J
3242010-07-05 James Cloos <cloos@jhcloos.com>
325
326 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
327
328 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
329 _NET_WM_ICON_NAME atoms.
330
331 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
332 and _NET_WM_ICON_NAME properties, too, matching what is
333 done in the Gtk+ case.
334
e4c8d29a
J
3352010-07-05 Jan Djärv <jan.h.d@swipnet.se>
336
ff919460
J
337 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
338
e4c8d29a
J
339 * xsmfns.c (SSDATA): New macro.
340 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
341 passed to strlen/strcpy/strcat.
342 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
343 7:th arg to XChangeProperty to (unsigned char *)
344
345 * xsettings.c (something_changedCB, parse_settings)
346 (apply_xft_settings): Reformat prototype.
347 (something_changedCB, init_gconf): Remove unused variable i.
348 (read_settings): Remove unused variable long_len.
349
350 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
351 (xg_get_image_for_pixmap, create_dialog)
352 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
353 (menuitem_highlight_callback, make_menu_item)
354 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
355 (xg_create_scroll_bar, xg_update_scrollbar_pos)
356 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
357 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
358 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
359 (xg_tool_bar_item_expose_callback): Reformat prototype.
360 (xg_update_menubar): GList *group => GSList *group.
361 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
362 before use.
363 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
364 to GTK_IMAGE (wimage).
365
dd4c5104
DN
3662010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
367
898b4c5c
DN
368 * atimer.c: Use "" instead of <> for local includes for
369 consistency with the rest of the code.
370
dd4c5104
DN
371 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
372 * xrdb.c (get_system_name):
373 * window.c (shrink_windows):
374 * syntax.c (forw_comment):
375 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
376 (ins_del_costs):
377 * mem-limits.h (start_of_data):
378 * lread.c (readevalloop):
379 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
380 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
381 * frame.c (x_get_focus_frame):
382 * floatfns.c (fmod_float):
383 * fileio.c (choose_write_coding_system):
384 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
385 (malloc_initialize_hook, sort_args, synchronize_locale):
386 * doprnt.c (doprnt):
387 * dired.c (compile_pattern):
388 * data.c (fmod_float):
389 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
390 (map_char_table_for_charset):
391 * charset.c (define_charset_internal):
392 * alloc.c (Fgarbage_collect): Convert declarations or definitions
393 to standard C.
394
9a39b306 3952010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 396 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
397
398 * lread.c (read1): Fix up last change to not mess up `c'.
399
e6cb2cbb
JB
4002010-07-04 Juanma Barranquero <lekktu@gmail.com>
401
402 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
403
438105ed
JB
4042010-07-04 Juanma Barranquero <lekktu@gmail.com>
405
406 Fix prototypes.
407
e5447b22 408 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 409 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
410 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
411 arg, as required by internal_condition_case_1.
dcc7404b 412 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
413 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
414 (analyse_first): Fix "const const".
e5447b22 415 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 416 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 417 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 418
971de7fb
DN
4192010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
420
421 * alloc.c: Convert function definitions to standard C.
422 * atimer.c:
423 * bidi.c:
424 * bytecode.c:
425 * callint.c:
426 * callproc.c:
427 * casefiddle.c:
428 * casetab.c:
429 * category.c:
430 * ccl.c:
431 * character.c:
432 * charset.c:
433 * chartab.c:
434 * cmds.c:
435 * coding.c:
436 * composite.c:
437 * data.c:
438 * dbusbind.c:
439 * dired.c:
440 * dispnew.c:
441 * doc.c:
442 * doprnt.c:
443 * ecrt0.c:
444 * editfns.c:
445 * fileio.c:
446 * filelock.c:
447 * filemode.c:
448 * fns.c:
449 * font.c:
450 * fontset.c:
451 * frame.c:
452 * fringe.c:
453 * ftfont.c:
454 * ftxfont.c:
455 * gtkutil.c:
456 * indent.c:
457 * insdel.c:
458 * intervals.c:
459 * keymap.c:
460 * lread.c:
461 * macros.c:
462 * marker.c:
463 * md5.c:
464 * menu.c:
465 * minibuf.c:
466 * prefix-args.c:
467 * print.c:
468 * ralloc.c:
469 * regex.c:
470 * region-cache.c:
471 * scroll.c:
472 * search.c:
473 * sound.c:
474 * strftime.c:
475 * syntax.c:
476 * sysdep.c:
477 * termcap.c:
478 * terminal.c:
479 * terminfo.c:
480 * textprop.c:
481 * tparam.c:
482 * undo.c:
483 * unexelf.c:
484 * window.c:
485 * xfaces.c:
486 * xfns.c:
487 * xfont.c:
488 * xftfont.c:
489 * xgselect.c:
490 * xmenu.c:
491 * xrdb.c:
492 * xselect.c:
493 * xsettings.c:
494 * xsmfns.c:
495 * xterm.c: Likewise.
496
ae492bec
EZ
4972010-07-03 Eli Zaretskii <eliz@gnu.org>
498
76ea4cc9
EZ
499 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
500 frames other than the initial one. Fix reversal of colors when
501 `reverse' is specified in the frame parameters. Call
502 update_face_from_frame_parameter instead of
503 internal-set-lisp-face-attribute. Initialize screen colors from
504 initial_screen_colors[] when f->default_face_done_p is zero,
505 instead of depending on being called with default-frame-alist as
506 the alist argument.
507
508 * xfaces.c (update_face_from_frame_parameter): Move out of
509 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
510 with HAVE_WINDOW_SYSTEM.
511
1e6255ae
EZ
512 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
513 to menu-bar-mode, if not set in the frame parameters or in
514 default-frame-alist.
515
ae492bec
EZ
516 * w32console.c (sys_tputs): Adjust argument list to prototype in
517 term.c.
518
3a35a84c
JB
5192010-07-03 Juanma Barranquero <lekktu@gmail.com>
520
521 * lisp.h (memory_warnings): Fix prototype.
522
523 * cm.h (evalcost): Fix prototype.
524
525 * cm.c (evalcost): Fix arg type.
526
c532d349
DN
5272010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
528
529 * term.c (term_clear_mouse_face, Fidentity):
530 * syssignal.h (signal_handler_t):
531 * lisp.h (memory_warnings):
532 * coding.h (preferred_coding_system):
533 * cm.h (evalcost):
534 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
535
c0b36d46
EZ
5362010-07-02 Eli Zaretskii <eliz@gnu.org>
537
538 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
539 from prototypes.
540
541 * msdos.h (load_pixmap): Don't define away.
542
383e0970
J
5432010-07-02 Jan Djärv <jan.h.d@swipnet.se>
544
f57e2426
J
545 * lisp.h:
546 * atimer.h: Remove define for P_.
547
548 * alloc.c: Remove __P and P_ from .c and .m files.
549 * atimer.c:
550 * buffer.c:
551 * callint.c:
552 * category.c:
553 * charset.c:
554 * chartab.c:
555 * cm.c:
556 * coding.c:
557 * composite.c:
558 * data.c:
559 * dired.c:
560 * dispnew.c:
561 * doc.c:
562 * editfns.c:
563 * emacs.c:
564 * eval.c:
565 * fileio.c:
566 * filelock.c:
567 * fns.c:
568 * font.c:
569 * fontset.c:
570 * frame.c:
571 * ftfont.c:
572 * ftxfont.c:
573 * gmalloc.c:
574 * gtkutil.c:
575 * image.c:
576 * indent.c:
577 * intervals.c:
578 * keyboard.c:
579 * keymap.c:
580 * lread.c:
581 * marker.c:
582 * menu.c:
583 * minibuf.c:
584 * print.c:
585 * process.c:
586 * scroll.c:
587 * search.c:
588 * sound.c:
589 * strftime.c:
590 * syntax.c:
591 * sysdep.c:
592 * term.c:
593 * terminal.c:
594 * textprop.c:
595 * unexalpha.c:
596 * w32console.c:
597 * w32fns.c:
598 * w32font.c:
599 * w32menu.c:
600 * w32term.c:
601 * w32uniscribe.c:
602 * window.c:
603 * xdisp.c:
604 * xfaces.c:
605 * xfns.c:
606 * xfont.c:
607 * xftfont.c:
608 * xmenu.c:
609 * xselect.c:
610 * xterm.c: Likewise.
611
383e0970 612 Remove P_ and __P macros.
f57e2426
J
613 * atimer.h: Remove P_ and __P macros.
614 * buffer.h:
383e0970
J
615 * category.h:
616 * ccl.h:
617 * character.h:
618 * charset.h:
619 * cm.h:
620 * coding.h:
621 * composite.h:
622 * dispextern.h:
623 * disptab.h:
9e892c8d 624 * dosfns.h:
383e0970
J
625 * font.h:
626 * fontset.h:
627 * frame.h:
628 * gtkutil.h:
629 * indent.h:
630 * intervals.h:
631 * keyboard.h:
632 * keymap.h:
633 * lisp.h:
634 * macros.h:
635 * md5.h:
636 * menu.h:
637 * msdos.h:
638 * nsterm.h:
639 * puresize.h:
640 * region-cache.h:
641 * syntax.h:
642 * syssignal.h:
643 * systime.h:
644 * termhooks.h:
9e892c8d 645 * w32font.h:
383e0970
J
646 * w32term.h:
647 * widget.h:
648 * window.h:
649 * xgselect.h:
650 * xsettings.h:
651 * xterm.h: Likewise.
652
98601119
DN
6532010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
654
d9170db5
DN
655 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
656
98601119
DN
657 Cleanup old code.
658 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
659 * syssignal.h: Remove code for Lynx, not supported anymore.
660 * vm-limit.c: Remove unused code the depends on emacs not being
661 defined and NO_LIM_DATA being defined.
662 * mem-limits.h: Remove dead code.
663
1f984e12
J
6642010-07-01 Jan Djärv <jan.h.d@swipnet.se>
665
c49d071a
J
666 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
667
9d5405ec
J
668 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
669 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
670
7a18115b
J
671 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
672 parameters, they are already absolute.
673
581a8100
J
674 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
675 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
676
677 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
678
679 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
680 FRAME_TOOLBAR_HEIGHT.
681
1f984e12
J
682 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
683 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
684
c1ef4455
CY
6852010-06-30 Chong Yidong <cyd@stupidchicken.com>
686
687 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
688 check default-frame-alist.
689
ce8f5a9a
AS
6902010-06-30 Andreas Schwab <schwab@linux-m68k.org>
691
692 * process.c (create_process): Avoid using invalid file descriptors.
693
694 * callproc.c (child_setup): Avoid closing a file descriptor twice.
695
bf935339
J
6962010-06-30 Jan Djärv <jan.h.d@swipnet.se>
697
698 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
699 Improve documentation. Return font regardless of use_system_font.
700 (syms_of_xsettings): Improve documentation for font-use-system-font.
701
769e9d47
KH
7022009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
703
704 * xftfont.c (xftfont_open): Check font width one by one also when
705 spacing is dual.
706
707 * ftfont.c (ftfont_open): Ditto.
708
6259c2ec
GM
7092010-06-30 Glenn Morris <rgm@gnu.org>
710
a46007e9
GM
711 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
712
6259c2ec
GM
713 * Makefile.in (CANNOT_DUMP): Update for configure name change.
714
715 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
716 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
717 * s/darwin.h (SYSTEM_MALLOC):
718 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
719
5d1d3d04
J
7202010-06-29 Jan Djärv <jan.h.d@swipnet.se>
721
722 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
723 (ns_get_screen): Don't assign integer to f.
724 (Fx_display_color_cells): Declarations before statements.
725
e547b051
J
7262010-06-28 Jan Djärv <jan.h.d@swipnet.se>
727
5fc8e5bc
J
728 * xfns.c (x_default_font_parameter): Remove got_from_system
729 (Bug#6526).
730
e547b051
J
731 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
732 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
733 defines based on what configure finds.
734
735 * xterm.c (XTflash): Use gtk_widget_get_window.
736 (xg_scroll_callback): Use gtk_adjustment_get_upper and
737 gtk_adjustment_get_page_size.
738 (handle_one_xevent): Use gtk_widget_get_mapped.
739 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
740 messages.
741
742 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
743
744 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
745 HAVE_GTK_FILE_SELECTION_NEW.
746
747 * gtkutil.c (xg_display_open, xg_display_close): Remove
748 HAVE_GTK_MULTIDISPLAY, it is always defined.
749 (xg_display_open): Return type is void.
750 (gtk_widget_set_has_window)
751 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
752 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
753 (gtk_adjustment_set_page_increment)
754 (gtk_adjustment_get_step_increment): #define these if not found
755 by configure.
756 (remove_submenu): New define based on Gtk+ version.
757 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
758 gtk_widget_get_window.
759 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
760 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
761 (create_dialog): Use gtk_dialog_get_action_area and
762 gtk_dialog_get_content_area.
763 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
764 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
765 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
766 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
767 g_object_ref and g_object_unref.
768 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
769 gtk_widget_get_sensitive.
770 (xg_update_submenu): Use remove_submenu.
771 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
772 properties instead to get old x and y position.
773 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
774 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 775 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
776 (xg_get_tool_bar_widgets): New function.
777 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
778 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
779 (toolbar_set_orientation): New #define based on if configure
780 finds gtk_orientable_set_orientation.
781 (xg_create_tool_bar): Call toolbar_set_orientation.
782 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
783 instead of gtk_box_pack_start_defaults.
784
b9229673
CY
7852010-06-28 Chong Yidong <cyd@stupidchicken.com>
786
787 * cmds.c (Fdelete_backward_char): Move into Lisp.
788
bbc803b0
DN
7892010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
790
791 * s/freebsd.h (BSD4_2): Remove redundant definition.
792 bsd-common.h defines it already.
793
6431f2e6
CY
7942010-06-27 Chong Yidong <cyd@stupidchicken.com>
795
796 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
797 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
798 tool-bar-mode, which are now set using these X resources at
799 startup, to determine the defaults (Bug#2249).
800
801 * w32fns.c (Fx_create_frame):
802 * nsfns.m (Fx_create_frame): Likewise.
803
804 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
805
8c079ebb
JB
8062010-06-24 Juanma Barranquero <lekktu@gmail.com>
807
808 * gtkutil.c (xg_update_scrollbar_pos):
809 Avoid C99 mid-block variable declaration.
810
e9b7ab96
JD
8112010-06-22 Jan Djärv <jan.h.d@swipnet.se>
812
bc869eca
JD
813 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
814
2b7e356a 815 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
816
817 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
818 if height is less than scroll bar min size.
819 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
820
e9b7ab96
JD
821 * xfns.c (x_default_font_parameter): Try to open font from system
822 before using it (bug#6478). Rename got_from_gconf to got_from_system.
823
32a679fd
JD
8242010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
825
826 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
827
70c4cfbb
EZ
8282010-06-20 Eli Zaretskii <eliz@gnu.org>
829
830 * xdisp.c (try_scrolling): When scroll-conservatively is set to
831 most-positive-fixnum, be extra accurate when scrolling window
832 start, to avoid missing the cursor line.
833
ad5a12b5
EZ
8342010-06-19 Eli Zaretskii <eliz@gnu.org>
835
836 * xdisp.c (try_scrolling): Compute the limit for searching point
837 in forward scroll from scroll_max, instead of an arbitrary limit
838 of 10 screen lines. See
839 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
840 and
841 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
842 for details.
843
2a64315a 8442010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
845
846 * editfns.c (Fbyte_to_string): Pacify compiler.
847
288cf4e9
SM
8482010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
849
850 * lread.c (read1): Phase out old-style backquotes a bit more.
851
6e6e5760
EZ
8522010-06-12 Eli Zaretskii <eliz@gnu.org>
853
cbc4fd20
EZ
854 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
855 bidimirror.h.
856
857 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
858
317fbf33
EZ
859 * bidi.c (bidi_initialize): Remove explicit initialization of
860 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 861 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 862 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
863
864 * biditype.h: New file.
865
cbc4fd20
EZ
866 * bidimirror.h: New file.
867
6e6e5760
EZ
868 * window.c (syms_of_window): Doc fix (bug#6409).
869
4176cba2
RF
8702010-06-12 Romain Francoise <romain@orebokech.com>
871
872 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
873 ediff-hook.
874
cb4bfcb5
GM
8752010-06-10 Glenn Morris <rgm@gnu.org>
876
64c60c2f
GM
877 * editfns.c (Fbyte_to_string): Pacify compiler.
878
cb4bfcb5
GM
879 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
880
e454a4a3
SM
8812010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
882
883 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
884 Check `object's type before accessing its guts.
885
c1b1acc2
DN
8862010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
887
888 * s/usg5-4.h: Fix previous change.
889 Suggested by Lawrence Mitchell <wence@gmx.li>
890
657d4c0b
AS
8912010-06-08 Andreas Schwab <schwab@linux-m68k.org>
892
893 * minibuf.c (Fall_completions): Add more checks.
894
9b27fd9f
JB
8952010-06-08 Juanma Barranquero <lekktu@gmail.com>
896
897 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
898
a99ebb40
DN
8992010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
900
d7c5d87d
DN
901 * lread.c (X_OK): Remove, unused.
902
0263a941
DN
903 * dispnew.c: Remove obsolete comment.
904
a99ebb40
DN
905 Remove INCLUDED_FCNTL.
906 * xterm.c (INCLUDED_FCNTL):
907 * callproc.c (INCLUDED_FCNTL):
908 * alloc.c (INCLUDED_FCNTL):
909 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
910 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
911
13b5221f
MR
9122010-06-07 Martin Rudalics <rudalics@gmx.at>
913
914 * window.c (Fselect_window): Move `record_buffer' up to the
915 beginning of this function, so the buffer gets recorded
916 even if the selected window does not change.
917 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
918
5220357f
JB
9192010-06-07 Juanma Barranquero <lekktu@gmail.com>
920
921 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
922 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
923
3085237c
DN
9242010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
925
926 Remove BSTRING related code, all platforms define it.
927 * s/usg5-4.h (BSTRING): Remove definition.
928 * s/template.h (BSTRING):
929 * s/msdos.h (BSTRING):
930 * s/ms-w32.h (BSTRING):
931 * s/hpux10-20.h (BSTRING):
932 * s/gnu-linux.h (BSTRING):
933 * s/darwin.h (BSTRING):
934 * s/cygwin.h (BSTRING):
935 * s/bsd-common.h (BSTRING):
936 * s/aix4-2.h (BSTRING): Likewise.
937 * sysdep.c: Remove code depending on BSTRING not being defined.
938
409f2919
JB
9392010-06-05 Juanma Barranquero <lekktu@gmail.com>
940
941 Remove obsolete macro BASE_LEADING_CODE_P.
942 * character.h (BASE_LEADING_CODE_P): Remove.
943 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
944 * buffer.c (Fset_buffer_multibyte):
945 * indent.c (scan_for_column, compute_motion):
946 * insdel.c (count_combining_before, count_combining_after):
947 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
948
087fc47a
JB
9492010-06-04 Juanma Barranquero <lekktu@gmail.com>
950
951 Turn `directory-sep-char' into a noop.
952
953 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
954 (DIRECTORY_SEP): Define unconditionally.
955
956 * s/ms-w32.h (DIRECTORY_SEP): Remove.
957
958 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
959 call dostounix_filename directly.
960
961 * fileio.c (CORRECT_DIR_SEPS): Remove.
962 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
963 (Fsubstitute_in_file_name): Use dostounix_filename instead.
964 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
965 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
966
967 * w32proc.c (CORRECT_DIR_SEPS): Remove.
968 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
969
0eb7675e
AS
9702010-06-03 Andreas Schwab <schwab@linux-m68k.org>
971
972 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 973 address. (Bug#6346)
0eb7675e 974
78edd3b7
JB
9752010-06-03 Juanma Barranquero <lekktu@gmail.com>
976
977 * ccl.c (Fccl_program_p): Fix typo in docstring.
978
eb697db5
DN
9792010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
980
981 Move UNEXEC definition to autoconf.
982 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
983 * s/sol2-10.h (UNEXEC):
984 * s/irix6-5.h (UNEXEC):
985 * s/hpux10-20.h (UNEXEC):
986 * s/gnu-linux.h (UNEXEC):
987 * s/darwin.h (UNEXEC):
988 * s/cygwin.h (UNEXEC):
989 * s/bsd-common.h (UNEXEC):
990 * s/aix4-2.h (UNEXEC):
991 * m/alpha.h (UNEXEC): Likewise.
992 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
993
aa3830c4
JB
9942010-06-03 Juanma Barranquero <lekktu@gmail.com>
995
996 Remove obsolete pre-unicode2 macros.
997 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
998 * composite.c (composition_reseat_it):
999 * data.c (Faset):
1000 * fns.c (Ffillarray):
1001 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1002 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1003
d234d13e
JL
10042010-06-03 Juri Linkov <juri@jurta.org>
1005
1006 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1007 (Fswitch_to_buffer): Remove unused variable `err'.
1008
0d4bcf4d
GM
10092010-06-03 Glenn Morris <rgm@gnu.org>
1010
e23dc1e2
GM
1011 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1012
05b09564
GM
1013 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1014 now that AH_BOTTOM does it.
1015
824e2978
GM
1016 * m/hp800.h (HAVE_ALLOCA):
1017 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1018
0d4bcf4d
GM
1019 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1020 Remove NOT_C_CODE tests, it is always true now.
1021
c55d2abf
DN
10222010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1023
08a494a3
DN
1024 Fix config.h includes.
1025 * xsettings.c:
1026 * xgselect.c:
1027 * nsterm.m:
1028 * nsselect.m:
1029 * nsimage.m:
1030 * nsfont.m:
1031 * nsfns.m:
1032 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1033 other files do.
1034
75934b1d
DN
1035 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1036
9f32a766
DN
1037 * s/sol2-6.h: Remove obsolete comments.
1038
c55d2abf
DN
1039 Remove unnecessary alloca.h includes.
1040 * keymap.c: Do not include alloca.h, config.h does that.
1041 * sysdep.c: Likewise. Do not define fwrite, not used.
1042
06ac62b4
SM
10432010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1044
1045 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1046 the HAVE_TERMIO where it belongs (bug#6149).
1047
1ab8293c
SM
10482010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1049
1050 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1051 of bug#6305).
1052
6dcfd253
EZ
10532010-05-30 Eli Zaretskii <eliz@gnu.org>
1054
1055 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1056 state is always cached (bug#6306).
1057
6d26bbb2
EZ
10582010-05-29 Eli Zaretskii <eliz@gnu.org>
1059
06fa4a23
EZ
1060 Fix cursor motion in bidi-reordered continued lines.
1061 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1062 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1063 over continuation lines in bidi-reordered buffers. Return
1064 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1065 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1066
f5783df3
MA
10672010-05-28 Michael Albinus <michael.albinus@gmx.de>
1068
1069 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1070
7d56b2dd
KH
10712010-05-28 Kenichi Handa <handa@m17n.org>
1072
1073 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1074 Don't sheck SPEC if it is nil.
1075 (font_list_entities): Call font_delete_unmatched if
b925d231 1076 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1077
e58d4ff7
GM
10782010-05-28 Glenn Morris <rgm@gnu.org>
1079
1080 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1081
f1a5d776
CY
10822010-05-27 Chong Yidong <cyd@stupidchicken.com>
1083
1084 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1085 whether to trash.
1086 (internal_delete_file, Frename_file): Callers changed.
1087 (delete_by_moving_to_trash): Doc fix.
1088 (Fdelete_directory_internal): Don't move to trash.
1089
1090 * callproc.c (delete_temp_file):
1091 * buffer.c (Fkill_buffer): Callers changed.
1092
1093 * lisp.h: Update prototype.
1094
f44a59e6
CY
10952010-05-27 Chong Yidong <cyd@stupidchicken.com>
1096
1097 * xdisp.c (redisplay_window): After redisplay, check if point is
1098 still valid before setting it (Bug#6177).
1099
81ac4f35
GM
11002010-05-27 Glenn Morris <rgm@gnu.org>
1101
1102 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1103 Convert comments to Makefile format.
1104
1105 * Makefile.in (bootstrap-clean): No more Makefile.c.
1106
ccd89fb3
GM
11072010-05-26 Glenn Morris <rgm@gnu.org>
1108
90278cb6
GM
1109 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1110 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1111
ccd89fb3
GM
1112 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1113 Remove.
1114 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1115
b7050583
KH
11162010-05-26 Kenichi Handa <handa@m17n.org>
1117
1118 * composite.c (composition_compute_stop_pos): Fix condition for
1119 backward scanning.
1120
e5458003
GM
11212010-05-25 Glenn Morris <rgm@gnu.org>
1122
c345fe90
GM
1123 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1124 Move before TEMACS_LDFLAGS.
1125 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1126 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1127
2e0689ab
GM
1128 * Makefile.in (NOT_C_CODE): No longer define.
1129 (config.h): No longer include.
1130
8009a5e8
GM
1131 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1132 variables it may reference.
1133
e5458003
GM
1134 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1135 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1136
10f72a37
KH
11372010-05-25 Kenichi Handa <handa@m17n.org>
1138
1139 * dispextern.h (struct composition_it): New members rule_idx and
1140 charpos.
1141
1142 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1143 that the character positions of IT point the last character of the
1144 current grapheme cluster.
1145 (next_element_from_composition): Don't change character positions
1146 of IT.
1147 (append_composite_glyph): Set glyph->charpos to
1148 it->cmp_it.charpos.
1149
1150 * composite.c (autocmp_chars): Change the first argument to RULE,
1151 and try composition with RULE only.
1152 (composition_compute_stop_pos): Record the index number of the
1153 composition rule in CMP_IT->rule_idx.
1154 (composition_reseat_it): Call autocmp_chars repeatedly until the
1155 correct rule of the composition is found.
1156 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1157 is at the last character of the current grapheme cluster when
1158 CMP_IT->reversed_p is nonzero.
1159
171eda53 11602010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1161
171eda53
SM
1162 * editfns.c (Fbyte_to_string): New function.
1163
66a9f7f4
SM
11642010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1165
1166 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1167 Suggested by Masatake YAMATO <yamato@redhat.com>.
1168
d8c315d1
EZ
11692010-05-23 Eli Zaretskii <eliz@gnu.org>
1170
171eda53 1171 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1172
f5b416d2 11732010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1174
1175 * s/netbsd.h: If terminfo is found, use it in preference to
1176 termcap. (Bug#6190) [Backport from trunk]
1177
0416466c
EZ
11782010-05-19 Eli Zaretskii <eliz@gnu.org>
1179
11117830 1180 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1181
1182 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1183 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1184 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1185 and maxpos members instead of start.pos and end.pos, respectively.
1186
1187 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1188 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1189 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1190 (try_window_reusing_current_matrix, try_window_id):
1191 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1192 (init_from_display_pos, init_iterator): Use EMACS_INT for
1193 character and byte positions.
66a9f7f4 1194 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1195 arguments for minimum and maximum buffer positions seen by
1196 display_line for this row. Don't use iterator to find the
1197 position following the maximum one; instead, increment the
11117830
EZ
1198 position found by display_line directly. Fix logic; eol_pos
1199 should be tested before the rest. Handle the case of characters
1200 delivered from display vector (bug#6036). Fix tests related to
1201 it->method. Handle the truncated_on_right_p rows.
1202 (RECORD_MAX_MIN_POS): New macro.
1203 (display_line): Use it to record the minimum and maximum buffer
1204 positions for glyphs in the row being assembled. Record the
1205 position of the newline that terminates the line. If word wrap is
1206 in effect, restore minimum and maximum positions seen up to the
1207 wrap point, when iterator returns to it.
1208 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1209 row and cursor not already at point. Restore original pre-bidi
1210 code for unidirectional buffers.
d36fe237
EZ
1211
1212 * dispnew.c (increment_row_positions, check_matrix_invariants):
1213 Increment and check row->start.pos and row->end.pos, in addition
1214 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1215
11117830
EZ
1216 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1217 Display truncated_on_left_p and truncated_on_right_p flags.
1218 Formatting fixes.
1219 (pmtxrows): Display the ordinal number of each row. Don't display
1220 rows beyond the last one.
1221
1222 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1223 it is not copied by bidi_copy_it.
1224
6e83d800
EZ
12252010-05-22 Eli Zaretskii <eliz@gnu.org>
1226
1227 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1228 (Bug#6237)
1229
110683ad
CY
12302010-05-22 Chong Yidong <cyd@stupidchicken.com>
1231
1232 * image.c (Fimage_flush): Rename from image-refresh.
1233
98fe5161
CY
12342010-05-21 Chong Yidong <cyd@stupidchicken.com>
1235
1236 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1237 just one window.
1238
1239 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1240 (clear_image_cache): If the number of cached images is unusually
1241 large, decrease the cache eviction delay (Bug#6230).
1242
e8752c66
GM
12432010-05-21 Glenn Morris <rgm@gnu.org>
1244
66dbf213
GM
1245 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1246 Move these rules to ns.mk.
1247 * ns.mk: New file.
1248
04384b2d
GM
1249 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1250
e8752c66
GM
1251 * Makefile.in (CANNOT_DUMP): New, set by configure.
1252 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1253
2e2bbddb
JL
12542010-05-20 Juri Linkov <juri@jurta.org>
1255
1256 * fileio.c (Fdelete_file): Change interative spec to use
1257 `read-file-name' like in `find-file-read-args' where the default
1258 value is `default-directory' instead of `buffer-file-name'.
1259 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1260
31c4aaf6
KR
12612010-05-20 Kevin Ryde <user42@zip.com.au>
1262
1263 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1264 (Voverriding_terminal_local_map, Vsystem_key_alist)
1265 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1266
9d5cf9b6
GM
12672010-05-20 Glenn Morris <rgm@gnu.org>
1268
1269 * Makefile.in (DEPDIR): New constant.
1270 (DEPFLAGS): Set with configure, not cpp.
1271 (MKDEPDIR): New, set by configure.
1272 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1273 (clean): Use $DEPDIR.
1274 (deps_frag): Include from configure.
1275 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1276 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1277
ead6f8f5
EZ
1278 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1279 reallocation of the cache. (Bug#6210)
1280
7f34aec3
GM
12812010-05-19 Glenn Morris <rgm@gnu.org>
1282
d494e8f2
GM
1283 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1284
c1d0dcfd
GM
1285 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1286 (GNULIB_VAR): Remove.
1287 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1288
1289 * m/ibms390x.h (LINKER):
1290 * m/macppc.h (LINKER) [GNU_LINUX]:
1291 * s/aix4-2.h (ORDINARY_LINK):
1292 * s/cygwin.h (LINKER):
1293 * s/darwin.h (ORDINARY_LINK):
1294 * s/gnu.h (ORDINARY_LINK):
1295 * s/netbsd.h (LINKER):
1296 * s/usg5-4.h (ORDINARY_LINK):
1297 Move to configure.
1298
7f34aec3
GM
1299 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1300
754790b6
CY
13012010-05-18 Chong Yidong <cyd@stupidchicken.com>
1302
1303 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1304 prevent stack overflow if number of arguments is too large
1305 (Bug#6214).
1306
161e44d1
JB
13072010-05-18 Juanma Barranquero <lekktu@gmail.com>
1308
1309 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1310
be4ff9da
GM
13112010-05-18 Glenn Morris <rgm@gnu.org>
1312
9539dc5d
GM
1313 * s/gnu-linux.h: Combine two conditionals.
1314
1315 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1316 $(POST_ALLOC_OBJ).
1317
40dc6bf4
GM
1318 * Makefile.in (RALLOC_OBJ): New, set by configure.
1319 (rallocobj): Replace with the previous variable.
1320 (otherobj): Use $RALLOC_OBJ.
1321
1322 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1323 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1324
be4ff9da
GM
1325 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1326 (gmallocobj, vmlimitobj): Replace with previous two variables.
1327 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1328
16455a85
GM
13292010-05-17 Glenn Morris <rgm@gnu.org>
1330
1331 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1332 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1333
5fdb7468
GM
13342010-05-16 Glenn Morris <rgm@gnu.org>
1335
7ca1f3f9
GM
1336 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1337
7541dad5
GM
1338 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1339
da53fab9
GM
1340 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1341 trailing "/".
1342
b02a6645
GM
1343 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1344 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1345
8877ca0f
GM
1346 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1347 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1348 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1349 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1350 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1351
5fdb7468
GM
1352 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1353 Remove ${STARTFLAGS}, nothing ever sets it.
1354
95adb4b1
DN
13552010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1356
1357 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1358
676b6304
GM
13592010-05-16 Glenn Morris <rgm@gnu.org>
1360
9beab9ce
GM
1361 * Makefile.in (LIBX_BASE): Always define.
1362
8a95f0e7
GM
1363 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1364
676b6304
GM
1365 * Makefile.in (LIBXT): Always define.
1366
6e546d18
GM
13672010-05-15 Glenn Morris <rgm@gnu.org>
1368
4235ca47 1369 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1370
6e546d18
GM
1371 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1372 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1373
8c5ff6dd
KR
13742010-05-15 Ken Raeburn <raeburn@raeburn.org>
1375
560bb7ae 1376 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1377 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1378
8b4eb796
KR
1379 * emacs.c (main): Initialize initial-environment and
1380 process-environment before generating from env, not after.
1381
8c5ff6dd
KR
1382 Handle --version reasonably in CANNOT_DUMP configuration.
1383 * emacs.c (emacs_version, emacs_copyright): New string variables.
1384 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1385 (syms_of_emacs): Defvar them, and initialize them from the C
1386 string variables.
1387 (main): If initialization hasn't been done, print initial version
1388 info from the C strings, instead of starting an interactive session.
1389
dbd3f723
EZ
13902010-05-15 Eli Zaretskii <eliz@gnu.org>
1391
d20e1419
EZ
1392 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1393 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1394 (bidi_paragraph_init): Remove redundant assertion that we are at
1395 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1396
1397 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1398 (syms_of_xdisp): Defsubr it.
1399
d36fe237
EZ
1400 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1401
dbd3f723
EZ
1402 * Makefile.in: Fix MSDOS-related comments.
1403
02be533b
GM
14042010-05-15 Glenn Morris <rgm@gnu.org>
1405
1a82cca9
GM
1406 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1407 (really-lwlib, really-oldXMenu): Always define.
1408 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1409
3df7b338
GM
1410 * Makefile.in: Simplify cpp conditional.
1411
2b5f541b
GM
1412 * Makefile.in (${ns_appdir}): Simplify using umask.
1413
02be533b
GM
1414 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1415
4e2db1fe
SM
14162010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1417
1418 * eval.c (specbind): Remove left-over duplicate test.
1419 Disallow let-binding frame-local vars. Add comment.
1420
4b292a22
EZ
14212010-05-14 Eli Zaretskii <eliz@gnu.org>
1422
2fe72643 1423 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1424 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1425 (bidi_init_it): Call it.
1426 (bidi_cache_iterator_state): Enlarge the cache if needed.
1427
4e2db1fe 1428 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1429 bidi_get_next_char_visually. All callers changed.
1430
82ebc97b
KH
14312010-05-14 Kenichi Handa <handa@m17n.org>
1432
1433 * dispextern.h (struct composition_it): New member reversed_p.
1434
1435 * composite.c (composition_compute_stop_pos): Search backward if
1436 ENDPOS < CHARPOS.
1437 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1438 Set CMP_IT->reversed_p.
b4b6e17e 1439 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1440
4e2db1fe
SM
1441 * xdisp.c (set_iterator_to_next):
1442 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1443 scanning backward. Call composition_compute_stop_pos if scan
1444 direction is changed.
1445 (next_element_from_buffer): Call composition_compute_stop_pos with
1446 negative ENDPOS if we are scanning backward.
1447 (next_element_from_composition): Pay attention to
1448 IT->cmp_it.reversed_p.
1449
0e5d7800
KH
14502010-05-14 Kenichi Handa <handa@m17n.org>
1451
560bb7ae 1452 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1453
cb027b32
GM
14542010-05-14 Glenn Morris <rgm@gnu.org>
1455
177b0288
GM
1456 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1457
fbc00890
GM
1458 * Makefile.in (mktime, X11, register): Move undefs to configure.
1459
f14d1dfd
GM
1460 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1461 (MSDOS_X_OBJ): New variable.
1462 (MSDOS_SUPPORT_REAL): New constant.
1463 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1464 (obj): Use MSDOS_X_OBJ.
1465 (lisp): Use MSDOS_SUPPORT as a variable.
1466
11842bd8
GM
1467 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1468 (GPM_MOUSE_SUPPORT): Now it's a constant.
1469 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1470 not cpp.
1471
489d31a4 1472 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1473 (ns_appresdir): Remove, unused.
e20f1f07 1474
489d31a4
GM
1475 * Makefile.in (SHELL): Move outside cpp section.
1476
cb027b32
GM
1477 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1478
5a903aa9
GM
14792010-05-13 Glenn Morris <rgm@gnu.org>
1480
3369c79f
GM
1481 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1482 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1483
d5e982a6
GM
1484 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1485 HAVE_WINDOW_SYSTEM must be too.
1486
6192e163
GM
1487 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1488 (lisp): Remove WINNT_SUPPORT.
1489
472c5d6b
GM
1490 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1491 Let configure set these variables (to empty) in this case as well.
1492
0116466b
GM
1493 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1494 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1495
5a903aa9
GM
1496 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1497 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1498 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1499 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1500 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1501 the values output by configure.
5a903aa9
GM
1502 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1503
1a0d7c06
GM
15042010-05-12 Glenn Morris <rgm@gnu.org>
1505
b5457f14
GM
1506 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1507 (LINKER_WAS_SPECIFIED): Remove.
1508
1a0d7c06
GM
1509 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1510 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1511 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1512 * s/cygwin.h (LIB_GCC):
1513 * s/freebsd.h (LIB_GCC):
1514 * s/gnu-linux.h (LIB_GCC):
1515 * s/msdos.h (LIB_GCC):
1516 * s/netbsd.h (LIB_GCC):
1517 Move to configure.
1518
3ffd4615 15192010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1520
1521 * ftfont.c: Fix incorrect parentheses of #if condition for
1522 definining M17N_FLT_USE_NEW_FEATURE.
1523
acddf8ae
GM
15242010-05-11 Glenn Morris <rgm@gnu.org>
1525
1526 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1527 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1528
ae5e04fa
EZ
15292010-05-10 Eli Zaretskii <eliz@gnu.org>
1530
1531 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1532 unibyte buffers. See
1533 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1534
7490175b
GM
15352010-05-10 Glenn Morris <rgm@gnu.org>
1536
97efb629
GM
1537 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1538 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1539 (LIBES): Use LIBS_SYSTEM as a variable.
1540 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1541 * s/aix4-2.h (LIBS_SYSTEM):
1542 * s/freebsd.h (LIBS_SYSTEM):
1543 * s/hpux10-20.h (LIBS_SYSTEM):
1544 * s/sol2-6.h (LIBS_SYSTEM):
1545 * s/unixware.h (LIBS_SYSTEM):
1546 Move to configure.
1547
7490175b
GM
1548 * s/aix4-2.h (MAIL_USE_LOCKF):
1549 * s/bsd-common.h (MAIL_USE_FLOCK):
1550 * s/darwin.h (MAIL_USE_FLOCK):
1551 * s/gnu-linux.h (MAIL_USE_FLOCK):
1552 * s/irix6-5.h (MAIL_USE_FLOCK):
1553 * s/template.h (MAIL_USE_FLOCK):
1554 Move to configure.
1555
0235128c 15562010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1557
1558 * Version 23.2 released.
1559
0235128c 15602010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1561
1562 * composite.c (autocmp_chars): Save point as marker before calling
1563 auto-composition-function (Bug#5984).
1564
1565 * lisp.h (restore_point_unwind): Add prototype.
1566
1567 * fileio.c (restore_point_unwind): Remove static attribute.
1568
0235128c 15692010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1570
1571 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1572 new feature of libotf and m17n-flt.
0235128c
SM
1573 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1574 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1575 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1576 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1577 that OUT is NULL. Use OTF_drive_gsub_with_log and
1578 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1579 OTF_drive_gpos.
1580 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1581 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1582 Setup mflt_enable_new_feature and mflt_try_otf.
1583
4721152c
J
15842010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1585
1586 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1587
1588 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1589 box and toolbar (Bug #6139).
1590 (xg_create_tool_bar): Remove comment (Bug #6139).
1591 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1592 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1593
ee0a16cf
JB
15942010-05-08 Juanma Barranquero <lekktu@gmail.com>
1595
1596 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1597 Update dependencies.
1598
96d79611
EZ
15992010-05-08 Eli Zaretskii <eliz@gnu.org>
1600
1601 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1602 R2L lines.
1603
40c17879
GM
16042010-05-08 Glenn Morris <rgm@gnu.org>
1605
7b42b29f
GM
1606 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1607
40c17879
GM
1608 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1609 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1610 (termcapobj): Replace with TERMCAP_OBJ.
1611 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1612 (LIBES): Use LIBS_TERMCAP as a variable.
1613
1614 * s/freebsd.h (osreldate.h): No longer include, since this file
1615 does not use __FreeBSD_version any more.
1616
1617 * s/aix4-2.h (TERMINFO):
1618 * s/cygwin.h (TERMINFO):
1619 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1620 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1621 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1622 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1623 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1624 * s/irix6-5.h (TERMINFO):
1625 * s/netbsd.h (LIBS_TERMCAP):
1626 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1627 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1628 * s/usg5-4.h (TERMINFO):
1629 Move to configure.
1630
94b612ad
SM
16312010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1632
1633 * eval.c (unbind_to): Don't unbind a local binding into the global
1634 binding when the local binding disappeared. Inversely, don't unbind
1635 a global binding into a newly created local binding.
1636 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1637 can specify the frame to use, when applicable. Adjust callers.
1638
15e12598 16392010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1640 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1641
1642 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1643
f724825e
EZ
16442010-05-07 Eli Zaretskii <eliz@gnu.org>
1645
5cba3209
EZ
1646 * w32fns.c: Include w32.h.
1647 (Fw32_shell_execute): Decode the error message before passing it
1648 to `error'. (Bug#6126)
1649
d16bdfc3
EZ
1650 * msdos.c (dos_set_window_size):
1651 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1652 instead of `XSYMBOL (foo)->value'.
1653
59d93e87
EZ
16542010-05-07 Eli Zaretskii <eliz@gnu.org>
1655
9fdec8bc
EZ
1656 Fix the MS-DOS build, broken by autoconfiscation.
1657
1658 * Makefile.in: Don't use Make-style comments past the "start of
1659 cpp stuff" line.
1660 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1661
1662 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1663 edited directly by msdos/sed1v2.inp).
f724825e 1664
2f86b22b
GM
16652010-05-07 Glenn Morris <rgm@gnu.org>
1666
1667 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1668 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1669 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1670 move out of cpp section.
1671 * s/freebsd.h (LD_SWITCH_SYSTEM):
1672 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1673 * s/netbsd.h (LD_SWITCH_SYSTEM):
1674 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1675
49ebbd65
DN
16762010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1677
1678 Define LIB_STANDARD and START_FILES using autoconf.
1679 * s/usg5-4.h (LIB_STANDARD):
1680 * s/netbsd.h (START_FILES):
1681 * s/irix6-5.h (LIB_STANDARD):
1682 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1683 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1684 * s/freebsd.h (START_FILES):
1685 * s/darwin.h (START_FILES):
1686 * s/cygwin.h (START_FILES):
1687 * s/aix4-2.h (LIB_STANDARD):
1688 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1689 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1690 autoconf, not cpp.
1691
d43c06d6
DN
16922010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1693
28823648
DN
1694 Remove NEED_BSDTTY and NEED_UNISTD_H.
1695 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1696 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1697 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1698 <sys/ptyio.h> and <unistd.h>.
1699
aca00430
DN
1700 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1701
d43c06d6
DN
1702 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1703 * s/gnu.h (START_FILES): Remove empty definition.
1704
3e56b11d
JD
17052010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1706
1707 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1708
e3cf0cde
GM
17092010-05-06 Glenn Morris <rgm@gnu.org>
1710
1711 * Makefile.in (CPP, LN_S): Remove unused variables.
1712
774b9a60
SM
17132010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1714
1715 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1716
4ab92842
LM
17172010-05-05 Lawrence Mitchell <wence@gmx.li>
1718
1719 * m/sparc.h: Fix typo in earlier change.
1720
178f2507
SM
17212010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1722
1723 Misc tweaks.
1724 * eval.c (Fdefvaralias): Remove unintended nested if.
1725 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1726
80f00217 17272010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1728
1729 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1730
ef03a4e6
DN
17312010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1732
58eb6cf0
DN
1733 Remove BSD_PGRPS.
1734 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1735 * s/gnu-linux.h (BSD_PGRPS): Remove.
1736 * term.c (dissociate_if_controlling_tty):
1737 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1738 (init_sys_modes, reset_sys_modes):
1739 * emacs.c (main):
1740 * callproc.c (Fcall_process, child_setup): Remove code depending
1741 on BSD_PGRPS.
1742
ef03a4e6
DN
1743 Remove POSIX_SIGNALS.
1744 * s/usg5-4.h (POSIX_SIGNALS):
1745 * s/netbsd.h (POSIX_SIGNALS):
1746 * s/msdos.h (POSIX_SIGNALS):
1747 * s/ms-w32.h (POSIX_SIGNALS):
1748 * s/hpux11.h (POSIX_SIGNALS):
1749 * s/gnu.h (POSIX_SIGNALS):
1750 * s/gnu-linux.h (POSIX_SIGNALS):
1751 * s/freebsd.h (POSIX_SIGNALS):
1752 * s/darwin.h (POSIX_SIGNALS):
1753 * s/cygwin.h (POSIX_SIGNALS):
1754 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1755 * s/unixware.h:
1756 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1757 * process.c (create_process):
1758 * syssignal.h:
1759 * sysdep.c (wait_for_termination, init_signals):
1760 * process.c (create_process):
1761 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1762 remove all code that assumes the contrary.
1763
49628785
GM
17642010-05-04 Glenn Morris <rgm@gnu.org>
1765
27a2cdfc
GM
1766 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1767 variable.
1768 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1769 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1770 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1771 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1772 LD_SWITCH_SYSTEM_tmp.
1773 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1774 New variables, set by configure.
1775
eb21eab5
GM
1776 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1777 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1778 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1779 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1780 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1781
49628785
GM
1782 * s/aix4-2.h (C_SWITCH_SYSTEM):
1783 * m/alpha.h (C_SWITCH_MACHINE):
1784 Move to configure.in.
1785 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1786 New variables, set by configure.
1787 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1788 $c_switch_machine and $c_switch_system.
1789
7dff330b
DN
17902010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1791
1792 * s/hpux10-20.h (LIB_STANDARD): New definition.
1793 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1794 on it, not used anymore.
1795
53967e09
CY
17962010-05-03 Chong Yidong <cyd@stupidchicken.com>
1797
1798 * eval.c (internal_condition_case_n): Rename from
1799 internal_condition_case_2.
1800 (internal_condition_case_2): New function.
1801
1802 * xdisp.c (safe_call): Use internal_condition_case_n.
1803
1804 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1805 (internal_delete_file, Frename_file): Callers changed.
1806
1807 * buffer.c (Fkill_buffer):
1808 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1809
1810 * lisp.h: Update prototypes.
1811
3dee6fdb
GM
18122010-05-03 Glenn Morris <rgm@gnu.org>
1813
1814 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1815 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1816 (LIBXT): Set with configure, not cpp.
1817 (LIBX): Remove.
1818 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1819
a101e0fb
DN
18202010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1821
1822 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1823 The FreeBSD is not needed, the default works, Solaris version is
1824 not needed, and the remaining case is not supported by configure.
1825
f63d0028
JD
18262010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1827
1828 * xsmfns.c (CHDIR_OPT): New define.
1829 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1830 restarting emacs.
1831
1832 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1833 shut_down_emacs.
1834
1835 * emacs.c (USAGE1): Mention --chdir.
1836 (main): Handle --chdir.
1837 (standard_args): Add --chdir.
1838 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1839 #5552).
1840
e4814a9f
DN
18412010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1842
cd03c74a
DN
1843 Remove LD_SWITCH_MACHINE.
1844 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1845 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1846
c3a398a1
DN
1847 Clean up IRIX code.
1848 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1849 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1850
87e7285c
DN
1851 Clean up AIX code.
1852 * m/ibmrs6000.inp: Remove file, unused.
1853 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1854 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1855 definition ...
1856 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1857
80f00217
JB
1858 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1859 unused.
e4814a9f 1860
59ca28de
EZ
18612010-05-01 Eli Zaretskii <eliz@gnu.org>
1862
197daef4
EZ
1863 Emulate POSIX_SIGNALS on MS-Windows.
1864
1865 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1866 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1867
1868 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1869 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1870 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1871
80f00217
JB
1872 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1873 New stubs.
197daef4 1874
af7c7572
EZ
1875 Miscellaneous fixes of bidi display.
1876
59ca28de
EZ
1877 * xdisp.c (find_row_end): New function, refactored from display_line.
1878 (display_line): Use it.
017ea819
EZ
1879 (extend_face_to_end_of_line): In almost-filled rows, extend only
1880 if the row is R2L and not continued.
166e930d 1881 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1882 Preserve overlay and string info in row->end.
166e930d
EZ
1883 (insert_left_trunc_glyphs): Support addition of left truncation
1884 glyphs to R2L rows.
b47e0dcf 1885 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1886 glyph between adjacent windows. Fix a crash when a display string
1887 is continued to the next line. Don't return zero if cursor was
1888 found by `cursor' property of a display string.
b47e0dcf
EZ
1889 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1890 test for that explicitly.
59ca28de 1891
7acac9f4
GM
18922010-05-01 Glenn Morris <rgm@gnu.org>
1893
1894 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1895 for clarity.
1896 (OTHER_OBJ): Remove.
1897 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1898 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1899
45841e65
KK
19002010-05-01 Karel Klíč <kklic@redhat.com>
1901
1902 * fileio.c (Ffile_selinux_context): Context functions may return null.
1903
afc61943
DN
19042010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1905
80f00217 1906 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1907
5a1bb006
GM
19082010-04-30 Glenn Morris <rgm@gnu.org>
1909
1910 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1911 (OTHER_OBJ): Define as a separate variable, for clarity.
1912
210af043
J
19132010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1914
1915 * xsettings.c: include limits.h and update file comment.
1916
0a7df391
GM
19172010-04-30 Glenn Morris <rgm@gnu.org>
1918
d5096f16
GM
1919 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1920 Set with configure, not cpp.
1921 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1922
7eb1ac33
GM
1923 * Makefile.in (mallocobj): Remove.
1924 (otherobj): Simplify using @OTHER_OBJ@.
1925
517d086b
GM
1926 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1927 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1928 Don't bother making nsgui.h dependency platform-specific.
1929
0a7df391
GM
1930 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1931
d6d23852
SM
19322010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1933
d2630aef
SM
1934 * process.c (read_process_output, exec_sentinel): Don't burp if the
1935 sentinel/filter kills the current buffer (bug#6060).
1936
f9dddf52 1937 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1938 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1939 Remove unused var `args'.
1940 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1941 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1942 * doc.c (store_function_docstring): Use XSETCAR.
1943
f1e3642a
GM
19442010-04-28 Glenn Morris <rgm@gnu.org>
1945
faf535f8
GM
1946 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1947 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1948
c40f9449
GM
1949 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1950
658f86ca
GM
1951 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1952 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1953
bc0b5f61
GM
1954 * Makefile.in (FONT_OBJ): New, set by configure.
1955 (FONT_DRIVERS): Use $FONT_OBJ.
1956
294c50a0
GM
1957 * Makefile.in (LIBXMU): Set with configure, not cpp.
1958 * s/aix4-2.h (LIBXMU):
1959 * s/hpux10-20.h (LIBXMU):
1960 Remove definition, now set in configure.
1961
e6ec4e99
GM
1962 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1963
f1e3642a
GM
1964 * m/amdx86-64.h [i386]: Move this test to configure.in.
1965
c6ea2936
GM
19662010-04-27 Glenn Morris <rgm@gnu.org>
1967
8fdac2c3
GM
1968 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1969 * s/unixware.h (NEED_LIBW): Remove definition.
1970
986fb647
GM
1971 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1972 (TOOLKIT_LIBW): New, set by configure.
1973 (@X_TOOLKIT_TYPE@): No longer define it.
1974
c6ea2936
GM
1975 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1976 (MOTIF_LIBW): Set with configure, not cpp.
1977 * s/aix4-2.h (LIB_MOTIF):
1978 * s/gnu-linux.h (LIB_MOTIF):
1979 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1980
aaa36002
DN
19812010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1982
1983 Reduce CPP usage.
1984 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1985 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1986 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1987 definitions and undefs. Inline definitions in the only user.
1988 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1989
b678dd8b
GM
19902010-04-27 Glenn Morris <rgm@gnu.org>
1991
76cda504
GM
1992 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1993 since the defaults (set by the system file) are fine in most cases.
1994 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1995 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1996 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1997 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1998 Remove definitions, since they are set correctly in s/gnu-linux.h.
1999 * s/freebsd.h (START_FILES, LIB_STANDARD):
2000 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2001 * s/hpux10-20.h (START_FILES):
2002 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2003 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2004
b678dd8b
GM
2005 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2006 (MOTIF_LIBW): Use $LIBXP.
2007 (otherobj): Use $WIDGET_OBJ.
2008
9452ded1
DN
20092010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2010
7e10844c
DN
2011 * Makefile.in (LIBS_MACHINE): Remove, unused.
2012
9452ded1
DN
2013 Use autoconf instead of cpp for LIB_MATH.
2014 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2015 * s/cygwin.h (LIB_MATH): Likewise.
2016 * Makefile.in (LIB_MATH): Do not define with cpp.
2017 (LIBES): Use autoconf for LIB_MATH.
2018
fcebfc6a
KH
20192010-04-26 Kenichi Handa <handa@m17n.org>
2020
2021 * composite.c (Ffind_composition_internal): Fix the return value
2022 for an automatic composition.
2023
39e2ad1b
DN
20242010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2025
2026 Remove all NO_ARG_ARRAY uses.
2027 * fns.c (concat2, concat3, nconc2):
2028 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2029 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2030 * m/xtensa.h (NO_ARG_ARRAY):
2031 * m/template.h (NO_ARG_ARRAY):
2032 * m/sparc.h (NO_ARG_ARRAY):
2033 * m/sh3.h (NO_ARG_ARRAY):
2034 * m/mips.h (NO_ARG_ARRAY):
2035 * m/macppc.h (NO_ARG_ARRAY):
2036 * m/iris4d.h (NO_ARG_ARRAY):
2037 * m/intel386.h (NO_ARG_ARRAY):
2038 * m/ibms390x.h (NO_ARG_ARRAY):
2039 * m/ibms390.h (NO_ARG_ARRAY):
2040 * m/ibmrs6000.h (NO_ARG_ARRAY):
2041 * m/ia64.h (NO_ARG_ARRAY):
2042 * m/hp800.h (NO_ARG_ARRAY):
2043 * m/arm.h (NO_ARG_ARRAY):
2044 * m/amdx86-64.h (NO_ARG_ARRAY):
2045 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2046
adf4f59c
EZ
20472010-04-25 Eli Zaretskii <eliz@gnu.org>
2048
6bdf5d65
EZ
2049 * xdisp.c (display_line): Don't assume 2nd call to
2050 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2051 (iterate_out_of_display_property): New function, body from pop_it.
2052 (pop_it): Use it.
adf4f59c 2053
dfbbda83
GM
20542010-04-24 Glenn Morris <rgm@gnu.org>
2055
2056 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2057 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2058 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2059 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2060
2d4018aa
EZ
20612010-04-24 Eli Zaretskii <eliz@gnu.org>
2062
a49884a6
EZ
2063 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2064 use `get_next_display_element' and `set_iterator_to_next' to
2065 advance to the next character, when looking for the character that
2066 begins the next row.
2067
76db6fcc 2068 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2069 definition of "struct Lisp_Symbol".
2070
70eab5c1
GM
20712010-04-24 Glenn Morris <rgm@gnu.org>
2072
2073 * Makefile.in (CRT_DIR): New variable, set by configure.
2074 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2075 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2076
1ad4cc3d
DN
20772010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2078
e769f484
DN
2079 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2080
4196ff33
DN
2081 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2082
879b0ee4
DN
2083 Remove redundant flags.
2084 * s/freebsd.h (C_SWITCH_SYSTEM):
2085 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2086 * s/netbsd.h (C_SWITCH_SYSTEM):
2087 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2088 of these.
2089
03cbbcb8
DN
2090 Simplify m/intel386.h.
2091 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2092 user: ecrt0.c.
2093 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2094 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2095 the only user: s/unixware.h.
2096 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2097 from m/intel386.h.
2098 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2099 moved here from m/intel386.h.
2100
1ad4cc3d
DN
2101 * m/mips.h: Remove #if 0 code.
2102
8785b888
EZ
21032010-04-23 Eli Zaretskii <eliz@gnu.org>
2104
728588cc
EZ
2105 Fix display of composed characters from L2R scripts in bidi buffers.
2106 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2107 After advancing IT past the composition, resync the bidi iterator
2108 with IT's position. (Bug#5977)
2109
a63f80b4
DN
21102010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2111
2112 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2113 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2114
ff5dec5c
SM
21152010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2116
2117 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2118
8785b888
EZ
21192010-04-23 Eli Zaretskii <eliz@gnu.org>
2120
58ccf243 2121 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2122 * xdisp.c (pop_it): When the stack is popped after displaying
2123 from a string, bidi-iterate to exit from the text portion covered
2124 by the `display' property or overlay. (Bug#5988, bug#5920)
2125
feeb1604
DN
21262010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2127
8e324eb6
DN
2128 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2129 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2130
809fcaba
DN
2131 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2132 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2133
ed710380
DN
2134 Simplify STARTFILES definition.
2135 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2136 relying on Makefile.in to define it.
2137 * s/cygwin.h (START_FILES): Likewise.
2138 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2139
feeb1604
DN
2140 Clean up Solaris code.
2141 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2142 (LIB_MOTIF): Remove, configure takes care of this.
2143 (NOT_USING_MOTIF): Remove, unused.
2144 * xrdb.c: Remove #if 0-ed #include.
2145 (SYSV): Remove conditional for old SysV.
2146 * sysdep.c (closedir): Remove conditional code for Solaris,
2147 Solaris has closedir.
2148
a0d0b563
JD
21492010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2150
2151 * xsettings.c (read_and_apply_settings): Check if current_font is
2152 NULL before strcmp (Bug#6001).
2153
56bae7c7
DN
21542010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2155
2156 Clean up HP-UX files.
2157 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2158 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2159 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2160 * s/hpux10-20.h: ... to the only user, here.
2161
372b7a95
EZ
21622010-04-21 Eli Zaretskii <eliz@gnu.org>
2163
2164 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2165 use buffer-local values of paragraph-start and paragraph-separate.
2166 <paragraph_start_re, paragraph_separate_re>: Rename from
2167 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2168 (Bug#5992)
2169
f904c0f9
JD
21702010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2171
2172 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2173 current_tool_bar_style are new.
2174 (store_config_changed_event): Rename from store_font_changed_event.
2175 (XSETTINGS_TOOL_BAR_STYLE): New define.
2176 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2177 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2178 HAVE_XFT.
2179 (something_changedCB): store_font_changed_event is now
2180 store_config_changed_event
2181 (parse_settings): Rename from parse_xft_settings. Read
2182 non-xft xsettings outside #ifdef HAVE_XFT.
2183 (read_settings): Renamed from read_xft_settings.
2184 (apply_xft_settings): Take current settings as parameter. Do not
2185 call read_(xft)_settings.
2186 (read_and_apply_settings): New function.
2187 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2188 read_and_apply_settings if there are settings to be read.
2189 (init_xsettings): Renamed from init_xfd_settings.
2190 Call read_and_apply_settings unconditionally.
2191 (xsettings_initialize): Call init_xsettings.
2192 (Ftool_bar_get_system_style): New function.
2193 (syms_of_xsettings): Define Qmonospace_font_name and
2194 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2195 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2196 dynamic-setting.
31a01b90 2197 Move misplaced HAVE_GCONF
f904c0f9
JD
2198
2199 * xsettings.h (Ftool_bar_get_system_style): Declare.
2200
2201 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2202 Qtext, Qboth, Qboth_horiz are new.
2203 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2204 Vtool_bar_style, tool_bar_max_label_size.
2205
2206 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2207
2208 * keyboard.c: QClabel is new.
2209 (parse_tool_bar_item): Take out QClabel from tool bar items.
2210 Try to construct a label if ther is no QClabel.
2211 (syms_of_keyboard): Intern :label as QClabel.
2212
2213 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2214 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2215 New.
2216
2217 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2218 dynamic-setting.el.
2219
2220 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2221 (xg_make_tool_item, xg_show_toolbar_item): New function.
2222 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2223 Call xg_make_tool_item to make a tool bar item.
2224 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2225
2226 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2227 into account for toolbars.
2228
c632dfda
JD
22292010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2230
2231 * data.c (make_blv): Declarations before code (Bug#5993).
2232
10efe302
GM
22332010-04-21 Glenn Morris <rgm@gnu.org>
2234
2235 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2236 Define using autoconf, not cpp.
2237 (LIBXSM): New variable, set by autoconf.
2238 (LIBXT): Use $LIBXSM.
2239
4285ac5a
DN
22402010-04-21 Dan Nicolaescu <local_user@dannlt>
2241
3ec759e7
DN
2242 Remove NOMULTIPLEJOBS, unused.
2243 * s/template.h (NOMULTIPLEJOBS):
2244 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2245
4285ac5a
DN
2246 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2247 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2248 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2249 detects -znocombreloc and passes it to the linker
2250 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2251
2807228d
GM
22522010-04-21 Glenn Morris <rgm@gnu.org>
2253
2254 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2255
574c05e2
KK
22562010-04-21 Karel Klíč <kklic@redhat.com>
2257
2258 * Makefile.in (LIBSELINUX_LIBS): New.
2259 (LIBES): Add $LIBSELINUX_LIBS.
2260 * eval.c, lisp.h (call7): New function.
2261 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2262 (Ffile_selinux_context, Fset_file_selinux_context):
2263 New functions.
2264 (Fcopy_file): New parameter preserve-selinux-context.
2265 (Frename_file): Preserve selinux context when renaming by copy-file.
2266
91eac4bb 22672010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2268 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2269
50426a04
JB
2270 Don't depend on cm.c or termcap.c on Windows, use stubs.
2271 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2272 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2273 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2274 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2275 (sys_tputs, sys_tgetstr): New stubs.
2276 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2277 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2278
938efb77
JB
22792010-04-20 Juanma Barranquero <lekktu@gmail.com>
2280
2281 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2282
b4bf28b7
SM
22832010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2284
8b1e1112
SM
2285 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2286 Just signal a warning rather than an error when inside a let.
2287 (Fmake_variable_frame_local): Add the same test.
2288
933ac235
SM
2289 * font.c (syms_of_font): Make the style table vars read-only.
2290
b4bf28b7
SM
2291 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2292 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2293
2294 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2295
93d68d0c
EZ
22962010-04-20 Eli Zaretskii <eliz@gnu.org>
2297
2298 Fix R2L paragraph display on TTY.
2299
2300 * xdisp.c (unproduce_glyphs): New function.
2301 (display_line): Use it when produced glyphs are discarded from R2L
2302 glyph rows.
2303 (append_composite_glyph): In R2L rows, prepend the glyph rather
2304 than appending it.
2305
2306 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2307 rather than append it. Set up the resolved_level and bidi_type
2308 attributes of the appended glyph.
283ccc18
EZ
2309 (produce_special_glyphs): Mirror the backslash continuation
2310 character in R2L lines.
93d68d0c 2311
283ccc18 2312 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2313
283ccc18
EZ
2314 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2315 append_stretch_glyph.
2316 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2317 off-by-one error in computing x at end of text in the row.
2318 (append_stretch_glyph): In reversed row, prepend the glyph rather
2319 than append it. Set resolved_level and bidi_type of the glyph.
2320 (extend_face_to_end_of_line): If the row is reversed, prepend a
2321 stretch glyph whose width is such that the rightmost glyph will be
2322 drawn at the right margin of the window. Fix off-by-one error on
2323 TTY frames in testing whether a line needs face extension. Fix
2324 face extension at ZV. If this is the last glyph row, use
2325 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2326 region face.
2327 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2328 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2329 row->continuation_lines_width.
283ccc18
EZ
2330 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2331 are at ZV. Fixes a crash when reseated to ZV by
2332 try_window_reusing_current_matrix.
45903529
EZ
2333 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2334 which happens with R2L glyph rows. Fixes a crash when inserting a
2335 character at end of an R2L line.
283ccc18
EZ
2336 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2337 treat them as having zero-width characters. Improve comments.
2338 Don't reverse pos_before and pos_after for reversed glyph rows.
2339 Set cursor.x to negative value when the cursor might be on the
2340 left fringe.
2341 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2342 left fringe, not the right one.
f951a506
EZ
2343 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2344 (erase_phys_cursor): For reversed cursor_row, support cursor on
2345 the left fringe.
2346
283ccc18
EZ
2347 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2348 of continuation indicators on the fringes.
2349 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2350 left fringe.
2351
f951a506
EZ
2352 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2353 draw cursor on the left fringe.
2354
2355 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2356 cursor on the left fringe.
2357
f951a506
EZ
2358 * dispnew.c (update_text_area): Handle reversed desired rows when
2359 the cursor is on the left fringe.
2360 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2361 below, not by 0, for when the cursor is on the left fringe.
2362
3bb49aaf
JD
23632010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2364
2365 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2366 widget is a scrollbar.
2367
c0be27fd
KH
23682010-04-20 Kenichi Handa <handa@m17n.org>
2369
2370 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2371 only when the arg CHARSET_LIST is nil.
2372
ce5b453a
SM
23732010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2374
2375 Make variable forwarding explicit rather the using special values.
2376 Basically, this makes the structure of buffer-local values and object
2377 forwarding explicit in the type of Lisp_Symbols rather than use
2378 special Lisp_Objects for that. This tends to lead to slightly more
2379 verbose code, but is more C-like, simpler, and makes it easier to make
2380 sure we handled all cases, among other things by letting the compiler
2381 help us check it.
2382 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2383 Removing forwarding objects.
2384 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2385 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2386 explicit rather than hiding them inside Lisp_Object "values".
2387 (XFWDTYPE): New macro.
2388 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2389 (XBUFFER_LOCAL_VALUE): Remove.
2390 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2391 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2392 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2393 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2394 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2395 Remove the Lisp_Misc_* header.
2396 (struct Lisp_Buffer_Local_Value): Redefine.
2397 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2398 (struct Lisp_Misc_Any): Add filler to get the right size.
2399 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2400 Lisp_Intfwd.
2401 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2402 (DEFVAR_KBOARD): Allocate a forwarding object.
2403 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2404 (let_shadows_global_binding_p): New function.
2405 (union Lisp_Val_Fwd): New type.
2406 (make_blv): New function.
2407 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2408 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2409 (swap_in_symval_forwarding, find_symbol_value, Fset)
2410 (let_shadows_buffer_binding_p, set_internal, default_value)
2411 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2412 (Fkill_local_variable, Fmake_variable_frame_local)
2413 (Flocal_variable_p, Flocal_variable_if_set_p)
2414 (Fvariable_binding_locus):
2415 * xdisp.c (select_frame_for_redisplay):
2416 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2417 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2418 * frame.c (store_frame_param):
2419 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2420 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2421 value structure.
2422 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2423 (clone_per_buffer_values): Only adjust markers into the current buffer.
2424 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2425 (Fbuffer_local_value, set_buffer_internal_1)
2426 (swap_out_buffer_local_variables):
2427 Adapt to the new symbol value structure.
2428 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2429 (defvar_per_buffer): Take a new arg for the fwd object.
2430 (buffer_lisp_local_variables): Return a proper alist (different fix
2431 for bug#4138).
2432 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2433 (Fgarbage_collect): Don't handle buffer_defaults specially.
2434 (mark_object): Handle new symbol value structure rather than the old
2435 special Lisp_Misc_* objects.
2436 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2437 * term.c (set_tty_color_mode):
2438 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2439 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2440 a buffer_local_flags.
2441 * print.c (print_object): Get rid of impossible forwarding objects.
2442
fd3998ff
EZ
24432010-04-19 Eli Zaretskii <eliz@gnu.org>
2444
2445 * bidi.c (bidi_get_type, bidi_get_category)
2446 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2447 (bidi_type_of_next_char, bidi_level_of_next_char):
2448 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2449
e42cd1a7
JB
24502010-04-19 Juanma Barranquero <lekktu@gmail.com>
2451
2452 * dired.c (Ffile_attributes): Fix typo in docstring.
2453
6e104790 24542010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2455
2456 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2457 NSInteger (Bug#5811).
2458
6e104790 24592010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2460
2461 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2462 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2463
6e104790 24642010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2465
2466 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2467
6e104790
SM
24682010-04-19 Chong Yidong <cyd@stupidchicken.com>
2469
2470 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2471 terminal frames (Bug#5837).
2472
37dcfea0
EZ
24732010-04-19 Eli Zaretskii <eliz@gnu.org>
2474
d1da276f
EZ
2475 * .gdbinit (xsubchartable): New command.
2476
37dcfea0
EZ
24772010-04-19 Eli Zaretskii <eliz@gnu.org>
2478
2479 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2480 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2481 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2482 and
2483 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2484
e9515805
SM
24852010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2486
2487 * alloc.c (Fpurecopy): Hash-cons if requested.
2488 (syms_of_alloc): Update purify-flag docstring.
2489
22aa44a8
JD
24902010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2491
2492 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2493 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2494
ebb5722e
EZ
24952010-04-17 Eli Zaretskii <eliz@gnu.org>
2496
2497 Fix a crash when an NSM character is inserted at BEGV.
2498
2499 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2500 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2501 NEUTRAL_B or UNKNOWN_BT.
2502
0f4442ef
EZ
25032010-04-16 Eli Zaretskii <eliz@gnu.org>
2504
2505 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2506 other rows with cursor unless they are different from this row and
2507 this row is part of a continued line. (Bug#5943)
2508
7d4e45f8
DN
25092010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2510
2511 * s/freebsd.h: Restore osreldate.h include.
2512 Suggested by Naohiro Aota.
2513
5ba5ec85
J
25142010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2515
2516 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2517
20af301d
CY
25182010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2519
2520 * s/cygwin.h: Avoid linking against static libgcc.
2521
a4b000fb
JL
25222010-04-15 Juri Linkov <juri@jurta.org>
2523
2524 * window.c: Add Qscroll_command.
2525 Remove Vscroll_preserve_screen_position_commands.
2526 (window_scroll_pixel_based, window_scroll_line_based): Check the
2527 `scroll-command' property on the last command instead of searching
2528 the last command in Vscroll_preserve_screen_position_commands.
2529 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2530 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2531 (scroll-preserve-screen-position): Doc fix.
2532 (Vscroll_preserve_screen_position_commands): Remove variable.
2533
bc319ba4
DN
25342010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2535
6bb24457
DN
2536 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2537
19d4c244
DN
25382010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2539
2540 Reduce cpp use in Makefile.in.
2541 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2542 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2543 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2544 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2545 (CRT0_COMPILE): Remove, inline it in the only user.
2546
32129746
JL
25472010-04-14 Juri Linkov <juri@jurta.org>
2548
2549 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2550 `scroll-up-command' and `M-v' from `scroll-down' to
2551 `scroll-down-command'.
2552
9013a7f8
JL
25532010-04-14 Juri Linkov <juri@jurta.org>
2554
2555 * window.c (Vscroll_preserve_screen_position_commands): New variable
2556 with the default value as the list of Qscroll_down and Qscroll_up.
2557 (window_scroll_pixel_based, window_scroll_line_based): Search the
2558 last command in the list Vscroll_preserve_screen_position_commands
2559 instead of comparing with Qscroll_up and Qscroll_down.
2560
4bef8d26
JD
25612010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2562
92848133
JD
2563 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2564 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2565 does that.
2566
4bef8d26
JD
2567 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2568 to zero.
2569
58b963f7
SM
25702010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2571
84164a0d
SM
2572 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2573
2b0a91e7
SM
2574 Try to solve the problem of spurious EOF chars in long lines of text
2575 sent to interactive subprocesses.
2576 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2577 (system_process_attributes): Remove unused var `ttotal'.
2578 * process.c (send_process): Don't bother breaking long line with EOF
2579 chars when talking to ttys any more.
2580 (wait_reading_process_output): Output a warning when called in such
2581 a way that it could block without being interruptible.
2582
58b963f7
SM
2583 Try to detect file modification within the same second.
2584 * buffer.h (struct buffer): New field modtime_size.
2585 * buffer.c (reset_buffer): Initialize it.
2586 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2587 (Fverify_visited_file_modtime): Check it.
2588 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2589 (Fset_visited_file_modtime): Set (or clear) it.
2590
01f5787b
SM
25912010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2592
2593 * process.c (status_notify): Remove unused var `ro'.
2594
83725342
JD
25952010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2596
2597 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2598 more than one visual (Bug#5938).
2599
b9465836
DN
26002010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2601
50426a04
JB
2602 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2603 Undefine.
b9465836 2604
8d9c8ece
DN
26052010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2606
b1f52161
DN
2607 Remove C_SWITCH_SYSTEM_TEMACS.
2608 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2609 (malloc, realloc, free): Use emacs, not temacs for conditional
2610 definition.
2611
2612 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2613 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2614
8d9c8ece
DN
2615 Use autoconf, not cpp for some variables.
2616 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2617 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2618 (ALL_CFLAGS): Use them as make variables.
2619 (really-lwlib, really-oldXMenu): Do not pass them.
2620
1ecb2d3f
JD
26212010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2622
2623 * xmenu.c (apply_systemfont_to_dialog): New.
2624 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2625
3a4fa2f2
SM
26262010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2627
97e53006
SM
2628 * process.c (exec_sentinel): Preserve current-buffer.
2629
3a4fa2f2
SM
2630 * process.c (read_process_output): Move the save-current-buffer to
2631 apply to both the filter and the non-filter branches.
2632
88df7221
DN
26332010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2634
2635 * s/msdos.h (UNEXEC): New definition.
2636
5634ff85
YM
26372010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2638
6eff5c3d
YM
2639 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2640 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2641
2642 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2643 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2644 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2645 TRY_WINDOW_CHECK_MARGINS.
2646
2647 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2648 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2649 width only when it is for padding.
5634ff85 2650
b13aef54
J
26512010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2652
2653 * xfns.c (Fx_show_tip): Call try_window in a loop until
2654 fonts_changed_p is zero (Bug#2423).
2655
21d28484
EZ
26562010-04-08 Eli Zaretskii <eliz@gnu.org>
2657
2658 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2659 the end of TEXT_AREA. (Bug#5856)
2660
0269ef77
JD
26612010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2662
2663 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2664 HAVE_GCONF.
2665
5930fe97
EZ
26662010-04-08 Eli Zaretskii <eliz@gnu.org>
2667
2668 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2669 prev.orig_type, for resolving type of NSM. (Bug#5858)
2670
99852628
JD
26712010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2672
2673 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2674 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2675 in current_font.
2676 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2677 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2678 New functions.
2679 (syms_of_xsettings): Initialize current_font.
2680 defsubr Sfont_get_system_normal_font.
99852628
JD
2681
2682 * xsettings.h (Ffont_get_system_normal_font,
2683 xsettings_get_system_normal_font): Declare.
2684
2685 * xfns.c (extern xlwmenu_default_font): Remove.
2686 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2687 to xlwmenu.c.
2688
2689 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2690 menu items in UTF-8.
2691
2692 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2693 (apply_systemfont_to_menu): New function.
2694 (set_frame_menubar, create_and_show_popup_menu): Call
2695 apply_systemfont_to_menu.
2696
7fc874c4
J
26972010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2698
2699 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2700 FRAME_LINE_TO_PIXEL_Y.
2701
2702 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2703 pixelwidth/height.
2704
863bf481
DN
27052010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2706
5e5a3b92
DN
2707 Simplify code for HP machines.
2708 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2709 for GNU_LINUX, not needed.
2710 (UNEXEC, NEED_BSDTTY): Move definitions...
2711 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2712
863bf481
DN
2713 * m/iris4d.h (UNEXEC): Move definition ...
2714 * s/irix6-5.h (UNEXEC): ... here.
2715
3e6bec3b
JD
27162010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2717
2718 * xfns.c (set_machine_and_pid_properties): New function.
2719 (Fx_create_frame): Call set_machine_and_pid_properties.
2720
2912322b
SM
27212010-04-03 Eli Zaretskii <eliz@gnu.org>
2722
1502b819
EZ
2723 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2724 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2725 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2726
2912322b
SM
2727 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2728 in this function. (Bug#5703)
2729
27302010-04-03 Chong Yidong <cyd@stupidchicken.com>
2731
2732 * nsterm.h: Fix last change.
2733
c435b432
DN
27342010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2735
a568f507
DN
2736 * m/intel386.h (NO_REMAP): Move definition ...
2737 * s/msdos.h (NO_REMAP): ... here.
2738
4cd9f6c2
DN
2739 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2740
c435b432
DN
2741 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2742 used on those platforms.
2743
42a2c622
DN
27442010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2745
2746 Remove extern errno declarations.
2747 * xterm.c:
2748 * xrdb.c:
2749 * w32term.c:
2750 * unexec.c:
2751 * unexaix.c:
2752 * sysdep.c:
2753 * process.c:
2754 * lread.c:
2755 * keyboard.c:
2756 * floatfns.c:
2757 * filelock.c:
2758 * fileio.c:
2759 * emacs.c (main):
2760 * ecrt0.c:
2761 * dispnew.c:
2762 * callproc.c:
2763 * buffer.c: Remove errno extern declarations.
2764 * s/netbsd.h (NEED_ERRNO): Remove.
2765
8224f93d
DN
27662010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2767
2768 Remove all uses of LIBX11_SYSTEM.
2769 * Makefile.in (LIBX11_SYSTEM): Remove.
2770 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2771 instead.
2772
814062c7
EZ
27732010-04-01 Eli Zaretskii <eliz@gnu.org>
2774
ed68db4d
EZ
2775 Remove support for DJGPP v1.x (bug#5813).
2776
2777 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2778 * s/msdos.h:
2779 * unexec.c (make_hdr, copy_text_and_data):
2780 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2781 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2782 (IT_set_terminal_modes, __write, _rename, gethostname)
2783 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2784 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2785 the value of __DJGPP__.
ed68db4d
EZ
2786 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2787 compatibility code.
8224f93d
DN
2788 * lread.c:
2789 * gmalloc.c (memalign):
2790 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2791 * emacs.c (main):
2792 * dosfns.c (init_dosfns):
ed68db4d
EZ
2793 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2794
52f4d8d5
EZ
27952010-04-01 Eli Zaretskii <eliz@gnu.org>
2796
814062c7
EZ
2797 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2798 string with `cursor' property comes from an `after-string'
2799 overlay. (Bug#5816)
2800
0dc2e11d
GM
28012010-04-01 Glenn Morris <rgm@gnu.org>
2802
2803 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2804 Define as Makefile variables.
2805 (LIBX): Use above variables rather than directly using autoconf.
2806
1d29df59
DN
28072010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2808
2809 Clean up BSD_SYSTEM use.
2810 * xterm.c:
2811 * process.c:
2812 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2813 for including <sys/ioctl.h>.
2814 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2815 code is only used for MSDOS.
2816
1546c559
JL
28172010-03-31 Juri Linkov <juri@jurta.org>
2818
2819 * image.c: Add `Qextension_data'.
2820 (syms_of_image): Initialize and staticpro `Qextension_data'.
2821 (Fimage_metadata): Rename from `Fimage_extension_data'.
2822 (gif_load): Put GIF extension data to the property
2823 `Qextension_data'.
2824
6521c534
CY
28252010-03-31 Chong Yidong <cyd@stupidchicken.com>
2826
2827 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2828 * nsterm.h: Fix prototype.
2829
52c30783
EZ
28302010-03-31 Eli Zaretskii <eliz@gnu.org>
2831
2832 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2833 trailing whitespace in right-to-left rows.
2834
855a0da7
SM
28352010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2836
2837 Get rid of the direct_output optimizations.
2838 * keyboard.c (nonundocount): Remove extern declaration.
2839 (command_loop_1): Remove brittle optimisation for cheap and
2840 common operations.
2841 * xdisp.c (redisplay_internal): Don't bother checking
2842 redisplay_performed_directly_p any more.
2843 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2844 any more.
2845 * dispnew.c (redisplay_performed_directly_p)
2846 (direct_output_for_insert, direct_output_forward_char):
2847 * dispextern.h (redisplay_performed_directly_p)
2848 (direct_output_for_insert, direct_output_forward_char): Remove.
2849 * cmds.c (nonundocount): Make it static.
2850
85738751 28512010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2852
2853 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2854
85738751 28552010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2856
2857 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2858 invisible (Bug#5766).
2859
85738751 28602010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2861
855a0da7
SM
2862 * xdisp.c (x_consider_frame_title, update_window_cursor):
2863 Remove HAVE_NS conditionals.
194d44e7 2864 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2865
2866 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2867 filename for the title.
2868 (ns_set_doc_edited): Do nothing if the selected window is a
2869 minibuffer window.
2870
2871 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2872 ns_set_doc_edited.
2873
2874 * nsterm.m: Remove unneeded prototype.
2875
85738751 28762010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2877
2878 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2879 in the DOC file. (Bug#5336)
2880
85738751 28812010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2882
2883 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2884
75d1428c
SM
28852010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2886
2887 * window.c (keys_of_window): Remove redundant/overridden bindings.
2888
82043cfb
EZ
28892010-03-30 Eli Zaretskii <eliz@gnu.org>
2890
2891 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2892 Restore original behavior when the iterator is not bidi_p.
2893
b5dd0ae7
DN
28942010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2895
2896 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2897
bd924a5d
EZ
28982010-03-30 Eli Zaretskii <eliz@gnu.org>
2899
2900 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2901 are outside the range of cached character positions.
2902
3580374b
JB
29032010-03-30 Juanma Barranquero <lekktu@gmail.com>
2904
2905 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2906
a7b02820
EZ
29072010-03-30 Eli Zaretskii <eliz@gnu.org>
2908
2909 Initial support for bidirectional editing.
2910
2911 * Makefile.in (obj): Include bidi.o.
2912 (bidi.o): New target.
2913
2914 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2915 ($(BLD)/bidi.$(O)): New target.
2916
2917 * bidi.c: New file.
2918
2919 * buffer.h (struct buffer): New members bidi_display_reordering
2920 and bidi_paragraph_direction.
2921
2922 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2923 and bidi_paragraph_direction.
2924 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2925 and bidi-paragraph-direction.
2926 (Fbuffer_swap_text): Swap the values of
2927 bidi_display_reordering and bidi_paragraph_direction.
2928
2929 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2930 (bidi_type_t, bidi_dir_t): New types.
2931 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2932 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2933 prev_stop, base_level_stop, and eol_pos.
2934 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2935 (IT_STACK_SIZE): Enlarge to 5.
2936 (struct glyph_row): New member reversed_p.
2937 <string_buffer_position>: Update prototype.
2938 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2939 glyph_row if bidi_it.paragraph_dir == R2L.
2940 (struct glyph): New members resolved_level and bidi_type.
2941
2942 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2943 processing or buffer's direction is right-to-left.
2944 (prepare_desired_row): Preserve the reversed_p flag.
2945 (row_equal_p): Compare the reversed_p attributes as well.
2946
2947 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2948 bidi_init_it and set it->paragraph_embedding from the current
2949 buffer's value of bidi_paragraph_direction.
2950 (reseat_1): Initialize bidi_it.first_elt.
2951 (set_iterator_to_next, next_element_from_buffer): Use the value of
2952 paragraph_embedding to determine the paragraph direction.
2953 (set_iterator_to_next): Under bidi reordering, call
2954 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2955 new_paragraph flag is set in the bidi iterator.
2956 (next_element_from_buffer): If bidi_it.first_elt is set,
2957 initialize paragraph direction and find the first character to
2958 display in the visual order. If reseated to a middle of a line,
2959 prime the bidi iterator starting at the line's beginning. Handle
2960 the situation where we overstepped stop_charpos due to
2961 non-linearity of the bidi iteration. Likewise for when we back up
2962 beyond the previous stop_charpos. When moving across stop_charpos,
2963 record it in prev_stop.
2964 (display_line): Set row->end and it->start for the next row to the
2965 next character in logical order. Always extend reversed_p rows to
2966 the end of line, even if they end at ZV. Copy the reversed_p flag
2967 to the next glyph row. Keep calling set_cursor_from_row for
2968 bidi-reordered rows even if we already have a possible candidate
2969 for cursor position. Set row_end after all the row's glyphs have
2970 been produced, by looping over the glyphs. Record the position
2971 after EOL in it->eol_pos, and use it to set end_pos of the last
2972 row produced for a continued line.
2973 <Qright_to_left, Qleft_to_right>: New variables.
2974 (syms_of_xdisp): Initialize and staticpro them.
2975 (string_buffer_position_lim): New function.
2976 (string_buffer_position): Most of code moved to
2977 string_buffer_position_lim. Last argument and return value are
2978 now EMACS_INT; all callers changed.
2979 (set_cursor_from_row): Rewritten to support bidirectional text and
2980 reversed glyph rows.
2981 (text_outside_line_unchanged_p, try_window_id): Disable
2982 optimizations if we are reordering bidirectional text and the
2983 paragraph direction can be affected by the change.
2984 (append_glyph, append_composite_glyph)
2985 (produce_image_glyph, append_stretch_glyph): Set the
2986 resolved_level and bidi_type members of each glyph.
2987 (append_glyph): If the glyph row is reversed, prepend the glyph
2988 rather than appending it.
2989 (handle_stop_backwards): New function.
2990 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2991 (reseat): call handle_stop_backwards to recompute prev_stop and
2992 base_level_stop for the new position.
2993 (handle_invisible_prop): Under bidi iteration, skip invisible text
2994 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2995 paragraph direction. Update IT->prev_stop after skipping
2996 invisible text.
2997 (move_it_in_display_line_to): New variables prev_method
2998 and prev_pos. Compare for strict equality in
2999 BUFFER_POS_REACHED_P.
3000 (try_cursor_movement): Examine all the candidate rows that occlude
3001 point, to return the best match. If rows are bidi-reordered
3002 and point moved backwards, back up to the row that is not a
3003 continuation line, and start looking for a suitable row from
3004 there.
3005
3006 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3007 rather than appending, if the glyph_row's reversed_p flag is set.
3008 Set the resolved_level and bidi_type members of each glyph.
3009
3010 * .gdbinit (pbiditype): New command.
3011 (pgx): Use it to display bidi level and type of the glyph.
3012 (pitx): Display some bidi information about the iterator.
3013 (prowlims, pmtxrows): New commands.
3014
32a8894e
DN
30152010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3016
3017 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3018 * s/usg5-4.h (LIBS_DEBUG):
3019 * s/irix6-5.h (C_DEBUG_SWITCH):
3020 * s/gnu-linux.h (LIBS_DEBUG):
3021 * s/darwin.h (LIBS_DEBUG):
3022 * s/bsd-common.h (LIBS_DEBUG):
3023 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3024 * m/iris4d.h (LIBS_DEBUG):
3025 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3026
3027 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3028 (LIBS_DEBUG): Remove definition.
3029
649dbf36
CY
30302010-03-27 Chong Yidong <cyd@stupidchicken.com>
3031
3032 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3033 Windows.
3034
cad4261f
YM
30352010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3036
3037 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3038 `connect' (Bug#5723).
3039
cd591dbc
HE
30402010-03-25 Helmut Eller <eller.helmut@gmail.com>
3041
3042 * process.c (Fmake_network_process): Call `select' for interrupted
3043 `connect' rather than creating new socket (Bug#5173).
3044
e867cb5d 30452010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3046
3047 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3048
3049 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3050
3051 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3052
e867cb5d 30532010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3054
3055 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3056 XLoadQueryFont.
3057
e867cb5d 30582010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3059
3060 * coding.c (decode_coding_ccl): Fix previous change for the
3061 multibyte case.
fb608df3
KH
3062 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3063 case that the output buffer is fullfilled.
3064 (encode_coding): Setup ccl program here.
fbdc1721 3065
5845f0ed
DN
30662010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3067
814fb708
DN
3068 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3069
5845f0ed
DN
3070 Simplify LIBS_MACHINE definitions.
3071 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3072 * m/iris4d.h (LIBS_MACHINE): Likewise.
3073 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3074 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3075 * s/netbsd.h: Remove commented out code.
5845f0ed 3076
b7064064
DN
30772010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3078
df7734b2
DN
3079 Remove dead code dealing with POSIX_SIGNALS.
3080 * atimer.c (set_alarm): Remove dead code, all USG systems define
3081 POSIX_SIGNALS.
3082 * data.c (arith_error): Likewise.
3083 * keyboard.c (input_available_signal, handle_user_signal)
3084 (interrupt_signal): Likewise.
3085 * process.c (sigchld_handler): Likewise.
3086 (create_process): Remove if 0 code. Remove HPUX conditional when
3087 !defined (POSIX_SIGNALS), it cannot be true.
3088 * syssignal.h: Remove USG5_4 and USG conditionals when
3089 !POSIX_SIGNALS, they cannot be true.
3090
b7064064
DN
3091 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3092 NO_SOCK_SIGIO, not used anymore.
3093
55da5ee3
DN
30942010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3095
0be96e3a
DN
3096 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3097 support vax on BSDs.
3098
55da5ee3
DN
3099 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3100 * s/aix4-2.h (ORDINARY_LINK): ... here.
3101
c0282183
AS
31022010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3103
82c3d67a
AS
3104 * Makefile.in (abs_builddir): Define.
3105 (bootstrap_exe): Use it.
3106 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3107
3613edce
SM
31082010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3109
3110 * Makefile.in (bootstrap_exe): Use an absolute name.
3111
7f110ddc
DN
31122010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3113
22e87574
DN
3114 Remove support for old GNU/Linux using libc version 5.
3115 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3116 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3117
05a670e6
DN
3118 Consolidate redundant definitions in s/bsd-common.h.
3119 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3120 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3121 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3122 doing it in all files that include this one.
3123 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3124 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3125 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3126 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3127 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3128 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3129 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3130 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3131 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3132
2968f561
DN
3133 Consolidate redundant definitions.
3134 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3135 it's undefined in all files that include this one.
3136 (POSIX_SIGNALS): Define here instead of doing it in all files that
3137 include this one.
3138 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3139 (POSIX_SIGNALS): Do not define.
3140 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3141 (POSIX_SIGNALS): Do not define.
3142 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3143 (POSIX_SIGNALS): Do not define.
3144
15d25dc0
DN
3145 Remove support for old UNIX System V systems.
3146 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3147 * s/usg-5-4-2.h: Remove.
3148
07e339e4
DN
3149 Remove support for Solaris on PPC and for old versions.
3150 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3151 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3152 that cancel each other.
3153 * s/sol2-3.h:
3154 * s/sol2-4.h:
3155 * s/sol2-5.h: Remove.
3156 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3157 (NO_REMAP): Remove, unused.
3158 (UNEXEC): Move definition ...
3159 * s/aix4-2.h (UNEXEC): ... here.
3160
7f110ddc
DN
3161 * s/openbsd.h: Remove support for non-ELF and for systems that do
3162 not support shared libraries.
3163 * s/netbsd.h:
3164 * s/freebsd.h: Likewise.
3165
605f35cd
DN
31662010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3167
3168 Remove non-working support for lynxos 3.0.
3169 * s/lynxos.h: Remove file.
3170
3171 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3172 COFF_BSD_SYMBOLS, nothing defines it anymore.
3173
aed71cf4
DN
31742010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3175
3176 Remove obsolete uses of HAVE_SHM.
3177 * emacs.c (standard_args):
3178 (Fdump_emacs):
3179 (syms_of_emacs): Remove code depending on HAVE_SHM.
3180
3181 * alloc.c: Remove HAVE_SHM dependent definition.
3182
3183 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3184
aded53ff
GM
31852010-03-18 Glenn Morris <rgm@gnu.org>
3186
17284745
GM
3187 * emacs.c (USAGE4): Hard-code bug address.
3188 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3189 (bug_reporting_address): Remove.
3190 (main): Don't call bug_reporting_address.
3191
aded53ff
GM
3192 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3193 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3194
303500aa
CY
31952010-03-15 Chong Yidong <cyd@stupidchicken.com>
3196
3197 * xfns.c (Fx_create_frame):
3198 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3199 on left.
3200
cef3058f
CY
32012010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3202
3203 * editfns.c (Fformat): Account for string precision when computing
3204 field width (Bug#5710).
3205
a647d59d
CY
32062010-03-12 Chong Yidong <cyd@stupidchicken.com>
3207
4fa42018
CY
3208 * xfns.c (Fx_create_frame): Set default to Qright.
3209
a647d59d
CY
3210 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3211 all window systems.
3212
6da23aaa
EZ
32132010-03-12 Eli Zaretskii <eliz@gnu.org>
3214
a96f6398 3215 These changes remove termcap.c from the build on Posix platforms.
83d02def 3216 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3217 (MSDOS_OBJ): ...to here.
3218 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3219 now identical to when LIBS_TERMCAP is defined.
3220
3221 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3222
3223 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3224
a96f6398 3225 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3226
288f9fc0
CY
32272010-03-10 Chong Yidong <cyd@stupidchicken.com>
3228
3229 * Branch for 23.2.
3230
d48cd3f4
SM
32312010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3232
3233 Cleanup setup of gl_state in various parts of the code.
3234 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3235 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3236 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3237 (skip_chars):
3238 * regex.c (regex_compile): Use it.
3239 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3240 it's now set in regex_compile when/if we need it.
3241
618db430
SM
32422010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3243
c0335e02
SM
3244 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3245 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3246 (QUIT): Use it to consolidate code and remove redundancy.
3247 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3248
254c06a8
SM
3249 * regex.c (regex_compile): Setup gl_state as well.
3250
618db430
SM
3251 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3252 (in_classes): Use CONSP before XCAR/XCDR.
3253
233f0c9f
CY
32542010-03-03 Chong Yidong <cyd@stupidchicken.com>
3255
3256 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3257 definitions, so that keyboard macros are correctly handled
3258 (Bug#5481).
3259
75f80e63
EZ
32602010-03-02 Eli Zaretskii <eliz@gnu.org>
3261
3262 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3263 text that could be relocated inside the call to emacs_mule_char.
3264 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3265 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3266
dcfb9bc4
KH
32672010-03-02 Kenichi Handa <handa@m17n.org>
3268
fc9a17bc
KH
3269 * character.c (parse_str_as_multibyte): Fix handling of the
3270 multibyte form of raw-bytes.
3271 (str_as_multibyte): Likewise.
3272
dcfb9bc4
KH
3273 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3274 form of raw-bytes.
3275
412c01b6
CY
32762010-02-28 Chong Yidong <cyd@stupidchicken.com>
3277
3278 * charset.c (load_charset_map_from_file)
3279 (load_charset_map_from_vector): Zero out allocated
3280 charset_map_entries before using them.
3281
df7e1ea0
AS
32822010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3283
3284 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3285
fe69a722
CY
32862010-02-27 Chong Yidong <cyd@stupidchicken.com>
3287
4ed28cf4
CY
3288 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3289 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3290
7379cfce
KH
32912010-02-26 Kenichi Handa <handa@m17n.org>
3292
f88cc4d6
KH
3293 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3294
7379cfce
KH
3295 * xdisp.c (reseat_to_string): Fix previous change.
3296
cf2fdcfb
CY
32972010-02-26 David Reitter <david.reitter@gmail.com>
3298
3299 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3300 Lisp_Object (Bug#4736).
3301
cc6c7c75
KH
33022010-02-25 Kenichi Handa <handa@m17n.org>
3303
3304 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3305
32e737d7
JD
33062010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3307
3308 * xterm.c (XTflash): Move declarations before statements.
3309
3310 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3311 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3312 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3313 (xg_create_tool_bar): Remove unused variables.
3314 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3315 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3316
676cae9f
CY
33172010-02-21 Chong Yidong <cyd@stupidchicken.com>
3318
3319 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3320
886cc2b8
SM
33212010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3322
3323 * term.c (fatal): Add a final \n if needed (bug#5596).
3324
ddb2d8e2
CY
33252010-02-18 Chong Yidong <cyd@stupidchicken.com>
3326
3327 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3328
2a4f8d3d
GM
33292010-02-18 Glenn Morris <rgm@gnu.org>
3330
3331 * callint.c (Finteractive): Doc fix.
3332
ebaf11b6
KH
33332010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3334
886cc2b8
SM
3335 * coding.c (record_conversion_result):
3336 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3337 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3338 memory allocation error.
3339
d0396581
KH
33402010-02-17 Kenichi Handa <handa@m17n.org>
3341
886cc2b8
SM
3342 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3343 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3344 (decode_coding): Setup ccl program here. Keep looping when the
3345 decoder stopped because the output buffer is
3346 fullfilled (bug#5534).
3347
3348 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3349
98599f74
JD
33502010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3351
471e4f04 3352 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3353 bug #5571.
886cc2b8 3354 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3355 overdrawn.
98599f74 3356
182659ae
JD
33572010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3358
3359 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3360 doing_interact here.
3361 (ice_connection_closed): New function.
3362 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3363 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3364 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3365 returns I/O error.
3366 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3367 bug #5512.
3368
9be32c4e 33692010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3370
3371 * nsfont.m (nsfont_open): The system's value for the font descent
3372 is negative, so round it down to avoid clipping.
3373
a2f3eb19
CY
33742010-02-06 Chong Yidong <cyd@stupidchicken.com>
3375
3376 * charset.c (load_charset_map_from_file)
3377 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3378 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3379
3088147c
CY
33802010-02-05 Chong Yidong <cyd@stupidchicken.com>
3381
3382 * charset.c (load_charset_map_from_file): Allocate large
3383 charset_map_entries structure on the heap rather than the stack.
3384 (Bug#5526).
3385
b57d9029
KH
33862010-01-31 Kenichi Handa <handa@m17n.org>
3387
3388 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3389 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3390
c67d885b
CY
33912010-01-31 Chong Yidong <cyd@stupidchicken.com>
3392
3393 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3394 <deactivated@gmail.com> (Bug#3605).
3395
8fab2362
CY
33962010-01-31 David De La Harpe Golden <david@harpegolden.net>
3397
3398 * fileio.c (Frename_file): Correctly rename symlinks to
3399 directories (Bug#5496).
3400
cb2a62f2
CY
34012010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3402
3403 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3404
944c7a26
AS
34052010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3406
3407 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3408
c024ac08
CY
34092010-01-29 Chong Yidong <cyd@stupidchicken.com>
3410
3411 * frame.c (DEFAULT_ROWS): Change default to 35.
3412
3413 * xfns.c (x_default_font_parameter): Change default XFT font to
3414 monospace-10 (Bug#3643).
3415
af93af83
EZ
34162010-01-29 Eli Zaretskii <eliz@gnu.org>
3417
3418 * w32inevt.c (key_event): Remove unnecessary comparison of
3419 event->uChar.AsciiChar with 128.
3420
ca0eb708
CY
34212010-01-28 Chong Yidong <cyd@stupidchicken.com>
3422
b242dbfc
CY
3423 * fileio.c (Frename_file): Fix last change (Bug#5487).
3424
ca0eb708
CY
3425 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3426
3427 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3428
45d45af5
JD
34292010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3430
3431 * xfns.c (Fx_create_frame): Remove window size matching code from
3432 2010-01-15.
a73f9c9d 3433 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3434
7e233730
JR
34352010-01-27 Jason Rumney <jasonr@gnu.org>
3436
3437 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3438 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3439
86e893e3
KH
34402010-01-27 Kenichi Handa <handa@m17n.org>
3441
3442 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3443 pattern string (Bug#4209).
86e893e3 3444
8719abec
CY
34452010-01-27 David De La Harpe Golden <david@harpegolden.net>
3446
3447 * fileio.c (Frename_file): Call copy-directory and
3448 delete-directory for directories, in order to handle cross-device
3449 renaming (Bug#3353).
3450
844794c8
JD
34512010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3452
aa3e13b5 3453 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3454 sizes 24 and 10. Bug #3643.
844794c8 3455
bd4b5750
SM
34562010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3457
8dc1adf6 3458 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3459 * keymap.c (shadow_lookup): Add `remap' arg.
3460 (describe_map, describe_vector): Update calls to shadow_lookup.
3461 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3462 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3463 perform remapping during shadow_lookup check of remapped_sequences.
3464
285d07e2
CY
34652010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3466
3467 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3468 png_check_sig, which has been removed in libpng 1.4.
3469
c6d09b8d
CY
34702010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3471
3472 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3473 lacks this header file).
3474
3d782998
YM
34752010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3476
3477 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3478 as in Emacs 22.
3479
2aff7c53
YM
34802010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3481
3482 * lisp.h (make_pure_string): String pointer arg now points to const.
3483
3484 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3485 args now point to const.
3486
74327f7a
EZ
34872010-01-22 Eli Zaretskii <eliz@gnu.org>
3488
3489 * lread.c (Fload): Don't treat files without .elc extension as
3490 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3491 them. (bug#5303)
3492
4d1e6632
KH
34932010-01-20 Kenichi Handa <handa@m17n.org>
3494
3495 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3496 treat the source as actual byte sequence.
3497
1fdede8f
AM
34982010-01-19 Alan Mackenzie <acm@muc.de>
3499
3500 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3501 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3502 `signal_after_change_p' to `coherent_change_p', and make the
3503 invocation of `modify_region' conditional on it.
3504
67477f30
JD
35052010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3506
3507 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3508 for debug purpose.
3509 (syms_of_xsettings): Declare xft-settings.
3510
244b023e
CY
35112010-01-18 Chong Yidong <cyd@stupidchicken.com>
3512
3513 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3514
617364fe
CY
35152010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3516
3517 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3518
4fe22cdf
CY
35192010-01-16 Chong Yidong <cyd@stupidchicken.com>
3520
3521 * emacs.c (standard_args): Adjust arg priorities to reflect how
3522 they are processed in startup.el.
3523
e118d2be
AS
35242010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3525
3526 * Makefile.in (lisp, shortlisp): Update.
3527
523ae620
SM
35282010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3529
3530 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3531 code, link the new kboard into all_kboard before running Lisp code,
3532 and protect the new terminal with GCPRO (Bug#5365).
3533 (x_term_init): Remove unused var `atom'.
3534 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3535
f0d13888
JD
35362010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3537
3538 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3539 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3540 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3541 this. Bug #3643.
f0d13888 3542
cc320f07
KH
35432010-01-15 Kenichi Handa <handa@m17n.org>
3544
3545 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3546
7ffdf101
CY
35472010-01-15 Chong Yidong <cyd@stupidchicken.com>
3548
3549 * nsterm.m (Qnone): Define.
3550
3551 * nsfns.m (Qnone): Move definition to nsterm.m.
3552
d12bd917
KH
35532010-01-14 Kenichi Handa <handa@m17n.org>
3554
3555 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3556 systems.
3557
d9a7c140
KH
35582010-01-14 Kenichi Handa <handa@m17n.org>
3559
3560 Make auto-composition work on all buffers even if they are
3561 fundamental mode.
3562
3563 * composite.c (Vauto_composition_mode): New variable.
3564 (composition_compute_stop_pos): Check Vauto_composition_mode
3565 instead of Vauto_composition_function.
3566 (composition_adjust_point, Ffind_composition_internal): Likewise.
3567 (syms_of_composite): Declare Lisp variable
3568 "auto-composition-mode" here.
3569
63286bb2
CY
35702010-01-13 Chong Yidong <cyd@stupidchicken.com>
3571
3572 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3573 during call to vendor-specific-keysyms (Bug#5365).
3574
c2623ee7
YM
35752010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3576
3577 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3578 Call SIGNAL_THREAD_CHECK (Bug#5333).
3579
3580 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3581 Call SIGNAL_THREAD_CHECK.
3582
0b5397c2
SM
35832010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3584
3585 Try to fix bug#5314. This is probably not the final word, tho.
3586 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3587 recent-auto-save-p as a side-effect.
3588 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3589 * buffer.c (Fkill_buffer, reset_buffer):
3590 * editfns.c (Fsubst_char_in_region):
3591 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3592 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3593
dc954cb2
KH
35942010-01-13 Kenichi Handa <handa@m17n.org>
3595
3596 Display buffer name, etc. in mode line by composing correctly.
3597
3598 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3599 STRING is not nil.
0b5397c2 3600 (display_mode_element): Adjust for the change of
dc954cb2
KH
3601 decode_mode_spec and display_line.
3602 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3603 (display_string): Handle the case that STRING is non-null and
3604 LISP_STRING is not nil.
3605
0b5397c2
SM
3606 * xterm.c (x_draw_composite_glyph_string_foreground):
3607 Pay attention to s->face->overstrike.
dc954cb2
KH
3608
3609 * composite.c (composition_reseat_it): Don't check PT if STRING is
3610 non nil.
3611
4a00eaca
YM
36122010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3613
3614 * keyboard.c (read_char): Don't apply previous change when current
3615 buffer is unchanged by command execution.
3616
60abb287
JD
36172010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3618
3619 * keyboard.c (read_char): Return after executing from special map.
3620
893db5bc
GM
36212010-01-12 Glenn Morris <rgm@gnu.org>
3622
3623 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3624 bug-gnu-emacs rather than emacs-pretest-bug.
3625
4d03ece0
CY
36262010-01-11 Chong Yidong <cyd@stupidchicken.com>
3627
3628 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3629 initializing the Lisp variables that depend on them.
3630
1df47e38
YM
36312010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3632
3633 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3634 Clear areas that will not be updated after change of menu bar lines.
3635 Clear the menu bar window's current matrix when the window gets empty.
3636
2f1c6384
CY
36372010-01-09 Chong Yidong <cyd@stupidchicken.com>
3638
e398c61c
CY
3639 * intervals.h, textprop.c (extend_property_ranges): Return value
3640 and args changed. Discard properties that begin at or after the
3641 new end (Bug#5306).
3642
3643 * editfns.c (Fformat): Caller changed.
3644
e5a29a10
CY
3645 * nsterm.m (ns_set_default_prefs): Delete function.
3646 (syms_of_nsterm): Initialize ns_command_modifier,
3647 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3648 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3649
2f1c6384
CY
3650 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3651 position (Bug#4040).
3652
d427a9fa
EZ
36532010-01-09 Eli Zaretskii <eliz@gnu.org>
3654
3655 * editfns.c (Ffloat_time): Doc fix.
3656
21b9df2f
JD
36572010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3658
3659 * xfns.c (Fx_create_frame): Don't create frame larger than display
3660 by default bug#3643.
3661
4b00d3b1
YM
36622010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3663
3664 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3665 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3666 windows above internal border.
3667
3668 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3669 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3670 windows above internal border.
3671
3672 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3673 tool bar windows specially.
3674
3675 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3676
3677 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3678 specially.
3679 (XTflash): Take account of menu bar height.
3680
3681 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3682 specially.
3683
5075d853
JD
36842010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3685
ac146f82 3686 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3687 also be true before we can return early (bug #5339).
3688
474217c8
CY
36892010-01-06 David Reitter <david.reitter@gmail.com>
3690
3691 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3692 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3693 (Bug#3233).
3694
c0e6d47d
JD
36952010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3696
d0cf45b7
JD
3697 * font.c (font_open_entity): Enable chache and call cached_font_ok
3698 for the driver if defined.
3699 (QCuser_spec): New symbol.
3700 (font_spec_from_name): Save name as user-spec.
3701 (font_load_for_lface): Keep user-spec instead of name.
3702 (font_open_by_name): Save name as user-spec.
3703 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3704 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3705
3706 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3707 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3708 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3709
3710 * font.h (struct font_driver): Add cached_font_ok.
3711
c0e6d47d
JD
3712 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3713
7c583cd8
JD
37142010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3715
3716 * xterm.c (x_new_font): Move code for setting rows/cols before
3717 resizing ...
ac146f82 3718 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3719
3720 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3721 (xg_frame_resized, xg_frame_set_char_size):
3722 Call xg_clear_under_internal_border.
7c583cd8 3723 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3724
03f77f0a
CY
37252010-01-05 Chong Yidong <cyd@stupidchicken.com>
3726
3727 * keyboard.c (read_key_sequence): Catch keyboard switch after
3728 making a new tty frame (Bug#5095).
3729
2a1ef5be
KH
37302010-01-05 Kenichi Handa <handa@m17n.org>
3731
3732 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3733
e3eb1dae
SM
37342010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3735
3736 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3737 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3738 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3739
777013f2
MA
37402010-01-03 Michael Albinus <michael.albinus@gmx.de>
3741
3742 * dbusbind.c (xd_add_watch): Improve debug message.
3743 (xd_remove_watch): Improve debug message. If DATA is the session
3744 bus, unset D-Bus session environment.
3745 (Fdbus_init_bus): Pass the bus as argument to
3746 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3747
8932b1c2
CY
37482010-01-01 Chong Yidong <cyd@stupidchicken.com>
3749
87231e2c
CY
3750 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3751
4801c5fa
CY
3752 * lread.c (syms_of_lread): Make it clearer that these are the
3753 names of loaded files (Bug#5068).
3754
8932b1c2
CY
3755 * eval.c (run_hook_with_args): Handle the case where the global
3756 value has the obsolete single-function form (Bug#5026).
3757
11e3c684
CY
37582009-12-27 Chong Yidong <cyd@stupidchicken.com>
3759
3760 * minibuf.c (Fall_completions): Minor optimization.
3761
5b28ce35
EZ
37622009-12-26 Eli Zaretskii <eliz@gnu.org>
3763
5ce6e4f4
JB
3764 * .gdbinit (pgx): Fix display of composite glyphs.
3765 Display cmp.from and cmp.to as well.
3766 (pitx): Fix last change.
5b28ce35 3767
bcffff46
KH
37682009-12-25 Kenichi Handa <handa@m17n.org>
3769
3770 * composite.h (composition_adjust_point): Update prototype.
3771
3772 * composite.c (composition_reseat_it): Don't make a composition
3773 spanning over point.
3774 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3775 composable characters.
3776 (composition_adjust_point): New arg NEW_PT. Callers changed.
3777
3778 * keyboard.c (command_loop_1): Force redisplay if the last point
3779 was within a composition.
3780 (adjust_point_for_property): Don't adjust point for automatic
3781 composition when called after buffer modification.
3782
3f670e9a
EZ
37832009-12-19 Eli Zaretskii <eliz@gnu.org>
3784
5ce6e4f4
JB
3785 * .gdbinit (pitx): Don't use enum names, use their values.
3786 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3787 (pgx): Don't use enum names, use their values.
3788 (pitmethod): New helper command.
3789 (pitx): Use it to display iteration method.
3790 (pgrowit): New command.
3791
ad903955
EZ
3792 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3793
3f670e9a
EZ
3794 Update dependencies in Makefile.in.
3795
3796 * Makefile.in (alloc.o): Depend on termhooks.h.
3797 (atimer.o): Depend on blockinput.h.
3798 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3799 and frame.h.
3800 (callint.o): Depend on systime.h, coding.h, and composite.h.
3801 (callproc.o): Depend on buffer.h.
3802 (casefiddle.o): Don't depend on charset.h.
3803 (casetab.o): Depend on character.h.
3804 (ccl.o): Depend on composite.h.
3805 (chartab.o): Depend on ccl.h.
3806 (cm.o): Depend on dispextern.h.
3807 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3808 (coding.o): Don't depend on $(INTERVALS_H).
3809 (composite.o): Don't depend on dispextern.h explicitly (it's in
3810 $(INTERVALS_H)). Depend on ccl.h.
3811 (data.o): Depend on systime.h, coding.h, composite.h,
3812 dispextern.h, font.h, and ccl.h.
3813 (dired.o): Depend on composite.h.
3814 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3815 composite.h (it's in $(INTERVALS_H)).
3816 (doc.o): Depend on systime.h, coding.h, and composite.h.
3817 (editfns.o): Don't depend explicitly on dispextern.h.
3818 (emacs.o): Depend on frame.h and coding.h.
3819 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3820 (fileio.o): Depend on frame.h and commands.h. Don't depend
3821 explicitly on dispextern.h.
3822 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3823 composite.h.
3824 (fns.o): Don't depend on termhooks.h.
3825 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3826 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3827 coding.h, $(INTERVALS_H), window.h, xterm.h.
3828 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3829 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3830 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3831 fontset.h, ccl.h, and ftfont.h.
3832 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3833 (gtkutil.o): Depend on dispextern.h and composite.h.
3834 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3835 termhooks.h, and ccl.h.
3836 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3837 (intervals.o): Depend on systime.h and coding.h.
3838 (keyboard.o): Depend on composite.h and coding.h.
3839 (keymap.o): Depend on coding.h and frame.h.
3840 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3841 (macros.o): Depend on systime.h, coding.h, and composite.h.
3842 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3843 and atimer.h.
3844 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3845 dispextern.h explicitly.
0b5397c2
SM
3846 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3847 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3848 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3849 (regex.o): Don't depend on charset.h.
3850 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3851 (search.o): Don't depend explicitly on composite.h.
3852 (sound.o): Depend on atimer.h and systime.h.
3853 (syntax.o): Don't depend explicitly on composite.h.
3854 (sysdep.o): Depend on coding.h and composite.h.
3855 (term.o): Depend on xterm.h and buffer.h.
3856 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3857 (textprop.o): Don't depend on dispextern.h explicitly.
3858 (undo.o): Depend on dispextern.h.
3859 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3860 dispextern.h and composite.h explicitly.
3861 (xdisp.o): Depend on ccl.h.
3862 (xfaces.o): Depend on coding.h and ccl.h.
3863 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3864 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3865 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3866 ftfont.h.
3867 (xgselect.o): New dependency.
3868 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3869 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3870 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3871 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3872 (xsmfns.o): Depend on frame.h and dispextern.h.
3873 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3874 sysselect.h.
3875
7a6f7fea
AS
38762009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3877
3878 * font.c (Fclear_font_cache): Pass correct cache argument to
3879 font_clear_cache.
3880
f4c21026
AS
38812009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3882
3883 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3884 twice.
3885
f7ab0997
CY
38862009-12-15 Chong Yidong <cyd@stupidchicken.com>
3887
3888 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3889 calling file-remote-p. Reported by Jim Meyering.
3890
fa8e045a
MA
38912009-12-15 Michael Albinus <michael.albinus@gmx.de>
3892
3893 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3894 avoid compiler warnings. (Bug #5217)
fa8e045a 3895
a63dba42
KH
38962009-12-14 Kenichi Handa <handa@m17n.org>
3897
3898 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3899 in 8-bit encoding.
3900
5ce6e4f4 39012009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3902
3903 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3904 tooltip windows.
3905
223e5fc6
JD
39062009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3907
36acb2a7
JD
3908 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3909 Xatom_net_window_type.
3910
3911 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3912 Xatom_net_window_type.
3913
b8f00677
JD
3914 * xterm.c (my_log_handler): New function.
3915 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3916 so we can filter out buggy messages. (Bug #5120).
b8f00677 3917
e5f0bc9a
JD
3918 * xterm.c (xg_scroll_callback): Parameter list changed,
3919 use parameter GtkScrollType to determine scroll/line/page.
3920 Only allow dragging if a button < 4 is grabbed (bug #5177).
3921 (xg_end_scroll_callback): New function.
3922 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3923 xg_create_scroll_bar.
3924
3925 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3926 (scroll_end_callback): Remove.
3927 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3928 button-release-event. Replace value-changed event with change-value,
3929 bug #5177,
3930 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3931 bug #5177.
3932
3933 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3934 (xg_create_scroll_bar): Add GCallback end_callback.
3935
223e5fc6
JD
3936 * xftfont.c (QClcdfilter): New variable.
3937 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3938 (syms_of_xftfont): Initialize QClcdfilter.
3939
3c055b77
JD
39402009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3941
3942 * xsettings.c (struct xsettings): Add member seen.
3943 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3944 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3945 (apply_xft_settings): Only update Xft settings with what member seen
3946 indicates as new.
3947
05fe33ff
EZ
39482009-12-12 Eli Zaretskii <eliz@gnu.org>
3949
3950 * dispextern.h (struct text_pos): Use EMACS_INT;
3951 (struct glyph): Use EMACS_INT for charpos.
3952 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3953 region_beg_charpos, region_end_charpos,
3954 redisplay_end_trigger_charpos, and also for
3955 iterator_stack_entry.end_charpos and
3956 iterator_stack_entry.stop_charpos.
3957
e8d7886a
JD
39582009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3959
5ce6e4f4 3960 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3961 (xg_create_scroll_bar): Call scroll_end_callback on button release
3962 event (bug #5177).
3963 (xg_event_is_for_scrollbar): != replaced with ==.
3964
d0db2ec8
KH
39652009-12-12 Kenichi Handa <handa@m17n.org>
3966
3967 * ftfont.c (struct ftfont_info): New member matrix.
3968 (ftfont_open): Setup xftfont_info->matrix.
3969 (MFLTFontFT): New member matrix.
3970 (FLOOR, CEIL, ROUND): New macros.
3971 (ftfont_get_metrics): Handle matrix transformation.
3972 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3973
3974 * xftfont.c (struct xftfont_info): New member matrix.
3975 (xftfont_open): Setup xftfont_info->matrix.
3976
39772009-12-10 Kenichi Handa <handa@m17n.org>
3978
3979 * xdisp.c (append_space_for_newline): Consider face-remapping.
3980
2cc7b62f
AS
39812009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3982
b87dd913
AS
3983 * xsettings.c: Include "keyboard.h".
3984
eba5eb94
AS
3985 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3986
2cc7b62f
AS
3987 Fix implicit function declarations.
3988 * cmds.c: Include "frame.h".
3989 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3990 * frame.h: Move declaration of delete_frame outside of
3991 HAVE_WINDOW_SYSTEM.
3992
a4ef73c8
CY
39932009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3994
3995 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3996
3997 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3998 GTK builds.
3999
944a300c
AS
40002009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4001
4002 * unexelf.c (unexec): Don't search for .data twice.
4003
022eef62
CY
40042009-12-05 Chong Yidong <cyd@stupidchicken.com>
4005
426ac949
CY
4006 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4007 if push failed.
4008 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4009 of push_display_prop (Bug#5000).
4010
022eef62
CY
4011 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4012 value of font_list_entities (Bug#5085).
4013
be95bee9
JB
40142009-12-04 Juanma Barranquero <lekktu@gmail.com>
4015
4016 Fix `string-to-number' to deal consistently with integers and floats.
4017 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4018 trailing characters, not just whitespace.
4019 (read1): Pass new arg 0 to keep old behavior.
4020 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4021 trailing chars, as it is already done for integers. Doc fixes.
4022 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4023
24c2d7ce
EZ
40242009-12-04 Eli Zaretskii <eliz@gnu.org>
4025
0b5397c2
SM
4026 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4027 Delete unused enumeration value.
24c2d7ce 4028
7e694795
EZ
40292009-12-03 Eli Zaretskii <eliz@gnu.org>
4030
4031 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4032
84b31826
SM
40332009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4034
4035 * process.c (Fmake_network_process): Fix up the tests for
4036 "connectionless socket", so they DTRT for seqpacket sockets as well.
4037
f00c449b
SM
40382009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4039
4040 * process.c (Qseqpacket): New symbol.
4041 (HAVE_SEQPACKET): New macro.
4042 (Fmake_network_process): Accept new :type `seqpacket'.
4043 (init_process): Add `seqpacket' feature when applicable.
4044 (syms_of_process): Initialize Qseqpacket.
4045
8096a0ff
YM
40462009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4047
4048 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4049 if entity is Qnil.
4050
3e0de07f
SM
40512009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4052
4053 * print.c (print_preprocess): Preprocess the key_and_value table of
4054 hashtables, even tho they're "hidden" (bug#5082).
4055
abeafb2a
JD
40562009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4057
4058 * frame.c (frame_make_pointer_invisible)
4059 (frame_make_pointer_visible): Declare f before statements.
4060
4bf47195
EZ
40612009-11-28 Eli Zaretskii <eliz@gnu.org>
4062
4063 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4064 omitted dependencies on lisp.h.
4065
c525b3f2
JD
40662009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4067
ece2d4ed
JD
4068 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4069 is NULL.
4070
4071 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4072
4073 * frame.c (frame_make_pointer_invisible)
3e0de07f 4074 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4075 frame.
4076
c525b3f2
JD
4077 * search.c (simple_search): Remove warning by making *p const.
4078
2f00e299
DN
40792009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4080
4081 * xdisp.c (power_letter): Remove duplicate const.
4082
084b049b
JD
40832009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4084
a1fadc6f
JD
4085 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4086
5ce6e4f4 4087 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4088 defaults (bug #5025).
4089
28259cac
SM
40902009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4091
4092 * insdel.c (adjust_markers_for_delete): Move it in the
4093 right direction! (bug#4803)
4094
e8e14166
YM
40952009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4096
4097 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4098
4099 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4100
86677b58
GM
41012009-11-24 Glenn Morris <rgm@gnu.org>
4102
4103 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4104
581e51e8
JD
41052009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4106
cfc86c7a
JD
4107 * Makefile.in: Must create deps for ecrt0.o in its rule.
4108
581e51e8
JD
4109 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4110 because that is what Gtk+ font dialog understands.
4111
4112 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4113 of Fcopy_sequence.
4114 (font_open_by_name): Put name given into QCname for font-object returned.
4115
4116 * frame.c (x_set_font): Save original font name as frame parameter
4117 font-parameter.
4118
4119 * xsettings.c (set_default_xft_settings): New function.
4120 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4121 is found.
4122
8b264ecb
AS
41232009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4124
4125 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4126 searching backwards through multibyte buffer.
4127
872870b2
JD
41282009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4129
4130 * xterm.c: #include xgselect.h.
4131 (x_initialize): Call xgselect_initialize.
4132
4133 * xsettings.c (something_changedCB): C++ comments => C comments.
4134 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4135 does that now.
4136
4137 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4138 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4139 (scroll_bar_button_cb): Remove.
5ce6e4f4 4140 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4141 event.
4142 (xg_create_scroll_bar): Don't bind button-press-event and
4143 button-release-event.
4144
4145 * process.c: Include xgselect.h if defined (USE_GTK) ||
4146 defined (HAVE_GCONF).
4147 (wait_reading_process_output): Call xg_select for the same condition.
4148
4149 * xgselect.c (xg_select): New function to better integrate with
4150 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4151
4152 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4153
4154 * Makefile.in (XOBJ): Add xgselect.o.
4155
62a6e103
AS
41562009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4157
0b5397c2
SM
4158 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4159 Remove ignored second argument. All callers changed.
62a6e103
AS
4160 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4161 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4162 * xdisp.c (string_char_and_length): Likewise.
4163
b0ca0f33
DN
41642009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4165
4166 * xterm.c (x_new_font):
4167 * print.c (print_object):
4168 * cmds.c (Fself_insert_command): Move declarations before statements.
4169
dd5a6279
CY
41702009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4171
4172 * s/cygwin.h: Remove unneeded linker flags.
4173
4a8e097d
JD
41742009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4175
0d1d0d26
JD
4176 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4177
4178 * xsettings.h: Declare xsettings_get_system_font.
4179
4180 * xsettings.c (xsettings_get_system_font): New function.
4181 (init_gconf): No use initiating gconf unless we have Xft also.
4182 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4183 HAVE_GCONF.
4184
4a8e097d
JD
4185 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4186 add a blank entry so it doesn't collapse into nothing.
4187
8ab1650e
SM
41882009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4189
4190 * lread.c (Funintern): Comment out last change.
4191
82c602f0
RS
41922009-11-19 Richard Stallman <rms@gnu.org>
4193
4194 * lread.c (Funintern): Error if symbol is t or nil.
4195
87e32266
SM
41962009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4197
4198 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4199 representation of Lisp integers.
4200 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4201
1b9ac145
AS
42022009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4203
4204 * lisp.h: Remove declaration of Ffont_get_system_font.
4205 * xfns.c: Move include of "xsettings.h".
4206 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4207
dfb3c4c6
JD
42082009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4209
87e32266
SM
4210 * xsettings.c (something_changedCB, Ffont_get_system_font):
4211 Check use_system_font.
dfb3c4c6
JD
4212 (syms_of_xsettings): DEFVAR font-use-system-font.
4213
9370c1d8
AS
42142009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4215
25fe851a
AS
4216 * xfns.c (x_default_font_parameter): Remove dead assignment.
4217
9370c1d8
AS
4218 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4219
637fa988
JD
42202009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4221
87e32266 4222 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4223 not have FC_LCD_*. #define them if not there.
a6eb20d8 4224
87e32266 4225 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4226
637fa988
JD
4227 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4228
4229 * xterm.c (handle_one_xevent): Call xft_settings_event for
4230 ClientMessage, PropertyNotify and DestroyNotify.
4231 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4232 Call xsettings_initialize.
4233
4234 * xftfont.c (xftfont_fix_match): New function.
4235 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4236 Call xftfont_fix_match after XftFontMatch.
4237
4238 * xfont.c (xfont_driver): Initialize all members.
4239
87e32266
SM
4240 * xfns.c (x_default_font_parameter):
4241 Try font from Ffont_get_system_font.
637fa988
JD
4242 Do not get font from x_default_parameter if we got one from
4243 Ffont_get_system_font.
87e32266 4244 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4245
4246 * w32font.c (w32font_driver): Initialize all members.
4247
4248 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4249
4250 * lisp.h: Declare syms_of_xsettings.
4251
87e32266
SM
4252 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4253 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4254
4255 * ftfont.c (ftfont_filter_properties): New function.
4256
4257 * frame.c (x_set_font): Remove unused variable lval.
4258
87e32266 4259 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4260
4261 * font.c (font_put_extra): Don't return if val is nil, it means
4262 boolean option is off.
4263 (font_parse_fcname): Collect all extra properties in extra_props
4264 and call filter_properties for all drivers with extra_props and
4265 font as parameter.
87e32266
SM
4266 (font_open_entity): Do not use cache, it does not pick up new
4267 fontconfig settings like hinting.
637fa988
JD
4268 (font_load_for_lface): If spec had a name in it, store it in entity.
4269
a73f9c9d 4270 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4271
4272 * config.in: HAVE_GCONF is new.
4273
4274 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4275 xsettings.o is new.
4276
5a942932
KH
42772009-11-17 Kenichi Handa <handa@m17n.org>
4278
4279 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4280 back to the default font in case that no suitable font is found.
4281
b7c7a4d1
SM
42822009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4283
4284 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4285 Suggested by Chad Brown <yandros@mit.edu>.
4286 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4287
072f1e39
JD
42882009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4289
4290 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4291
5d1e70a2
AS
42922009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4293
87e32266 4294 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4295
a53cfbe5
JD
42962009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4297
473a99b7
JD
4298 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4299 has a parent.
4300
a53cfbe5 4301 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4302 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4303
4304 * config.in: Generated (AUTO_DEPEND).
4305
f04bb9b2
MA
43062009-11-13 Michael Albinus <michael.albinus@gmx.de>
4307
b7c7a4d1 4308 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4309 Vdbus_registered_functions_table, because it contains also
4310 properties. Fix docstring.
b7c7a4d1 4311 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4312
8f11f7ec
SM
43132009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4314
4315 * alloc.c (mark_object): Don't reprocess marked strings.
4316 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4317 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4318
8a605fe8
KH
43192009-11-13 Kenichi Handa <handa@m17n.org>
4320
8f11f7ec 4321 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4322 semantics of Vword_combining_categories.
4323 (Vword_combining_categories): Describe the slight change of the
4324 semantics.
4325
241c4680
EZ
43262009-11-13 Eli Zaretskii <eliz@gnu.org>
4327
4328 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4329
4330 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4331
5d58e44c
SM
43322009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4333
4334 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4335
5e13f9d3
JB
43362009-11-12 Juanma Barranquero <lekktu@gmail.com>
4337
4338 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4339
cf54c754
DR
43402009-11-11 David Reitter <david.reitter@gmail.com>
4341
4342 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4343 variables to fix 2009-11-09 change.
4344
a4ada374
DN
43452009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4346
91433552
DN
4347 * process.c (ifflag_def): Make flag_sym constant.
4348 (Fnetwork_interface_info): Use a constant pointer.
4349 (ifflag_table):
4350 * xfns.c (cursor_bits):
4351 * xdisp.c (power_letter):
4352 * termcap.c (speeds, esctab):
4353 * sysdep.c (baud_convert):
4354 * keyboard.c (lispy_accent_codes, modifier_names):
4355 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4356 (jpeg_format, tiff_format, gif_format, svg_format)
4357 (interlace_start, interlace_increment, gs_format):
4358 * gtkutil.c (separator_names):
4359 * fringe.c (swap_nibble):
4360 * fns.c (base64_value_to_char, base64_char_to_value):
4361 * fileio.c (make_temp_name_tbl):
4362 * coding.c (suffixes): Make constant.
4363
f4265f6c
DN
4364 * frame.c (make_initial_frame):
4365 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4366 build_string.
4367 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4368
04420943
DN
4369 * s/freebsd.h:
4370 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4371
0a5d24ae
DN
4372 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4373 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4374
a4ada374
DN
4375 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4376 * xterm.c (syms_of_xterm):
4377 * xfaces.c (syms_of_xfaces):
4378 * xdisp.c (syms_of_xdisp):
4379 * lread.c (syms_of_lread):
4380 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4381 build_string.
91433552 4382
a4ada374
DN
4383 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4384
af98fc7f
SM
43852009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4386
8ab1650e 4387 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4388
e90292a9
JD
43892009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4390
4391 * keyboard.h: Declare timer_check.
4392
4393 * keyboard.c (timer_check_2): New function that does what the old
4394 timer_check did.
4395 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4396 returned, i.e. don't return -1 with timers pending.
4397
4398 * process.c: Remove extern declaration of timer_check.
4399
4400 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4401 even if timer_check returned -1.
4402
af98fc7f
SM
4403 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4404 xg_dialog_data.
e90292a9
JD
4405 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4406 the event loop.
4407 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4408 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4409 Destroy the dialog after xg_dialog_run.
4410
045b83c0
SM
44112009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4412
4413 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4414
1fb99a3a
JD
44152009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4416
4417 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4418
04e452cb
JB
44192009-11-09 Juanma Barranquero <lekktu@gmail.com>
4420
4421 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4422
ef7417fd
SM
44232009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4424
4425 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4426 w32menu.c, and nsmenu.m.
4427 Simplify the obsolete case where position is nil.
4428 (cleanup_popup_menu): New function, moved from nsmenu.m.
4429 (struct skp): Remove slot `notreal'.
4430 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4431 adjust callers.
4432 (single_menu_item): Adjust call to parse_menu_item.
4433 (syms_of_menu): Defsubr x-popup-menu.
4434 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4435 (keymap_panes): Don't export any more.
4436 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4437 (xmenu_show): Declare.
4438 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4439 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4440 * keyboard.h (parse_menu_item): Update declaration.
4441 * xmenu.c (Fx_popup_menu): Remove.
4442 (syms_of_xmenu): Don't defsubr x-popup-menu.
4443 * w32menu.c (Fx_popup_menu): Remove.
4444 (syms_of_w32menu): Don't defsubr x-popup-menu.
4445 * nsmenu.m (cleanup_popup_menu): Remove.
4446 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4447 moved to menu.c's Fx_popup_menu.
4448 (Fx_popup_menu): Remove.
4449 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4450 menu_items (it's done in menu.c already).
4451
424d6179
SM
44522009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4453
4454 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4455 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4456
c0df13a6 44572009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4458
4459 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4460 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4461 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4462 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4463
2de9f71c
SM
44642009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4465
4466 Let integers use up 2 tags to give them one extra bit and thus double
4467 their range.
4468 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4469 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4470 New macros.
4471 (enum Lisp_Type): Use them. Give explicit values.
4472 (Lisp_Type_Limit): Remove.
4473 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4474 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4475 Pay attention to USE_2_TAGS_FOR_INTS.
4476 (INTEGERP): Use LISP_INT_TAG_P.
4477 * fns.c (internal_equal): Simplify the default case.
4478 (sxhash): Use case_Lisp_Int.
4479 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4480 any more.
4481 (Ftype_of): Use case_Lisp_Int.
4482 (store_symval_forwarding): Take into account the fact that Ints can
4483 now have more than one tag.
4484 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4485 buffer_slot_type_mismatch):
4486 * xfaces.c (face_attr_equal_p):
4487 * print.c (print_object):
4488 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4489 Use case_Lisp_Int.
4490
323637a2
EZ
44912009-11-06 Eli Zaretskii <eliz@gnu.org>
4492
7ac65b38
EZ
4493 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4494
323637a2
EZ
4495 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4496 warning.
4497
e511451f
JD
44982009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4499
4500 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4501
4502 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4503
4504 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4505 ButtonPressRelease and MotionNotify (bug#4870).
4506
5e2327cf
DN
45072009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4508
5adc433e
DN
4509 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4510
d67b4f80
DN
4511 * xterm.c (syms_of_xterm):
4512 * xselect.c (syms_of_xselect):
4513 * xmenu.c (syms_of_xmenu):
4514 * xfns.c (syms_of_xfns):
4515 * xfaces.c (syms_of_xfaces):
4516 * xdisp.c (syms_of_xdisp):
4517 * window.c (syms_of_window):
4518 * w32fns.c (syms_of_w32fns):
4519 * undo.c (syms_of_undo):
4520 * textprop.c (syms_of_textprop):
4521 * terminal.c (syms_of_terminal):
4522 * syntax.c (syms_of_syntax):
4523 * sound.c (syms_of_sound):
4524 * search.c (syms_of_search):
4525 * print.c (syms_of_print):
4526 * minibuf.c (syms_of_minibuf):
4527 * macros.c (syms_of_macros):
4528 * keymap.c (syms_of_keymap, initial_define_key)
4529 (initial_define_lispy_key):
4530 * keyboard.c (syms_of_keyboard):
4531 * insdel.c (syms_of_insdel):
4532 * image.c (syms_of_image):
4533 * fringe.c (syms_of_fringe):
4534 * frame.c (syms_of_frame):
4535 * fontset.c (syms_of_fontset):
4536 * fns.c (syms_of_fns):
4537 * fns.c (syms_of_fns):
4538 * fileio.c (syms_of_fileio):
4539 * fileio.c (syms_of_fileio):
4540 * eval.c (syms_of_eval):
4541 * doc.c (syms_of_doc):
4542 * dispnew.c (syms_of_display):
4543 * dired.c (syms_of_dired):
4544 * dbusbind.c (syms_of_dbusbind):
4545 * data.c (syms_of_data):
4546 * composite.c (syms_of_composite):
4547 * coding.c (syms_of_coding):
4548 * cmds.c (syms_of_cmds):
4549 * charset.c (define_charset_internal, syms_of_character):
4550 * ccl.c (syms_of_ccl):
4551 * category.c (syms_of_category, init_category_once):
4552 * casetab.c (syms_of_casetab):
4553 * casefiddle.c (syms_of_casefiddle):
4554 * callint.c (syms_of_callint):
4555 * bytecode.c (syms_of_bytecode):
4556 * buffer.c (keys_of_buffer, syms_of_buffer):
4557 * alloc.c (syms_of_alloc):
4558 * process.c (syms_of_process, init_process):
4559 * lread.c (syms_of_lread, init_obarray):
4560 * font.c (build_style_table):
4561 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4562 intern_c_string, calls to make_pure_string with
4563 make_pure_c_string. Use pure_cons instead of Fcons.
4564
5e2327cf
DN
4565 * process.c (socket_options): Make it const.
4566 (set_socket_option, init_process): Use a const pointer.
4567
4568 * lread.c (intern_c_string): New function.
4569 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4570 (defvar_int): Uset it. Make the name const char*.
4571
4572 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4573 (defvar_int): Update prototypes.
4574 (DEFUN, EXFUN): Support for prototypes is now required.
4575 (intern_c_string): New prototype.
4576 (struct Lisp_Subr): Make symbol_name constant.
4577
4578 * font.c (struct table_entry): Remove unused member. Make NAMES
4579 constant.
4580 (weight_table, slant_table, width_table): Make constant.
4581
4582 * emacs.c (struct standard_args): Make name and longname constant.
4583
4584 * character.h (DEFSYM): Use intern_c_string.
4585
a56eaaef
DN
45862009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4587
4588 * alloc.c (make_pure_c_string): New function.
4589
4590 * eval.c (Fautoload): Purecopy all arguments.
4591
f6a07420
KH
45922009-11-05 Kenichi Handa <handa@m17n.org>
4593
4594 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4595 the buffer in case of replace.
4596
5d28d4b1
DN
45972009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4598
4599 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4600
b349d111
SM
46012009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4602
d528b1ce
SM
4603 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4604 when applicable (bug#4851).
4605
b349d111
SM
4606 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4607 (P_): Support for prototypes is now required.
4608
c38eb027
CY
46092009-10-31 Chong Yidong <cyd@stupidchicken.com>
4610
4611 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4612 (Bug#4827).
4613
0405f8d9
EZ
46142009-10-30 Eli Zaretskii <eliz@gnu.org>
4615
d528b1ce 4616 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4617
ca0a881a
DN
46182009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4619
4620 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4621
d528b1ce
SM
4622 * lread.c (Fload): Purecopy the file name when building
4623 Vpreloaded_file_list.
ca0a881a 4624
47e0e0e4
JR
46252009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4626
4627 * w32fns.c (syms_of_w32fns): Change default value of
4628 w32-scroll-lock-modifier to nil. (Bug#2827)
4629
057bce6f
JB
46302009-10-26 Juanma Barranquero <lekktu@gmail.com>
4631
782a943e 4632 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4633
242bc74c
AS
46342009-10-26 Andreas Schwab <schwab@redhat.com>
4635
4636 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4637
522d013a
JB
46382009-10-26 Juanma Barranquero <lekktu@gmail.com>
4639
4640 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4641 For delta < 0, skip check that only makes sense when the mini-window
4642 is going to be enlarged. (Bug#4534)
4643
18060980
CY
46442009-10-25 Chong Yidong <cyd@stupidchicken.com>
4645
4646 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4647 string in menu maps (Bug#4471).
4648
fec8f0fe
CY
46492009-10-24 Chong Yidong <cyd@stupidchicken.com>
4650
4651 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4652 FRAME_NS_VIEW on terminal frames (Bug#4765).
4653
10d66ec0
AS
46542009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4655
1cae01f7
AS
4656 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4657 DBUS_TYPE_UINTnn separately to get proper sign extension.
4658
58a12889
AS
4659 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4660 can properly handle unsigned types.
d528b1ce 4661 (make_uid, make_gid): Remove.
58a12889 4662
987c9327
AS
4663 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4664 types again.
4665
522d013a 4666 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4667 (system_process_attributes): Likewise.
4668
905a9ed3
DN
46692009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4670
4671 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4672
4673 * eval.c (Fautoload): Purecopy the filename. Simplify.
4674
4675 * category.c (Fdefine_category): Purecopy docstring.
4676
a599b3e8
AS
46772009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4678
7b792fc9
AS
4679 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4680
a599b3e8
AS
4681 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4682
b35ac83e
CY
46832009-10-23 Chong Yidong <cyd@stupidchicken.com>
4684
4685 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4686 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4687 (Bug#4775).
4688
e8903e00
SM
46892009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4690
4691 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4692 (init_fileio_once):
4693 * lisp.h (init_fileio_once): Remove.
4694 * emacs.c (main): Don't call init_fileio_once.
4695
8f43cbf3
DN
46962009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4697
4698 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4699
26898943
AS
47002009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4701
4702 * doprnt.c (doprnt): Fix overflow check.
4703
5c646d5a
JD
47042009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4705
3132a7ea
JD
4706 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4707
5c646d5a
JD
4708 * xterm.h (x_wait_for_event): Declare it.
4709
4710 * xterm.c (pending_event_wait): New variable.
4711 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4712 see pending_event_wait.eventtype.
4713 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4714 (x_new_font): Call change_frame_size with new rows/columns before we
4715 try to resize the frame.
5c646d5a 4716 (x_wait_for_event): New function.
d528b1ce
SM
4717 (x_set_window_size_1): Don't change gravity unless change_gravity
4718 is set.
5c646d5a
JD
4719 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4720 don't change frame size, instead wait for the ConfigureNotify.
4721 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4722 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4723 (x_initialize): Initialize pending_event_wait.
4724
4725 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4726 size.
4727
4728 * widget.c (EmacsFrameSetValues): Add comment.
4729 (EmacsFrameSetCharSize): Just call x_set_window_size.
4730
4731 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4732 x_wait_for_event.
d528b1ce 4733 (flush_and_sync): Remove again.
5c646d5a
JD
4734 (xg_get_font_name): Suggest monospace if no previous font is known.
4735
e9c1637d
SM
47362009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4737
4738 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4739 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4740
5a72cccb
YM
47412009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4742
4743 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4744 processing pending events when event is filtered for input method.
ab04798f 4745 (Bug#3681)
5a72cccb 4746
2629aa37
JB
47472009-10-20 Juanma Barranquero <lekktu@gmail.com>
4748
4749 * fns.c: Add #endif accidentally removed in previous change.
4750
c3417a74
DN
47512009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4752
4753 * fns.c: Remove code for unsupported system: MAC_OS.
4754 * image.c: Likewise. Include setjmp.h.
4755
9685cef2
JD
47562009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4757
4758 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4759 pixel -1 (bug #4742).
4760
d7306fe6
DN
47612009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4762
019d2c4c
DN
4763 * process.c (create_pty): Remove conditionals for no longer
4764 supported systems: UNIPLUS and RTU.
4765
ee6bacd4
DN
4766 * xterm.c:
4767 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4768
d7306fe6
DN
4769 * alloc.c: Do not define struct catchtag.
4770 * eval.c: Move struct catchtag definition ...
4771 * lisp.h: ... here.
4772
4773 * image.c: Move png.h #include earlier to avoid warnings.
4774
4775 * xterm.c:
4776 * xsmfns.c:
4777 * xselect.c:
4778 * xrdb.c:
4779 * xmenu.c:
4780 * xftfont.c:
4781 * xfont.c:
4782 * xfns.c:
4783 * xfaces.c:
4784 * xdisp.c:
4785 * window.c:
4786 * widget.c:
4787 * w32xfns.c:
4788 * w32uniscribe.c:
4789 * w32term.c:
4790 * w32select.c:
4791 * w32reg.c:
4792 * w32proc.c:
4793 * w32menu.c:
4794 * w32inevt.c:
4795 * w32heap.c:
4796 * w32font.c:
4797 * w32fns.c:
4798 * w32console.c:
4799 * w32.c:
4800 * w16select.c:
4801 * vm-limit.c:
4802 * unexsol.c:
4803 * unexec.c:
4804 * unexcw.c:
4805 * unexaix.c:
4806 * undo.c:
4807 * tparam.c:
4808 * textprop.c:
4809 * terminfo.c:
4810 * terminal.c:
4811 * termcap.c:
4812 * term.c:
4813 * syntax.c:
4814 * sound.c:
4815 * sheap.c:
4816 * search.c:
4817 * scroll.c:
4818 * region-cache.c:
4819 * regex.c:
4820 * ralloc.c:
4821 * process.c:
4822 * print.c:
b024548b
DN
4823 * nsterm.m:
4824 * nsselect.m:
4825 * nsmenu.m:
4826 * nsimage.m:
4827 * nsfont.m:
4828 * nsfns.m:
d7306fe6
DN
4829 * msdos.c:
4830 * minibuf.c:
4831 * menu.c:
4832 * marker.c:
4833 * macros.c:
4834 * keymap.c:
4835 * keyboard.c:
4836 * intervals.c:
4837 * insdel.c:
4838 * indent.c:
4839 * gtkutil.c:
4840 * ftxfont.c:
4841 * ftfont.c:
4842 * fringe.c:
4843 * frame.c:
4844 * fontset.c:
4845 * font.c:
4846 * fns.c:
4847 * floatfns.c:
4848 * filelock.c:
4849 * fileio.c:
4850 * emacs.c:
4851 * editfns.c:
4852 * dosfns.c:
4853 * doprnt.c:
4854 * doc.c:
4855 * dispnew.c:
4856 * dired.c:
4857 * dbusbind.c:
4858 * data.c:
4859 * composite.c:
4860 * coding.c:
4861 * cmds.c:
4862 * cm.c:
4863 * chartab.c:
4864 * charset.c:
4865 * character.c:
4866 * ccl.c:
4867 * category.c:
4868 * casetab.c:
4869 * casefiddle.c:
4870 * callproc.c:
4871 * callint.c:
4872 * bytecode.c:
4873 * buffer.c:
4874 * atimer.c: Include setjmp.h. (Bug#4643)
4875
fd5f21e6
SM
48762009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4877
4c0354d7
SM
4878 Remove leftover table unibyte_to_multibyte_table.
4879 * character.c (unibyte_to_multibyte_table): Remove.
4880 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4881 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4882 * character.h (UNIBYTE_TO_CHAR): New macro.
4883 (MAKE_CHAR_MULTIBYTE): Use it.
4884 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4885 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4886 (message_dolog, set_message_1):
4887 * search.c (Freplace_match):
4888 * editfns.c (Fcompare_buffer_substrings):
4889 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4890 (concat):
4891 * insdel.c (copy_text, count_size_as_multibyte):
4892 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4893 * term.c (produce_glyphs):
4894 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4895 * regex.c (RE_CHAR_TO_MULTIBYTE):
4896 * cmds.c (internal_self_insert):
4897 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4898
fd5f21e6
SM
4899 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4900
4418646e
DN
49012009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4902
4903 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4904
35f5c1d2
JB
49052009-10-16 Juanma Barranquero <lekktu@gmail.com>
4906
4907 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4908
a0cd8f6b
AR
49092009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4910
4911 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4912 still needed under Tiger.
4913
4914 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4915
4916 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4917 __Apple__.
4918
4919 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4920
01a8d3fa
KH
49212009-10-15 Kenichi Handa <handa@m17n.org>
4922
4923 * print.c (print_object): Escape a symbol like "2E10" too.
4924
bf6c75c9 49252009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4926
4927 Cleanups and changes for 64-bit compile under Snow Leopard.
4928 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4929
4930 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4931
c5959062 4932 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4933 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4934 cast argument.
4935 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4936 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4937
4938 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4939
4940 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4941 where appropriate.
4942
4943 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4944 where appropriate.
6e4780c5
JB
4945 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4946 Use stringWithUTF8String.
bf6c75c9
AR
4947 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4948
6e4780c5
JB
4949 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4950 Add formal protocol mention to inheritance.
bf6c75c9
AR
4951 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4952
6e4780c5
JB
4953 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4954 Fix printf format.
bf6c75c9
AR
4955 (ns_query_color): Use CGFloat where appropriate.
4956 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4957 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4958 argument.
4959
3d87f118
AR
4960 * config.in (NS_HAVE_NSINTEGER): Drop.
4961
a95c8102
AR
4962 * dbusbind.c (dbus-method-return-internal)
4963 (dbus-method-error-internal): Use long format in printf, and cast
4964 argument.
4965
4966 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4967 in printf, and cast argument.
4968
6873acca 4969 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4970 cast argument.
4971
9ec6f100
GM
49722009-10-11 Glenn Morris <rgm@gnu.org>
4973
4974 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4975
5be883cd
JD
49762009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4977
4978 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4979 menu bar with a small width so it doesn't enlarge the frame.
4980
d7a39b51
JB
49812009-10-08 Juanma Barranquero <lekktu@gmail.com>
4982
4983 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4984
0c2b6f8e
GM
49852009-10-06 Glenn Morris <rgm@gnu.org>
4986
4987 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4988 SOME_MACHINE_LISP (this enters indirectly via DOC).
4989
e02131a2
EZ
49902009-10-05 Eli Zaretskii <eliz@gnu.org>
4991
4992 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4993
b4744254
EZ
49942009-10-04 Eli Zaretskii <eliz@gnu.org>
4995
4996 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4997 Doc fix.
4998
dbf64827
JB
49992009-10-03 Martin Rudalics <rudalics@gmx.at>
5000
5001 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5002
e9a0aef8
MA
50032009-10-02 Michael Albinus <michael.albinus@gmx.de>
5004
d528b1ce 5005 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5006 used anymore outside fileio.c.
5007
5008 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5009
64eb2b56
JB
50102009-10-01 Juanma Barranquero <lekktu@gmail.com>
5011
5012 * lisp.h (Qdelete_directory_internal):
5013 Declare, instead of Qdelete_directory.
5014
5015 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5016
9d28c33e
SM
50172009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5018
5019 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5020
9d8f3bd9
MA
50212009-10-01 Michael Albinus <michael.albinus@gmx.de>
5022
9d28c33e 5023 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5024 Fdelete_directory. It is not a command anymore. It has no file
5025 name handler.
5026
9694740b
SM
50272009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5028
5029 * xdisp.c (get_next_display_element): Use an enum in last change.
5030
748e162f
KH
50312009-09-28 Kenichi Handa <handa@m17n.org>
5032
9694740b 5033 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5034 unibyte_display_via_language_environment in handling
5035 Vnobreak_char_display.
5036
17efd58d
AR
50372009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5038
5039 * nsterm.h (ns_app_name): New extern variable.
5040
5041 * nsterm.m (ns_app_name): New variable.
5042 (ns_term_init): Set and use it.
5043 (ns_term_shutdown): Use it.
5044
5045 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5046 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5047
5048 * nsfns.m (ns_set_name_iconic, ns_set_name)
5049 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5050 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5051
9694740b
SM
5052 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5053 Remove double-casting in client_data comparison.
31c2d412 5054
3208cb35
YM
50552009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5056
5057 * keyboard.c (make_lispy_event): Remember last wheel direction.
5058 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5059
b7d552d6
GM
50602009-09-26 Glenn Morris <rgm@gnu.org>
5061
5062 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5063 internal.elc. Add term/pc-win.elc.
5064 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5065 term/x-win.elc.
5066 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5067 term/w32-win.elc.
5068 (NS_SUPPORT): New.
5069 (lisp): Add NS_SUPPORT.
5070 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5071
4ff670a8
DR
50722009-09-25 David Reitter <david.reitter@gmail.com>
5073
5074 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5075 on Mac OS X 10.6+ (bug#4513).
5076
feabfb6c
JB
50772009-09-24 Juanma Barranquero <lekktu@gmail.com>
5078
5079 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5080 some parts of Emacs code (like font selection) don't grok them.
5081 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5082
de59072a
AS
50832009-09-24 Andreas Schwab <schwab@redhat.com>
5084
5085 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5086
a489517b
JB
50872009-09-24 Juanma Barranquero <lekktu@gmail.com>
5088
5089 * dired.c (Fdirectory_files): Fix typo in docstring.
5090
0592970c
AR
50912009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5092
5093 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5094 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5095 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5096 under GNUstep.
5097 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5098
5099 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5100 glyph advancement.
5101
48e8a88b
AR
51022009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5103
5104 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5105 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5106
5107 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5108 deleted (bug #4492).
5109
e14f0a78
AR
5110 * nsfont.m (Vns_reg_to_script): New lisp variable.
5111 (syms_of_nsfont): Declare it.
5112 (ns_registry_to_script): New function.
5113 (ns_get_req_script): Call it.
5114 (ns_findfonts): Don't give up on non-unicode registry.
5115
5116 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5117
5b650faa
SM
51182009-09-20 Tom Tromey <tromey@redhat.com>
5119
5120 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5121 batch mode (bug#4228).
5122
a489517b 51232009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5124
5125 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5126 carefully. (Bug #4339)
0bae4e09 5127
fcfe06f3
CY
51282009-09-18 Chong Yidong <cyd@stupidchicken.com>
5129
d798ba87 5130 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5131
31642728
AR
51322009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5133
5134 * emacs.c (inhibit_x_resources): Update doc string for NS.
5135 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5136 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5137
5138 * nsterm.h (ns_no_defaults): Remove.
5139
5140 * nsterm.m (ns_no_defaults): Remove.
5141 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5142 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5143 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5144 don't update the NSWindow itself.
5145 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5146 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5147
5148 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5149 ns_use_qd_smoothing.
5150
5151 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5152 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5153 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5154 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5155
8686ac71
JB
51562009-09-17 Juanma Barranquero <lekktu@gmail.com>
5157
5158 * emacs.c (inhibit_x_resources): New variable.
5159 (main) [HAVE_NS]: Don't process --quick command line option.
5160 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5161
5162 * lisp.h (inhibit_x_resources): Declare it extern.
5163
5164 * w32reg.c (x_get_string_resource):
5165 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5166
e227ba05
EZ
51672009-09-17 Eli Zaretskii <eliz@gnu.org>
5168
362654a6
JB
5169 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5170 Add lisp/term/internal.elc.
e227ba05 5171
742d40e8
SM
51722009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5173
5174 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5175 (bug#4461).
5176
005bd5a2
DN
51772009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5178
5179 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5180
5181 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5182 (OBJECTS_MACHINE): Remove, unused.
5183
f9af9719
SM
51842009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5185
5186 * frame.c (x_get_resource_string): Remove unused.
5187
0307c7d2
JD
51882009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5189
5190 * xterm.c (x_new_font): Call change_frame_size before calling
5191 x_set_window_size, in case frame size won't change.
5192
5193 * frame.c (x_set_font): Remove dead code.
5194
428b13d6
SM
51952009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5196
5197 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5198
5766c380
SM
51992009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5200
5201 * lread.c (Fload): Don't output a message after loading an obsolete
5202 package any more (done in Lisp now).
5203
2fd0161b
CY
52042009-09-12 Chong Yidong <cyd@stupidchicken.com>
5205
5206 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5207
bc5e75b6
SM
52082009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5209
5210 * keymap.c (Fwhere_is_internal): Use nconc2.
5211
c31c985e
AM
52122009-09-11 Alan Mackenzie <acm@muc.de>
5213
5214 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5215 batch mode.
5216
78012bd2
AS
52172009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5218
5219 * xdisp.c (display_mode_element): Detect cycles.
5220
9d889332
SM
52212009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5222
5223 * keymap.c (where_is_internal): Don't erroneously return nil right after
5224 filling the cache.
5225 (where_is_internal_1): Fix up typo.
5226
7ab5d780
GM
52272009-09-11 Glenn Morris <rgm@gnu.org>
5228
5229 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5230 share a common doc-string.
5231
5238a749
SM
52322009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5233
66d77eda
SM
5234 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5235 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5236
5238a749
SM
5237 * keymap.c (QCadvertised_binding): New constant.
5238 (syms_of_keymap): Initialize it.
5239 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5240 if applicable.
5241
19f48442
SM
52422009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5243
50d4ba39
SM
5244 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5245 (parse_menu_item): Streamline since bindings are recomputed all the
5246 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5247 more and don't support lmenu's menu-alias any more either.
5248
a88a5372
SM
5249 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5250 (where_is_internal): Strip it down to only traverse the keymaps.
5251 Move the cache handling from Fwhere_is_internal to here.
5252 (Fwhere_is_internal): Move the handling of remapping and the choice of
5253 the best binding from where_is_internal to here.
5254 Unify the cached/noncached paths, so remapping is also handled
5255 correctly when the cache is used, and so the cache can be used to
5256 speed up remap-handling when applicable.
5257 Give preference to non-remapped bindings.
5258 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5259 non-remapped bindings.
5260 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5261 command remapping.
5262
19f48442
SM
5263 * xdisp.c (display_mode_element): Move list length limit from 50 to
5264 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5265
599498c3 52662009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5267
5268 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5269
f9b7b5ac
SM
52702009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5271
a53af587
JB
5272 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5273 (Bug#4334)
5274
f9b7b5ac
SM
5275 * keymap.c (where_is_internal): Filter out shadowed remappings.
5276 Assume that where_is_internal returns unshadowed bindings to simplify
5277 the code and get rid of the gotos. Use ASIZE.
5278
04f4b72d
JD
52792009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5280
4da146f2
JD
5281 * xterm.c (x_focus_changed): If we get a focusout and pointer
5282 is invisible, make it visible.
5283
04f4b72d
JD
5284 * xterm.h: Remove condition for declaration of
5285 x_*_window_to_frame.
5286
7cef7ce3
SM
52872009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5288
5289 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5290 initial terminal as well.
5291
a54fa5b7
JD
52922009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5293
5294 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5295 x_menubar_window_to_frame.
a54fa5b7 5296
50426a04 5297 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5298 (XTmouse_position): Do not return valid positions
5299 for clicks in the menubar and the toolbar for Gtk+.
5300
5301 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5302 if the widget for the event has the same top level as a frame,
5303 return the frame.
5304 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5305 internal windows, bug #4122.
5306 (x_non_menubar_window_to_frame): Remove.
5307
5a021dd0
GM
53082009-09-02 Glenn Morris <rgm@gnu.org>
5309
5310 * buffer.c (default-major-mode): Move most of the doc from here...
5311 (major-mode): ... to here.
5312
548fe2f3
NR
53132009-08-30 Nick Roberts <nickrob@snap.net.nz>
5314
5315 * process.c (wait_reading_process_output): Keep the descriptor
5316 when pty is used by a non-child process, e.g., in I/O buffer of
5317 GDB this allows inferior to be restarted.
5318
e0840eef
EZ
53192009-08-29 Eli Zaretskii <eliz@gnu.org>
5320
5321 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5322 both branches into one.
5323
82e98df4
SM
53242009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5325
5326 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5327 (main): Use enable-multibyte-characters rather than
5328 default-enable-multibyte-characters. Output a warning message when
5329 running a unibyte session.
5330
890617cb
YM
53312009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5332
5333 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5334 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5335 (copy_data_segment): Also copy __program_vars section.
5336 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5337 (dump_it) [LC_DYLD_INFO]: Use it.
5338
5339 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5340
e7adeadc
EZ
53412009-08-28 Eli Zaretskii <eliz@gnu.org>
5342
5343 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5344 $(SRC)/buildobj.h.
5345 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5346 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5347 $(SRC)/buildobj.h.
5348 (clean): Add buildobj.h.
5349
3ed8bbdc
TZ
53502009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5351
5352 * print.c (print_object): Set escapeflag to 1 when printing
5353 hashtable keys and values.
5354
155a6764
SM
53552009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5356
5357 * lread.c (read_integer): Use doubles (and potentially return a float
5358 number) as we do in string-to-number.
5359 (read1): Use strtol to read integers, signal errors on strtol's
5360 overflow and use floats if strtol's output is too large for
5361 Elisp integers.
5362
877610de
EZ
53632009-08-27 Eli Zaretskii <eliz@gnu.org>
5364
5365 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5366 (make-buildobj-SH): Fix last change.
5367 (SRC): Move to before where it's first used.
5368
ef73e7be
KH
53692009-08-27 Kenichi Handa <handa@m17n.org>
5370
550c8289
KH
5371 * process.c (send_process): Use encode_coding_object instead of
5372 encode_coding_string to perform eol-conversion even if the string
5373 is unibyte.
5374
60afa08d
KH
5375 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5376 character.
5377
ef73e7be 5378 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5379 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5380
7b3a82d7
DN
53812009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5382
5654bf63
DN
5383 * callproc.c (Fcall_process): Remove always true #if.
5384
7b3a82d7
DN
5385 * lisp.h: Replace #if 0 code for checking with text pointing to
5386 the --enable-checking configure flag.
5387
5388 * emacs.c (main): Mention the --enable-profiling configure flag
5389 instead of using CFLAGS.
5390
878bde49
KR
53912009-08-26 Ken Raeburn <raeburn@raeburn.org>
5392
5393 * Makefile.in (buildobj.h): New target.
5394 (doc.o): Depend on it.
5395 (temacs${EXEEXT}): Don't generate buildobj.lst.
5396 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5397 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5398 ($(BLD)/doc.$(O)): Depend on it.
5399 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5400 provided by Eli Zaretskii.)
5401 ($(TEMACS)): Don't generate buildobj.lst.
5402 * doc.c: Include buildobj.h.
5403 (buildobj): New static variable.
5404 (Fsnarf_documentation): Use it, instead of opening and reading
5405 buildobj.lst.
5406
1574224c
MA
54072009-08-25 Michael Albinus <michael.albinus@gmx.de>
5408
5409 * dbusbind.c (Fdbus_call_method)
5410 (Fdbus_call_method_asynchronously): Use English numeric format for
5411 timeout values in doc string.
5412
d9da2f45
KH
54132009-08-25 Kenichi Handa <handa@m17n.org>
5414
ef73e7be
KH
5415 * alloc.c (mark_char_table): New function.
5416 (mark_object): Use mark_char_table for a char-table.
5417
d9da2f45
KH
5418 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5419 (CHAR_TABLE_REF): Use it.
5420
c8edcc01
KR
54212009-08-23 Ken Raeburn <raeburn@raeburn.org>
5422
5423 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5424 before invoking the newly build emacs to check for load-path
5425 shadowing.
5426
7763401b
GM
54272009-08-22 Glenn Morris <rgm@gnu.org>
5428
5429 * Makefile.in (bootstrap_exe): New variable.
5430 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5431 Use ${bootstrap_exe}.
5432
729eadda
EZ
54332009-08-22 Eli Zaretskii <eliz@gnu.org>
5434
5435 * coding.h (encode_coding_string): Don't encode unibyte strings.
5436 (Bug#4047)
5437
eb4c6ace
MA
54382009-08-22 Michael Albinus <michael.albinus@gmx.de>
5439
5440 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5441
5442 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5443 intended as hotfix only.
5444 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5445
36e34d1b
AR
54462009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5447
5448 * nsterm.m (ns_get_color): Update documentation properly for last
5449 change, and clean up loose ends in the code left by it. Fix
5450 longstanding bug with 16-bit hex parsing, and add support for
5451 yet another X11 format (rgb:r/g/b) for compatibility.
5452 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5453 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5454
f983eb8a
SM
54552009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5456
5457 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5458
3f56d3c6
MA
54592009-08-20 Michael Albinus <michael.albinus@gmx.de>
5460
5461 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5462 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5463 (xd_initialize, xd_pending_messages): Check, whether
5464 $DBUS_SESSION_BUS_ADDRESS is set.
5465
fb641d68
YM
54662009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5467
5468 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5469
5470 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5471
cf59a374
GM
54722009-08-20 Glenn Morris <rgm@gnu.org>
5473
5474 * emacs.c (system-type): Doc fix.
5475
1373f3be
SM
54762009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5477
5478 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5479 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5480
058ed861
MA
54812009-08-18 Michael Albinus <michael.albinus@gmx.de>
5482
1373f3be
SM
5483 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5484 New functions.
058ed861
MA
5485 (xd_initialize): Revert change from 2009-08-16.
5486
563a866e 54872009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5488
5489 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5490 font-group vector, return nil.
5fc05db0 5491
e42bdf01
CY
54922009-08-17 Chong Yidong <cyd@stupidchicken.com>
5493
5494 * process.c (status_notify): Don't perform redisplay.
5495 (Fdelete_process, list_processes_1, process_send_signal):
5496 Expliticly perform redisplay.
5497 (wait_reading_process_output): Always check process status, but
5498 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5499
4230ab74
KR
55002009-08-17 Ken Raeburn <raeburn@raeburn.org>
5501
1373f3be 5502 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5503 (XFLOAT_INIT): New macro for storing a float value.
5504 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5505 * fns.c (sxhash): Copy out the value of a float in order to
5506 examine its bytes.
5507 * dbusbind.c (xd_append_arg): Likewise.
5508
4230ab74
KR
5509 * emacs.c (main): Don't call syms_of_data twice.
5510
a0645cdd
MA
55112009-08-16 Michael Albinus <michael.albinus@gmx.de>
5512
5513 * dbusbind.c (xd_initialize): Add connection file descriptor to
5514 input_wait_mask, in order to let select() detect, whether a new
5515 message has been arrived.
ca4f31ea 5516 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5517
485db0ba
MA
55182009-08-15 Michael Albinus <michael.albinus@gmx.de>
5519
1373f3be
SM
5520 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5521 New functions.
485db0ba
MA
5522
5523 * lisp.h (xd_pending_messages): Declare.
5524
5525 * keyboard.c (readable_events): Call xd_pending_messages.
5526
b5b98ff4
CY
55272009-08-15 Chong Yidong <cyd@stupidchicken.com>
5528
1373f3be 5529 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5530
f8354c6e
CY
5531 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5532
b5b98ff4
CY
5533 * buffer.c (set_buffer_internal_1)
5534 (swap_out_buffer_local_variables): Check for unbound local
5535 variables (Bug#4138).
5536
8b9fc636
EZ
55372009-08-14 Eli Zaretskii <eliz@gnu.org>
5538
5539 * process.c (create_pty): Fix last change.
5540
ce959360
CY
55412009-08-13 Chong Yidong <cyd@stupidchicken.com>
5542
5543 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5544 (xbm_load_image): Caller changed.
64b807c9 5545 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5546
c7baf7e9
NR
55472009-08-13 Nick Roberts <nickrob@snap.net.nz>
5548
5549 * process.c (create_pty): New function.
5550 (Fstart_process): Use it to allow Emacs to just associate a pty
5551 with the buffer. See associated change in gdb-mi.el.
5552 (list_processes_1): Deal with no program name.
5553 (start_process_unwind): Use pid == -2 to mean no process.
5554
1ac9108a
SM
55552009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5556
5557 * cmds.c (nonundocount): New global variable.
5558 (keys_of_cmds): Initialize it.
5559 (Fself_insert_command): Use it to combine upto 20 sequential chars
5560 into a single undo entry, just like the Qself_insert_command code in
5561 keyboard.c does.
5562 Call frame_make_pointer_invisible, also like the Qself_insert_command
5563 code in keyboard.c does.
5564 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5565 than its own local replacement for it.
5566
e267324c
KR
55672009-08-10 Ken Raeburn <raeburn@raeburn.org>
5568
1ac9108a 5569 * fns.c (concat): Don't re-set string length to its current value.
77437343 5570
1ac9108a
SM
5571 * coding.h (decode_coding_string, encode_coding_string):
5572 Use SBYTES macro.
f0bed503 5573
1ac9108a 5574 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5575 (doprnt): Merge with doprnt1, discarding lispstrings code.
5576 * lisp.h (doprnt_lisp): Don't declare.
5577
416e006d
JL
55782009-08-07 Juri Linkov <juri@jurta.org>
5579
5580 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5581
6f7d5780
DN
55822009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5583
5584 * print.c (syms_of_print): Undo previous change.
5585
f19a0f5b
TZ
55862009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5587
5588 * lread.c (read1, syms_of_lread): Read hashtables back from the
5589 readable format.
5590
5591 * print.c (print_preprocess, print_object): Print hashtables fully
5592 and readably.
5593 (syms_of_print): Provide 'hashtable-print-readable.
5594
b9173dc2
AR
55952009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5596
5597 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5598 no family set.
5599 (nsfont_open): Handle case when entity has no family.
5600
1586503c
AR
56012009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5602
5603 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5604 element, not a list, for match case.
5605
087048cd
KH
56062009-07-28 Kenichi Handa <handa@m17n.org>
5607
5608 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5609 rigidly.
5610
5611 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5612 font_parse_xlfd. Check font properties more rigidly.
5613
780c2506
DN
56142009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5615
31fd7c5c
JB
5616 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5617 bsd-common.h.
780c2506 5618
a8c0cc18
KH
56192009-07-27 Kenichi Handa <handa@m17n.org>
5620
5621 * xfaces.c (face_with_height): Call font_clear_prop.
5622
4fbe2306
CY
56232009-07-26 Chong Yidong <cyd@stupidchicken.com>
5624
111d9af3
CY
5625 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5626
5627 * xterm.c (x_term_init): Use Qx.
5628
4fbe2306
CY
5629 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5630
1ac9108a 5631 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5632 (ns_get_color): Revert 2009-07-16 change.
5633
beb0b7f9
EZ
56342009-07-25 Eli Zaretskii <eliz@gnu.org>
5635
5636 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5637 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5638
2baf5e76
KR
56392009-07-25 Ken Raeburn <raeburn@raeburn.org>
5640
1ac9108a
SM
5641 * coding.h (decode_coding_string, encode_coding_string):
5642 Use SCHARS macro.
8890e5f5 5643
2baf5e76 5644 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5645 (load_depth): Delete.
2baf5e76
KR
5646 (Qload_in_progress): New variable.
5647 (load_unwind): Don't reference load_depth or load_in_progress.
5648 (Fload): Likewise; specbind Qload_in_progress instead.
5649 (init_lread): Don't initialize load_depth.
5650 (syms_of_lread): Initialize and protect Qload_in_progress.
5651
1395c6f5
AR
56522009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5653
5654 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5655
4e2f36cf
AR
56562009-07-23 Yavor Doganov <yavor@gnu.org>
5657
5658 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5659
5dd9a6f7
AR
56602009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5661
5662 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5663 Bugs 3792, 3720, 2402.
5664 (ns_lookup_indexed_color): Check for bad index.
5665 (ns_index_color): Init unused slot to 0.
5666 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5667 Bug 3714, possibly 3082.
5dd9a6f7 5668
c902b920
JR
56692009-07-22 Jason Rumney <jasonr@gnu.org>
5670
1ac9108a
SM
5671 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5672 Position IME window at cursor (Bug#2570).
c902b920
JR
5673 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5674 (globals_of_w32fns): Dynamically load functions required above.
5675
5676 * w32term.c (w32_draw_window_cursor): Send message to reposition
5677 any IME window.
5678
090101cf
CY
56792009-07-21 Chong Yidong <cyd@stupidchicken.com>
5680
5681 * fileio.c: Revert 2009-07-16 changes.
5682 (Vauto_save_include_big_deletions): New variable.
5683 (Fdo_auto_save): Disable auto-save only if
5684 auto-save-include-big-deletions is nil.
5685
e6583e3d
CY
56862009-07-21 Chong Yidong <cyd@stupidchicken.com>
5687
5688 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5689 the overflowed pixels into account (Bug#3879).
5690
ece435a5
KR
56912009-07-21 Ken Raeburn <raeburn@raeburn.org>
5692
5693 * lread.c (load_depth): New variable.
5694 (Fload, load_unwind, init_lread): Set it to the load recursion
5695 depth; set load_in_progress as a simple boolean based on the
5696 current load_depth. (Bug#3892)
5697
40b2d973
AR
56982009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5699
5700 * nsfont.m (ns_has_attribute): Remove.
5701 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5702
10be7e0d
JL
57032009-07-18 Juri Linkov <juri@jurta.org>
5704
5705 * process.c (Fset_process_query_on_exit_flag): Mention killing
5706 a buffer in docstring.
5707
fa055055
KH
57082009-07-17 Kenichi Handa <handa@m17n.org>
5709
5710 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5711
042f7b69
YM
57122009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5713
5714 * nsfns.m (Fns_set_alpha): Remove function.
5715 (syms_of_nsfns): Don't defsubr it.
5716
5717 * nsterm.m (ns_get_color): Remove incompatible color formats.
5718 (ns_color_to_lisp): Generate #rrggbb color format string.
5719
4be941e3
RS
57202009-07-16 Richard Stallman <rms@gnu.org>
5721
5722 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5723 (Fset_buffer_auto_saved): Handle save_length = -2.
5724
4e6b227d
CY
57252009-07-16 Chong Yidong <cyd@stupidchicken.com>
5726
5727 * xterm.c (Qx_gtk_map_stock): New var.
5728
5729 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5730 of calling intern each time.
5731
a1856973
YM
57322009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5733
5734 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5735 does tiling.
5736
5737 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5738
497e54d8
KH
57392009-07-14 Kenichi Handa <handa@m17n.org>
5740
72d36834
KH
5741 * font.c (font_vconcat_entity_vectors): New function.
5742 (struct font_sort_data): New member font_driver_preference.
5743 (font_compare): Check font_driver_preference.
5744 (font_sort_entities): The format of the first argument changed.
5745 (font_delete_unmatched): Likewise.
5746 (font_list_entities): The return type changed.
5747 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5748 (font_find_for_lface): Adjuste for the above changes.
5749 Don't suppress the checking of C even if the repertory supports it.
5750 (Flist_fonts): Adjust for the above changes.
72d36834 5751
1ac9108a
SM
5752 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5753 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5754 Reject a font who has adstyle property that is different from a
5755 langname derived from registry property.
1ac9108a 5756 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5757
b6046155
EZ
57582009-07-13 Eli Zaretskii <eliz@gnu.org>
5759
5760 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5761 local copy of dirfilename.
5762
fb6b6049
KH
57632009-07-13 Kenichi Handa <handa@m17n.org>
5764
e2402a5e
KH
5765 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5766 against max_char.
5767
fb6b6049
KH
5768 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5769 calling XSYMBOL (sym).
5770
65156807
EZ
57712009-07-11 Eli Zaretskii <eliz@gnu.org>
5772
1ac9108a
SM
5773 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5774 New function.
5775 (directory_files_internal) [WINDOWSNT]:
5776 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5777 the filesystem of the directory is fast or slow.
5778
5779 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5780 file name.
5781 (is_slow_fs): New function.
5782 (stat): Use it to determine whether to issue more system calls to
5783 get accurate file attributes, when w32-get-true-file-attributes is
5784 `local'.
5785
e0ab5fcf
JD
57862009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5787
5788 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5789 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5790 parameter font-parameter as default to the font dialog.
5791
784ceded
KH
57922009-07-10 Kenichi Handa <handa@m17n.org>
5793
5794 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5795
fb8edc0b
EZ
57962009-07-09 Eli Zaretskii <eliz@gnu.org>
5797
1ac9108a 5798 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5799
fb8edc0b
EZ
5800 * w32.c (stat): Treat UNC file names as residing on remote
5801 drives. (Bug#3542)
5802
635c75b1
KH
58032009-07-09 Kenichi Handa <handa@m17n.org>
5804
5805 * fontset.c (fontset_find_font): Fix previous change.
5806
c1d5ce94
MA
58072009-07-08 Michael Albinus <michael.albinus@gmx.de>
5808
5809 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5810 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5811 error flag.
5812
edb61b39
KH
58132009-07-08 Kenichi Handa <handa@m17n.org>
5814
374bf7e4
KH
5815 * fontset.c (fontset_find_font): Fix the logic of handling
5816 charset_matched.
5817 (font_for_char): Delete unused var.
5818 (generate_ascii_font_name): Delete it.
5819
edb61b39
KH
5820 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5821
5822 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5823 (encode_coding_sjis): Fix the code range check.
5824
0f3f018c
CY
58252009-07-07 Chong Yidong <cyd@stupidchicken.com>
5826
5827 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5828 (Fexpand_file_name): Copy string data properly (Bug#3772).
5829
fcaf6f3a
JD
58302009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5831
5832 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5833 first MapNotify.
5834
6809ca75
KH
58352009-07-07 Kenichi Handa <handa@m17n.org>
5836
5837 * character.h (unibyte_has_multibyte_table): Delete extern.
5838 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5839
5840 * charset.c (Fset_charset_priority): Update charset_unibyte.
5841 (syms_of_charset): Initialize charset_unibyte.
5842
5843 * character.c (unibyte_has_multibyte_table): Delete it.
5844 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5845 charset_unibyte.
5846 (multibyte_char_to_unibyte_safe): Likewise.
5847 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5848
1ac9108a 5849 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5850 (x_produce_glyphs): Likewise.
5851
5852 * .gdbinit (xcharset): Fix the treating $arg0.
5853
ad9e2d54
EZ
58542009-07-04 Eli Zaretskii <eliz@gnu.org>
5855
5856 Emulation of `getloadavg' on MS-Windows.
50426a04 5857 * w32.c: Include float.h.
ad9e2d54
EZ
5858 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5859 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5860 (get_native_system_info, get_system_times): New functions.
5861 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5862 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5863 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5864 g_b_init_get_system_times, and num_of_processors.
5865
0a3472c7
JR
58662009-07-03 Jason Rumney <jasonr@gnu.org>
5867
5868 * w32term.c (w32_initialize): Use standard types.
5869
80904120
EZ
58702009-07-03 Eli Zaretskii <eliz@gnu.org>
5871
5872 * dired.c (Ffile_attributes): Decode user and group names by the
5873 locale's encoding. (Bug#3443)
5874
6978862d
DN
58752009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5876
f8d23104
DN
5877 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5878 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5879
5880 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5881
5882 * term.c (init_tty): Remove spurious #ifdef.
5883
6978862d
DN
5884 * m/mips.h: Mention this file is also used for netbsd.
5885 * m/pmax.h: Remove file.
5886
e044e4fc
JD
58872009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5888
5889 * xterm.h (struct x_display_info): Add invisible_cursor.
5890 (struct x_output): Add current_cursor.
5891
5892 * xterm.c (XTtoggle_invisible_pointer): New function.
5893 (x_define_frame_cursor): Don't define cursor if invisible or the
5894 same as before. Set current_cursor.
5895 (x_create_terminal): Set toggle_invisible_pointer_hook.
5896
5897 * xfns.c (make_invisible_cursor): New function.
5898 (x_set_mouse_color): Call make_invisible_cursor.
5899 Set current_cursor.
5900 (x_window): Set current_cursor.
5901
5902 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5903
5904 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5905 inserting a character.
5906 (read_avail_input): Call frame_make_pointer_visible.
5907
5908 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5909 (frame_make_pointer_invisible, frame_make_pointer_visible):
5910 New functions.
e044e4fc
JD
5911 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5912
5913 * frame.h: Declare frame_make_pointer_invisible and
5914 frame_make_pointer_visible.
5915 (struct frame): Add pointer_invisible.
5916
574c8efa
JD
59172009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5918
7b507248
JD
5919 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5920 frame isn't visible.
5921 (xg_frame_resized): If width/height is -1, get size of window
5922 from X server.
5923
5924 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5925 for MapNotify.
5926
835bdaa7 5927 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5928 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5929 (flush_and_sync): Reintroduce.
574c8efa 5930
3f1c6666 59312009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5932
31fd7c5c 5933 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5934
5935 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5936 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5937
5938 * frame.h: Declare Qsticky.
5939
cad9ef74
JD
5940 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5941
5942 * nsfns.m (ns_frame_parm_handlers): Ditto.
5943
5944 * frame.c: Declare Qsticky.
5945 (frame_parms): Add sticky.
5946
5947 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5948
5949 * xterm.h: Declare x_set_sticky.
5950
5951 * xterm.c (x_set_sticky): New function.
5952
69b16610
JD
5953 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5954 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5955 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5956
5957 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5958
5959 * frame.c: Qmaximized is new.
5960 (x_set_frame_parameters): Do not handle fullscreen specially.
5961 Only set width and height if explicitly set.
5962 (x_set_fullscreen): Handle Qmaximized.
5963 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5964 (syms_of_frame): Initialize Qmaximized.
5965
1ac9108a
SM
5966 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5967 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5968
5969 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5970 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5971 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5972 set gravity to NorthWestGravity when USE_GTK.
5973 (set_wm_state): New function.
31fd7c5c 5974 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5975 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5976 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5977 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5978 to x_real_positions and x_fullscreen_adjust.
5979
5980 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5981 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5982 flush_and_sync.
5983 (xg_height_changed): New function.
5984 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5985 and gtk_window_set_policy. Set frame gravity after parsing the
5986 geometry string.
3f1c6666
JD
5987 (xg_update_frame_menubar, free_frame_menubar)
5988 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5989 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5990 Remove calls to xg_frame_set_char_size.
5991
fd503d99
KH
59922009-07-01 Kenichi Handa <handa@m17n.org>
5993
5994 * keyboard.c (decode_keyboard_code): New function.
5995 (tty_read_avail_input): Decode the input bytes if necessary.
5996
1ac9108a
SM
5997 * coding.c (setup_coding_system):
5998 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5999 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6000 use Qno_conversion.
6001
24ed93fb
YM
60022009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6003
6004 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6005
99061dfc
CY
60062009-06-30 Chong Yidong <cyd@stupidchicken.com>
6007
1ac9108a 6008 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6009
ff90fbde
JR
60102009-06-30 Jason Rumney <jasonr@gnu.org>
6011
6012 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6013 is already loaded.
6014 Set user model ID if supported (bug#1849).
6015
5f445726
JM
60162009-06-29 Jim Meyering <meyering@redhat.com>
6017
6018 Remove useless if-before-xfree test.
6019 * nsfont.m (nsfont_close): Remove useless test.
6020 * term.c (delete_tty): Likewise.
6021 * w32.c (system_process_attributes): Likewise.
6022 * w32font.c (w32font_close): Likewise.
6023 * xfaces.c (x_free_gc): Likewise.
6024 * xselect.c (buffer): Likewise.
6025
b9607587
AS
60262009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6027
6028 * process.c (send_process): Keep decoded string in a local
6029 variable and protect it from GC. (Bug#3521)
6030
89ba96f4
EZ
60312009-06-28 Eli Zaretskii <eliz@gnu.org>
6032
6033 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6034 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6035
098a1589
CY
60362009-06-28 Chong Yidong <cyd@stupidchicken.com>
6037
485422be
CY
6038 * xdisp.c (start_display, handle_face_prop)
6039 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6040 (redisplay_window, try_window_id, produce_image_glyph):
6041 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6042
098a1589
CY
6043 * xterm.c (x_update_window_begin, x_new_focus_frame)
6044 (x_scroll_bar_handle_click, handle_one_xevent)
6045 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6046 (x_make_frame_visible, x_make_frame_invisible)
6047 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6048 code chunks that are now obsolete.
6049
78c38319
MA
60502009-06-28 Michael Albinus <michael.albinus@gmx.de>
6051
6052 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6053 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6054 for hours, when optimzation is enabled.
6055 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6056 (xd_read_message): Make them static.
6057
4189ed40
CY
60582009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6059
6060 * term.c (turn_on_face): Allow simultaneously bold and dim
6061 terminal faces (Bug#3530).
6062
cd9b5e16
CY
60632009-06-27 Chong Yidong <cyd@stupidchicken.com>
6064
4e23bedb
CY
6065 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6066
cd9b5e16
CY
6067 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6068 truncation glyphs (Bug#3686).
6069
07cc3c35
GM
60702009-06-27 Glenn Morris <rgm@gnu.org>
6071
6072 * m/pmax.h: Restore file, with only netbsd portions.
6073
31fd7c5c 60742009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6075
cd9b5e16 6076 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6077
42d4a64f
KH
60782009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6079
6080 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6081 the arg FORCE_SYMBOL.
6082
930fe55b 60832009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6084
6085 * fontset.c (fontset_find_font): When a usable rfont_def is found
6086 in a fallback font-group, make it the first element of the group.
6087
57ebc3fd
CY
60882009-06-24 Chong Yidong <cyd@stupidchicken.com>
6089
6090 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6091
f084f942
KH
60922009-06-24 Kenichi Handa <handa@m17n.org>
6093
6094 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6095 set for C.
6096 (fontset_font): Record the availability of a font for C both in
6097 the realized fontsets of the current one and the default one.
6098
2f686c87
DN
60992009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6100
6101 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6102 conditional, it is always defined on AIX.
6103
666e158e
MB
61042009-06-23 Miles Bader <miles@gnu.org>
6105
6106 * window.c (Vrecenter_redisplay): New variable.
6107 (syms_of_window): Initialize it.
6108 (Qtty): New extern declaration.
6109 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6110
c6da7cd2
JM
61112009-06-23 Jim Meyering <meyering@redhat.com>
6112
1ac9108a
SM
6113 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6114 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6115 pointer dereferences are guaranteed to be valid.
c6da7cd2 6116
678dca3d
KH
61172009-06-23 Kenichi Handa <handa@m17n.org>
6118
74d75424
KH
6119 * emacs.c (main): Call init_font ().
6120
6121 * font.h (Vfont_log): Extern it.
6122 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6123
6124 * font.c (font_sort_entities, font_list_entities)
6125 (font_matching_entity, font_open_entity)
6126 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6127 (Vfont_log): Delete static.
6128 (font_log_env_checked): Delete this variable.
6129 (font_add_log): Don't check font_log_env_checked.
6130 (font_deferred_log): Check Vfont_log.
6131 (init_font): New function.
6132
678dca3d
KH
6133 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6134
6135 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6136
6137 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6138
6139 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6140
6141 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6142 (face_for_char): Don't call font_deferred_log here.
6143 (font_for_char): Likewise.
6144
8a668709
CY
61452009-06-22 Chong Yidong <cyd@stupidchicken.com>
6146
9a01ee33
CY
6147 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6148 rather than its background_width for drawing the overline and
6149 underline (Bug#489).
6150
6151 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6152 rather than its background_width for drawing the overline and
6153 underline (Bug#489).
ec7c9926
CY
6154 (xg_default_icon_file): New variable.
6155 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6156 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6157
8a668709
CY
6158 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6159 (load_overlay_strings): Remove externs.
6160 (fast_find_position): Function deleted.
6161 (mouse_face_from_buffer_pos): New function, based on
6162 fast_find_position. Correctly handle before-strings,
6163 display-strings, and after-strings (Bug#1220).
6164 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6165
4d4c02d8
CY
61662009-06-21 Chong Yidong <cyd@stupidchicken.com>
6167
1ac9108a 6168 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6169 (move_it_in_display_line_to, move_it_in_display_line_to)
6170 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6171
70243478
CY
61722009-06-21 Chong Yidong <cyd@stupidchicken.com>
6173
6174 * Branch for 23.1.
6175
13087e59
JR
61762009-06-21 Jason Rumney <jasonr@gnu.org>
6177
6178 * w32term.c (keyboard_codepage): New static variable.
6179 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6180 (w32_read_socket) [WM_CHAR]: Use it to decode character
6181 input (bug#3237).
6182 (w32_initialize): Initialize it.
6183 (codepage_for_locale): New function.
6184
4735b74e
KR
61852009-06-20 Ken Raeburn <raeburn@raeburn.org>
6186
6187 * process.c (status_message): Pass Faset index argument as a lisp
6188 object, so as to work with USE_LISP_UNION_TYPE.
6189
0e727afa
YM
61902009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6191
6192 * coding.c (Ffind_coding_systems_region_internal):
6193 Cache checked characters.
6194
cf299835
KH
61952009-06-18 Kenichi Handa <handa@m17n.org>
6196
1ac9108a 6197 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6198
90f20d94
AS
61992009-06-18 Andreas Schwab <aschwab@redhat.com>
6200
6201 * xdisp.c (redisplay_internal): Check that the frame is still
6202 live after redisplay of its windows.
6203 (redisplay_windows): Check that the window is still live.
6204
7f1faf1c
KH
62052009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6206
6207 * coding.c (detect_coding_utf_16): Fix previous change.
6208
cc13543e
KH
62092009-06-16 Kenichi Handa <handa@m17n.org>
6210
6211 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6212 UTF-16 by checking the dispersion of Eth and Oth bytes.
6213
977b85f4
AS
62142009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6215
6216 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6217
66bd43d1
KH
62182009-06-15 Kenichi Handa <handa@m17n.org>
6219
6220 * process.c (status_message): Fix previous change. Be sure to
6221 decode a localized string.
6222
cb5ca9c5
YM
62232009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6224
6225 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6226 add comment explaining why.
6227
ec7709ba 62282009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6229
ec7709ba 6230 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6231
4b7f335c
AR
62322009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6233
6234 * nsfont.m (ns_attribute_value): Remove.
6235 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6236 (ns_has_attribute): Shrink the normal range.
6237 (ns_findfonts): Don't worry about requested spec in determining
6238 need for synthItal.
e41820ee 6239 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6240
73b26103
SZ
62412009-06-14 Seiji Zenitani <zenitani@mac.com>
6242
6243 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6244
5753e4da
KH
62452009-06-11 Kenichi Handa <handa@m17n.org>
6246
6247 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6248 overhang for the static composition case.
6249
3561b671
KH
62502009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6251
5753e4da
KH
6252 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6253 overhang for the automatic composition case.
6254
3561b671
KH
6255 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6256 composition case.
6257
852bbd41
CY
62582009-06-10 Chong Yidong <cyd@stupidchicken.com>
6259
6260 * xdisp.c (get_next_display_element): When handling wrap-prefix
6261 and line-prefix, treat \n as a control character (bug#3502).
6262
9903d1e6
KH
62632009-06-10 Kenichi Handa <handa@m17n.org>
6264
6265 * font.c (font_parse_family_registry): Fix for one-char foundry.
6266 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6267
0bcbaaaa
CY
62682009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6269
6270 * process.c (status_message): Fix handling of multibyte signal
6271 string (Bug#3499).
6272
40aa3f13
JM
62732009-06-09 Jim Meyering <meyering@redhat.com>
6274
1f80c7e2
CY
6275 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6276 color name is missing.
40aa3f13 6277
72d51285
KH
62782009-06-09 Kenichi Handa <handa@m17n.org>
6279
6280 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6281 FROM-CODE and TO-CODE are codepoints of CHARSET.
6282
c1d04d84
AR
62832009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6284
6285 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6286
62872009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6288
6289 Changes to support :script/:lang/:otf in NS font driver.
6290 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6291 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6292 indicate not part of font driver interface, and change callers.
6293 (ns_get_family): Remove pointless null check.
6294 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6295 ns_spec_to_descriptor, ns_descriptor_to_entity.
6296 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6297 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6298 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6299 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6300 (ns_get_req_script, ns_accumulate_script_ranges)
6301 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6302 New functions.
6303 (nsfont_list, nsfont_match): Use ns_findfonts.
6304 (nsfont_open): Use font descriptor instead of traits.
6305 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6306 (dump_glyphstring): Rename to ns_dump_glyphstring.
6307
c7eb9816
AR
6308 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6309
c1d04d84
AR
6310 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6311
6312 * fontset.c (fontset_from_font): Remove NS-specific code.
6313
ec7709ba 63142009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6315
6316 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6317 nonactive windows.
6318
31fd7c5c 63192009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6320
1ac9108a 6321 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6322
68852c13 63232009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6324
6325 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6326
6756cd1d
CY
63272009-06-07 Chong Yidong <cyd@stupidchicken.com>
6328
6329 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6330 account for the overflowing of newlines into the last glyph on the
6331 display line (Bug#3482).
6332
28bf482a
DR
63332009-06-05 David Reitter <david.reitter@gmail.com>
6334
ec7709ba
JB
6335 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6336 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6337 Fns_selection_exists_p, Fns_selection_owner_p.
6338
fdb55376
JR
63392009-06-03 Jason Rumney <jasonr@gnu.org>
6340
6341 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6342 available. (Bug#3379)
6343
05129fbe
KH
63442009-05-29 Kenichi Handa <handa@m17n.org>
6345
1ac9108a
SM
6346 * coding.c (get_translation_table):
6347 Check Venable_character_translation.
05129fbe 6348
ec7709ba 63492009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6350
ec7709ba
JB
6351 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6352 (x_make_frame_visible): Move frame to front rather than calling
15891144 6353 ns_raise_frame().
ec7709ba 6354 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6355 isn't key window.
ec7709ba 6356 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6357 drawRect may be called by NSView even if the frame is hidden.
6358
ec7709ba
JB
6359 * nsfns.m (Fx_create_frame): Follow other ports in
6360 determining visibility; default to t. Ensure async_visible is set.
15891144 6361
21f73755
EZ
63622009-05-23 Eli Zaretskii <eliz@gnu.org>
6363
6364 * dired.c (Ffile_attributes): Doc fix.
6365
34001e41
CY
63662009-05-22 Chong Yidong <cyd@stupidchicken.com>
6367
6368 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6369
46306a17
SM
63702009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6371
6372 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6373 and xfont_scratch_props.
6374 (syms_of_xfont): Do it here instead.
6375 (xfont_find_ccl_program): Delete, unused.
6376 (xfont_open): Delete unused var `i'.
6377
ef6e0694
KH
63782009-05-21 Kenichi Handa <handa@m17n.org>
6379
6380 * fontset.c (Qlatin): Don't make it static.
6381
46306a17
SM
6382 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6383 New functions.
ef6e0694
KH
6384 (xfont_scripts_cache, xfont_scratch_props): New variables.
6385 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6386 (xfont_list_pattern): Argument changed. Callers changed.
6387 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6388 (xfont_list): Don't reject a font spec with :script property.
6389 (xfont_has_char): Fix setting of encoding.
6390 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6391 xfont_scratch_props.
6392
63932009-05-19 Kenichi Handa <handa@m17n.org>
6394
46306a17 6395 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6396 Callers changed.
6397
63982009-05-18 Kenichi Handa <handa@m17n.org>
6399
6400 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6401
ac71ced7
SM
64022009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6403
6404 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6405 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6406
1c6d1051
YM
64072009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6408
6409 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6410 (x_delete_terminal): Dissociate resource database from display and
6411 then call XrmDestroyDatabase before closing display.
6412
9b9b779c
AR
64132009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6414
6415 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6416 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6417 whether selected frame is viable before raising it (based on patch
6418 by David Reitter), and improve commentary.
6419 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6420
cccd42d5
KH
64212009-05-15 Kenichi Handa <handa@m17n.org>
6422
6423 * font.c (Ffont_spec): Check arguments.
6424
337fbd17
CY
64252009-05-14 Chong Yidong <cyd@stupidchicken.com>
6426
6427 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6428 weight when testing attributes (Bug#3282).
6429
47a6002f
JD
64302009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6431
6432 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6433 what we expect to get in the next ConfigureNotify event.
6434
9cb363db
YM
6435 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6436 before Xft one (Bug#1696).
6437
b9126609
CY
64382009-05-07 David Reitter <david.reitter@gmail.com>
6439
6440 * nsfns.m (Fx_display_planes): Compute bitplanes using
6441 NSBitsPerPixelFromDepth (Bug#3207).
6442
27a69fd9
CY
64432009-05-10 Chong Yidong <cyd@stupidchicken.com>
6444
6445 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6446
00f37552
TTN
64472009-05-10 Ulrich Mueller <ulm@gentoo.org>
6448
6449 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6450
2d82a920
DR
64512009-05-07 David Reitter <david.reitter@gmail.com>
6452
ec7709ba
JB
6453 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6454 Respect mouse face background.
2d82a920 6455
46b0d52d
DR
64562009-05-07 David Reitter <david.reitter@gmail.com>
6457
ec7709ba
JB
6458 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6459 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6460 in ns_update_begin and ns_update_end.
6461
ce1b23bb
SM
64622009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6463
5996e1b7
SM
6464 * nsfns.m (ns_get_screen): Rewrite.
6465 Don't presume selected-frame is of type `ns'.
6466
ba98e3a0
SM
6467 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6468 all drivers.
6469
ce1b23bb
SM
6470 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6471
bcda200f
YM
64722009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6473
6474 * keyboard.h (add_user_signal): Fix typo in extern.
6475
6476 * lisp.h (add_user_signal): Remove extern.
6477
6478 * unexelf.c (unexec): Consider a section to precede the .bss section
6479 if its addresses overlap that of .bss.
6480 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6481 instead of dumping process.
6482
864660a2
SM
64832009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6484
6485 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6486
50da4e56
SM
64872009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6488
6489 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6490
51520a1a
DN
64912009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6492
6493 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6494 any statements.
6495
409ea3a1
AS
64962009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6497
59c4c60f
AS
6498 * process.c (read_process_output): Make sure the current buffer is
6499 always restored.
6500
409ea3a1
AS
6501 * coding.c (record_conversion_result): Don't modify
6502 Vlast_code_conversion_error for successful result.
6503 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6504
56f00ed2
KH
65052009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6506
6507 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6508 (load_charset_map): Remove unnecessary code.
56f00ed2 6509
4491c9d2
DR
65102009-04-30 David Reitter <david.reitter@gmail.com>
6511
35f5b128 6512 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6513 through f24.
6514
6970f632
CY
65152009-04-30 Chong Yidong <cyd@stupidchicken.com>
6516
6517 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6518
6519 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6520 face_at_buffer_position.
6521 (face_before_or_after_it_pos, get_next_display_element)
6522 (note_mouse_highlight): Update face_at_buffer_position call.
6523
6524 * term.c (term_mouse_highlight):
6525 * msdos.c (IT_note_mouse_highlight):
6526 * fontset.c (Finternal_char_font):
35f5b128 6527 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6528
6529 * dispextern.h (face_at_buffer_position): Update prototype.
6530
0c616f63
KH
65312009-04-30 Kenichi Handa <handa@m17n.org>
6532
35f5b128 6533 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6534
ad3aaf33
AS
65352009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6536
6537 * callproc.c (Fcall_process): Fix GC protection. Make sure
6538 current buffer is always restored.
6539
c3c963a0
YM
65402009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6541
6542 * atimer.c (init_atimer): Also clear stopped_atimers.
6543
6544 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6545
7e3386cb
YM
6546 * process.c (create_process): Clean up merger residues of
6547 2008-07-17 change.
6548
91f68422
CY
65492009-04-29 Ulrich Mueller <ulm@gentoo.org>
6550
6551 * lread.c (Vread_circle): New variable.
6552 (read1): Disable recursive read if Vread_circle is nil.
6553
24b34550
KH
65542009-04-29 Kenichi Handa <handa@m17n.org>
6555
6556 * fontset.h (set_default_ascii_font): Delete extern.
6557
6558 * fontset.c (set_default_ascii_font): Delete this unused function.
6559
6560 * frame.c (x_set_font): When ARG is a font-object, check if the
6561 font-object matches with the ASCII font-spec of the frame's
9c358bda 6562 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6563
77bf07e1
AS
65642009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6565
6566 * fns.c (Flocale_info): Protect vector from GC during decoding.
6567
6568 * process.c (Fstart_process): Protect argv strings from GC during
6569 encoding.
6570
2c55aacf
AS
65712009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6572
6573 * sysdep.c: Include <ctype.h>.
6574
b892d3c9
DR
65752009-04-27 David Reitter <david.reitter@gmail.com>
6576
35f5b128 6577 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6578 Remove commented-out code.
6579
9d0644c4
JB
65802009-04-26 Johan Bockgård <bojohan@gnu.org>
6581
6582 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6583
b7053016
JR
65842009-04-25 Jason Rumney <jasonr@gnu.org>
6585
6586 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6587
4e8231f3
YM
65882009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6589
6590 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6591 Swap bytes in short integer if fringe bitmap width > 8.
6592
493dcf2c
KH
65932009-04-23 Kenichi Handa <handa@m17n.org>
6594
6595 * xfaces.c (Fx_list_fonts): If a font size is specified in
6596 PATTERN, set it in returned scalable fonts.
6597
401e9e57
CY
65982009-04-22 Chong Yidong <cyd@stupidchicken.com>
6599
708e05dc
CY
6600 * keyboard.c (Fset_input_meta_mode): Doc fix.
6601
6602 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6603
1ac9108a 6604 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6605
6606 * coding.c (Fterminal_coding_system): Doc fix.
6607
6608 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6609 (Fx_display_pixel_height, Fx_display_planes)
6610 (Fx_display_color_cells, Fx_server_max_request_size)
6611 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6612 (Fx_display_mm_height, Fx_display_mm_width)
6613 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6614 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6615 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6616 (check_x_display_info): Handle terminal objects instead of
6617 terminal ids.
6618
401e9e57
CY
6619 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6620 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6621 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6622 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6623
df80c7f0
KH
66242009-04-21 Kenichi Handa <handa@m17n.org>
6625
5a8f12af 6626 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6627 (font_score): Check AVGWIDTH too.
908567ef 6628
df80c7f0
KH
6629 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6630 worst case.
1ac9108a
SM
6631 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6632 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6633
705af33f
JR
66342009-04-19 Jason Rumney <jasonr@gnu.org>
6635
6636 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6637 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6638
6639 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6640 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6641 get_phys_cursor_geometry.
6642
b71ac3dd 6643 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6644 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6645 using get_phys_cursor_geometry.
6646
6647 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6648 correctly calculated.
6649
dc2933eb
JD
66502009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6651
1ac9108a
SM
6652 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6653 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6654 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6655 is deprecated.
6656
973e7849
AS
66572009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6658
6659 * font.c (font_put_frame_data): Use xfree instead of free.
6660
314d66f4
JB
66612009-04-17 Juanma Barranquero <lekktu@gmail.com>
6662
6663 * w32font.c (Qja, Qko): Remove declarations.
6664 (syms_of_w32font): Don't DEFSYM them.
6665
cf702558
CY
66662009-04-17 Chong Yidong <cyd@stupidchicken.com>
6667
6668 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6669
6670 * font.h (Qja, Qko): Extern them.
6671
6672 * ftfont.c (Qja, Qko): Remove declarations.
6673
6674 * xfont.c (Qja, Qko): Remove declarations.
6675
b50504f5
KH
66762009-04-17 Kenichi Handa <handa@m17n.org>
6677
bde25748
KH
6678 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6679 string from a vector to handle Latin-1 characters correctly.
6680
b50504f5
KH
6681 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6682 entity even if the cache hits.
6683
f4646fff
AS
66842009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6685
6686 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6687 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6688
e7deaab0
AS
6689 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6690 * lisp.h: Adjust prototypes.
6691
0a0e7d49
CY
66922009-04-16 Chong Yidong <cyd@stupidchicken.com>
6693
6694 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6695 change (Bug#3003).
6696
3c908a57
KH
66972009-04-16 Kenichi Handa <handa@m17n.org>
6698
1ac9108a 6699 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6700
6701 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6702 adstyle.
6703
6704 * ftfont.c (Qja, Qko): Don't make them static.
6705 (enum ftfont_cache_for): New enum.
6706 (fc_charset_table): Undo the previous change.
6707 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6708 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6709 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6710 non-scarable font, try to get AVERAGE_WIDTH.
6711 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6712 Change ft_face_cache from a list of a hash-table. Don't check
6713 `ja' and `ko' adstyle here.
6714 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6715 FTFONT_CACHE_FOR_CHARET.
6716 (ftfont_get_charset): Undo the previous change.
1ac9108a 6717 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6718 (ftfont_close): Likewise.
6719 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6720
6721 * font.c (font_sort_entites): Change the meaning of the arg
6722 BEST-ONLY. Don't optimize for VEC of lenght 1.
6723 (font_select_entity): Just return the value of font_sort_entites.
6724
6725 * xfaces.c (merge_face_vectors): Reflect font properties in
6726 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6727 font_clear_prop if a face attribute doesn't change.
6728
3c908a57
KH
6729 * charset.h (charset_ksc5601): Extern it.
6730
6731 * charset.c (charset_ksc5601): New variable.
6732 (Fdefine_charset_internal): Set charset_ksc5601.
6733 (init_charset_once): Initialize charset_ksc5601 to -1.
6734
d65859c3
DN
67352009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6736
6737 * fileio.c (history_delete_duplicates): Remove unused declaration.
6738
6739 * callint.c (history_delete_duplicates): New declaration.
6740 (Fcall_interactively): Remove command history duplicates when
6741 history_delete_duplicates is true.
6742
3ba010e5
EZ
67432009-04-14 Eli Zaretskii <eliz@gnu.org>
6744
6745 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6746
06f19b91
KH
67472009-04-14 Kenichi Handa <handa@m17n.org>
6748
6749 * font.c (Ffont_info): Fix docstring. Fix the second element of
6750 the returned value (bug#2949).
6751
2cce8bfc
CY
67522009-04-14 Chong Yidong <cyd@stupidchicken.com>
6753
6754 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6755
d156542d
KH
67562009-04-14 Kenichi Handa <handa@m17n.org>
6757
6758 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6759 encoding charset is ascii_compatible.
6760
6761 * charset.c (Fdefine_charset_internal): Make charset
6762 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6763 code_offset is 0, and covers all ASCII characters.
6764
86fa089e
SM
67652009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6766
6767 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6768 (ns_string_to_pasteboard_internal):
6769 * nsmenu.m (process_dialog):
6770 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6771 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6772 * lisp.h (Fx_load_color_file): Declare.
6773
a8a3728b
KH
67742009-04-13 Kenichi Handa <handa@m17n.org>
6775
1ac9108a 6776 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6777 (font_select_entity): Suppress the code to optimize for the same
6778 kind of fonts.
6779 (font_load_for_lface): Get a font that supports at least ASCII
6780 characters.
6781
6782 * ftfont.c (Qja, Qko): New variables.
6783 (fc_charset_table): Delete uniquifier data for iso8859-1.
6784 (ftfont_get_latin1_charset): New function.
6785 (get_adstyle_property): New function.
6786 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6787 bitmap fonts.
6788 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6789 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6790 `ko' or `ja'.
6791 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6792 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6793 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6794 property.
6795 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6796 (syms_of_ftfont): DEFSYM Qja and Qko.
6797
483670b5
KH
67982009-04-09 Kenichi Handa <handa@m17n.org>
6799
12b55765
KH
6800 * charset.c (map_charset_chars): For a charset of `superset'
6801 method, fix calculation of code range.
6802
483670b5
KH
6803 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6804 from the list of extra properties.
6805 (font_clear_prop): Be sure to delete `:name' font property.
6806
57d3b93b
KH
68072009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6808
b4b2c2ca
YM
6809 * dispnew.c (redraw_overlapping_rows): Fix detection of
6810 overlapping for topmost and bottommost rows.
6811
1ac9108a 6812 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6813
472c3609
JR
68142009-04-06 Jason Rumney <jasonr@gnu.org>
6815
6816 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6817
ab193662
KH
68182009-04-06 Kenichi Handa <handa@m17n.org>
6819
6820 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6821
6822 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6823
0c26f026
KH
68242009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6825
6826 * ftfont.c (ftfont_open): Fix checking of the return value of
6827 FT_Load_Char. Fix setting font->underline_thickness.
6828
e173bbce
CY
68292009-04-04 Chong Yidong <cyd@stupidchicken.com>
6830
6831 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6832 (Fterminal_parameters, Fterminal_parameter)
6833 (Fset_terminal_parameter): In doc string, refer to terminal
6834 objects rather than terminal ids.
6835
693a2698
EZ
68362009-04-04 Eli Zaretskii <eliz@gnu.org>
6837
6838 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6839 ret_lim_data. (Bug#2867)
6840
d5221487
CY
68412009-04-03 Chong Yidong <cyd@stupidchicken.com>
6842
6843 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6844 so they don't get wider than the window, matching 2006-01-23
6845 change to the partner function in xdisp.c (Bug#2800).
6846
223509a3
KH
68472009-04-03 Kenichi Handa <handa@m17n.org>
6848
6849 * print.c (print_object): Make each lowest sub_char_table start a
6850 new line (Bug#2866).
6851
74fcd0b1
KH
68522009-04-02 Kenichi Handa <handa@m17n.org>
6853
6854 * fontset.c (fontset_font): Record no-font when a fontset
6855 explicitly tells not to try another font-specs.
6856
c542407d
SM
68572009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6858
6859 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6860
e3869731
KH
68612009-03-30 Kenichi Handa <handa@m17n.org>
6862
d8d2f142
KH
6863 * fontset.c (fontset_from_font): Specify only registry in a
6864 font-spec for all characters supported by that registry.
6865
e3869731
KH
6866 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6867 even if HAVE_M17N_FLT is not defined.
6868
5da5f805
CY
68692009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6870
6871 * ftfont.c: Conditionalize prototyping and use of
6872 ftfont_variation_glyphs.
6873
ab226c50
SM
68742009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6875
9628fed7
SM
6876 * frame.c (delete_frame): Work around compiler bug.
6877
6878 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6879 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6880 Some more EMACS_INT.
6881 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6882
6883 * xdisp.c (dump_glyph): Fix typo.
6884
ae19ba7c
SM
6885 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6886 (adjust_markers_gap_motion, adjust_markers_for_delete)
6887 (adjust_markers_for_insert, adjust_point)
6888 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6889 (make_gap, copy_text, count_size_as_multibyte, insert)
6890 (insert_and_inherit, insert_before_markers)
6891 (insert_before_markers_and_inherit, insert_1)
6892 (count_combining_before, count_combining_after, insert_1_both)
6893 (insert_from_string, insert_from_string_before_markers)
6894 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6895 (insert_from_buffer_1, adjust_after_replace)
6896 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6897 (replace_range_2, del_range, del_range_1, del_range_byte)
6898 (del_range_both, del_range_2, modify_region)
6899 (prepare_to_modify_buffer, signal_before_change)
6900 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6901 for buffer positions and sizes.
6902 * lisp.h: Adjust prototypes accordingly.
6903
6904 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6905 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6906 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6907
ab226c50
SM
6908 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6909
46dfb8fb
JD
69102009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6911
6912 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6913 lines and columns so we keep the same pixel height and width.
6914
6915 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6916 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6917 (x_handle_net_wm_state): New function to update frame parameter
6918 fullscreen.
6919 (x_term_init): Initialize atoms for _NET_WM_STATE.
6920
6921 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6922
d347e494
SM
69232009-03-27 Kevin Ryde <user42@zip.com.au>
6924
6925 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6926 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6927 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6928 (Fgpm_mouse_stop): Pass that new parameter.
6929 * termhooks.h (close_gpm): Adjust prototype.
6930
84db11d6
SM
69312009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6932
c95a5008
SM
6933 * lisp.h (Fx_focus_frame): Declare.
6934
84db11d6
SM
6935 * callint.c (Fcall_interactively): For '^' just delegate the work to
6936 handle-shift-selection.
6937 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6938
0a1958d6
CY
69392009-03-24 Chong Yidong <cyd@stupidchicken.com>
6940
0bfdff23
CY
6941 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6942
0a1958d6
CY
6943 * data.c (Qinteractive_form): New variable.
6944 (Finteractive_form): Use it.
6945
6946 * eval.c (Fcommandp): Use Qinteractive_form.
6947
58aec0d6
JR
69482009-03-24 Jason Rumney <jasonr@gnu.org>
6949
6950 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6951 Calculate total size precisely. Decode environment variables
6952 before substituting. (Bug#38)
6953
553dd618
KH
69542009-03-24 Kenichi Handa <handa@m17n.org>
6955
6956 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6957 encoding (Bug#2722).
553dd618 6958
c39ea606
JD
69592009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6960
6961 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6962 that gdpy is set.
6963
bc9b2b5e
AM
69642009-03-22 Alan Mackenzie <acm@muc.de>
6965
6966 * callint.c (Finteractive): Clarify the doc string - even
6967 promptless elements need \n separators.
6968
9f995a76
JR
69692009-03-22 Jason Rumney <jasonr@gnu.org>
6970
6971 * w32term.c (syms_of_w32term): Doc fix for
6972 x-use-underline-position-properties.
6973
22749e9a
EZ
69742009-03-21 Eli Zaretskii <eliz@gnu.org>
6975
6976 * w32.c (getpwuid): Change argument type to unsigned.
6977 (struct w32_id): Change type of `rid' member to unsigned.
6978 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6979 argument ID to unsigned. All callers changed.
6980 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6981
e00553bf
EZ
69822009-03-20 Eli Zaretskii <eliz@gnu.org>
6983
6984 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6985 negative, produce a float value.
6986
6987 * dired.c (make_uid, make_gid): New functions.
6988 (Ffile_attributes): Use them to avoid negative UID and GID.
6989
f761d6b6
JB
69902009-03-20 Juanma Barranquero <lekktu@gmail.com>
6991
6992 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6993 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6994 Fix typos in docstrings.
6995
d507f8d7
KH
69962009-03-19 Kenichi Handa <handa@m17n.org>
6997
6998 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6999 changed, use font_load_for_lface to get a new font object.
7000 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7001
7002 * frame.c (x_set_font): Handle the case that ARG is a cons.
7003
c68845e0
GM
70042009-03-19 Glenn Morris <rgm@gnu.org>
7005
7006 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7007
bfa49dd1
CY
70082009-03-19 Chong Yidong <cyd@stupidchicken.com>
7009
7010 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7011
8458d4c1
KH
70122009-03-19 Kenichi Handa <handa@m17n.org>
7013
7014 * charset.c (load_charset_map_from_file): When a mapfile can't be
7015 loaded, signal an error.
7016
78e7d1fe
EZ
70172009-03-18 Eli Zaretskii <eliz@gnu.org>
7018
7019 * dired.c (Ffile_attributes): Make sure UID and GID are always
7020 positive, even if the value is too large for a positive EMACS_INT.
7021 Doc fix.
7022
7023 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7024
5da9fdfa
YM
70252009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7026
7027 * xmenu.c (xdialog_show): Move Fredisplay call ...
7028 (Fx_popup_dialog): ... here.
7029
7519c40d
SM
70302009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7031
7032 * dired.c (file_name_completion): Disable the first optimization just
7033 installed, since it is not implemented correctly.
7034
2cd298e2
SM
70352009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7036
7037 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7038 only if the entry can affect bestmatch.
2cd298e2
SM
7039 Stop the search early, as Ftry_completion already does.
7040
48d37adf
CY
70412009-03-17 Chong Yidong <cyd@stupidchicken.com>
7042
e10c9c93 7043 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7044
9286b16a
CY
70452009-03-15 Chong Yidong <cyd@stupidchicken.com>
7046
7047 * keyboard.c (parse_menu_item): Don't display remappings as menu
7048 equivalent bindings (Bug#788).
7049
f7b146dc
JR
70502009-03-15 Jason Rumney <jasonr@gnu.org>
7051
7052 * w32term.h (WM_EMACS_PAINT): New message.
7053 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7054 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7055 before passing to lisp thread. (Bug#950)
7056
f761d6b6 70572009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7058
d93f9575
CY
7059 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7060 variable as it was never reset.
7061 (ns_term_init): Remove initialization of Lisp-settable defaults
7062 and ns_expand_space.
7063 (-setPanelFromDefaultValues): Remove ns_expand_space.
7064 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7065 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7066 i.e. no additional spacing, similar to Carbon port.
7067
d93f9575
CY
7068 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7069 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7070
305018ec
JD
70712009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7072
7073 * sound.c (alsa_configure): Remove call to deprecated
7074 snd_pcm_sw_params_set_xfer_align.
7075
f761d6b6 70762009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7077
7078 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7079 after clicking in a detached tool bar.
7080 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7081
46e722a9
SM
70822009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7083
348db3dd
SM
7084 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7085 int/Lisp_Object mixup).
46e722a9 7086
a3d16f39
KH
70872009-03-13 Kenichi Handa <handa@m17n.org>
7088
7089 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7090 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7091 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7092 (set_fontset_font): Change ARG to a vector. Handle range_list in
7093 ARG correctly.
7094 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7095 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7096 the above change.
7097 (fontset_from_font): Fix previous change.
fe24f56a 7098 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7099 entry. If FONTSET is the default fontset, don't set the extra
7100 slot of the returning char-table.
7101
b066e6b6
JB
71022009-03-12 Juanma Barranquero <lekktu@gmail.com>
7103
7104 * nsfns.m (Fx_close_connection): Doc fix.
7105 (Fns_do_applescript): Reflow docstring.
7106 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7107 (Fx_display_pixel_width, Fx_display_pixel_height)
7108 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7109 Fix typos in docstrings.
7110 (Fns_set_alpha): Fix typos in error messages.
7111
d472514e 71122009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7113
d472514e 7114 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7115 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7116 were used for such events.
7117
d472514e
JB
7118 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7119 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7120
d472514e 7121 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7122 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7123
fb930676
KH
71242009-03-11 Kenichi Handa <handa@m17n.org>
7125
ff85581a
KH
7126 * font.h (font_open_by_spec): Extern it.
7127
c50b7e98
KH
7128 * font.c (font_open_by_spec): New function.
7129 (font_open_by_name): Use font_open_by_spec.
7130
fb930676
KH
7131 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7132 fontset of the frame.
7133
7134 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7135 modify the default font of frames that use this fontset.
7136 (num_auto_fontsets): New variable.
7137 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7138 name. Be sure to set FONTSET_ASCII to the correct font name.
7139 (update_auto_fontset_alist): New function.
7140
df4e8455
JB
71412009-03-11 Juanma Barranquero <lekktu@gmail.com>
7142
7143 * makefile.w32-in: Update dependencies.
7144
0a375797
AR
71452009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7146
7147 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7148
61313fa3
SM
71492009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7150
7151 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7152
b55103fb
CY
71532009-03-10 Chong Yidong <cyd@stupidchicken.com>
7154
7155 * lread.c (Feval_buffer): Doc fix.
7156
dde2559c
KH
71572009-03-09 Kenichi Handa <handa@m17n.org>
7158
7159 * charset.c (Qfile_name_handler_alist): Extern it.
7160 (load_charset_map_from_file): Temporarily bind
7161 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7162
df4e8455 71632009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7164
47f588bb
GM
7165 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7166 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7167
4ddf94bd
AR
71682009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7169
4c9bdfc2
AR
7170 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7171 (x_set_window_size): Change back to calculated method of setting
7172 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7173 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7174 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7175
fe41ae9e
AR
7176 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7177
4c9bdfc2
AR
7178 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7179 accelerator in parens under GNUstep.
7180
825d0875
KH
71812009-03-06 Kenichi Handa <handa@m17n.org>
7182
7183 These changes are to detect incorrect composition sequence without
f3b3be74 7184 looking ahead the source. (Bug#2370)
825d0875
KH
7185
7186 * coding.h: Include "composite.h".
7187 (enum compisition_state): New enum.
7188 (struct compisition_status): New struct.
7189 (struct iso_2022_spec): New member cmp_status.
7190 (struct emacs_mule_spec): New struct.
7191 (struct coding_system): New members ctext_extended_segment_len and
7192 embedded_utf_8. Change the union member
7193 spec.emacs_mule_full_support to spec.emacs_mule.
7194
7195 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7196 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7197 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7198 (ADD_COMPOSITION_DATA): New arg nbytes.
7199 (emacs_mule_char): New arg cmp_status.
7200 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7201 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7202 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7203 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7204 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7205 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7206 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7207 (EMACS_MULE_COMPOSITION_END): New macro.
7208 (emacs_mule_finish_composition): New function.
7209 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7210 (decode_coding_emacs_mule): Avoid long looking ahead while
7211 handling composition.
7212 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7213 (ENCODE_COMPOSITION_RULE): New macro.
7214 (finish_composition): New function.
7215 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7216 (DECODE_COMPOSITION_START): New implementation.
7217 (DECODE_COMPOSITION_END): Likewise.
7218 (STORE_COMPOSITION_RULE): New macro.
7219 (decode_coding_iso_2022): Avoid long looking ahead while handling
7220 composition, CTEXT extended segment, and embedded UTF-8.
7221 (setup_coding_system): For a coding of type iso-2022, reset
7222 CODING_ISO_EXTSEGMENT_LEN (coding) and
7223 CODING_ISO_EMBEDDED_UTF_8 (coding).
7224 (get_translation): Delete arguments last_block, from_nchars,
7225 to_nchars. Callers changed.
7226 (produce_chars): Don't modify charbuf. Adjusted for the change of
7227 get_translation.
98a326f7 7228 (produce_composition): Adjust for the new annotation sequence.
825d0875 7229 (handle_composition_annotation): Likewise.
98a326f7 7230 (consume_chars): Adjust for the change of get_translation.
825d0875 7231
ccbc4452
AR
72322009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7233
4ddf94bd 7234 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7235
988a7ddb
KH
72362009-03-05 Kenichi Handa <handa@m17n.org>
7237
7238 * font.c (font_select_entity): New function.
7239 (font_find_for_lface): Use font_select_entity to select a font.
7240
7241 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7242 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7243 font with C restriction.
7244
98a326f7 72452009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7246
be1bce46 7247 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7248
10ea2b82
JR
72492009-03-04 Jason Rumney <jasonr@gnu.org>
7250
2c93b248 7251 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7252 characters that have already been read. (Bug#2569)
2c93b248 7253
10ea2b82
JR
7254 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7255 Log an error message if check_image_size failed.
7256 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7257 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7258
71a0c011
EZ
72592009-03-02 Eli Zaretskii <eliz@gnu.org>
7260
7261 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7262 when decoding process output.
7263
2f63bba8
RS
72642009-03-01 Richard M Stallman <rms@gnu.org>
7265
7266 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7267
7268 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7269
0a9564cb
EZ
72702009-02-28 Eli Zaretskii <eliz@gnu.org>
7271
7272 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7273 (decode_coding_emacs_mule, decode_coding_iso_2022)
7274 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7275 (decode_coding_raw_text, decode_coding_charset)
7276 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7277 Honor inhibit-eol-conversion. (Bug #2186)
7278
449148b3
JR
72792009-02-28 Jason Rumney <jasonr@gnu.org>
7280
7281 * coding.c (detect_coding_charset): If not checking latin extra,
7282 fail on characters between 0x80 and 0xA0. (Bug#2354)
7283
a4aee864
EZ
72842009-02-28 Eli Zaretskii <eliz@gnu.org>
7285
7286 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7287 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7288
d88bee5a
GM
72892009-02-27 Glenn Morris <rgm@gnu.org>
7290
7291 * callint.c (Finteractive): Doc fix.
7292
a808f22d
KH
72932009-02-27 Kenichi Handa <handa@m17n.org>
7294
7295 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7296
caf8d60c
CY
72972009-02-27 Chong Yidong <cyd@stupidchicken.com>
7298
7299 * font.c (font_style_to_value): Set value for unknown symbols to
7300 100 instead of 255.
b61137ea
CY
7301 (weight_table, slant_table, width_table): Treat "unspecified" as
7302 the default value.
caf8d60c 7303
1a0de25c
JB
73042009-02-26 Juanma Barranquero <lekktu@gmail.com>
7305
7306 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7307
8fc45744
JB
73082009-02-25 Juanma Barranquero <lekktu@gmail.com>
7309
107bd7d1
JB
7310 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7311 error as soon as a recursive load is detected.
8fc45744 7312
f097e223
AR
73132009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7314
7315 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7316 before caching.
7317
8810a12f
KH
73182009-02-24 Kenichi Handa <handa@m17n.org>
7319
7320 * fontset.c (fontset_find_font): Fix the condition for checking
7321 unavailable font.
7322
2c7d1565
GM
73232009-02-24 Glenn Morris <rgm@gnu.org>
7324
7325 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7326 whitespace that confuses documentation.
7327
a20878b6
MB
73282009-02-23 Miles Bader <miles@gnu.org>
7329
7330 * process.c (Flist_system_processes, Fprocess_attributes)
7331 (syms_of_process): Rename `system-process-attributes' to
7332 `process-attributes'.
7333
b3b58c01
AS
73342009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7335
1b3b981b
AS
7336 * coding.h (struct coding_system): Make safe_charsets a pointer to
7337 unsigned char.
7338 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7339 being 255.
7340 (SAFE_CHARSET_P): Likewise.
7341 (setup_iso_safe_charsets): Properly setup safe_charsets.
7342 (Fdefine_coding_system_internal): Likewise.
7343 (setup_coding_system): Likewise. Remove unneeded casts.
7344 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7345 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7346 unneeded casts.
7347
b3b58c01
AS
7348 * insdel.c (del_range_2): Don't modify gap contents when called
7349 from decode_coding_object. (Bug#1809)
7350
0b6f228c
CY
73512009-02-21 Chong Yidong <cyd@stupidchicken.com>
7352
7353 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7354 Qfont_object.
7355 (Ftype_of): Recognize font objects.
7356
7357 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7358
7359 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7360 moved to data.c.
7361
52f8870b
AR
73622009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7363
7364 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7365 async_iconified. Based on a patch by Christian Lynbech
7366 <christian.lynbech@tieto.com>.
7367 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7368
7087d5e9
GM
73692009-02-20 Glenn Morris <rgm@gnu.org>
7370
7371 * syntax.c (Fskip_chars_forward): Fix doc typo.
7372
41d2ceef
CY
73732009-02-20 Chong Yidong <cyd@stupidchicken.com>
7374
7375 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7376
1a3b7ca6
CY
73772009-02-19 Chong Yidong <cyd@stupidchicken.com>
7378
7379 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7380
73cce38d
KH
73812009-02-19 Kenichi Handa <handa@m17n.org>
7382
7383 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7384 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7385
a51092ee
DN
73862009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7387
7388 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7389
c423ecca
KH
73902009-02-18 Kenichi Handa <handa@m17n.org>
7391
7392 * font.c (font_check_otf_features): Fix handling of `nil' element.
7393 (Ffont_spec): Describe :lang and :otf in the docstring.
7394
4c1958f4
AS
73952009-02-16 Andreas Schwab <schwab@suse.de>
7396
7397 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7398 string.
7399
5704f39a
KH
74002009-02-16 Kenichi Handa <handa@m17n.org>
7401
7402 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7403 (Bug#1723)
5704f39a 7404
8f0085aa
CY
74052009-02-14 Chong Yidong <cyd@stupidchicken.com>
7406
a057d86a 7407 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7408
7409 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7410 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7411
aff01dd9
EZ
74122009-02-14 Eli Zaretskii <eliz@gnu.org>
7413
7414 * msdos.c (MAX_SCREEN_BUF): New macro.
7415 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7416 Encode the entire run of glyphs sharing the same face, instead of
7417 doing that one glyph at a time (fixes a bug with displaying
7418 double-size characters).
7419
ba301db3
AR
74202009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7421
7422 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7423
7424 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7425 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7426 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7427
7428 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7429 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7430
51d861de
SM
74312009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7432
ac146f82 7433 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7434 invisible areas.
7435
7fed8996
JR
74362009-02-12 Jason Rumney <jasonr@gnu.org>
7437
631ea4fb
JR
7438 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7439 (add_font_entity_to_list): Call check_face_name even when family
7440 is unspecified.
7441
cb4a3e42
JR
7442 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7443 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7444 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7445
7fed8996 7446 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7447 raster fonts. (Bug#2219)
7fed8996 7448
895416e3
KH
74492009-02-12 Kenichi Handa <handa@m17n.org>
7450
7451 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7452 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7453 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7454 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7455 (find_automatic_composition): While looking forward and backward,
7456 check static composition. Fix where to stop looking forward.
7457 (composition_adjust_point): Fix checking of static composition.
7458 (Fcomposition_get_gstring): Pay attention to
1dacf998 7459 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7460
7461 * lisp.h (fast_looking_at): Extern it.
7462
7463 * search.c (fast_looking_at): New function.
7464
51d861de 7465 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7466 <struct glyph>.u.cmp.to.
7467 (append_composite_glyph): Likewise.
7468
51d861de 7469 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7470 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7471 composition.
51d861de 7472 (append_composite_glyph): Adjust for the change of
895416e3
KH
7473 <strcut glyph>.u.cmp.to.
7474
8510724d
JB
74752009-02-11 Juanma Barranquero <lekktu@gmail.com>
7476
7477 * casetab.c (init_casetab_once):
7478 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7479 * font.c (font_update_lface):
7480 * fontset.c (Fnew_fontset):
7481 * ftfont.c (ftfont_drive_otf):
7482 * xfont.c (xfont_open):
7483 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7484
294fa707
SM
74852009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7486
7487 * fileio.c (Fwrite_region): !NILP -> CONSP.
7488
b5bfebec
AS
74892009-02-10 Andreas Schwab <schwab@suse.de>
7490
7491 * process.c (send_process): Properly relocate pointer into data
adab88bd 7492 when using encoded data. (Bug#2272)
b5bfebec 7493
cb84a2be
KH
74942009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7495
7496 * coding.c (detect_coding_charset): Fix previous change.
7497
89e09428
JR
74982009-02-08 Jason Rumney <jasonr@gnu.org>
7499
7500 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7501 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7502
4470a277
AS
75032009-02-07 Andreas Schwab <schwab@suse.de>
7504
7505 * unexelf.c (unexec): Fix error message.
7506
3175b12a
AR
75072009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7508
7509 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7510 when modal window is active. (Bug #2152)
3175b12a
AR
7511 (applicationShouldTerminate:): Remove now-unneeded while loop
7512 around NSRunAlertPanel.
7513
7514 * nsmenu.m (popupSession): New file-global variable.
7515 (pop_down_menu): End the popupSession before closing dialog.
7516 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7517 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7518 don't query NSApp for events (just sleep instead).
7519
8434d0b8
EZ
75202009-02-07 Eli Zaretskii <eliz@gnu.org>
7521
51d861de
SM
7522 * coding.c (syms_of_coding) <translation-table-for-input>:
7523 Modify doc string to discourage use for character code unification.
8434d0b8 7524
aa82edfd
CY
75252009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7526
7527 * atimer.c (run_timers): Update pending_atimers.
7528
2d283c7c
CY
75292009-02-06 Chong Yidong <cyd@stupidchicken.com>
7530
eb306cab
CY
7531 * image.c (svg_load_image): Fix last change.
7532
2d283c7c
CY
7533 * xfns.c (Fx_create_frame): Signal an error if no font is
7534 found (Bug#2147).
7535
4d8e170e
JB
75362009-02-05 Juanma Barranquero <lekktu@gmail.com>
7537
7538 * character.c (syms_of_character) <script-representative-chars>:
7539 Fix typo in docstring.
7540
c96169a0
AR
75412009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7542
7543 * nsmenu.m (pop_down_menu): New function.
7544 (ns_popup_dialog): Call it on unwind.
7545 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7546 call timer_check() (Bug#2154).
7547 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7548 handling_signal is set.
7549 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7550
31fd7c5c 7551 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7552
7553 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7554
7555 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7556
51d861de
SM
7557 * keyboard.c (poll_for_input_1, handle_async_input):
7558 Set handling_signal under HAVE_NS.
c96169a0 7559
aacd8ba1
GM
75602009-02-04 Glenn Morris <rgm@gnu.org>
7561
7562 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7563
4cb75c4b
KH
75642009-02-04 Kenichi Handa <handa@m17n.org>
7565
7566 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7567
7568 * charset.c (Fchar_charset): New optional arg restriction.
7569
7570 * coding.h (coding_system_charset_list): Extern it.
7571
7572 * coding.c (coding_system_charset_list): New function.
7573
7574 * composite.c: Include coding.h and termhooks.h.
7575 (composition_gstring_p): Fix for the terminal case.
7576 (composition_gstring_width): Likewise.
7577 (fill_gstring_body): Likewise.
7578 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7579 the frame.
7580 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7581 is within a composition.
867d4bb3 7582 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7583
7584 * term.c (encode_terminal_code): Fix handling of composition.
7585 (produce_composite_glyph): For static composition, get pixel_width
7586 from struct composition.
7587
826ba17e
AS
75882009-02-02 Andreas Schwab <schwab@suse.de>
7589
7590 * unexelf.c (unexec): Handle unaligned bss offset.
7591
8ad093db
AR
75922009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7593
7594 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7595 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7596
8ad093db
AR
7597 * keyboard.c (handle_interrupt): Don't call
7598 quit_throw_to_read_char() under NS.
d0a76a6e 7599
8ad093db
AR
7600 * blockinput.h: Remove NS-specific code.
7601
4d18a7a2
DN
76022009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7603
db878925
DN
7604 * dispnew.c (window_change_signal): Don't try to get the size of a
7605 suspended tty frame.
7606 * term.c (Fresume_tty): Resize if the size has changed while the
7607 tty was suspended.
7608
4d18a7a2
DN
7609 * alloc.c (mark_stack): Properly conditionalize previous change.
7610
8984df7c
JB
76112009-01-30 Juanma Barranquero <lekktu@gmail.com>
7612
7613 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7614 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7615 Remove; this code is not used on Windows.
7616
75f4f1ac
EZ
76172009-01-30 Eli Zaretskii <eliz@gnu.org>
7618
7619 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7620 EOLs that also has stray ^M characters.
7621
07a1e794
JB
76222009-01-30 Juanma Barranquero <lekktu@gmail.com>
7623
7624 * atimer.c (run_timers, alarm_signal_handler):
7625 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7626 * w32inevt.c (w32_console_read_socket):
7627 * w32term.c (w32_read_socket):
7628 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7629
a8b11cc9
CY
76302009-01-30 Chong Yidong <cyd@stupidchicken.com>
7631
7632 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7633 Initialize it as a relative filename pattern.
7634 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7635 (Fcall_process_region): Simplify temp file creation using
7636 temporary-file-directory.
7637
c279587b
EZ
76382009-01-29 Eli Zaretskii <eliz@gnu.org>
7639
7640 * msdos.c: Rename pending_signals to msdos_pending_signals.
7641 (sig_suspender, sigprocmask): Adjust.
7642
a8fe3242
CY
76432009-01-29 Chong Yidong <cyd@stupidchicken.com>
7644
7645 * keyboard.c (pending_signals): New var.
7646 (poll_for_input, input_available_signal, init_keyboard): Set it.
7647 (process_pending_signals): New function.
7648
7649 * lisp.h (QUIT): Check pending_signals instead of
7650 interrupt_input_pending. Use process_pending_signals.
7651
51d861de 7652 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7653
51d861de 7654 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7655
7656 * sysdep.c (emacs_write): Use process_pending_signals.
7657
7658 * xterm.c (XTread_socket): Update pending_signals.
7659
7660 * w32term.c (w32_read_socket): Update pending_signals.
7661
7662 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7663
6570a1c4
KH
76642009-01-29 Kenichi Handa <handa@m17n.org>
7665
7666 * xftfont.c (xftfont_has_char): New function.
7667 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7668
d72a4afa
AR
76692009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7670
7671 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7672 under GNUstep.
7673 (ns_query_color): New declaration.
7674
7675 * nsterm.m (ns_confirm_quit): New variable.
7676 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7677 (EmacsApp-applicationShouldTerminate:): Use it.
7678 (EmacsPrefsController): Let user set it.
7679 (ns_query_color): New function.
7680 (ns_defined_color): Use it.
7681 (ns_initialize): Drop.
7682 (ns_term_init): Add two lines from ns_initialize(), and set
7683 input_interrupt_mode to nil.
7684
7685 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7686 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7687
9fe78804
KH
76882009-01-28 Kenichi Handa <handa@m17n.org>
7689
7690 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7691 (fontset_get_font_group): Remember that no font-group is specified
7692 for C.
9fe78804 7693
fa57de36
CY
76942009-01-27 Chong Yidong <cyd@stupidchicken.com>
7695
930600e9
CY
7696 * fns.c (concat): Check for string overflow (bug#1787).
7697
fa57de36
CY
7698 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7699 Quadruple undo limits (bug#1501).
7700
7179ce7b
KH
77012009-01-27 Kenichi Handa <handa@m17n.org>
7702
7703 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7704 directly use GT_Get_Char_index.
7705
7706 * xftfont.c (struct xftfont_info): New member `index'.
7707
7708 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7709 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7710
5be8fcc0
CY
77112009-01-26 Kenichi Handa <handa@m17n.org>
7712
7713 * fontset.c (fontset_find_font): Fix handling of non-cons return
7714 value of fontset_get_font_group.
7715 (fontset_font): Revert last change.
7716
19ae3e61
JR
77172009-01-26 Jason Rumney <jasonr@gnu.org>
7718
7719 * w32font.c (w32font_list_internal): Return quickly if registry is
7720 unknown. Simplify final return.
7721 (add_font_entity_to_list): Break complex logic down into more
7722 manageable chunks. Move unknown registry check to
7723 w32font_list_internal.
7724
8612b71a
AR
77252009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7726
7727 Changes to remove Feval calls from GUI under NS.
7728
d8038940
JB
7729 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7730 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7731 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7732
7733 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7734 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7735 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7736 instead of NON_ASCII_KEYSTROKE_EVENT.
7737 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7738 (EmacsApp-applicationShouldTerminate:): Query user.
7739 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7740 instead of Feval.
7741
7742 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7743
7744 * keyboard.c (kbd_buffer_get_event): Check for it.
7745 (keys_of_keyboard): Define lispy keys for
7746 ns-put/unput-working-text.
7747
7748 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7749 versions.
7750 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7751
6288ae55
CY
77522009-01-25 Chong Yidong <cyd@stupidchicken.com>
7753
7754 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7755 setting current_buffer directly. (Bug#2044)
6288ae55 7756
289e7f8f
CY
77572009-01-24 Chong Yidong <cyd@stupidchicken.com>
7758
5ce87308 7759 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7760 any work. (Bug#1952, bug#1990).
5ce87308 7761
64cc3cf6 7762 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7763
b3243e6f
AR
77642009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7765
7766 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7767 (ns_no_defaults): New declaration.
7768 (main): Use it.
e0d2e69a 7769
d900b2af 7770 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7771
d900b2af 7772 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7773
d900b2af
AR
7774 * nsterm.m (ns_no_defaults): New variable.
7775 (ns_initialize): Don't read defaults when ns_no_defaults.
7776 (EmacsView-readSelectionFromPasteboard:)
7777 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7778 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7779 (ns_dumpglyphs_stretch): New function.
7780 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7781 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7782
e0d2e69a
AR
7783 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7784
3ac71f5d
CY
77852009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7786
7787 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7788 call for Sparc64.
7789
3fe53a83
AR
77902009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7791
7792 * nsfns.m:
7793 * nsgui.h:
7794 * nsmenu.m:
7795 * nsselect.m:
7796 * nsterm.h:
7797 * nsterm.m: Remove '23' comments that indicated code added during
7798 update from emacs-20 -> emacs-23.
7799
10f87c6f 78002009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7801
7802 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7803 ns_alternate_modifier. (Bug#1217)
a3b53a85 7804
c7cef62d
AR
7805 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7806 Display all shortcuts, including those w/o super modifier.
7807
575fb8bd
AR
7808 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7809
918b848b
CY
78102009-01-22 Chong Yidong <cyd@stupidchicken.com>
7811
7812 * fileio.c (Vwrite_region_post_annotation_function)
7813 (Vwrite_region_annotation_buffers): New vars.
7814 (build_annotations_unwind): Just reset
7815 Vwrite_region_annotation_buffers.
7816 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7817 Call write-region-post-annotation-function.
7818 (build_annotations): Add to Vwrite_region_annotation_buffers if
7819 buffer changes.
7820
a39e2539
AR
78212009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7822
7823 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7824 Tiger.
51d861de
SM
7825 * nsfns.m (ns_do_applescript):
7826 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7827
35ed44db
AR
78282009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7829
7830 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7831
cbe0b5bf
AR
78322009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7833
7834 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7835
6049d3a0
AR
7836 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7837
7838 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7839 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7840 handle Ctrl-tab. (Bug#1841)
7841 (ns_get_color): Use unsigned long long for scanned hex string value.
7842 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7843 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7844 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7845 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7846 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7847 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7848 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7849
d3810c21 7850 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7851 DPI. (Bug#1316)
d3810c21
AR
7852 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7853 values in onTiger section.
4c7077c3 7854
e301e634
CY
78552009-01-19 Chong Yidong <cyd@stupidchicken.com>
7856
7f82490b
CY
7857 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7858 Check return value of font_spec_from_name.
64cc3cf6 7859 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7860
7861 * font.c (font_spec_from_name): Return Qnil if font name could not
7862 be parsed.
7863 (font_parse_name): Treat a `?' character as part of an XLFD.
7864
e301e634
CY
7865 * fns.c (Fsubstring): Doc fix.
7866
1c0db158
KH
78672009-01-19 Kenichi Handa <handa@m17n.org>
7868
51d861de 7869 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7870 (ftfont_list): Likewise.
7871
acf20901
JB
78722009-01-18 Juanma Barranquero <lekktu@gmail.com>
7873
fff4e459
JB
7874 * dbusbind.c (Fdbus_register_signal):
7875 * process.c (conv_sockaddr_to_lisp):
7876 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7877
acf20901
JB
7878 * callproc.c (Fgetenv_internal): Doc fix.
7879
e7abcdfb
CY
78802009-01-16 Chong Yidong <cyd@stupidchicken.com>
7881
7882 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7883 it is not even used.
7884
b60861e6
GM
78852009-01-16 Glenn Morris <rgm@gnu.org>
7886
7887 * font.c (Ffont_variation_glyphs): Silence compiler.
7888
8db52afe
JB
78892009-01-15 Juanma Barranquero <lekktu@gmail.com>
7890
7891 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7892 Reported by David Robinow <drobinow@gmail.com>.
7893
4cddb209
KH
78942009-01-15 Kenichi Handa <handa@m17n.org>
7895
51d861de 7896 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7897
f247f67b
JR
78982009-01-14 Jason Rumney <jasonr@gnu.org>
7899
7900 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7901 never a fontset. (Bug#1562)
f247f67b 7902
f56a4450
KH
79032009-01-14 Kenichi Handa <handa@m17n.org>
7904
7905 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7906 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7907
4e99855e
CY
79082009-01-13 Chong Yidong <cyd@stupidchicken.com>
7909
7910 * font.c (font_clear_prop): If clearing the family, clear the font
7911 width index too.
7912
fff4e459 7913 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7914
24f01470
JB
79152009-01-12 Juanma Barranquero <lekktu@gmail.com>
7916
7917 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7918 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7919 functions, use sizeof.
7920
a41240a3
MR
79212009-01-12 Martin Rudalics <rudalics@gmx.at>
7922
7923 * keyboard.c (read_char): Fix case where last_nonmenu_event
7924 returned a bad value with submenus. (Bug#447)
7925
944636b8
CY
79262009-01-12 Chong Yidong <cyd@stupidchicken.com>
7927
7928 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7929 family, clear the font width index too.
7930
0dad7c6f
JR
79312009-01-11 Jason Rumney <jasonr@gnu.org>
7932
7933 * keyboard.c (cmd_error_internal): Exit when errors occur before
7934 frame creation and not in daemon mode. (Bug#1836)
7935
7c2363af
CY
79362009-01-10 Chong Yidong <cyd@stupidchicken.com>
7937
7938 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7939 of a display vector, backtrack.
7940 (try_window_reusing_current_matrix): Check glyph type before
7941 referencing charpos member.
7942
97b1b294
EZ
79432009-01-10 Eli Zaretskii <eliz@gnu.org>
7944
7945 Fix Bug #876:
7946
7947 * coding.c (inhibit_null_byte_detection): New variable.
7948 (detect_coding, detect_coding_system): Don't pay attention to null
7949 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7950 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7951 <inhibit-iso-escape-detection>: Doc fix.
7952
4624b6e3
JR
79532009-01-09 Jason Rumney <jasonr@gnu.org>
7954
7955 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7956 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7957 Only report Unicode Plane 2 fonts as unicode-sip.
7958
323b840c
CY
79592009-01-09 Chong Yidong <cyd@stupidchicken.com>
7960
51d861de
SM
7961 * xfaces.c (Fx_font_family_list): Delete function.
7962 Move compatibility version to faces.el.
323b840c 7963
51d861de 7964 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7965
eba7400d
MR
79662009-01-09 Martin Rudalics <rudalics@gmx.at>
7967
7968 * frame.c (x_set_frame_parameters): Remember requested value for
7969 fullscreen before it's reset by the parameter handler.
7970
4b09796d
GM
79712009-01-09 Glenn Morris <rgm@gnu.org>
7972
7973 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7974 (last_command_event): ... and update all users.
4b09796d
GM
7975 (last_input_char): For clarity, rename to...
7976 (last_input_event): ... and update all users.
7977 (last-command-char, last-input-char): Move to subr.el as aliases.
7978 * cmds.c, commands.h: Update for last_command_char rename.
7979
14ccea62
CY
79802009-01-08 Chong Yidong <cyd@stupidchicken.com>
7981
51d861de 7982 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7983
5f004711
JR
79842009-01-08 Jason Rumney <jasonr@gnu.org>
7985
7986 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7987 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7988 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7989 Don't declare.
fff4e459 7990 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7991 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7992
b71f6f73
KH
79932009-01-07 Kenichi Handa <handa@m17n.org>
7994
50b06221 7995 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7996 remember the coding system used for decoding in
50b06221
KH
7997 coding_system (Bug#1039).
7998
b71f6f73 7999 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8000 breaking the loop. (Bug#870)
b71f6f73
KH
8001 (decode_coding_utf_16, decode_coding_emacs_mule)
8002 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8003 (decode_coding_charset): Likewise.
8004
56f668f7
MR
80052009-01-05 Martin Rudalics <rudalics@gmx.at>
8006
8007 * frame.c (x_set_frame_parameters): Make sure height (width) get
8008 applied when fullwidth (fullheight) is set. (Bug#1522)
8009
5da9424d
JB
80102009-01-04 Juanma Barranquero <lekktu@gmail.com>
8011
8012 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8013 (utc_base): Declare as ULONGLONG, not long double.
8014 (convert_time_raw): Delete.
8015 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8016 (initialize_utc_base): New function.
8017 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8018 (convert_from_time_t): Use initialize_utc_base; compute result with
8019 64-bit arithmetic.
8020 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8021
c4605e09
EZ
80222009-01-03 Eli Zaretskii <eliz@gnu.org>
8023
9acef61c 8024 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8025 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8026 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8027 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8028 [!subprocesses]: Define.
8029 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8030 (Flist_system_processes, Fsystem_process_attributes)
8031 [!subprocesses]: Call list_system_processes and
8032 system_process_attributes instead of returning Qnil.
8033
9acef61c
JB
8034 * dosfns.c (system_process_attributes, list_system_processes):
8035 New functions.
c4605e09
EZ
8036
8037 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8038
8039 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8040 Don't use the default (no-op) implementation.
8041
8b7d0a16
JR
80422009-01-03 Jason Rumney <jasonr@gnu.org>
8043
a6d46bc1
JR
8044 * keyboard.c (parse_modifiers_uncached): Wheel events are
8045 clicks (bug#687).
8046
8b7d0a16
JR
8047 * w32term.c (x_query_colors, x_query_color): New functions.
8048
8049 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8050 (svg_load_image): Cast returned pointers from dynamically loaded
8051 functions. Eliminate W32 specific code.
8052
bfe11752
DN
80532009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8054
89e2438a
DN
8055 * nsfns.m (x_set_foreground_color, x_set_background_color)
8056 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8057 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8058 x_ prefix instead of ns_. Update references.
8059 (syms_of_nsfns): Add a FIXME comment.
8060
8061 * nsterm.m (x_set_cursor_type): New prototype.
8062 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8063
bfe11752
DN
8064 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8065 for Solaris instead of incorrectly providing Qutime and Qcutime.
8066
031da700
EZ
80672009-01-02 Eli Zaretskii <eliz@gnu.org>
8068
8069 * w32.c (process_times): Compute sum of utime and stime.
8070 (system_process_attributes): Add Qtime to the alist.
8071
8072 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8073 and add them to the alist.
8074
8075 * process.c (top level) <Qtime, Qctime>: New variables.
8076 (syms_of_process): staticpro them.
8077 (Fsystem_process_attributes): Add their documentation to the doc
8078 string.
8079
8080 * process.h: Declare Qtime and Qctime.
8081
df23bf08
JR
80822009-01-02 Jason Rumney <jasonr@gnu.org>
8083
9acef61c 8084 * image.c (Qgobject): New symbol.
df23bf08
JR
8085 (syms_of_image): Initialize it.
8086 (init_svg_functions): Load some functions from gobject library.
8087
5bbdf7aa
DN
80882009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8089
8090 * frame.c (make_terminal_frame): Remove redundant code and useless
8091 block.
8092
63136da6
AS
80932009-01-01 Andreas Schwab <schwab@suse.de>
8094
8095 * process.c (conv_sockaddr_to_lisp): Add workaround for
8096 getsockname bug on BSD.
8097
9ef69046
CY
80982009-01-01 Chong Yidong <cyd@stupidchicken.com>
8099
d6fafbe0
CY
8100 * xfns.c (x_create_tip_frame): Set border width of the X window.
8101
51d861de 8102 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8103
f9c34147
JR
81042009-01-01 Jason Rumney <jasonr@gnu.org>
8105
9acef61c 8106 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8107 Don't block input, as per earlier xterm.c changes.
8108
f5497e45
AR
81092008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8110
8111 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8112 (ns_appkit_version_int): New function.
8113 (x-server-version): Use ns_appkit_version_int and follow 21+
8114 convention of returning 3 integers.
8115
c19cab20
KH
81162008-12-30 Kenichi Handa <handa@m17n.org>
8117
8118 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8119 (CHAR_SURROGATE_PAIR_P): New macro.
8120
8121 * font.h (struct font_driver): New member get_variation_glyphs.
8122
9acef61c 8123 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8124 (Ffont_variation_glyphs): New function.
8125 (syms_of_font): Defsubr it.
8126
8127 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8128 ftfont_variation_glyphs.
8129 (setup_otf_gstring): New function.
8130 (ftfont_drive_otf): Use it.
8131 (ftfont_shape_by_flt): Handle variation selector.
8132 (ftfont_variation_glyphs): New function.
8133
28cd591f
MR
81342008-12-30 Martin Rudalics <rudalics@gmx.at>
8135
8136 * frame.c (Vemacs_iconified): Remove.
8137
7f714baf
JR
81382008-12-30 Jason Rumney <jasonr@gnu.org>
8139
8140 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8141 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8142
9d2d22ab
CY
81432008-12-30 Chong Yidong <cyd@stupidchicken.com>
8144
8145 * indent.c (Fvertical_motion): Don't advance iterator if we have
8146 reseated to the desired position.
8147
8148 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8149 checking for pos match.
8150
545312c2
KH
81512008-12-30 Kenichi Handa <handa@m17n.org>
8152
1ede3eb6
KH
8153 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8154 just get the low 8-bit of the code.
8155
545312c2
KH
8156 * font.c (font_intern_prop): Validate str as multibyte.
8157
bd7bbf29
DN
81582008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8159
31e0750e
DN
8160 * dispextern.h (struct face): Move lface and hash from the middle
8161 of bitfields.
8162
bd7bbf29
DN
8163 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8164
b5672e7c
DN
81652008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8166
8167 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8168 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8169 instead of intervals.h.
8170
d704470f
AS
81712008-12-26 Andreas Schwab <schwab@suse.de>
8172
8173 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8174 cons.
8175
54b33868
MR
81762008-12-26 Martin Rudalics <rudalics@gmx.at>
8177
8178 * textprop.c (Qminibuffer_prompt): New variable.
8179 (syms_of_textprop): Initialize it.
8180 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8181 in minibuffer-prompt face. (Bug#1662)
8182
40b615d6
JR
81832008-12-25 Jason Rumney <jasonr@gnu.org>
8184
8185 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8186
baae5c2d
JR
81872008-12-24 Jason Rumney <jasonr@gnu.org>
8188
8189 * ralloc.c (r_alloc_reset_variable): New function.
8190
8191 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8192 record of what points where. (Bug#716)
baae5c2d 8193
a9051c88
DN
81942008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8195
8196 * minibuf.c (read_minibuf): Follow the non-interactive case when
8197 running as a daemon, before detaching.
8198
8b146312
AS
81992008-12-22 Andreas Schwab <schwab@suse.de>
8200
8201 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8202 * gtkutil.c (free_widget_value): Use xfree instead of free.
8203
56f2de10
MR
82042008-12-22 Martin Rudalics <rudalics@gmx.at>
8205
8206 * frame.c (delete_frame): New function derived from
8207 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8208 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8209 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8210 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8211 * frame.h: Extern delete_frame.
8212 * window.c (window_loop):
8213 * terminal.c (delete_terminal):
8214 * xterm.c (x_connection_closed):
8215 * xfns.c (Fx_hide_tip):
9acef61c 8216 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8217
1fc200d6
JR
82182008-12-21 Jason Rumney <jasonr@gnu.org>
8219
8220 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8221 when character maps to .notdef character.
8222
5e252df2
SM
82232008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8224
8225 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8226
99b72cc4
JR
82272008-12-20 Jason Rumney <jasonr@gnu.org>
8228
8229 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8230 a graphical frame on Windows. (Bug#1325)
99b72cc4 8231
acc49a52
JD
82322008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8233
8234 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8235
6ea15123
CY
82362008-12-20 Chong Yidong <cyd@stupidchicken.com>
8237
8238 * minibuf.c (Fread_buffer): Doc fix.
8239
b2dab6c8
JR
82402008-12-20 Jason Rumney <jasonr@gnu.org>
8241
54ea0c87 8242 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8243 server name in UNC paths. (Bug#719)
54ea0c87 8244
b2dab6c8 8245 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8246 charbuf. (Bug#1035)
b2dab6c8 8247
6d1921be
DN
82482008-12-19 Daniel Engeler <engeler@gmail.com>
8249
8250 * sysdep.c (serial_configure): Fix typo.
8251
53934c98
DN
82522008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8253
8254 * sysdep.c: Include alloca.h.
f4f634e8
DN
8255 (system_process_attributes): Add implementation for Solaris.
8256
8257 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8258
06e111a6
DN
82592008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8260
8261 Reorganize implementation of Flist_system_processes and
8262 Fsystem_process_attributes. No functional changes.
8263 * process.c: Don't #include pwd.h, grp.h and limits.h.
8264 (Flist_system_processes): Just call list_system_processes.
8265 (Fsystem_process_attributes): Just call system_process_attributes.
8266 (procfs_list_system_processes, time_from_jiffies)
8267 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8268 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8269
8270 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8271 (list_system_processes): Rename from
8272 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8273 Provide a do nothing implementation.
8274 (system_process_attributes): Rename from
8275 procfs_list_system_processes.
8276 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8277 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8278
8279 * w32.c (list_system_processes): Rename from
8280 w32_list_system_processes.
8281 (system_process_attributes): Rename from
8282 w32_system_process_attributes.
8283
8284 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8285
8286 * process.h (w32_list_system_processes)
8287 (w32_system_process_attributes): Remove.
362654a6
JB
8288 (list_system_processes, system_process_attributes):
8289 New prototypes.
06e111a6 8290
6a705b23
KH
82912008-12-19 Kenichi Handa <handa@m17n.org>
8292
8293 * xfont.c (xfont_decode_coding_xlfd): New function.
8294 (xfont_encode_coding_xlfd): New function.
8295 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8296 (xfont_list): Decode and encode XLFD by iso-8859-1.
8297 (xfont_match): Likewise.
8298 (xfont_list_family): Likewise.
8299 (xfont_open): Likewise.
8300
d66c0241 8301 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8302 names are utf-8.
8303
d66c0241 8304 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8305 names are utf-8.
8306
5a130941
JD
83072008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8308
8309 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8310 changed.
bfd20325
JD
8311 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8312 clicked on a detached tool bar button.
5a130941 8313
fd95644b
DN
83142008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8315
8316 * emacs.c (main): Print and error and exit when no data is read
8317 from the pipe.
8318
e6eee6ae
JR
83192008-12-17 Jason Rumney <jasonr@gnu.org>
8320
8321 * w32font.c (w32font_has_char): Always return -1.
8322
a35dd56b
KH
83232008-12-16 Kenichi Handa <handa@m17n.org>
8324
8325 * font.c (font_open_entity): Fix previous change.
8326
0e3635c2
DN
83272008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8328
8329 * process.c: Include <limits.h>.
8330
d4835507 83312008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8332
8333 * font.c (font_update_drivers): Fix mistake in reconstructing the
8334 driver list.
8335
83362008-12-16 Chong Yidong <cyd@stupidchicken.com>
8337
8338 * font.c (font_clear_cache): Fix format of font cache data.
8339
e2cbc401
CY
83402008-12-15 Chong Yidong <cyd@stupidchicken.com>
8341
8342 * xftfont.c (xftfont_open): Free Xft font pattern if
8343 XftFontOpenPattern fails.
8344
8345 * xterm.c (x_free_frame_resources): Remove extraneous call to
8346 free_frame_faces.
8347
b131d535
CY
83482008-12-13 Chong Yidong <cyd@stupidchicken.com>
8349
8350 * xterm.c (x_delete_display): Move xim_close_dpy call to
8351 x_delete_terminal.
8352 (x_delete_terminal): Call xim_close_dpy.
8353
e6df5336
JR
83542008-12-13 Jason Rumney <jasonr@gnu.org>
8355
8356 * w32font.c (intern_font_name): New function.
8357 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8358 (w32font_open_internal, Fx_select_font): Decode font name.
8359 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8360
8361 * w32font.h (intern_font_name): Declare new function.
8362
8363 * w32uniscribe.c (add_opentype_font_name_to_list):
8364 Use intern_font_name.
8365
20d68145
CY
83662008-12-13 Chong Yidong <cyd@stupidchicken.com>
8367
9f2554de
CY
8368 * frame.c (Fdelete_frame): Call free_font_driver_list.
8369
3d9bec9a
CY
8370 * font.c (free_font_driver_list): Implement missing function.
8371
20d68145
CY
8372 * w32term.c (w32_term_init): Don't initialize the image cache
8373 here; it will be done in init_frame_faces.
8374
8375 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8376 (struct x_display_info): Remove unused member null_pixel. New
8377 member xim_callback_data.
8378
8379 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8380 (xim_initialize): Save pointer to callback function data.
8381 (xim_close_dpy): Free callback function data. Call XCloseIM,
8382 reverting 2008-11-04 change by David Smith.
8383 (x_term_init): Don't initialize the image cache here; it will be
8384 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8385 (x_delete_display): Free x_dnd_atoms member.
8386
96f9306b
KH
83872008-12-13 Kenichi Handa <handa@m17n.org>
8388
6dec9044
JB
8389 * font.c (font_rescale_ratio): Moved from xfaces.c.
8390 Argument type changed. Handle a font-spec too.
96f9306b 8391 (font_score): Check Vface_font_rescale_alist.
6dec9044 8392 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8393
8394 * xfaces.c (font_rescale_ratio): Moved to font.c.
8395
8d5b4964
CY
83962008-12-13 Chong Yidong <cyd@stupidchicken.com>
8397
8398 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8399
e6df5336
JR
84002008-12-12 Jason Rumney <jasonr@gnu.org>
8401
8402 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8403 Vwindow_system_version to the real w32 major version.
8404
97c6058a
DN
84052008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8406
8407 * term.c (init_tty): Move setting the terminal name before the
8408 potential user: maybe_fatal.
8409
ec4e88d7
CY
84102008-12-11 Chong Yidong <cyd@stupidchicken.com>
8411
d4835507
JB
8412 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8413 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8414
b4233ec9
JR
84152008-12-11 Jason Rumney <jasonr@gnu.org>
8416
8ec71e23 8417 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8418 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8419
b4233ec9 8420 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8421 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8422
011a0143
JB
84232008-12-11 Juanma Barranquero <lekktu@gmail.com>
8424
8425 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8426
3c309f34
JB
84272008-12-11 Juanma Barranquero <lekktu@gmail.com>
8428
8429 * process.c (Fsystem_process_attributes, syms_of_process):
8430 Fix typo in name of Ssystem_process_attributes.
8431 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8432
fedc6ab5
JB
84332008-12-11 Juanma Barranquero <lekktu@gmail.com>
8434
8435 * syntax.c (Fmodify_syntax_entry): Doc fix.
8436
ba3de0e8
JB
84372008-12-10 Juanma Barranquero <lekktu@gmail.com>
8438
8439 * font.c (Ffont_spec): Move usage to end of docstring.
8440
174f1c74
JR
84412008-12-10 Jason Rumney <jasonr@gnu.org>
8442
8443 * w32font.c (Qcham): New symbol.
8444 (font_supported_scripts): Add cham, and comments for other new
8445 scripts in bitfield from OpenType spec.
9d32f818
JR
8446 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8447 contain characters beyond the bmp.
174f1c74 8448
7b649478
KH
84492008-12-10 Kenichi Handa <handa@m17n.org>
8450
8451 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8452 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8453 Qunicode_sip.
8454
2133e2d1
JB
84552008-12-10 Juanma Barranquero <lekktu@gmail.com>
8456
8457 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8458 (Fcoding_system_put): Use QCdefault_char.
8459 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8460
9af886ee
CY
84612008-12-09 Chong Yidong <cyd@stupidchicken.com>
8462
74d819eb
CY
8463 * xftfont.c (syms_of_xftfont): Fix typo.
8464
4ccfa1c0 8465 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8466
7c19d3ae
DN
84672008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8468
8469 * emacs.c (main): Close daemon_pipe on exec.
8470
567826bb
CY
84712008-12-08 Chong Yidong <cyd@stupidchicken.com>
8472
8473 * termchar.h (struct tty): New members termcap_term_buffer and
8474 termcap_strings_buffer.
8475
8476 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8477 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8478 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8479 All callers changed.
8480 (init_tty): Store termcap data and string buffers in new struct
8481 tty members termcap_term_buffer and termcap_strings_buffer.
8482 (delete_tty): Free them.
4ccfa1c0 8483 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8484
aa96c42b
SZ
84852008-12-07 Seiji Zenitani <zenitani@mac.com>
8486
8487 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8488 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8489
b7e1d896
CY
84902008-12-06 Chong Yidong <cyd@stupidchicken.com>
8491
8492 * coding.c (make_conversion_work_buffer): Disable buffer
8493 modification hooks in the work buffer.
8494
b5ec91a5
EZ
84952008-12-05 Eli Zaretskii <eliz@gnu.org>
8496
8497 * process.c (procfs_system_process_attributes): If `nread' has a
8498 negative value, assign zero to it.
8499
a5d2a52b
CY
85002008-12-05 Chong Yidong <cyd@stupidchicken.com>
8501
68c5540b 8502 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8503
7bf1bb21
KH
85042008-12-05 Kenichi Handa <handa@m17n.org>
8505
8506 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8507 second character is a combining character.
8508
2fdc7d00
EZ
85092008-12-05 Eli Zaretskii <eliz@gnu.org>
8510
8511 * process.c (procfs_system_process_attributes): Don't use cmd,
8512 cmdsize, and q without initializing them first.
8513
bf6bfba8
JR
85142008-12-04 Jason Rumney <jasonr@gnu.org>
8515
8516 * w32font.c (w32font_draw): Initialize orig_clip before getting
8517 it, and delete it when finished.
8518
a3b1a468
DN
85192008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8520
8521 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8522 case when running as a daemon before detaching.
8523
8b8be8eb
JB
85242008-12-03 Juanma Barranquero <lekktu@gmail.com>
8525
805f2638 8526 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8527
b1bde622
KH
85282008-12-03 Kenichi Handa <handa@m17n.org>
8529
e500c47d
KH
8530 * font.c (font_at): Set `multibyte' at first.
8531
ca516334
KH
8532 * coding.c (decode_coding_charset): Check type of an element of
8533 vector VALIDS.
7bf1bb21 8534 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8535
4ccfa1c0 8536 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8537 (font_for_char): Likewise.
8538
1e5ecd37
CY
85392008-12-03 Chong Yidong <cyd@stupidchicken.com>
8540
d5b01609 8541 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8542 (font_update_lface): Handle fonts with corrupted size specs,
8543 i.e. non-int and non-float.
d5b01609 8544
11e3a6e4 8545 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8546 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8547 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8548
ab06788b
CY
8549 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8550
1e5ecd37 8551 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8552 underline_minimum_offset for underline position.
1e5ecd37 8553
63c125ab
DN
85542008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8555
8556 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8557
8558 * character.c (c_string_width): Specify the type for LEN.
8559
3a8406e1
KH
85602008-12-03 Kenichi Handa <handa@m17n.org>
8561
4ccfa1c0 8562 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8563 (decode_coding_utf_8): Likewise.
4ccfa1c0 8564 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8565 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8566
651df7d9
CY
85672008-12-02 Chong Yidong <cyd@stupidchicken.com>
8568
8569 * keyboard.c (make_lispy_position): Only use PT if the selected
8570 window is current.
8571
1f625c6c
AS
85722008-12-02 Andreas Schwab <schwab@suse.de>
8573
f7741ce9
AS
8574 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8575
1f625c6c
AS
8576 * doprnt.c (doprnt1): Fix size of charbuf.
8577
92bc2678
CY
85782008-12-02 Chong Yidong <cyd@stupidchicken.com>
8579
8580 * keyboard.c (timer_check): Revert last change.
8581
93b9e8cc
JB
85822008-12-02 Juanma Barranquero <lekktu@gmail.com>
8583
8584 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8585
fd7a37d5
JB
85862008-12-01 Juanma Barranquero <lekktu@gmail.com>
8587
8588 * makefile.w32-in: Update dependencies.
8589 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8590
c115043b
AS
85912008-12-01 Andreas Schwab <schwab@suse.de>
8592
8593 * font.c (register_font_driver): Use xmalloc.
8594 (font_put_frame_data): Likewise.
8595
f5668d2a
CY
85962008-12-01 Chong Yidong <cyd@stupidchicken.com>
8597
860d96be
CY
8598 * xfaces.c (realize_x_face): Make abort condition clearer.
8599
f5668d2a
CY
8600 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8601
379c17e7
CY
86022008-11-30 Chong Yidong <cyd@stupidchicken.com>
8603
8604 * keyboard.c (timer_check): After a timer runs, ensure that the
8605 selected window's buffer is current.
8606
35f36d65
JB
86072008-11-30 Juanma Barranquero <lekktu@gmail.com>
8608
f952c61c
JB
8609 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8610 It was accidentally restored by the Unicode merge.
8611
35f36d65
JB
8612 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8613
b23077df
JB
86142008-11-29 Juanma Barranquero <lekktu@gmail.com>
8615
8616 * w32proc.c: Include "coding.h".
8617 (Fw32_short_file_name): Encode filename passed to Windows API.
8618 (Fw32_long_file_name): Encode filename passed to Windows API and
8619 decode back the result. (Bug#1433)
8620
b8ebe9dd
KH
86212008-11-29 Kenichi Handa <handa@m17n.org>
8622
8cc53f96
KH
8623 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8624 not before accessing it.
8625
b8ebe9dd
KH
8626 * charset.c (Fdefine_charset_internal): After calculating
8627 min_char, max_char, and fastmap, copy the charset structure again.
8628 (encode_char): Fix the previous change.
8629
59bc82c0
SZ
86302008-11-28 Seiji Zenitani <zenitani@mac.com>
8631
8632 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8633
8634 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8635
8636 * nsterm.m (x_set_frame_alpha): New function.
8637
32247e3d
EZ
86382008-11-27 Eli Zaretskii <eliz@gnu.org>
8639
8640 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8641
b003e5ff
JB
86422008-11-27 Juanma Barranquero <lekktu@gmail.com>
8643
8644 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8645 pointer to check_face_name.
8646
708550f5
KH
86472008-11-27 Kenichi Handa <handa@m17n.org>
8648
8649 * category.h (SET_CATEGORY_SET): Call set_category_set.
8650 (set_category_set): Extern it.
8651
8652 * category.c (hash_get_category_set): New function.
8653 (Fmodify_category_entry): Adjusted for the change of
8654 char_table_ref_and_range. Call hash_get_category_set to get a
8655 category set to store in the table.
8656
8657 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8658 Funify_charset.
8659
2ae37cf0 8660 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8661 (DECODE_CHAR): Check if the decoder vector is ready.
8662 (ENCODE_CHAR): Check if the encoder char-table is ready.
8663 (maybe_unify_char): Extern it.
8664
8665 * charset.c (Vchar_unified_charset_table): Delete it.
8666 (inhibit_load_charset_map): New variable.
8667 (temp_charset_work): New variable.
8668 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8669 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8670 New macros.
8671 (load_charset_map): Meaning of control_flag changed. If
8672 inhibit_load_charset_map is nonzero, setup a table in
8673 temp_charset_work.
8674 (load_charset): New argument control_flag.
8675 (map_charset_for_dump): New function.
8676 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8677 map_charset_for_dump.
8678 (Fdefine_charset_internal): If the charset method is MAP, load
8679 mapping tables by calling load_charset.
8680 (Funify_charset): Don't load a mapping table but directly set
8681 Vchar_unify_table.
8682 (maybe_unify_char): New function.
8683 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8684 Handle the case of inhibit_load_charset_map being nonzero.
8685 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8686 Handle the case of inhibit_load_charset_map being nonzero.
8687 (Fclear_charset_maps): Just free temp_charset_work.
8688 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8689 variable.
8690
8691 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8692 change of char_table_ref_and_range.
8693 (char_table_ref_and_range): Change the meaning of argument FROM
8694 and TO. Now the caller must provide initial values for *FROM
8695 and *TO.
8696
8697 * fontset.c (fontset_add): Adjusted for the change of
8698 char_table_ref_and_range.
8699 (fontset_get_font_group): Likewise.
8700 (Ffontset_info): Likewise.
8701
8702 * keymap.c (describe_vector): Adjusted for the change of
8703 char_table_ref_and_range. For char-table, put boundary between
8704 non-ASCII and 8-bit characters.
8705
8706 * print.c (print_object): For bool-vector, delete unnecessary
8707 check of ASCII_BYTE_P.
8708
9196133b
JR
87092008-11-26 Jason Rumney <jasonr@gnu.org>
8710
8711 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8712 leading in font height. (Bug#879)
9196133b 8713
9f688acf
GM
87142008-11-26 Glenn Morris <rgm@gnu.org>
8715
8716 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8717 redefinition with ifdef. (Bug#1383)
8718
90d19aff
AR
87192008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8720
8721 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8722
4ccfa1c0 87232008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8724
8725 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8726 New EmacsView methods.
8727 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8728 Fixes bug #1048,1357,1414.
8729
87302008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8731
8732 Fix bug #1362.
8733 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8734 is not an indexed color.
8735 * nsterm.m (free_indexed_color): Add argument checking.
8736 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8737
e7d5ecb3
CY
87382008-11-24 Chong Yidong <cyd@stupidchicken.com>
8739
8740 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8741 Document confirm-after-completion value for
8742 minibuffer-completion-confirm.
8743
c285743c
JR
87442008-11-24 Jason Rumney <jasonr@gnu.org>
8745
8746 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8747 warning.
8748
b0857706
JR
87492008-11-23 Jason Rumney <jasonr@gnu.org>
8750
8751 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8752 restored before returning.
8753
8754 * w32font.c (check_face_name): New function.
8755 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8756 fonts. (Bug#642)
b0857706 8757
ee50ff07
MR
87582008-11-22 Martin Rudalics <rudalics@gmx.at>
8759
8760 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8761 confirm-nonexistent-file-or-buffer in doc-string.
8762
b8ff72fa
SM
87632008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8764
8765 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8766 Fix copy/paste typo. Add checks.
8767
cee53ed4
KH
87682008-11-21 Kenichi Handa <handa@m17n.org>
8769
8770 * coding.c (detect_coding_iso_2022): Reject invalid composition
8771 sequence.
8772 (DECODE_COMPOSITION_START): If the current source is the last
8773 block, and the current composition doesn't end, regard this
8774 sequence as invalid.
8775 (decode_coding_iso_2022): Handle invalid composition sequence.
8776
f6ef1e65
MR
87772008-11-20 Martin Rudalics <rudalics@gmx.at>
8778
8779 * window.c (coordinates_in_window): Don't return
8780 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8781 line when the window is not the rightmost one. (Bug#1372)
8782
e08b1705
MR
87832008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8784
8785 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8786
ad98e89f
EZ
87872008-11-15 Eli Zaretskii <eliz@gnu.org>
8788
8789 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8790 and bright_bg if noninteractive is non-zero.
8791
fb098a4b
CY
87922008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8793
8794 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8795 x_draw_glyph_string_background.
8796
8797 * w32term.c (x_draw_glyph_string): Likewise.
8798
ce952b6e
CY
87992008-11-15 Chong Yidong <cyd@stupidchicken.com>
8800
8801 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8802 the next glyph string once past the overhang width.
8803
8804 * nsterm.m (ns_draw_glyph_string): Likewise.
8805
8806 * w32term.c (x_draw_glyph_string): Likewise.
8807
26ea7079
CY
88082008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8809
8810 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8811 double file close.
8812
1c33c906
MR
88132008-11-14 Martin Rudalics <rudalics@gmx.at>
8814
8815 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8816 dedicated status of window before attempting to display another
8817 buffer in it.
8818
8fc29035
JB
88192008-11-14 Juanma Barranquero <lekktu@gmail.com>
8820
8821 * msdos.c (Fmsdos_long_file_names):
8822 (syms_of_msdos) <dos-unsupported-char-glyph>:
8823 * dosfns.c (Fint86): Fix typos in docstrings.
8824
55fb4286
EZ
88252008-11-14 Eli Zaretskii <eliz@gnu.org>
8826
8827 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8828
3fda0315
KY
88292008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8830
8831 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8832
7e849c17
CY
88332008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8834
8835 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8836
8837 * frame.h: Negative alpha means "don't touch".
8838
8839 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8840
8841 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8842
b9fd67bd
DN
88432008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8844
8845 * hftctl.c:
8846 * chpdef.h:
8847 * acldef.h: Remove files used only for systems no longer supported.
8848
8849 * Makefile.in: Fix .o alphabetical ordering.
8850 (hftctl.o): Remove dependency, file removed.
8851 (keymap.o, print.o): Depend on charset.h.
8852
d5998e03
KH
88532008-11-10 Kenichi Handa <handa@m17n.org>
8854
2ae37cf0 8855 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8856
be70e183
CY
88572008-11-08 Chong Yidong <cyd@stupidchicken.com>
8858
8859 * dired.c (file_name_completion): If completion_ignore_case is
8860 enabled, ignore case when checking completion-regexp-list.
8861
7cf94eac
EZ
88622008-11-08 Eli Zaretskii <eliz@gnu.org>
8863
8864 * vm-limit.c (get_lim_data): Fix last change.
8865
ee107a89
KH
88662008-11-08 Kenichi Handa <handa@m17n.org>
8867
8868 * character.c (Fget_byte): New function.
8869 (syms_of_character): Defsubr Fget_byte.
8870
5fd15622
CY
88712008-11-07 Chong Yidong <cyd@stupidchicken.com>
8872
8873 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8874 cursor position is valid after scrolling.
8875
13d62fad
JB
88762008-11-06 Juanma Barranquero <lekktu@gmail.com>
8877
8878 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8879
a1dd2936
GM
88802008-11-06 Glenn Morris <rgm@gnu.org>
8881
8882 * xterm.c (handle_one_xevent): Don't let popup menus cause
8883 mouse-autoselect-window related window switching. (Bug#1261)
8884
860cd236
CY
88852008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8886
8887 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8888
653a3150
AS
88892008-11-04 Andreas Schwab <schwab@suse.de>
8890
8891 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8892
870f5cac
CY
88932008-11-03 Chong Yidong <cyd@stupidchicken.com>
8894
8895 * xfns.c (Fx_wm_set_size_hint): New function.
8896
1e02f3cb
MR
88972008-11-03 Martin Rudalics <rudalics@gmx.at>
8898
8899 * textprop.c (Fprevious_single_char_property_change): Return 0
8900 when there's no change in a string. (Bug#1301)
8901
e630dfc6
MR
89022008-11-02 Martin Rudalics <rudalics@gmx.at>
8903
8904 * frame.c (do_switch_frame): New argument NORECORD passed to
8905 Fselect_window.
8906 (Fselect_frame): New argument NORECORD passed to
8907 do_switch_frame.
8908 (Fset_frame_selected_window): New argument NORECORD passed to
8909 Fselect_frame.
8910 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8911 in call of do_switch_frame.
8912 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8913 Handle NORECORD argument in call of Fselect_frame.
8914 * lisp.h (do_switch_frame, Fselect_frame)
8915 (Fset_frame_selected_window): Adjust declarations.
8916 * window.c (select_frame_norecord): New function.
8917 (run_window_configuration_change_hook): Use it and call
8918 Fselect_frame with NORECORD set.
8919 (Fselect_window): Pass NORECORD to Fselect_frame.
8920 (Fset_window_configuration): Handle NORECORD argument in call of
8921 do_switch_frame.
8922 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8923 Fset_frame_selected_window.
8924 * keyboard.c (command_loop_1): Handle NORECORD in call of
8925 Fselect_frame (currently ifdefd).
8926
9020b223
GM
89272008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8928
8929 * emacs.c (USAGE2): Untabify.
8930
793ffee8
SM
89312008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8932
8933 * composite.c (fill_gstring_header): Fix copy/paste typo.
8934
ab6d1131
MR
89352008-10-31 Martin Rudalics <rudalics@gmx.at>
8936
8937 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8938 (Fother_window): Rename argument and rewrite doc-string.
8939 (select_window_norecord): Fix return value. (Bug#1276)
8940
601a9cf1
JB
89412008-10-30 Juanma Barranquero <lekktu@gmail.com>
8942
8943 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8944 new frames overriding foreground for tooltips. Based on similar patch
8945 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8946
813b0652
CY
89472008-10-29 Chong Yidong <cyd@stupidchicken.com>
8948
8949 * emacs.c (Fdaemon_initialized): Initialize nfd.
8950
4414f58f
MR
89512008-10-29 Martin Rudalics <rudalics@gmx.at>
8952
8953 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8954 (Fwindow_text_height): Clarify doc-strings.
8955 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8956 doc-string of window-scroll-functions.
8957
ecdcaa09
RS
89582008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8959
8960 * category.c (syms_of_category): Fix typo in docstring.
8961
23fe745a
JB
89622008-10-28 Juanma Barranquero <lekktu@gmail.com>
8963
8964 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8965 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8966 Fix typos in docstrings.
8967
ff808935
DN
89682008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8969
8970 * emacs.c (daemon_pipe): Make non-static.
8971 (IS_DAEMON): Move definition ...
8972 * lisp.h (IS_DAEMON): ... here.
8973 (daemon_pipe): Declare.
8974 (is_daemon): Remove.
8975 * dispnew.c (init_display): Use IS_DAEMON.
8976
fc012771
SM
89772008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8978
8979 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8980 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8981
8982 * emacs.c (is_daemon): Remove.
8983 (main): Don't set is_daemon.
8984 (IS_DAEMON): New macro.
8985 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8986 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8987 parent exits.
8988 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8989
d8bdbe6f
CY
89902008-10-27 Chong Yidong <cyd@stupidchicken.com>
8991
d1a072bf
CY
8992 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8993 over-sized glyph, draw it with the default glyph width.
8994
e2e325aa
CY
8995 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8996 glyph, draw it with the default glyph width.
8997
8998 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8999 glyph, draw it with the default glyph width.
9000
d8bdbe6f
CY
9001 * xdisp.c (try_scrolling): When computing the distance from the
9002 scroll margin to PT, try moving some distance past the window
9003 bottom before giving up.
9004
7bfac547
MR
90052008-10-27 Martin Rudalics <rudalics@gmx.at>
9006
9007 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9008 (Fset_window_buffer): Explain in doc-string that a window can be
9009 "strongly" dedicated to its buffer.
9010
4ff029f6
DN
90112008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9012
9013 * emacs.c (daemon_name): New variable.
9014 (main): Deal with --daemon=SERVER_NAME.
9015 (Fdaemonp): Return a name if one was passed to --daemon.
9016
5790ef40
DN
90172008-10-26 Romain Francoise <romain@orebokech.com>
9018
f9bd0df9 9019 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9020 (main): Create a pipe before forking, make the parent exit only after
9021 the child has closed its end of the pipe. Move closing the
9022 descriptors ...
9023 (Fdaemon_initialized): ... here. New function.
9024
f5385255
SM
90252008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9026
4d632321
SM
9027 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9028 the previous unoptimized table.
9029
f5385255
SM
9030 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9031 the distinction between non-nil and non-t value of `dedicated'.
9032
6c56a0f3
CY
90332008-10-25 Chong Yidong <cyd@stupidchicken.com>
9034
9035 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9036 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9037
fec89261
MR
90382008-10-25 Martin Rudalics <rudalics@gmx.at>
9039
9040 * window.c (Fget_buffer_window, Fdelete_windows_on)
9041 (Freplace_buffer_in_windows): Make buffer argument optional and
9042 rename to buffer_or_name.
9043
34fcddd0
CY
90442008-10-24 Chong Yidong <cyd@stupidchicken.com>
9045
f5385255
SM
9046 * xdisp.c (handle_single_display_spec, handle_display_prop):
9047 Undo 2005-05-16 change.
34fcddd0
CY
9048 (handle_stop): Pop iterator if it's loaded with an empty string.
9049 (get_overlay_strings_1): Don't save iterator if it's loaded with
9050 an empty string (bug#1201).
9051
064766f2
KH
90522008-10-24 Kenichi Handa <handa@m17n.org>
9053
9054 * ftfont.c (ftfont_otf_features): Fix previous change.
9055 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9056 calling ftfont_otf_features.
9057
f9bd0df9 90582008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9059
9060 * font.c (font_match_p): Fix for the case that a vector of
9061 characters is in script-representative-chars.
9062
1dae9197
MA
90632008-10-24 Michael Albinus <michael.albinus@gmx.de>
9064
9065 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9066 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9067 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9068 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9069 macro. (Bug#1186)
1dae9197 9070
f9bd0df9 90712008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9072
9073 * s/sol2-10.h: New file.
9074
878a4584
JB
90752008-10-23 Juanma Barranquero <lekktu@gmail.com>
9076
9077 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9078 poor beast has survived 9+ years and the jump from xterm.c!).
9079
cd265ca6
MR
90802008-10-23 Martin Rudalics <rudalics@gmx.at>
9081
9082 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9083 Reword doc-string.
f5385255 9084 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9085
472a4dc9
JB
90862008-10-23 Juanma Barranquero <lekktu@gmail.com>
9087
9088 * character.c (syms_of_character) <script-representative-chars>:
9089 <unicode-category-table>: Doc fixes.
9090
159bd5a2
NF
90912008-10-23 Noah Friedman <friedman@splode.com>
9092
9093 * coding.c (make_conversion_work_buffer): Check that
9094 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9095 Fget_buffer_create.
9096
49f9c344
KH
90972008-10-23 Kenichi Handa <handa@m17n.org>
9098
9099 * font.c (font_add_log): Check the values of extra properties.
9100
12bb3111
MR
91012008-10-22 Martin Rudalics <rudalics@gmx.at>
9102
9103 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9104 Reword doc-string.
9105 (Fset_window_parameter): Use NILP.
9106 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9107 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9108
bbeb4e99
JB
91092008-10-22 Juanma Barranquero <lekktu@gmail.com>
9110
9111 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9112
91132008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9114
9115 * nsfns.m (ns_appkit_version): New function.
9116 (x-server-version): Use it.
9117 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9118 (x-server-vendor): Don't check_ns().
9119
9120 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9121
a9b555d3
JB
91222008-10-22 Juanma Barranquero <lekktu@gmail.com>
9123
9124 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9125 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9126
4626499f
KH
91272008-10-22 Kenichi Handa <handa@m17n.org>
9128
e3681952
KH
9129 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9130 scripts.
9131
4626499f
KH
9132 * category.c (word_boundary_p): Check scripts instead of charset.
9133 Handle nil value in word-separating-categories and
9134 word-combining-categories.
9135 (syms_of_category): Fix docstrings of word-separating-categories
9136 and word-combining-categories.
9137
1560f91a
EZ
91382008-10-21 Eli Zaretskii <eliz@gnu.org>
9139
9140 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9141 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9142
f4668441
MR
91432008-10-21 Martin Rudalics <rudalics@gmx.at>
9144
9145 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9146 Rename arg "buffer" to "buffer_or_name".
9147 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9148 it optional.
9149 (no_switch_window): Remove since the return value is not used.
a9b555d3 9150 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9151 Consider window as dedicated when Fwindow_dedicated_p returns a
9152 non-nil value.
9153 * lisp.h: Remove prototype for no_switch_window.
9154
fd75ddb2
JD
91552008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9156
9157 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9158 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9159
07295713
KH
91602008-10-21 Kenichi Handa <handa@m17n.org>
9161
9162 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9163 check Vlatin_extra_code_table.
9164
712adc82
EZ
91652008-10-20 Eli Zaretskii <eliz@gnu.org>
9166
9167 * fileio.c (Fset_file_modes): Doc fix.
9168
f549eb0b
MA
91692008-10-19 Michael Albinus <michael.albinus@gmx.de>
9170
9171 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9172 in arrays.
9173
aac0c6e3
MR
91742008-10-19 Martin Rudalics <rudalics@gmx.at>
9175
9176 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9177 Mention kill-buffer in doc-string.
9178 (Fset_window_buffer): Reinsert tem check removed in last commit.
9179 (Fenlarge_window, Fshrink_window): Have argument names and
9180 doc-string follow Elisp manual more closely.
9181
91822008-10-18 Eli Zaretskii <eliz@gnu.org>
9183
9184 * fileio.c (Fset_file_modes): Doc fix.
9185
91862008-10-18 Martin Rudalics <rudalics@gmx.at>
9187
9188 * window.c (Fwindow_width, Fset_window_start)
9189 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9190 (Fdelete_windows_on, Freplace_buffer_in_windows):
9191 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9192 (Fwindow_dedicated_p): Make window argument optional.
9193 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9194 (Fset_window_buffer): Respect any non-nil dedicated value for
9195 window. Rename "buffer" argument to "buffer_or_name".
9196
91972008-10-18 Ulrich Mueller <ulm@gentoo.org>
9198
9199 * m/sh3.h: New file, machine description for SuperH.
9200
92012008-10-17 Martin Rudalics <rudalics@gmx.at>
9202
9203 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9204
92052008-10-17 Kenichi Handa <handa@m17n.org>
9206
9207 * ftfont.c (ftfont_otf_features): Fix indexing
9208 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9209
92102008-10-16 Magnus Henoch <mange@freemail.hu>
9211
9212 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9213 (Fdbus_call_method_asynchronously): Ditto.
9214 This change makes C-h f display the argument list.
9215
92162008-10-16 Chong Yidong <cyd@stupidchicken.com>
9217
9218 * fileio.c (Fexpand_file_name): Doc fix.
9219
9220 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9221 of :foreground and :background equivalent to unspecified (20.x
9222 compatibility).
9223
92242008-10-15 Eli Zaretskii <eliz@gnu.org>
9225
9226 * buffer.c (syms_of_buffer): Doc fix.
9227
92282008-10-14 Kenichi Handa <handa@m17n.org>
9229
9230 * font.c (font_clear_prop): When clearing font width, clear the
9231 average width field too.
9232
92332008-10-12 Andreas Schwab <schwab@suse.de>
9234
9235 * ftfont.c (ftfont_shape_by_flt): Make static.
9236 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9237
9238 * font.c: Don't include <m17n-flt.h>.
9239
92402008-10-10 Eli Zaretskii <eliz@gnu.org>
9241
9242 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9243
92442008-10-09 Eli Zaretskii <eliz@gnu.org>
9245
9246 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9247 away code.
9248
92492008-10-09 Chong Yidong <cyd@stupidchicken.com>
9250
9251 * dispnew.c (update_text_area): Avoid looping due to large glyph
9252 overhangs (bug#1070).
9253
92542008-10-09 Kenichi Handa <handa@m17n.org>
9255
9256 * fontset.c (face_for_char): If face->fontset is negative, just
9257 return ascii_face.
9258
f5385255
SM
9259 * font.c (font_delete_unmatched): Fix previous change.
9260 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9261
92622008-10-09 Martin Rudalics <rudalics@gmx.at>
9263
9264 * frame.c (Fraise_frame): On text-only terminals select frame in
9265 order to make it visible. (Bug#1061)
9266
92672008-10-08 Chong Yidong <cyd@stupidchicken.com>
9268
9269 * fontset.c (fontset_find_font): Check frame validity.
9270
92712008-10-07 Chong Yidong <cyd@stupidchicken.com>
9272
a9b555d3 9273 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9274 (xg_display_close): Allow Emacs to close all displays (bug#985).
9275
92762008-10-06 Andreas Schwab <schwab@suse.de>
9277
f5385255 9278 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9279
92802008-10-06 Chong Yidong <cyd@stupidchicken.com>
9281
f5385255 9282 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9283
a9b555d3 9284 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9285
9286 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9287 during initialization.
9288
92892008-10-04 Eli Zaretskii <eliz@gnu.org>
9290
9291 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9292 whole thing on MSDOS frames as well as on a TTY.
9293
9294 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9295 well as for TTY.
9296 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9297 well as on a TTY.
9298
9299 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9300 as well as for TTY.
9301
9302 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9303
9304 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9305 MSDOS frames as well.
9306
93072008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9308
9309 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9310 correct arguments.
b71ac3dd 9311 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9312
93132008-10-03 Glenn Morris <rgm@gnu.org>
9314
9315 * emacs.c (USAGE1): Add --daemon.
9316
93172008-10-02 Eli Zaretskii <eliz@gnu.org>
9318
9319 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9320 100, so it's in percents as advertised.
9321
93222008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9323
9324 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9325 (ns_output.current_cursor, ns_output.desired_cursor)
9326 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9327 (FRAME_NEW_CURSOR_COLOR): Remove.
9328
9329 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9330 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9331 enumeration (HOLLOW_BOX_CURSOR, etc.).
9332
9333 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9334 (draw_window_cursor): Simplify code.
f5385255
SM
9335 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9336 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9337 updates manually.
a9b555d3
JB
9338 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9339 Use core Emacs cursor types.
aac0c6e3 9340
b8ff72fa 9341 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9342
93432008-10-02 Martin Rudalics <rudalics@gmx.at>
9344
9345 * process.c (Faccept_process_output): Fix doc-string.
9346
93472008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9348
9349 * gmalloc.c (__sbrk): Also define for uClibc.
9350
9351 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9352 for uClibc.
9353
93542008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9355
9356 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9357 styles.
9358 (nsfont_open): Reenable the cache.
9359
93602008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9361
9362 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9363 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9364
93652008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9366
9367 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9368 a suspended terminal.
9369
93702008-09-30 Michael Albinus <michael.albinus@gmx.de>
9371
9372 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9373
93742008-09-30 Eli Zaretskii <eliz@gnu.org>
9375
9376 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9377
93782008-09-30 Chong Yidong <cyd@stupidchicken.com>
9379
9380 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9381 in a continued line coincides with a line beginning.
9382
93832008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9384
9385 * nsfont.m (nsfont_trait_distance): Fix bug.
9386 (nsfont_list): Return a list rather than a vector (syncs with Handa
9387 changes of 2008-05-14).
9388 (nsfont_open): Improve logging.
9389
93902008-09-29 Andreas Schwab <schwab@suse.de>
9391
9392 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9393
93942008-09-28 Martin Rudalics <rudalics@gmx.at>
9395
9396 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9397 name as char-resolve-modifiers.
9398 Reported by: Markus Triska <markus.triska@gmx.at>
9399
94002008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9401
9402 * dispnew.c (init_display): Return earlier when running as a daemon.
9403
94042008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9405
9406 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9407
94082008-09-27 Eli Zaretskii <eliz@gnu.org>
9409
9410 * composite.c (Fcomposition_get_gstring)
9411 (Fcompose_region_internal, Fcompose_string_internal)
9412 (Ffind_composition_internal): Doc fix.
9413 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9414 (syms_of_composite) <auto-composition-function>: Doc fix.
9415 (syms_of_composite) <composition-function-table>: Doc fix.
9416
94172008-09-25 Chong Yidong <cyd@stupidchicken.com>
9418
9419 * search.c (wordify): New argument for lax word-ends.
9420 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9421
94222008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9423
9424 * lisp.h (is_daemon): Declare.
9425 * dispnew.c (init_display): Do not try to initialize the terminal
9426 when running as a daemon.
9427
94282008-09-22 Chong Yidong <cyd@stupidchicken.com>
9429
9430 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9431 x_display_pixel_height.
9432
94332008-09-22 Martin Rudalics <rudalics@gmx.at>
9434
9435 * undo.c (record_point): Don't call Fundo_boundary for first
9436 change. (Bug#731)
9437
94382008-09-22 Juanma Barranquero <lekktu@gmail.com>
9439
9440 * emacs.c (Fdaemonp): Doc fix.
9441
94422008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9443
9444 * emacs.c (main): Place #ifdef in the proper place.
9445
94462008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9447
9448 * emacs.c (standard_args): Add --daemon.
9449 (main): Disconnect from the terminal when --daemon is passed.
9450 (is_daemon): New variable.
9451 (Fdaemonp): New function.
9452 (syms_of_emacs): Defsubr it.
9453
94542008-09-20 Chong Yidong <cyd@stupidchicken.com>
9455
9456 * xdisp.c (get_next_display_element): Handle string display
9457 correctly when checking for the end of a box run.
9458
94592008-09-20 Glenn Morris <rgm@gnu.org>
9460
9461 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9462 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9463 (Frename_file): Avoid copying to trash if a rename involves
9464 a delete. (Bug#964).
9465
94662008-09-20 Eli Zaretskii <eliz@gnu.org>
9467
9468 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9469 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9470 frames as well as termcap frames.
9471 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9472 get_named_tty.
9473
94742008-09-19 Eli Zaretskii <eliz@gnu.org>
9475
9476 * process.c (procfs_system_process_attributes): Fix cmdline in
9477 case /proc/PID/cmdline is empty.
9478
9479 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9480 x_display_pixel_height.
9481
94822008-09-19 Juanma Barranquero <lekktu@gmail.com>
9483
9484 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9485
9486 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9487 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9488
94892008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9490
9491 * dispextern.h (struct it): Move line_wrap away from the middle of
9492 bitfields. Move voffset in struct iterator_stack_entry after the
9493 bitfields. Move tab_width near after another short.
9494
94952008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9496
9497 * frame.h (struct frame): Move alpha from the middle of bitfields.
9498
9499 * window.h (struct window): Move frozen_window_start_p after the
9500 rest of the bitfields to reduce padding.
9501
95022008-09-18 Chong Yidong <cyd@stupidchicken.com>
9503
9504 * xterm.h (x_display_info): Remove `height' and `width' members.
9505
9506 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9507
9508 * w32term.h (w32_display_info): Remove `height', `width',
9509 `height_in', and `width_in' members.
9510
b8ff72fa
SM
9511 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9512 New functions.
aac0c6e3
MR
9513 (x_calc_absolute_position): Use them.
9514 (x_term_init): Omit removed `height' and `width' members.
9515
b8ff72fa
SM
9516 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9517 New functions.
aac0c6e3
MR
9518 (w32_read_socket, x_calc_absolute_position): Use them.
9519 (w32_initialize_display_info, w32_term_init): Omit removed members
9520 of w32_display_info.
9521
b8ff72fa
SM
9522 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9523 New functions.
9524 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9525
b8ff72fa
SM
9526 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9527 New functions.
aac0c6e3
MR
9528 (x_calc_absolute_position): Use them.
9529 (x_term_init): Omit removed `height' and `width' members.
9530
9531 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9532 (compute_tip_xy):
9533 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9534 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9535 x_display_pixel_width.
9536
95372008-09-18 Kenichi Handa <handa@m17n.org>
9538
9539 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9540 (composition_compute_stop_pos): Fix handling of static composition.
9541 (Fcomposition_get_gstring): Check FROM and TO at first.
9542
95432008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9544
46e722a9 9545 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9546 mixup (YAILOM).
9547
95482008-09-17 Chong Yidong <cyd@stupidchicken.com>
9549
9550 * indent.c (Fvertical_motion): Use position reported by iterator
9551 instead of PT for determining screen motion (bug#943).
9552
95532008-09-17 Romain Francoise <romain@orebokech.com>
9554
9555 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9556
95572008-09-17 Kenichi Handa <handa@m17n.org>
9558
9559 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9560
9561 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9562 if necessary.
9563
95642008-09-16 Kenichi Handa <handa@m17n.org>
9565
9566 * coding.c (make_conversion_work_buffer): Avoid calling
9567 Fget_buffer_create if it is not necessary.
9568
95692008-09-15 Martin Rudalics <rudalics@gmx.at>
9570
9571 * window.c (Fselect_window): Don't update window_select_count and
9572 use_time when norecord is not nil.
9573
95742008-09-14 Kenichi Handa <handa@m17n.org>
9575
9576 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9577 specpdl_ptr.
9578
95792008-09-12 Kenichi Handa <handa@m17n.org>
9580
9581 * indent.c (scan_for_column): Don't handle automatic composition
9582 if the current buffer is not associated with a window.
9583
9584 * composite.c (composition_reseat_it): If the current buffer is
9585 not associated with a window, ignore the automatic composition.
9586 (find_automatic_composition): Likewise.
9587
95882008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9589
9590 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9591 (Fgpm_mouse_stop): Use it.
9592 * termhooks.h (close_gpm): Declare.
9593 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9594 connection if Gpm_GetEvent fails.
9595
9596 * window.c (set_window_buffer): Always preserve current-buffer.
9597
95982008-09-12 Glenn Morris <rgm@gnu.org>
9599
9600 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9601
96022008-09-11 Glenn Morris <rgm@gnu.org>
9603
9604 * charset.c (charset-map-path): Doc fix.
9605
96062008-09-10 Kenichi Handa <handa@m17n.org>
9607
9608 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9609
9610 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9611 compose a grapheme cluster with the preceding base glyph.
9612
9613 * composite.c (composition_compute_stop_pos): Fix previous change.
9614 Reset cmp_it->id to -1 at first.
9615
96162008-09-10 Glenn Morris <rgm@gnu.org>
9617
9618 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9619
96202008-09-09 Chong Yidong <cyd@stupidchicken.com>
9621
9622 * keyboard.c (read_key_sequence): Reapply translation maps when
9623 switching keyboards.
9624
96252008-09-09 Kenichi Handa <handa@m17n.org>
9626
9627 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9628 characters.
9629
9630 * composite.c (FORWARD_CHAR): Fix calculation
9631 of (POSITION).pos_byte.
9632 (composition_compute_stop_pos): Limit the search of composition to
9633 at most 500 characters ahead. If we reach the limit or find a
9634 newline, set cmp_it->ch to -2 and return 0.
9635 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9636
96372008-09-08 Kenichi Handa <handa@m17n.org>
9638
9639 * indent.c (Fvertical_motion): Be sure to set
9640 it_overshoot_expected if it.cmp_it.id is non-negative.
9641
96422008-09-07 Andreas Schwab <schwab@suse.de>
9643
9644 * callproc.c (Fcall_process): Don't hold references to string data
9645 across garbage collection. Move initialisation of new_argv down
9646 to avoid compiler bug.
9647
96482008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9649
9650 * process.c (Fsystem_process_attributes): Doc fix.
9651
96522008-09-07 Chong Yidong <cyd@stupidchicken.com>
9653
9654 * callproc.c (Fcall_process): Canonicalize current directory name.
9655
9656 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9657 iterator advances to the next line if the current line ends in a
9658 continued tab.
9659
96602008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9661
9662 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9663 member to point to cmp_from.
9664
9665 * xdisp.c: Doc fix for references to gidx data member.
9666
96672008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9668
9669 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9670
96712008-09-07 Kenichi Handa <handa@m17n.org>
9672
9673 * composite.c (FORWARD_CHAR): Check STOP after
9674 incrementing (POSITION).pos.
9675
96762008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9677
9678 * process.c (Fsystem_process_attributes): Doc fix.
9679
96802008-09-06 Chong Yidong <cyd@stupidchicken.com>
9681
9682 * keyboard.c (Ftop_level): Doc fix.
9683
96842008-09-06 Eli Zaretskii <eliz@gnu.org>
9685
9686 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9687 minibuffer, don't let lower part of menu invade the echo area.
9688
9689 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9690 "char *q" to access menu text and advance through it. Revert the
9691 change that displayed ">" instead of ASCII character 0x10.
9692
96932008-09-05 Eli Zaretskii <eliz@gnu.org>
9694
9695 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9696 toggle boxes and radio buttons on MS-DOS as well.
9697
96982008-09-05 Kenichi Handa <handa@m17n.org>
9699
9700 * composite.c (autocmp_chars): Check lookback count.
9701 (composition_compute_stop_pos): Set cmp_it->lookback.
9702 (composition_reseat_it): Check lookback count.
9703 (struct position_record): New struct.
9704 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9705 (find_automatic_composition): New function.
9706 (composition_adjust_point): Use find_automatic_composition.
9707
9708 * dispextern.h (struct composition_it): New member lookback.
9709
97102008-09-02 Chong Yidong <cyd@stupidchicken.com>
9711
9712 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9713 if moving by a single line.
9714
97152008-09-02 Andreas Schwab <schwab@suse.de>
9716
9717 * xterm.c (x_delete_display): Fix merge error.
9718
9719 * fileio.c (Fexpand_file_name): Remove unused variables.
9720
97212008-09-02 Eli Zaretskii <eliz@gnu.org>
9722
9723 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9724 storage on all platforms, not just on DOS_NT.
9725
97262008-09-02 Jason Rumney <jasonr@gnu.org>
9727
b8ff72fa
SM
9728 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9729 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9730
97312008-09-01 Chong Yidong <cyd@stupidchicken.com>
9732
9733 * xfaces.c (Finternal_set_alternative_font_family_alist)
9734 (Finternal_set_alternative_font_registry_alist): Properly copy
9735 entire alist structure.
9736
97372008-09-01 Kenichi Handa <handa@m17n.org>
9738
d66c0241 9739 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9740 representative chars of the script is a vector.
d66c0241
JB
9741 (ftfont_list): Handle the case where the representative chars of
9742 the script is a vector.
aac0c6e3
MR
9743
9744 * character.c (syms_of_character): Docstring of
9745 script-representative-chars fixed.
9746
97472008-08-31 Eli Zaretskii <eliz@gnu.org>
9748
9749 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9750 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9751 the menu. Allocate larger buffer for `text', to account for
9752 possible ^C characters.
9753
97542008-08-31 Martin Rudalics <rudalics@gmx.at>
9755
9756 * xdisp.c (prepare_menu_bars): Don't call
9757 Vwindow_size_change_functions with arg Qt.
9758
97592008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9760
9761 * font.h (font_range):
9762 * fileio.c (report_file_error):
46e722a9
SM
9763 * composite.c (composition_update_it): Yet another int/Lisp_Object
9764 mixup (YAILOM).
aac0c6e3
MR
9765
97662008-08-30 Glenn Morris <rgm@gnu.org>
9767
9768 * data.c (Fmake_variable_frame_local): Doc fix.
9769
9770 * frame.c (Fmodify_frame_parameters): Doc fix.
9771
97722008-08-30 Eli Zaretskii <eliz@gnu.org>
9773
9774 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9775 needed by GetTokenInformation.
9776 (w32_system_process_attributes): Check return values of all system
9777 APIs.
9778
9779 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9780 only when the state changes.
9781 (IT_update_begin, IT_update_end): Add termscript trace.
9782
9783 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9784 clipboard is unavailable. Set dst to NULL if it doesn't point to
9785 malloc'ed data.
9786 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9787 passing random values to xfree.
9788
9789 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9790 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9791
97922008-08-29 Jason Rumney <jasonr@gnu.org>
9793
9794 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9795
97962008-08-29 Eli Zaretskii <eliz@gnu.org>
9797
9798 * composite.c (fill_gstring_body): Avoid compiler warnings.
9799
9800 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9801 LGLYPH_SET_CODE to avoid compiler warnings.
9802
2ae37cf0 9803 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9804
9805 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9806
9807 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9808 LGLYPH_SET_CODE.
9809
98102008-08-29 Kenichi Handa <handa@m17n.org>
9811
9812 * fileio.c (report_file_error): Don't downcase the first character
9813 of errstring if it is still unibyte.
9814
98152008-08-29 Kenichi Handa <handa@m17n.org>
9816
9817 These changes are to re-implement the automatic composition so
9818 that it doesn't use text properties.
9819
9820 * Makefile.in (ftfont.o): Depend on composite.h.
9821 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9822
9823 * character.h (Vunicode_category_table): Extern it.
9824
9825 * character.c (Vunicode_category_table): New variable.
9826 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9827
9828 * chartab.c (optimize_sub_char_table): Perform more greedy
9829 optimization.
9830
b8ff72fa
SM
9831 * composite.h (enum composition_method):
9832 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9833 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9834 (Vcomposition_function_table): Extern it.
9835 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9836 (composition_gstring_put_cache, composition_gstring_from_id)
9837 (composition_gstring_p, composition_gstring_width)
9838 (composition_compute_stop_pos, composition_reseat_it)
9839 (composition_update_it, composition_adjust_point): Extern them.
9840 (Fcomposition_get_gstring): EXFUN it.
9841
d66c0241 9842 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9843 (Vcomposition_function_table)
9844 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9845 (gstring_hash_table, gstring_work, gstring_work_headers):
9846 New variables.
aac0c6e3
MR
9847 (gstring_lookup_cache, composition_gstring_put_cache)
9848 (composition_gstring_from_id, composition_gstring_p)
9849 (composition_gstring_width, fill_gstring_header)
9850 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9851 (composition_reseat_it, composition_update_it)
b8ff72fa 9852 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9853 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9854 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9855 Defsubr composition_get_gstring.
aac0c6e3
MR
9856
9857 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9858 cmp_id.
9859 (struct glyph_string): Delete the member gidx. New members
9860 cmp_id, cmp_from, and cmp_to.
9861 (enum it_method): Delete GET_FROM_COMPOSITION.
9862 (struct composition_it): New struct.
9863 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9864 Delete c, len, cmp_id, cmp_len in u.comp.
9865
9866 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9867 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9868 (enum lglyph_indices): Likewise.
b8ff72fa 9869 (font_range): Adjust extern.
aac0c6e3
MR
9870 (font_fill_lglyph_metrics): Extern it.
9871
9872 * font.c (QCf): New variable.
9873 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9874 (font_prepare_composition): Delete this function.
9875 (font_range): Type and arguments changed.
9876 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9877 (font_fill_lglyph_metrics): New function.
b8ff72fa 9878 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9879 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9880 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9881 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9882
9883 * fontset.h (font_for_char): Extern it.
9884
9885 * fontset.c (font_for_char): New function.
9886
9887 * ftfont.c: Include composite.h.
9888 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9889 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9890
9891 * indent.c: Include composite.h and dispextern.h.
9892 (check_composition): Delete this function.
9893 (scan_for_column): Handle composition by
9894 composition_compute_stop_pos, composition_reseat_it, and
9895 composition_update_it.
9896 (compute_motion): Likewise.
9897 (Fvertical_motion): Fix checking of composition.
9898
9899 * keyboard.c (adjust_point_for_property): Check composition by
9900 composition_adjust_point.
9901
b8ff72fa 9902 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9903 struct glyph_string.
9904
b8ff72fa
SM
9905 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9906 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9907 struct glyph.
9908 (produce_composite_glyph): Likewise.
9909
b8ff72fa
SM
9910 * w32term.c (x_draw_composite_glyph_string_foreground):
9911 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9912 (x_draw_glyph_string): Likewise.
9913
9914 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9915 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9916
9917 * xdisp.c: Include font.h.
9918 (it_props): Delete the entry for Qauto_composed.
9919 (init_iterator): Initialize it->cmp_it.id to -1.
9920 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9921 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9922 (handle_auto_composed_prop): Delete it.
9923 (handle_composition_prop): Handle only static composition.
9924 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9925 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9926 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9927 (pop_it): Likewise.
9928 (get_next_element): Delete next_element_from_composition.
9929 (CHAR_COMPOSED_P): New macro.
9930 (get_next_display_element): For automatic composition, get a face
9931 from the font in the glyph-string.
9932 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9933 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9934 (next_element_from_string): Check if the character at the current
9935 position is composed by CHAR_COMPOSED_P.
9936 (next_element_from_buffer): Likewise.
d66c0241
JB
9937 (next_element_from_composition): Adjust for the change of struct it.
9938 Update it->cmp_it.
b8ff72fa
SM
9939 (dump_glyph): Adjust for the change of struct glyph.
9940 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9941 it and struct glyph. Don't handle automatic composition here.
9942 (fill_gstring_glyph_string): New function.
9943 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9944 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9945 (BUILD_GSTRING_GLYPH_STRING): New macro.
9946 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9947 automatic composition.
b8ff72fa 9948 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9949 struct glyph.
b8ff72fa 9950 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9951
b8ff72fa 9952 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9953 the change of struct glyph_string.
9954 (x_draw_glyph_string): Likewise.
9955
99562008-08-29 Glenn Morris <rgm@gnu.org>
9957
9958 * buffer.c (word-wrap): Doc fix.
9959 * xdisp.c (truncate-partial-width-windows): Doc fix.
9960 Increase default to 50.
9961
99622008-08-29 Chong Yidong <cyd@stupidchicken.com>
9963
9964 * xdisp.c (update_tool_bar_unwind): New function.
9965 (update_tool_bar): Temporarily set selected frame before building
9966 tool-bar items.
9967
99682008-08-28 Michael Albinus <michael.albinus@gmx.de>
9969
9970 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9971 snprintf, respectively.
9972 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9973
99742008-08-28 Chong Yidong <cyd@stupidchicken.com>
9975
9976 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9977 LDFLAGS to GNUstep CC invocation.
9978
99792008-08-27 Chong Yidong <cyd@stupidchicken.com>
9980
9981 * indent.c (Fvertical_motion): Revert last change. Handle the
9982 general case where we are moving forward, and PT spans multiple
9983 screen lines.
9984
9985 * eval.c (find_handler_clause): Temporarily increase
9986 max-lisp-eval-depth while printing the backtrace buffer, to
9987 guarantee that help-mode code can run.
9988
99892008-08-27 Eli Zaretskii <eliz@gnu.org>
9990
9991 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9992 colors under -rv.
9993 (IT_set_frame_parameters): Don't swap foreground and background
9994 colors if `(reverse . t)' is present in the frame properties.
9995 (internal_terminal_init): Call init_frame_faces only for the
9996 initial frame.
9997
99982008-08-27 Andreas Schwab <schwab@suse.de>
9999
10000 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10001
100022008-08-27 Andreas Schwab <schwab@suse.de>
10003
10004 * search.c (search_buffer): Set char_base to zero only at the end.
10005
100062008-08-27 Kenichi Handa <handa@m17n.org>
10007
b8ff72fa 10008 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10009
100102008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10011
10012 * xterm.c (x_term_init): Temporarily hide the partially
10013 initialized terminal while calling vendor-specific-keysyms.
10014
100152008-08-26 Eli Zaretskii <eliz@gnu.org>
10016
10017 * msdos.c (internal_terminal_init): Most initializations done only
10018 once, especially initial_screen_colors[] and termscript open.
10019
100202008-08-26 Chong Yidong <cyd@stupidchicken.com>
10021
10022 * eval.c (Fcondition_case): Doc fix.
10023
10024 * widgetprv.h (EmacsFramePart): Change font member to the new font
10025 struct.
10026
10027 * widget.c: Include character.h and font.h for XSETFONT.
10028 (setup_frame_gcs): Compute X font id from font struct, just once.
10029
100302008-08-26 Eli Zaretskii <eliz@gnu.org>
10031
10032 * term.c (get_named_tty): Fix last change.
10033
100342008-08-26 Chong Yidong <cyd@stupidchicken.com>
10035
10036 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10037 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10038
100392008-08-25 Eli Zaretskii <eliz@gnu.org>
10040
10041 * frame.c (do_switch_frame): Mark previously displayed frame as
10042 obscured for FRAME_MSDOS_P frames as well.
10043
100442008-08-24 Eli Zaretskii <eliz@gnu.org>
10045
10046 * frame.c (make_terminal_frame): Initialize f->terminal,
10047 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10048 Set the top frame to newly created frame.
10049 (Fmake_terminal_frame): Reuse the_only_display_info.
10050
10051 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10052 estimating available memory.
10053
b97439ce 100542008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10055
10056 * nsterm.m (ns_draw_window_cursor): Don't call
10057 NSDisableScreenUpdates and NSEnableScreenUpdates on
10058 non-NS_IMPL_COCOA systems.
10059
100602008-08-23 Andreas Schwab <schwab@suse.de>
10061
10062 * process.c (procfs_system_process_attributes): Fix use of
10063 uninitialized variables.
10064
100652008-08-23 Eli Zaretskii <eliz@gnu.org>
10066
10067 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10068
10069 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10070 calling tty-set-up-initial-frame-faces.
10071
b8ff72fa
SM
10072 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10073 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10074
10075 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10076 addition to output_termcap.
10077
10078 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10079
10080 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10081 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10082 highlight.
10083
10084 * process.c [!subprocesses]: Define QCname.
10085 (syms_of_process): Intern and staticpro it.
10086
10087 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10088 Adjust for changes in encoding/decoding routines.
10089 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10090 encode_coding and decode_coding.
10091
b8ff72fa 10092 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10093
10094 * dosfns.c: Include frame.h before termhooks.h.
10095 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10096 variable termscript.
10097
10098 * s/msdos.h (USER_FULL_NAME): Define.
10099 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10100
10101 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10102 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10103 pw->pw_gecos.
10104
10105 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10106 SELECTED_FRAME as additional (1st) argument.
10107 (tty_read_avail_input): Handle output_msdos_raw in
10108 addition to output_termcap.
10109
10110 * msdos.c: Include frame.h before termhooks.h.
10111 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10112 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10113 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10114 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10115 (IT_set_terminal_modes, IT_reset_terminal_modes)
10116 (IT_set_frame_parameters): Use tty->termscript instead of a global
10117 variable termscript.
10118 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10119 global variable terminal_coding. Don't refer to
10120 Vnonascii_translation_table.
10121 (internal_terminal_init): Set Vwindow_system in current_kboard.
10122 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10123 Announce date and time of session start, if termscript is open.
10124 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10125 term.c:init_tty). Open termscript only of not already open.
10126 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10127 here instead of dos_ttraw. Don't initialize display if this is an
10128 initial tty. Don't set FRAME_FONT.
10129 (Vwindow_system_version): Bump to 23.
10130 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10131 is available, set up mouse_position_hook.
10132 (dos_ttraw, IT_set_terminal_modes): If called with initial
10133 terminal, do nothing.
10134 (IT_set_frame_parameters): Handle the Qtty_type frame
10135 parameter by calling internal_terminal_init.
10136 (dos_set_window_size, show_mouse_face)
10137 (clear_mouse_face, IT_note_mode_line_highlight)
10138 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10139 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10140 (initialize_msdos_display): New function.
10141 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10142 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10143 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10144 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10145 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10146 (request_sigio, unrequest_sigio): Don't define, now defined on
10147 sysdep.c.
10148 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10149
10150 * term.c [MSDOS]: Include msdos.h.
10151 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10152 conditional to DOS_NT. Allow only one call to this function in a
10153 session. Don't allocate a new struct tty_display_info; instead,
10154 reuse the_only_display_info. Call get_tty_size to get screen
10155 dimensions. Call init_baud_rate to set bad_rate.
10156 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10157 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10158 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10159 (get_tty_terminal, get_named_tty, Ftty_type)
10160 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10161 output_termcap.
b8ff72fa
SM
10162 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10163 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10164 only when subprocesses are supported.
aac0c6e3
MR
10165
10166 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10167 f->output_data.x.
10168 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10169 terminal devices.
10170
5582fbc7 10171 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10172 x_output.
10173 (FRAME_FONT): Use output_data.tty.
10174 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10175 (struct x_display_info): Rename from display_info. Update all users in
10176 msdos.c.
aac0c6e3 10177 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10178 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10179 (dos_ttraw): Update prototype.
10180
10181 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10182 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10183
101842008-08-23 Jason Rumney <jasonr@gnu.org>
10185
10186 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10187 (fn_TIFFSetDirectory): New library function used.
10188 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10189 (tiff_load): Use :index to select among multiple images. Set count
10190 property when multiple images exist.
10191 (gif_format): Use :index, not :image.
10192
101932008-08-23 Chong Yidong <cyd@stupidchicken.com>
10194
10195 * xdisp.c (try_scrolling): Check INT_MAX instead of
10196 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10197 to obtain INT_MAX.
10198
101992008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10200
10201 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10202
102032008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10204
10205 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10206 GNUstep library location.
10207
102082008-08-21 Chong Yidong <cyd@stupidchicken.com>
10209
10210 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10211 before using it.
10212
10213 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10214
102152008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10216
10217 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10218 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10219 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10220 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10221 (EmacsApp-cursor_blink_handler): Remove declaration.
10222 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10223 match 01 Feb 2008 changes in xterm.c.
10224 (ns_read_socket): Add cast to avoid warning.
10225 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10226 GNUstep.
10227
102282008-08-20 Chong Yidong <cyd@stupidchicken.com>
10229
10230 * xselect.c (x_get_foreign_selection): Return nil if desired
10231 selection could not be obtained, instead of signalling an error.
10232
102332008-08-20 David Reitter <david.reitter@gmail.com>
10234
10235 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10236 * nsterm.m: Remove ns-specific code for cursor blinking.
10237 (ns_draw_window_cursor): Clear cursor properly rather than
10238 redrawing the area. Respect width of bar cursors.
10239 These changes enable the use of generic blink-cursor-mode and
10240 generic cursor types in NS and support smooth cursor movements (do
10241 not blink off after command).
10242 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10243 Nextstep, too.
10244
102452008-08-19 Kenichi Handa <handa@m17n.org>
10246
10247 * font.c (Vfont_log_deferred): New variable.
10248 (font_add_log): Check Vfont_log_deferred.
10249 (font_deferred_log): New function.
10250
10251 * font.h (font_deferred_log): Extern it.
10252
10253 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10254 for sorting.
10255 (face_for_char): Use deferred log.
10256
102572008-08-18 Kenichi Handa <handa@m17n.org>
10258
10259 * fontset.c (face_for_char): Add font log.
10260
10261 * font.c (font_add_log): Add the font properties :script, :lang,
10262 and :otf in the log.
10263
102642008-08-17 Chong Yidong <cyd@stupidchicken.com>
10265
10266 * xdisp.c: Remove dead code.
10267 (handle_invisible_prop, next_overlay_string): Defer call to
10268 setup_for_ellipsis.
10269 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10270
102712008-08-15 Chong Yidong <cyd@stupidchicken.com>
10272
10273 * xfaces.c (lookup_derived_face): Properly handle possible zero
10274 return value of get_lface_attributes.
10275 (merge_faces): Don't tell lookup_derived_face to signal an error
10276 if face is not found.
10277
10278 * dired.c (Fdirectory_files): Doc fix.
10279
10280 * process.c (make_process): Initialize kill_without_query struct
10281 member.
10282
102832008-08-15 Eli Zaretskii <eliz@gnu.org>
10284
10285 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10286 Alternative calculation of totphys for Visual Studio 6.
10287
10288 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10289
10290 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10291 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10292 All users changed.
10293 (stat): Only root directory passed to GetDriveType. Allow RAM
10294 disk as well as local fixed disk when w32-get-true-file-attributes
10295 is set to `local'.
10296 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10297 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10298 (w32_cached_id, w32_add_to_cache): New functions.
10299 (get_name_and_id): Look account names in the cache before calling
10300 lookup_account_sid.
10301 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10302 New initialization flags.
10303 (globals_of_w32): Initialize them to zero.
10304 (w32_system_process_attributes): Use w32_cached_id and
10305 w32_add_to_cache.
10306
103072008-08-14 Lawrence Mitchell <wence@gmx.li>
10308
10309 * lread.c (Fread_char, Fread_char_exclusive): If no character
10310 event is read before timeout is reached, return nil, rather than
10311 converting to a number.
10312
103132008-08-14 Chong Yidong <cyd@stupidchicken.com>
10314
10315 * fns.c (use_dialog_box): Doc fix.
10316
10317 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10318 on OS X.
10319
103202008-08-13 Chong Yidong <cyd@stupidchicken.com>
10321
10322 * frame.c (Qns_parse_geometry): New var.
10323 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10324
103252008-08-11 Chong Yidong <cyd@stupidchicken.com>
10326
10327 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10328 space character in calculating tabs.
10329
103302008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10331
10332 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10333
103342008-08-10 Glenn Morris <rgm@gnu.org>
10335
10336 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10337 silence gcc "limited range of data type" warnings in some
10338 make_fixnum_or_float calls.
10339
103402008-08-09 Eli Zaretskii <eliz@gnu.org>
10341
10342 * w32.c (w32_system_process_attributes): If the process does not
10343 exist, return nil.
10344
10345 * w32.c: Include thelp32.h, psapi.h and coding.h.
10346 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10347 declarations.
10348 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10349 (Process32Next_Proc): New typedefs.
10350 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10351 (g_b_init_process32_next, g_b_init_open_thread_token)
10352 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10353 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10354 (g_b_init_get_process_working_set_size)
10355 (g_b_init_global_memory_status_ex): New static variables.
10356 (globals_of_w32): Initialize them.
10357 (create_toolhelp32_snapshot, process32_first, process32_next)
10358 (open_thread_token, impersonate_self, revert_to_self)
10359 (get_process_memory_info, get_process_working_set_size)
10360 (global_memory_status, global_memory_status_ex): New wrapper
10361 functions.
10362 (w32_list_system_processes, w32_system_process_attributes)
10363 (enable_privilege, restore_privilege, ltime, process_times):
10364 New functions.
10365 (convert_time_raw): New function.
10366 (convert_time): Remove conversion of FILETIME into time in 100
10367 nsec units, call convert_time_raw instead.
10368
10369 * process.h (w32_list_system_processes, w32_system_process_attributes):
10370 Add prototypes.
10371 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10372 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10373 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10374 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10375
10376 * process.c (Fsystem_process_attributes): Doc fix.
10377
103782008-08-08 Chong Yidong <cyd@stupidchicken.com>
10379
10380 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10381 a continued multi-char glyph; if so, advance to the actual glyph.
10382
103832008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10384
10385 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10386
10387 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10388 (.m.o): Use it.
10389 * config.in: Regenerate.
10390
103912008-08-07 Chong Yidong <cyd@stupidchicken.com>
10392
10393 * xdisp.c (redisplay_window): Revert last change.
10394 (try_window): Check bottom scroll margin too.
10395
103962008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10397
10398 * config.in: Regenerate.
10399
10400 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10401 -list-load-path-shadows'.
10402 (nsgui.h): Reduce number of things depending on it.
10403
104042008-08-06 Chong Yidong <cyd@stupidchicken.com>
10405
10406 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10407 instead of window-end which does the wrong thing at eob.
10408 (try_cursor_movement): Minor optimization.
10409 (redisplay_window): If scroll margin is defined, don't assume
10410 window doesn't need scrolling.
10411
104122008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10413
10414 * config.in: Regenerate.
10415
10416 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10417 (mostlyclean): Don't delete *.d under NS.
10418
10419 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10420
104212008-08-06 Kenichi Handa <handa@m17n.org>
10422
10423 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10424
104252008-08-06 Andreas Schwab <schwab@suse.de>
10426
10427 * config.in: Regenerate.
10428
104292008-08-05 Chong Yidong <cyd@stupidchicken.com>
10430
10431 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10432 forcing a window start.
10433
10434 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10435 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10436
104372008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10438
10439 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10440 argument.
10441
104422008-08-05 Juanma Barranquero <lekktu@gmail.com>
10443
10444 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10445 <scroll-down-aggressively, before-change-functions>:
10446 <after-change-functions>: Reflow docstrings.
10447
104482008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10449 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10450
10451 Dock menu customization, based on a patch by Ken Raeburn, plus some
10452 other fixes.
10453 * nsmenu.m (dockMenu): New variable.
10454 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10455
10456 * nsterm.h (dockMenu): Declare.
10457
10458 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10459 (ns_term_init): Initialize dockMenu.
10460 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10461 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10462 left.
10463
10464 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10465
104662008-08-04 Chong Yidong <cyd@stupidchicken.com>
10467
10468 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10469
10470 * config.in: Regenerate.
10471
104722008-08-04 Seiji Zenitani <zenitani@mac.com>
10473
10474 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10475
104762008-08-04 Chong Yidong <cyd@stupidchicken.com>
10477
10478 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10479
104802008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10481
10482 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10483
10484 * keyboard.h: Comment an #endif.
10485
10486 * lisp.h (have_menus_p): Adjust comment.
10487
10488 * menu.c (find_and_return_menu_selection): Fix comparison with
10489 client_data.
10490
10491 * nsmenu.m (popup_activated_flag): New variable.
10492 (popup_activated): New function.
10493 (menu-or-popup-active-p): New exported lisp definition.
10494 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10495 when popup done.
10496 (ns_popup_dialog): Set popup_activated_flag.
10497
10498 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10499 version for GNUstep (handled by conditional typedef in nsterm.m).
10500 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10501 in rgb.txt).
10502
10503 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10504
10505 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10506
10507 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10508
10509 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10510 shortcircuit if popup_activated like GTK and X toolkit.
10511
10512 * m/inter386.h: Change DARWIN to DARWIN_OS.
10513
10514 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10515 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10516 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10517 comment on NO_SOCK_SIGIO.
10518
105192008-08-03 Chong Yidong <cyd@stupidchicken.com>
10520
10521 * nsterm.m (windowDidResize): Remove stopModal call.
10522
105232008-08-03 Andreas Schwab <schwab@suse.de>
10524
10525 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10526 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10527
105282008-08-02 Chong Yidong <cyd@stupidchicken.com>
10529
10530 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10531 Don't use uninitialized pointer variable when using getrlimit.
10532
105332008-08-02 Jason Rumney <jasonr@gnu.org>
10534
10535 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10536
105372008-08-02 Eli Zaretskii <eliz@gnu.org>
10538
10539 * alloc.c (NSTATICS): Bump to 0x640.
10540
10541 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10542
10543 * lisp.h: Add prototype for directory_files_internal.
10544
10545 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10546 New functions.
10547 (syms_of_process): Defsubr them. Add initializations for various
10548 Q* symbols used in procfs_system_process_attributes.
10549 (procfs_list_system_processes, procfs_system_process_attributes)
10550 [HAVE_PROCFS]: New functions.
10551 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10552 (procfs_get_total_memory): New functions.
10553
105542008-08-01 Juanma Barranquero <lekktu@gmail.com>
10555
10556 * xfaces.c (Fx_load_color_file): Fix previous change;
10557 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10558
105592008-08-01 Michael Albinus <michael.albinus@gmx.de>
10560
10561 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10562
105632008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10564
10565 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10566
105672008-08-01 Chong Yidong <cyd@stupidchicken.com>
10568
10569 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10570
10571 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10572 define NSApplicationDelegateReplySuccess.
10573 (EmacsView -converstationIdentifier): Use long instead of
10574 NSInteger for GNUstep, since it doesn't have NSInteger.
10575
10576 * xmenu.c: Revert last change.
10577
10578 * keyboard.h: Fix last change.
10579
105802008-08-01 Juanma Barranquero <lekktu@gmail.com>
10581
10582 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10583 on Windows.
10584
105852008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10586
10587 Warning clearing and clean-up in NS port.
10588 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10589 Add prototypes.
10590 * nsgui.h (FACE_DEFAULT): Remove, unused.
10591 (XGCValues): Change colors to unsigned long.
10592 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10593 nsterm.m.
10594 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10595 (ns_list_fonts): Remove, unused.
10596 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10597 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10598 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10599 (nsfont_draw): Compare face colors to 0, not nil.
10600 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10601 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10602 (-addSubmenuWithTitle:): Use NSMenuItem class.
10603 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10604 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10605 (ns_clip_to_row): Make gc arg a BOOL.
10606 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10607 ns_clip_to_row() call.
10608 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10609 used). Cast FRAME_FONT assignments.
10610 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10611 (ns_string_to_lispmod): Change arg to const char.
10612 (ns_term_init): Use NSMenuItem class.
10613 (EmacsApp -openFile:): Move to different section of file.
10614 (EmacsApp -application:openFiles:): Don't return a value, call
10615 -replyToOpenOrPrint:.
10616 (EmacsView -keyDown:): Fix up cast.
10617 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10618 (EmacsView -menuDown:): Cast tag in call to
10619 find_and_call_menu_selection().
10620 (ns_list_fonts): Remove, unused.
10621 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10622 (ns_fontname_to_xlfd): Make static.
10623 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10624 Remove prototypes (now in keyboard.h).
10625 (next_menubar_widget_id): Remove, unused.
10626 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10627 Remove prototypes (now in keyboard.h).
10628 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10629
106302008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10631
10632 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10633 (floatfns.o): Depend on syssignal.h.
10634 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10635
10636 * systty.h: Fix previous change that removed BSD_TERMIOS.
10637 Add comments to #ifdefs.
10638
106392008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10640
10641 * w32fns.c (w32-load-color-file): Remove.
10642 (x-open-connection): Use renamed Fx_load_color_file.
10643 * xfaces.c (x-load-color-file): Add.
10644 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10645 Emacs.clr.
10646 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10647
106482008-07-31 Michael Albinus <michael.albinus@gmx.de>
10649
10650 * dbusbind.c (Fdbus_call_method_asynchronously)
10651 (Fdbus_method_error_internal): New defuns.
10652 (xd_read_message): Handle also reply messages.
10653 (Vdbus_registered_functions_table): Extend docstring.
10654
106552008-07-31 Juanma Barranquero <lekktu@gmail.com>
10656
10657 * keyboard.c (gobble_input): Fix previous change.
10658
106592008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10660
10661 * bitmaps/README:
10662 * xfns.c:
10663 * termcap.c:
10664 * term.c:
10665 * syswait.h:
10666 * systty.h:
10667 * systime.h:
10668 * syssignal.h:
10669 * sysdep.c:
10670 * process.h:
10671 * process.c:
10672 * print.c:
10673 * ndir.h:
10674 * lread.c:
10675 * keyboard.c:
10676 * getpagesize.h:
10677 * floatfns.c:
10678 * fileio.c:
10679 * emacs.c:
10680 * doc.c:
10681 * dispnew.c:
10682 * dired.c:
10683 * data.c:
10684 * callproc.c:
10685 * buffer.c:
10686 * README:
10687 * Makefile.in:
10688 * s/template.h:
10689 * s/msdos.h:
10690 * m/vax.h: Remove VMS support.
10691 * s/vms.h:
10692 * vlimit.h:
10693 * uaf.h:
10694 * temacs.opt:
10695 * param.h:
10696 * ioctl.h: Remove file.
10697
106982008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10699
10700 * s/ms-w32.h (MULTI_KBOARD): Remove.
10701 * xterm.c:
10702 * xselect.c:
10703 * xfns.c:
10704 * window.c:
10705 * w32term.c:
10706 * w32fns.c:
10707 * terminal.c:
10708 * termhooks.h:
10709 * term.c:
10710 * sysdep.c:
10711 * keyboard.h:
10712 * keyboard.c:
10713 * frame.h:
10714 * frame.c:
10715 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10716 * config.in: Regenerate.
10717
107182008-07-30 Jason Rumney <jasonr@gnu.org>
10719
10720 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10721
10722 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10723 (w32font_open_internal): Get unicode version of textmetrics.
10724 Don't enable or disable glyph indices here.
10725 (w32font_open): Disable use of glyph indices.
10726
10727 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10728
107292008-07-30 Chong Yidong <cyd@stupidchicken.com>
10730
10731 * minibuf.c (Vread_buffer_function): Doc fix.
10732
107332008-07-30 John Paul Wallington <jpw@pobox.com>
10734
10735 * minibuf.c (read_buffer_completion_ignore_case): New var.
10736 (Fread_buffer): Use it.
10737
107382008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10739
10740 * systty.h (sensemode): Remove empty #if. Remove reference to
10741 BSD_TERMIOS, unused.
10742
10743 * sysdep.c: Remove reference to DGUX.
10744 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10745
10746 * config.in: Regenerate.
10747
107482008-07-30 Jason Rumney <jasonr@gnu.org>
10749
10750 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10751
107522008-07-29 Jason Rumney <jasonr@gnu.org>
10753
10754 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10755 is populated.
10756 (uniscribe_encode_char): Always use uniscribe.
10757 Avoid using context if cache is populated.
10758
107592008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10760
10761 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10762 open menu.
10763
10764 * gtkutil.c (menu_nav_ended): Remove.
10765 (create_menus): Remove signal connect for menu_nav_ended.
10766
107672008-07-28 Chong Yidong <cyd@stupidchicken.com>
10768
10769 * xdisp.c (redisplay_window): Check return value of
10770 compute_window_start_on_continuation_line before forcing a window
10771 start.
10772
107732008-07-28 Jason Rumney <jasonr@gnu.org>
10774
10775 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10776
10777 * w32term.c (w32_enable_unicode_output, cleartype_active):
10778 Remove obsolete display options.
10779 (x_draw_glyph_string_background): Don't use old cleartype_active
10780 workaround.
10781 (w32_initialize): Remove cleartype_active initialization.
10782 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10783
107842008-07-28 Andreas Schwab <schwab@suse.de>
10785
10786 * lisp.h (init_weak_hash_tables, syms_of_font)
10787 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10788 (remove_hash_entry): Don't declare.
10789 * eval.c (maybe_call_debugger): Make static and move before use.
10790 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10791 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10792 * xterm.h (x_set_frame_alpha): Declare.
10793
107942008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10795
10796 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10797 (create_menus): Connect selection-done to menu_nav_ended.
10798
107992008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10800
10801 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10802 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10803 parameter with read of 'alpha' one.
10804 (Qns_frame_parameter): Remove.
5582fbc7 10805 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10806 (next-selection-coding-system, Vselection_coding_system)
10807 (Vnext_selection_coding_system): Drop.
10808
108092008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10810
10811 * nsfns.m (do-applescript, do_applescript): Rename to
10812 ns-do-applescript, ns_do_applescript, and move within file.
10813
108142008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10815
10816 Remove support for Mac Carbon.
10817 * mactoolbox.c:
10818 * macterm.h:
10819 * macterm.c:
10820 * macselect.c:
10821 * macmenu.c:
10822 * macgui.h:
10823 * macfns.c:
10824 * mac.c: Remove file.
10825 * s/darwin.h:
10826 * m/intel386.h:
10827 * xfaces.c:
10828 * xdisp.c:
10829 * window.c:
10830 * tparam.c:
10831 * termhooks.h:
10832 * termcap.c:
10833 * term.c:
10834 * syssignal.h:
10835 * sysselect.h:
10836 * sysdep.c:
10837 * process.c:
10838 * lread.c:
10839 * lisp.h:
10840 * keyboard.c:
10841 * image.c:
10842 * fringe.c:
10843 * frame.h:
10844 * frame.c:
10845 * fontset.c:
10846 * font.h:
10847 * font.c:
10848 * fns.c:
10849 * fileio.c:
10850 * emacs.c:
10851 * dispnew.c:
10852 * dispextern.h:
10853 * config.in:
10854 * atimer.c:
2ae37cf0 10855 * Makefile.in: Remove code for Carbon.
aac0c6e3 10856
f0131492 108572008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10858
10859 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10860
108612008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10862
10863 * macterm.h (kCGBitmapByteOrder32Host): New define for
10864 non-universal SDKs.
10865
10866 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10867 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10868
10869 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10870 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10871
108722008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10873
10874 * w32inevt.c: Include dispextern.h.
10875
108762008-07-26 Andreas Schwab <schwab@suse.de>
10877
10878 * print.c (print_object): Fix off-by-one in last change.
10879
108802008-07-25 Juanma Barranquero <lekktu@gmail.com>
10881
10882 * term.c (syms_of_term): Don't initialize default_orig_pair,
10883 default_set_foreground and default_set_background on Windows.
10884
108852008-07-25 Jason Rumney <jasonr@gnu.org>
10886
10887 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10888 ScriptItemize. Clean up return value checking. Remove unused
10889 variables.
10890 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10891 shaping engine.
10892
10893 * w32font.c (w32font_has_char): Handle the case where we can't
10894 determine the script for a character.
10895
108962008-07-25 Chong Yidong <cyd@stupidchicken.com>
10897
10898 * term.c (syms_of_term): Initialize default_orig_pair,
10899 default_set_foreground, and default_set_background.
10900
10901 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10902 clash (bug#86).
10903 (getloadavg): Callers changed.
10904
10905 * image.c (svg_load_image): Fix last change.
10906 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10907 image size is valid. Use g_object_unref instead of deprecated
10908 rsvg_handle_free to free rsvg handle.
10909 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10910
109112008-07-25 Jason Rumney <jasonr@gnu.org>
10912
10913 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10914 surrogates before looking up glyph index.
10915 (w32font_text_extents): Encode as surrogates if falling back to
10916 functions that need UTF-16 wide chars.
10917
10918 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10919 BMP as surrogates before looking up glyph index.
10920
109212008-07-25 Chong Yidong <cyd@stupidchicken.com>
10922
10923 * image.c (svg_load_image): Check for failure in return value of
10924 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10925
109262008-07-25 Jason Rumney <jasonr@gnu.org>
10927
10928 * w32font.c (Fx_select_font): Reverse sense of second arg.
10929
109302008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10931
10932 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10933 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10934
10935 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10936 (PURESIZE): Use it.
10937
109382008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10939
10940 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10941 * m/alpha.h (TEXT_END):
10942 * m/ibmrs6000.h (TEXT_END):
10943 * m/macppc.h (TEXT_END):
10944 * s/darwin.h (TEXT_END):
10945 * s/msdos.h (TEXT_END): Remove, unused.
10946 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10947 * s/cygwin.h: Remove comment.
10948
10949 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10950 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10951 * m/intel386.h (DOT_GLOBAL_START):
10952 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10953 (USG): Remove, file not used on USG platforms.
10954
10955 * Makefile.in (HAVE_X11): Remove empty #else.
10956
109572008-07-24 Andreas Schwab <schwab@suse.de>
10958
10959 * fileio.c (Finsert_file_contents): Properly adjust undo list
10960 after format conversion.
10961
109622008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10963
10964 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10965 (menu_nav_ended): Remove.
10966 (create_menus): Remove signal connect for menu_nav_ended.
10967 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10968 create_menus.
10969 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10970
109712008-07-23 Jason Rumney <jasonr@gnu.org>
10972
10973 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10974 with opened font.
10975 (w32font_open): Set font type to gdi.
10976
10977 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10978
109792008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10980
10981 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10982 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10983 defines it.
10984 * unexec.c (ADDR_CORRECT): Define unconditionally.
10985
10986 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10987
10988 * unexec.c: Remove code depending on !COFF and USG, the file is
10989 not used for such systems.
10990
10991 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10992 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10993 (LD_SWITCH_SYSTEM_1): Remove, update users.
10994
10995 * s/darwin.h (DATA_END):
10996 * m/intel386.h (DATA_END):
10997 * m/ibmrs6000.h (DATA_END):
10998 * m/alpha.h (DATA_END): Remove, unused.
10999
11000 * config.in: Regenerate.
11001 * s/ms-w32.h (subprocesses): Define unconditionally.
11002 * s/template.h (subprocesses): Update comment.
11003 * s/vms.h (subprocesses):
11004 * s/usg5-4.h (subprocesses):
11005 * s/hpux10-20.h (subprocesses):
11006 * s/gnu-linux.h (subprocesses):
11007 * s/cygwin.h (subprocesses):
11008 * s/bsd-common.h (subprocesses):
11009 * s/aix4-2.h (subprocesses):
11010 * s/darwin.h (subprocesses): Do not define, defined by default now.
11011
11012 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11013 Remove all references.
11014 (temacs): Add GNUstep specific ld flags.
11015
11016 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11017 similarly to what X does.
11018
110192008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11020
11021 * nsfns.m (x-list-fonts): Remove.
11022 (syms_of_nsfns): Drop the x-list-fonts declaration.
11023 * nsterm.m: Get rid of remaining "//" comments.
11024
110252008-07-22 Chong Yidong <cyd@stupidchicken.com>
11026
11027 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11028
11029 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11030 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11031 (Fns_own_selection_internal, Fx_disown_selection_internal)
11032 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11033
11034 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11035 ... */' style of docstrings. Doc fixes.
11036
110372008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11038
11039 * terminfo.c (UP, BC, PC): Undo previous change.
11040
11041 * nsfns.m: Rename ns prefixed functions/variables to the
11042 corresponding x versions. Update references.
11043
110442008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11045
11046 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11047
110482008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11049
11050 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11051 Remove forwarding functions.
11052 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11053 non-static.
11054 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11055 non-static.
11056 (ns_frame_parm_handlers): Use the new names.
11057 (syms_of_nsfns): Move to the end of file.
11058
11059 * nsterm.m (syms_of_nsterm): Move to the end of file.
11060
11061 * dispnew.c (init_display): Remove code for X10.
11062
110632008-07-22 Jason Rumney <jasonr@gnu.org>
11064
11065 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11066 bare drive.
11067
110682008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11069
11070 * nsterm.m (syms_of_nsterm): Remove debugging println.
11071
110722008-07-22 David Reitter <david.reitter@gmail.com>
11073
11074 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11075 Carbon implementation of the same functionality: execute arbitrary
11076 AppleScript code.
11077
110782008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11079
11080 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11081 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11082 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11083 (Fx_display_mm_height, Fx_display_mm_width)
11084 (Fx_display_backing_store, Fx_display_visual_class)
11085 (Fx_display_save_under, Fx_open_connection)
11086 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11087 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11088 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11089 (Fx_display_pixel_width, Fx_display_pixel_height)
11090 (Fx_display_usable_bounds, Fx_display_planes)
11091 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11092 ... */' style of docstrings.
11093
110942008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11095
11096 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11097 on this platform.
11098 (mips):
11099 * m/iris4d.h (mips): Do not define.
11100 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11101
11102 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11103
11104 * image.c:
11105 * nsfns.m:
11106 * nsselect.m:
11107 * nsterm.h:
11108 * nsterm.m: Rename ns prefixed functions/variables to the
11109 corresponding x versions. Update references.
11110
11111 * m/ibms390x.h (NO_REMAP): Do not undefine.
11112
11113 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11114
111152008-07-21 Chong Yidong <cyd@stupidchicken.com>
11116
11117 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11118 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11119 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11120 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11121 (Fns_display_mm_height, Fns_display_mm_width)
11122 (Fns_display_backing_store, Fns_display_visual_class)
11123 (Fns_display_save_under, Fns_open_connection)
11124 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11125 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11126 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11127 (Fns_display_pixel_width, Fns_display_pixel_height)
11128 (Fns_display_usable_bounds, Fx_display_planes)
11129 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11130
111312008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11132
11133 * print.c (print_object): Check print_depth before searching for
11134 circularities.
11135
111362008-07-21 Michael Albinus <michael.albinus@gmx.de>
11137
11138 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11139 only sprintf.
11140
111412008-07-21 Kenichi Handa <handa@m17n.org>
11142
11143 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11144
111452008-07-20 Andreas Schwab <schwab@suse.de>
11146
11147 * syntax.c (find_start_pos, find_start_value)
11148 (find_start_value_byte, find_start_begv, find_defun_start)
11149 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11150
111512008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11152
11153 * s/sol2-3.h: Insert contents of s/sol2.h.
11154 (LD_SWITCH_SYSTEM): Remove redundant definition.
11155 * s/sol2.h: Remove, unused.
11156
111572008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11158
11159 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11160
111612008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11162
11163 * Makefile.in (ns_appdir): Fix typo in find command.
11164
111652008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11166
11167 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11168
11169 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11170 added not supported anymore.
11171
11172 * s/usg5-4-2.h (LIBS_SYSTEM):
11173 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11174
11175 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11176 * s/lynxos.h (GETPGRP_NO_ARG):
11177 * s/hpux10-20.h (NO_SIOCTL_H):
11178 * s/gnu.h (GETPGRP_NO_ARG):
11179 * s/gnu-linux.h (NO_SIOCTL_H):
11180 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11181 * s/cygwin.h (GETPGRP_NO_ARG):
11182 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11183 (C_DEBUG_SWITCH): Remove duplicate definition.
11184
11185 * m/ibms390.h: Remove boilerplate comments.
11186
11187 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11188
11189 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11190 (wait_reading_process_output): Remove code for SunOS, platform not
11191 supported anymore. Use SOLARIS2 instead of sun.
11192
111932008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11194
11195 * font.c (font_open_by_name): Under NS, default lface height to zero.
11196 (font_open_for_lface): Under NS, set size based on frame fontsize.
11197 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11198 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11199
112002008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11201
11202 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11203 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11204 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11205 YES/NO.
11206 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11207 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11208 * Makefile.in (clean): Clear out build destination dir.
11209
112102008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11211
11212 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11213 xterm, xselect.
11214 * lisp.h: Remove declaration of hash_remove.
11215 * nsgui.h: Remove redefinitions of hash_remove.
11216 * fns.c (hash_remove): Rename to hash_remove_from_table.
11217
112182008-07-19 Seiji Zenitani <zenitani@mac.com>
11219
11220 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11221 strdup() the family UTF8String before modifying it.
11222
112232008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11224
11225 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11226 NS_FACE_BACKGROUND with 0 instead of nil.
11227 * nsfont.m (nsfont_draw): Same.
11228
112292008-07-19 Chong Yidong <cyd@stupidchicken.com>
11230
11231 * nsfns.m (ns_set_background_color): Fix crash.
11232
112332008-07-18 Chong Yidong <cyd@stupidchicken.com>
11234
11235 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11236
112372008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11238
11239 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11240
112412008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11242
11243 * gtkutil.c: Include <config.h> instead of "config.h".
11244
11245 * lisp.h (Foverlay_buffer): Add EXFUN.
11246
11247 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11248 child process to complete child_setup. Undo 2005-09-21 change.
11249
11250 * s/darwin.h: Mention setsid after vfork.
11251
112522008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11253
11254 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11255 Depend on macgui.h.
11256
11257 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11258 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11259
11260 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11261 and f19.
11262 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11263
11264 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11265 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11266 Remove enumerators.
11267
11268 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11269 Check if FACE_FROM_ID returns NULL.
11270
112712008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11272
11273 * w32inevt.c (change_frame_size): Remove extern declaration.
11274 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11275 change_frame_size.
11276
112772008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11278
11279 * getloadavg.c: Revert last change (2008-07-15).
11280
112812008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11282
11283 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11284 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11285 from configure.
11286
112872008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11288
11289 * s/sol2.h:
11290 * s/sol2-4.h: Reorganize conditionals.
11291
11292 * ecrt0.c: Remove code depending on m68000, not used anymore.
11293
11294 * fns.c (hash_remove): Make static.
11295 * lisp.h (hash_remove): Don't prototype.
11296
11297 * m/ibmrs6000.h:
11298 * m/ibms390x.h:
11299 * m/macppc.h: Remove boilerplate comments.
11300
11301 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11302 Solaris, which does not need them.
11303
11304 * m/vax.h: Remove comments about unsupported systems.
11305
11306 * s/darwin.h: Reorganize ifdefs.
11307
113082008-07-17 Andreas Schwab <schwab@suse.de>
11309
11310 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11311
113122008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11313
11314 Use SDATA. Follow coding convention of placing operators at
11315 beginning of next line rather than end of previous line, and placing
11316 spaces around infix operators.
11317
11318 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11319 in case it was defined already.
11320 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11321 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11322 ns_default.
11323 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11324 Lisp_Objects.
11325 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11326 (ns_defined_color, ns_color_to_lisp): Declare.
11327 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11328 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11329 it's accepted even with USE_LISP_UNION_TYPE.
11330 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11331 (update_frame_tool_bar): Remove apparently obsolete tests for
11332 non-integerness of f->tool_bar_lines.
11333 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11334 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11335 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11336 (nsfont_open): Don't confuse NULL for Qnil.
11337 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11338 * menu.h (find_and_call_menu_selection):
11339 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11340 (find_and_return_menu_selection): Always return something.
11341 * frame.h: Include dispextern.h for Display_Info.
11342 (display_x_get_resource): Declare.
11343
113442008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11345
11346 * syntax.c: Remove stdio.h include accidentally introduced in
11347 Emacs.app commit.
11348 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11349 NS_IMPL_COCOA.
11350 * keyboard.c (handle_async_input, input_available_signal): Remove
11351 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11352
113532008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11354
11355 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11356 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11357 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11358 Use SDATA.
11359
11360 * keymap.c: Remove all NS-specific code.
11361 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11362 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11363 where_is_preferred_modifier, return a different value depending on how
11364 preferred is the binding.
11365 (where_is_internal): Adjust accordingly.
11366 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11367 Adjust to new preferred_sequence_p.
11368 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11369 * keyboard.c (parse_solitary_modifier): Not static any more.
11370 * keyboard.h (parse_solitary_modifier): Declare.
11371
113722008-07-16 Andreas Schwab <schwab@suse.de>
11373
11374 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11375 of easymenu.
11376
113772008-07-16 Chong Yidong <cyd@stupidchicken.com>
11378
11379 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11380 that we don't move off the line.
11381
113822008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11383
11384 * keyboard.c (Qsuper): Remove.
11385 (parse_menu_item): Don't call where_is_internal specially for NS.
11386
113872008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11388
11389 * s/gnu-linux.h: Remove boilerplate comments.
11390
11391 * m/alpha.h (__ELF__): Consolidate conditions.
11392
11393 * m/m68k.h (linux): Use GNU_LINUX instead.
11394 Remove boilerplate comments.
11395
11396 * m/intel386.h: Undo refactoring from previous change.
11397 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11398 too, remove dead code.
11399 (linux): Use GNU_LINUX instead.
11400
114012008-07-16 Jason Rumney <jasonr@gnu.org>
11402
11403 * w32gui.h: Repeat 26 June changes lost by last change.
11404
114052008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11406
11407 * systty.h: Remove code for Aix on 386, unsupported platform.
11408
11409 * s/ms-w32.h: Remove boilerplate comments.
11410 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11411
11412 * s/gnu-linux.h (TERM): Remove support.
11413 (HAVE_SYSVIPC): Remove, unused.
11414 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11415 for this system.
11416
11417 * process.c: Remove support for IRIS, unused.
11418 Remove support for TERM, not relevant anymore.
11419
11420 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11421 used with the definition.
11422
11423 * s/aix4-2.h (static): Do not undef.
11424
11425 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11426 only used on Aix.
11427 (HAVE_SYSVIPC): Remove, unused.
11428
11429 * m/hp800.h (CANNOT_DUMP): Do not undef.
11430
11431 * m/alpha.h: Fix comment.
11432
11433 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11434 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11435 used by this configuration.
11436 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11437 * unexec.c: Remove code depending on HPUX and
11438 USG_SHARED_LIBRARIES, not used with this file. Remove code
11439 depending on IRIS, unused. Remove if 0-ed code.
11440
11441 * s/template.h: Remove comments about static.
11442
11443 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11444 Remove if 0-ed code.
11445 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11446 were the same as the default.
11447 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11448 Remove boilerplate comments.
11449 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11450 (HAVE_SYSVIPC): Remove, unused.
11451 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11452
11453 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11454 Remove boilerplate comments.
11455 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11456 Remove boilerplate comments.
11457 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11458 Remove boilerplate comments.
11459 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11460
11461 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11462 USG systems which do not use DATA_SEG_BITS.
11463 Refactor code. Remove boilerplate comments.
11464
11465 * m/ibms390.h:
11466 * m/m68k.h:
11467 * s/bsd-common.h:
11468 * s/cygwin.h:
11469 * s/darwin.h:
11470 * s/freebsd.h:
11471 * s/gnu.h:
11472 * s/msdos.h: Remove boilerplate comments.
11473
11474 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11475 do not use this file.
aac0c6e3
MR
11476 (IRIS_4D): Remove, unused.
11477
11478 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11479 do not use this file.
aac0c6e3
MR
11480 (SIGN_EXTEND_CHAR):
11481 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11482 * unexmips.c: Remove file, unused.
11483
11484 * editfns.c (Fuser_full_name): Replace the only use of
11485 USER_FULL_NAME with its value.
11486 * config.in: Regenerate.
11487
114882008-07-16 David Reitter <david.reitter@gmail.com>
11489
11490 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11491 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11492
114932008-07-16 Glenn Morris <rgm@gnu.org>
11494
11495 * emacs.c (system-type): Doc fix.
11496
114972008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11498
11499 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11500 If the cache doesn't work, let's fix it, rather than work around it.
11501
115022008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11503
11504 * Makefile.in: Correct additions for nsfont.o in last commit.
11505 * nsfont.m: New file (forgot last commit).
11506
115072008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11508
11509 * callproc.c (set_initial_environment): Initialize
11510 Vprocess_environment under CANNOT_DUMP (fixes crash when
11511 batch-compiling for bootstrap).
11512
115132008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11514 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11515
11516 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11517 fix crash due to different init order.
11518
115192008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11520
11521 Changes and additions for NeXTstep windowing system (Cocoa and
11522 GNUstep) support.
11523
11524 * Makefile.in:
11525 * config.in: Support defines and build commands for NS port.
11526 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11527 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11528 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11529 windowing.
11530 (struct face): Add synth_ital field.
11531 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11532 (init_display): Initialize Vinitial_window_system to "ns" when so
11533 compiled.
11534 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11535 (display_arg): Use under NS.
11536 (main): Under NS, allocate autorelease pool and handle command line
11537 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11538 (standard_args): Add NS-specific args.
11539 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11540 * font.c (DEFAULT_ENCODING): New variable.
11541 (font_find_for_lface): Use it.
11542 (syms_of_font): Load syms_of_nsfont under NS.
11543 * font.h: Declare nsfont_driver when compiled under NS.
11544 * fontset.c: When compiling under NS, include nsterm.h.
11545 (fontset_from_font): Autoconstruct fontset under NS.
11546 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11547 symbol, document and use it.
11548 (do_switch_frame): When for_deletion under Cocoa, add
11549 Fraise_frame(Qnil).
11550 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11551 (x_get_arg): Allow "yes" and "no" as boolean values.
11552 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11553 Qright under Cocoa.
11554 (focus-follows-mouse): Default to 0 under NS.
11555 * frame.h (enum output_method): Add output_ns.
11556 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11557 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11558 (FRAME_WINDOW_P): NS-specific definition.
11559 * fringe.c (max_used_fringe_bitmap): Make public.
11560 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11561 (getloadavg): Use NeXT code under descendant OS's.
11562 * image.c (includes and header section, x_create_bitmap_from_data)
11563 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11564 (image_background_transparent, x_clear_image_1)
11565 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11566 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11567 (x_to_xcolors, x_from_xcolors, x_disable_image)
11568 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11569 other GUIs, including XPM support using code originally written for
11570 Carbon GUI.
11571 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11572 using NS API.
11573 (image_ascent): Use font metrics macros instead of direct struct field
11574 access.
11575 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11576 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11577 Also, handle NS as GTK for menu bar purposes.
11578 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11579 toolkit where they differ.
11580 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11581 use cachelist, still needed under NS.
11582 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11583 (struct widget_value): Define it here for menu.c.
11584 * keymap.c (includes): Include modifier internals.
11585 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11586 NS.
11587 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11588 support for preferring sequences using certain modifiers, specified by
11589 the FIRSTONLY argument.
11590 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11591 under NS GNUstep implementation.
11592 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11593 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11594 * menu.c: Include nsterm.h under NS.
11595 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11596 (free_menubar_widget_tree_value, update_submenu_strings)
11597 (find_and_call_menu_selection): Treat NS as X and NT.
11598 (find_and_return_menu_selection): New function, used for popup menus.
11599 * nsgui.h:
11600 * nsterm.h:
11601 * nsfns.m:
11602 * nsimage.m:
11603 * nsmenu.m:
11604 * nsselect.m:
11605 * nsterm.m: New files.
11606 * process.c (wait_reading_process_output): Under NS, call ns_select()
11607 instead of plain select().
11608 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11609 beginning of buffer.
11610 * sysselect.h (init_process): Rename when compiling under Cocoa to
11611 avoid name conflict.
11612 * termhooks.h (display_info): Add ns_display_info to union.
11613 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11614 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11615 COCOA environment.
11616 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11617 unexec() signature. (Note, this will dump, but the resulting file
11618 crashes; unexosx is used instead; keeping around for reference and
11619 possible aid in getting dump working under GNUstep.)
11620 * w32gui.h (button_type, widget_value): Remove definitions (now in
11621 keyboard.h).
11622 * window.c: Include nsterm.h when compiling under NS.
11623 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11624 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11625 other GUI windowing systems.
11626 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11627 GTK.
11628 (x_consider_frame_title): Under NS, set icon type and frame
11629 modified-state indicator; use ns_set_name_as_filename() when using
11630 formatted title.
11631 (update_window_cursor): Make public when compiling under NS.
11632 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11633 (hourglass_atimer, Vhourglass_delay
11634 * xfaces.c (header section, init_frame_faces, clear_font_table)
11635 (defined_color, unload_color, x_face_list_fonts)
11636 (prepare_face_for_display): Add NS support parallel to other GUIs.
11637 Emulate GCs like other non-X GUIs.
11638 (split_font_name): Don't lowercase font name under NS.
11639 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11640 under NS.
11641 * s/darwin.h: Add support for compilation under NS.
11642
116432008-07-15 Jason Rumney <jasonr@gnu.org>
11644
11645 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11646 (w32_show_hourglass): Rename from show_hourglass.
11647 (w32_hide_hourglass): Rename from hide_hourglass.
11648 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11649 (Vhourglass_delay): Declare extern.
11650 (hourglass_started): Remove.
11651
11652 * xdisp.c (Vhourglass_delay): Remove static.
11653 (hourglass_started, start_hourglass, cancel_hourglass):
11654 Don't include these versions on WINDOWSNT.
11655
116562008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11657
11658 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11659 variables (formerly in xfns.c).
11660 (show_hourglass, hide_hourglass): New prototypes (same).
11661 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11662 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11663 in xfns.c).
11664 (syms_of_xdisp): Declare/initialize display-hourglass,
11665 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11666 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11667 formerly in xfns.c.
11668 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11669 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11670 (start_hourglass, cancel_hourglass): Remove.
11671 (show_hourglass, hide_hourglass): Remove prototypes and static
11672 modifiers.
11673 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11674 hourglass_atimer, hourglass_shown_p declaration/initialization.
11675 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11676 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11677 (start_hourglass, cancel_hourglass): Remove.
11678 (show_hourglass, hide_hourglass): Remove prototypes and static
11679 modifiers.
11680 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11681 hourglass_atimer, hourglass_shown_p declaration/initialization.
11682 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11683 (DEFAULT_HOURGLASS_DELAY): Remove.
11684 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11685 hourglass_shown_p declaration/initialization.
11686
116872008-07-14 Jason Rumney <jasonr@gnu.org>
11688
11689 * w32fns.c (w32_get_arg): Remove wrapper function.
11690 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11691 directly.
11692 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11693
116942008-07-14 Kenichi Handa <handa@m17n.org>
11695
11696 * xfont.c (xfont_open): Add workaround for X's bug.
11697
116982008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11699
11700 * fontset.c: Include <stdio.h> unconditionally.
11701
117022008-07-13 Michael Albinus <michael.albinus@gmx.de>
11703
11704 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11705 for filtering.
11706
117072008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11708
11709 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11710
11711 * m/macppc.h:
11712 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11713
11714 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11715 (SPECIAL_EMACS_INT):
11716 * m/ia64.h (SPECIAL_EMACS_INT):
11717 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11718 * s/gnu.h (NLIST_STRUCT):
11719 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11720 * s/gnu-linux.h (LINUX):
11721 * s/msdos.h (HAVE_FACES):
11722 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11723
11724 * systty.h:
11725 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11726 anymore.
11727
117282008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11729
11730 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11731 always defined as int.
11732
11733 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11734 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11735 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11736 * s/freebsd.h (HAVE_WAIT_HEADER):
11737 * s/bsd-common.h (HAVE_UNION_WAIT):
11738 * s/aix4-2.h (HAVE_WAIT_HEADER):
11739 * m/mips.h (HAVE_UNION_WAIT):
11740 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11741 (COFF, static): Do not define, they are undefined later in the file.
11742
11743 * process.c (update_status): Don't use a union.
11744 (status_convert):
11745 (sigchld_handler): Use int instead of WAITTYPE.
11746
117472008-07-12 Chong Yidong <cyd@stupidchicken.com>
11748
11749 * indent.c (Fvertical_motion): Restore hscroll before moving to
11750 goal column.
11751
117522008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11753
11754 * lisp.h: Remove left over code.
11755
117562008-07-11 Andreas Schwab <schwab@suse.de>
11757
11758 * lisp.h: Fix logic in last change.
11759
11760 * menu.h: New file.
11761 * menu.c: Include it.
11762 * xmenu.c: Likewise.
11763 * Makefile.in: Update dependencies.
11764
117652008-07-11 Kenichi Handa <handa@m17n.org>
11766
11767 * fontset.c (fontset_from_font): Cancel the previous change.
11768
117692008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11770
11771 * lisp.h:
11772 * w32heap.c:
11773 * emacs.c:
11774 * alloc.c: Replace all references of NO_UNION_TYPE with
11775 USE_LISP_UNION_TYPE.
11776
11777 * m/xtensa.h (NO_UNION_TYPE):
11778 * m/vax.h (NO_UNION_TYPE):
11779 * m/template.h (NO_UNION_TYPE):
11780 * m/sparc.h (NO_UNION_TYPE):
11781 * m/mips.h (NO_UNION_TYPE):
11782 * m/macppc.h (NO_UNION_TYPE):
11783 * m/m68k.h (NO_UNION_TYPE):
11784 * m/iris4d.h (NO_UNION_TYPE):
11785 * m/intel386.h (NO_UNION_TYPE):
11786 * m/ibms390x.h (NO_UNION_TYPE):
11787 * m/ibms390.h (NO_UNION_TYPE):
11788 * m/ibmrs6000.h (NO_UNION_TYPE):
11789 * m/ia64.h (NO_UNION_TYPE):
11790 * m/hp800.h (NO_UNION_TYPE):
11791 * m/arm.h (NO_UNION_TYPE):
11792 * m/amdx86-64.h (NO_UNION_TYPE):
11793 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11794 defining it the same.
11795
117962008-07-10 Chong Yidong <cyd@stupidchicken.com>
11797
11798 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11799
118002008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11801
11802 * fileio.c:
50426a04 11803 * sysdep.c:
aac0c6e3
MR
11804 * systty.h:
11805 * m/ibmrs6000.h:
11806 * m/iris4d.h:
11807 * s/aix4-2.h:
11808 * s/freebsd.h:
11809 * s/gnu-linux.h:
11810 * s/hpux10-20.h:
11811 * s/hpux11.h:
11812 * s/netbsd.h:
11813 * s/sol2-3.h:
11814 * s/sol2-4.h:
11815 * s/sol2.h:
11816 * s/usg5-4.h:
11817 * s/vms.h: Remove references to unused variables.
11818
118192008-07-10 Andreas Schwab <schwab@suse.de>
11820
11821 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11822 pattern before matching the generic family.
11823
118242008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11825
11826 * unexec.c:
11827 * s/vms.h:
11828 * s/usg5-4-2.h:
11829 * s/sol2-5.h:
11830 * s/freebsd.h:
11831 * s/darwin.h: Remove dead code.
11832
11833 * m/template.h:
11834 * m/sparc.h:
11835 * m/mips.h:
11836 * m/m68k.h:
11837 * m/iris4d.h:
11838 * m/intel386.h:
11839 * m/ibms390x.h:
11840 * m/ibms390.h:
11841 * m/ia64.h:
11842 * m/hp800.h:
11843 * m/arm.h:
11844 * m/amdx86-64.h: Remove dead code and references to unused
11845 and compiler defined symbols.
11846
11847 * unexmips.c:
11848 * unexelf.c: Remove references to desupported systems.
11849
11850 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11851
11852 * m/powermac.h: Remove boilerplate comments.
11853 (NO_REMAP): Remove unused definition.
11854
11855 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11856 define them.
11857
118582008-07-10 Kenichi Handa <handa@m17n.org>
11859
11860 * xfont.c (xfont_open): Log the reason of failure.
11861
118622008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11863
11864 * fontset.c (fontset_get_font_group):
11865 * font.c (font_check_otf): Specify argument types.
11866
118672008-07-09 Kenichi Handa <handa@m17n.org>
11868
11869 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11870 non-ASCII char is found.
11871
11872 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11873 (reorder_font_vector): Change the arg preferred_family to font.
11874 Prefer the spec matching with font.
11875 (fontset_get_font_group): New function.
11876 (fontset_find_font): Change the format of an element of a realized
11877 fontset. Use fontset_get_font_group.
11878 (fontset_font): Try the current fontset, the default fontset, the
11879 fallbacks of the current fontset, and the fallbacks of the default
11880 fontset in this order.
11881 (face_for_char): Delete the shortcut to use the current font.
11882 (fontset_from_font): Don't set fonts for Latin in the fontset.
11883
11884 * font.h (font_make_object, font_match_p): Adjust prototypes.
11885
11886 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11887
11888 * font.c (font_make_object): New arg entity and pixelsize.
11889 (font_check_otf_features, font_check_otf): New functions.
11890 (font_match_p): Check :lang, :script, and :otf properties.
11891
11892 * xfont.c (xfont_open): Adjust it for the change of
11893 font_make_object.
11894 (xfont_text_extents): Fix initial setting of metrics.
11895
11896 * ftfont.c (struct ftfont_info): New member index, delete member
11897 fc_charset_idx. Make the member order compatible with struct
11898 xftfont_info.
11899 (fc_charset_table): Change charset names to registry names.
11900 (ftfont_pattern_entity): Delete the args registry and
11901 fc_charset_idx. Change the value of :font-entity property
11902 to (FONTNAME . INDEX). Always set :registry property to
11903 `iso10646-1'.
11904 (struct ftfont_cache_data): New struct.
11905 (ftfont_lookup_cache): New arg for_face.
11906 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11907 (ftfont_driver): Set the member otf_capability.
11908 (ftfont_get_charset): Adjust it for the change of
11909 fc_charset_table.
11910 (OTF_TAG_SYM): New macro.
11911 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11912 for the change of fc_charset_table.
11913 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11914 ftfont_pattern_entity. Add FC_INDEX to objset.
11915 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11916 and ftfont_pattern_entity.
11917 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11918 font_make_object, struct ftfont_info.
11919 (ftfont_has_char): Use ftfont_get_fc_charset.
11920 (ftfont_otf_features, ftfont_otf_capability): New functions.
11921 (ftfont_shape): Use ftfont_get_otf.
11922 (ftfont_text_extents): Fix initial setting of metrics.
11923
11924 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11925 member order compatible with struct ftfont_info.
11926 (xftfont_open): Add FC_CHARSET to the pattern. Set
11927 xftfont_info->ft_size. Don't unlock the face. Check BDF
11928 properties if appropriate.
11929 (xftfont_close): Unlock the face.
11930 (xftfont_anchor_point, xftfont_shape): Deleted.
11931 (syms_of_xftfont): Don't set members anchor_point and shape of
11932 xftfont_driver.
11933
11934 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11935 font_make_object.
11936
11937 * w32font.c (w32font_open): Adjust it for the change of
11938 font_make_object.
11939 (w32font_open_internal): Don't set properties of font_object here.
11940
119412008-07-08 Chong Yidong <cyd@stupidchicken.com>
11942
11943 * macfns.c (x_create_tip_frame):
11944 * w32fns.c (x_create_tip_frame):
11945 * xfns.c (x_create_tip_frame): Pass parameter argument to
11946 face-set-after-frame-default.
11947
11948 * xfaces.c (Finternal_merge_in_global_face): Save merged
11949 attributes for the default face back into the face vector.
11950
119512008-07-08 Andreas Schwab <schwab@suse.de>
11952
11953 * fontset.h: Declare fontset_from_font. Don't declare
11954 new_fontset_from_font and fontset_from_font_name.
11955 * xterm.c: Include "fontset.h".
11956 * Makefile.in (xterm.o): Update dependencies.
11957
119582008-07-08 Glenn Morris <rgm@gnu.org>
11959
11960 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11961 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11962
119632008-07-07 Chong Yidong <cyd@stupidchicken.com>
11964
11965 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11966 (x_set_frame_parameters): Don't bind it.
11967
119682008-07-07 Juanma Barranquero <lekktu@gmail.com>
11969
11970 * w32fns.c (map_w32_filename): Declare extern.
11971
119722008-07-07 Jason Rumney <jasonr@gnu.org>
11973
11974 * w32term.c (WS_EX_LAYERED): Define if not already.
11975
119762008-07-06 Chong Yidong <cyd@stupidchicken.com>
11977
11978 * xfaces.c (set_font_frame_param): Don't try to set the font
11979 parameter if it is still unspecified in the lface.
11980
119812008-07-05 Chong Yidong <cyd@stupidchicken.com>
11982
11983 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11984 face if it didn't already exist.
11985
11986 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11987
119882008-07-05 Andreas Schwab <schwab@suse.de>
11989
11990 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11991
119922008-07-05 Chong Yidong <cyd@stupidchicken.com>
11993
11994 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11995 word-wrapping.
11996 (IT_DISPLAYING_WHITESPACE): New macro.
11997 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11998 when word-wrapping. Simplify word-wrapping logic. Use correct
11999 pixel positions when saving copies of the iterator.
12000 (display_line): Use proper wrap point if the last character on a
12001 line was preceded by whitespace.
12002
120032008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12004
12005 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12006
120072008-07-04 Kenichi Handa <handa@m17n.org>
12008
12009 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12010
12011 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12012
120132008-07-02 Jason Rumney <jasonr@gnu.org>
12014
12015 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12016 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12017
12018 * xdisp.c (next_element_from_display_vector): Move assignment out
12019 of if statement.
12020
120212008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12022
12023 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12024
12025 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12026 (syms_of_fileio): Initialize and export them.
12027 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12028
12029 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12030 (Fsystem_move_file_to_trash): New function.
12031 (syms_of_w32fns): Export it to lisp.
12032
120332008-07-01 Jason Rumney <jasonr@gnu.org>
12034
12035 * w32font.c (w32font_text_extents): Don't count overhang as part
12036 of width.
12037
120382008-06-30 Miles Bader <miles@gnu.org>
12039
12040 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12041 Add `avoid_cursor_p' field.
12042
12043 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12044 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12045 (append_glyph, append_composite_glyph, produce_image_glyph)
12046 (append_stretch_glyph): Initialize avoid_cursor_p.
12047 (get_it_property): Rename from `get_line_height_property'.
12048 (x_produce_glyphs): Use get_it_property.
12049 (handle_line_prefix, push_display_prop): New functions.
12050 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12051 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12052 New variables.
12053 (syms_of_xdisp): Initialize them.
12054
120552008-06-30 Kenichi Handa <handa@m17n.org>
12056
12057 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12058 XftDefaultSubstitute (they are called in XftFontMatch).
12059 (xftfont_open): Fix args to ftfont_font_format.
12060
12061 * ftfont.c (fc_charset_table): New member lang.
12062 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12063 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12064 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12065 (ftfont_open): Fix args to ftfont_font_format.
12066 (ftfont_font_format): New arg filename.
12067
120682008-06-30 Chong Yidong <cyd@stupidchicken.com>
12069
12070 * xfaces.c (Finternal_merge_in_global_face): If default face was
12071 modified, realize it again. Update the font face attribute.
12072
120732008-06-29 Jason Rumney <jasonr@gnu.org>
12074
12075 * w32term.c (x_set_frame_alpha): Fix logic.
12076
120772008-06-29 Kenichi Handa <handa@m17n.org>
12078
12079 * fontset.c (Finternal_char_font): Return font-object instead of
12080 font-name.
12081
12082 * composite.c (get_composition_id): Fix the width calculation for TAB.
12083
120842008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12085
12086 * indent.c (Fvertical_motion): Properly handle float column arg.
12087
120882008-06-28 Jason Rumney <jasonr@gnu.org>
12089
12090 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12091 (pfnSetLayeredWindowAttributes): New function pointer.
12092 (w32_initialize): Initialize it when supported.
12093 (x_set_frame_alpha): New function.
12094
12095 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12096 (w32_frame_parm_handlers): Set alpha handler.
12097
12098 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12099
121002008-06-27 Jason Rumney <jasonr@gnu.org>
12101
12102 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12103 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12104 (w32_to_x_charset, x_to_w32_charset)
12105 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12106 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12107 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12108 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12109 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12110 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12111 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12112 (Qw32_charset_unicode): Remove.
12113 (syms_of_w32fns): Update for above changes.
12114
12115 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12116 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12117 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12118 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12119 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12120 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12121 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12122 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12123 (syms_of_w32font): Update for above changes.
12124
121252008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12126
12127 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12128 removed #if.
12129 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12130
121312008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12132 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12133
12134 * makefile.w32-in (LOCAL_FLAGS):
12135 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12136
12137 * sysdep.c (_spawnlp, _getpid):
12138 Declare with explicit _cdecl instead of _CRTAPI1.
12139
12140 * editfns.c (Fget_internal_run_time):
12141 Check for WINDOWSNT with #ifdef, not #if.
12142
121432008-06-26 Jason Rumney <jasonr@gnu.org>
12144
12145 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12146
12147 * w32term.c (x_draw_glyph_string_foreground)
12148 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12149 Use FONT_HANDLE macro.
12150 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12151
12152 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12153 (uniscribe_encode_char): Use FONT_HANDLE macro.
12154
12155 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12156 (w32font_text_extents): Use precast w32_font.
12157 (w32font_close): Free cached metrics.
12158 (w32font_open_internal): Allocate space for name on stack.
12159
121602008-06-26 Chong Yidong <cyd@stupidchicken.com>
12161
12162 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12163
121642008-06-26 Jason Rumney <jasonr@gnu.org>
12165
12166 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12167 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12168
121692008-06-26 Juanma Barranquero <lekktu@gmail.com>
12170
12171 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12172
121732008-06-26 Jason Rumney <jasonr@gnu.org>
12174
12175 * w32bdf.c, w32bdf.h: Remove obsolete files.
12176
12177 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12178
12179 * w32gui.h: Don't include w32bdf.h.
12180 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12181 Remove obsolete font support.
12182
12183 * w32font.h (struct w32font_info): Remove compat_w32_font.
12184 Add hfont member.
12185 (FONT_COMPAT): Remove obsolete macro.
12186
12187 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12188 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12189 (w32font_open_internal): Remove compat code. Set new hfont member.
12190 (Fx_select_font): Use new hfont member.
12191
12192 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12193 (uniscribe_encode_char): Use new hfont member.
12194
12195 * w32term.c (x_draw_glyph_string_foreground)
12196 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12197 (x_draw_glyph_string): Use metrics in w32font_info.
12198
121992008-06-26 Kenichi Handa <handa@m17n.org>
12200
12201 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12202
122032008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12204
12205 * unexnext.c:
12206 * m/ews4800.h:
12207 * m/hp9000s300.h:
12208 * m/ibm370aix.h:
12209 * m/mips-siemens.h:
12210 * m/ncr386.h:
12211 * m/next.h:
12212 * m/pmax.h:
12213 * m/powerpcle.h:
12214 * m/tandem-s2.h:
12215 * s/386bsd.h:
12216 * s/bsd386.h:
12217 * s/bsd4-1.h:
12218 * s/bsd4-2.h:
12219 * s/bsdos2-1.h:
12220 * s/bsdos2.h:
12221 * s/bsdos3.h:
12222 * s/bsdos4.h:
12223 * s/nextstep.h:
12224 * s/ultrix4-3.h:
12225 * s/usg5-0.h:
12226 * s/usg5-2-2.h:
12227 * s/usg5-2.h:
12228 * s/usg5-4-3.h:
12229 * s/ux4800.h:
12230 * s/uxpds.h:
12231 * s/uxpv.h: Remove support for obsolete systems.
12232 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12233 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12234 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12235 Remove, insert contents in s/aix4-2.h.
12236 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12237 * s/bsd4-3.h: Rename to ...
12238 * s/bsd-common.h: ... this.
12239 * data.c:
12240 * doc.c:
12241 * ecrt0.c:
12242 * emacs.c:
12243 * fileio.c:
12244 * floatfns.c:
12245 * keyboard.c:
12246 * mem-limits.h:
12247 * print.c:
12248 * process.c:
12249 * sysdep.c:
12250 * syssignal.h:
12251 * systty.h:
12252 * syswait.h:
12253 * term.c:
12254 * unexec.c:
12255 * unexelf.c:
12256 * unexhp9k800.c:
12257 * m/hp800.h:
12258 * m/ibmrs6000.h:
12259 * m/mips.h:
12260 * m/vax.h:
12261 * s/darwin.h:
12262 * s/freebsd.h:
12263 * s/gnu.h:
12264 * s/ms-w32.h:
12265 * s/msdos.h:
12266 * s/netbsd.h:
12267 * s/template.h: Remove references to obsolete variables.
12268
12269 * Makefile.in: Add dependencies for all unexec files.
12270 (admindir): Remove unused variable.
12271 (UNEXEC_SRC): Remove references.
12272
122732008-06-25 Chong Yidong <cyd@stupidchicken.com>
12274
12275 * xfns.c (x_default_font_parameter): If Xft is available, first
12276 try Monospace-12 for the default font.
12277
122782008-06-25 Jason Rumney <jasonr@gnu.org>
12279
12280 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12281
122822008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12283
12284 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12285
12286 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12287
122882008-06-25 Juanma Barranquero <lekktu@gmail.com>
12289
12290 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12291 <scroll-conservatively>: Fix typo in docstring.
12292
12293 * xselect.c (Fx_send_client_event): Doc fix.
12294
122952008-06-25 Kenichi Handa <handa@m17n.org>
12296
12297 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12298
12299 * font.c (font_parse_fcname): Remove unused variables.
12300 (font_sort_entites): Delete the arg SPEC. Caller changed.
12301 Fix for the case of ! best_only.
12302 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12303
12304 * lisp.h (Fstring_to_unibyte): EXFUN it.
12305
12306 * character.h (str_to_unibyte): Extern it.
12307
12308 * character.c (str_to_unibyte): New function.
12309
12310 * fns.c (Fstring_to_unibyte): New function.
12311 (syms_of_fns): Defsubr it.
12312
123132008-06-24 Kenichi Handa <handa@m17n.org>
12314
12315 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12316 DPI too.
12317 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12318
123192008-06-24 Andreas Schwab <schwab@suse.de>
12320
12321 * Makefile.in (${lispsource}loaddefs.el): Rename from
12322 ../lisp/loaddefs.el.
12323 (bootstrap-clean): Do what distclean does but don't remove
12324 Makefile.
12325 (distclean): Depend on bootstrap-clean and remove Makefile.
12326
123272008-06-24 Chong Yidong <cyd@stupidchicken.com>
12328
12329 * buffer.h (struct buffer): New member word_wrap.
12330
12331 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12332 word-wrap.
12333 (init_buffer_once): Initialize them.
12334
12335 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12336 line_wrap enum possessing three possible values.
12337
12338 * termopts.h: Replace truncate_partial_width_windows with
12339 Vtruncate_partial_width_windows.
12340
12341 * dispnew.c (direct_output_for_insert): Avoid direct output when
12342 inserting a space with word wrap on.
12343
12344 * indent.c (compute_motion): Obey integer values of
12345 truncate-partial-width-windows.
12346
12347 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12348 replacing truncate_partial_width_windows.
12349 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12350 truncate only if the window width is below that integer.
12351 (start_display, resize_mini_window, produce_stretch_glyph)
12352 (display_string, move_it_in_display_line_to): Use line_wrap.
12353 (back_to_previous_visible_line_start, reseat_1): Reset
12354 string_from_display_prop_p.
12355 (display_line): Extend default face to end of line when wrapping.
12356
123572008-06-24 Kim F. Storm <storm@cua.dk>
12358
12359 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12360 to wrap continued lines at word boundaries.
12361
123622008-06-24 Jason Rumney <jasonr@gnu.org>
12363
12364 * font.c (Ffont_face_attributes): Multiply pixel size before point
12365 conversion to avoid multiplying rounding error.
12366
123672008-06-23 Jason Rumney <jasonr@gnu.org>
12368
12369 * w32term.c (x_draw_glyph_string_background)
12370 (x_draw_glyph_string): Remove old bdf font code.
12371
12372 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12373
123742008-06-22 Kenichi Handa <handa@m17n.org>
12375
12376 * font.c (font_find_for_lface): Try the adstyle specified in
12377 the property of LFACE_FONT of LFACE (if any).
12378
123792008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12380 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12381
12382 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12383
123842008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12385
12386 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12387 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12388 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12389 (witness-emacs): Remove.
12390 (lisp, shortlisp): Move loaddefs.el earlier.
12391 (mostlyclean): Forget about witness-emacs.
12392
123932008-06-22 Glenn Morris <rgm@gnu.org>
12394
12395 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12396 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12397
123982008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12399
12400 * Makefile.in (PRECOMP): Remove.
12401 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12402 (witness-emacs): Run `compile-first'.
12403 (.el.elc): Use the new compile-onefile target.
12404
124052008-06-21 Kenichi Handa <handa@m17n.org>
12406
12407 * xftfont.c (xftfont_open): Handle QCembolden only when
12408 FC_EMBOLDEN is defined.
12409
124102008-06-21 Andreas Schwab <schwab@suse.de>
12411
12412 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12413 (.el.elc): Likewise.
12414
124152008-06-21 Miles Bader <miles@gnu.org>
12416
12417 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12418 build dir, not the lisp source dir.
12419
124202008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12421
12422 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12423 (bootstrapclean): Remove.
12424 (.el.elc): New rule.
12425 (PRECOMP): New var.
12426 (../lisp/subdirs.el): Remove.
12427 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12428 (witness-emacs): New target.
12429 (mostlyclean): Remove witness-emacs as well.
12430 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12431 Add witness-emacs dependency.
12432
124332008-06-20 Chong Yidong <cyd@stupidchicken.com>
12434
12435 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12436 defined by the font.
12437
124382008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12439
12440 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12441 (bootstrap-clean): New target that keeps TAGS around.
12442 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12443 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12444
124452008-06-20 Jason Rumney <jasonr@gnu.org>
12446
12447 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12448 Remove obsolete font code.
12449
12450 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12451 to determine language support.
12452
124532008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12454
12455 * sysdep.c (cfsetspeed): New fun extracted from the code.
12456 (cfmakeraw): Move before first use.
12457
124582008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12459
12460 * sysdep.c (cfmakeraw): Provide fallback implementation.
12461 (serial_configure): Provide fallback implementation of cfsetspeed.
12462
124632008-06-20 Kenichi Handa <handa@m17n.org>
12464
12465 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12466 the pattern.
12467
12468 * fontset.c (fontset_from_font): Copy font_spec before changing
12469 the elements.
12470
12471 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12472
124732008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12474
12475 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12476 for explicit `font' parameters.
12477
12478 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12479
124802008-06-19 Kenichi Handa <handa@m17n.org>
12481
12482 * frame.c: Include <ctype.h>.
12483 (x_set_font_backend): Allow spacing characters in the X resource
12484 for FontBackend.
12485
124862008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12487
12488 * w32fns.c, xfns.c (Qfont_param): New var.
12489 (syms_of_w32fns): Initialize it.
12490 (x_default_font_parameter): Record explicit `font' into
12491 `font-parameter'.
12492
124932008-06-18 Kenichi Handa <handa@m17n.org>
12494
12495 * font.c (font_parse_xlfd): Fix previous change.
12496 (font_parse_fcname): Don't use :fc-unknown-spec.
12497 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12498 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12499 (font_add_log): Prepend the driver name to the resulting fonts.
12500
12501 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12502 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12503 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12504
12505 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12506 (QCembolden): New variables.
12507 (syms_of_xftfont): DEFSYM them.
12508 (xftfont_open): Call XftFontMatch. Don't trust the result of
12509 XftTextExtents8 if the pixel_size is less than 5.
12510
125112008-06-18 Andreas Schwab <schwab@suse.de>
12512
12513 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12514 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12515
125162008-06-18 Jason Rumney <jasonr@gnu.org>
12517
12518 * w32font.c (w32font_list, w32font_match): Add logging.
12519
12520 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12521
125222008-06-17 Chong Yidong <cyd@stupidchicken.com>
12523
12524 * font.c (font_parse_fcname): Store divider characters for
12525 unknown-spec list. For known key symbols, intern using correct
12526 symbol name.
12527
125282008-06-17 Kenichi Handa <handa@m17n.org>
12529
12530 * xfaces.c (realize_default_face): If the frame is not on window
12531 system, set the fontset of face to nil.
12532
125332008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12534
12535 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12536
125372008-06-16 Juanma Barranquero <lekktu@gmail.com>
12538
12539 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12540 (build_font_name_from_vector): Delete externs.
12541
12542 * xfaces.c (struct font_name): Don't declare.
12543
125442008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12545
12546 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12547
125482008-06-16 Chong Yidong <cyd@stupidchicken.com>
12549
12550 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12551
125522008-06-16 Juanma Barranquero <lekktu@gmail.com>
12553
12554 * font.c (Ffont_spec): Fix usage in docstring.
12555 (Ffont_face_attributes): Doc fix.
12556
125572008-06-16 Andreas Schwab <schwab@suse.de>
12558
12559 * font.c (Ffont_face_attributes): Fix definition.
12560
125612008-06-16 Jason Rumney <jasonr@gnu.org>
12562
12563 * font.h (font_style_symbolic_from_value): Remove.
12564
12565 * font.c (font_style_symbolic_from_value): Remove.
12566 (font_style_symbolic): Revert to pre 2008-06-13 version.
12567
12568 * w32font.c (w32_to_fc_weight): New function.
12569 (w32font_full_name, logfont_to_fcname): Use it.
12570
125712008-06-16 Kenichi Handa <handa@m17n.org>
12572
12573 * font.c (font_check_object): Delete it.
12574 (font_clear_cache): Check if a font-object is alive.
12575 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12576 font-object to nil.
12577 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12578 (font_at): Don't call font_check_object.
12579 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12580
125812008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12582
12583 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12584
125852008-06-16 Chong Yidong <cyd@stupidchicken.com>
12586
12587 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12588
125892008-06-15 Chong Yidong <cyd@stupidchicken.com>
12590
12591 * font.c (font_parse_fcname): Only one decimal point.
12592 (font_unparse_fcname): Handle data in family and foundry indices
12593 as symbols, not strings.
12594 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12595
12596 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12597
12598 * font.h (font_unparse_gtkname): Add prototype.
12599
126002008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12601
12602 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12603
126042008-06-15 Andreas Schwab <schwab@suse.de>
12605
12606 * font.c (font_update_drivers): Fix crash when no drivers match.
12607
126082008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12609
12610 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12611 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12612
126132008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12614
12615 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12616
126172008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12618
12619 * process.c (Fserial_process_configure, Fprocess_send_eof):
12620 Use EQ to compare Lisp_Objects.
12621
126222008-06-13 Jason Rumney <jasonr@gnu.org>
12623
12624 * w32fns.c (Fw32_select_font): Remove old font API function.
12625
12626 * w32font.c (logfont_to_fcname): New function.
12627 (Fx_select_font): New font dialog function compatible with
12628 GTK/fontconfig version.
12629
12630 * font.c (font_style_symbolic_from_value): New function.
12631 (font_style_symbolic): Use it.
12632
12633 * font.h (font_style_symbolic_from_value): Declare new function.
12634
126352008-06-13 Juanma Barranquero <lekktu@gmail.com>
12636
12637 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12638 <font-width-table>: Fix typos in docstrings.
12639
126402008-06-13 Daniel Engeler <engeler@gmail.com>
12641
12642 These changes add serial port access.
12643 * process.c: Add HAVE_SERIAL.
12644 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12645 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12646 (list_processes_1, select_wrapper, Fstop_process)
12647 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12648 (status_notify): Modify to handle serial processes.
12649 [HAVE_SERIAL] (Fserial_process_configure)
12650 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12651 New functions.
12652 * process.h (struct Lisp_Process): Add `type'.
12653 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12654 New functions.
12655 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12656 serial ports.
b71ac3dd 12657 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12658 * w32.h: Add FILE_SERIAL.
12659 (struct _child_process): Add ovl_read, ovl_write.
12660
126612008-06-13 Kenichi Handa <handa@m17n.org>
12662
12663 * dispextern.h (enum lface_attribute_index): New member
12664 LFACE_FOUNDRY_INDEX.
12665
12666 * font.c (font_score): Delete arg alternate_families. Check only
12667 weight, slant, width, and size. Ignore the difference of alias
12668 style symbols.
12669 (font_sort_entites): Adjust for the above change. Reflect the
12670 order of font-driver to scores.
12671 (font_list_entities): Don't check alternate_familes here.
12672 (font_clear_prop): Handle foundry.
12673 (font_update_lface): Don't parse "foundry-family" form here.
12674 Handle FONT_FOUNDRY_INDEX.
12675 (font_find_for_lface): Likewise. Handle alternate families here.
12676 If registry is nil, try iso8859-1 and ascii-0.
12677 (font_open_for_lface): Pay attention to size in ENTITY.
12678 (font_open_by_name): Simplify by calling font_load_for_lface.
12679 (free_font_driver_list): Delete it.
12680 (font_update_drivers): Preserve the order of backends.
12681 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12682 of font_score and font_sort_entites.
12683 (font_update_sort_order): Likewise.
12684
12685 * xfaces.c (LFACE_FOUNDRY): New macro.
12686 (check_lface_attrs): Check foundry.
12687 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12688 (merge_face_vectors): Check foundry.
12689 (merge_face_ref): Likewise.
12690 (Finternal_set_lisp_face_attribute): Likewise.
12691 (x_update_menu_appearance): Likewise.
12692 (Finternal_get_lisp_face_attribute): Likewise.
12693 (lface_hash): Likewise.
12694 (lface_same_font_attributes_p): Likewise.
12695 (x_supports_face_attributes_p): Likewise.
12696 (tty_supports_face_attributes_p): Likewise.
12697 (Finternal_set_alternative_font_family_alist): Intern strings.
12698 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12699 (realize_default_face): Set LFACE_FOUNDRY (lface).
12700
12701 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12702 font-driver at first.
12703
12704 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12705
127062008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12707
12708 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12709
127102008-06-12 Jim Meyering <meyering@redhat.com>
12711
12712 Make unexec_free handle NULL the same way free does.
12713 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12714
127152008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12716
12717 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12718 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12719 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12720 (WEAK_ALIAS): Simplify.
12721 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12722 when searching a unibyte buffer.
12723
127242008-06-12 Chong Yidong <cyd@stupidchicken.com>
12725
12726 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12727
127282008-06-12 Juanma Barranquero <lekktu@gmail.com>
12729
12730 * w32font.c: Include ctype.h.
12731
127322008-06-11 Jason Rumney <jasonr@gnu.org>
12733
12734 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12735 misreported as space.
12736 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12737 as aliases for registry iso10646-1.
12738
127392008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12740
12741 * buffer.c (clone_per_buffer_values): Skip `name'.
12742
127432008-06-11 Chong Yidong <cyd@stupidchicken.com>
12744
12745 * font.c (font_parse_fcname): Fix last change; accept decimal
12746 points in font size.
12747
127482008-06-10 Jason Rumney <jasonr@gnu.org>
12749
12750 * w32uniscribe.c (add_opentype_font_name_to_list):
12751 Skip non unicode fonts.
12752
127532008-06-10 Chong Yidong <cyd@stupidchicken.com>
12754
12755 * xfns.c (Fx_font_dialog): New function.
12756
12757 * gtkutil.c (xg_dialog_response_cb): Rename from
12758 xg_file_response_callback.
12759 (pop_down_dialog): Rename from pop_down_file_dialog.
12760 (xg_get_file_name): Callers changed.
12761 (xg_get_font_name): New function.
12762
12763 * gtkutil.h (xg_get_font_name): Insert prototype.
12764
127652008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12766
12767 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12768 x_underline_minimum_display_offset.
12769 (syms_of_xdisp): Declare it here rather than in xterm.c.
12770 * dispextern.h (underline_minimum_offset): Declare it.
12771 * w32term.c (x_draw_glyph_string): Use it.
12772 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12773 (syms_of_xterm): Don't declare it any more.
12774 (x_draw_glyph_string): Adjust to the new name.
12775
8719abec 127762008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12777
12778 * xterm.c (x_underline_minimum_display_offset): New var.
12779 (x_draw_glyph_string): Use it.
12780 (syms_of_xterm): Declare it.
12781
127822008-06-10 Chong Yidong <cyd@stupidchicken.com>
12783
12784 * font.c (font_parse_fcname): Accept GTK-style font names too.
12785
127862008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12787
12788 * dired.c (file_name_completion): Don't return t if the match is exact
12789 but with different capitalization.
12790 * minibuf.c (Ftry_completion): Simplify.
12791
12792 * window.c (Vwindow_point_insertion_type): New var.
12793 (set_window_buffer): Use it.
12794 (syms_of_window): Init and export it to Lisp.
12795
127962008-06-10 Kenichi Handa <handa@m17n.org>
12797
12798 * font.h (font_intern_prop): Prototype adjusted.
12799
12800 * font.c (font_intern_prop): New arg force_symbol.
12801 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12802 Adjust for the change of font_intern_prop.
12803
12804 * ftfont.c (ftfont_pattern_entity):
12805 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12806 (w32_registry):
12807 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12808 the change of font_intern_prop.
12809
128102008-06-09 Juanma Barranquero <lekktu@gmail.com>
12811
12812 * w32menu.c (digest_single_submenu): Declare extern.
12813
128142008-06-09 Jason Rumney <jasonr@gnu.org>
12815
12816 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12817
12818 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12819 (parse_single_submenu): Remove.
12820 (digest_single_submenu): Remove.
12821 (syms_of_w32menu): Don't initialise variables that have moved
12822 to menu.c.
12823 (set_frame_menubar): Sync with version in xmenu.c.
12824 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12825
12826 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12827 Make static again.
12828
128292008-06-09 Jason Rumney <jasonr@gnu.org>
12830
12831 Changes to w32 files related to the move of common menu code
12832 to menu.c on 2008-06-08 by Chong Yidong.
12833
12834 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12835 defs to w32gui.h.
12836 (single_keymap_panes, push_menu_item, push_menu_pane):
12837 Make globally visible.
12838
12839 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12840 (local_free, malloc_widget_value, free_widget_value)
12841 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12842 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12843 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12844 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12845 (menu_items, menu_items_allocated, menu_items_used)
12846 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12847 (init_menu_items, finish_menu_items, discard_menu_items)
12848 (grow_menu_items, push_submenu_start, push_submenu_end)
12849 (push_left_right_boundary, push_menu_pane, push_menu_item)
12850 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12851 (free_menubar_widget_tree_value, parse_single_submenu)
12852 (update_submenu_strings): Remove functions.
12853 (xmalloc_widget_value): Remove and declare extern.
12854
12855 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12856 (OBJ1): Build it.
12857
12858 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12859 (local_heap, local_alloc, local_free, malloc_widget_value)
12860 (free_widget_value): Define here.
12861
128622008-06-09 Kenichi Handa <handa@m17n.org>
12863
12864 * font.h (Qascii_0): Extern it.
12865
12866 * font.c (Qascii_0): New variable.
12867 (syms_of_font): DEFSYM it.
12868 (font_open_by_name): If the registry "iso8859-1" fails, try also
12869 "ascii-0".
12870
12871 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12872
128732008-06-08 Kenichi Handa <handa@m17n.org>
12874
12875 * .gdbinit (xfont): New command.
12876
128772008-06-08 Andreas Schwab <schwab@suse.de>
12878
12879 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12880 * Makefile.in (menu.o): Update dependencies.
12881
12882 * Makefile.in (obj): Always add menu.o.
12883 * emacs.c (main): Always call syms_of_menu.
12884 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12885
128862008-06-08 Chong Yidong <cyd@stupidchicken.com>
12887
12888 * Makefile.in: Compile menu.c.
12889
12890 * lisp.h: Declare syms_of_menu.
12891
12892 * emacs.c (main): Call syms_of_menu.
12893
12894 * keyboard.h: Relocate platform-independent menu definitions from
12895 xmenu.c.
12896
12897 * menu.c: New file. Relocate platform-independent menu
12898 definitions from xmenu.c. Suggested by Adrian Robert.
12899
12900 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12901 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12902 (menu_items_used, menu_items_n_panes)
12903 (menu_items_submenu_depth): Move to keyboard.h.
12904 (init_menu_items, finish_menu_items, unuse_menu_items)
12905 (discard_menu_items, restore_menu_items, save_menu_items)
12906 (grow_menu_items, push_submenu_start, push_submenu_end)
12907 (push_left_right_boundary, push_menu_pane, push_menu_item)
12908 (keymap_panes, single_keymap_panes, single_menu_item)
12909 (list_of_panes, list_of_items, find_and_call_menu_selection)
12910 (xmalloc_widget_value, free_menubar_widget_value_tree)
12911 (parse_single_submenu, digest_single_submenu)
12912 (update_submenu_strings): Move to menu.c.
12913
129142008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12915
12916 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12917
129182008-06-06 Miles Bader <miles@gnu.org>
12919
12920 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12921 face, not frame default.
12922
129232008-06-05 Martin Rudalics <rudalics@gmx.at>
12924
12925 * window.c (pop_up_windows, pop_up_frames)
12926 (display_buffer_reuse_frames, Vpop_up_frame_function)
12927 (Vdisplay_buffer_function, Veven_window_heights)
12928 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12929 (Vspecial_display_function, Vsame_window_buffer_names)
12930 (Vsame_window_regexps, split_height_threshold)
12931 (Vsplit_window_preferred_function): Move those vars to window.el.
12932 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12933 (Fdisplay_buffer): Move those functions to window.el.
12934 (syms_of_window): Remove corresponding declarations.
12935 (display_buffer): New function.
12936 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12937 * dispnew.c (Flast_nonminibuf_frame): New function.
12938 * buffer.c (Fpop_to_buffer): Move to window.el.
12939
129402008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12941
12942 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12943
129442008-06-05 Kenichi Handa <handa@m17n.org>
12945
12946 * coding.c (detect_coding): Fix previous change.
12947 (detect_coding_system): Likewise.
12948
129492008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12950
12951 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12952
12953 * keymap.c (Vminibuffer_local_filename_must_match_map):
12954 Rename from Vminibuffer_local_must_match_filename_map.
12955 (syms_of_keymap):
12956 * minibuf.c (Fcompleting_read): Adjust accordingly.
12957 * commands.h: Rename declaration as well.
12958
129592008-06-05 Kenichi Handa <handa@m17n.org>
12960
12961 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12962 family name.
12963 (Ffont_put): Likewise.
12964
12965 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12966 current font-spec.
12967
12968 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12969 is unspecified.
12970
12971 * xfaces.c (realize_x_face): If the font-related face attributes
12972 are the same as those of default face, realize a new fontset from
12973 default->fontset.
12974 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12975
129762008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12977
12978 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12979 (move_it_in_display_line): New wrapper.
12980
12981 * window.c (window_scroll_pixel_based_preserve_x)
12982 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12983 (window_scroll_pixel_based, window_scroll_line_based):
12984 Use them to preserve column positions.
12985 (syms_of_window): Initialize them.
12986
12987 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12988 (HPOS . VPOS) pair.
12989
12990 * dispextern.h (move_it_in_display_line): Declare.
12991
129922008-06-05 Juanma Barranquero <lekktu@gmail.com>
12993
12994 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12995 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12996 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12997
129982008-06-04 Juanma Barranquero <lekktu@gmail.com>
12999
13000 * window.c (Fset_window_parameter): Doc fix.
13001 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13002
130032008-06-04 Joakim Verona <joakim@verona.se>
13004
13005 * window.h (struct window): Add new member window_parameters.
13006
13007 * window.c (Fwindow_parameters, Fwindow_parameter)
13008 (Fset_window_parameter): New defuns.
13009 (syms_of_window): Defsubr the new defuns.
13010 (make_window): Initialize window_parameters to nil.
13011
130122008-06-04 John Paul Wallington <jpw@pobox.com>
13013
13014 * eval.c (Fdefmacro): Doc fix.
13015
130162008-06-04 Kenichi Handa <handa@m17n.org>
13017
13018 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13019 Be sure to call setup_coding_system when we find a proper coding system.
13020 (detect_coding_system): Fix handling of coding->head_ascii.
13021
130222008-06-03 Andreas Schwab <schwab@suse.de>
13023
13024 * font.c (font_prop_validate_spacing): Fix last change.
13025
130262008-06-03 Kenichi Handa <handa@m17n.org>
13027
13028 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13029 (font_parse_fcname): Fix handling of unknown key.
13030
13031 * xfont.c (xfont_list): Try an alias.
13032
13033 * charset.c (char_charset): Return NULL if the arg charset_list is
13034 specified and C doesn't belong to any of them.
13035
130362008-06-02 Chip Coldwell <coldwell@redhat.com>
13037
13038 * font.c (font_pixel_size): Don't take cdr of an integer.
13039
130402008-06-02 Jim Meyering <meyering@redhat.com>
13041
13042 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13043 * alloc.c (xfree): Return right away for a NULL arg.
13044 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13045 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13046 * mac.c (create_apple_event_from_event_ref): Likewise.
13047 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13048 Likewise.
13049 * doprnt.c (doprnt1): Likewise.
13050 * frame.c (frame): Likewise.
13051 * keyboard.c (wipe_kboard): Likewise.
13052 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13053 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13054 * term.c (tty_default_color_capabilities, maybe_fatal)
13055 (delete_tty): Likewise.
13056 * w16select.c (string): Likewise.
13057 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13058 * w32bdf.c (w32_free_bdf_font): Likewise.
13059 * w32fns.c (w32_unload_font): Likewise.
13060 * w32font.c (w32font_close): Likewise.
13061 * window.c (size_window): Likewise.
13062 * xselect.c (receive_incremental_selection): Likewise.
13063 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13064 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13065 * w32.c (stat): Likewise.
13066
13067 Remove useless if-before-free tests.
13068 * editfns.c (Fset_time_zone_rule): Likewise.
13069 * lread.c (nosuffix): Likewise.
13070 * ralloc.c (get_bloc): Likewise.
13071 * regex.c (reg_free): Likewise.
13072 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13073 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13074 * xsmfns.c (smc_save_yourself_CB): Likewise.
13075
130762008-06-02 Kenichi Handa <handa@m17n.org>
13077
13078 * font.c (font_find_for_lface): Handle float font size.
13079 (font_open_for_lface): Likewise.
13080
13081 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13082 comparing the properties.
13083
130842008-06-01 Jason Rumney <jasonr@gnu.org>
13085
13086 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13087 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13088 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13089 Don't add empty script list.
13090 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13091
130922008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13093
13094 * Makefile.in (dot, dotdot): Remove, update users.
13095 ".." has been used elsewhere in the file for a long time.
13096 (LIBXT_STATIC): Remove conditional based on unused variable.
13097
130982008-06-01 Miles Bader <miles@gnu.org>
13099
13100 * xfaces.c (Vface_remapping_alist): New variable.
13101 (syms_of_xfaces): Initialize it.
13102 (enum named_merge_point_kind): New type.
13103 (struct named_merge_point): Add `named_merge_point_kind' field.
13104 (push_named_merge_point): Make cycle detection respect different
13105 named-merge-point kinds.
13106 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13107 Remove face-name alias resolution.
13108 (lface_from_face_name): New definition using
13109 `lface_from_face_name_no_resolve'.
13110 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13111 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13112 (get_lface_attributes): New definition that layers face-remapping on
13113 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13114 (lookup_basic_face): New function.
13115 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13116 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13117 `get_lface_attributes'.
13118 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13119 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13120 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13121
13122 * xdisp.c (init_iterator): Pass base_face_id through
13123 `lookup_basic_face' when we actually use it as a face-id.
13124 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13125 DEFAULT_FACE_ID.
13126
13127 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13128 lookup the initial face-id.
13129
13130 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13131
131322008-06-01 Juanma Barranquero <lekktu@gmail.com>
13133
13134 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13135 (Fremove_text_properties): Fix typos in docstrings.
13136
131372008-05-31 Kenichi Handa <handa@m17n.org>
13138
13139 * font.c (font_list_entities): Fix the car part of data to be
13140 stored in the cache.
13141
13142 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13143
131442008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13145
13146 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13147 Add a `test' argument so another predicate than `equal' can be used.
13148 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13149 (map_char_table): Remove unused vars `c' and `i'.
13150 * lisp.h (Foptimize_char_table): Adjust declaration.
13151 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13152
131532008-05-30 Kenichi Handa <handa@m17n.org>
13154
13155 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13156 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13157 defined.
13158
131592008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13160
13161 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13162 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13163 frame-local settings for the same variable.
13164
131652008-05-30 Kenichi Handa <handa@m17n.org>
13166
13167 * fontset.c (Ffont_info): Move to font.c.
13168 (syms_of_fontset): Delete defsubr of Sfont_info.
13169
13170 * font.c (font_style_to_value, font_score): Delete casting of the
13171 args to xstcasecmp.
13172 (register_font_driver): Increment num_font_drivers only when
13173 registering the driver globally.
13174 (Ffont_info): Move from fontset.c. Handle a font object too.
13175 (syms_of_font): Defsubr Sfont_info.
13176
131772008-05-29 Kenichi Handa <handa@m17n.org>
13178
13179 * coding.h (enum define_coding_utf8_arg_index): New enum.
13180 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13181 coding_attr_utf_bom.
13182 (enum utf_bom_type): Rename from utf_16_bom_type.
13183 (struct utf_16_spec): Adjust for the above change.
13184 (struct coding_system): Add utf_8_bom in `spec' union.
13185
13186 * coding.c (CODING_UTF_8_BOM): New macro.
13187 (enum coding_category): Delete coding_category_utf_8, add
13188 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13189 coding_category_utf_8_sig.
13190 (CATEGORY_MASK_UTF_8): Delete it.
13191 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13192 (CATEGORY_MASK_UTF_8_SIG): New macros.
13193 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13194 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13195 CATEGORY_MASK_UTF_8_SIG.
13196 (CATEGORY_MASK_UTF_8): New macro.
13197 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13198 (detect_coding_utf_8): Check BOM.
13199 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13200 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13201 (encode_coding_utf_16): Likewise.
13202 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13203 (detect_coding, detect_coding_system): Handle utf-8-auto.
13204 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13205 (syms_of_coding): Fix setting up of Vcoding_category_table.
13206
132072008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13208
13209 * process.c (Faccept_process_output): If `millisec' is non-nil,
13210 `seconds' default to 0.
13211 (wait_reading_process_output): Also return non-nil if we read output
13212 from a non-running process.
13213
132142008-05-29 Jason Rumney <jasonr@gnu.org>
13215
13216 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13217 `raster' specified.
13218 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13219 in the uniscribe backend, but disallow any font that has no
13220 unicode subrange support.
13221
132222008-05-29 Juanma Barranquero <lekktu@gmail.com>
13223
13224 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13225 Fix typos in docstrings.
13226
132272008-05-29 Kenichi Handa <handa@m17n.org>
13228
13229 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13230 (Fx_family_fonts): Set frame correctly.
13231
132322008-05-28 Jason Rumney <jasonr@gnu.org>
13233
13234 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13235
132362008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13237
13238 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13239 calling build_annotations.
13240
132412008-05-28 Juanma Barranquero <lekktu@gmail.com>
13242
13243 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13244 (Fencode_coding_string):
13245 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13246 <latin-extra-code-table>: Fix typos in docstrings.
13247 (syms_of_coding) <coding-system-alist>: Doc fix.
13248 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13249
132502008-05-28 Kenichi Handa <handa@m17n.org>
13251
13252 * fontset.c (Ffont_info): Don't call font_close_object.
13253
13254 * font.c (font_parse_family_registry): Use Ffont_put to validate
13255 foundry and family.
13256 (font_delete_unmatched): Don't check spacing.
13257 (font_list_entities): Add spacing to the spec to list fonts.
13258
13259 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13260 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13261
13262 * coding.c (encode_coding_raw_text): Fix previous change.
13263 (encode_coding_object): When the dst_object is a buffer and is
13264 different from src_object, move gap to PT.
13265
132662008-05-27 Chong Yidong <cyd@stupidchicken.com>
13267
13268 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13269
132702008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13271
13272 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13273 all branches. Compute it differently.
13274
13275 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13276
132772008-05-27 Juanma Barranquero <lekktu@gmail.com>
13278
13279 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13280 into "else if () ... else ...".
13281
132822008-05-27 Jason Rumney <jasonr@gnu.org>
13283
13284 * w32font.c (w32font_open_internal): Determine if glyph indices
13285 are likely to work here.
13286
132872008-05-27 Chong Yidong <cyd@stupidchicken.com>
13288
13289 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13290 draw overlap glyphs with appropriate highlighting.
13291
132922008-05-27 Kenichi Handa <handa@m17n.org>
13293
13294 * xfont.c (xfont_open): Fix calculation of font->average_width.
13295
132962008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13297
13298 * casefiddle.c (casify_object): Try to guess better whether the
13299 argument is a byte or a char.
13300
133012008-05-26 Andreas Schwab <schwab@suse.de>
13302
13303 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13304 Always send multiples of format size.
13305
13306 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13307
133082008-05-26 Jason Rumney <jasonr@gnu.org>
13309
13310 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13311 (compute_metrics): Don't set failure if we just cleared the cache.
13312 (w32_weight_table): Remove unused variable.
13313 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13314 backwards compatibility.
13315
133162008-05-25 Kenichi Handa <handa@m17n.org>
13317
13318 * w32term.c (x_draw_glyph_string):
13319 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13320
13321 * xfaces.c: Delete unused function prototypes.
13322 (xstrlwr, font_frame): Delete them.
13323 (clear_face_cache): Delete unused variable.
13324
13325 * xftfont.c (xftfont_open): Delete unused variable.
13326 If underline_thickness is not 1, adjust underline_position.
13327
13328 * ftxfont.c (ftxfont_open): Delete unused variable.
13329
13330 * fontset.c (face_for_char): Optimize for the case of no charset
13331 property.
13332
13333 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13334 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13335 (otf_open, font_otf_capability, generate_otf_features)
13336 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13337 Comment out by surrounding "#if 0" and "#endif" for the moment.
13338 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13339 (syms_of_font): Codes for accessing above commented out.
13340
133412008-05-24 Eli Zaretskii <eliz@gnu.org>
13342
13343 * w32proc.c: Include dispextern.h.
13344
13345 * w32.c: Include dispextern.h.
13346
133472008-05-23 Juanma Barranquero <lekktu@gmail.com>
13348
13349 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13350 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13351 Fix typos in docstrings.
13352
133532008-05-23 Jason Rumney <jasonr@gnu.org>
13354
13355 * xsmfns.c: Remove includes that are already included by config.h.
13356
133572008-05-23 Kenichi Handa <handa@m17n.org>
13358
13359 * charset.c (Qemacs, charset_emacs): New variables.
13360 (char_charset): Fix for non-Unicode characters.
13361 (syms_of_charset): Define charset_emacs.
13362
13363 * w32term.c (x_draw_glyph_string): Be sure to update
13364 s->underline_thickness and s->underline_position. Be sure to draw
13365 underline within the current line area.
13366
13367 * xterm.c (x_draw_glyph_string): Be sure to update
13368 s->underline_thickness and s->underline_position. Be sure to draw
13369 underline within the current line area.
13370
13371 * fontset.c: Delete unused variables and add casting for char *
13372 throughout the file.
13373 (fontset_font): Try the fallback fonts of the current fontset
13374 before consulting the default fontset.
13375
13376 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13377
13378 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13379
133802008-05-22 Jason Rumney <jasonr@gnu.org>
13381
13382 * font.c: Don't include strings.h.
13383
13384 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13385
13386 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13387 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13388 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13389 to call xstrcasecmp.
13390
13391 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13392
13393 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13394
13395 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13396
13397 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13398
133992008-05-22 Kenichi Handa <handa@m17n.org>
13400
13401 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13402
13403 * font.c (font_prop_validate_style): Adjust for the format
13404 change of font_style_table.
13405
13406 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13407 two args.
13408
13409 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13410 two args.
13411
134122008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13413
13414 * minibuf.c (keys_of_minibuf): Delete.
13415 * lisp.h (keys_of_minibuf): Delete.
13416 * emacs.c (main): Don't call keys_of_minibuf.
13417
134182008-05-22 Kenichi Handa <handa@m17n.org>
13419
13420 * ftfont.c (ftfont_resolve_generic_family): Rename from
13421 ftfont_list_generic_family. Return a single family for each
13422 generic family.
13423 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13424 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13425 Call font_add_log.
13426 (ftfont_match): Call font_add_log.
13427
13428 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13429 (FONT_DEBUG): Define it.
13430 (font_add_log): Extern it.
13431 (font_assert): Rename from xassert.
13432
13433 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13434 (xfont_list_family): Call font_add_log.
13435 (xfont_match): Likewise.
13436 (memq_no_quit): Delete.
13437
13438 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13439 call of Ffont_xlfd_name.
13440
13441 * xfaces.c (struct table_entry, slant_table, weight_table)
13442 (swidth_table): Move to font.c.
13443
13444 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13445 xassert are changed to font_assert. Delete many unused variables.
13446 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13447 New variables.
13448 (struct table_entry): Move from xfaces.c and modified.
13449 (weight_table, slant_table, width_table): Move from xfaces.c and
13450 contents adjusted for the change of struct table_entry.
13451 (font_style_to_value, font_style_symbolic): Adjust for the
13452 format change of font_style_table.
13453 (font_parse_family_registry): Don't overwrite existing foundry and
13454 family of font_spec.
13455 (font_score): Fix calculation of diff for sizes.
13456 (font_sort_entites): Call font_add_log.
13457 (font_delete_unmatched): Return a newly created list.
13458 (font_list_entities): Fix previous change. Call font_add_log.
13459 (font_matching_entity, font_open_entity, font_close_entity):
13460 Call font_add_log.
13461 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13462 (Finternal_set_font_style_table): Delete.
13463 (BUILD_STYLE_TABLE): New macro.
13464 (build_style_table): New function.
13465 (Vfont_log, font_log_env_checked): New variables.
13466 (font_add_log): New function.
13467 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13468 Declare Lisp variables "font-weight-table", "font-slant-table",
13469 "font-width-table", and "font-log". Initialize font_style_table.
13470
134712008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13472
13473 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13474
134752008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13476 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13477
13478 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13479 (Vframe_alpha_lower_limit): New variable.
13480 (x_set_alpha): New function.
13481
13482 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13483
13484 * xfns.c (x-create-frame, Qalpha):
13485 Initialize the frame parameter `alpha'.
13486 * xterm.c (OPAQUE, OPACITY): New.
13487 (x_set_frame_alpha): New function.
13488 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13489
13490 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13491 * w32fns.c (w32_frame_parm_handlers): Likewise.
13492
134932008-05-20 Jason Rumney <jasonr@gnu.org>
13494
13495 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13496 truetype fonts to opentype list.
13497
134982008-05-20 Juanma Barranquero <lekktu@gmail.com>
13499
13500 * fontset.c (Ffontset_info): Doc fix.
13501 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13502 <ignore-relative-composition>: Fix typos in docstrings.
13503
13504 * font.c (syms-of-font) <font-encoding-alist>:
13505 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13506 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13507 (Ffont_otf_alternates): Doc fixes.
13508
135092008-05-20 Kenichi Handa <handa@m17n.org>
13510
13511 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13512 font.h through out the file.
13513 (FONT_DRIVERS): Rename from FONTOBJ.
13514 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13515 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13516
13517 * emacs.c (main): Call syms_of_font unconditionally.
13518
13519 * font.h (find_font_encoding): Extern it.
13520
13521 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13522 fontset.c.
194d44e7 13523 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13524 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13525 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13526 only when HAVE_WINDOW_SYSTEM is defined.
13527 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13528 when HAVE_WINDOW_SYSTEM is defined.
13529
13530 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13531 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13532
13533 * xfaces.c: Include font.h unconditionally.
13534 (merge_face_ref, merge_face_vectors)
13535 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13536
135372008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13538
13539 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13540 indirect_variable.
13541 * eval.c (lisp_indirect_variable): New fun.
13542 (Fuser_variable_p): Use it.
13543
135442008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13545
13546 * lisp.h (indirect_variable):
13547 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13548 Use Lisp_Symbol pointers rather than Lisp_Object.
13549 Adjust callers.
13550 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13551 To this end, change calling-convention.
13552
13553 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13554 if some non-hidden buffers are selected by string&pred.
13555
135562008-05-19 Chong Yidong <cyd@stupidchicken.com>
13557
13558 * process.c (wait_reading_process_output): Always check status
13559 when in batch mode.
13560
135612008-05-19 Kenichi Handa <handa@m17n.org>
13562
13563 * font.c (font_list_entities): Fix handling of cache.
13564 (font_matching_entity): Likewise.
13565
13566 * ftfont.c (cs_iso8859_1): Delete.
13567 (ft_face_cache): New variable.
13568 (struct ftfont_info): New member fc_charset_idx.
13569 (ftfont_build_basic_charsets): Delete.
13570 (fc_charset_table): New variable.
13571 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13572 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13573 Callers changed.
13574 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13575 (ftfont_spec_pattern): New argument fc_charset_idx.
13576 Check registry more rigidly. Change callers.
13577 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13578 change of :font-entity property of the font.
13579
13580 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13581 property of the font.
13582
135832008-05-18 Juanma Barranquero <lekktu@gmail.com>
13584
13585 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13586 (Funencodable_char_position, Fcheck_coding_systems_region)
13587 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13588 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13589 (Ffind_operation_coding_system, Fset_coding_system_priority)
13590 (Fcoding_system_eol_type): Doc fixes.
13591
135922008-05-17 Glenn Morris <rgm@gnu.org>
13593
13594 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13595
135962008-05-16 Eli Zaretskii <eliz@gnu.org>
13597
13598 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13599 and st_gid.
13600
13601 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13602 HAVE_WINDOW_SYSTEM is not defined.
13603
13604 * xfaces.c (merge_face_ref, merge_face_vectors)
13605 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13606 HAVE_WINDOW_SYSTEM is defined.
13607 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13608
136092008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13610
13611 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13612
136132008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13614
13615 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13616
136172008-05-15 Kenichi Handa <handa@m17n.org>
13618
13619 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13620 preference.
13621
136222008-05-15 Glenn Morris <rgm@gnu.org>
13623
13624 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13625
136262008-05-15 Chong Yidong <cyd@stupidchicken.com>
13627
13628 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13629 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13630
13631 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13632
136332008-05-15 Kenichi Handa <handa@m17n.org>
13634
13635 * ftfont.c (ftfont_list): Downcase family name to check generic
13636 families.
13637
13638 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13639 font-spec for QCfont value.
13640
13641 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13642 buffer. Check the return value of it.
13643
136442008-05-14 Jason Rumney <jasonr@gnu.org>
13645
13646 * w32term.c (w32_get_glyph_overhangs): Remove.
13647 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13648
136492008-05-14 Kenichi Handa <handa@m17n.org>
13650
13651 * font.c (font_prop_validate): Make nil a valid value.
13652 (font_clear_cache): Check if the cached vector of entities is nil
13653 or not.
13654
136552008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13656
13657 * emacs.c (main_thread): Conditionalize on
13658 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13659 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13660
13661 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13662 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13663 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13664
136652008-05-14 Kenichi Handa <handa@m17n.org>
13666
13667 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13668 has no corresponding coding system.
13669
136702008-05-14 Jason Rumney <jasonr@gnu.org>
13671
13672 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13673
13674 * w32font.h (w32font_open_internal): Update declaration.
13675
13676 * w32font.c (w32font_open_internal): Change last argument from
13677 w32font_info struct to font object. Fill in font object from
13678 font_entity. Get Outline metrics if possible. Use them to
13679 calculate underline position and thickness. Use xlfd name as name
13680 property. Don't set codepage.
13681 (w32font_open): Pass font_object to w32font_open_internal. Don't
13682 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13683 (w32font_draw): Use s->font.
13684 (clear_cached_metrics): Don't clear non-existent blocks.
13685
13686 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13687 font was not found.
13688 (x_draw_glyph_string): Use underline position and thickness from font.
13689
13690 * w32uniscribe.c (uniscribe_open): Pass font_object to
13691 w32font_open_internal.
13692
136932008-05-14 Kenichi Handa <handa@m17n.org>
13694
13695 These changes are to delete all legacy font-handling codes, and
13696 make Emacs use only font-backends.
13697
13698 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13699 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13700
13701 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13702
13703 * charset.h (Vcharset_non_preferred_head)
13704 (Vcurrent_iso639_language): Extern them.
13705
13706 * charset.c (Vcharset_non_preferred_head): New variable.
13707 (Vcurrent_iso639_language): New variable.
13708 (syms_of_charset): Declare it as a Lisp variable.
13709 (char_charset): Don't check non preferred charsets. As a last
13710 resort, return charset_unicode.
13711 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13712
13713 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13714 conditionals. Don't check enable_font_backend. Delete all codes
13715 used only when USE_FONT_BACKEND is not defined.
13716
13717 * dispextern.h (struct glyph_string): Change type of `font' to
13718 `struct font *'.
13719 (struct glyph_string): New member underline_position and
13720 underline_thickness.
13721 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13722 (struct face): Change type of `font' to `struct font *'. Remove
13723 members `font_name', `font_info_id'.
13724 (per_char_metric, encode_char): Delete externs.
13725 (calc_pixel_width_or_height): Adjust the prototype.
13726
13727 * emacs.c (enable_font_backend): Delete extern.
13728 (main): Don't set enable_font_backend. Don't check the command
13729 line argument "-disable-font-backend".
13730
13731 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13732 (enum font_property_index): New members FONT_DPI_INDEX,
13733 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13734 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13735 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13736 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13737 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13738 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13739 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13740 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13741 (struct font_spec, struct font_entity): New structs.
13742 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13743 (struct font): Many members from old "struct font_info" moved to
13744 here. Members font and entity deleted.
13745 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13746 the new font-related objects.
13747 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13748 (CHECK_FONT_GET_OBJECT): Likewise.
13749 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13750 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13751 (struct font_driver): New members case_sensitive anc check. Type
13752 of the member list and open changed.
13753 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13754 (font_symbolic_width, font_find_object, font_get_spec)
13755 (font_set_lface_from_name): Delete extern.
13756 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13757
13758 * font.c: Include <strings.h>.
13759 (enable_font_backend): Delete it.
13760 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13761 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13762 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13763 (null_string): Delete it.
13764 (null_vector): Make it static.
13765 (font_family_alist): Delete it.
13766 (Qnormal): Extern it.
13767 (QCextra, QClanguage): Delete it.
13768 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13769 (font_make_spec, font_make_entity, font_make_object)
13770 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13771 the string. Callers changed.
13772 (font_pixel_size): Adjusted for the format change of font-related
13773 objects.
13774 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13775 (font_style_to_value, font_style_symbolic): New function.
13776 (build_font_family_alist): Delete it.
13777 (font_registry_charsets): Use Fassoc_string instead of
13778 assq_no_quit.
13779 (font_prop_validate_symbol): Don't return null_string.
13780 (font_prop_validate_style): Adjusted for the change of
13781 style-related values in a font vector.
13782 (font_property_table): Delete entries for QClanguage and
13783 QCantialias, add entries for QCavgwidth.
13784 (get_font_prop_index): Delete the 2nd argument FROM.
13785 (font_prop_validate): Arguments changed.
13786 (font_put_extra): Adjusted for the change of font-related objects.
13787 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13788 (font_parse_fcname, font_unparse_fcname)
13789 (font_prepare_composition): Likewise.
13790 (font_parse_family_registry): Renamed from font_merge_old_spec.
13791 (otf_open): Delete the 1st arg entity.
13792 (font_otf_capability): Adjusted for the above change.
13793 (font_score): New arg alternate_families. Adjusted for the change
13794 of font-related objects.
13795 (font_sort_entites): New arg best_only.
13796 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13797 Delete them.
13798 (font_match_p): Check alternate families.
13799 (font_find_object): Delete it.
13800 (font_check_object): New function.
13801 (font_clear_cache): Adjusted for the change of font-related objects.
13802 (font_delete_unmatched): New arg.
13803 (font_list_entities): Call font_driver->list with a spec that
13804 doesn't specify style-related properties.
13805 (font_matching_entity): Arguments changed. Caller changed.
13806 (font_open_entity): Adjusted for the change of font-related objects.
13807 (font_close_object, font_has_char, font_encode_char)
13808 (font_get_name, font_get_spec): Likewise.
13809 (font_spec_from_name, font_clear_prop, font_update_lface):
13810 New functions.
13811 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13812 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13813 (font_at): Adjusted for the change of font-related objects.
13814 (font_range): New function.
13815 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13816 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13817 (Fcopy_font_spec, Fmerge_font_spec): New function.
13818 (Ffont_family_list): Renamed from list-families.
13819 (Finternal_set_font_style_table): Arguments changed.
13820 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13821 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13822 change of font-related objects.
13823 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13824
13825 * fontset.h (struct font_info): Delete it. Most members go to
13826 struct font.
13827 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13828 (enum FONT_SPEC_INDEX): Delete it.
13829 (font_info, list_fonts_func, load_font_func, query_font_func)
13830 (set_frame_fontset_func, find_ccl_program_func)
13831 (get_font_repertory_func, new_fontset_from_font_name): Delete
13832 externs.
13833 (fontset_from_font_name): Extern it.
13834 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13835 (FONT_INFO_FROM_FACE): Deleted.
13836 (face_for_font): Adjust prototype.
13837
13838 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13839 conditionals. Don't check enable_font_backend. Delete all codes
13840 used only when USE_FONT_BACKEND is not defined.
13841 (get_font_info_func, list_font_func, load_font_func)
13842 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13843 (get_font_repertory_func): Delete them.
13844 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13845 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13846 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13847 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13848 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13849 (fontset_compare_rfontdef): New function.
13850 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13851 rfont-defs by qsort. Adjusted for the change of font-group vector.
13852 (load_font_get_repertory): Deleted.
13853 (fontset_find_font): Use new macros to ref/set elements of
13854 font-def and rfont-def.
13855 (fontset_font): Fix the timing of remembering that no font for C.
13856 (free_face_fontset): Do nothing if the face has no fontset.
13857 (face_suitable_for_char_p): Use new macros to ref/set elements of
13858 rfont-def.
13859 (face_for_char): Likewise. Call face_for_char with font_object.
13860 (fs_load_font): Delete. Delete #pragma surrounding it.
13861 (fs_query_fontset): Use strcasecmp instead of strcmp.
13862 (generate_ascii_font_name): Adjusted for the format change of
13863 font-spec.
13864 (Fset_fontset_font): Likewise. Use new macros to set elements of
13865 font-def.
13866 (Fnew_fontset): Use font_unparse_xlfd to generate
13867 FONTSET_ASCII (fontset).
13868 (new_fontset_from_font_name): Deleted.
13869 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13870 a fontset is already created for the font. FIx updating of
13871 Vfontset_alias_alist.
13872 (fontset_ascii_font): Deleted.
13873 (Ffont_info): Adjusted for the format change of font-spec.
13874 (Finternal_char_font): Likewise.
13875 (Ffontset_info): Likewise.
13876 (syms_of_fontset): Don't check load_font_func.
13877
13878 * fns.c (internal_equal): Handle PREV_FONT.
13879
13880 * frame.h: Delete USE_FONT_BACKEND conditional.
13881
13882 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13883 conditionals. Don't check enable_font_backend. Delete all codes
13884 used only when USE_FONT_BACKEND is not defined.
13885 (x_set_font): Call x_new_font, not x_new_fontset2.
13886 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13887 already set for the frame.
13888
13889 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13890 a font-entity by font_make_entity. Use font_intern_prop instead
13891 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13892 font property. If a font is scalable, set avgwidth property to 0.
13893 Set font-entity property by font_put_extra.
13894 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13895 (ffont_driver): Adjusted for the change of struct font_driver.
13896 (ftfont_spec_pattern): New function.
13897 (ftfont_list): Return a list, not vector.
13898 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13899 (ftfont_list_family): Don't downcase names.
13900 (ftfont_free_entity): Deleted.
13901 (ftfont_open): Return a font-object. Adjusted for the change of
13902 struct font. Get underline_thickness and underline_position from
13903 font property. Don't update dpyinfo->smallest_font_height and
13904 dpyinfo->smallest_char_width.
13905 (ftfont_close): Don't free `struct font'.
13906 (ftfont_has_char): Adjusted for the format change of font-entity.
13907 (ftfont_encode_char, ftfont_text_extents): Likewise.
13908
13909 * ftxfont.c (ftxfont_list): Return a list, not vector.
13910 (ftxfont_open): Return a font-object. Adjusted for the change of
13911 struct font. Get underline_thickness and underline_position from
13912 font property. Don't update dpyinfo->smallest_font_height and
13913 dpyinfo->smallest_char_width.
13914 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13915 (ftxfont_draw): Adjusted for the change of struct font.
13916
13917 * image.c (image_ascent): Don't include "charset.h". Include
13918 "character.h" and "font.h".
13919
13920 * lisp.h (enum pvec_type): New member PREV_FONT.
13921 (Fassoc_string): EXFUN it.
13922
13923 * print.c: Include font.h.
13924 (print_object): Handle font-related objects.
13925
13926 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13927 conditionals. Don't check enable_font_backend. Delete all codes
13928 used only when USE_FONT_BACKEND is not defined.
13929 (handle_auto_composed_prop): Do nothing if it->f is not on a
13930 window system. Check how many following characters can be
13931 displayed by the same font.
13932 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13933 'struct font *'.
13934 (get_char_face_and_encoding): Assign the whole encoding task to
13935 the `encode-char' method of a font driver.
13936 (fill_composite_glyph_string): Adjusted for the change of `struct
13937 face' and `struct glyph_string'.
13938 (fill_glyph_string): Likewise.
13939 (get_per_char_metric): Arguments changed.
13940 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13941 and `struct glyph_string'.
13942 (produce_stretch_glyph, calc_line_height_property)
13943 (x_produce_glyphs): Likewise.
13944
13945 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13946 conditionals. Don't check enable_font_backend. Delete all codes
13947 used only when USE_FONT_BACKEND is not defined. Use
13948 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13949 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13950 (Qp): Extern them.
13951 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13952 Deleted.
13953 (struct font_name): Deleted.
13954 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13955 (compare_fonts_by_sort_order): New function.
13956 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13957 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13958 Deleted.
13959 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13960 compare_fonts_by_sort_order.
13961 (Fx_font_family_list): Call Ffont_family_list.
13962 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13963 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13964 (face_symbolic_slant, face_symbolic_swidth)
13965 (split_font_name_into_vector, build_font_name_from_vector)
13966 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13967 (font_rescale_ratio, split_font_name, build_font_name)
13968 (free_font_names, sort_fonts, x_face_list_fonts)
13969 (face_font_available_p, sorted_font_list, cmp_font_names)
13970 (font_list_1, concat_font_list, font_list, remove_duplicates):
13971 Deleted.
13972 (Fx_list_fonts): Use Ffont_list.
13973 (LFACE_AVGWIDTH): Deleted.
13974 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13975 by FONTP.
13976 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13977 (set_lface_from_font_name): Delete it.
13978 (set_lface_from_font): Renamed from
13979 set_lface_from_font_and_fontset. Caller changed. Don't set
13980 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13981 for face.
13982 (merge_face_vectors): Copy font-spec if necessary.
13983 Clear properties of the font-spec if necessary.
13984 (merge_face_ref): Clear properties of the font-spec if necessary.
13985 (Finternal_set_lisp_face_attribute): Likewise.
13986 (set_font_frame_param): Use font_load_for_lface to load a
13987 font-object, and call Fmodify_frame_parameters with it.
13988 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13989 font name by Ffont_xlfd_name.
13990 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13991 QCslant, and QCwidth.
13992 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13993 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13994 Compare fonts by EQ.
13995 (lookup_non_ascii_face): Deleted.
13996 (face_for_font): The 2nd argument changed.
13997 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13998 Check atomic font properties by case insensitive.
13999 (realize_non_ascii_face): Set face->overstrike correctly.
14000 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14001 (dump_realized_face): Get font name from
14002 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14003
14004 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14005 conditionals. Don't check enable_font_backend. Delete all codes
14006 used only when USE_FONT_BACKEND is not defined.
14007 (xic_create_xfontset): Original code deleted and renamed from
14008 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14009 (x_make_gc): Don't set GCFont in GCs.
14010 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14011 opened by "fixed".
14012 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14013 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14014 get_font_repertory_func.
14015
14016 * xfont.c: Include <stdlib.h> and "ccl.h".
14017 (struct xfont_info): New structure.
14018 (xfont_query_font): Deleted.
14019 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14020 moved from xterm.c.
14021 (xfont_driver): Adjusted for the change of struct font_driver.
14022 (compare_font_names): New function.
14023 (xfont_list_pattern): Sort font names case insensitively. Make
14024 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14025 (xfont_list): Return a list, not vector.
14026 (xfont_match): If the font doesn't have QCname property, generate
14027 a name from the other font properties.
14028 (xfont_open): Return a font-object. Adjusted for the change of
14029 struct font. Get underline_thickness and underline_position from
14030 font property. Don't update dpyinfo->smallest_font_height and
14031 dpyinfo->smallest_char_width.
14032 (xfont_close): Don't free struct font.
14033 (xfont_prepare_face): Adjusted for the change of struct font.
14034 (xfont_done_face): Deleted.
14035 (xfont_has_char): Adjusted for the change of struct font.
14036 (xfont_encode_char, xfont_draw): Likewise.
14037 (xfont_check): New function.
14038
14039 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14040 callback function.
14041 (xftfont_match): Adjusted for the format change of font-entity.
14042 (xftfont_open): Adjusted for the format change of font-entity and
14043 font-object. Adjusted for the change of struct font. Return a
14044 font-object. Don't update dpyinfo->smallest_font_height and
14045 dpyinfo->smallest_char_width.
14046 (xftfont_close): Block input while calling XftFontClose.
14047 (xftfont_prepare_face): Don't block input while calling
14048 xftfont_get_colors. Adjusted for the change of struct font.
14049 (xftfont_shape): Return value of error case fixed.
14050
14051 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14052
14053 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14054 conditionals.
14055 (FONT_WIDTH): Return (f)->max_width.
14056 (struct x_display_info): Delete member `font'.
14057 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14058 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14059 (struct x_output): Change type of `font' to `struct font *'.
14060
14061 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14062 conditionals. Don't check enable_font_backend. Delete all codes
14063 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14064 (x_per_char_metric, x_encode_char): Deleted.
14065 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14066 (x_compute_glyph_string_overhangs): Adjusted for the change of
14067 `struct face'.
14068 (x_draw_glyph_string_foreground)
14069 (x_draw_composite_glyph_string_foreground): Likewise.
14070 (x_draw_glyph_string): Likewise. Use font->underline_position and
14071 font->underline_thickness.
14072 (x_new_font): Renamed from x_new_fontset2.
14073 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14074 (x_check_font): Call `check' method of a font driver.
14075 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14076 (x_query_font, x_get_font_repertory): Deleted.
14077 (x_find_ccl_program): Renamed and moved to xfont.c.
14078 (x_redisplay_interface): Adjusted for the change of `struct
14079 redisplay_interface'.
14080
14081 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14082 conditionals. Don't check enable_font_backend. Delete all codes
14083 used only when USE_FONT_BACKEND is not defined. Surround non-used
14084 code by "#ifdef OLD_FONT" and "endif".
14085 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14086
14087 * w32font.h (struct w32font_info): New member.
14088 (FONT_COMPAT): New macro.
14089 (w32font_open_internal): Prototype adjusted.
14090
14091 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14092 OLD_FONT" and "endif".
14093
14094 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14095 conditionals. Don't check enable_font_backend. Delete all codes
14096 used only when USE_FONT_BACKEND is not defined.
14097 (w32font_open): Return a font-object. Make a font-object by
14098 font_make_object. Adjusted for the change of struct w32font_info.
14099 (w32font_close): Don't free struct font. Adjusted for the change
14100 of struct w32font_info.
14101 (w32font_encode_char, w32font_text_extents, w32font_draw):
14102 Adjusted for the change of struct w32font_info.
14103 (w32font_draw): Likewise.
14104 (w32font_list_internal): Return a list, not vector.
14105 (w32font_open_internal): Change the 4th arg to font-object.
14106 Adjusted for the change of struct w32font_info and font-object format.
14107 (add_font_name_to_list): Don't downcase names.
14108 (w32_enumfont_pattern_entity): Make a font-entity by
14109 font_make_entity. Adjusted for the format change of font-entity.
14110 Use FONT_SET_STYLE to set a style-related font property. If a
14111 font is scalable, set avgwidth property to 0. Set font-entity
14112 property by font_put_extra.
14113 (font_matches_spec): Adjusted for the format change of font-entity.
14114 (w32_weight_table, w32_decode_weight): New variables.
14115 (w32_encode_weight): New function.
14116 (fill_in_logfont): Adjusted for the format change of font-spec.
14117 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14118 weight value.
14119 (w32font_driver): Adjusted for the change of struct font_driver.
14120
14121 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14122 conditionals. Don't check enable_font_backend. Surround non-used
14123 code by "#ifdef OLD_FONT" and "endif".
14124 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14125 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14126
14127 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14128 conditionals. Don't check enable_font_backend. Delete all codes
14129 used only when USE_FONT_BACKEND is not defined. Surround non-used
14130 code by "#ifdef OLD_FONT" and "endif".
14131
14132 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14133 (uniscribe_open): Return value changed to font-object.
14134 Adjusted for the format change of font-object.
14135 (uniscribe_otf_capability): Adjusted for the change of struct font.
14136 (add_opentype_font_name_to_list): Don't downcase names.
14137 (uniscribe_font_driver): Adjusted for the change of struct
14138 font_driver.
14139
141402008-05-13 Chong Yidong <cyd@stupidchicken.com>
14141
14142 * dispnew.c (update_frame_1): Check if tty output is still valid
14143 before flushing it.
14144
141452008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14146
14147 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14148 to Gtk+ menus.
14149
141502008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14151
14152 * dired.c (file_name_completion): Tweak the code so as to always do it
14153 in a single pass. Tighten the scope of some variables.
14154
14155 * dired.c (Qdefault_directory): New var.
14156 (file_name_completion): Use it instead of Fexpand_file_name.
14157 (syms_of_dired): Initialize it.
14158
141592008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14160
14161 * fileio.c (double_dollars): Remove dead code.
14162
141632008-05-10 Eli Zaretskii <eliz@gnu.org>
14164
14165 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14166 Mention w32-get-true-file-attributes in doc string.
14167
14168 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14169
141702008-05-09 Glenn Morris <rgm@gnu.org>
14171
14172 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14173 2008-04-23.
14174
141752008-05-09 Eli Zaretskii <eliz@gnu.org>
14176
14177 Support for reporting owner and group of each file on MS-Windows:
14178 * dired.c (stat_uname, stat_gname): New functions, with special
14179 implementation for w32.
14180 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14181
14182 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14183 (dflt_group_name): New static variable.
14184 (dflt_group): Rename from the_group.
14185 (init_user_info): Init dflt_group fields. Get user's group name
14186 from LookupAccountSid.
14187 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14188 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14189 New initialization states.
14190 (globals_of_w32): Initialize them to zero. Initialize the default
14191 group name to "None".
14192 (GetFileSecurity_Name): New global var, the name of the function
14193 to call for GetFileSecurity.
14194 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14195 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14196 (get_file_security, get_security_descriptor_owner)
14197 (get_security_descriptor_group, is_valid_sid)
14198 (get_file_security_desc, get_rid, get_name_and_id)
14199 (get_file_owner_and_group): New functions.
14200 (stat): Use get_file_security_desc and get_file_owner_and_group to
14201 report the owner and primary group of each file. Don't ignore the
14202 high 32 bits of file's size, now that st_size is 64-bit wide.
14203 Fix test when to get true file attributes.
14204 (init_user_info): Use get_rid instead of equivalent inline code.
14205 (fstat): Don't ignore the high 32 bits of file's size.
14206
142072008-05-09 Chong Yidong <cyd@stupidchicken.com>
14208
14209 * image.c (png_load): Use correct bit-depth for setting background
14210 color.
14211
142122008-05-08 Eli Zaretskii <eliz@gnu.org>
14213
14214 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14215 epa-hook.elc.
14216
142172008-05-08 Juanma Barranquero <lekktu@gmail.com>
14218
14219 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14220
142212008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14222
14223 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14224 because the original parameters are in pure storage now.
14225 (mac_window): Remove unused params. Update callers.
14226
142272008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14228
14229 * lread.c (substitute_object_recurse): Use lower-level primitives.
14230 Don't signal errors when traversing sub-char-tables.
14231 Don't loop over all the possible characters when traversing char-tables.
14232
14233 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14234 just like we do in print.c.
14235
142362008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14237
14238 * minibuf.c (Ftry_completion): Remove code left over from when we used
14239 scmp instead of Fcompare_strings.
14240
142412008-05-04 Juanma Barranquero <lekktu@gmail.com>
14242
14243 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14244
142452008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14246
14247 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14248 Create bitmap context in native byte order.
14249
14250 * macterm.c (XDrawLine)
14251 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14252 context in native byte order.
14253
142542008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14255
14256 * config.in: Regenerate.
14257
14258 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14259 New definitions for Image I/O support.
14260 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14261 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14262 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14263 (mac_data_provider_release_data, image_load_image_io)
14264 [USE_MAC_IMAGE_IO]: New functions.
14265 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14266 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14267 (init_image_func_pointer) [MAC_OSX]: Remove function.
14268 (image_load_quartz2d) [MAC_OSX]: Check availability of
14269 CGImageCreateWithPNGDataProvider at compile time.
14270 Use lowercase `false' for boolean constant.
14271 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14272 Use image_load_image_io.
14273 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14274 Don't check MyCGImageCreateWithPNGDataProvider.
14275 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14276 Don't call init_image_func_pointer.
14277
14278 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14279
14280 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14281 Make variable non-static.
14282 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14283 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14284
14285 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14286 (RED_FROM_ULONG): Mask off higher bits.
14287 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14288
14289 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14290 Include AvailabilityMacros.h.
14291 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14292 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14293
142942008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14295
14296 * chartab.c (Fset_char_table_range): If range is t, really set all
14297 chars to that value.
14298
142992008-05-03 Eli Zaretskii <eliz@gnu.org>
14300
14301 * dired.c (Ffile_attributes): Don't allow the device number become
14302 negative.
14303
143042008-05-02 Daiki Ueno <ueno@unixuser.org>
14305
14306 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14307
143082008-05-02 Juri Linkov <juri@jurta.org>
14309
14310 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14311 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14312 DEFAULT argument as a list of default values in docstrings.
14313
143142008-05-01 Chong Yidong <cyd@stupidchicken.com>
14315
14316 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14317
143182008-05-01 Martin Rudalics <rudalics@gmx.at>
14319
14320 * dispnew.c (change_frame_size_1): Preserve small windows when
14321 shrinking frames by calling set_window_height|width with third
14322 arg 2.
14323
14324 * window.h (struct window): Replace field too_small_ok by field
14325 resize_proportionally.
14326
14327 * window.c (make_window): Initialize resize_proportionally.
14328 (enlarge_window): Temporarily set resize_proportionally to make
14329 sure that shrink_windows does scale the window proportionally.
14330 (shrink_windows): When window has resize_proportionally set try
14331 to shrink it proportionally by stealing from other windows.
14332 (struct saved_window, Fset_window_configuration)
14333 (compare_window_configurations): Handle resize_proportionally.
14334 (WINDOW_TOTAL_SIZE): New macro.
14335 (window_min_size, shrink_windows, size_window): Use it.
14336 (check_min_window_sizes): Remove. Invalid values of
14337 window-min-height|width are handled by window_min_size_2 now.
14338 (size_window, Fsplit_window, enlarge_window)
14339 (adjust_window_trailing_edge, grow_mini_window): Don't call
14340 check_min_window_sizes.
14341 (window_min_size_2, window_min_size_1, window_min_size):
14342 New argument safe_p for retrieving "safe" minimum sizes.
14343 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14344 (adjust_window_trailing_edge, grow_mini_window):
14345 Adjust arguments of window_min_size... functions.
14346 (shrink_windows): Argument min_size removed. New argument
14347 safe_p allows shrinking windows to their safe minimum sizes.
14348 Calculate minimum size and decide whether a window shall be
14349 deleted for each window individually.
14350 (size_window): When nodelete_p equals 2, tell shrink_windows to
14351 delete windows only if their new minimum size is no more safe.
14352 (shrink_window_lowest_first): Call window_min_size_1 to make
14353 sure to preserve modeline of bottom-most window when resizing
14354 the minibuffer.
14355 (Fset_window_configuration, Fcurrent_window_configuration)
14356 (compare_window_configurations): Do not handle
14357 window-min-height|width any more.
14358 (syms_of_window): Clarify window-min-height|width doc-strings.
14359
143602008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14361
14362 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14363 some more. Copy some of the code from Ftry_completions.
14364 Remove special case code that dates back to initial revision when the
14365 slash was only added when necessary and that can't trigger nowadays.
14366
143672008-04-27 Kenichi Handa <handa@m17n.org>
14368
14369 * font.c (font_prop_validate): Signal `error' instead of `font'.
14370
143712008-04-29 Jason Rumney <jasonr@gnu.org>
14372
14373 * w32fns.c (Fw32_battery_status): New defun.
14374 (syms_of_w32fns): Defsubr it.
14375
143762008-04-28 Andreas Schwab <schwab@suse.de>
14377
14378 * dired.c (file_name_completion): Fix another mixing of encoded
14379 and decoded names.
14380
143812008-04-28 Juanma Barranquero <lekktu@gmail.com>
14382
14383 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14384
143852008-04-27 Juanma Barranquero <lekktu@gmail.com>
14386
14387 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14388
143892008-04-27 Andreas Schwab <schwab@suse.de>
14390
14391 * dired.c (file_name_completion): Fix inappropriate mixing of
14392 encoded and decoded names.
14393
14394 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14395
14396 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14397
143982008-04-26 Eli Zaretskii <eliz@gnu.org>
14399
14400 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14401 2008-03-31, it's not needed anymore with `struct stat' definition
14402 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14403 for the same reasons.
14404
144052008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14406
14407 * m/sparc.h: Additional redefinitions for GNU/Linux.
14408
144092008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14410
14411 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14412 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14413 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14414 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14415 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14416 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14417 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14418 Likewise.
14419
14420 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14421 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14422 (mac_ax_number_of_characters): Add externs.
14423 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14424 [USE_MAC_TSM]: Likewise.
14425 (mac_handle_text_input_event) [MAC_OSX]:
14426 Handle kEventTextInputOffsetToPos for no active input area case.
14427 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14428 (mac_handle_document_access_event)
14429 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14430 (install_application_handler) [MAC_OSX]: Register handlers for
14431 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14432 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14433 Register mac_handle_document_access_event.
14434
14435 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14436 Make functions non-static.
14437
144382008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14439
14440 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14441 (read_file_name_completion_ignore_case, insert_default_directory)
14442 (Qdefault_directory): Move to minibuffer.el.
14443 (Fread_file_name): Call the new `read-file-name' instead.
14444
144452008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14446
14447 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14448 Make function non-static.
14449 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14450 Remove function.
14451 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14452 Move to mactoolbox.c.
14453 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14454
14455 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14456 (mac_rect_make): New macro.
14457
14458 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14459 instead of float.
14460 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14461 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14462 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14463 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14464 CGRectMake.
14465 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14466 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14467 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14468 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14469 instead of WindowRef in argument type.
14470 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14471 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14472 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14473 instead of DISPLAY. All uses changed.
14474 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14475 (x_calc_absolute_position): Simplify so as not to use
14476 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14477
14478 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14479 instead of WindowRef in argument type.
14480 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14481 [TARGET_API_MAC_CARBON]: Remove externs.
14482 (create_apple_event, mac_event_parameters_to_lisp)
14483 [TARGET_API_MAC_CARBON]: Add externs.
14484
14485 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14486 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14487 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14488 is clicked.
14489 (x_activate_menubar): Remove extern for saved_menu_event_location.
14490 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14491 Move from mac.c.
14492
144932008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14494
14495 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14496 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14497
144982008-04-23 Jason Rumney <jasonr@gnu.org>
14499
14500 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14501 attributes only for local files.
14502
14503 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14504 default to Qlocal.
14505
145062008-04-22 Juri Linkov <juri@jurta.org>
14507
14508 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14509 read-buffer-to-switch instead of using the letter "B".
14510
145112008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14512
14513 * fileio.c (Qdefault_directory): New variable.
14514 (Fread_file_name): Use it to pass `dir' to the completion functions.
14515
145162008-04-20 Chong Yidong <cyd@stupidchicken.com>
14517
14518 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14519
145202008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14521
14522 * keyboard.c (Vpre_help_message): Remove.
14523 (show_help_echo): Remove default C code.
14524
14525 * dired.c (directory_files_internal, file_name_completion):
14526 Only call ENCODE_FILE if the string is indeed decoded.
14527
145282008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14529
14530 * Makefile.in (TOOLKIT_DEFINES): Remove.
14531 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14532
145332008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14534
14535 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14536 (mactoolbox.o): New target.
14537
14538 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14539 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14540
14541 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14542 Use mac_set_frame_window_background instead of XSetWindowBackground.
14543 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14544 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14545 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14546 instead of SetWindowTitleWithCFString.
14547 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14548 Move function to mactoolbox.c.
14549 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14550 Use mac_set_window_modified instead of SetWindowModified.
14551 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14552 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14553 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14554 FrontNonFloatingWindow. Use mac_activate_window instead of
14555 ActivateWindow. Use mac_active_non_floating_window instead of
14556 ActiveNonFloatingWindow.
14557 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14558 Use mac_show_hourglass and mac_hide_hourglass.
14559 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14560 instead of GetGlobalMouse.
14561 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14562 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14563 Use mac_bring_window_to_front instead of BringToFront.
14564 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14565 mactoolbox.c.
14566 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14567 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14568 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14569 mactoolbox.c.
14570
14571 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14572 (XtPointer): Move typedef from macmenu.c.
14573 (enum button_type): Move enum from macmenu.c.
14574 (widget_value): Move typedef from macmenu.c.
14575 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14576 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14577 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14578 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14579 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14580 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14581 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14582 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14583 (Selection): Move typedef from macselect.c.
14584 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14585 macterm.c.
14586 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14587 (mac_is_window_collapsed, mac_bring_window_to_front)
14588 (mac_send_window_behind, mac_hide_window, mac_show_window)
14589 (mac_collapse_window, mac_front_non_floating_window)
14590 (mac_active_non_floating_window, mac_activate_window)
14591 (mac_move_window_structure, mac_move_window, mac_size_window)
14592 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14593
14594 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14595 (enum mac_menu_kind): Move enum to mactoolbox.c.
14596 (min_menu_id): Move variable to mactoolbox.c.
14597 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14598 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14599 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14600 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14601 [TARGET_API_MAC_CARBON]: Likewise.
14602 (XtPointer): Move typedef to macgui.h.
14603 (enum button_type): Move enum to macgui.h.
14604 (widget_value): Move typedef to macgui.h.
14605 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14606 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14607 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14608 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14609 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14610 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14611 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14612 (popup_activated_flag): Make variable non-static.
14613 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14614 (add_menu_item, fill_menu, dispose_menus):
14615 Move functions to mactoolbox.c.
14616 (restore_show_help_function, menu_target_item_handler)
14617 (install_menu_target_item_handler, mac_handle_dialog_event)
14618 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14619 [TARGET_API_MAC_CARBON]: Likewise.
14620 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14621 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14622 (find_and_call_menu_selection, name_is_separator): Make function
14623 non-static.
14624 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14625 to mactoolbox.c.
14626 (set_frame_menubar): Don't call install_menu_quit_handler.
14627 (menu_item_selection): New variable.
14628 (mac_menu_show): Use create_and_show_popup_menu.
14629 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14630 selection but set variable menu_item_selection. All uses changed.
14631 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14632 Call install_menu_quit_handler. Move to mactoolbox.c.
14633
14634 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14635 (Selection): Move typedef to macgui.h.
14636 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14637 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14638 Make variables non-static.
14639 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14640 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14641 Make functions non-static.
14642 (Vmac_service_selection) [MAC_OSX]: Likewise.
14643 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14644 (mac_valid_selection_target_p, mac_clear_selection)
14645 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14646 (mac_put_selection_value, mac_selection_has_target_p)
14647 (mac_get_selection_value, mac_get_selection_target_list)
14648 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14649 Move functions to mactoolbox.c.
14650 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14651 Likewise.
14652 (copy_scrap_flavor_data, mac_handle_service_event)
14653 (install_service_handler) [MAC_OSX]: Likewise.
14654 (syms_of_macselect) <Vmac_dnd_known_types>:
14655 Use mac_dnd_default_known_types.
14656
14657 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14658 Move to mactoolbox.c.
14659 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14660 (Fx_selection_owner_p): Add EXFUN.
14661 (install_window_handler, remove_window_handler, XSetWindowBackground):
14662 Remove externs.
14663 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14664 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14665 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14666 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14667 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14668 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14669 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14670 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14671 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14672 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14673 (mac_valid_selection_target_p, mac_clear_selection)
14674 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14675 (mac_put_selection_value, mac_selection_has_target_p)
14676 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14677 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14678 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14679 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14680 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14681 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14682 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14683 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14684 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14685
14686 * mactoolbox.c: New file.
14687
146882008-04-18 Jason Rumney <jasonr@gnu.org>
14689
14690 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14691
146922008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14693
14694 * character.c (Fmultibyte_char_to_unibyte):
14695 Return latin1 chars unchanged.
14696
14697 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14698 relocated if it points to `name'.
14699
147002008-04-17 Kenichi Handa <handa@m17n.org>
14701
14702 * data.c (Faset): Allow setting a multibyte character in an
14703 ASCII-only unibyte string.
14704
14705 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14706
147072008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14708
14709 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14710 done in config.h.
14711
147122008-04-16 Juanma Barranquero <lekktu@gmail.com>
14713
14714 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14715 (Fchar_direction): Add usage in the docstring.
14716
147172008-04-15 Chong Yidong <cyd@stupidchicken.com>
14718
14719 * keyboard.c (read_key_sequence): Remove always-true checks.
14720
147212008-04-14 Jason Rumney <jasonr@gnu.org>
14722
14723 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14724 compatibility struct, for better underline positioning.
14725
147262008-04-13 David Hansen <david.hansen@gmx.net>
14727
14728 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14729 string.
14730
147312008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14732
14733 * m/hp800.h (XUINT, XSET): Remove.
14734
147352008-04-12 Juanma Barranquero <lekktu@gmail.com>
14736
14737 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14738 previous change.
14739
147402008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14741
14742 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14743 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14744
147452008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14746
14747 * keymap.h (map_keymap_canonical): Declare.
14748 * xmenu.c (single_keymap_panes): Use it.
14749
147502008-04-11 Glenn Morris <rgm@gnu.org>
14751
14752 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14753 set the target's value to that of the alias.
14754
147552008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14756
14757 * term.c (set_tty_color_mode): Left over typo.
14758
147592008-04-10 Michael Albinus <michael.albinus@gmx.de>
14760
14761 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14762 only after check for file name handler functions. Signal, when
14763 native functionality is not supported.
14764 (syms_of_fileio): Declare it unconditionally.
14765
147662008-04-10 Jason Rumney <jasonr@gnu.org>
14767
14768 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14769 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14770
14771 * w32.c (logon_network_drive): Also logon to remote drives that
14772 are mapped to drive letters.
14773
147742008-04-10 Glenn Morris <rgm@gnu.org>
14775
14776 * xdisp.c (truncate-partial-width-windows): Doc fix.
14777
147782008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14779
14780 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14781 Move functions to minibuffer.el.
14782 (syms_of_fileio): Don't declare them.
14783
147842008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14785
14786 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14787 (syms_of_minibuf): Remove its initialization.
14788
14789 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14790
147912008-04-09 Juanma Barranquero <lekktu@gmail.com>
14792
14793 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14794
147952008-04-09 Jason Rumney <jasonr@gnu.org>
14796
14797 * makefile.w32-in (distclean): Delete makefile too.
14798 (maintainer-clean): New target.
14799
14800 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14801
14802 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14803 for new font backend and composite cases.
14804
148052008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14806
14807 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14808 Most of the code moved to run_timers.
14809 (do_pending_atimers): Call run_timers.
14810 (run_timers): New function.
14811
14812 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14813 run atimers.
14814
14815 * process.c (wait_reading_process_output): The same as above.
14816
148172008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14818
14819 * minibuf.c (last_exact_completion): Remove variable.
14820 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14821 (complete_and_exit_1, complete_and_exit_2)
14822 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14823 (Fdisplay_completion_list, display_completion_list_1)
14824 (Fminibuffer_completion_help, Fself_insert_and_exit)
14825 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14826 minibuffer.el.
14827 (syms_of_minibuf): Remove corresponding initializations.
14828
14829 * keyboard.c (Qdeactivate_mark): New var.
14830 (command_loop_1): Use it to call `deactivate-mark'.
14831 (syms_of_keyboard): Initialize it.
14832
14833 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14834 to another frame.
14835 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14836 Don't call set_tty_color_mode.
14837 (store_frame_param): Reset previous_frame rather than call
14838 set_tty_color_mode.
14839 * term.c (set_tty_color_mode): Rewrite.
14840 * dispextern.h (set_tty_color_mode): New type.
14841 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14842
148432008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14844
14845 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14846 for generic chars, which do not exist any more in emacs-unicode.
14847
148482008-04-08 Michael Albinus <michael.albinus@gmx.de>
14849
14850 * coding.c (detect_coding_emacs_mule)
14851 (Ffind_operation_coding_system): Fix typo.
14852
148532008-04-08 Jason Rumney <jasonr@gnu.org>
14854
14855 * w32uniscribe.c (SNAME): Extract only symbol name.
14856
14857 * w32font.h (struct w32_metric_cache): New struct.
14858 (w32font_info): Use it.
14859 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14860 (CACHE_BLOCKSIZE): New constants.
14861
14862 * w32font.c (Qja, Qko, Qzh): New symbols.
14863 (syms_of_w32font): Initialise them.
14864 (font_matches_spec): Use them to filter by language.
14865 (recompute_cached_metrics): Remove function.
14866 (compute_metrics, clear_cached_metrics): New functions.
14867 (w32font_encode_char): Use them to manage metric cache.
14868 (w32font_text_extents): Cache metrics for all glyphs on demand.
14869 Delay converting glyph indices to WORD until needed.
14870 (w32font_open_internal): Initialize metric cache to empty.
14871 (registry_to_w32_charset): Charset should always be a symbol.
14872 (fill_in_logfont, list_all_matching_fonts): Family should
14873 always be a symbol.
14874
148752008-04-06 Jason Rumney <jasonr@gnu.org>
14876
14877 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14878 Give up if glyph indices not supported. Use uniscribe obtained
14879 ABC widths for individual metrics. Map glyph clusters back to
14880 characters using fClusterStart flag. Return number of glyphs
14881 produced, not chars processed.
14882 (uniscribe_shape): Map char at FROM to current glyph.
14883
148842008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14885
14886 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14887 Use SetMenuItemHierarchicalMenu.
14888
148892008-04-05 Jason Rumney <jasonr@gnu.org>
14890
14891 * image.c (pbm_load): Allow color values up to 65535.
14892 Throw an error if max_color_idx is outside the supported range.
14893 Report an error when image size is invalid.
14894 Read two bytes at a time when raw images have max_color_idx above 255.
14895
aac0c6e3
MR
148962008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14897
14898 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14899 append "CCL: Quitted" when the CCL program is quitted.
14900 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14901
14902 * ccl.h (struct ccl_program): New member quit_silently.
14903
149042008-04-05 Chong Yidong <cyd@stupidchicken.com>
14905
14906 * search.c (compile_pattern_1): Treat non-nil and non-string of
14907 search-spaces-regexp as nil.
14908
14909 * minibuf.c (Fassoc_string): Tweak docstring.
14910
149112008-04-05 Eli Zaretskii <eliz@gnu.org>
14912
14913 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14914 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14915 2008-03-14 to force inode be positive.
14916
14917 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14918 _S_* ones, since we now use our own sys/stat.h.
14919 (stat, fstat): Don't mangle the inode number.
14920 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14921
149222008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14923
14924 * frame.h (struct frame): Give one more bit to `visible' since we use
14925 values larger than 1 to indicate obscured frames on ttys.
14926
14927 * keymap.c (Qkeymap_canonicalize): New var.
14928 (Fmap_keymap_internal): New fun.
14929 (describe_map): Use keymap-canonicalize.
14930
14931 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14932 (Fundo_boundary): Set them.
14933 (syms_of_undo): Initialize them.
14934 (record_point): Use them instead of last_point_position*.
14935 (last_undo_buffer): Change type.
14936
149372008-04-04 Jason Rumney <jasonr@gnu.org>
14938
14939 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14940 (recompute_cached_metrics): Don't set ascent and descent per char.
14941
14942 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14943 (uniscribe_check_otf): Add GC protection before consing.
14944 Rearrange loop for counting features.
14945
149462008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14947
14948 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14949 buffer with byte-size of source buffer.
14950
149512008-04-03 Chong Yidong <cyd@stupidchicken.com>
14952
14953 * callint.c (Fcall_interactively): Handle temporary region even
14954 when shift-select-mode is off.
14955
149562008-04-03 Jason Rumney <jasonr@gnu.org>
14957
14958 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14959
149602008-04-03 Kenichi Handa <handa@m17n.org>
14961
14962 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14963 (CATEGORY_MASK_UTF_16): Likewise.
14964 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14965 binary file.
14966 (detect_coding): Add null-byte detection for a binary file.
14967 (detect_coding_system): Likewise.
14968
149692008-04-03 Jason Rumney <jasonr@gnu.org>
14970
14971 * w32uniscribe.c: New file.
14972
14973 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14974
14975 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14976
14977 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14978 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14979 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14980 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14981 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14982 (Qphonetic): New symbols.
14983 (syms_of_w32font): Initialize them.
14984 (font_supported_scripts): Use them.
14985 (w32font_list_family): List all charsets.
14986 (w32font_text_extents, recompute_cached_metrics): Fix metric
14987 calculations.
14988 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14989 Give opentype fonts their own format.
14990 (font_matches_spec): New arguments backend and logfont.
14991 Handle :otf spec for uniscribe backend.
14992 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14993 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14994
14995 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14996 font backend.
14997 (globals_of_w32fns): Initialize uniscribe font backend.
14998
14999 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15000 dependencies.
15001 (w32uniscribe.$(O)): New file to build.
15002 (FONT_OBJ): Include w32uniscribe.$(O).
15003 (LIBS): Add uniscribe libraries.
15004
15005 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15006
150072008-04-02 Chong Yidong <cyd@stupidchicken.com>
15008
15009 * callint.c (Vshift_select_mode): New var.
15010 (Finteractive): Document new ^ spec.
15011 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15012 is present.
15013
15014 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15015 (command_loop_1): Avoid running the direct display versions of
15016 forward-char and backward-char if shift-selection may occur.
15017 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15018 shift-translation takes place.
15019
15020 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15021 avoid clobbering by define-minor-mode.
15022
15023 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15024 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15025
15026 * syntax.c (Fforward_word): Add ^ interactive spec.
15027
15028 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15029 (Fscroll_right): Add ^ interactive spec.
15030
150312008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15032
15033 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15034
15035 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15036
15037 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15038
150392008-03-31 Juri Linkov <juri@jurta.org>
15040
15041 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15042
150432008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15044
15045 * gtkutil.c (xg_set_geometry): Fix indentation.
15046 (xg_resize_outer_widget): Remove.
15047 (x_wm_size_hint_off): Fix indentation.
15048 (xg_frame_set_char_size): Call flush_and_sync after
15049 gtk_window_resize.
15050 (x_wm_set_size_hint): Pass NULL as geometry window to
15051 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15052 Add menu bar and tool bar height to base height.
15053 (xg_update_frame_menubar, free_frame_menubar)
15054 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15055 (update_frame_tool_bar, free_frame_tool_bar):
15056 Change xg_resize_outer_widget to xg_frame_set_char_size.
15057
150582008-03-30 Michael Albinus <michael.albinus@gmx.de>
15059
15060 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15061 (Fdbus_call_method): New parameter TIMEOUT.
15062 (dbus-send-signal): Optimize UNGCPRO call.
15063
150642008-03-29 Juri Linkov <juri@jurta.org>
15065
15066 * window.c (Fdisplay_buffer): Move call to
15067 Vsplit_window_preferred_function out of conditions that check
15068 if window is eligible for vertical splitting.
15069 When Vsplit_window_preferred_function is non-nil, call it and use
15070 its non-nil return value as window. Otherwise, continue doing
15071 vertical splitting using Fsplit_window with arg horflag=nil.
15072 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15073 default value from `split-window' to nil.
15074
150752008-03-29 Juri Linkov <juri@jurta.org>
15076
15077 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15078 for interactive code letters 'b' and 'B'.
15079
150802008-03-29 Eli Zaretskii <eliz@gnu.org>
15081
15082 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15083 multibyte string.
15084
150852008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15086
15087 * keyboard.c (pending_funcalls): New var.
15088 (timer_check): Run it.
15089 (syms_of_keyboard): Initialize it.
15090 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15091 (Vdelete_terminal_functions): New vars.
15092 (syms_of_terminal): Initialize them.
15093 (Fdelete_terminal): Run delete-terminal-functions.
15094 * xdisp.c (safe_eval): Rewrite.
15095 (safe_call2): New fun.
15096 * frame.c (Qdelete_frame_functions): New var.
15097 (syms_of_frame): Initialize it.
15098 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15099 * lisp.h (safe_call2, pending_funcalls): Declare.
15100
151012008-03-28 Andreas Schwab <schwab@suse.de>
15102
15103 * indent.c (Fmove_to_column): Move declaration before statements.
15104
151052008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15106
15107 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15108 (struct frame): Use bit fields for boolean vars.
15109
15110 * process.c (server_accept_connection): Simplify naming.
15111 (emacs_get_tty_pgrp): Use SDATA.
15112
15113 * coding.c (decode_coding_object): Fix last change.
15114
151152008-03-27 Jason Rumney <jasonr@gnu.org>
15116
15117 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15118
151192008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15120
15121 * charset.c (Fdefine_charset_internal): Change the way of
15122 registering charsets in Vcharset_order_list.
15123 (syms_of_charset): Make the charset `eight-bit' supplementary.
15124
151252008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15126
15127 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15128 operations, to avoid having the difference between pointers
15129 overflow.
15130
151312008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15132
15133 * indent.c (check_display_width): New fun.
15134 (scan_for_column): Use it.
15135
15136 * data.c (syms_of_data): Mark most-positive-fixnum and
15137 most-negative-fixnum as constants.
15138
15139 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15140
15141 * indent.c (scan_for_column): Extract from current_column_1.
15142 Merge with the same code from Fmove_to_column.
15143 (current_column_1, Fmove_to_column): Use it.
15144
151452008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15146
15147 * keymap.c (map_keymap_internal): New fun.
15148 (map_keymap): Use it.
15149 (Fmap_keymap_internal): New fun.
15150 (Fmap_keymap): Remove left-out test from before make_save_value.
15151
15152 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15153
15154 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15155 Use XCAR/XCDR.
15156
15157 * process.h (struct Lisp_Process): Remove filter_multibyte.
15158 * process.c (QCfilter_multibyte): Remove.
15159 (setup_process_coding_systems): Don't use filter_multibyte.
15160 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15161 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15162 (Fset_process_filter_multibyte): Change the coding-system to
15163 approximate the previous behavior.
15164 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15165 coding-system.
15166
15167 * coding.c (decode_coding_object): When not decoding into a buffer,
15168 obey the coding system's preference of (uni|multi)byte.
15169
151702008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15171
15172 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15173 every char is changed and has a different byte-length.
15174 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15175 Fix int -> EMACS_INT.
15176
151772008-03-23 David Hansen <david.hansen@gmx.net>
15178
15179 * dbusbind.c (xd_read_message): Remove extra copying of message
15180 strings. Check for NULL `interface' or `member'.
15181
151822008-03-22 Eli Zaretskii <eliz@gnu.org>
15183
15184 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15185 cFileName a file name that includes `?' characters, use the 8+3
15186 alias in cAlternateFileName instead.
15187
151882008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15189
15190 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15191
151922008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15193
15194 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15195 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15196 work on current_buffer only instead (that was already the case
15197 for some of the code anyway).
15198 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15199 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15200 (SET_PT, SET_PT_BOTH): Adjust.
15201 * intervals.h (set_point, temp_set_point, set_point_both)
15202 (temp_set_point_both): Remove redundant declarations.
15203
152042008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15205
15206 * fileio.c (Finsert_file_contents):
15207 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15208 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15209 when buffer != current_buffer anyway.
15210
152112008-03-20 Andreas Schwab <schwab@suse.de>
15212
15213 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15214 as default.
15215
152162008-03-19 Jason Rumney <jasonr@gnu.org>
15217
15218 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15219 (syms_of_w32fns): Initialize them.
15220 (HOURGLASS_ID): New constant.
15221 (x_window_to_frame): Don't check hourglass_window.
15222 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15223 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15224 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15225 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15226 Only change the cursor if hourglass is not active.
15227 (Fx_create_frame): Initialize frame's current_cursor.
15228 (hourglass_atimer): Remove.
15229 (hourglass_started): New function.
15230 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15231 (show_hourglass): Adapt to w32, changing argument to frame.
15232
15233 * w32term.h (struct w32_output): Remove hourglass_window.
15234 Add current_cursor.
15235
15236 * eval.c (call_debugger, Fsignal):
15237 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15238 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15239 (Fexecute_extended_command, cancel_hourglass_unwind):
15240 * minibuf.c (read_minibuf):
15241 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15242
152432008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15244
15245 * window.c (run_funs): New fun.
15246 (run_window_configuration_change_hook): Use it to run the buffer-local
15247 and the global part of the hook.
15248
15249 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15250 (unwind_format_mode_line): Restore selected window.
15251 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15252
152532008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15254
15255 * editfns.c (Fchar_equal): Check they are valid characters.
15256
15257 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15258
152592008-03-17 Andreas Schwab <schwab@suse.de>
15260
15261 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15262 against a charset.
15263
15264 * lisp.h (Fbuffer_list): Declare.
15265
152662008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15267
aac0c6e3
MR
15268 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15269 handlebox_widget is != 0.
15270
152712008-03-16 Juri Linkov <juri@jurta.org>
15272
15273 * callint.c (Fcall_interactively): For interactive code letters
15274 'b' and 'B' put the buffer list into the list of default "future"
15275 values of the minibuffer.
15276
152772008-03-16 Andreas Schwab <schwab@suse.de>
15278
15279 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15280 modifiers.
15281
15282 * regex.c (re_match_2_internal): Correct matching of a charset
15283 against latin-1 characters.
15284
152852008-03-16 Kenichi Handa <handa@m17n.org>
15286
15287 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15288 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15289 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15290 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15291 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15292 CHAR_STRING_ADVANCE.
15293 (produce_chars): Fix for the case that the source and the
15294 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15295 instead of CHAR_STRING_ADVANCE.
15296 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15297 STRING_CHAR_ADVANCE.
15298
152992008-03-15 Andreas Schwab <schwab@suse.de>
15300
15301 * regex.c (re_match_2_internal): Correct matching of eight bit
15302 characters in unibyte strings.
15303
153042008-03-15 Martin Rudalics <rudalics@gmx.at>
15305
15306 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15307 at end of range when it coincides with the end of the buffer.
15308
153092008-03-14 Eli Zaretskii <eliz@gnu.org>
15310
15311 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15312
15313 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15314
153152008-03-14 Jason Rumney <jasonr@gnu.org>
15316
15317 * editfns.c (initial_tz): New variable.
15318 (syms_of_editfns): Initialize it.
15319 (Fset_time_zone_rule): Set it when first called.
15320 Use it when TZSTRING is nil.
15321
15322 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15323 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15324 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15325 (globals_of_w32fns): Initialize them.
15326 (compute_tip_xy): Use them to position tooltips.
15327
153282008-03-14 Glenn Morris <rgm@gnu.org>
15329
15330 * emacs.c (main): Revert previous change.
15331 (standard_args): Revert -internal-script back to -scriptload,
15332 and remove the long-option form.
15333
153342008-03-13 Glenn Morris <rgm@gnu.org>
15335
15336 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15337 Remove option -enable-font-backend.
15338
153392008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15340
15341 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15342
153432008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15344
15345 * xterm.c (x_connection_closed): For GTK: If this is the last
15346 terminal just exit without closing the display.
15347
153482008-03-11 Jason Rumney <jasonr@gnu.org>
15349
15350 * w32font.c (w32font_full_name): Use floor to round.
15351
f0131492 153522008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15353
15354 * sound.c (alsa_configure): Declare vol at beginning of block.
15355
15356 * fontset.c (Ffontset_info): Remove extra semicolon.
15357
153582008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15359
15360 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15361 size of resulting string.
15362
153632008-03-10 Jason Rumney <jasonr@gnu.org>
15364
15365 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15366
153672008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15368
15369 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15370 Don't pretend as if characters with display property haven't been
15371 consumed for string-replacing-string case.
15372
153732008-03-08 Kim F. Storm <storm@cua.dk>
15374
15375 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15376 (get_next_display_element, next_element_from_string)
15377 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15378
153792008-03-08 Andreas Schwab <schwab@suse.de>
15380
15381 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15382
153832008-03-06 Jason Rumney <jasonr@gnu.org>
15384
15385 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15386 when charset not specified. Only translate ANSI to unicode when
15387 font_type is truetype.
15388 (w32font_coverage_ok): New function.
15389 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15390
153912008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15392
15393 * lread.c (Fread_char): Resolve modifiers.
15394 (Fread_char_exclusive): Likewise.
15395
15396 * character.c (char_resolve_modifier_mask): New function.
15397 (char_string): Use char_resolve_modifier_mask.
15398 (Fchar_resolve_modifiers): New function.
15399 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15400 function.
15401
154022008-03-04 Jason Rumney <jasonr@gnu.org>
15403
15404 * makefile.w32-in: Always include w32font.c in the build.
15405 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15406
154072008-03-04 Andreas Schwab <schwab@suse.de>
15408
15409 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15410 (versionclean): Likewise.
15411
154122008-03-04 Juanma Barranquero <lekktu@gmail.com>
15413
15414 * .cvsignore: Add oo.
15415
154162008-03-03 Andreas Schwab <schwab@suse.de>
15417
15418 * coding.c (decode_coding_object): Inhibit gap shrinking while
15419 decoding in place.
15420
154212008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15422
15423 * w32term.c: Remove unused include "gnu.h".
15424 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15425
15426 * gnu.h: Rename to ...
15427 * emacs-icon.h: ... this.
15428 * xterm.c: Use emacs-icon.h instead of gnu.h.
15429 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15430
154312008-03-03 Juanma Barranquero <lekktu@gmail.com>
15432
15433 * w32font.c: Include math.h.
15434
154352008-03-03 Jason Rumney <jasonr@gnu.org>
15436
15437 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15438 Compute options separately.
15439 (w32font_open_internal): Set glyph_idx before caching metrics.
15440
15441 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15442 Define if system headers don't.
15443 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15444 (w32font_encode_char): Don't declare here.
15445
15446 * w32font.c (Quniscribe, QCformat): New symbols.
15447 (syms_of_w32font): Define them.
15448 (w32font_has_char): Indicate uncertainty.
15449 (w32font_encode_char): Encode as glyph point. Make static.
15450 (recompute_cached_metrics): New function.
15451 (w32font_open_internal): Use it. Set font to use glyph points
15452 initially. Set format based on type of font.
15453 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15454 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15455 on it. Set format based on information available here.
15456 (add_font_entity_to_list): Identify backend based on opentype_only.
15457
154582008-03-02 Andreas Schwab <schwab@suse.de>
15459
15460 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15461
15462 * coding.c (decode_coding_big5, produce_chars):
15463 Fix typos in last change.
15464
154652008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15466
15467 * gnu.h: New icon.
15468
154692008-03-02 Kenichi Handa <handa@m17n.org>
15470
15471 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15472 `dos', don't decode '\r' if that is the last in the source.
15473 (decode_coding_utf_16, decode_coding_emacs_mule)
15474 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15475 (decode_coding_raw_text, decode_coding_charset): Likewise.
15476 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15477
154782008-03-01 Jason Rumney <jasonr@gnu.org>
15479
15480 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15481
154822008-03-01 Kim F. Storm <storm@cua.dk>
15483
15484 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15485
154862008-03-01 Jason Rumney <jasonr@gnu.org>
15487
15488 * w32font.c (w32font_full_name): New function.
15489 (w32font_open_internal): Use it.
15490
154912008-03-01 Kim F. Storm <storm@cua.dk>
15492
15493 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15494
154952008-03-01 Jason Rumney <jasonr@gnu.org>
15496
15497 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15498
154992008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15500
15501 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15502 xg_frame_resized when the event is for the edit widget.
15503
15504 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15505
15506 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15507 set_char_size.
15508 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15509 operations on widgets here. Just set frame size if needed.
15510 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15511 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15512 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15513 the whole frame.
15514 (xg_create_tool_bar): Move attachment of the tool bar to
15515 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15516 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15517
155182008-03-01 Jason Rumney <jasonr@gnu.org>
15519
15520 * w32fns.c (w32_msg_pump): Disable debug code.
15521
155222008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15523
15524 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15525
155262008-02-29 Chong Yidong <cyd@stupidchicken.com>
15527
15528 * xdisp.c (next_overlay_string): Don't set
15529 overlay_strings_at_end_processed_p if we're currently reading from
15530 a display string.
15531
155322008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15533
15534 * xdisp.c (get_overlay_strings_1): Fix typo.
15535
155362008-02-29 Chong Yidong <cyd@stupidchicken.com>
15537
15538 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15539
155402008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15541
15542 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15543
15544 * xdisp.c (display_mode_element): Cancel the previous change.
15545 (decode_mode_spec): Likewise.
15546 (handle_auto_composed_prop): Don't make composition if it->string
15547 is a string.
15548
155492008-02-27 Kim F. Storm <storm@cua.dk>
15550
15551 * lisp.h (GLYPH): Change type from int to struct with separate char
15552 and face_id members.
15553 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15554 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15555 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15556 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15557 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15558 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15559 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15560 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15561 handle new Lisp glyph code encoding, either an integer or a cons.
15562
15563 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15564 (GLYPH_ALIAS): Delete.
15565 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15566 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15567 (GLYPH_FROM_CHAR): Replace macro by ...
15568 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15569
15570 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15571 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15572 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15573 (GLYPH_INVALID_P): New macro.
15574 (spec_glyph_lookup_face): Update prototype.
15575
15576 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15577 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15578 new glyph code encoding.
15579 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15580 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15581
15582 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15583 Adapt to new glyph type and new glyph code encoding.
15584
15585 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15586
15587 * indent.c (current_column, current_column_1, Fmove_to_column)
15588 (compute_motion): Adapt to new glyph code encoding.
15589
15590 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15591
155922008-02-27 Chong Yidong <cyd@stupidchicken.com>
15593
15594 * process.c (wait_reading_process_output): Check for window
15595 changes caused by timers.
15596 Suggested by Johan Bockgård.
15597
155982008-02-27 Glenn Morris <rgm@gnu.org>
15599
15600 * emacs.c (USAGE1): Add `--disable-font-backend'.
15601
156022008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15603
15604 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15605 is made to the buffer.
15606
156072008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15608
15609 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15610 (face_at_string_position):
15611 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15612 (face_at_string_position):
15613 * xdisp.c (display_string, next_overlay_change):
15614 * buffer.h (overlays_at):
15615 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15616 Update callers.
15617
156182008-02-26 Chong Yidong <cyd@stupidchicken.com>
15619
15620 * editfns.c (Fformat): Doc fix.
15621
156222008-02-26 Juanma Barranquero <lekktu@gmail.com>
15623
15624 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15625 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15626 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15627
156282008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15629
15630 * buffer.c (Fbuffer_swap_text): New function.
15631 (syms_of_buffer): Defsubr it.
15632
156332008-02-25 Chong Yidong <cyd@stupidchicken.com>
15634
15635 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15636
156372008-02-25 Jason Rumney <jasonr@gnu.org>
15638
15639 * w32font.c (w32font_draw): Draw one character at a time when padding.
15640
156412008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15642
15643 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15644 Handle a nil arg. Use run_window_configuration_change_hook.
15645 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15646 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15647 Use run_window_configuration_change_hook.
15648
156492008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15650
15651 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15652 1-pixel width.
15653
156542008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15655
15656 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15657 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15658 if the glyph in the font is zero pixel with.
15659
15660 * dispextern.h (struct glyph_string): New member padding_p.
15661
15662 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15663
15664 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15665
15666 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15667
15668 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15669
15670 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15671
156722008-02-25 Jason Rumney <jasonr@gnu.org>
15673
15674 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15675
156762008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15677
15678 Allow fine-grained image-cache flushing.
15679 * dispextern.h (struct image): Add `dependencies' field.
15680 (clear_image_caches): Change arg to Lisp_Object.
15681 * image.c (make_image): Initialize `dependencies' field.
15682 (clear_image_cache): Change arg to allow fine-grained flushing.
15683 Perform the flush even if image-cache-eviction-delay is nil.
15684 (clear_image_caches): Change arg to Lisp_Object.
15685 (Fclear_image_cache): Expand meaning of the argument.
15686 (mark_image): Mark `dependencies' field.
15687 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15688 (lface_hash): Use XHASH rather than XFASTINT.
15689 (face_at_buffer_position): Fix int -> EMACS_INT position.
15690 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15691 (select_frame_for_redisplay): Remove code duplication.
15692 (redisplay_internal): Adapt arg to call to clear_image_caches.
15693
156942008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15695
15696 * s/vms4-0.h:
15697 * s/vms4-2.h:
15698 * s/vms4-4.h:
15699 * s/vms5-5.h: Remove, unused.
15700
15701 * s/irix5-2.h:
15702 * s/irix6-0.h:
15703 * s/riscos5.h:
15704 * s/mach-bsd4-3.h:
15705 * m/mips4.h: Remove files for obsolete systems.
15706
15707 * Makefile.in:
15708 * filelock.c:
15709 * unexmips.c:
15710 * m/hp9000s300.h:
15711 * m/iris4d.h:
15712 * s/aix3-1.h:
15713 * s/hpux.h:
15714 * s/msdos.h:
15715 * s/usg5-0.h:
15716 * s/usg5-2-2.h:
15717 * s/usg5-2.h:
15718 * s/usg5-3.h: Remove references to obsolete variables.
15719
15720 * s/irix5-0.h: Remove, move all the contents ...
15721 * s/irix6-5.h: ... here. Simplify.
15722 * config.in: Regenerate.
15723
157242008-02-24 Jason Rumney <jasonr@gnu.org>
15725
15726 * w32term.c (x_draw_glyph_string_background): Clear the background
15727 manually when cleartype is in use.
15728 (x_draw_glyph_string_foreground): Draw text transparently when
15729 cleartype is in use.
15730
15731 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15732 a font into it unless we have to.
15733
157342008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15735
15736 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15737 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15738
aac0c6e3
MR
157392008-02-18 Jason Rumney <jasonr@gnu.org>
15740
15741 * w32fns.c (Fw32_shell_execute): Encode parameters.
15742
157432008-02-09 Eli Zaretskii <eliz@gnu.org>
15744
15745 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15746
157472008-02-05 Juanma Barranquero <lekktu@gmail.com>
15748
15749 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15750
157512008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15752
15753 * xterm.c (x_set_offset): Don't change the gravity if
15754 CHANGE_GRAVITY is -1.
15755
157562008-02-23 Chong Yidong <cyd@stupidchicken.com>
15757
15758 * fileio.c (auto_save_error_occurred): New var.
15759 (auto_save_error): Set it.
15760 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15761 error occurred.
15762
157632008-02-23 Eli Zaretskii <eliz@gnu.org>
15764
15765 * w32.c (globals_of_w32): Add initializations for
15766 g_b_init_get_sid_sub_authority and
15767 g_b_init_get_sid_sub_authority_count.
15768
157692008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15770
15771 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15772 (font_parse_xlfd): Use them for sanity check.
15773 (Finternal_set_font_style_table): Make sure the table is bijective.
15774
15775 Consolidate the image_cache to the terminal struct.
15776 * termhooks.h (P_): Remove redundant def.
15777 (struct terminal): New field `image_cache'.
15778 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15779 of FRAME_X_IMAGE_CACHE.
15780 * xterm.h (struct x_display_info): Remove image_cache field.
15781 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15782 * w32term.h (struct w32_display_info): Remove image_cache field.
15783 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15784 * macterm.h (struct mac_display_info): Remove image_cache field.
15785 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15786 * xterm.c (x_term_init):
15787 * w32term.c (w32_term_init):
15788 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15789 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15790 Remove declarations.
15791 (clear_image_caches, mark_image_cache): New declarations.
15792 * xfaces.c (clear_face_cache):
15793 * xdisp.c (redisplay_internal): Use clear_image_caches.
15794 * image.c (clear_image_cache): Don't check that a frame is on
15795 a window-system before checking if it shares the same cache.
15796 (clear_image_caches): New function.
15797 (Fclear_image_cache): Use it.
15798 (mark_image): Move from allo.c.
15799 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15800 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15801 (mark_object): Don't call mark_image_cache for frames.
15802 (mark_terminals): Call mark_image_cache.
15803
15804 * lisp.h (Fdelete_terminal): Declare.
15805
15806 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15807 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15808 wrong_type_argument.
15809
158102008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15811
15812 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15813 malayalam.el, and tamil.el. Add sinhala.el.
15814
158152008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15816
15817 * xterm.c (x_connection_closed): Consolidate identical tests.
15818 (x_delete_terminal): Don't crash if called via x_connection_closed.
15819
158202008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15821
15822 * xdisp.c (decode_mode_spec): New arg string.
15823 (display_mode_element): Adjust for the above change.
15824
158252008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15826
15827 * callint.c (Fcall_interactively): Use AREF.
15828
158292008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15830
15831 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15832
158332008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15834
15835 * xfns.c (Fx_show_tip): Set string to " " if empty.
15836
158372008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15838
15839 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15840 with Qt.
15841
158422008-02-17 Kenichi Handa <handa@m17n.org>
15843
15844 * ftfont.c (ftfont_shape): Return Lispy number.
15845
15846 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15847 for GCs.
15848 (Finternal_set_font_selection_order): Call font_update_sort_order
15849 only when enable_font_backend is set.
15850 (realize_x_face): Set face->font_info to that of default face only
15851 when enable_font_backend is set.
15852
15853 * xdisp.c (handle_composition_prop): Set it->c to the fist
15854 character of the composed region.
15855 (fill_composite_glyph_string): Set base_face->font_info to
15856 s->font_info. Get a face for ascii from base_face->ascii_face.
15857 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15858 with a face already decided.
15859 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15860 non-negative.
15861 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15862 call font_prepare_composition unconditionally.
15863
15864 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15865
15866 * xterm.h (struct x_display_info): New member font.
15867
15868 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15869 (x_set_mouse_face_gc, x_new_font): Likewise.
15870 (x_term_init): Setup display_info->font.
15871 (x_delete_terminal): Free display_info->font.
15872
15873 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15874
15875 * ftxfont.c (ftxfont_default_fid): Delete it.
15876 (ftxfont_open): Set xfont->fid to 0.
15877 (ftxfont_end_for_frame): Clear data specific to the frame and the
15878 font-driver.
15879
15880 * xftfont.c (xftfont_default_fid): Delete it.
15881 (xftfont_open): Set xfont->fid to 0.
15882
15883 * fontset.c (FONTSET_OBJLIST): New macro.
15884 (fontset_find_font): Update font-object list of the fontset.
15885 (free_realized_fontset): New function.
15886 (free_face_fontset): Call free_realized_fontset.
15887 (Ffont_info): Call font_close_object only when enable_font_backend
15888 is set.
15889
15890 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15891 [HAVE_NTGUI]: Include w32term.h.
15892 [MAC_OS]: Include macterm.ch.
15893 (font_otf_ValueRecord): Use make_number.
15894 (font_finish_cache): Fix handling of reference count.
15895 (font_clear_cache): Update num_fonts.
15896 (font_open_entity): Update smallest_char_width and
15897 smallest_font_height of the frame.
15898 (font_close_object): Update num_fonts.
15899 (Fclear_font_cache): Fix finding the target cache data.
15900
159012008-02-16 Glenn Morris <rgm@gnu.org>
15902
15903 * fontset.c (Finternal_char_font): Fix compilation warning.
15904
159052008-02-16 Eli Zaretskii <eliz@gnu.org>
15906
15907 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15908 instead of char arrays. Enlarge the size of array passed to
15909 get_token_information.
15910
15911 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15912 warnings.
15913
159142008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15915
15916 * .gdbinit: Don't set `args', it breaks gdb --args.
15917
159182008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15919
15920 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15921 within a narrowed buffer.
15922
159232008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15924
15925 * coding.c (decode_coding_object, encode_coding_object):
15926 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15927
159282008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15929
15930 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15931 hardcoding 1.
15932 (detect_coding_system):
15933 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15934 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15935 * insdel.c (insert_from_gap):
15936 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15937 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15938 (string_to_multibyte):
15939 * character.c (chars_in_text, multibyte_chars_in_text):
15940 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15941
15942 * character.h (FETCH_STRING_CHAR_ADVANCE)
15943 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15944 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15945 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15946
15947 * casefiddle.c (casify_region): Only call after-change and composition
15948 functions on the part of the region that was changed.
15949
15950 * keyboard.c (read_avail_input):
15951 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15952
159532008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15954
15955 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15956 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15957
159582008-02-11 Juanma Barranquero <lekktu@gmail.com>
15959
15960 * w32menu.c (push_submenu_start, push_submenu_end)
15961 (push_left_right_boundary, push_menu_pane, push_menu_item):
15962 * keyboard.c (read_key_sequence): Don't pass args with side effects
15963 to AREF, it fails when compiling with -DENABLE_CHECKING.
15964
159652008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15966
15967 * Makefile.in (${lispsource}international/charprop.el):
15968 Delete this target.
15969
15970 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15971 emacs-unicode-2.
15972
159732008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15974
15975 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15976
159772008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15978
15979 * frame.c (Qnoelisp): New symbol.
15980 (syms_of_frame): Initialize it.
15981 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15982 harmless Elisp code, from a strong `force' from x_connection_closed.
15983 * frame.h (Qnoelisp): Declare.
15984 * xterm.c (x_connection_closed): Pass `noelisp'.
15985
15986 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15987 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15988 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15989 rather than `int' for the type of `type'.
15990
159912008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15992
15993 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15994
15995 * Makefile.in (GNUC): Remove support for gcc-1.x.
15996
159972008-02-10 Richard Stallman <rms@gnu.org>
15998
15999 * lisp.h (ASET): Use AREF, not ASLOT.
16000
160012008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16002
16003 * lisp.h (ASET): Check bounds.
16004
160052008-02-10 Glenn Morris <rgm@gnu.org>
16006
16007 * buffer.c (mode-name): Doc fix.
16008
160092008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16010
16011 * Makefile.in:
16012 * emacs.c:
16013 * gmalloc.c:
16014 * keyboard.c:
16015 * lisp.h:
16016 * m/ibm370aix.h:
16017 * process.c:
16018 * regex.c:
16019 * s/hpux.h:
16020 * sysdep.c:
16021 * sysselect.h:
16022 * systty.h:
16023 * unexec.c:
16024 * w32term.c:
16025 * xsmfns.c:
16026 * xterm.c: Remove code that deals with obsolete variables.
16027
16028 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16029
16030 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16031 nothing else needs it anymore.
16032
160332008-02-09 Eli Zaretskii <eliz@gnu.org>
16034
16035 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16036 instead of unibyte_char_to_multibyte.
16037
160382008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16039
16040 * s/gnu-linux.h: Remove commented out code.
16041
16042 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16043
16044 * Makefile.in: Update what RMS says about using autoconf.
16045 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16046 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16047 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16048 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16049
160502008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16051
16052 * keymap.c (Fkey_description): Move side effect outside of macro call.
16053
16054 * xfaces.c (Finternal_make_lisp_face):
16055 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16056
16057 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16058 (syms_of_fontset): Use ASET.
16059
16060 * fns.c (concat): Move side effect outside of macro call.
16061 (hash_clear): Use ASET.
16062
160632008-02-08 Richard Stallman <rms@gnu.org>
16064
16065 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16066 If FORCE, and frame has a surrogate minibuffer for another frame,
16067 delete the other frame first.
16068
160692008-02-07 Timo Savola <timo.savola@iki.fi>
16070
16071 * xterm.c (x_detect_focus_change): Handle embed client message.
16072 (handle_one_xevent): Ditto.
16073 (handle_one_xevent): If embedded and we get a button press/release,
16074 request focus.
16075 (xembed_set_info, xembed_send_message): New functions.
16076 (x_make_frame_visible): Call xembed_set_info if embedded.
16077 (x_make_frame_invisible): Call xembed_set_info if embedded.
16078 (x_term_init): Initialize Xatom_XEMBED.
16079 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16080 (x_iconify_frame): Ditto.
16081
16082 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16083 (enum xembed_info, enum xembed_message, enum xembed_focus)
16084 (enum xembed_modifier, enum xembed_accelerator): New.
16085 (xembed_set_info, xembed_send_message): Declare.
16086 (FRAME_X_EMBEDDED_P): New.
16087
16088 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16089 gtk_plug_new.
16090
16091 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16092 window ID of a frame.
16093 (x_window): Reparent frame if embedded.
16094 (Fx_create_frame): Don't set border width if embedded.
16095
16096 * emacs.c (USAGE3): Add --parent-id.
16097 (standard_args): Ditto.
16098
160992008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16100
16101 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16102
161032008-02-07 Jim Meyering <meyering@redhat.com>
16104
16105 Use "do...while (0)", not "if (1)...else" in macro definitions.
16106 The latter provokes a warning from gcc about the empty else, when
16107 followed by ";". Also, without that trailing semicolon, it would
16108 silently swallow up any following statement.
16109 * syntax.h (SETUP_SYNTAX_TABLE)
16110 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16111 * buffer.h (DECODE_POSITION): Likewise.
16112 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16113 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16114 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16115 (FETCH_CHAR_ADVANCE): Likewise.
16116 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16117
161182008-02-07 Jim Meyering <meyering@redhat.com>
16119
16120 * lread.c [lint]: Don't include <sys/inode.h>.
16121
161222008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16123
16124 * xselect.c (x_handle_dnd_message):
16125 * xmenu.c (digest_single_submenu, xmenu_show):
16126 * xdisp.c (with_echo_area_buffer_unwind_data)
16127 (format_mode_line_unwind_data, unwind_format_mode_line)
16128 (display_menu_bar):
16129 * eval.c (Ffetch_bytecode):
16130 * doc.c (store_function_docstring):
16131 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16132 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16133 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16134
161352008-02-07 Kenichi Handa <handa@m17n.org>
16136
16137 * ftxfont.c (ftxfont_open): Don't set
16138 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16139
16140 * ftfont.c (ftfont_open): Fix previous change.
16141
161422008-02-06 Jason Rumney <jasonr@gnu.org>
16143
16144 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16145 Use cached metrics for ASCII characters.
16146 (w32font_open_internal): Don't set font's owning_frame.
16147 Cache metrics for ASCII characters.
16148
16149 * w32font.h (struct w32font_info): Add ascii_metrics.
16150 Remove owning_frame.
16151
161522008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16153
16154 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16155 to negative value.
16156
16157 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16158
16159 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16160
16161 * charset.c (syms_of_charset): Set QCtest and Qeq.
16162
161632008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16164
16165 * process.c (Fstart_process):
16166 * callproc.c (Fcall_process): Handle the case where
16167 Funhandled_file_name_directory returns nil.
16168
16169 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16170 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16171 * font.c (check_gstring): Use them and AREF to access the vector before
16172 we know it's really a gstring.
16173 (Ffont_shape_text): Fix typo.
46e722a9 16174 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16175
16176 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16177 Declare.
16178
16179 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16180
161812008-02-05 Jason Rumney <jasonr@gnu.org>
16182
16183 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16184 Set smallest_font_height and smallest_char_width in display info.
16185
161862008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16187
16188 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16189
161902008-02-05 Miles Bader <miles@gnu.org>
16191
16192 * xfaces.c (get_lface_attributes, merge_named_face)
16193 (lookup_named_face, lookup_derived_face, realize_named_face):
16194 Revert 2008-02-01 change by cyd@stupidchicken.com.
16195
161962008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16197
16198 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16199 fallback fonts.
16200 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16201
162022008-02-04 Jason Rumney <jasonr@gnu.org>
16203
16204 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16205 set full_name.
16206 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16207
162082008-02-03 Jason Rumney <jasonr@gnu.org>
16209
16210 * makefile.w32-in (OBJ1): Include font.o here.
16211 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16212
162132008-02-02 Jason Rumney <jasonr@gnu.org>
16214
16215 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16216
162172008-02-01 Jason Rumney <jasonr@gnu.org>
16218
16219 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16220
16221 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16222
162232008-02-01 Andreas Schwab <schwab@suse.de>
16224
16225 * Makefile.in (shortlisp, lisp): Update for rename of
16226 ../lisp/language/myanmar.el.
16227
162282008-02-01 Chong Yidong <cyd@stupidchicken.com>
16229
16230 * xfaces.c (get_lface_attributes): Delete function.
16231 (merge_named_face, lookup_named_face, lookup_derived_face)
16232 (realize_named_face): Call lface_from_face_name directly, and use
16233 the fact that merge_face_vectors does not alter its FROM argument.
16234
162352008-02-01 Jason Rumney <jasonr@gnu.org>
16236
16237 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16238 input in the default locale. Handle non-Unicode multibyte input.
16239
162402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16241
16242 * fontset.c (reorder_font_vector): Exclude nil elements from the
16243 font group. Don't try multiple fonts.
16244 (fontset_font): Adjust for the above change.
16245 (Finternal_char_font): Return nil if the found font doesn't
16246 contain the character ch.
16247
16248 * Makefile.in (lisp, shortlisp): Add cham.el.
16249
162502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16251
16252 * font.h (FONTP): Make it return 1 also for a font-object.
16253
16254 * .gdbinit (xfontset): New function.
16255
16256 * font.c (font_find_for_lface): Check if the character C is
16257 supported or not only for the first font.
16258
16259 * fontset.c (reorder_font_vector): Fix typo.
16260 (fontset_find_font): Don't add a font-spec specifying a script.
16261 Use 0 (not Qt) for the indication of empty font-group. Change the
16262 format of RFONT-DEF. Return Qt if no font in the font-group
16263 support the character.
16264 (fontset_font): Adjust for the above change. If no font was
16265 found the character, remember that.
16266 (face_for_char): Adjust for the change of RFONT-DEF.
16267 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16268 no font for the target.
16269 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16270
162712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16272
16273 * font.c (font_load_for_face): Handle the case that the font in
16274 face->lface is a string.
16275
162762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16277
16278 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16279
162802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16281
16282 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16283 Fix previous change. If the frame is not on a window system,
16284 signal an error.
16285
162862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16287
16288 * coding.c (decode_coding_object, encode_coding_object): Adjust
16289 marker positions after conversion.
16290
16291 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16292
162932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16294
16295 * font.c (font_find_for_lface): Fix the handling of the return
16296 value of font_has_char.
16297 (Ffont_shape_text): Fix previous change.
16298
16299 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16300 (fontset_ref_and_range): Delete it.
16301 (fontset_find_font): Call char_table_ref_and_range instead of
16302 FONTSET_REF_AND_RANGE.
16303 (make_fontset): Don't setup font groups of Latin here.
16304 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16305 (new_fontset_from_font): Make the specified font the default for
16306 all Latin characters.
16307
163082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16309
16310 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16311 is on a window system before accessing the fontset of the frame.
16312
163132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16314
16315 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16316
16317 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16318 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16319
16320 * font.c (Ffont_shape_text): If the font driver doesn't have a
16321 shaper function, make zero-width glyphs to have at least one-pixel
16322 width. Fix setting of `to' field of glyphs.
16323
163242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16325
16326 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16327 glyphs.
16328
16329 * font.h (struct font_driver): Improve docstring of member `shape'.
16330
163312008-02-01 Kenichi Handa <handa@m17n.org>
16332
16333 * composite.c (syms_of_composite): Fix docstring of
16334 auto-composition-function.
16335
16336 * font.h (LGLYPH_SIZE): New macro.
16337
16338 * font.c (Ffont_fill_gstring): Stop filling when a character not
16339 supported by the font is found.
16340 (Ffont_shape_text): When a shape callback function returns nil,
16341 try at most two more times with larger gstring.
16342 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16343
16344 * xdisp.c (handle_auto_composed_prop): Change the argument to
16345 auto-composition-function.
16346
16347 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16348 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16349 Lispy glyph and store it in the lgstring.
16350
16351 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16352
16353 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16354
163552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16356
16357 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16358
16359 * fontset.c (Vfont_encoding_charset_alist): New variable.
16360 (syms_of_fontset): DEFVAR it.
16361 (reorder_font_vector, fontset_find_font): Optimize for the case of
16362 no need of reordering.
16363 (face_for_char): Map the charset property by
16364 Vfont_encoding_charset_alist.
16365
163662008-02-01 Jason Rumney <jasonr@gnu.org>
16367
16368 * w32font.c (logfonts_match): Don't check adstyle here.
16369 (font_matches_spec): Check here against physical font instead.
16370 (add_font_entity_to_list): Avoid some substitutions.
16371
16372 * font.c (font_parse_fcname): Default weight and slant to normal.
16373 (font_score): Prefer normal fonts if weight or slant unspecified.
16374 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16375 match freetype scores.
16376
163772008-02-01 Jason Rumney <jasonr@gnu.org>
16378
16379 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16380 font, as it may have been deleted.
16381 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16382 most common hyphenless variation.
16383 (logfonts_match): Check generic family.
16384 (font_matches_spec): Don't check generic family here.
16385 (fill_in_logfont): Set generic family based on adstyle.
16386
16387 * w32font.h (w32font_get_cache): Update declaration.
16388
163892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16390
16391 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16392
16393 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16394 If none of the new drivers are available, call font_update_drivers
16395 with the old drivers.
16396
16397 * w32font.c (w32font_get_cache): Adjust the argument type.
16398
16399 * xfont.c (xfont_get_cache): Adjust the argument type.
16400
16401 * font.h (struct font_driver): Change argument type of get_cache.
16402
16403 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16404
16405 * font.c (Ffont_get): Fix arguments to Fassoc.
16406 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16407 (font_clear_cache): New function.
16408 (font_list_entities, font_matching_entity): Use font_get_cache.
16409 (font_update_drivers): Call font_clear_cache when finishing a driver.
16410
16411 * fontset.c (fontset_find_font): Fix previous change.
16412
164132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16414
16415 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16416 dpyinfo->font_table.
16417 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16418 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16419
16420 * font.c (font_at): Handle the case that the arg C is negative.
16421 Handle the unibyte case.
16422 (Ffont_at): Call font_at with the arg C -1.
16423
16424 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16425 the position here, and call font_at with the arg C -1.
16426 Don't check the range of the existing composition at the point.
16427
164282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16429
16430 * fontset.c (fontset_add): New args charset_id and family.
16431 Change caller.
16432 (load_font_get_repertory, fontset_find_font): Assume that
16433 font_spec is always a font-spec object.
16434 (Fset_fontset_font): Always store a font-spec object in a fontset.
16435
16436 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16437 instead of get_property_and_range.
16438
164392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16440
16441 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16442 (xftfont_open): Don't keep locking face.
16443 (xftfont_close): Don't unlock face.
16444 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16445
16446 * fontset.c (fontset_find_font): Don't prefer a font of
16447 supplementary charset.
16448
164492008-02-01 Kenichi Handa <handa@m17n.org>
16450
16451 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16452 script, langsys_tag to langsys, new member script.
16453 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16454 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16455 listing to the script specified in that property. Fix arg to
16456 OTF_check_features.
16457
164582008-02-01 Jason Rumney <jasonr@gnu.org>
16459
16460 * w32font.h: New file.
16461
16462 * w32font.c: Include it.
16463 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16464 (w32font_open): Set owning_frame.
16465 (w32font_text_extents): Use owning_frame.
16466 (struct font_callback_data): Add opentype_only field.
16467 (add_font_entity_to_list): Use it to filter fonts.
16468 Don't check against full name.
16469 (w32font_list_internal): New function.
16470 (w32font_list): Use it.
16471 (w32font_match_internal): New function.
16472 (w32font_match): Use it.
16473 (w32font_open_internal): New function.
16474 (w32font_open): Use it.
16475 (w32font_get_cache, w32font_close, w32font_has_char)
16476 (w32font_encode_char, w32font_text_extents, w32font_draw):
16477 Make non-static.
16478
16479 * makefile.w32-in (w32font.o): Depend on w32font.h.
16480
164812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16482
16483 * charset.c (Fdefine_charset_internal): Record a supplementary
16484 charset at the tail of Vcharset_order_list.
16485
16486 * font.c (Ffont_shape_text): Fix the return value.
16487
16488 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16489
16490 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16491
164922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16493
16494 * ftfont.c (struct OpenTypeSpec): New struct.
16495 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16496 (ftfont_get_open_type_spec): New function.
16497 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16498
16499 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16500
165012008-02-01 Jason Rumney <jasonr@gnu.org>
16502
16503 * w32font.c (add_font_entity_to_list): Compare only the beginning
16504 of full name.
16505
165062008-02-01 Kenichi Handa <handa@m17n.org>
16507
16508 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16509 Never return HANDLED_RECOMPUTE_PROPS.
16510
165112008-02-01 Kenichi Handa <handa@m17n.org>
16512
16513 * font.c (font_gstring_produce): Delete it.
16514
16515 * composite.h (COMPOSITION_METHOD):
16516 Handle COMPOSITION_WITH_GLYPH_STRING.
16517
165182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16519
16520 * xfont.c (Qx): Delete.
16521 (syms_of_xfont): Don't initialize Qx.
16522
16523 * composite.h (enum composition_method):
16524 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16525
165262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16527
16528 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16529 (choose_face_font): Accept new form of font-spec.
16530
16531 * frame.h (font_driver_list): Declare it unconditionally.
16532 (struct frame): Define members font_driver_list and font_data_list
16533 unconditionally.
16534
16535 * fontset.c: Include "font.h" unconditionally.
16536 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16537 (Fset_fontset_font): Accept a font-spec object.
16538
16539 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16540 PIXEL_SIZE part a wild card.
16541
16542 * dispextern.h (struct glyph_string): Define members clip and
16543 num_clips unconditionally.
16544 (struct face): Define members font_info and extra unconditionally.
16545
16546 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16547 ftfont_info only when HAVE_LIBOTF is defined.
16548
165492008-02-01 Andreas Schwab <schwab@suse.de>
16550
16551 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16552 and end.
16553
165542008-02-01 Jason Rumney <jasonr@gnu.org>
16555
16556 * w32font.c (w32font_driver): Add new fields.
16557
165582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16559
16560 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16561 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16562 (LIBES): Add @M17N_FLT_CFLAGS@.
16563
16564 * composite.c (compose_text): Don't treat the new style
16565 composition specially.
16566
16567 * emacs.c (main): Call syms_of_font unconditionally.
16568
16569 * font.h (FONT_ENTITY_NOT_LOADABLE)
16570 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16571 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16572 (struct font_driver): New member shape.
16573 (font_registry_charsets): Extern it.
16574 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16575 (font_otf_capability, font_drive_otf): Delete their externs.
16576
16577 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16578 (font_charset_alist, font_registry_charsets): Move from xfont.c
16579 and rename.
16580 (font_prop_validate_otf): New function.
16581 (font_property_table): Register it for QCotf.
16582 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16583 (font_drive_otf): Delete.
16584 (font_prepare_composition): New arg F. Adjust for the change of
16585 lispy gstring.
16586 (font_find_for_lface): New arg C.
16587 (font_load_for_face): Adjust for the change of font_find_for_lface.
16588 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16589 lispy gstring.
16590 (Ffont_shape_text): New function.
16591 (Fopen_font): If the font size is not given, use 12-pixel.
16592 (Ffont_at): New arg STRING.
16593 (syms_of_font): Initalize font_charset_alist.
16594 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16595 conditionally.
16596
16597 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16598 fonts of the same font-spec. Change the format of RFONT-DEF.
16599 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16600 Adjust for the change of RFONT-DEF.
16601 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16602
16603 * ftfont.h: New file.
16604
16605 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16606 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16607 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16608 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16609 font_otf_capability and font_drive_otf, set ftfont_shape.
16610 (ftfont_list): Adjust for the change of :otf property value.
16611 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16612 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16613 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16614 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16615 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16616 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16617
16618 * w32term.c (x_draw_composite_glyph_string_foreground):
16619 Adjust for the change of lispy gstring.
16620
16621 * xdisp.c (handle_composition_prop): Adjust for the change of
16622 lispy gstring. Call a function for auto-composition with the
16623 third arg it->window.
16624 (fill_composite_glyph_string): Adjust for the change of lispy string.
16625 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16626
16627 * xfaces.c (set_font_frame_param): Adjust for the change of
16628 font_find_for_lface.
16629
16630 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16631 (xfont_registry_charsets): Likewise. Change caller.
16632 (syms_of_xfont): Don't handle x_font_charset_alist.
16633
16634 * xftfont.c: Include "ftfont.h".
16635 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16636 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16637 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16638 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16639 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16640 Set xftfont_driver.shape to xftfont_shape.
16641
16642 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16643 the change of lispy gstring.
16644
166452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16646
16647 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16648
166492008-02-01 Jason Rumney <jasonr@gnu.org>
16650
16651 * w32font.c (w32font_draw): Fill background manually.
16652
166532008-02-01 Jason Rumney <jasonr@gnu.org>
16654
16655 * font.c (Qfontp): Remove unused symbol.
16656 (QCantialias): New symbol.
16657 (syms_of_font): Define it.
16658 (font_property_table): Set a validator for QCantialias.
16659
16660 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16661 Define if not already.
16662 (QCfamily): Share with xfaces.c.
16663 (Qstandard, Qsubpixel, Qnatural): New symbols.
16664 (syms_of_w32font): Define them. Don't define QCfamily here.
16665 (w32_antialias_type, lispy_antialias_type): New functions.
16666 (w32_enumfont_pattern_entity): New arg requested_font.
16667 Set antialias parameter if non-default was requested.
16668 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16669
166702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16671
16672 * lread.c (read1): Undo the previous change.
16673
166742008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16675
16676 * frame.c (Fdelete_frame): Call font_update_drivers only when
16677 USE_FONT_BACKEND is defined.
16678
166792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16680
16681 * font.h (struct font_bitmap): New member bits_per_pixel.
16682 (struct font_driver): New members start_for_frame and end_for_frame.
16683 (struct font_data_list): New struct.
16684 (font_put_frame_data, font_get_frame_data): Extern them.
16685
16686 * frame.h (struct frame): New member font_data_list.
16687
16688 * font.c (font_update_drivers): Call driver->start_for_frame and
16689 driver->end_for_frame at proper timings.
16690 (font_put_frame_data, font_get_frame_data): New functions.
16691 (Ffont_spec): Add usage in the docstring.
16692
16693 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16694 (Fdelete_frame): Call font_update_drivers.
16695
16696 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16697 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16698 (xftfont_get_xft_draw): New function.
16699 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16700 (xftfont_end_for_frame): New function.
16701 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16702
16703 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16704 Change argument. Cache GCs in the per-frame data.
16705 (struct ftxfont_frame_data): New struct.
16706 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16707 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16708 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16709 (ftxfont_end_for_frame): New function.
16710 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16711
16712 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16713
167142008-02-01 Kenichi Handa <handa@m17n.org>
16715
16716 * xselect.c (Vselection_coding_system)
16717 (Vnext_selection_coding_system): Delete them.
16718 (syms_of_xselect): Don't declare selection-coding-system and
16719 next-selection-coding-system. They are declared in select.el.
16720
167212008-02-01 Jason Rumney <jasonr@gnu.org>
16722
16723 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16724
16725 * w32fns.c: Include imm.h.
16726 (get_composition_string_fn, get_ime_context_fn): New optional
16727 system functions.
16728 (globals_of_w32fns): Load them from imm32.dll.
16729 (ignore_ime_char): New flag.
16730 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16731 WM_IME_ENDCOMPOSITION messages.
16732
16733 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16734 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16735
167362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16737
16738 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16739 (READCHAR_REPORT_MULTIBYTE): New macro.
16740 (readchar): New 2nd arg MULTIBYTE.
16741 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16742 Make symbol's name multibyte according to the multibyteness of the
16743 source.
16744
167452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16746
16747 * xfaces.c (face_for_overlay_string): Call lookup_face with
16748 correct arguments (fix of synching with the trunk).
16749
167502008-02-01 Kenichi Handa <handa@m17n.org>
16751
16752 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16753 (font_prop_validate_non_neg, font_prop_validate_spacing):
16754 Delete argument prop_index.
16755 (font_property_table): Change arguments to validater. Change Callers.
16756 (font_lispy_object): Delete.
16757 (font_at): Use font_find_object instead fo font_lispy_object.
16758
167592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16760
16761 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16762 and file names.
16763
167642008-02-01 Jason Rumney <jasonr@gnu.org>
16765
16766 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16767 (font_matches_spec): Remove debug output.
16768 (add_font_entity_to_list): Avoid using substituted fonts.
16769
167702008-02-01 Jason Rumney <jasonr@gnu.org>
16771
16772 * doc.c (Fsnarf_documentation):
16773 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16774
167752008-02-01 Miles Bader <miles@gnu.org>
16776
16777 * dispextern.h (struct glyph_row): Only define "clip" field if
16778 HAVE_WINDOW_SYSTEM is defined.
16779
167802008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16781
16782 Fix up multi-tty merge.
16783
16784 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16785 and indentation.
16786
16787 * xfaces.c (free_realized_face, clear_face_gcs):
16788 Include font_done_for_face in the input_blocked section, just in case.
16789
16790 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16791 (get_char_face_and_encoding): Undo last change and remove the *other*
16792 duplicate definition (i.e. keep the one that's better scoped and that
16793 includes code for the font-backend).
16794
16795 * terminal.c (create_terminal): Default keyboard_coding to
16796 `no-conversion' and terminal_coding to `undecided'.
16797
16798 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16799
16800 * fontset.c (free_realized_fontsets): Check that the table entry does
16801 contain a fontset before trying to compare it to `base'.
16802
16803 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16804 syms_of_charset, and syms_of_coding earlier because init_window_once
16805 now needs Vcoding_system_hash_table to be setup.
16806
16807 * coding.h (default_buffer_file_coding): Remove.
16808
16809 * coding.c (default_buffer_file_coding): Remove.
16810 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16811 than ->symbol, and use the terminal-local coding system.
16812 (syms_of_coding): Don't setup the coding-systems that are not
16813 terminal-local.
16814 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16815
16816 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16817 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16818
16819 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16820 in chartab.c and were re-added here by mistake.
16821 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16822
16823 * doc.c (Fsnarf_documentation):
16824 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16825 src to etc.
16826
16827 * ChangeLog.10: Add mistakenly removed entry.
16828
168292008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16830
16831 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16832
168332008-02-01 Miles Bader <miles@gnu.org>
16834
16835 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16836 Add extra args to FACE_FOR_CHAR.
16837
168382008-02-01 Kenichi Handa <handa@m17n.org>
16839
16840 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16841 in sequence.
16842
16843 * chartab.c (map_sub_char_table, map_char_table): If the range
16844 contains just one character, call the function with that character
16845 even if the depth is not 3.
16846
168472008-02-01 Jason Rumney <jasonr@gnu.org>
16848
16849 * w32font.c (w32font_text_extents): Calculate metrics for the
16850 whole string.
16851
168522008-02-01 Jason Rumney <jasonr@gnu.org>
16853
16854 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16855
168562008-02-01 Jason Rumney <jasonr@gnu.org>
16857
16858 * w32term.c (x_set_glyph_string_clipping): Use
16859 get_glyph_string_clip_rects.
16860 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16861 Adjust for the change of struct glyph_string.
16862
16863 * w32font.c (w32font_draw): Do clipping here.
16864
168652008-02-01 Kenichi Handa <handa@m17n.org>
16866
16867 * xftfont.c (xftfont_draw): Adjust for the change of struct
16868 glyph_string.
16869
16870 * xterm.c (x_set_glyph_string_clipping): Use
16871 get_glyph_string_clip_rects.
16872 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16873 Adjust for the change of struct glyph_string.
16874
16875 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16876 the resulting clip(s}.
16877 (expose_overlaps): Add arg r. Change callers. Set it to
16878 row->clip temporarily.
16879 (expose_window): Redraw rows overlapping the exposed area.
16880
16881 * dispextern.h (struct glyph_row): New member clip.
16882 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16883 clip_height, new member clip, and num_clips.
16884
168852008-02-01 Kenichi Handa <handa@m17n.org>
16886
16887 * data.c (Fchar_or_string_p): Fix docstring.
16888
168892008-02-01 Kenichi Handa <handa@m17n.org>
16890
16891 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16892 create a temporary XftDraw object.
16893
168942008-02-01 Kenichi Handa <handa@m17n.org>
16895
16896 * font.c (Ffontp): Fix docstring.
16897
16898 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16899 strong evidence of ISO-2022.
16900
169012008-02-01 Kenichi Handa <handa@m17n.org>
16902
16903 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16904 SYNTAX_ENTRY_FOLLOW_PARENT.
16905
169062008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16907
16908 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16909 its type.
16910 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16911 Update to the new type of weak_hash_tables and next_weak.
16912
16913 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16914 a plain C pointer to Lisp_Hash_Table.
16915
16916 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16917 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16918 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16919 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16920 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16921 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16922 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16923 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16924 (GC_EQ): Remove since they've been identical to their non-GC_
16925 alter-egos ever since the markbit was eradicated.
16926
16927 * alloc.c:
16928 * buffer.c:
16929 * buffer.h:
16930 * data.c:
16931 * fileio.c:
16932 * filelock.c:
16933 * fns.c:
16934 * frame.h:
16935 * lisp.h:
16936 * macterm.c:
16937 * print.c:
16938 * process.c:
16939 * w32fns.c:
16940 * w32menu.c:
16941 * w32term.c:
16942 * xfns.c:
16943 * xmenu.c:
16944 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16945
169462008-02-01 Kenichi Handa <handa@m17n.org>
16947
16948 * chartab.c (map_sub_char_table): Make it work for the top-level
16949 char-table. Fix handling of parent char-table.
16950 (map_char_table): Adjust for the above change.
16951
169522008-02-01 Jason Rumney <jasonr@gnu.org>
16953
16954 * w32font.c (Qgdi): Rename from Qw32.
16955
169562008-02-01 Jason Rumney <jasonr@gnu.org>
16957
16958 * w32bdf.c (get_quoted_string): Make function static.
16959
169602008-02-01 Kenichi Handa <handa@m17n.org>
16961
16962 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16963 bigger ascent and descent than those of the font, use them as
16964 font's ascent and descent.
16965
169662008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * Makefile.in (${lispsource}international/charprop.el): Move this
16969 target within "#ifdef HAVE_UNIDATA" and "#endif".
16970
169712008-02-01 Kenichi Handa <handa@m17n.org>
16972
16973 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16974 (shortlisp): Add ../lisp/language/tai-viet.el.
16975
169762008-02-01 Ulrich Mueller <ulm@gentoo.org>
16977
16978 * Makefile.in (${lispsource}international/charprop.el): Depend on
16979 temacs${EXEEXT}.
16980
169812008-02-01 Jason Rumney <jasonr@gnu.org>
16982
16983 * w32font.c (w32font_close): Delete the GDI font object.
16984
16985 * w32menu.c: Include character.h.
16986
16987 * w32proc.c: Likewise.
16988
16989 * w32select.c: Likewise.
16990
16991 * makefile.w32-in (w32proc.o): Depend on character.h.
16992
169932008-02-01 Jason Rumney <jasonr@gnu.org>
16994
16995 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16996
16997 * w32menu.c (syms_of_w32menu): Likewise.
16998
16999 * w32proc.c (syms_of_ntproc): Likewise.
17000
17001 * w32select.c (syms_of_w32select): Likewise.
17002
17003 * w32term.c (syms_of_w32term): Likewise.
17004
170052008-02-01 Jason Rumney <jasonr@gnu.org>
17006
17007 * w32font.c (w32font_draw): Delete brush after using it.
17008
170092008-02-01 Jason Rumney <jasonr@gnu.org>
17010
17011 * w32font.c (w32font_open): Don't set font_idx.
17012 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17013 to font settings.
17014 (w32font_draw): Fill background explicitly.
17015
170162008-02-01 Jason Rumney <jasonr@gnu.org>
17017
17018 * w32term.c (w32_initialize): Don't call w32font_initialize.
17019
17020 * w32font.c (w32font_info): Remove subranges.
17021 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17022 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17023 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17024 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17025 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17026 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17027 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17028 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17029 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17030 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17031 New symbols.
17032 (font_callback_data): New struct.
17033 (w32font_list, w32font_match): Use it.
17034 (w32font_open): Don't populate subranges.
17035 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17036 (w32font_encode_char): Always return unicode code-point as-is.
17037 (w32font_text_extents): Supply a transformation matrix to
17038 GetGlyphOutline. Never look up by glyph index. Avoid looping
17039 twice. Use unicode version of GetTexExtentPoint32 instead of
17040 glyph index version.
17041 (set_fonts_frame): Remove.
17042 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17043 set frame parameter. Use backward compatible fake foundries.
17044 Save generic family in extra slot under QCfamily. Make width slot
17045 constant. Save QCspacing value. Save list of scripts instead of
17046 binary subranges.
17047 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17048 (add_font_entity_to_list): Use font_callback_data struct. Filter
17049 unwanted fonts.
17050 (add_one_font_entity_to_list): Use font_callback_data struct.
17051 (w32_registry): Default to iso10646_1.
17052 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17053 string font registries. Don't fill in font name if it is a generic
17054 family name, fill family instead. Use spacing, family and script
17055 extra info to fill pitch, family and charset fields.
17056 (list_all_matching_fonts): Use font_callback_data struct.
17057 (unicode_range_for_char): Remove.
17058 (font_supported_scripts): New function.
17059 (w32font_initialize): Remove.
17060 (syms_of_w32font): Update which symbols are defined.
17061
170622008-02-01 Jason Rumney <jasonr@gnu.org>
17063
17064 * font.c (font_pixel_size): Reverse assq_no_quit args.
17065
17066 * w32term.h (FONT_WIDTH): Report max width, not average.
17067 (FONT_MAX_WIDTH): Remove.
17068 (FONT_AVG_WIDTH): New macro.
17069
17070 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17071 redefinition of FONT_WIDTH.
17072
17073 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17074 (w32_cache_char_metrics): Use FONT_WIDTH.
17075
17076 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17077
170782008-02-01 Jason Rumney <jasonr@gnu.org>
17079
17080 * w32font.c (w32font_open): Make lfHeight negative.
17081
17082 * w32fns.c (x_default_font_parameter): Use new style font name.
17083 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17084
170852008-02-01 Jason Rumney <jasonr@gnu.org>
17086
17087 * w32font.c (QCsubranges): New symbol.
17088 (w32font_open, w32font_has_char): Get subranges from subproperty
17089 of extra.
17090 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17091 (syms_of_w32font): Define :subranges symbol.
17092
17093 * font.c (font_put_extra): Expose externally.
17094
17095 * font.h (font_put_extra): Move declaration from font.c.
17096
17097 * font.c (Ffont_get): Use font driver to determine otf capability.
17098 (adjust_anchor): Check if driver defines anchor_point before using.
17099
17100 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17101 (w32font_draw): Use options.
17102 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17103 Fix detection of truetype fonts.
17104 (registry_to_w32_charset): Handle charsets other than iso8859-1
17105 expressed as lisp symbols.
17106 (w32_registry): Express charset as lisp symbol.
17107 (fill_in_logfont): Reverse pixel and point height logic.
17108 Don't set width here. Set quality to default.
17109
17110 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17111 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17112
17113 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17114 Remove redundant loop and allocation.
17115
17116 * makefile.w32-in (font.o, w32font.o): New objects.
17117 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17118 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17119
17120 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17121 STORE_XCHARB a valid l-value.
17122
17123 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17124 calculations for non-Truetype fonts.
17125 (x_draw_glyph_string): Sync with xterm.c.
17126 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17127 Remove redundant code.
17128 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17129
17130 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17131 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17132
17133 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17134 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17135
17136 * w32font.c: New file for w32 font backend.
17137
171382008-02-01 Kenichi Handa <handa@m17n.org>
17139
17140 * term.c: Don't include "buffer.h" twice.
17141
171422008-02-01 Kenichi Handa <handa@m17n.org>
17143
17144 * character.c (Funibyte_string): New function.
17145 (syms_of_character): Defsubr it.
17146
171472008-02-01 Jason Rumney <jasonr@gnu.org>
17148
17149 * w32term.c [USE_FONT_BACKEND]:
17150 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17151 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17152 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17153 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17154 (x_free_frame_resources): Sync with xterm.c.
17155
171562008-02-01 Andreas Schwab <schwab@suse.de>
17157
17158 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17159 char-table size.
17160
171612008-02-01 Kenichi Handa <handa@m17n.org>
17162
17163 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17164
171652008-02-01 Kenichi Handa <handa@m17n.org>
17166
17167 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17168 font_otf_gpos, add font_drive_otf.
17169
17170 * fontset.c (fontset_find_font): Pay attention to font size
17171 specified for a font.
17172 (reorder_font_vector): Check contents of font_def.
17173
17174 * font.c (struct otf_list): Delete it.
17175 (otf_list): Make it a lisp variable.
17176 (otf_open): Use lispy otf_list.
17177 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17178 (check_otf_features): New function.
17179 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17180 New functions.
17181 (font_drive_otf): New function merging font_otf_gsub and
17182 font_otf_gpos.
17183 (font_open_for_lface): New arg spec. Change argument order.
17184 (font_load_for_face): Adjust for the change of font_open_for_lface.
17185 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17186 Ffont_otf_gpos.
17187 (syms_of_font): Staticpro otf_list. Delete defsubr of
17188 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17189
17190 * xfaces.c (set_font_frame_param): Adjust for the change of
17191 font_open_for_lface.
17192
17193 * font.h (font_open_for_lface): Adjust prototype.
17194 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17195 member otf_drive.
17196 (font_otf_gsub, font_otf_gpos): Delete externs.
17197 (font_drive_otf): Extern it.
17198
171992008-02-01 Kenichi Handa <handa@m17n.org>
17200
17201 * font.c (font_at): If the window W is not on a window system,
17202 return Qnil.
17203
17204 * coding.c (produce_chars, encode_coding): Don't call
17205 insert_from_gap if no characters to produce.
17206
172072008-02-01 Kenichi Handa <handa@m17n.org>
17208
17209 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17210 Fclear_face_cache.
17211
17212 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17213
172142008-02-01 Miles Bader <miles@gnu.org>
17215
17216 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17217 Parse "--disable-font-backend" option.
17218 (standard_args): Add "--disable-font-backend" option.
17219
172202008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * fontset.c (fontset_find_font): New function.
17223 (fontset_font): Use fontset_find_font.
17224 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17225 Register the specified font for all Latin characters.
17226 (new_fontset_from_font): Register the specified font for all Latin
17227 characters.
17228 (dump_fontset): For a realized fontset, include the base fontset
17229 name in the returned vector.
17230
172312008-02-01 Kenichi Handa <handa@m17n.org>
17232
17233 * character.h (CHAR_STRING): Cast C to unsigned on calling
17234 char_string.
17235
17236 * character.c (char_string): Type of arg C changed to unsigned.
17237 Signal an error if C is an invalid character code.
17238
17239 * editfns.c (general_insert_function, Fchar_to_string):
17240 Use CHARACTERP, not INTEGERP.
17241
172422008-02-01 Kenichi Handa <handa@m17n.org>
17243
17244 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17245 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17246
17247 * regex.c (analyse_first): Fix for multibyte characters in "case
17248 charset:" and "case categoryspec:".
17249
172502008-02-01 Andreas Schwab <schwab@suse.de>
17251
17252 * Makefile.in (LIBES): Move standard libraries to the end.
17253
172542008-02-01 Kenichi Handa <handa@m17n.org>
17255
17256 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17257 nonzero, don't shrink the buffer nextb.
17258
17259 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17260
17261 * coding.c (coding_alloc_by_making_gap): New arg offset.
17262 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17263 offset.
17264 (decode_coding_iso_2022): Update coding->safe_charsets.
17265 (decode_coding_gap): Temporarily set
17266 current_buffer->text->inhibit_shrinking to 1.
17267
172682008-02-01 Kenichi Handa <handa@m17n.org>
17269
17270 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17271 indexing into elements of s->cmp and s->char2b.
17272
172732008-02-01 Juanma Barranquero <lekktu@gmail.com>
17274
17275 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17276
172772008-02-01 Kenichi Handa <handa@m17n.org>
17278
17279 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17280 target_multibyte instead of multibyte.
17281 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17282 (bcmp_translate): Change the argument name from multibyte to
17283 target_multibyte.
17284
172852008-02-01 Kenichi Handa <handa@m17n.org>
17286
17287 These changes are to compile a regexp into a pattern that can be
17288 used both for multibyte and unibyte targets.
17289
17290 * Makefile.in (search.o): Depend on charset.h.
17291
17292 * character.c (multibyte_char_to_unibyte_safe): New function.
17293
17294 * search.c: Include "charset.h".
17295 (compile_pattern_1): Delete argument multibyte. Don't set
17296 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17297 (compile_pattern): Don't compare cp->buf.target_multibyte.
17298 Compare cp->buf.charset_unibyte.
17299 (compile_pattern): Set cp->buf.target_multibyte.
17300
17301 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17302
17303 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17304
17305 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17306 multibyte. Change callers.
17307 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17308 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17309 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17310 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17311 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17312 (regex_compile): Make the compiled pattern usable both for
17313 multibyte and unibyte targets.
17314 (analyse_first): Make the fastmap usable both for multibyte and
17315 unibyte targets.
17316 (TRANSLATE_VIA_MULTIBYTE): Delete.
17317 (re_match_2_internal): Pay attention to the case that the
17318 multibyteness of bufp and target may be different.
17319
173202008-02-01 Kenichi Handa <handa@m17n.org>
17321
17322 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17323 empty box occupy at least one column width.
17324
173252008-02-01 Miles Bader <miles@gnu.org>
17326
17327 * Makefile.in: Remove redundant HAVE_XFT clause.
17328
173292008-02-01 Kenichi Handa <handa@m17n.org>
17330
17331 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17332
173332008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17336 being nil.
17337
173382008-02-01 Kenichi Handa <handa@m17n.org>
17339
17340 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17341
173422008-02-01 Kenichi Handa <handa@m17n.org>
17343
17344 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17345
173462008-02-01 Kenichi Handa <handa@m17n.org>
17347
17348 * search.c (simple_search): Fix previous change.
17349
173502008-02-01 Kenichi Handa <handa@m17n.org>
17351
17352 * xftfont.c (ftfont_font_format): Extern declaration.
17353
17354 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17355
17356 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17357 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17358
17359 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17360 (ftfont_font_format): Fix previous change.
17361
17362 * font.h (Ffont_xlfd_name): EXFUN it.
17363
17364 * font.c (font_parse_xlfd): Fix the array size of `f'.
17365 (register_font_driver): Use EQ to compare driver->type.
17366
17367 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17368 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17369 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17370
173712008-02-01 Kenichi Handa <handa@m17n.org>
17372
17373 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17374 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17375
173762008-02-01 Kenichi Handa <handa@m17n.org>
17377
17378 * xfont.c (xfont_open): Set font->format.
17379
17380 * xftfont.c (xftfont_open): Set font->format.
17381
17382 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17383 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17384 (ftfont_open): Set font->format.
17385 (ftfont_font_format): New function.
17386
17387 * font.h (struct font): New member format.
17388
17389 * font.c (Qopentype): New variable.
17390 (syms_of_font): Defsym it.
17391 (Fquery_font): Change the format of the last element of the return
17392 value.
17393
173942008-02-01 Kenichi Handa <handa@m17n.org>
17395
17396 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17397 last resort.
17398
173992008-02-01 Kenichi Handa <handa@m17n.org>
17400
17401 * coding.c (detect_coding_charset): Fix detection of multi-byte
17402 charset.
17403
174042008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17405
17406 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17407
174082008-02-01 Kenichi Handa <handa@m17n.org>
17409
17410 * xdisp.c (get_next_display_element): Set it->face_id for the
17411 first component of a composition.
17412 (x_produce_glyphs): Check if the font is changed or not for composition.
17413
174142008-02-01 Kenichi Handa <handa@m17n.org>
17415
17416 * fontset.c (Qlatin): New variable.
17417 (syms_of_fontset): Define it as a lisp symbol.
17418 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17419
174202008-02-01 Kenichi Handa <handa@m17n.org>
17421
17422 * font.c (font_unparse_fcname): Pay attention to the case that
17423 some of font property is a null string.
17424
174252008-02-01 Kenichi Handa <handa@m17n.org>
17426
17427 * term.c: Include "composite.h".
17428 (encode_terminal_code): Output all components of composition.
17429 Check the size of encode_terminal_src.
17430 (produce_glyphs): For composition, call produce_composite_glyph.
17431 (append_composite_glyph, produce_composite_glyph): New functions.
17432
17433 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17434 is not found, get font_info from the current ascii face.
17435
174362008-02-01 Kenichi Handa <handa@m17n.org>
17437
17438 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17439 buffer-file-name to Qnil before calling insert_from_buffer.
17440
17441 * font.c (font_unparse_fcname): Pay attention to the case that
17442 foundry is a null string.
17443
174442008-02-01 Kenichi Handa <handa@m17n.org>
17445
17446 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17447
17448 * font.c (Qunicode_sip): New variable.
17449 (syms_of_font): Declare it as a Lisp symbol.
17450
17451 * font.h (Qunicode_sip): Extern it.
17452
174532008-02-01 Kenichi Handa <handa@m17n.org>
17454
17455 * composite.c (get_composition_id): Pay attention to TAB component.
17456
17457 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17458 TAB. Adjust for the change of s->char2b which always points to
17459 the first element of allocated memory.
17460
17461 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17462
17463 * xdisp.c (handle_composition_prop): Set it->c to the first
17464 non-TAB component.
17465 (fill_composite_glyph_string): Change argument.
17466 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17467 (x_produce_glyphs): Fix handling of left/right padding.
17468
174692008-02-01 Kenichi Handa <handa@m17n.org>
17470
17471 * coding.c (detect_coding_system): Fix for handling off
17472 inhibit_iso_escape_detection. Fix for the case that no coding
17473 system is defined for a specific coding category.
17474
174752008-02-01 Kenichi Handa <handa@m17n.org>
17476
17477 * font.c (font_matching_entity): Delete unused local var.
17478
17479 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17480 opening a font.
17481
17482 * fileio.c (Finsert_file_contents): On recovering a file, assume
17483 Unix-like eol.
17484 (choose_write_coding_system): On auto-saving a file, force
17485 Unix-like eol.
17486
17487 * coding.c (setup_coding_system): Fix setting of
17488 coding->common_flags based on eol_type.
17489 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17490 inherit from it.
17491
174922008-02-01 Kenichi Handa <handa@m17n.org>
17493
17494 * alloc.c (NSTATICS): Increas to 0x600.
17495
174962008-02-01 Kenichi Handa <handa@m17n.org>
17497
17498 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17499 (ftfont_list): Don't check :name property.
17500 (ftfont_match): New function.
17501 (ftfont_pattern_entity): If the pattern doesn't contain
17502 FC_SPACING, don't assume FC_MONO.
17503
17504 * font.h (struct font_driver): New member `match'.
17505 (font_update_drivers): Adjust prototype.
17506
17507 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17508 property of FONT.
17509 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17510 them unconditionally.
17511 (font_matching_entity): New function.
17512 (font_open_by_name): Try font_matching_entity if exact match is
17513 not found.
17514 (font_update_drivers): Delete the arg FONT. Return a list of
17515 actually used backends. Don't free faces, font caches here.
17516 Don't store data in frame parameters. Don't call x_set_font.
17517 (Ffont_spec): Store :name property as is.
17518 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17519 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17520 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17521 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17522 Call font->driver->otf_gsub instead of font_otf_gsub.
17523
17524 * frame.c (x_set_font_backend): Do more works that were done in
17525 font_update_drivers before.
17526
17527 * xfont.c (xfont_match): New function.
17528 (xfont_driver): Set xfont_driver.match to xfont_match.
17529 (xfont_draw): Set font in GC if necessary.
17530
17531 * ftxfont.c (ftxfont_match): New function.
17532 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17533
17534 * xftfont.c (xftfont_match): New function.
17535 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17536
175372008-02-01 Kenichi Handa <handa@m17n.org>
17538
17539 * font.h (struct font): New member scalable.
17540 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17541 (font_otf_gsub): Adjust prototype.
17542
17543 * font.c (font_otf_capability): Fix handling of the default langsys.
17544 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17545 Check the contents of SPEC.
17546 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17547 (check_gstring): New function.
17548 (REPLACEMENT_CHARACTER): New macro.
17549 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17550 glyph codes of GSTRING.
17551 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17552 (font_prepare_composition): Set cmp->glyph_len.
17553 (font_open_entity): Set font->scalable.
17554 (Ffont_get): Handle :otf property.
17555 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17556 functions.
17557 (Fquery_font): Use font->font.full_name.
17558 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17559 Sfont_otf_alternates.
17560
17561 * ftfont.c (ftfont_open): Set font->font.full_name and
17562 font->font.name properly. Fix calculation of font->font.height
17563 and font->min_width.
17564
17565 * ftxfont.c (ftxfont_create_gcs): New function.
17566 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17567 (ftxfont_draw_backgrond): Fix filling region.
17568 (ftxfont_default_fid): New function.
17569 (ftxfont_open): Set xfont->fid to the return value of
17570 ftxfont_default_fid.
17571 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17572 (ftxfont_done_face): Free only GCs that are created by
17573 ftxfont_create_gcs.
17574 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17575
17576 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17577 Clip to src->width, etc (not src->clip_XXX).
17578
17579 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17580 FontBackend frame parameter.
17581
175822008-02-01 Kenichi Handa <handa@m17n.org>
17583
17584 * font.h (struct font_driver_list): New member `on'.
17585 (Fclear_font_cache): EXFUN it.
17586 (font_update_drivers): Extern it.
17587
17588 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17589 (font_list_entities): Check driver_list->on.
17590 (register_font_driver): Initalize `on' member to 0.
17591 (font_update_drivers): New function.
17592 (Fclear_font_cache): Check driver_list->on.
17593
17594 * frame.h (Qfont_backend): Extern it.
17595 (x_set_font_backend): Extern it.
17596
17597 * frame.c (Qfont_backend): New variable.
17598 (frame_parms): New element for font-backend.
17599 (x_set_font_backend): New function.
17600
17601 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17602 FontBackend frame parameter.
17603 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17604 x_set_font_backend.
17605
17606 * xfont.c (xfont_list): Don't try listing by :name property if the
17607 name is not for XLFD.
17608
176092008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17612 (LGLYPH_SET_TO): New macros.
17613 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17614 element of G is vector or not.
17615 (font_at): Extern it.
17616
17617 * font.c: Include window.h.
17618 (font_lispy_object): New function.
17619 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17620 end of valid glyph.
17621 (font_close_object): Fix getting (struct font *).
17622 (font_at): New function.
17623 (Ffont_get): If FONT is a font-object, get entity from it.
17624 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17625 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17626 range check.
17627 (Ffont_at): New function.
17628 (syms_of_font): Defsubr Sfont_at.
17629
17630 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17631 before the entry for Qcomposition.
17632 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17633 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17634 the font in gstring.
17635 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17636 LGLYPH_FORM (g) to detect the end of valid glyph.
17637 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17638 we are composing with gstring.
17639
17640 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17641 Check if adjustment is vector or not.
17642
17643 * Makefile.in (font.o): Make it depends on window.h.
17644
176452008-02-01 Kenichi Handa <handa@m17n.org>
17646
17647 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17648 adjustment is vector or not.
17649
176502008-02-01 Miles Bader <miles@gnu.org>
17651
17652 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17653
176542008-02-01 Kenichi Handa <handa@m17n.org>
17655
17656 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17657 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17658 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17659
17660 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17661 (DEVICE_DELTA): Fix typo.
17662 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17663 LGLYPH format.
17664
17665 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17666 the change of LGLYPH format.
17667
176682008-02-01 Kenichi Handa <handa@m17n.org>
17669
17670 * ftfont.c (ftfont_list): Fix typo.
17671 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17672
176732008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17674
17675 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17676
17677 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17678 xftface_info is non-NULL.
17679
176802008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17681
17682 * ftfont.c (ftfont_list): Move misplaced #endif.
17683
176842008-02-01 Kenichi Handa <handa@m17n.org>
17685
17686 * ftfont.c (ftfont_list): Pay attention to the case that
17687 FC_CAPABILITY is not defined.
17688
176892008-02-01 Kenichi Handa <handa@m17n.org>
17690
17691 * xftfont.c (xftfont_open): Set charset related members to -1.
17692
17693 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17694 QCname.
17695 (ftfont_open): Set charset related members to -1.
17696
17697 * fontset.c (Votf_script_alist): New variable.
17698 (syms_of_fontset): Initialize it.
17699 (fontset_font): Delete unused variable.
17700
17701 * fontset.h (Votf_script_alist): Extern it.
17702
17703 * font.c (font_find_for_lface): Optimize code.
17704
17705 * font.h (font_close_object, font_merge_old_spec): Extern them.
17706
177072008-02-01 Kenichi Handa <handa@m17n.org>
17708
17709 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17710 (syms_of_font): Initialize them.
17711 (font_pixel_size): Allow float value in dpi.
17712 (font_prop_validate_type): Delete.
17713 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17714 Change caller.
17715 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17716 (font_prop_validate_extra): Delete.
17717 (font_prop_validate_spacing): New function.
17718 (font_property_table): Add elements for all known properties.
17719 (get_font_prop_index): Rename from check_font_prop_name. New
17720 argument FROM. Change caller.
17721 (font_prop_validate): Validate all known properties.
17722 (font_put_extra): Delete argument force. Change caller.
17723 (font_expand_wildcards): Make it static. Fix the way of shrinking
17724 the possible range.
17725 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17726 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17727 Change caller.
17728 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17729 (font_parse_fcname): Delete argument merge. Fix parsing of point
17730 size. Don't validate properties values here. Change caller.
17731 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17732 (font_open_by_name): Delete unused variable.
17733 (Ffont_spec): Likewise. Validate property values.
17734 (Ffont_match_p): New function.
17735
17736 * font.h (QCscalable): Extern it.
17737 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17738
17739 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17740
17741 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17742 (xfont_list_pattern): New function.
17743 (xfont_list): Use xfont_list_pattern.
17744
177452008-02-01 Kenichi Handa <handa@m17n.org>
17746
17747 * font.h (Flist_fonts): EXFUN it.
17748
177492008-02-01 Jason Rumney <jasonr@gnu.org>
17750
17751 * w32term.c (w32_initialize): Add back smoothing_type and
17752 smoothing_enabled definitions.
17753
177542008-02-01 Kenichi Handa <handa@m17n.org>
17755
17756 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17757 s->face->font on determining underline position.
17758
177592008-02-01 Kenichi Handa <handa@m17n.org>
17760
17761 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17762 (font_has_char): Accept font-object too.
17763 (font_find_for_lface): Try at first with a size specified in face.
17764
177652008-02-01 Kenichi Handa <handa@m17n.org>
17766
17767 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17768 font_open_by_name.
17769
177702008-02-01 Kenichi Handa <handa@m17n.org>
17771
17772 * font.h (QCspacing, QCdpi): Extern them.
17773 (enum font_spacing): New enum.
17774 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17775
17776 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17777 (QCspacing, QCdpi): New variables.
17778 (syms_of_font): Initialize them.
17779 (font_pixel_size): New function.
17780 (font_put_extra): New function.
17781 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17782 in FONT_EXTRA.
17783 (font_parse_fcname): Handle enumerated values (e.g. bold).
17784 Fix handling font size. Add QCname property that contains only
17785 unknown properties.
17786 (font_score): Change argument. Change caller. Pay attention to
17787 FONT_PIXEL_SIZE_QUANTUM.
17788 (font_sort_entites, font_list_entities, font_find_for_lface)
17789 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17790 (Ffont_spec): Add QCname property that contains only unknown properties.
17791
17792 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17793 include weight in listing pattern, instead check weight of each
17794 listed font. Don't include scalable in pattern. Pay attention to
17795 FONT_PIXEL_SIZE_QUANTUM.
17796
177972008-02-01 Kenichi Handa <handa@m17n.org>
17798
17799 * font.c (font_parse_fcname): Fix parsing of point-size.
17800 (font_unparse_fcname): Produce symbolic names for style properties.
17801 (font_list_entities): Handle float size correctly.
17802 (font_open_by_name): Prefer `normal' property values if the name
17803 doesn't specify them.
17804
17805 * fontset.c (Finternal_char_font): Use font_get_name, not
17806 Ffont_xlfd_name.
17807
17808 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17809 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17810 pattern. Don't force scalable.
17811
17812 * xftfont.c (xftfont_open): For generating a name, start from
17813 96-byte buffer.
17814
178152008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17816
17817 * frame.h (x_new_fontset2): Fix prototype.
17818
178192008-02-01 Kenichi Handa <handa@m17n.org>
17820
17821 * font.h (struct font_driver): Delete member parse_name.
17822 (font_match_p, font_get_spec, font_parse_fcname)
17823 (font_unparse_fcname): Extern them.
17824 (font_get_name): Adjust prototype.
17825
17826 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17827 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17828 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17829 unnecessary checks for weight, slant, and swidth.
17830 (font_parse_fcname): New function.
17831 (font_unparse_fcname): New function.
17832 (font_parse_name): New function.
17833 (font_match_p): New function.
17834 (font_get_name): Change return value to Lisp string.
17835 (font_get_spec): New function.
17836 (Qunspecified, Qignore_defface): Don't extern them.
17837 (font_find_for_lface): Assume that LFACE is fully specified.
17838 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17839 object, use it for FACE.
17840 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17841 driver->parse_name.
17842 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17843
17844 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17845 prototype.
17846
17847 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17848 argument F. Don't call Fnew_fontset. Instead, directly call
17849 make_fontset.
17850
17851 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17852
17853 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17854 of x_new_fontset2.
17855
17856 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17857 (Qsans__serif): New variables.
17858 (ftfont_generic_family_list): New variable.
17859 (syms_of_ftfont): Initialize the above variables.
17860 (ftfont_pattern_entity): Delete argument NAME.
17861 (ftfont_list_generic_family): New function.
17862 (ftfont_parse_name): Delete this function.
17863 (ftfont_list): Try generic family only when FcFontList found no font.
17864 (ftfont_list_family): Fix args to FcObjectSetBuild.
17865
17866 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17867 object in attrs[LFACE_FONT_INDEX].
17868 (set_lface_from_font_name): Cancel all changes for font-backend.
17869 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17870 function.
17871 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17872 font object in QCfont attribute.
17873 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17874 (realize_default_face) [USE_FONT_BACKEND]: Call
17875 set_lface_from_font_and_fontset.
17876
17877 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17878 "fixed", and signal error here if no suitable font was found.
17879
17880 * xfont.c (xfont_parse_name): Delete this function.
17881
17882 * xftfont.c (xftfont_open): Change coding style of error
17883 handling. Generate fontconfig's fontname pattern.
17884
17885 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17886 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17887
17888 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17889 Both args FONTSET and FONT_OBJECT must be existing ones.
17890
178912008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17892
17893 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17894
178952008-02-01 Kenichi Handa <handa@m17n.org>
17896
17897 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17898
17899 * font.h (struct font): Fix typo.
17900
17901 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17902 XLFD_XXX_INDEX.
17903 (enum xlfd_field_mask): New enum.
17904 (intern_font_field): Changed argument. Change caller. If digits
17905 are followed by non-digits, return a symbol.
17906 (font_expand_wildcards): New function.
17907 (font_parse_xlfd): Fix wildcard handling.
17908 (Ffont_spec): If :name is specified, reflect the info in the other
17909 properties.
17910
17911 * ftfont.c (ftfont_pattern_entity): Fix typo.
17912 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17913 locale.
17914
179152008-02-01 Kenichi Handa <handa@m17n.org>
17916
17917 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17918
17919 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17920 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17921 registry doesn't specify encoding part.
17922 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17923 (font_open_by_name): At first try parsing the name.
17924 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17925 as Lisp symbols.
17926
17927 * fontset.c (reorder_font_vector): Pay attention to the case that
17928 the 3rd element of font_def is nil.
17929 (fontset_font): For the default fontset, append one more fontset
17930 elements for a script-based font specification. Don't add script
17931 attribute on finding a font.
17932 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17933 font name.
17934 (fontset_ascii_font): If a font can't be opened, return nil.
17935
17936 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17937 (ftfont_pattern_entity): New function.
17938 (ftfont_get_cache): Assume that freetype_font_cache is already
17939 initialized.
17940 (ftfont_list): Handle the case that a file is specified in font
17941 name. Use ftfont_pattern_entity to generate entities.
17942 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17943 (syms_of_ftfont): Initialize freetype_font_cache.
17944
17945 * xftfont.c (xftfont_open): Make the font name fontconfig's
17946 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17947 (xftfont_close): Free font->font.name if not NULL.
17948
17949 * xfont.c (xfont_list): If script is specified for a font, return
17950 null_vector.
17951 (xfont_list_family): Declare argument type.
17952
17953 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17954 name, set LFACE_FONT (lface) to nil.
17955
17956 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17957 return Qnil.
17958
179592008-02-01 Kenichi Handa <handa@m17n.org>
17960
17961 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17962 (standard_args): Add "-enable-font-backend".
17963
179642008-02-01 Kenichi Handa <handa@m17n.org>
17965
17966 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17967 (struct xftdraw_list, xftdraw_list): Delete them.
17968 (register_xftdraw, check_xftdraw): Delete them.
17969 (xftfont_prepare_face): Don't call register_xftdraw.
17970 (xftfont_done_face): Don't call check_xftdraw.
17971 (xftfont_draw): Get background color only when with_background is
17972 nonzero.
17973
17974 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 These changes are for the new font handling codes.
17979
17980 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17981 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17982 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17983 (FONTSRC, FONTOBJ): New variables.
17984 (obj): Add $(FONTOBJ).
17985 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17986 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17987 @LIBOTF_LIBS@.
17988 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17989 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17990
17991 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17992
17993 * character.h (Vscript_representative_chars): Extern it.
17994
17995 * character.c (Vscript_representative_chars): New variable.
17996 (syms_of_character): Declare it as a Lisp variable.
17997
17998 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17999 enable_font_backend is nonzero, accept the composition method
18000 COMPOSITION_WITH_GLYPH_STRING.
18001
18002 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18003 enumeration COMPOSITION_WITH_GLYPH_STRING.
18004
18005 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18006 members clip_x, clip_y, clip_width, and clip_height.
18007 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18008
18009 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18010 --enable-font-backend. Call syms_of_font.
18011
18012 * fns.c (assoc_no_quit): New function.
18013
18014 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18015 (face_for_font, new_fontset_from_font)
18016 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18017
18018 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18019 (fontset_font, fontset_ascii, face_for_char)
18020 (make_fontset_for_ascii_face, Ffont_info)
18021 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18022 is nonzero, use font-backend mechanism.
18023 (find_font_encoding): Make it non-static.
18024 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18025 New functions.
18026
18027 * frame.h (struct frame): New members resx and resy.
18028 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18029 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18030
18031 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18032 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18033
18034 * lisp.h (assoc_no_quit): Extern it.
18035
18036 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18037 Through out the file, use FONT_INFO_FROM_FACE instead of
18038 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18039 rif->per_char_metric.
18040 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18041 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18042 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18043 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18044 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18045 nonzero, use font-backend mechanism.
18046 (get_per_char_metric): New function.
18047
18048 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18049 (set_lface_from_font_name)
18050 (set_font_frame_param, free_realized_face)
18051 (prepare_face_for_display, clear_face_gcs)
18052 (Finternal_set_font_selection_order, realize_x_face)
18053 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18054 font-backend mechanism.
18055 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18056 (load_face_font) [USE_FONT_BACKEND]: Abort.
18057 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18058 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18059
18060 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18061 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18062 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18063 nonzero, register all available font drivers. Call
18064 x_default_font_parameter for deciding a font.
18065 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18066
18067 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18068 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18069 (x_set_glyph_string_clipping_exactly)
18070 (x_compute_glyph_string_overhangs)
18071 (x_draw_glyph_string_foreground)
18072 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18073 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18074 enable_font_backend is nonzero, use font-backend mechanism.
18075 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18076
180772008-02-01 Kenichi Handa <handa@m17n.org>
18078
18079 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18080 system_eol_type.
18081 (syms_of_coding): Initialize system_eol_type.
18082
18083 * process.c (Fset_process_coding_system): Inherit system's eol
18084 format if necessary.
18085
180862008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18087
18088 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18089
180902008-02-01 Kenichi Handa <handa@m17n.org>
18091
18092 * coding.c (decode_eol): Pay attention to buffer relocation in
18093 del_range_2.
18094 (decode_coding): Call decode_eol before restoring undo_list.
18095
180962008-02-01 Kenichi Handa <handa@m17n.org>
18097
18098 * charset.c (Fdefine_charset_internal): Fix setting of
18099 emacs_mule_bytes.
18100
181012008-02-01 Kenichi Handa <handa@m17n.org>
18102
18103 * keyboard.c (read_char): Check if C is a character or not before
18104 looking up Vkeyboard_translate_table.
18105
181062008-02-01 Kenichi Handa <handa@m17n.org>
18107
18108 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18109 condition to terminate the loop.
18110
181112008-02-01 Kenichi Handa <handa@m17n.org>
18112
18113 * coding.c (produce_composition): Compare charbuf[i] instead of
18114 args[i] against 0.
18115 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18116
181172008-02-01 Kenichi Handa <handa@m17n.org>
18118
18119 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18120 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18121 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18122 detect_coding.
18123 (emacs_mule_char): Handle old style (Emacs 20) component character
18124 of a composition.
18125 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18126 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18127 composition rule.
18128 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18129
181302008-02-01 Kenichi Handa <handa@m17n.org>
18131
18132 * coding.c (encode_coding_ccl): Allocate destination dynamically
18133 when necessary.
18134
181352008-02-01 Kenichi Handa <handa@m17n.org>
18136
18137 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18138 the loop. When quitted, show a proper error message.
18139
181402008-02-01 Kenichi Handa <handa@m17n.org>
18141
18142 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18143 src->clip_head and src->clip_tail temporarily instead of src->hl.
18144
18145 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18146 character sequence.
18147 (Fccl_execute_on_string): Use ASET, not XSET.
18148
181492008-02-01 Kenichi Handa <handa@m17n.org>
18150
18151 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18152
181532008-02-01 Kenichi Handa <handa@m17n.org>
18154
18155 * coding.c (decode_coding): Fix the condition of terminating the
18156 decoding loop.
18157
181582008-02-01 Kenichi Handa <handa@m17n.org>
18159
18160 * data.c (Faset): On setting a character bigger than 255 in a
18161 unibyte string, signal an error instead of make the string multibyte.
18162
181632008-02-01 Kenichi Handa <handa@m17n.org>
18164
18165 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18166 made by a mapping table.
18167
181682008-02-01 Kenichi Handa <handa@m17n.org>
18169
18170 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18171 not.
18172 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18173 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18174
18175 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18176 s->face is NULL or not.
18177
181782008-02-01 Kenichi Handa <handa@m17n.org>
18179
18180 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18181 (x_draw_glyph_string): Fix drawing of right_overhang and
18182 left_overhang around/on cursor.
18183
18184 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18185
181862008-02-01 Kenichi Handa <handa@m17n.org>
18187
18188 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18189
181902008-02-01 Kenichi Handa <handa@m17n.org>
18191
18192 * coding.c (Fdefine_coding_system_internal)
18193 (Fdefine_coding_system_alias): Avoid a duplicated element in
18194 Vcoding_system_alist.
18195
181962008-02-01 Kenichi Handa <handa@m17n.org>
18197
18198 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18199
18200 * coding.c (Qcoding_system_define_form): New variable.
18201 (syms_of_coding): Intern and staticpro it.
18202 (Fcoding_system_p): Check Qcoding_system_define_form.
18203 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18204
18205 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18206 Fcoding_system_p.
18207 (CHECK_CODING_SYSTEM): If ID is not available, call
18208 Fcheck_coding_system.
18209 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18210 Try also Fcheck_coding_system.
18211
182122008-02-01 Kenichi Handa <handa@m17n.org>
18213
18214 * coding.c (code_conversion_restore): GCPRO arg.
18215
182162008-02-01 Kenichi Handa <handa@m17n.org>
18217
18218 * character.c (lisp_string_width): Check multibyteness of STRING.
18219
182202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18221
18222 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18223 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18224 (decode_mac_font_name): Use decode_coding_c_string instead of
18225 decode_coding.
18226 (x_load_font): Initialize fontp->fontset to -1. Set
18227 fontp->encoding_type.
18228
182292008-02-01 Kenichi Handa <handa@m17n.org>
18230
18231 * search.c (search_buffer): Give up BM search on case-fold-search
18232 if one of a target character has a case-equivalence of different
18233 byte length even if that target charcter is an ASCII.
18234 (simple_search): Fix calculation of byte length of matched text.
18235 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18236
182372008-02-01 Kenichi Handa <handa@m17n.org>
18238
18239 * coding.c (decode_coding): Fix handling of invalid bytes.
18240
182412008-02-01 Kenichi Handa <handa@m17n.org>
18242
18243 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18244 Unicode characters.
18245
182462008-02-01 Kenichi Handa <handa@m17n.org>
18247
18248 * coding.c (encode_coding_object): If a pre-write-conversion
18249 function makes a new buffer, kill it.
18250
182512008-02-01 Kenichi Handa <handa@m17n.org>
18252
18253 * coding.c (QCascii_compatible_p): New variable.
18254 (syms_of_coding): Initialize it.
18255 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18256 calling string_char.
18257 (record_conversion_result): Add `default:' case.
18258 (coding_charset_list): Delete unused variable `coding_type'.
18259 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18260 property in the plist of the coding system.
18261 (Fcoding_system_put): Check QCascii_compatible_p.
18262
182632008-02-01 Miles Bader <miles@gnu.org>
18264
18265 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18266 removed calculation of frame `f', as it's now used.
18267
182682008-02-01 Kenichi Handa <handa@m17n.org>
18269
18270 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18271 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18272 (UNIDATA): New variable.
18273 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18274 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18275 $(RUN_TEMACS) unconditionally.
18276
182772008-02-01 Kenichi Handa <handa@m17n.org>
18278
18279 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18280 (admindir): New variable.
18281 ($(lispsource)international/charprop.el): New target.
18282
182832008-02-01 Miles Bader <miles@gnu.org>
18284
18285 * character.c (chars-in-region): Remove obsolete function.
18286 (syms_of_character): Remove its initialization.
18287
182882008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18289
18290 * w32select.c (validate_coding_system)
18291 (setup_windows_coding_system): New functions.
18292 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18293 setup_windows_coding_system.
18294 (setup_config, Fw32_get_clipboard_data): Use
18295 validate_coding_system.
18296 (Fx_selection_exists): Move call to setup_config to a place
18297 where signals are allowed.
18298
18299 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18300 (Fcheck_coding_system): Add declarations.
18301
183022008-02-01 Kenichi Handa <handa@m17n.org>
18303
18304 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18305
183062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18307
18308 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18309 string as the second argument for x_new_fontset.
18310
183112008-02-01 Kenichi Handa <handa@m17n.org>
18312
18313 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18314 (encode_coding_object): Use safe_call instead of call2.
18315
183162008-02-01 Kenichi Handa <handa@m17n.org>
18317
18318 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18319
18320 * Makefile.in (lisp): Include charprop.el.
18321
183222008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18323
18324 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18325 Not sure if it's unnecessary.
18326
183272008-02-01 Steven Tamm <steventamm@mac.com>
18328
18329 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18330 some possibly unnecessary fontset checking code that crashed
18331 when creating a new frame.
18332
183332008-02-01 Kenichi Handa <handa@m17n.org>
18334
18335 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18336 lookup_face.
18337
18338 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18339
18340 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18341
183422008-02-01 Kenichi Handa <handa@m17n.org>
18343
18344 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18345 (coding_charset_list): New function.
18346
18347 * coding.h (coding_charset_list): Extern it.
18348
183492008-02-01 Kenichi Handa <handa@m17n.org>
18350
18351 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18352 concatenation of family and registry.
18353
183542008-02-01 Kenichi Handa <handa@m17n.org>
18355
18356 * character.h (BYTE8_STRING): Fix typo.
18357
18358 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18359 string to multibyte (sync to HEAD).
18360
18361 * casefiddle.c (casify_region): Handle changes in byte-length
18362 using replace_range_2 (sync to HEAD).
18363
183642008-02-01 Andreas Schwab <schwab@suse.de>
18365
18366 * chartab.c (map_char_table): GCPRO table and arg.
18367
183682008-02-01 Kenichi Handa <handa@m17n.org>
18369
18370 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18371 already at limit.
18372
183732008-02-01 Kenichi Handa <handa@m17n.org>
18374
18375 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18376 instead of fast_c_string_match_ignore_case.
18377 (find_font_encoding): Change argument to Lisp_Object. Use
18378 fast_string_match_ignore_case instead of
18379 fast_c_string_match_ignore_case. Change caller.
18380
183812008-02-01 Kenichi Handa <handa@m17n.org>
18382
18383 * xdisp.c (get_next_display_element): In unibyte case, decide to
18384 display in octal form by checking a character by
18385 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18386
18387 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18388
18389 * character.c (unibyte_has_multibyte_table): New variable.
18390
18391 * character.h (unibyte_has_multibyte_table): Extern it.
18392 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18393
183942008-02-01 Kenichi Handa <handa@m17n.org>
18395
18396 * coding.c (encode_coding_iso_2022): Fix handling of charset
18397 annotation.
18398
183992008-02-01 Kenichi Handa <handa@m17n.org>
18400
18401 * coding.c (setup_coding_system): If coding_system is nil, use
18402 Qundecided.
18403 (Fterminal_coding_system): Return nil if terminal coding system is
18404 `undecided'.
18405 (syms_of_coding): Define coding-system `undecided' here. Setup
18406 terminal_coding as `undecided'.
18407
184082008-02-01 Kenichi Handa <handa@m17n.org>
18409
18410 * xdisp.c (message_dolog, set_message_1): Call
18411 unibyte_char_to_multibyte with arg type int.
18412
18413 * lread.c (read1): Fix reading of a char-table.
18414
18415 * print.c (print_object): Include sub char-table in circularities
18416 detection.
18417
184182008-02-01 Kenichi Handa <handa@m17n.org>
18419
18420 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18421 Append the found sequences in car of ARGS instead of prepending.
18422
184232008-02-01 Kenichi Handa <handa@m17n.org>
18424
18425 * fileio.c (report_file_error): Make a unibyte string from
18426 strerror (errorno).
18427 (Fsubstitute_in_file_name): Fix the arg to
18428 unibyte_char_to_multibyte. It is evaluated twice.
18429
184302008-02-01 Kenichi Handa <handa@m17n.org>
18431
18432 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18433
184342008-02-01 Kenichi Handa <handa@m17n.org>
18435
18436 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18437 BOM is not found.
18438 (detect_coding, detect_coding_system): Optimization for ISO-2022
18439 when no 8-bit data is found.
18440
184412008-02-01 Jason Rumney <jasonr@gnu.org>
18442
18443 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18444
184452008-02-01 Kenichi Handa <handa@m17n.org>
18446
18447 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18448 CHARS.
18449
184502008-02-01 Steven Tamm <steventamm@mac.com>
18451
18452 * macterm.c (mac_encode_char): Add charset argument and update
18453 to use encoding_type.
18454 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18455 switch to pure fontset.
18456 (decode_mac_font_name): Temporarily remove decoding.
18457 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18458 (x_load_font): Temporarily remove encoding.
18459
184602008-02-01 Kenichi Handa <handa@m17n.org>
18461
18462 * xfaces.c (Fface_font): If frame is not on a window system,
18463 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18464 refer to face->font.
18465 (split_font_name_into_vector, build_font_name_from_vector)
18466 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18467 when HAVE_WINDOW_SYSTEM is defined.
18468
184692008-02-01 Kenichi Handa <handa@m17n.org>
18470
18471 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18472 (x_produce_glyphs): Fix setting of members of cmp in case
18473 cmp->glyph_len is zero.
18474
18475 * fontset.c (Fset_fontset_font): Fix docstring.
18476 (Ffontset_info): Make it backward compatible. New arg ALL.
18477
184782008-02-01 Kim F. Storm <storm@cua.dk>
18479
18480 * process.c (read_process_output): Grow decoding_buf when needed;
18481 this could cause a crash in allocate_string and compact_small_strings.
18482
184832008-02-01 Kenichi Handa <handa@m17n.org>
18484
18485 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18486
184872008-02-01 Kenichi Handa <handa@m17n.org>
18488
18489 * coding.c (setup_coding_system): Set coding->common_flags
18490 correctly for raw-text.
18491 (consume_chars): On encoding unibyte text by raw-text, don't check
18492 multibyte form.
18493 (encode_coding): On encoding by raw-text, never use translation tables.
18494
18495 * fileio.c (e_write): Short cut for the case of no encoding.
18496
184972008-02-01 Kenichi Handa <handa@m17n.org>
18498
18499 * coding.c (detect_coding, detect_coding_system): Delete unused
18500 variables.
18501
185022008-02-01 Kenichi Handa <handa@m17n.org>
18503
18504 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18505 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18506
185072008-02-01 Kenichi Handa <handa@m17n.org>
18508
18509 * coding.c (Ffind_coding_systems_region_internal): Include
18510 raw-text and no-conversion in the result.
18511
185122008-02-01 Kenichi Handa <handa@m17n.org>
18513
18514 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18515 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18516 FONT_DEF.
18517 (font_def_arg, add_arg, from_arg, to_arg): New args.
18518 (set_fontset_font): Change argument.
18519 (Fset_fontset_font): Fix for the case that TARGET is a script
18520 name and charset name.
18521 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18522
185232008-02-01 Kenichi Handa <handa@m17n.org>
18524
18525 * fontset.c (fontset_font): Rename from fontset_face. Change return
18526 value.
18527 (face_suitable_for_char_p, face_for_char): Adjust for the change
18528 of fontset_font.
18529 (make_fontset_for_ascii_face): Fix setting of the fontset element
18530 for ASCII.
18531 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18532 to get a font name.
18533 (Ffontset_info): Adjust for the change of fontset_font.
18534
18535 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18536
18537 * character.h (LEADING_CODE_LATIN_1_MIN)
18538 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18539
185402008-02-01 Kenichi Handa <handa@m17n.org>
18541
18542 * editfns.c (check_translation): New function.
18543 (Ftranslate_region_internal): Handle M:N mapping.
18544
185452008-02-01 Kenichi Handa <handa@m17n.org>
18546
18547 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18548
185492008-02-01 Kenichi Handa <handa@m17n.org>
18550
18551 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18552 goto invalid_code.
18553 (decode_coding_iso_2022): Fix handling of invalid designation.
18554
18555 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18556 after calling code_conversion_save.
18557
185582008-02-01 Kenichi Handa <handa@m17n.org>
18559
18560 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18561
18562 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18563
18564 * fontset.c: Include "intervals.h".
18565 (fontset_face): Fix comparing of Lisp_Objects.
18566 (free_face_fontset, new_fontset_from_font_name): Fix
18567 Lisp_Object/int mixup.
18568
18569 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18570
18571 * coding.c: Add many prototypes for static functions.
18572 (get_translation_table): Allow max_lookup to be NULL.
18573 (decode_coding, Ffind_coding_systems_region_internal)
18574 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18575 get_translation_table with max_lookup NULL.
18576
185772008-02-01 Kenichi Handa <handa@m17n.org>
18578
18579 * coding.c (get_translation_table): Declare it as Lisp_Object.
18580 (LOOKUP_TRANSLATION_TABLE): New macro.
18581 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18582 instead of CHAR_TABLE_REF.
18583
185842008-02-01 Kenichi Handa <handa@m17n.org>
18585
18586 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18587 annotation data format.
18588 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18589 Change arguments FROM and TO to single argument NCHARS. Change caller.
18590 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18591 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18592 (decode_coding_ccl, decode_coding_charset): Pay attention to
18593 coding->charbuf_used.
18594 (get_translation): New function.
18595 (produce_chars): New arguments translation_table and last_block.
18596 Translate characters here. Return number of carryover chars.
18597 Change caller.
18598 (produce_composition): New argument pos. Change caller.
18599 Adjust for the change of annotation data format.
18600 (produce_charset, produce_annotation): Likewise.
18601 (decode_coding, encode_coding): Don't call translate_chars.
18602 (consume_chars): New arg translation_table. Change caller.
18603 (translate_chars): Delete.
18604 (syms_of_coding): Make translation-table's number of extra slots 2.
18605
186062008-02-01 Kenichi Handa <handa@m17n.org>
18607
18608 * search.c (simple_search): Fix setting this_pos_byte in backward
18609 search.
18610
18611 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18612 byte sequence.
18613 (detect_coding_ccl): Fix setting of the variable valids.
18614
186152008-02-01 Kenichi Handa <handa@m17n.org>
18616
18617 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18618
18619 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18620
18621 * editfns.c (Ftranslate_region_internal): Rename from
18622 Ftranslate_region. Accept a char-table in TABLE.
18623 (syms_of_editfns): Defsubr Stranslate_region_internal.
18624
18625 * xfaces.c (set_lface_from_font_name): If a font is specified for
18626 a frame, generate a fontset from the font.
18627 (build_scalable_font_name): If the scalable font is requested for
18628 a specific size, don't change that size.
18629 (try_font_list): Try a scalable font also in the case that a
18630 pattern string is specified.
18631
186322008-02-01 Kenichi Handa <handa@m17n.org>
18633
18634 * xfaces.c (Fface_font): New optional arg CHARACTER.
18635
186362008-02-01 Kenichi Handa <handa@m17n.org>
18637
18638 * charset.h (CHARSET_OFFSET): New macro.
18639
186402008-02-01 Kenichi Handa <handa@m17n.org>
18641
18642 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18643
18644 * fontset.c (fontset_face): Handle the case that repertory is a
18645 char-table.
18646 (find_font_encoding): Return nil for unknown encoding.
18647 (Fset_fontset_font): Ignore a font of unknown encoding.
18648
186492008-02-01 Kenichi Handa <handa@m17n.org>
18650
18651 * keymap.c (describe_vector): Handle default value of a char table.
18652
18653 * fontset.c (fontset_face): Handle fallback fonts correctly.
18654 (Ffontset_info): Return infomation about fallback fonts.
18655
186562008-02-01 Kenichi Handa <handa@m17n.org>
18657
18658 * fontset.c (FONTSET_DEFAULT): New macro.
18659 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18660 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18661 the case that it is nil.
18662 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18663 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18664
18665 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18666 subset or superset.
18667
186682008-02-01 Kenichi Handa <handa@m17n.org>
18669
18670 * emacs.c (main): Call init_charset after syms_of_XXX.
18671
18672 * charset.c (Vcharset_map_directory): Delete.
18673 (Vcharset_map_path): New variable.
18674 (load_charset_map_from_file): Use Vcharset_map_path instead.
18675 (init_charset): Initialize Vcharset_map_path.
18676 (syms_of_charset): Delete declaration of "charset-map-directory",
18677 add declaration of "charset-map-path".
18678
186792008-02-01 Kenichi Handa <handa@m17n.org>
18680
18681 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18682 ASCII only string.
18683
18684 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18685
18686 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18687 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18688
186892008-02-01 Kenichi Handa <handa@m17n.org>
18690
18691 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18692
18693 * coding.c (QCmnemonic, QCdefalut_char)
18694 (QCdecode_translation_table, QCencode_translation_table)
18695 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18696 (get_translation_table): Return a list of translation tables if
18697 necessary.
18698 (decode_coding): Call get_translation_table with ENCODEP 0.
18699 (char_encodable_p): If translation_table is non-nil, always call
18700 translate_char.
18701 (Fdefine_coding_system_internal): Accept list of translation
18702 tables as :encode-translation-table and :decode-translation-table.
18703 (Fcoding_system_put): New function.
18704 (syms_of_coding): Declare new symbols. Defsubr
18705 Scoding_system_put.
18706 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18707 typically JISX0212.
18708
18709 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18710 when the charset is superset type.
18711
18712 * character.c (translate_char): Accept list of translation tables.
18713
187142008-02-01 Kenichi Handa <handa@m17n.org>
18715
18716 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18717 (CODING_ATTR_TRANS_TBL): New macro.
18718
18719 * coding.c (get_translation_table): New function.
18720 (translate_chars): Fix the bug of skipping annotation data.
18721 (decode_coding, encode_coding): Utilize get_translation_table.
18722 (char_encodable_p, Funencodable_char_position): Translate char if
18723 necessary.
18724 (Ffind_coding_systems_region_internal)
18725 (Fcheck_coding_systems_region): Setup translation table for encode
18726 in a coding system attribute vector in advance.
18727 (Fdefine_coding_system_internal): Allow a symbol as translation
18728 table. For shift-jis type coding system, allow 4th charset.
18729
187302008-02-01 Kenichi Handa <handa@m17n.org>
18731
18732 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18733
18734 * xdisp.c (get_next_display_element): Pass -1 as POS to
18735 FACE_FOR_CHAR if displaying a C-string.
18736
187372008-02-01 Kenichi Handa <handa@m17n.org>
18738
18739 * composite.c (get_composition_id): Handle xoff and yoff in a
18740 composition rule.
18741
18742 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18743 (struct composition): New member lbearing and rbearing.
18744
18745 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18746 (x_get_glyph_overhangs): Handle a composition glyph.
18747 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18748
18749 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18750 composition glyph.
18751
187522008-02-01 Kenichi Handa <handa@m17n.org>
18753
18754 * print.c: Include charset.h.
18755 (Vprint_charset_text_property): New variable.
18756 (Qdefault): Extern it.
18757 (PRINT_STRING_NON_CHARSET_FOUND)
18758 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18759 (print_check_string_result): New variable.
18760 (print_check_string_charset_prop): New function.
18761 (print_prune_charset_plist): New variable.
18762 (print_prune_string_charset): New function.
18763 (print_object): Call print_prune_string_charset if
18764 Vprint_charset_text_property is not t.
18765 (print_interval): Print nothing if interval->plist is nil.
18766 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18767 variable. Init and staticpro print_prune_charset_plist.
18768
187692008-02-01 Kenichi Handa <handa@m17n.org>
18770
18771 * fontset.c (new_fontset_from_font_name): Use the specified font
18772 for all characters in the new fontset.
18773
18774 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18775 OBJECT args.
18776
18777 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18778 OBJECT args for composition too.
18779
18780 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18781 OBJECT args.
18782
187832008-02-01 Kenichi Handa <handa@m17n.org>
18784
18785 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18786
18787 * fontset.c (reorder_font_vector): Adjust for the change of
18788 FONT_DEF format.
18789 (fontset_face): New arg id. Change caller.
18790 (face_for_char): New args pos and object.
18791 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18792 (fs_query_fontset): Check NAME by Fassoc too.
18793 (Fset_fontset_font): Allow non-XLFD font name.
18794 (Ffontset_info): Adjust for the change of FONT_DEF format.
18795
18796 * fontset.h (face_for_char): Adjust prototype.
18797
18798 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18799 (append_space, extend_face_to_end_of_line)
18800 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18801 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18802
18803 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18804 POS and OBJECT args.
18805
18806 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18807 POS and OBJECT args.
18808
188092008-02-01 Jason Rumney <jasonr@gnu.org>
18810
18811 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18812 of GlobalAlloc'ed memory.
18813
188142008-02-01 Kenichi Handa <handa@m17n.org>
18815
18816 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18817
18818 * charset.h (charset_table_used): Delete extern.
18819
18820 * charset.c (charset_table_used): Make it static.
18821 (map_charset_chars): Fix args to c_function with.
18822
18823 * chartab.c (map_sub_char_table_for_charset): Fix args to
18824 c_function with.
18825
18826 * coding.h (enum coding_result_code): Delete
18827 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18828
18829 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18830 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18831 (Vlast_code_conversion_error): New variables.
18832 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18833 (ONE_MORE_BYTE): Record error if any instead of signaling an
18834 error. If non-ASCII multibyte char is found, return the negative
18835 value of the code. All callers changed to check it.
18836 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18837 (record_conversion_result): New function. Change all codes setting
18838 coding->result to call this function.
18839 (detect_coding_utf_8, decode_coding_utf_8)
18840 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18841 Don't use the local variable incomplete.
18842 (emacs_mule_char): Change the second arg to `const'.
18843 (decode_coding): Fix of flushing out unprocessed data.
18844 (make_conversion_work_buffer): Fix making of a work buffer.
18845 (decode_coding_object): Return coding->dst_object.
18846
18847 * fontset.c (set_fontset_font): Fix args.
18848
18849 * lisp.h (CHARACTERBITS): Define as 22.
18850
18851 * process.c (send_process): Be sure to set coding->src_multibyte.
18852
18853 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18854
188552008-02-01 Kenichi Handa <handa@m17n.org>
18856
18857 * xdisp.c (handle_auto_composed_prop): Give limit to
18858 Fnext_single_char_property_change.
18859
188602008-02-01 Kenichi Handa <handa@m17n.org>
18861
18862 * composite.c (syms_of_composite): Don't make the composition hash
18863 table weak.
18864
18865 * fontset.c (Fset_fontset_font): Fix docstring.
18866
18867 * lisp.h (detect_coding_system): Adjust prototype.
18868
18869 * fileio.c (kill_workbuf_unwind): Delete this function.
18870 (Finsert_file_contents): Adjust the call of detect_coding_system.
18871 Get conversion_buffer by code_conversion_save. Use the macro
18872 CODING_MAY_REQUIRE_DECODING. After decoding, update
18873 coding_system.
18874
18875 * coding.h (make_conversion_work_buffer): Delete extern.
18876 (code_conversion_save): Extern it.
18877
18878 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18879 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18880 (decode_coding_utf_8): Don't do eol converion.
18881 (detect_coding_utf_16): Check coding->src_chars, not
18882 coding->src_bytes. Add heuristics for those that have no signature.
18883 (decode_coding_emacs_mule, decode_coding_iso_2022)
18884 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18885 Don't do eol converion.
18886 (adjust_coding_eol_type): Return a new coding system.
18887 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18888 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18889 each change.
18890 (decode_coding): Pay attention to undo_list. Do eol conversion for
18891 all types of coding-systems (if necessary).
18892 (Vcode_conversion_work_buf_list): Delete it.
18893 (Vcode_conversion_reused_workbuf): Rename from
18894 Vcode_conversion_reused_work_buf.
18895 (Vcode_conversion_workbuf_name): New variable.
18896 (reused_workbuf_in_use): New variable.
18897 (make_conversion_work_buffer): Delete the arg DEPTH.
18898 (code_conversion_restore): Change argument to cons.
18899 (code_conversion_save): Delete the argument BUFFER. Change callers.
18900 (detect_coding_system): New argument src_chars. Change callers.
18901 Fix for utf-16 detection.
18902 (init_coding_once): Don't use ISO_carriage_return.
18903 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18904 reused_workbuf_in_use.
18905
189062008-02-01 Kenichi Handa <handa@m17n.org>
18907
18908 * keymap.c (store_in_keymap): Pay attention to the case that idx
18909 is a cons specifying a character range.
18910
189112008-02-01 Kenichi Handa <handa@m17n.org>
18912
18913 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18914 HANDLED_RECOMPUTE_PROPS.
18915
18916 * coding.c (Fdefine_coding_system_internal): Fix checking of
18917 ascii compatibility.
18918
189192008-02-01 Kenichi Handa <handa@m17n.org>
18920
18921 * charset.c (find_charsets_in_text): Delete unused locale variable.
18922 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18923
18924 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18925 Resync charset_list to Vemacs_mule_charset_list.
18926
18927 * keymap.c (store_in_keymap): Pay attention to the case that idx
18928 is a cons specifying a character range.
18929
189302008-02-01 Kenichi Handa <handa@m17n.org>
18931
18932 * composite.c (update_compositions): Bind inhibit-read-only, etc
18933 to t before calling remove-list-of-text-properties.
18934
18935 * print.c (print_object): Always print ASCII chars as is.
18936
189372008-02-01 Kenichi Handa <handa@m17n.org>
18938
18939 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18940
18941 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18942 is a char table.
18943
189442008-02-01 Kenichi Handa <handa@m17n.org>
18945
18946 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18947
189482008-02-01 Kenichi Handa <handa@m17n.org>
18949
18950 * xfaces.c (set_lface_from_font_name): Fix for the case that
18951 FONTNAME is not fontset name.
18952
189532008-02-01 Kenichi Handa <handa@m17n.org>
18954
18955 * fns.c (base64_encode_1): Fix previous change.
18956
189572008-02-01 Kenichi Handa <handa@m17n.org>
18958
18959 * fontset.c (set_fontset_font): New function.
18960 (Fset_fontset_font): If a font is specified for a charset, use
18961 map_charset_chars to store the font spec in a fontset.
18962
189632008-02-01 Kenichi Handa <handa@m17n.org>
18964
18965 * fontset.c (fontset_face): Create a fallback fontset on demand.
18966 (make_fontset): Don't create a fallback fontset here.
18967 (free_face_fontset): Free a fallback fontset (if any) too.
18968 (n_auto_fontsets): Delete this variable.
18969 (auto_fontset_alist): New variable.
18970 (new_fontset_from_font_name): Check auto_fontset_alist.
18971 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18972 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18973 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18974 Defsubr Sfontset_list_all.
18975
189762008-02-01 Kenichi Handa <handa@m17n.org>
18977
18978 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18979
189802008-02-01 Kenichi Handa <handa@m17n.org>
18981
18982 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18983
189842008-02-01 Kenichi Handa <handa@m17n.org>
18985
18986 * editfns.c (Fgoto_char): Fix docstring.
18987
189882008-02-01 Kenichi Handa <handa@m17n.org>
18989
18990 * insdel.c (insert_from_gap): Adjust intervals correctly.
18991
189922008-02-01 Jason Rumney <jasonr@gnu.org>
18993
18994 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18995 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18996 (w32_initialize): Try to load it.
18997 (x_get_font_repertory): Use it if available.
18998 (w32_encode_char): Add shortcut for unicode output.
18999
19000 * w32fns.c (w32_load_system_font): Default charset to -1.
19001 (x_to_w32_charset): Match all fonts for unicode.
19002 (w32_to_x_charset): New parameter matching. Don't return partial
19003 or wildcard charsets.
19004 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19005 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19006 (w32_to_x_font): Match charset to real charset.
19007 (enum_font_cb2): Always list unicode versions.
19008
19009 * makefile.w32-in (temacs): Increase EMHEAP.
19010
190112008-02-01 Jason Rumney <jasonr@gnu.org>
19012
19013 * w32term.c (w32_encode_char): New charset parameter.
19014 font_info.encoding becomes encoding_type.
19015 (x_get_font_repertory): New function. Warning: stub only!
19016 (x_new_font): Return quickly if font already set.
19017 (x_new_fontset): fontsetname parameter is Lisp_Object.
19018 Use new fs_query_fontset. Try new_fontset_from_font_name.
19019 Use fontset_name for return value.
19020
19021 * w32term.h: Declare x_get_font_repertory.
19022
19023 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19024 place of find_charset_in_text. Use encode_coding_object in place
19025 of encode_coding.
19026 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19027 decode_coding.
19028
19029 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19030 of x_new_fontset.
19031 (w32_load_system_font): Initialize charset as unicode.
19032 font_info.encoding becomes encoding_type.
19033 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19034 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19035 (syms_of_w32fns): Set get_font_repertory_func.
19036
19037 * w32console.c: Include character.h. Use terminal_encode_buffer
19038 from term.c.
19039 (write_glyphs): Use new version of encode_terminal_code. Use
19040 encode_coding_object in place of encode_coding.
19041
19042 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19043 encoding becomes encoding_type.
19044
19045 * term.c (terminal_encode_buffer): Make externally visible.
19046
19047 * makefile.w32-in: Add character.h dependancies.
19048 (character.o, chartab.o): New targets.
19049
190502008-02-01 Kenichi Handa <handa@m17n.org>
19051
19052 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19053 CODING_ID_EOL_TYPE.
19054
190552008-02-01 Andreas Schwab <schwab@suse.de>
19056
19057 * coding.c (produce_chars): Revert last change.
19058
190592008-02-01 Kenichi Handa <handa@m17n.org>
19060
19061 * charset.h (charset_unicode): Extern it.
19062
19063 * charset.c (string_xstring_p): Check by (C >= 0x100).
19064 (find_charsets_in_text): Change format of the arc CHARSETS. New
19065 arg MULTIBYTE.
19066 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19067 change of find_charsets_in_text.
19068 (Fsplit_char): Fix doc. Never return unknown.
19069
19070 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19071
19072 * coding.c (Fdefine_coding_system_alias): Update
19073 Vcoding_system_list.
19074
19075 * fontset.c (load_font_get_repertory): Pay attention to the case
19076 that ENCODING of a font is specified by a char-table.
19077
19078 * xterm.c (x_get_font_repertory): Handle the case that the
19079 encoding of font is other than Unicode.
19080
190812008-02-01 Kenichi Handa <handa@m17n.org>
19082
19083 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19084 if a character is encodable by the terminal coding system. If
19085 not, produces proper number of `?'s. Update
19086 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19087 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19088
190892008-02-01 Kenichi Handa <handa@m17n.org>
19090
19091 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19092 variables.
19093 (encode_terminal_code): Change argument. Encode multiple
19094 characters at once. Store the result of encoding in
19095 terminal_encode_buffer.
19096 (write_glyphs, insert_glyphs): Adjust for the change of
19097 encode_terminal_code.
19098 (term_init): Initialize terminal_encode_buffer and
19099 terminal_encode_buf_size.
19100
19101 * coding.c (consume_chars): If coding->src_object is nil, don't
19102 check annotation.
19103
191042008-02-01 Kenichi Handa <handa@m17n.org>
19105
19106 * character.c (char_string): Use ASCII_CHAR_P instead of
19107 SINGLE_BYTE_CHAR_P.
19108
191092008-02-01 Kenichi Handa <handa@m17n.org>
19110
19111 * xdisp.c (handle_auto_composed_prop): Check if the last
19112 characters of auto-composed region is newly composed with the
19113 following characters.
19114 (handle_composition_prop): Fix checking of point being inside
19115 composition.
19116
191172008-02-01 Kenichi Handa <handa@m17n.org>
19118
19119 * fns.c (concat): Don't change multibyteness of the result by
19120 concatenating an 8-bit character.
19121
19122 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19123 multibyteness of the result when newelt is an 8-bit character.
19124
191252008-02-01 Dave Love <fx@gnu.org>
19126
19127 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19128 EMACS_INT.
19129
19130 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19131
19132 * xfaces.c (face_numeric_value): Declare dim size_t.
19133 (Finternal_lisp_face_equal_p): Remove unused f.
19134
19135 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19136 (MATRIX_ROW): Remove unused vars.
19137 (draw_glyphs, x_insert_glyphs, fast_find_position)
19138 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19139 byte/char counts.
19140
19141 * regex.c (regex_compile): Remove unused var.
19142
19143 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19144
19145 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19146 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19147
19148 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19149
19150 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19151
19152 * fileio.c (Fwrite_region): Remove unused var.
19153
19154 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19155 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19156
19157 * composite.c (Fremove_list_of_text_properties): Declare.
19158
19159 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19160 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19161 (coding_inherit_eol_type): Remove unused attrs.
19162 (detect_coding): Cast arg of detect_eol.
19163
19164 * charset.c (syms_of_charset): Remove unused var p.
19165 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19166 byte/char counts.
19167
19168 * casetab.c (set_case_table): Remove unused var.
19169
19170 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19171 unused vars.
19172
191732008-02-01 Dave Love <fx@gnu.org>
19174
19175 * xterm.c (x_bitmap_mask): Declare.
19176
191772008-02-01 Dave Love <fx@gnu.org>
19178
19179 * xterm.c (x_term_init): Fix type error.
19180
19181 * lisp.h: Add Funibyte_char_to_multibyte.
19182
19183 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19184 (Fset_coding_system_priority): Doc fix.
19185
19186 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19187
19188 * indent.c (check_composition): Make start and end EMACS_INT.
19189
19190 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19191
19192 * xdisp.c (handle_composition_prop, check_point_in_composition):
19193 Make buffer positions EMACS_INT.
19194
19195 * composite.c (find_composition, run_composition_function)
19196 (update_compositions, Ffind_composition_internal): Make buffer
19197 positions EMACS_INT.
19198
19199 * composite.h (find_composition, update_compositions): Make
19200 position args EMACS_INT.
19201
19202 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19203
19204 * intervals.c (get_property_and_range):
19205 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19206
19207 * unexalpha.c: Don't include varargs.h.
19208
192092008-02-01 Dave Love <fx@gnu.org>
19210
19211 * coding.h (ENCODE_UTF_8): New.
19212
19213 * Makefile.in (gtkutil.o): Depend on coding.h.
19214
19215 * coding.c (Fset_coding_system_priority): Doc fix.
19216
192172008-02-01 Kenichi Handa <handa@m17n.org>
19218
19219 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19220 the case of auto saving.
19221
192222008-02-01 Andreas Schwab <schwab@suse.de>
19223
19224 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19225 `range' from GC.
19226
192272008-02-01 Kenichi Handa <handa@m17n.org>
19228
19229 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19230
192312008-02-01 Kenichi Handa <handa@m17n.org>
19232
19233 * fileio.c (choose_write_coding_system): Return a decided coding system.
19234 (Fwrite_region): Set Vlast_coding_system_used to the return value
19235 of choose_write_coding_system.
19236
192372008-02-01 Kenichi Handa <handa@m17n.org>
19238
19239 * charset.c (Fset_charset_priority): Pay attention to duplicated
19240 arguments.
19241
19242 * coding.c (QCcategory): New variable.
19243 (syms_of_coding): Defsym it. Set all elements of
19244 Vcoding_category_table and their symbol values.
19245 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19246 coding-category-XXX, and coding-category-list.
19247 (Fdefine_coding_system_internal): Add category in the plist.
19248
192492008-02-01 Kenichi Handa <handa@m17n.org>
19250
19251 * callproc.c (Fcall_process): Handle carryover correctly.
19252
19253 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19254 (raw_text_coding_system): Check NILP (coding_system).
19255 (coding_inherit_eol_type): Check NILP (coding_system) and
19256 NILP (parent).
19257 (consume_chars): Fix for the case of raw-text.
19258
19259 * process.c (read_process_output): Handle carryover correctly.
19260
192612008-02-01 Dave Love <fx@gnu.org>
19262
19263 * regex.c (re_search_2): Fix last change.
19264
192652008-02-01 Kenichi Handa <handa@m17n.org>
19266
19267 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19268 target_multibyte. Even in a unibyte case, return a converted
19269 multibyte char.
19270 (GET_CHAR_AFTER): New macro.
19271 (PATFETCH): Translate via multibyte char.
19272 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19273 (SETUP_MULTIBYTE_RANGE): New macro.
19274 (regex_compile): Setup compiled code so that its multibyteness
19275 matches that of a target. Fix the handling of "[X-YZ]" using
19276 SETUP_MULTIBYTE_RANGE.
19277 (analyse_first) <charset>: For filling fastmap for all multibyte
19278 characters, don't check by BASE_LEADING_CODE_P.
19279 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19280 the same as RE_MULTIBYTE_P (bufp) now.
19281 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19282 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19283 (TRANSLATE_VIA_MULTIBYTE): New macro.
19284 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19285 It is the same as RE_MULTIBYTE_P (bufp) now.
19286 <exactn>: Translate via multibyte.
19287 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19288 translate it.
19289 <charset, charset_not>: Fetch a character by
19290 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19291 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19292 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19293 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19294 by GET_CHAR_AFTER.
19295 (bcmp_translate): Likewise.
19296
19297 * search.c (compile_pattern): Check the member target_multibyte,
19298 not the member multibyte of buf.
19299
19300 * lread.c (read1): While reading a string, set force_singlebyte
19301 and force_multibyte correctly.
19302
19303 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19304 up of unibyte_to_multibyte_table.
19305
193062008-02-01 Kenichi Handa <handa@m17n.org>
19307
19308 * coding.c (setup_coding_system): If coding has
19309 post-read-conversion or pre-write-conversion, set
19310 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19311 respectively.
19312 (decode_coding_gap): Run post-read-conversion if any.
19313
19314 * fileio.c (Finsert_file_contents): Even if we read into a
19315 unibyte buffer, check if we must decode the result or not.
19316
193172008-02-01 Kenichi Handa <handa@m17n.org>
19318
19319 * coding.c (make_conversion_work_buffer): Change the work buffer
19320 name to the same one as that of Emacs 21.
19321
193222008-02-01 Kenichi Handa <handa@m17n.org>
19323
19324 * coding.h (make_conversion_work_buffer): Adjust prototype.
19325 (code_conversion_restore): Don't extern it.
19326
19327 * coding.c (detected_mask): Delete unused variable.
19328 (decode_coding_iso_2022): Pay attention to the byte sequence of
19329 CTEXT extended segment, and retain those bytes as is.
19330 (decode_coding_ccl): Delete unused variable `valids'.
19331 (setup_coding_system): Delete unused variable `category'.
19332 (consume_chars): Delete unused variable `category'. Make it work
19333 for non-multibyte case.
19334 (make_conversion_work_buffer): Change argument.
19335 (saved_coding): Delete unused variable.
19336 (code_conversion_restore): Don't check saved_coding->destination.
19337 (code_conversion_save): New function.
19338 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19339 instead of record_unwind_protect.
19340 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19341 (detect_coding_system): Delete unused variable `mask'.
19342 (Fdefine_coding_system_internal): Delete unused variable id.
19343
19344 * fileio.c (kill_workbuf_unwind): New function.
19345 (Finsert_file_contents): On replacing, call
19346 make_conversion_work_buffer with correct args, and call
19347 record_unwind_protect with the first arg kill_workbuf_unwind.
19348
19349 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19350
193512008-02-01 Kenichi Handa <handa@m17n.org>
19352
19353 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19354 (fontset_add): Fix for the case that TO is less than TO1.
19355 (Ffontset_info): Don't use fallback fontset on checking the
19356 default fontset.
19357 (dump_fontset): New function for debugging.
19358
19359 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19360 coding_type is Qcharset.
19361
193622008-02-01 Kenichi Handa <handa@m17n.org>
19363
19364 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19365 (map_char_table): Don't inherit the value from the parent on
19366 initializing VAL. Adjust for the above change.
19367
193682008-02-01 Kenichi Handa <handa@m17n.org>
19369
19370 * coding.c (Qsignature, Qendian): Delete these variables.
19371 (syms_of_coding): Don't initialize them.
19372 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19373 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19374 detect_info->found.
19375 (decode_coding_utf_16): Don't detect BOM here.
19376 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19377 is NOT utf_16_without_bom.
19378 (setup_coding_system): For a coding system of type utf-16, check
19379 if the attribute :endian is Qbig or not (not nil or not), and set
19380 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19381 (detect_coding): If coding type is utf-16 and BOM detection is
19382 required, detect it.
19383 (Fdefine_coding_system_internal): For a coding system of type
19384 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19385
193862008-02-01 Kenichi Handa <handa@m17n.org>
19387
19388 * coding.c (coding_set_source): Fix for the case that the current
19389 buffer is different from coding->src_object.
19390 (decode_coding_object): Don't use the conversion work buffer if
19391 DST_OBJECT is a buffer.
19392
193932008-02-01 Dave Love <fx@gnu.org>
19394
19395 * lread.c (read_emacs_mule_char) [len==2]: Index
19396 emacs_mule_charset correctly.
19397
193982008-02-01 Dave Love <fx@gnu.org>
19399
19400 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19401 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19402 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19403 treated specially.)
19404 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19405 (detected_mask): Remove Big5 bits.
19406
194072008-02-01 Kenichi Handa <handa@m17n.org>
19408
19409 The following changes are to make the font rescaling facility
19410 compatible with Emacs 21.
19411
19412 * xfaces.c (Vface_font_rescale_alist): Rename from
19413 Vface_resizing_fonts.
19414 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19415 (font_rescale_ratio): Rename from font_resizing_ratio.
19416 (split_font_name): Set font->rescale_ratio.
19417 (better_font_p): Pay attention to font->rescale_ratio.
19418 (build_scalable_font_name): Likewise. Change RESX, and RESY
19419 fields.
19420 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19421
194222008-02-01 Kenichi Handa <handa@m17n.org>
19423
19424 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19425 (Qutf_16_le): Remove these variables.
19426 (syms_of_coding): Don't DEFSYM them.
19427 (decode_coding_utf_16): Fix handling of BOM.
19428 (encode_coding_utf_16): Fix handling of BOM.
19429
194302008-02-01 Kenichi Handa <handa@m17n.org>
19431
19432 * fileio.c (Finsert_file_contents): On replacing, before decoding
19433 the file into the work buffer, set point of the work buffer to the end.
19434
194352008-02-01 Dave Love <fx@gnu.org>
19436
19437 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19438
194392008-02-01 Dave Love <fx@gnu.org>
19440
19441 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19442 and fix C types.
19443
194442008-02-01 Kenichi Handa <handa@m17n.org>
19445
19446 * xdisp.c (SKIP_GLYPHS): New macro.
19447 (set_cursor_from_row): Pay attention to string display properties.
19448
19449 * category.c (copy_category_entry): Fix for the case that RANGE
19450 is an integer.
19451
19452 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19453
19454 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19455
194562008-02-01 Kenichi Handa <handa@m17n.org>
19457
19458 * charset.c (Fcharset_id_internal): New function.
19459 (syms_of_charset): Defsubr it.
19460
19461 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19462 with the last arg charset_list acquired from coding.
19463 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19464 the attribute coding_attr_ccl_valids.
19465
19466 * coding.h (enum define_coding_ccl_arg_index): Set the first
19467 member coding_arg_ccl_decoder to coding_arg_max.
19468
19469 * ccl.h (ccl_driver): Adjust prototype.
19470
19471 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19472 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19473 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19474 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19475 last arg Qnil.
19476
194772008-02-01 Kenichi Handa <handa@m17n.org>
19478
19479 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19480 call encode_char.
19481
19482 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19483
194842008-02-01 Dave Love <fx@gnu.org>
19485
19486 * composite.c (syms_of_composite): Make composition_hash_table weak.
19487
194882008-02-01 Kenichi Handa <handa@m17n.org>
19489
19490 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19491 (font_name_registry): Don't extern them.
19492 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19493
19494 * fontset.h (Qfontset): Don't extern it.
19495 (new_fontset_from_font_name): Extern it.
19496
19497 * fontset.c: Give 8 extra slots to fontset objects.
19498 (Qfontset_info): New variable.
19499 (syms_of_fontset): Defsym it.
19500 (FONTSET_FALLBACK): New macro.
19501 (fontset_face): Try also the default fontset.
19502 (make_fontset): Realize a fallback fontset from the default fontset.
19503 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19504 using split_font_name_into_vector and build_font_name_from_vector.
19505 (Fset_fontset_font): Access the elements of font_spec by enum
19506 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19507 name by using split_font_name_into_vector.
19508 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19509 generate a proper font name from the fontset name. Update
19510 Vfontset_alias_alist.
19511 (n_auto_fontsets): New variable.
19512 (new_fontset_from_font_name): New function.
19513 (Ffont_info): Store the information about fonts generated from the
19514 default fontset in the first extra slot of the returned char-table.
19515
19516 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19517 (font_name_registry): Delete function.
19518 (split_font_name_into_vector): New function.
19519 (build_font_name_from_vector): New function.
19520 (font_list): The argument REGISTRY is now a list of registry names.
19521 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19522 specifies an explicit font name, return the name as is. Make a
19523 list of registy names.
19524
19525 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19526 of x_new_fontset.
19527 (Fx_create_frame): Don't call x_new_fontset here. Just use
19528 x_list_fonts to check the existence of fonts.
19529
19530 * xterm.h (x_new_fontset): Adjust prototype.
19531
19532 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19533 string. Use new_fontset_from_font_name to create a fontset from a
19534 font name.
19535
195362008-02-01 Kenichi Handa <handa@m17n.org>
19537
19538 * syntax.c (Vfind_word_boundary_function_table): New name for
19539 Vnext_word_boundary_function_table.
19540 (find-word-boundary-function-table): New name for
19541 next-word-boundary-function-table.
19542
195432008-02-01 Dave Love <fx@gnu.org>
19544
19545 * Makefile.in: Fix some dependencies.
19546
19547 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19548 set it to nil before returning.
19549
19550 * composite.c (update_compositions): Fix type error.
19551
19552 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19553
195542008-02-01 Kenichi Handa <handa@m17n.org>
19555
19556 * xterm.c (x_new_font): Optimize for the case that the font is
19557 already set for the frame.
19558
195592008-02-01 Kenichi Handa <handa@m17n.org>
19560
19561 * chartab.c (char_table_ascii): Check if the char table contents
19562 is sub-char-table or not.
19563 (char_table_set, char_table_set_range): Fix argument to
19564 char_table_ascii.
19565
19566 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19567 (detect_coding_utf_8, detect_coding_utf_16)
19568 (detect_coding_emacs_mule, detect_coding_iso_2022)
19569 (detect_coding_sjis, detect_coding_big5)
19570 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19571 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19572 sequence is valid in this coding system. Change callers.
19573 (MAX_ANNOTATION_LENGTH): New macro.
19574 (ADD_ANNOTATION_DATA): New macro.
19575 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19576 ADD_ANNOTATION_DATA. Change the format of annotation data.
19577 (ADD_CHARSET_DATA): New macro.
19578 (emacs_mule_char): New argument ID. Change callers.
19579 (decode_coding_emacs_mule, decode_coding_iso_2022)
19580 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19581 Produce charset annotation data in coding->charbuf.
19582 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19583 to charset annotation data in coding->charbuf.
19584 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19585 coding->common_flags if the coding system is iso-2022 based and
19586 uses designation.
19587 (produce_composition): Adjust for the new annotation data format.
19588 (produce_charset): New function.
19589 (produce_annotation): Handle charset annotation.
19590 (handle_composition_annotation, handle_charset_annotation): New
19591 functions.
19592 (consume_chars): Handle charset annotation. Utilize the above two
19593 functions.
19594 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19595 buffer, get the deleted text as a string and set
19596 coding->src_object to that string.
19597 (detect_coding, detect_coding_system): Use the new struct
19598 coding_detection_info.
19599
19600 * coding.h (struct coding_detection_info): New structure.
19601 (struct coding_system): Adjust prototype of the member `detector'.
19602 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19603
196042008-02-01 Kenichi Handa <handa@m17n.org>
19605
19606 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19607
196082008-02-01 Dave Love <fx@gnu.org>
19609
19610 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19611 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19612 to new local and nullify apropos_accumulate before returning.
19613 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19614
196152008-02-01 Kenichi Handa <handa@m17n.org>
19616
19617 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19618 correctly.
e3eea1fc 19619
aac0c6e3
MR
196202008-02-01 Dave Love <fx@gnu.org>
19621
19622 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19623
196242008-02-01 Kenichi Handa <handa@m17n.org>
19625
19626 The following changes are to make character composition happen
19627 automatically on displaying.
19628
19629 * Makefile.in (lisp, shortlisp): Add composite.elc.
19630
19631 * composite.h (Qauto_composed, Vauto_composition_function)
19632 (Qauto_composition_function): Extern them.
19633
19634 * composite.c (Vcomposition_function_table)
19635 (Qcomposition_function_table): Delete variables.
19636 (Qauto_composed, Vauto_composition_function)
19637 (Qauto_composition_function): New variables.
19638 (run_composition_function): Don't call
19639 compose-chars-after-function.
19640 (update_compositions): Clear `auto-composed' text property.
19641 (compose_chars_in_text): Delete this function.
19642 (syms_of_composite): Staticpro Qauto_composed and
19643 Qauto_composition_function. Declare Vauto_composition_function as
19644 a Lisp variable.
19645
19646 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19647
19648 * xdisp.c (it_props): Add an entry for Qauto_composed.
19649 (handle_auto_composed_prop): New function.
19650
19651 * xselect.c (selection_data_to_lisp_data): Don't call
19652 compose_chars_in_text.
19653
196542008-02-01 Dave Love <fx@gnu.org>
19655
19656 * keyboard.c (read_char): Modify checking around use of
19657 Vkeyboard_translate_table.
19658
19659 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19660 and fix C types.
19661
196622008-02-01 Kenichi Handa <handa@m17n.org>
19663
19664 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19665 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19666 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19667 the case that the last byte is '\r' correctly.
19668 (decode_coding): Flush out the unprocessed data correctly.
19669 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19670
196712008-02-01 Dave Love <fx@gnu.org>
19672
19673 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19674 Add XK_ISO... case.
19675 (xaw_scroll_callback): Revert last change.
19676
196772008-02-01 Kenichi Handa <handa@m17n.org>
19678
19679 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19680
196812008-02-01 Kenichi Handa <handa@m17n.org>
19682
19683 * xfaces.c (Vface_resizing_fonts): New variable.
19684 (struct font_name): New member `resizing_ratio'.
19685 (font_resizing_ratio): New function.
19686 (split_font_name): Set font->resizing_ratio.
19687 (better_font_p): Pay attention to font->resizing_ratio.
19688 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19689 RESX, and RESY fields.
19690 (try_alternative_families): Try scalable fonts if
19691 Vscalable_fonts_allowed is not Qt.
19692 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19693
196942008-02-01 Dave Love <fx@gnu.org>
19695
19696 * xterm.c (xaw_scroll_callback): Cast correctly.
19697
196982008-02-01 Dave Love <fx@gnu.org>
19699
19700 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19701 (lispy_kana_keys): Comment out.
19702 (make_lispy_event) [XK_kana_A]: Comment out.
19703
19704 * xterm.c (xaw_scroll_callback): Cast call_data.
19705 (XTread_socket): Deal with ASCII keysyms.
19706 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19707
197082008-02-01 Dave Love <fx@gnu.org>
19709
19710 * xterm.c (Vx_keysym_table): New.
19711 (syms_of_xterm): Initialize it.
19712 (XTread_socket): Use it.
19713 From head: Eliminate incorrect optimization that tried to avoid
19714 decoding the output of X*LookupString.
19715 (x_get_font_repertory): Delete charset declaration.
19716
197172008-02-01 Kenichi Handa <handa@m17n.org>
19718
19719 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19720 return 0.
19721 (Fdefine_coding_system_internal): Setup
19722 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19723
197242008-02-01 Dave Love <fx@gnu.org>
19725
19726 * coding.c (Fcheck_coding_system): Doc fix.
19727
19728 * editfns.c (Finsert_byte): Return a proper value.
19729
197302008-02-01 Kenichi Handa <handa@m17n.org>
19731
19732 * coding.c (decode_coding): Fix args to translate_chars. Pay
19733 attention to Vstandard_translation_table_for_decode.
19734 (encode_coding): Fix args to translate_chars. Pay attention to
19735 Vstandard_translation_table_for_encode.
19736
19737 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19738 SINGLE_BYTE_CHAR_P.
19739
19740 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19741 not by SINGLE_BYTE_CHAR_P.
19742
19743 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19744 SINGLE_BYTE_CHAR_P.
19745
19746 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19747 SINGLE_BYTE_CHAR_P.
19748
19749 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19750 by SINGLE_BYTE_CHAR_P.
19751
19752 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19753 SINGLE_BYTE_CHAR_P.
19754
197552008-02-01 Dave Love <fx@gnu.org>
19756
19757 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19758
197592008-02-01 Dave Love <fx@gnu.org>
19760
19761 * fns.c (Flanginfo): Fix typo.
19762
19763 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19764
197652008-02-01 Kenichi Handa <handa@m17n.org>
19766
19767 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19768 (detect_coding_emacs_mule, detect_coding_iso_2022)
19769 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19770 incomplete byte sequence. Don't update *mask when correctly detected.
19771 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19772 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19773 (detect_coding, detect_coding_system): Adjust for the changes above.
19774
197752008-02-01 Kenichi Handa <handa@m17n.org>
19776
19777 * character.c (char_string): Rename from
19778 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19779 (string_char): Rename from string_char.
19780
19781 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19782 if C is greater than MAX_3_BYTE_CHAR.
19783 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19784 string_char instead of string_char_with_unification.
19785
197862008-02-01 Dave Love <fx@gnu.org>
19787
19788 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19789
197902008-02-01 Kenichi Handa <handa@m17n.org>
19791
19792 * keymap.c (push_key_description): Pay attention to force_multibyte.
19793
19794 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19795
197962008-02-01 Dave Love <fx@gnu.org>
19797
19798 * charset.c (define_charset_internal): Rename `supprementary'.
19799
19800 * Makefile.in (lisp, shortlisp): Remove latin-N.
19801
198022008-02-01 Dave Love <fx@gnu.org>
19803
19804 * xfns.c (x_window, x_window): Use use_xim.
19805
19806 * xterm.c (use_xim): Initialize.
19807 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19808 (x_term_init): Maybe set use_xim.
19809
19810 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19811
198122008-02-01 Kenichi Handa <handa@m17n.org>
19813
19814 * search.c (search_buffer): Fix case-fold-search of multibyte
19815 characters.
19816 (boyer_moore): Rename the last argument to char_high_bits.
19817
198182008-02-01 Kenichi Handa <handa@m17n.org>
19819
19820 * xdisp.c (display_string): Fix for the case of zero width glyph.
19821
19822 * xfns.c (x_set_font): Change the error message of the case that
19823 x_new_fontset returns Qt.
19824
19825 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19826 (Finternal_set_lisp_face_attribute): Use signal_error for the
19827 error of invalid fontset.
19828
19829 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19830 fontset, return Qt.
19831
198322008-02-01 Dave Love <fx@gnu.org>
19833
19834 * unexelf.c (unexec): Make .got handling not SGI-specific.
19835
19836 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19837
19838 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19839
19840 * keyboard.c (read_key_sequence): Fix type error.
19841
19842 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19843 type error.
19844
19845 * fontset.c (fontset_add): Return Lisp_Object.
19846
198472008-02-01 Dave Love <fx@gnu.org>
19848
19849 * charset.h (charset_ordered_list_tick): Declare extern.
19850
198512008-02-01 Kenichi Handa <handa@m17n.org>
19852
19853 The following changes (and some of 2008-02-01 changes of mine) are
19854 for handling syntax, category, and case conversion for unibyte
19855 characters by converting them to multibyte on the fly. With these
19856 changes, we don't have to setup syntax and case tables for unibyte
19857 characters in each language environment.
19858
19859 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19860 multibyte if necessary.
19861
19862 * bytecode.c (Fbyte_code): Likewise.
19863
19864 * character.h (LEADING_CODE_LATIN_1_MIN)
19865 (LEADING_CODE_LATIN_1_MAX): New macros.
19866 (unibyte_to_multibyte_table): Extern it.
19867 (unibyte_char_to_multibyte): New macro.
19868 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19869 (CHAR_LEADING_CODE): New macro.
19870 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19871
19872 * character.c (unibyte_to_multibyte_table): New variable.
19873 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19874 (multibyte_char_to_unibyte): If C is an eight-bit character,
19875 convert it to the corresponding byte value.
19876
19877 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19878 not 1, signals an error. Update the elements of
19879 unibyte_to_multibyte_table.
19880 (init_charset_once): Initialize unibyte_to_multibyte_table.
19881 (syms_of_charset): Define the charset `iso-8859-1'.
19882
19883 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19884 as is without converting it to unibyte. In a unibyte buffer,
19885 convert C to multibyte before checking the syntax.
19886
19887 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19888
19889 * minibuf.c (Fminibuffer_complete_word): Use the macro
19890 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19891
19892 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19893
19894 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19895 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19896 that is zero, convert an eight-bit char to multibyte.
19897 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19898 non-emacs case.
19899 (PATFETCH): Convert an eight-bit char to multibyte.
19900 (HANDLE_UNIBYTE_RANGE): New macro.
19901 (regex_compile): Setup the compiled pattern for multibyte chars
19902 even if the given regex string is unibyte. Use PATFETCH_RAW
19903 instead of PATFETCH in many places. To handle `charset'
19904 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19905 only for ASCII chars.
19906 (analyse_first) <exactn>: Simplify because the compiled pattern
19907 is multibyte.
19908 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19909 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19910 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19911 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19912 multibyte always 1.
19913 (re_search_2): In emacs, set the locale variable multibyte to 1,
19914 otherwise to 0. New local variable target_multibyte. Check it
19915 to decide the multibyteness of STR1 and STR2. If
19916 target_multibyte is zero, convert unibyte chars to multibyte
19917 before translating and checking fastmap.
19918 (TARGET_CHAR_AND_LENGTH): New macro.
19919 (re_match_2_internal): In emacs, set the locale variable multibyte
19920 to 1, otherwise to 0. New local variable target_multibyte. Check
19921 it to decide the multibyteness of STR1 and STR2. Use
19922 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19923 <charset, charset_not>: If multibyte is nonzero, check fastmap
19924 only for ASCII chars. Call bcmp_translate with
19925 target_multibyte, not with multibyte.
19926 <begline>: Declare the local variable C as `unsigned'.
19927 (bcmp_translate): Change the last arg name to target_multibyte.
19928
19929 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19930 the regexp pattern and the matching target. Set cp->buf.multibyte
19931 to the multibyteness of the regexp pattern. Set
19932 cp->but.target_multibyte to the multibyteness of the matching target.
19933 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19934 FETCH_STRING_CHAR_ADVANCE.
19935 (Freplace_match): Convert unibyte chars to multibyte.
19936
19937 * syntax.c (char_quoted, back_comment, scan_words)
19938 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19939 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19940 unibyte chars to multibyte.
19941 (skip_chars): Delete the arg syntaxp, and move the code for
19942 handling syntaxes to skip_syntaxes. Change callers.
19943 Fix the case that the multibyteness of STRING and the current
19944 buffer doesn't match.
19945 (skip_syntaxes): New function.
19946 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19947 SINGLE_BYTE_CHAR_P.
19948
199492008-02-01 Kenichi Handa <handa@m17n.org>
19950
19951 * xfaces.c (QCfontset): New variable.
19952 (LFACE_FONTSET): New macro.
19953 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19954 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19955 (Finternal_set_lisp_face_attribute)
19956 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19957 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19958 check also LFACE_FONTSET_INDEX.
19959 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19960 attrs[LFACE_FONT_INDEX].
19961 (syms_of_xfaces): Intern and staticpro QCfontset.
19962
19963 * dispextern.h (enum lface_attribute_index): New member
19964 LFACE_FONTSET_INDEX.
19965
19966 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19967
199682008-02-01 Kenichi Handa <handa@m17n.org>
19969
19970 * coding.c (coding_set_destination): Fix coding->destination for
19971 the case converting a region.
19972 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19973 (encode_coding_object): Fix coding->dst_pos and
19974 coding->dst_pos_byte for the case converting a region.
19975
19976 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19977
19978 * character.h (BYTE8_STRING): New macro.
19979
19980 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19981
199822008-02-01 Kenichi Handa <handa@m17n.org>
19983
19984 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19985 characters by octal form.
19986
19987 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19988
19989 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19990 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19991 _fetch_multibyte_char_len.
19992 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19993
19994 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19995
19996 * casefiddle.c (casify_object): Simplify. Handle the case that
19997 the case conversion change the byte length.
19998 (casify_region): Likewise.
19999
20000 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20001
20002 * character.c (_fetch_multibyte_char_len): Delete this variable.
20003 (syms_of_character): Setup Vprintable_chars.
20004
20005 * editfns.c (Fchar_equal): Fix for the unibyte case.
20006 (Finsert_byte): New function.
20007 (syms_of_editfns): Defsubr it.
20008
20009 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20010 of direct code 0x3ffff.
20011
20012 * search.c (Freplace_match): Fix for the unibyte case.
20013
200142008-02-01 Kenichi Handa <handa@m17n.org>
20015
20016 * lread.c (safe_to_load_p): Fix the logic.
20017
20018 * syntax.c (scan_words): Don't treat characters belonging to
20019 different scripts as constituting a word.
20020
20021 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20022
20023 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20024
20025 * emacs.c (main): In the case of --unibyte, instead of aborting on
20026 finding non-empty buffer, make it unibyte.
20027
200282008-02-01 Kenichi Handa <handa@m17n.org>
20029
20030 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20031 to create a fontset.
20032
200332008-02-01 Dave Love <fx@gnu.org>
20034
20035 * character.c (Funibyte_char_to_multibyte): Doc fix.
20036
20037 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20038
200392008-02-01 Kenichi Handa <handa@m17n.org>
20040
20041 * fontset.c (fontset_add): Make the type `int'.
20042 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20043
20044 * character.c (unibyte_char_to_multibyte)
20045 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20046 charset_unibyte, not charset_primary.
20047
20048 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20049
20050 * charset.c (charset_unibyte): Rename from charset_primary.
20051 (Funibyte_charset): Rename from Fprimary_charset.
20052 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20053 (syms_of_charset): Adjust for the above changes.
20054
20055 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20056 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20057 it->multibyte_p is zero.
20058
20059 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20060 Delete extern.
20061
200622008-02-01 Kenichi Handa <handa@m17n.org>
20063
20064 * coding.c (Fdefine_coding_system_internal): Fix category setting
20065 for a coding system of type iso-2022.
20066
200672008-02-01 Kenichi Handa <handa@m17n.org>
20068
20069 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20070
200712008-02-01 Kenichi Handa <handa@m17n.org>
20072
20073 * syntax.c (Vnext_word_boundary_function_table): New variable.
20074 (next-word-boundary-function-table): Declare it as a Lisp variable
20075 in syms_of_syntax.
20076 (scan_words): Call functions in Vnext_word_boundary_function_table
20077 if any.
20078
20079 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20080
20081 * fontset.c (fs_load_font): If fontp->charset is not negative,
20082 return fontp without setting its members.
20083
200842008-02-01 Dave Love <fx@gnu.org>
20085
20086 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20087
20088 * m/sparc.h (HAVE_ALLOCA): Delete.
20089
20090 * s/irix6-5.h: Don't include strings.h.
20091 (bcopy, bzero, bcmp): Don't undef.
20092
20093 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20094
20095 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20096 (TIOCSIGSEND): Don't test IRIX6.
20097 (bcopy, bzero, bcmp): Define conditionally.
20098
200992008-02-01 Kenichi Handa <handa@m17n.org>
20100
20101 * buffer.c (Qas, Qmake, Qto): New variables.
20102 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20103 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20104
20105 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20106 we are inserting a process output into a multibyte buffer.
20107
20108 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20109 multibyte_char_to_unibyte.
20110
20111 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20112 by the primary charset, make it eight-bit char.
20113 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20114
20115 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20116 (charset_8_bit__control, charset_8_bit_graphic)
20117 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20118 (define_charset_internal): New function.
20119 (syms_of_charset): Call define_charset_internal for pre-defined
20120 charsets.
20121
20122 * charset.h (charset_8_bit): Extern it.
20123
20124 * coding.c (make_conversion_work_buffer): Adjust for the change
20125 of Fset_buffer_multibyte.
20126 (encode_coding_raw_text): Increment p0 in the loop.
20127
20128 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20129
20130 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20131 for the change of Fset_buffer_multibyte.
20132
20133 * fns.c (Fstring_to_multibyte): New function.
20134 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20135
201362008-02-01 Dave Love <fx@gnu.org>
20137
20138 * xfns.c (x_put_x_image): Declare args.
20139
20140 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20141 (try_font_list): Declare an arg.
20142
20143 * xdisp.c (message2_nolog, set_message): Declare an arg.
20144
20145 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20146
20147 * syntax.c (scan_sexps_forward): Declare an arg.
20148
20149 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20150 Declare an arg.
20151
20152 * lisp.h (Fnew_fontset): Declare.
20153
20154 * keymap.c (push_key_description): Call CHARACTERP correctly.
20155
20156 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20157 (face_for_char): Delete unused vars.
20158 (Fset_fontset_font): Doc fix. Delete unused vars.
20159
20160 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20161
20162 * composite.c (update_compositions): Declare arg.
20163
20164 * cm.c (calccost, cmgoto): Declare args.
20165
20166 * charset.c: Remove `emacs' conditional. Doc fixes.
20167 (map_char_table_for_charset): Declare.
20168
20169 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20170
20171 * ccl.c: Remove `emacs' conditional.
20172
201732008-02-01 Kenichi Handa <handa@m17n.org>
20174
20175 The following changes are to allow specifying multiple font
20176 patterns for a character range (specified by script or charset).
20177
20178 * Makefile.in (abbrev.o): Depend on syntax.h.
20179 (xfaces.o): Depend on charset.h.
20180
20181 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20182 SINGLE_BYTE_CHAR_P.
20183
20184 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20185
20186 * character.h (Vchar_script_table): Extern it.
20187
20188 * character.c (Vscript_alist): Delete.
20189 (Vchar_script_table, Qchar_script_table): New variable.
20190 (syms_of_character): Declare Vchar_script_table as a lisp variable
20191 and initialize it.
20192
20193 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20194 have property char-table-extra-slots, make no extra slot.
20195
20196 * dispextern.h (struct face): Delete member `charset'.
20197 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20198 SINGLE_BYTE_CHAR_P.
20199 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20200 Add prototypes.
20201 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20202 (generate_ascii_font_name): Rename from generate_ascii_font.
20203
20204 * fontset.h (get_font_repertory_func): New prototype.
20205 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20206 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20207
20208 * fontset.c (Qprepend, Qappend): New variables.
20209 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20210 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20211 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20212 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20213 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20214 (load_font_get_repertory): New functions.
20215 (fontset_set): Delete.
20216 (fontset_face): New arg FACE. Return face ID, not face.
20217 Complete re-write to handle new fontset structure. Change caller.
20218 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20219 (face_for_char): Don't call lookup_face.
20220 (make_fontset_for_ascii_face): New arg FACE.
20221 (fs_load_font): New arg CHARSET_ID. Don't check
20222 Vfont_encoding_alist here.
20223 (find_font_encoding): New function.
20224 (list_fontsets): Use STRINGP, not ! NILP.
20225 (accumulate_script_ranges): New function.
20226 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20227 re-written to handle new fontset structure.
20228 (Ffontset_font): Return a copy of element.
20229 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20230 docstring of font-encoding-alist.
20231
20232 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20233 (Fset_fotset_font): Fix arguments to 5.
20234
20235 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20236
20237 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20238 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20239 (highlight_trailing_whitespace): Adjust for the change of
20240 lookup_named_face.
20241
20242 * xfaces.c: Include charset.h.
20243 (load_face_font): Delete argument C. Change caller.
20244 (generate_ascii_font_name): Rename from generate_ascii_font.
20245 (font_name_registry): New function.
20246 (cache_face): Store ascii faces before non-ascii faces in buckets.
20247 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20248 Lookup only ascii faces.
20249 (lookup_non_ascii_face): New function.
20250 (lookup_named_face): Delete argument C. Change caller.
20251 (lookup_derived_face): Delete argument C. Change caller.
20252 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20253 a string, just call font_list with it.
20254 (choose_face_font): Delete arguments FACE and C. New arg
20255 FONT_SPEC. Change caller.
20256 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20257 Change caller.
20258 (realize_non_ascii_face): New function.
20259 (realize_x_face): Call load_face_font here.
20260 (realize_tty_face): Delete argument C. Change caller.
20261 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20262 get a face ID.
20263 (dump_realized_face): Don't print charset of FACE.
20264
20265 * xfns.c (x_set_font): Always call x_new_fontset and
20266 store_frame_parameter.
20267 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20268 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20269
20270 * xterm.h (x_get_font_repertory): Extern it.
20271
20272 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20273 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20274 it->multibyte_p is zero.
20275 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20276 (x_new_fontset): If FONTSETNAME doesn't match any existing
20277 fontsets, create a new one.
20278 (x_get_font_repertory): New function.
20279
202802008-02-01 Kenichi Handa <handa@m17n.org>
20281
20282 * coding.c (Ffind_coding_systems_region_internal): Detect an
20283 ASCII only string correctly.
20284
20285 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20286 version is 0.
20287
202882008-02-01 Kenichi Handa <handa@m17n.org>
20289
20290 * lread.c: Include "coding.h".
20291 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20292 (load_each_byte, unread_char): New variables.
20293 (readchar_backlog): Delete.
20294 (readchar): Return a character unless load_each_byte is nonzero.
20295 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20296 cons. If unread_char is not -1, simply return it.
20297 (unreadchar): Handle the case that readcharfun is
20298 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20299 (read_multibyte): Delete.
20300 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20301 (read_emacs_mule_char): New functions.
20302 (Fload): Even if the file doesn't have the extension ".elc", if
20303 safe_to_load_p returns a positive version number, assume that the
20304 file contains bytecompiled code. If the version is less than 22,
20305 load the file while decoding multibyte sequences by emacs-mule.
20306 (readevalloop): Don't use readchar_backlog.
20307 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20308 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20309 (read_escape): Delete the arg BYTEREP.
20310 (read1): Set load_each_byte to 1 temporarily while handling
20311 #@NUMBER. Don't call read_multibyte.
20312 (read_vector): Call Fread with a cons. If readcharfun is
20313 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20314 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20315 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20316 and Qload_force_doc_strings.
20317
203182008-02-01 Kenichi Handa <handa@m17n.org>
20319
20320 * xdisp.c (face_before_or_after_it_pos): Call
20321 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20322
203232008-02-01 Kenichi Handa <handa@m17n.org>
20324
20325 * character.h (TRAILING_CODE_P): New macro.
20326 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20327 (string_char_with_unification): Fix prototype.
20328 (Vscript_alist): Extern it.
20329
20330 * character.c (Vscript_alist): New variable.
20331 (string_char_with_unification, str_as_unibyte)
20332 (string_escape_byte8): Add `const' to local variables.
20333 (syms_of_character): Declare script-alist as a Lisp variable.
20334
20335 * charset.h (Vcharset_ordered_list): Extern it.
20336 (charset_ordered_list_tick): Extern it.
20337 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20338 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20339 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20340 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20341 (Funify_charset): Adjust for the change of Funify_charset.
20342
20343 * charset.c (charset_ordered_list_tick): New variable.
20344 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20345 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20346 deunify intead of unify a charset.
20347 (string_xstring_p): Add `const' to local variables.
20348 (find_charsets_in_text): Add `const' to arguments and local variables.
20349 (encode_char): Adjust for the change of Funify_charset. Fix
20350 detecting of invalid code.
20351 (Fset_charset_priority): Increment charset_ordered_list_tick.
20352 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20353 and TO_CODE.
20354
20355 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20356 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20357 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20358 (decode_coding_ccl, consume_chars)
20359 (Ffind_coding_systems_region_internal)
20360 (Fcheck_coding_systems_region): Add `const' to local variables.
20361
20362 * print.c (print_object): Use octal form for printing the
20363 contents of a bool vector.
20364
203652008-02-01 Dave Love <fx@gnu.org>
20366
20367 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20368 <version == 20>: Refuse to load.
20369
203702008-02-01 Dave Love <fx@gnu.org>
20371
20372 * fns.c: Move coding.h.
20373 (Qcodeset, Qdays, Qmonths): New.
20374 (concat): Use CHARACTERP instead of INTEGERP.
20375 (Flocale_codeset): Delete.
20376 (Flanginfo): New function.
20377 (syms_of_fns): Change accordingly.
20378
20379 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20380
203812008-02-01 Dave Love <fx@gnu.org>
20382
20383 * casetab.c (init_casetab_once, init_casetab_once): Fix
20384 CHAR_TABLE_SET call.
20385
20386 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20387
20388 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20389
20390 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20391 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20392 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20393
20394 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20395
20396 * coding.c (ENCODE_DESIGNATION, decode_eol)
20397 (make_conversion_work_buffer, code_conversion_restore)
20398 (Fdefine_coding_system_internal): Convert Lisp types.
20399 (code_conversion_restore): Use EQ, not ==.
20400 (Fencode_coding_string): Fix code_convert_string call.
20401
20402 * coding.h (code_convert_region): Fix prototype.
20403
20404 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20405
20406 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20407 (Ffontset_info): Convert Lisp types.
20408
20409 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20410
20411 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20412
20413 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20414
20415 * chartab.c: Include "...h", not <...h> in some cases.
20416
20417 * callproc.c (Fcall_process): Remove unused variables.
20418
204192008-02-01 Dave Love <fx@gnu.org>
20420
20421 * coding.c (Fset_coding_system_priority): Allow null arg list.
20422
204232008-02-01 Dave Love <fx@gnu.org>
20424
20425 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20426 (Fself_insert_and_exit): Use CHARACTERP.
20427
20428 * callproc.c (Fcall_process): Remove unused vars.
20429
20430 * xterm.c (XTread_socket): Add extra dead keysyms.
20431
20432 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20433
20434 * dispextern.h: Remove prototypes for redraw_frame,
20435 redraw_garbaged_frames.
20436
20437 * cmds.c (Fself_insert_command): Use CHARACTERP.
20438
20439 * chartab.c (make_sub_char_table): Remove unused var.
20440 (Fset_char_table_default, Fmap_char_table): Doc fix.
20441
20442 * keymap.c (access_keymap): Remove generic char code.
20443 (push_key_description): Use CHARACTERP.
20444
204452008-02-01 Dave Love <fx@gnu.org>
20446
20447 * charset.c: Doc fixes.
20448 (Funify_charset): Extra checking.
20449
204502008-02-01 Dave Love <fx@gnu.org>
20451
20452 * lread.c: Remove some unused variables.
20453 (safe_to_load_p): If safe, return the magic number version byte.
20454 (Fload): Maybe use load-with-code-conversion.
20455
204562008-02-01 Kenichi Handa <handa@m17n.org>
20457
20458 * category.c (Fmodify_category_entry): Don't modify the contents
20459 of category_set for characters out of the range. Avoid
20460 unnecessary modification.
20461
20462 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20463 Vchar_unify_table. The default value of the table is now nil.
20464
20465 * character.c (syms_of_character): Setup Vchar_width_table for
20466 eight-bit-control and raw-byte chars.
20467
20468 * charset.h (enum define_charset_arg_index): Delete
20469 charset_arg_parents and add charset_arg_subset and
20470 charset_arg_superset.
20471 (enum charset_attr_index): Delete charset_parents and add
20472 charset_subset and charset_superset.
20473 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20474 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20475 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20476 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20477 (CHARSET_SUPERSET): New macros.
20478 (charset_work): Extern it.
20479 (ENCODE_CHAR): Use charset_work.
20480 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20481 (map_charset_chars): Extern it.
20482
20483 * charset.c (load_charset_map): Set the default value of encoder
20484 and deunifier char-tables to nil.
20485 (map_charset_chars): Change argument. Change callers. Use
20486 map_char_table_for_charset instead of map_char_table.
20487 (Fmap_charset_chars): New optional args from_code and to_code.
20488 (Fdefine_charset_internal): Adjust for the change of
20489 `define-charset' (:parents -> :subset or :superset).
20490 (charset_work): New variable.
20491 (encode_char, syms_of_charset): Adjust for the change of
20492 Fdefine_charset_internal.
20493 (Ffind_charset_string): Setup the vector `charsets' correctly.
20494
20495 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20496 the previous change.
20497 (char_table_ref_and_range): Adjust for the above change.
20498 (map_sub_char_table_for_charset): New function.
20499 (map_char_table_for_charset): New function.
20500
20501 * keymap.c (describe_vector): Handle a char-table directly here.
20502 (describe_char_table): Delete.
20503
20504 * lisp.h (map_charset_chars): Delete.
20505
205062008-02-01 Dave Love <fx@gnu.org>
20507
20508 * fns.c (count_combining): Comment out (unused).
20509 (Flocale_codeset): New.
20510 (syms_of_fns): Defsubr it.
20511
20512 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20513 (size_t): Remove.
20514
205152008-02-01 Dave Love <fx@gnu.org>
20516
20517 * Makefile.in (chartab.o): Depend on charset.h.
20518
205192008-02-01 Kenichi Handa <handa@m17n.org>
20520
20521 * character.c (syms_of_character): Set the default value of
20522 Vprintable_chars to Qnil.
20523
205242008-02-01 Dave Love <fx@gnu.org>
20525
20526 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20527
205282008-02-01 Kenichi Handa <handa@m17n.org>
20529
20530 * charset.c (load_charset_map): Handle the case that from < to
20531 correctly.
20532
20533 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20534 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20535 Pay attention to raw-8-bit chars.
20536
205372008-02-01 Kenichi Handa <handa@m17n.org>
20538
20539 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20540 It is not bytecompiled now.
20541
20542 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20543 (charset_jisx0208): New variables.
20544 (Fdefine_charset_internal): Setup them if appropriate.
20545 (init_charset_once): Initialize them to -1.
20546
20547 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20548 (charset_jisx0208): Extern them.
20549
20550 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20551 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20552 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20553 (setup_iso_safe_charsets): Fix arguments to Fassq.
20554 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20555 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20556 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20557 (encode_coding_iso_2022): Change the 1st arg to
20558 ENCODE_ISO_CHARACTER to a variable.
20559
205602008-02-01 Kenichi Handa <handa@m17n.org>
20561
20562 * charset.h (enum define_charset_arg_index): New enums
20563 charset_arg_min_code and charset_arg_max_code.
20564 (struct charset): New member char_index_offset.
20565
20566 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20567 Take charset->char_index_offset into account.
20568 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20569 args[charset_arg_max_code]. Setup charset.char_index_offset.
20570 (syms_of_charset): Fix args to Fdefine_charset_internal.
20571
205722008-02-01 Dave Love <fx@gnu.org>
20573
20574 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20575
205762008-02-01 Dave Love <fx@gnu.org>
20577
20578 * coding.c: Doc fixes.
20579 (Fcoding_system_aliases): Fix return value.
20580 (Qmac): Remove (duplicated) definition.
20581
205822008-02-01 Dave Love <fx@gnu.org>
20583
362654a6
JB
20584 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20585 New functions.
aac0c6e3
MR
20586
20587 * character.c (Fstring): Doc fix.
20588
20589 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20590
362654a6 20591 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20592 (font-encoding-alist): Doc fix.
20593
205942008-02-01 Dave Love <fx@gnu.org>
20595
20596 * term.c (costs_set): Declare static, non-initialized for pcc.
20597 (encode_terminal_code): Remove unused var.
20598
20599 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20600 for K&R.
20601
20602 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20603
20604 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20605 (suffixes): Move out of make_subsidiaries for K&R.
20606
20607 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20608
20609 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20610
206112008-02-01 Dave Love <fx@gnu.org>
20612
20613 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20614
20615 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20616
206172008-02-01 Yong Lu <lyongu@asia-infonet.com>
20618
20619 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20620
20621 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20622
206232008-02-01 Kenichi Handa <handa@m17n.org>
20624
20625 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20626 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20627
206282008-02-01 Kenichi Handa <handa@m17n.org>
20629
20630 * coding.c (decode_coding_charset): Adjust for the change of
20631 Fdefine_coding_system_internal.
20632 (Fdefine_coding_system_internal): For a coding system of
20633 `charset' type, store a list of charset IDs in
20634 `charset_attr_charset_valids' element of coding attributes.
20635
206362008-02-01 Kenichi Handa <handa@m17n.org>
20637
20638 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20639 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20640 caller. Handle 2-byte and 3-byte charsets correctly.
20641 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20642 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20643 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20644 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20645 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20646 sequence.
20647 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20648 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20649 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20650 and alt&rule composition.
20651 (decode_coding_iso_2022): Handle composition correctly.
20652 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20653
20654 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20655 re-defining a charset. If the charset has :emacs-mule-id, setup
20656 emacs_mule_bytes.
20657 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20658
206592008-02-01 Kenichi Handa <handa@m17n.org>
20660
20661 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20662 (encode_coding_big5, encode_coding_charset): If coding requires safe
20663 encoding, produce a character specified by
20664 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20665
206662008-02-01 Dave Love <fx@gnu.org>
20667
20668 * xterm.c (XSetIMValues): Declare.
20669
20670 * process.c: Conditionally include sys/wait.h, pty.h.
20671
20672 * print.c (print_object): Fix print format for 64-bit systems.
20673
20674 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20675
20676 * buffer.c (emacs_strerror): Declare.
20677
20678 * fontset.c (Fclear_face_cache): Declare.
20679 (accumulate_font_info): Comment-out (unused).
20680 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20681 variables.
20682
20683 * character.h (string_escape_byte8): Declare.
20684
20685 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20686 unused vars.
20687 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20688 (Fmap_charset_chars): Doc fix.
20689
20690 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20691 (Fset_coding_system_priority, Fset_coding_system_priority)
20692 (Fdefine_coding_system_internal): Doc fix.
20693
206942008-02-01 Dave Love <fx@gnu.org>
20695
20696 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20697
206982008-02-01 Kenichi Handa <handa@m17n.org>
20699
20700 * character.c (string_escape_byte8): Make multibyte string with
20701 correct size.
20702
20703 * charset.c (Fmake_char): Delete unnecessary code.
20704
207052008-02-01 Kenichi Handa <handa@m17n.org>
20706
20707 * xfns.c (x_encode_text): Allocate coding.destination here, and
20708 call encode_coding_object with dst_object Qnil.
20709
20710 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20711 multibyte form correctly.
20712
20713 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20714 against Vfont_encoding_alist.
20715
20716 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20717 handling of charset list.
20718 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20719 (decode_coding_object): Move point to coding->dst_pos before
20720 calling post-read-conversion function.
20721 (encode_coding_object): Give correct arguments to
20722 pre-write-conversion. Ignore the return value of
20723 pre-write-conversion function. Pay attention to the case that
20724 pre-write-conversion changes the current buffer. If dst_object is
20725 Qt, even if coding->src_bytes is zero, allocate at least one byte
20726 to coding->destination.
20727
20728 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20729
20730 * charset.c (Fmake_char): Make it more backward compatible.
20731 (Fmap_charset_chars): Fix docstring.
20732
207332008-02-01 Dave Love <fx@gnu.org>
20734
20735 * coding.c: Doc fixes.
20736 (Fdefine_coding_system_alias): Use names, not symbols, in
20737 coding-system-alist.
20738
207392008-02-01 Kenichi Handa <handa@m17n.org>
20740
20741 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20742 of calling free_realized_face.
20743
207442008-02-01 Yong Lu <lyongu@asia-infonet.com>
20745
20746 * charset.c (read_hex): Don't treat SPC as a comment starter.
20747 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20748 (Fdecode_char): Fix typo.
20749
207502008-02-01 Kenichi Handa <handa@m17n.org>
20751
20752 * charset.h (struct charset): New member `code_space_mask'.
20753
20754 * coding.c (coding_set_source): Delete the local variable beg_byte.
20755 (encode_coding_charset, Fdefine_coding_system_internal):
20756 Delete the local variable charset.
20757 (Fdefine_coding_system_internal): Setup
20758 attrs[coding_attr_charset_valids] correctly.
20759
20760 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20761 member to check if CODE is valid or not.
20762 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20763 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20764 is within the range of charset->min_code and carset->max_code.
20765
207662008-02-01 Dave Love <fx@gnu.org>
20767
20768 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20769
20770 * dispextern.h (generate_ascii_font): Fix return type.
20771
20772 * xfaces.c (generate_ascii_font): Fix arg declaration.
20773
20774 * coding.c (coding_inherit_eol_type)
20775 (Fset_terminal_coding_system_internal)
20776 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20777
207782008-02-01 Kenichi Handa <handa@m17n.org>
20779
20780 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20781 multiple charsets correctly.
20782
207832008-02-01 Kenichi Handa <handa@m17n.org>
20784
20785 * search.c (boyer_moore): Fix handling of multibyte character
20786 translation.
20787
20788 * xdisp.c (display_mode_element): When the variable `elt' is
20789 changed, update `this' and `lisp_string'.
20790
207912008-02-01 Kenichi Handa <handa@m17n.org>
20792
20793 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20794
20795 * callproc.c (Fcall_process): Be sure to give the current buffer
20796 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20797
20798 * charset.c (struct charset_map_entries): New struct.
20799 (load_charset_map): Rename from parse_charset_map. New args
20800 entries and n_entries. Change caller.
20801 (load_charset_map_from_file): Rename from load_charset_map.
20802 Change caller. New arg control_flag. Call load_charset_map at
20803 the tail.
20804 (load_charset_map_from_vector): New function.
20805 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20806 (encode_char): If the charset is compact, change a character index
20807 to a code point.
20808
20809 * coding.c (coding_alloc_by_making_gap): Check the case that the
20810 source and destination are the same correctly.
20811 (decode_coding_raw_text): Set coding->consumed_char and
20812 coding->consumed to 0.
20813 (produce_chars): If coding->chars_at_source is nonzero, update
20814 coding->consumed_char and coding->consumed before calling
20815 alloc_destination.
20816 (Fdefine_coding_system_alias): Register ALIAS in
20817 Vcoding_system_alist.
20818 (syms_of_coding): Define `no-conversion' coding system at the tail.
20819
20820 * fileio.c (Finsert_file_contents): Set coding_system instead of
20821 val. If the current buffer is multibyte, always call
20822 decode_coding_gap.
20823
20824 * xfaces.c (try_font_list): Give higher priority to fontset's
20825 family than face's family.
20826
208272008-02-01 Kenichi Handa <handa@m17n.org>
20828
20829 * callproc.c (Fcall_process): Be sure to give the current buffer
20830 to decode_coding_c_string.
20831
20832 * xfaces.c (try_font_list): Give a family specified in a fontset
20833 higher priority than a family specified in a face.
20834
208352008-02-01 Kenichi Handa <handa@m17n.org>
20836
20837 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20838 Fix arguments to insert_from_buffer.
20839
20840 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20841
208422008-02-01 Kenichi Handa <handa@m17n.org>
20843
20844 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20845 (decode_coding_gap): Set coding->dst_multibyte correctly.
20846
208472008-02-01 Kenichi Handa <handa@m17n.org>
20848
20849 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20850 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20851 (encode_coding_utf_16): Substitute coding->default_char for
20852 non-Unicode characters.
20853 (decode_coding): Don't call record_insert here.
20854 (setup_coding_system): Initialize `surrogate' of
20855 coding->spec.utf_16 to 0.
20856 (EMIT_ONE_BYTE): Fix for multibyte case.
20857
20858 * insdel.c (insert_from_gap): Call record_insert.
20859
208602008-02-01 Kenichi Handa <handa@m17n.org>
20861
20862 * casefiddle.c (casify_region): Fix multibyte case.
20863
20864 * character.c (c_string_width): Add return type `int'.
20865 (char_string_with_unification): Delete arg ADVANCED.
20866
20867 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20868 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20869 (CHAR_STRING_ADVANCE): Make it do-while statement.
20870
20871 * chartab.c (sub_char_table_set_range): Optimize for the case
20872 DEPTH == 3. Add workaround code for a GCC optimization bug.
20873
20874 * charset.c (parse_charset_map): Remove an unused variable.
20875
20876 * coding.c: Delete unused variables.
20877
20878 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20879 earlier. If inserted is zero and the coding system doesn't
20880 require flushing, don't call decode_coding_gap.
20881
20882 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20883
208842008-02-01 Kenichi Handa <handa@m17n.org>
20885
20886 The following changes are for using Unicode as an internal
20887 character model, and use UTF-8 format for buffer/string
20888 representation.
20889
20890 * .gdbinit (xchartable): Adjust for the change of char table structure.
20891 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20892
20893 * Makefile.in (obj): Add character.o and chartab.o.
20894 (lisp, shortlisp): Remove utf-8.elc.
20895 (*.o): For many files, change dependency on charset.h to
20896 character.h, and add dependency on character.h.
20897 (character.o, chartab.o): New targets.
20898
20899 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20900 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20901 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20902 of "charset.h".
20903
20904 * dired.c, filelock.c: Include "character.h".
20905
20906 * alloc.c: Include "character.h" instead of "charset.h".
20907 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20908 (syms_of_alloc): Remove defsubr for Smake_char_table.
20909
20910 * buffer.c: Include "character.h" instead of "charset.h", don't
20911 include "coding.h".
20912 (Fset_buffer_multibyte): Adjust for UTF-8.
20913
20914 * buffer.h: EXFUN Fbuffer_live_p.
20915
20916 * callproc.c: Include "character.h" instead of "charset.h".
20917 (Fcall_process): Big change for the new code-conversion APIs.
20918
20919 * casetab.c: Include "character.h" instead of "charset.h".
20920 (set_canon, set_identity, shuffle): Adjust for the new
20921 map_char_table spec.
20922 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20923 accessing the char table structure.
20924
20925 * chartab.c: New file that implements char table.
20926
20927 * category.c: Include "character.h".
20928 (copy_category_entry): New function.
20929 (copy_category_table): Call map_char_table and copy_category_entry.
20930 (Fmake_category_table): Initialize all top-level slots.
20931 (char_category_set): New function.
20932 (modify_lower_category_set): Delete.
20933 (Fmodify_category_entry): Call char_table_ref_and_range.
20934
20935 * category.h (CATEGORY_SET): Just call char_category_set.
20936
20937 * ccl.c: Include "character.h".
20938 (Qccl, Qcclp): New variables.
20939 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20940 it's less than 256.
20941 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20942 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20943 and DST type.
20944 (ccl_driver): Change types of argument, adjust code accordingly.
20945 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20946 ccl_driver.
20947 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20948
20949 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20950 New members src_multibyte, dst_multibyte, consumed, and produced.
20951 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20952 (CODING_SPEC_CCL_PROGRAM): New macro.
20953 (ccl_driver): Update prototype.
20954 (Qccl, Qcclp, Fccl_program_p): Extern them.
20955 (CHECK_CCL_PROGRAM): New macro.
20956
20957 * character.c, character.h, chartab.c: New files.
20958
20959 * charset.c: Mostly re-written. Move character and multibyte sequence
20960 handling codes to character.c.
20961
20962 * charset.h: Mostly re-written. Move character and multibyte sequence
20963 handling codes to character.h.
20964
20965 * coding.c, coding.h: Mostly re-written.
20966
20967 * composite.c: Include "character.h" instead of "charset.h".
20968 (CHAR_WIDTH): Move to character.h.
20969 (HASH_KEY, HASH_VALUE): Delete.
20970
20971 * composite.h (enum composition_method): Change order of enumeration
20972 symbols.
20973
20974 * data.c: Include "character.h" instead of "charset.h".
20975 (Faref): Call CHAR_TABLE_REF for a char table.
20976 (Faset): Call CHAR_TABLE_SET for a char table.
20977
20978 * dispextern.h (free_realized_face, check_face_attribytes)
20979 (generate_ascii_font): Extern them.
20980 (free_realized_multibyte_face): Delete extern.
20981
20982 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20983 table structure.
20984
20985 * editfns.c: Include "character.h" instead of "charset.h".
20986 (Fchar_to_string): Always call CHAR_STRING.
20987
20988 * emacs.c (main): Call init_charset_once, init_charset,
20989 syms_of_chartab, and syms_of_character.
20990
20991 * fileio.c: Include "character.h" instead of "charset.h".
20992 (Finsert_file_contents): Big change for the new code-conversion API.
20993 (choose_write_coding_system, Fwrite_region): Likewise.
20994 (build_annotations_2): Delete.
20995 (e_write): Big change for the new code-conversion API.
20996
20997 * fns.c: Include "character.h" instead of "charset.h".
20998 (copy_sub_char_table): Move to chartab.c.
20999 (Fcopy_sequence): Call copy_char_table for a char table.
21000 (concat): Delete codes calling count_multibyte.
21001 (string_char_to_byte, string_byte_to_char): Adjust for the new
21002 multibyte form.
21003 (internal_equal): Adjust for the change of char table structure.
21004 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21005 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21006 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21007 (char_table_translate, optimize_sub_char_table)
21008 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21009 chartab.c.
21010 (char_table_ref_and_index): Delete.
21011 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21012 (Fmd5): Call preferred_coding_system instead of accessing
21013 Vcoding_category_list. Adjust for the new code-conversion API.
21014 (syms_of_fns): Move defsubr for char table related functions to
21015 chartab.c.
21016
21017 * fontset.c: Mostly re-written.
21018
21019 * fontset.h (struct font_info): Change type of the member encoding_type.
21020 (enum FONT_SPEC_INDEX): New enum.
21021 (fontset_font_pattern, fs_load_font): Update prototype.
21022 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21023
21024 * indent.c: Include "character.h" instead of "charset.h".
21025 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21026
21027 * insdel.c: Include "character.h" instead of "charset.h".
21028 (copy_text): Don't refer to Vnonascii_translation_table.
21029 (insert_from_gap): New function.
21030
21031 * keyboard.c: Include "character.h" instead of "charset.h".
21032 (command_loop_1): Never call direct_output_forward_char before
21033 a non-ASCII character.
21034 (read_char): If Vkeyboard_translate_table is a char table, always
21035 translate a character.
21036
21037 * keymap.c: Include "character.h".
21038 (store_in_keymap): Handle the case that IDX is a cons.
21039 (Fdefine_key): Handle the case that KEY is a cons and the car part
21040 is also a cons (range).
21041 (push_key_description): Adjust for the new character code.
21042 (describe_vector): Call describe_char_table for a char table.
21043 (describe_char_table): New function.
21044
21045 * keymap.h (describe_char_table): Extern it.
21046
21047 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21048 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21049 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21050 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21051 Delete.
21052 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21053 structure.
21054 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21055 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21056 (CHARTAB_SIZE_BITS_3): New macros.
21057 (chartab_size): Extern it.
21058 (struct Lisp_Char_Table): Re-design.
21059 (struct Lisp_Sub_Char_Table): New structure.
21060 (HASH_KEY, HASH_VALUE): Move from fns.c.
21061 (CHARACTERBITS): Define as 22.
21062 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21063 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21064 (GC_SUB_CHAR_TABLE_P): New macro.
21065 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21066 (code_convert_string_norecord): Deleted extern.
21067 (init_character_once, syms_of_character, init_charset)
21068 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21069
21070 * lread.c: Include "character.h".
21071 (read_multibyte): New arg NBYTES.
21072 (read_escape): Change the meaning of returned *BYTEREP.
21073 (to_multibyte): Delete.
21074 (read1): Adjust the handling of char table and string.
21075
21076 * print.c: Include "character.h" instead of "charset.h".
21077 (print_string): Convert 8-bit raw bytes to octal form by
21078 string_escape_byte8.
21079 (print_object): Adjust for the new multibyte form. Print 8-bit
21080 raw bytes always in octal form. Handle sub char table correctly.
21081
21082 * process.c: Include "character.h" instead of "charset.h".
21083 (read_process_output, send_process): Adjust for the new
21084 code-conversion API.
21085
21086 * puresize.h (BASE_PURESIZE): Increase.
21087
21088 * regex.c: Include "character.h" instead of "charset.h".
21089 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21090 (regex_compile): Accept a range whose starting and ending
21091 character have different leading bytes.
21092 (analyse_first): Adjust for the above change.
21093
21094 * search.c: Include "character.h" instead of "charset.h".
21095 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21096 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21097
21098 * syntax.c: Include "character.h" instead of "charset.h".
21099 (syntax_parent_lookup): Delete.
21100 (Fmodify_syntax_entry): Accept a cons as CHAR.
21101 (skip_chars): Adjust for the new multibyte form.
21102 (init_syntax_once): Call char_table_set_range instead of directly
21103 accessing the structure of a char table.
21104
21105 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21106 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21107 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21108 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21109
21110 * term.c: Include "buffer.h" and "character.h".
21111 (encode_terminal_code, write_glyphs): Adjust for the new
21112 code-conversion API.
21113 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21114
21115 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21116
21117 * xdisp.c: Include "character.h".
21118 (get_next_display_element): Adjust for the new multibyte form.
21119 (disp_char_vector): Adjust for the new char table structure.
21120 (decode_mode_spec_coding): Adjust for the new structure of
21121 coding system.
21122 (decode_mode_spec): Adjust for the new code-conversion API.
21123
21124 * xfaces.c: Include "character.h" instead of "charset.h".
21125 (load_face_font): Adjust for the change of choose_face_font and
21126 FS_LOAD_FONT.
21127 (generate_ascii_font): New function.
21128 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21129 (set_font_frame_param): Adjust for the change of choose_face_font.
21130 (free_realized_face): Make it public.
21131 (free_realized_faces_for_fontset): Rename from
21132 free_realized_multibyte_face. Free also faces realized for ASCII.
21133 (choose_face_font): Change arguments. Adjust for the change of
21134 fontset_font_pattern and FS_LOAD_FONT.
21135
21136 * xfns.c: Include "character.h".
21137 (x_encode_text): Adjust for the new code-conversion API.
21138
21139 * xselect.c: Don't include "charset.h".
21140 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21141
21142 * xterm.c: Include "character.h".
21143 (x_encode_char): New argument CHARSET. Change caller.
21144 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21145 Call ENCODE_CHAR instead of SPLIT_CHAR.
21146 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21147 CHAR_WIDTH instead of CHARSET_WIDTH.
21148 (XTread_socket): Adjust for the new code-conversion API.
21149 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21150 (x_load_font): Adjust for the change of struct font.
21151
211522008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21153
21154 * xfaces.c (face_at_buffer_position): Remove unused vars.
21155
211562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21157
21158 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21159 Fix overflow checking.
21160
211612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21162
21163 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21164 Cancel previous change.
21165
211662008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21167
21168 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21169 ccl->eight_bit_control. Fix check for buffer overflow.
21170 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21171 (ccl_driver): Initialize extra_bytes to 0.
21172
211732008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21174
21175 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21176 return it ORed with ctrl_modifier.
21177
211782008-01-29 Miles Bader <miles@gnu.org>
21179
21180 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21181
211822008-01-28 Jason Rumney <jasonr@gnu.org>
21183
21184 * w32.c (stat): Don't double check for networked drive.
21185
211862008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21187
21188 * window.c (run_window_configuration_change_hook): New function.
21189 Code extracted from set_window_buffer. Set the selected frame.
21190 (set_window_buffer): Use it.
21191 * window.h (run_window_configuration_change_hook): Declare.
21192 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21193
21194 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21195
211962008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21197
21198 * Makefile.in: Remove references to unused macros.
21199
212002008-01-26 Eli Zaretskii <eliz@gnu.org>
21201
21202 * w32.c (g_b_init_get_sid_sub_authority)
21203 (g_b_init_get_sid_sub_authority_count): New static variables.
21204 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21205 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21206 (init_user_info): Use them to retrieve uid and gid.
21207 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21208 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21209 st_uid and st_gid of the file.
21210
212112008-01-26 Jason Rumney <jasonr@gnu.org>
21212
21213 * w32.c (logon_network_drive): New function.
21214 (stat): Use it.
21215
212162008-01-26 Chong Yidong <cyd@stupidchicken.com>
21217
21218 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21219 invisible text covered with an ellipsis.
21220
212212008-01-25 Richard Stallman <rms@gnu.org>
21222
21223 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21224 jump back to beginning. Move some other initializations after that.
21225 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21226 New variables.
21227 (syms_of_xdisp): Init them.
21228
21229 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21230
21231 * buffer.c (reset_buffer_local_variables):
21232 Implement `permanent-local-hook'.
21233 (Qpermanent_local_hook): New variable.
21234 (syms_of_buffer): Init and staticpro it.
21235
212362008-01-25 Michael Albinus <michael.albinus@gmx.de>
21237
21238 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21239
212402008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21241
21242 * fns.c (Fclrhash): Return TABLE.
21243
212442008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21245
21246 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21247 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21248 is set even without positional changes.
21249 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21250
21251 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21252
212532008-01-23 Jason Rumney <jasonr@gnu.org>
21254
21255 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21256
21257 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21258 the unicode range available in MULE by locale-coding-system.
21259 Improve dbcs lead byte detection. Set event timestamp and modifiers
21260 earlier.
21261
212622008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21263
21264 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21265 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21266 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21267 when used on child processes.
21268
212692008-01-21 Michael Albinus <michael.albinus@gmx.de>
21270
21271 * dbusbind.c (Fdbus_method_return_internal): Rename from
21272 Fdbus_method_return.
21273 (Fdbus_unregister_object): Move to dbus.el.
21274 (Fdbus_call_method, Fdbus_method_return_internal)
21275 (Fdbus_send_signal): Improve debug messages.
21276
212772008-01-20 Martin Rudalics <rudalics@gmx.at>
21278
21279 * undo.c (undo_inhibit_record_point): New variable.
21280 (syms_of_undo): Initialize it.
21281 (record_point): Don't record point when undo_inhibit_record_point
21282 is set.
21283
212842008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21285
21286 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21287
21288 * xdisp.c (Qauto_hscroll_mode): New var.
21289 (syms_of_xdisp): Initialize it.
21290 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21291 window's buffer.
21292 (hscroll_windows): Don't check automatic_hscrolling_p here.
21293
21294 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21295 vscroll if we're setting window-buffer to the value it already has.
21296
212972008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21298
21299 * m/intel386.h: Remove references to XENIX.
21300
213012008-01-17 Andreas Schwab <schwab@suse.de>
21302
21303 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21304 instead of HAVE_X86_64_LIB64_DIR.
21305 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21306
213072008-01-17 Glenn Morris <rgm@gnu.org>
21308
21309 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21310 to HAVE_X86_64_LIB64_DIR.
21311
213122008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21313
21314 * s/irix3-3.h:
21315 * s/irix4-0.h:
21316 * s/386-ix.h:
21317 * s/domain.h:
21318 * s/hpux9-x11r4.h:
21319 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21320
21321 * sysdep.c: Remove code containing references to symbols defined
21322 by unsupported systems.
21323
213242008-01-16 Glenn Morris <rgm@gnu.org>
21325
21326 * coding.c (select-safe-coding-system-function): Doc fix.
21327
213282008-01-15 Glenn Morris <rgm@gnu.org>
21329
21330 * config.in: Revert 2008-01-13 change: this is a generated file.
21331
213322008-01-13 Tom Tromey <tromey@redhat.com>
21333
21334 * lisp.h: Fix typo.
21335
213362008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21337
21338 * m/sequent-ptx.h:
21339 * m/sequent.h:
21340 * s/ptx.h:
21341 * s/ptx4-2.h:
21342 * s/ptx4.h: Remove files for systems no longer supported.
21343
21344 * callproc.c (Fcall_process): Fix previous change.
21345
213462008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21347
21348 * unexsunos4.c: Remove file, system not supported anymore.
21349
21350 * m/mips.h:
21351 * m/intel386.h:
21352 * callproc.c:
21353 * config.in:
21354 * ecrt0.c:
21355 * emacs.c:
21356 * fileio.c:
21357 * frame.c:
21358 * getpagesize.h:
21359 * keyboard.c:
21360 * lread.c:
21361 * process.c:
21362 * puresize.h:
21363 * sysdep.c:
21364 * systty.h:
21365 * syswait.h:
21366 * unexec.c:
21367 * xdisp.c:
21368 * alloc.c: Remove code containing references to symbols defined by
21369 unsupported systems.
21370
213712008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21372
21373 * coding.c (detect_coding_mask): Fix previous change.
21374
213752008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21376
21377 * coding.c (detect_coding_iso2022): New arg
21378 latin_extra_code_state. Allow Latin extra codes only
21379 when *latin_extra_code_state is nonzero.
21380 (detect_coding_mask): If there is a NULL byte, detect the encoding
21381 as UTF-16 or binary. If Latin extra codes exist, detect the
21382 encoding as ISO-2022 only when there's no other proper encoding is
21383 found.
21384
213852008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21386
21387 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21388 #ifdef MAC_OS.
21389
213902008-01-08 Richard Stallman <rms@gnu.org>
21391
21392 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21393
213942008-01-06 Nick Roberts <nickrob@snap.net.nz>
21395
21396 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21397 menu bar in parentheses.
21398
213992008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21400
21401 * m/7300.h:
21402 * m/acorn.h:
21403 * m/alliant-2800.h:
21404 * m/alliant.h:
21405 * m/alliant1.h:
21406 * m/alliant4.h:
21407 * m/altos.h:
21408 * m/amdahl.h:
21409 * m/apollo.h:
21410 * m/att3b.h:
21411 * m/aviion-intel.h:
21412 * m/aviion.h:
21413 * m/celerity.h:
21414 * m/clipper.h:
21415 * m/cnvrgnt.h:
21416 * m/convex.h:
21417 * m/cydra5.h:
21418 * m/delta88k.h:
21419 * m/dpx2.h:
21420 * m/dual.h:
21421 * m/elxsi.h:
21422 * m/f301.h:
21423 * m/gould-np1.h:
21424 * m/gould.h:
21425 * m/i860.h:
21426 * m/ibmps2-aix.h:
21427 * m/ibmrt-aix.h:
21428 * m/ibmrt.h:
21429 * m/irist.h:
21430 * m/is386.h:
21431 * m/isi-ov.h:
21432 * m/mega68.h:
21433 * m/mg1.h:
21434 * m/news-r6.h:
21435 * m/news-risc.h:
21436 * m/news.h:
21437 * m/nh3000.h:
21438 * m/nh4000.h:
21439 * m/ns16000.h:
21440 * m/ns32000.h:
21441 * m/nu.h:
21442 * m/orion.h:
21443 * m/orion105.h:
21444 * m/paragon.h:
21445 * m/pfa50.h:
21446 * m/plexus.h:
21447 * m/pyramid.h:
21448 * m/pyrmips.h:
21449 * m/sh3el.h:
21450 * m/sps7.h:
21451 * m/sr2k.h:
21452 * m/stride.h:
21453 * m/sun1.h:
21454 * m/sun2.h:
21455 * m/sun3-68881.h:
21456 * m/sun3-fpa.h:
21457 * m/sun3-soft.h:
21458 * m/sun3.h:
21459 * m/sun386.h:
21460 * m/symmetry.h:
21461 * m/tad68k.h:
21462 * m/tahoe.h:
21463 * m/targon31.h:
21464 * m/tek4300.h:
21465 * m/tekxd88.h:
21466 * m/tower32.h:
21467 * m/tower32v3.h:
21468 * m/ustation.h:
21469 * m/wicat.h:
21470 * m/xps100.h:
21471 * s/cxux.h:
21472 * s/cxux7.h:
21473 * s/dgux.h:
21474 * s/dgux4.h:
21475 * s/dgux5-4-3.h:
21476 * s/dgux5-4r2.h:
21477 * s/esix.h:
21478 * s/esix5r4.h:
21479 * s/hiuxmpp.h:
21480 * s/hiuxwe2.h:
21481 * s/iris3-5.h:
21482 * s/iris3-6.h:
21483 * s/isc2-2.h:
21484 * s/isc3-0.h:
21485 * s/isc4-0.h:
21486 * s/isc4-1.h:
21487 * s/newsos5.h:
21488 * s/newsos6.h:
21489 * s/osf1.h:
21490 * s/osf5-0.h:
21491 * s/riscix1-1.h:
21492 * s/riscix12.h:
21493 * s/sco4.h:
21494 * s/sco5.h:
21495 * s/sunos4-0.h:
21496 * s/sunos4-1.h:
21497 * s/sunos413.h:
21498 * s/sunos4shr.h:
21499 * s/umax.h:
21500 * s/unipl5-2.h:
21501 * s/xenix.h:
21502 * cxux-crt0.s:
21503 * unexapollo.c:
21504 * unexconvex.c:
21505 * unexenix.c:
21506 * unexsni.c: Remove files for systems no longer supported.
21507
21508 * m/intel386.h: Remove references to unsupported systems.
21509
21510 * w32.c (get_emacs_configuration): Remove reference to i860.
21511
21512 * sysdep.c: Remove dead code.
21513
215142008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21515
21516 * s/rtu.h:
21517 * m/masscomp.h: Remove files. Platform is obsolete.
21518
215192008-01-04 Michael Albinus <michael.albinus@gmx.de>
21520
21521 * dbusbind.c (Fdbus_method_return): New function.
21522 (xd_read_message): Add the serial number to the event.
21523 (Fdbus_register_method): Activate the function.
21524
215252008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21526
21527 * keyboard.c (read_key_sequence): Fix typo.
21528
215292008-01-03 Michael Albinus <michael.albinus@gmx.de>
21530
21531 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21532 (xd_signature, xd_append_arg): Handle element type detection for
21533 empty arrays.
21534 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21535 SDATA () calls; this must be solved more general.
21536 (Fdbus_register_signal): Use SBYTES instead of strlen.
21537
215382008-01-03 Magnus Henoch <magnus@zemdatav>
21539
21540 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21541 unsigned int for byte values (necessary for big-endian platform).
21542 (Fdbus_call_method): Handle the case of no returned arguments.
21543
215442007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21545
21546 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21547
215482007-12-31 Magnus Henoch <mange@freemail.hu>
21549
21550 * dbusbind.c (xd_signature): Signature of variant is just "v".
21551
215522007-12-30 Michael Albinus <michael.albinus@gmx.de>
21553
21554 * dbusbind.c: Fix several errors and compiler warnings.
21555 Reported by Tom Tromey <tromey@redhat.com>.
21556 (XD_ERROR, XD_DEBUG_MESSAGE)
21557 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21558 (xd_append_arg): Part for basic D-Bus types rewritten.
21559 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21560 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21561 appropriate.
21562 (xd_read_message): Return Qnil. Don't signal an error; it is not
21563 useful during event reading.
21564 (Fdbus_register_signal): Signal an error if the check for
21565 FUNCTIONP fails.
21566 (Fdbus_register_method): New function. The implementation is not
21567 complete, the call of the function signals an error therefore.
21568 (Fdbus_unregister_object): New function, renamed from
21569 Fdbus_unregister_signal. The initial check signals an error, if
21570 the object is not well formed.
21571
215722007-12-30 Richard Stallman <rms@gnu.org>
21573
21574 * textprop.c (get_char_property_and_overlay):
21575 Signal error if POSITION is out of range in a buffer.
21576
215772007-12-29 Martin Rudalics <rudalics@gmx.at>
21578
21579 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21580 because the original parameters are in pure storage now.
21581
215822007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21583
21584 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21585
215862007-12-22 Eli Zaretskii <eliz@gnu.org>
21587
21588 * callint.c (syms_of_callint) <command-history>: Add reference to
21589 history-length in the doc string.
21590
215912007-12-17 Jason Rumney <jasonr@gnu.org>
21592
21593 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21594 before passing as wParam.
21595
215962007-12-22 Michael Albinus <michael.albinus@gmx.de>
21597
21598 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21599 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21600 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21601 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21602 as number.
21603 (Fdbus_call_method): Fix docstring.
21604
216052007-12-21 Michael Albinus <michael.albinus@gmx.de>
21606
21607 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21608 New macros.
21609 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21610 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21611 Simplify.
21612 (xd_signature): New function.
21613 (xd_append_arg): Compute also signatures. Major rewrite.
21614 (xd_retrieve_arg): Make debug messages friendly.
21615 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21616 Check for signatures of arguments.
21617
216182007-12-19 Michael Albinus <michael.albinus@gmx.de>
21619
21620 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21621 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21622 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21623 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21624 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21625 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21626 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21627 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21628 (xd_retrieve_value): Remove. Functionality included in ...
21629 (xd_append_arg): New function.
21630 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21631
216322007-12-16 Michael Albinus <michael.albinus@gmx.de>
21633
21634 * dbusbind.c (top): Include <stdio.h>.
21635 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21636 dbus_message_new_method_call and dbus_message_new_signal.
21637 (Fdbus_register_signal): Rename unique_name to uname.
21638 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21639 non-existing unique name. Fix typos in matching rule. Return an
21640 object which is useful in Fdbus_unregister_signal.
21641 (Fdbus_unregister_signal): Reimplementation, in order to remove
21642 only the corresponding entry.
21643 (Vdbus_registered_functions_table): Change the order of entries.
21644 Apply these changes in xd_read_message and Fdbus_register_signal.
21645
216462007-12-16 Andreas Schwab <schwab@suse.de>
21647
21648 * fileio.c (Finsert_file_contents): Fix overflow check to not
21649 depend on undefined integer overflow.
21650
216512007-12-14 Jason Rumney <jasonr@gnu.org>
21652
21653 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21654 for characters above 127.
21655
216562007-12-13 Jason Rumney <jasonr@gnu.org>
21657
21658 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21659 before dereferencing array.
21660 (lookup_vk_code): Remove zero comparison.
21661
216622007-12-14 Michael Albinus <michael.albinus@gmx.de>
21663
21664 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21665 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21666 Use `unsigned int' instead of `uint'.
21667 (xd_read_message, Fdbus_register_signal): Split expressions into
21668 multiple lines before operators "&&" and "||", according to the
21669 GNU Coding Standards.
21670
216712007-12-14 Eli Zaretskii <eliz@gnu.org>
21672
21673 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21674
216752007-12-12 Juri Linkov <juri@jurta.org>
21676
21677 * buffer.c (Frename_buffer): In interactive spec replace
21678 `read-buffer' with `read-string' that uses `buffer-name-history'
21679 as history, and the current buffer's name as default.
21680
216812007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21682
21683 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21684 manipulating the backtrace manually.
21685 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21686 (struct backtrace, backtrace_list): Remove.
21687 (command_loop_1): Remove dead var `no_direct'.
21688
21689 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21690 preserve non-built-in buffer-local variables.
21691 (Fkill_all_local_variables): Don't re-create&re-set permanent
21692 buffer-local variables.
21693
216942007-12-09 Juri Linkov <juri@jurta.org>
21695
21696 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21697 Lisp code that uses `read-buffer' with current buffer as default.
21698
216992007-12-08 Michael Albinus <michael.albinus@gmx.de>
21700
21701 * dbusbind.c (xd_read_message): Generate an event for every
21702 registered handler. There might be several handlers registered
21703 for the same signal.
21704 (Fdbus_register_signal): Don't overwrite a registration for the
21705 same signal. Add a new registration if handlers are different.
21706 (Vdbus_registered_functions_table): Rework doc string.
21707
217082007-12-07 Michael Albinus <michael.albinus@gmx.de>
21709
21710 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21711 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21712 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21713 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21714 Unify argument lists.
21715 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21716 arguments and hash table keys. Use unique name for service.
21717 (Fdbus_unregister_signal): Remove checks.
21718 (Vdbus_registered_functions_table): Fix doc string.
21719
217202007-12-05 Magnus Henoch <mange@freemail.hu>
21721
21722 * process.c (make_process): Initialize pty_flag to 0.
21723
217242007-12-05 Jason Rumney <jasonr@gnu.org>
21725
21726 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21727 specified XBMs.
21728
217292007-12-05 Richard Stallman <rms@gnu.org>
21730
21731 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21732
217332007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21734
21735 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21736 New variable.
21737 (mac_try_close_socket) [MAC_OSX]: New function.
21738 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21739 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21740
21741 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21742 Use mac_try_close_socket.
21743
217442007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21745
21746 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21747 reloc_base.
21748 (copy_dysymtab): Compute relocation base here.
21749 (rebase_reloc_address) [__ppc64__]: New function.
21750 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21751 changed.
21752
217532007-12-05 Jason Rumney <jasonr@gnu.org>
21754
21755 * w32proc.c (sys_spawnve): Quote args with wildcards.
21756
217572007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21758
21759 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21760 __objc_* sections.
21761 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21762
217632007-12-05 Michael Albinus <michael.albinus@gmx.de>
21764
21765 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21766 Move check for Vdbus_registered_functions_table to
21767 xd_read_queued_messages.
21768 (xd_read_queued_messages): Protect xd_read_message calls by
21769 internal_condition_case_1.
21770
217712007-12-04 Michael Albinus <michael.albinus@gmx.de>
21772
21773 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21774 Qdbus_system_bus and Qdbus_session_bus, respectively.
21775 (Vdbus_intern_symbols): Remove.
21776 (Vdbus_registered_functions_table): New hash table.
21777 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21778 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21779 Rewrite in order to manage registered functions by hash table
21780 Vdbus_registered_functions_table.
21781
217822007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21783
21784 * xterm.c: Update URL to Window Manager Specification in comment.
21785
217862007-12-02 Michael Albinus <michael.albinus@gmx.de>
21787
21788 * config.in (HAVE_DBUS): Add.
21789
21790 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21791 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21792 (obj): Add $(DBUS_OBJ).
21793 (LIBES): Add $(DBUS_LIBS).
21794 (dbusbind.o): New target.
21795
21796 * dbusbind.c: New file.
21797
21798 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21799
21800 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21801 (Qdbus_event): New Lisp symbol.
21802 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21803 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21804 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21805
21806 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21807
218082007-12-01 Richard Stallman <rms@gnu.org>
21809
21810 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21811
218122007-11-30 Jason Rumney <jasonr@gnu.org>
21813
21814 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21815 (w32con_reset_terminal_modes): Clear screen buffer.
21816 (w32_face_attributes): Don't use color indexes that are out of range.
21817 Only reverse the default colors.
21818
21819 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21820 WINDOWSNT.
21821
21822 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21823
218242007-11-29 Jason Rumney <jasonr@gnu.org>
21825
21826 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21827 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21828 if the terminal colors are initialized.
21829 (unspecified_fg, unspecified_bg): Remove unused declarations.
21830
218312007-11-29 Andreas Schwab <schwab@suse.de>
21832
21833 * keyboard.c (apply_modifiers): Fix typo.
21834
218352007-11-29 Richard Stallman <rms@gnu.org>
21836
21837 * keymap.c (Fcurrent_local_map): Doc fix.
21838
218392007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21840
21841 * s/gnu-kfreebsd.h: New file.
21842
218432007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21844
21845 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21846 Don't cast redundantly.
21847
21848 * keyboard.c (KEY_TO_CHAR): New macro.
21849 (parse_modifiers, apply_modifiers): Accept integer arguments.
21850 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21851 for chars and symbol keys.
21852 After doing such remapping, apply function-key-map again.
21853
218542007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21855
21856 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21857 compiled anymore.
21858
218592007-11-26 Andreas Schwab <schwab@suse.de>
21860
21861 * process.c (list_processes_1): Fix indentation level of the
21862 command column.
21863
218642007-11-23 Andreas Schwab <schwab@suse.de>
21865
21866 * editfns.c (Fformat): Handle %c specially since it requires the
21867 argument to be of type int.
21868
218692007-11-23 Markus Triska <markus.triska@gmx.at>
21870
21871 * emacs.c (main): Call init_editfns before init_process, since
21872 init_process sets Vprocess_connection_type depending on OS release.
21873
218742007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21875
21876 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21877 (find_symbol_value): Use do_symval_forwarding.
21878
21879 * data.c (set_internal): Set the value in the `cons-cell' (for
21880 Buffer_Local_values) not only for frame-local variables.
21881
218822007-11-22 Andreas Schwab <schwab@suse.de>
21883
21884 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21885 values to sprintf.
21886 * keymap.c (Fsingle_key_description): Likewise.
21887 * print.c (print_object): Likewise.
21888
218892007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21890
21891 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21892 file for image is nil.
21893
218942007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21895
21896 * term.c: Include stdarg.h.
21897 (fatal): Implement using varargs.
21898 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21899
219002007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21901
21902 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21903 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21904 Update call to buffer_slot_type_mismatch.
21905 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21906 (buffer_slot_type_mismatch): Update.
21907 * buffer.c (buffer_local_types): Remove.
21908 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21909 (defvar_per_buffer): Set the type in the buffer_objfwd.
21910
219112007-11-21 Jason Rumney <jasonr@gnu.org>
21912
21913 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21914 CreateFileMapping returns NULL on failure.
21915
219162007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21917
21918 * search.c (Fset_match_data): Remove the `evaporate' feature.
21919 (unwind_set_match_data): Don't use the `evaporate' feature.
21920
219212007-11-21 Jason Rumney <jasonr@gnu.org>
21922
21923 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21924
21925 * w32console.c (w32con_write_glyphs): Remove unused variables.
21926
219272007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21928
21929 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21930
21931 * s/darwin.h (MULTI_KBOARD): Remove.
21932
21933 * macfns.c (x_create_tip_frame, Fx_create_frame)
21934 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21935
219362007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21937
21938 * buffer.c (Fbuffer_local_value): Remove redundant test.
21939 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21940 than in `current-buffer' to match the comment.
21941 Do the swap using swap_in_global_binding.
21942
21943 * data.c (store_symval_forwarding, set_internal):
21944 * eval.c (specbind): Remove dead code.
21945
21946 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21947 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21948 Since we do not want to see internal Lisp_*fwd objects here.
21949
219502007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21951
21952 * sysdep.c (init_system_name): Use getaddrinfo if available.
21953
21954 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21955 (x_scroll_bar_note_movement): start, end, with, height in struct
21956 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21957
219582007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21959
21960 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21961
219622007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21963
21964 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21965 This undoes Richard's change of 14-Oct-2002.
21966
21967 * alloc.c (allocate_other_vector):
21968 * lisp.h (allocate_other_vector): Remove.
21969
21970 * window.c (struct save_window_data): Move non-lisp data to the end
21971 and make it `int' rather than Lisp_Object.
21972 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21973 Done wrap/unwrap integer values.
21974 (Fset_window_configuration, compare_window_configurations):
21975 Update use of fields to their new types.
21976
21977 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21978 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21979 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21980 (SET_SCROLL_BAR_X_WINDOW): Remove.
21981 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21982 Access the new x_window field directly.
21983 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21984 Don't wrap/unwrap integers into Lisp_Objects.
21985 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21986 (x_scroll_bar_report_motion):
21987 Don't wrap/unwrap integers into Lisp_Objects.
21988 (x_term_init): Use SDATA.
21989 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21990 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21991 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21992 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21993 * xfns.c (x_set_background_color):
21994 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21995 Access the new x_window field directly.
21996
21997 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21998 (allocate_pseudovector): Make non-static.
21999
22000 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22001 (allocate_pseudovector): Declare.
22002 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22003
220042007-11-15 Andreas Schwab <schwab@suse.de>
22005
22006 * editfns.c (Fformat): Correctly format EMACS_INT values.
22007 Also take precision into account when formatting an integer.
22008
22009 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22010
220112007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22012
22013 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22014 (syms_of_keyboard): Defsubr it.
22015
22016 * data.c (swap_in_global_binding): Fix longstanding bug where
22017 store_symval_forwarding was not called with the right second argument,
22018 thus causing objfwd-ing from being dropped.
22019
220202007-11-14 Juanma Barranquero <lekktu@gmail.com>
22021
22022 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22023 (Fx_display_pixel_height, Fx_display_planes)
22024 (Fx_display_color_cells, Fx_server_max_request_size)
22025 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22026 (Fx_display_visual_class, Fx_display_save_under):
22027 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22028 (Fx_display_pixel_height, Fx_display_planes)
22029 (Fx_display_color_cells, Fx_server_max_request_size)
22030 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22031 (Fx_display_mm_height, Fx_display_mm_width)
22032 (Fx_display_backing_store, Fx_display_visual_class)
22033 (Fw32_select_font, Fx_display_save_under):
22034 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22035 (Fx_display_pixel_height, Fx_display_planes)
22036 (Fx_display_color_cells, Fx_server_max_request_size)
22037 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22038 (Fx_display_save_under): Fix typos in docstrings.
22039
220402007-11-14 Juanma Barranquero <lekktu@gmail.com>
22041
22042 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22043 corresponding to deleted entries; they are an implementation detail.
22044 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22045 Remove variables.
22046 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22047 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22048 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22049 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22050 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22051 (Fw32_define_rgb_color, Fw32_load_color_file)
22052 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22053 Fix typos in docstrings.
22054 (Fx_server_version): Reflow docstring.
22055 (Fw32_shell_execute): Doc fixes.
22056
220572007-11-13 Juanma Barranquero <lekktu@gmail.com>
22058
22059 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22060 if w32_parse_hot_key returned nil.
22061
220622007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22063
22064 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22065
220662007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22067
aac0c6e3
MR
22068 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22069
22070 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22071
22072 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22073 Remove W32_SCROLL_BAR_CLICK_EVENT.
22074
22075 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22076 Add MULTIMEDIA_KEY_EVENT.
22077
22078 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22079 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22080 (make_lispy_event) [WINDOWSNT]: Use it to translate
22081 MULTIMEDIA_KEY_EVENT.
22082
22083 * w32term.h (WM_APPCOMMAND): Define if not already.
22084 (GET_APPCOMMAND_LPARAM): Likewise.
22085
22086 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22087 WM_APPCOMMAND.
22088
22089 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22090 (syms_of_w32fns): Export and initialize it.
22091 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22092
220932007-11-09 Chong Yidong <cyd@stupidchicken.com>
22094
22095 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22096 twice.
22097
22098 * xdisp.c (handle_face_prop): Fix last change.
22099
221002007-11-09 Richard Stallman <rms@gnu.org>
22101
22102 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22103 not just for after-strings and before-strings.
22104 Call face_for_overlay_string and pass the overlay to it.
22105 (handle_display_prop): Determine whether property came from an overlay.
22106 Pass OVERLAY arg to handle_single_display_spec.
22107 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22108 (load_overlay_strings): Fill in it->string_overlays.
22109 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22110
22111 * xfaces.c (face_for_overlay_string): Function renamed from
22112 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22113
22114 * dispextern.h (struct it): New elt string_overlays.
22115 New elt from_overlay, also in stack.
22116 Rearrange a few elements.
22117 (face_for_overlay_string): Decl renamed from
22118 face_at_buffer_position_no_overlays, and add argument.
22119
221202007-11-09 Richard Stallman <rms@gnu.org>
22121
22122 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22123 to get the base face for an overlay string.
22124
22125 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22126
22127 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22128
22129 * xdisp.c (handle_stop): Move some code out of loop.
22130
221312007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22132
22133 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22134 Fix conversion from Lisp object to ATSUFontID.
22135
221362007-11-09 Jason Rumney <jasonr@gnu.org>
22137
22138 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22139
221402007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22141
22142 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22143 Don't assume regions are aligned to page boundary.
22144 (print_load_command_name): Add LC_UUID if defined.
22145
221462007-11-09 Richard Stallman <rms@gnu.org>
22147
22148 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22149
221502007-11-07 Jason Rumney <jasonr@gnu.org>
22151
22152 * s/windows95.h: Remove.
22153
221542007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22155
22156 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22157 abort with a message on unhandled store_type values.
22158
221592007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22160
22161 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22162 Remove HAVE_X11R5 and HAVE_X11R4.
22163
221642007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22165
22166 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22167
221682007-11-01 Johan Bockgård <bojohan@gnu.org>
22169
22170 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22171 Don't set s->stippled_p here, since it has already been set by
22172 x_set_glyph_string_gc from x_draw_glyph_string.
22173
221742007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22175
22176 * sunfns.c: Remove file.
22177
22178 * m/sun386.h:
22179 * m/sun2.h:
22180 * m/sparc.h: Remove Sun windows code.
22181
221822007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22183
22184 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22185 (init_keyboard): Set current_kboard's window-system to nil.
22186 (tty_read_avail_input): Typo.
22187 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22188
221892007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22190
22191 * s/usg5-4.h:
22192 * s/usg5-3.h:
22193 * s/ptx.h:
22194 * m/is386.h:
22195 * m/ibmps2-aix.h:
22196 * Makefile.in: Remove all mentions of X10.
22197
22198 * dispnew.c (syms_of_display): Don't mention version 10.
22199
222002007-10-28 Juanma Barranquero <lekktu@gmail.com>
22201
22202 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22203 ($(BLD)/abbrev.$(O)): Remove.
22204
222052007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22206
22207 Rewrite abbrev.c in Elisp.
22208 * image.c (Qcount): Don't declare as extern.
22209 (syms_of_image): Initialize and staticpro `Qcount'.
22210 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22211 * emacs.c (main): Don't call syms_of_abbrev.
22212 * Makefile.in (obj): Remove abbrev.o.
22213 (abbrev.o): Remove.
22214 * abbrev.c: Remove.
22215
222162007-10-26 Martin Rudalics <rudalics@gmx.at>
22217
22218 * window.c (window_min_size_2): Don't count header-line.
22219
222202007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22221
22222 * frame.h (struct frame): Move all bit fields after the first bit
22223 field to take advantage of the available space. Group all the
22224 chars together to reduce wasted space due to padding.
22225
222262007-10-26 Juanma Barranquero <lekktu@gmail.com>
22227
22228 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22229
22230 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22231 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22232 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22233 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22234 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22235 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22236 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22237 (last_marked, mark_object_loop_halt): Make static.
22238
22239 * frame.c (syms_of_frame) <delete-frame-functions>:
22240 Fix typo in docstring.
22241
222422007-10-25 Juanma Barranquero <lekktu@gmail.com>
22243
22244 * w32.c (init_environment): Fix tiny memory leak.
22245 (w32_get_resource): Remove unused variable `ok'.
22246
222472007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22248
22249 Make `window-system' into a keyboard-local variable (rather than
22250 frame-local as done originally by multi-tty).
22251
22252 * keyboard.h (struct kboard): Add Vwindow_system.
22253 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22254 (mark_kboards): Mark Vwindow_system.
22255
22256 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22257 (init_display): Don't set the obsolete `window-system' frame-param.
22258
22259 * xterm.c (x_term_init):
22260 * w32term.c (w32_create_terminal):
22261 * term.c (init_tty): Set Vwindow_system.
22262 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22263 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22264
22265 * xfns.c (Fx_create_frame, x_create_tip_frame):
22266 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22267 * macfns.c (Fx_create_frame):
22268 Don't set the obsolete `window-system' frame-param.
22269
22270 * frame.h (Qwindow_system): Remove.
22271 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22272 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22273
222742007-10-24 Richard Stallman <rms@gnu.org>
22275
22276 * frame.c (x_figure_window_size): For fullscreen case,
22277 set USPosition | PPosition without clobbering rest of window_prompting.
22278
22279 * keyboard.c (Fcurrent_idle_time): Doc fix.
22280
22281 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22282
222832007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22284
22285 * process.c (unwind_request_sigio): Only define if __ultrix__.
22286
22287 * callproc.c (child_setup): Remove spurious *.
22288
22289 * lisp.h (Fget_text_property): Declare.
22290 (have_menus_p): Declare it here rather than in sys-dep header files.
22291 * macterm.h (have_menus_p):
22292 * msdos.h (have_menus_p):
22293 * xterm.h (have_menus_p): Remove.
22294
22295 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22296 (Fmake_variable_frame_local): Just check the variable's const-ness
22297 rather than checking nil or t.
22298
222992007-10-22 Jason Rumney <jasonr@gnu.org>
22300
22301 * w32fns.c: Include math.h.
22302 (w32_abort): Declaration moved to nt/config.nt.
22303
22304 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22305 (abort): Redefinition moved to nt/config.nt.
22306
22307 * m/windowsnt.h: Remove.
22308
223092007-10-22 Juanma Barranquero <lekktu@gmail.com>
22310
22311 * emacs.c (Fdump_emacs): Fix typo in message.
22312 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22313 <installation-directory>: Reflow docstring.
22314
223152007-10-22 Juri Linkov <juri@jurta.org>
22316
22317 * minibuf.c: Allow minibuffer default to be a list of default values.
22318 With empty input use the first element of this list as returned default.
22319 (string_to_object)
22320 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22321 (read_minibuf): If defalt is cons, set histstring to its car.
22322 (Fread_string): If default_value is cons, set val to its car.
22323 (Fread_buffer): If def is cons, use its car.
22324 (Fcompleting_read): If defalt is cons, set val to its car.
22325
223262007-10-21 Michael Albinus <michael.albinus@gmx.de>
22327
22328 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22329
223302007-10-20 Juanma Barranquero <lekktu@gmail.com>
22331
22332 * doc.c (Fdocumentation): Check for advice in all cases.
22333
223342007-10-19 Chong Yidong <cyd@stupidchicken.com>
22335
22336 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22337
223382007-10-19 Richard Stallman <rms@gnu.org>
22339
22340 * doc.c (Fdocumentation): Check for and handle an advised function.
22341
223422007-10-19 Juanma Barranquero <lekktu@gmail.com>
22343
22344 * process.c (Fset_process_filter): Doc fix.
22345
223462007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22347
22348 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22349 which caused key-translation-map to applied repeatedly (thus breaking
22350 double-mode).
22351
223522007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22353
22354 * xselect.c (x_own_selection, x_handle_selection_clear)
22355 (x_clear_frame_selections):
22356 * w32menu.c (list_of_panes, list_of_items):
22357 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22358 * textprop.c (validate_plist, interval_has_all_properties)
22359 (interval_has_some_properties, interval_has_some_properties_list)
22360 (add_properties, text_property_list):
22361 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22362 * minibuf.c (Fassoc_string):
22363 * macselect.c (x_own_selection, x_clear_frame_selections)
22364 (Fx_disown_selection_internal):
22365 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22366 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22367
223682007-10-17 Chong Yidong <cyd@stupidchicken.com>
22369
22370 * process.c: Link to libs for calling res_init() if available.
22371 (Fmake_network_process): Call res_init() before getaddrinfo or
22372 gethostbyname, if possible.
22373
223742007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22375
22376 * lread.c (read1): Set pvectype for char_tables.
22377
22378 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22379 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22380 Add type checks.
22381 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22382
22383 * alloc.c (free_misc): Use XMISCTYPE.
22384 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22385
223862007-10-17 Glenn Morris <rgm@gnu.org>
22387
22388 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22389 (syms_of_minibuf): Add Qcompletion_ignore_case.
22390 * dired.c (Qcompletion_ignore_case): Change to external.
22391 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22392 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22393 (Fread_file_name): Use it rather than intern'ing.
22394
22395 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22396 (Fread_coding_system): Ignore case of user input.
22397
223982007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22399
22400 * xdisp.c (handle_display_prop): Ignore display specs after
22401 replacing one when string text is being replaced.
22402 (handle_single_display_spec): Pretend as if characters with display
22403 property haven't been consumed only when buffer text is being replaced.
22404
224052007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22406
22407 * xfns.c (Fx_create_frame, Fx_display_list):
22408 * window.c (window_fixed_size_p, enlarge_window)
22409 (shrink_window_lowest_first):
22410 * macterm.c (init_font_name_table):
22411 * macfns.c (Fx_create_frame, Fx_display_list):
22412 * lread.c (close_load_descs):
22413 * keyboard.c (read_char_x_menu_prompt):
22414 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22415 * coding.c (code_convert_region_unwind): Test the type of an object
22416 rather than just !NILP before extracting data from it.
22417
22418 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22419
22420 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22421 (XMISCANY): New macro.
22422 (XMISCTYPE): Use it.
22423 (struct Lisp_Misc_Any): New type.
22424 (union Lisp_Misc): Use it.
22425 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22426 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22427 (find_symbol_value, set_internal, default_value, Fset_default)
22428 (Fmake_variable_buffer_local, Fmake_local_variable)
22429 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22430 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22431 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22432 * alloc.c (allocate_buffer): Set the size and tag.
22433 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22434 Use XMISCANY.
22435 (die): Follow the GNU convention for error messages.
22436 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22437 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22438 tag any more.
22439 (set_buffer_internal_1):
22440 * frame.c (store_frame_param):
22441 * eval.c (specbind):
22442 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22443
22444 * doc.c (Fsnarf_documentation): Simplify.
22445
224462007-10-14 Juanma Barranquero <lekktu@gmail.com>
22447
22448 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22449 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22450
224512007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22452
22453 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22454
224552007-10-14 Juanma Barranquero <lekktu@gmail.com>
22456
22457 * eval.c (do_autoload): Don't save autoloads.
22458
22459 * data.c (Ffset): Save autoload of the function being set.
22460
224612007-10-07 John Paul Wallington <jpw@pobox.com>
22462
22463 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22464 parameter before setting up faces.
22465
224662007-10-13 Eli Zaretskii <eliz@gnu.org>
22467
22468 * ccl.c (Fregister_code_conversion_map):
22469 * keyboard.c (append_tool_bar_item): Reformat last change.
22470
22471 * lisp.h (eabs): Rename from `abs'. All callers changed.
22472
224732007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22474
22475 * buffer.c (add_overlay_mod_hooklist):
22476 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22477 * fontset.c (make_fontset):
22478 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22479 (append_tool_bar_item):
22480 * macmenu.c (grow_menu_items):
22481 * w32menu.c (grow_menu_items):
22482 * xmenu.c (grow_menu_items): Use larger_vector.
22483
224842007-10-13 Eli Zaretskii <eliz@gnu.org>
22485
22486 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22487 selected frame'' on MSDOS).
22488
224892007-10-12 Martin Rudalics <rudalics@gmx.at>
22490
22491 * frame.c (Qexplicit_name): New variable.
22492 (x_report_frame_params): Report it in parameter alist.
22493 (syms_of_frame): Intern and staticpro it.
22494
224952007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22496
22497 * macfns.c (x_create_tip_frame): Set terminal for frame.
22498
224992007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22500
22501 * frame.c (Qenvironment): Remove.
22502 (syms_of_frame) <Qenvironment>: Don't initialize.
22503 (Fdelete_frame): Don't treat the `environment' param specially.
22504 * frame.h (Qenvironment): Don't declare.
22505 * callproc.c (set_initial_environment): Don't set unused frame param.
22506
22507 * frame.c (Fframe_with_environment): Remove.
22508 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22509
22510 * lisp.h (Fframe_with_environment): Don't declare.
22511
225122007-10-10 Juanma Barranquero <lekktu@gmail.com>
22513
22514 * indent.c (indent_tabs_mode, last_known_column)
22515 (last_known_column_modified): Make static.
22516 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22517
225182007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22519
22520 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22521
225222007-10-09 Jason Rumney <jasonr@gnu.org>
22523
22524 * w32term.c (x_set_window_size): Disable code that attempts to tell
22525 Lisp code about a size change before it actually happens.
22526
225272007-10-09 Richard Stallman <rms@gnu.org>
22528
22529 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22530 return HANDLED_RETURN.
22531
225322007-10-08 Martin Rudalics <rudalics@gmx.at>
22533
22534 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22535 when there's an unread command event.
22536
22537 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22538 window autoselection act appropriately when leaving selected frame.
22539 (syms_of_frame): Initialize focus_follows_mouse.
22540 * frame.h (focus_follows_mouse): Extern it.
22541 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22542 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22543 * msdos.c (dos_rawgetc): Likewise.
22544 * w32term.c (w32_read_socket): Likewise.
22545 * xterm.c (handle_one_xevent): Likewise.
22546 * xdisp.c (syms_of_xdisp): In doc-string of
22547 mouse-autoselect-window mention focus-follows-mouse.
22548
225492007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22550
22551 * macterm.c (mac_load_query_font): Fix missing return value.
22552 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22553 Add BLOCK_INPUT.
22554
225552007-10-08 Richard Stallman <rms@gnu.org>
22556
22557 * xdisp.c (get_window_cursor_type): Implement documented behavior
22558 for cursor-in-non-selected-windows = t.
22559
225602007-10-08 Jason Rumney <jasonr@gnu.org>
22561
22562 * w32.c (w32_get_resource): Always close registry keys.
22563
225642007-10-08 Jason Rumney <jasonr@gnu.org>
22565
22566 * makefile.w32-in (LIBS): Add COMCTL32.
22567
22568 * w32fns.c (globals_of_w32fns): Init common controls.
22569
225702007-10-08 Richard Stallman <rms@gnu.org>
22571
22572 * image.c (our_memory_buffer): Rename from omfib_buffer.
22573
225742007-10-08 Richard Stallman <rms@gnu.org>
22575
22576 * buffer.c (Foverlays_at): Doc fix.
22577
225782007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22579
22580 * fns.c (Fplist_put): Preserve uneven tail data.
22581
225822007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22583
22584 * termhooks.h (enum event_kind): Remove trailing comma.
22585
22586 * frame.h (enum): Remove trailing comma.
22587
225882007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22589
22590 * w32proc.c (delete_child): Don't terminate threads of zombies.
22591
225922007-10-08 Martin Rudalics <rudalics@gmx.at>
22593
22594 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22595
22596 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22597 last-repeatable-command.
22598 (init_kboard): Initialize Vlast_repeatable_command.
22599 (command_loop_1): Set it to real_this_command unless that was
22600 bound to an input event.
22601 (mark_kboards): Mark it.
22602
226032007-10-08 Richard Stallman <rms@gnu.org>
22604
22605 * eval.c (condition-case): Doc fix.
22606
226072007-10-08 Masatake YAMATO <jet@gyve.org>
22608
22609 * xfaces.c (tty_supports_face_attributes_p): Fix code
22610 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22611 was copied and not edited.
22612
226132007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22614
22615 Add new `input-decode-map' keymap and use it for terminal
22616 escape sequences.
22617 * keyboard.h (struct kboard): Add Vinput_decode_map.
22618 Remove Vlocal_key_translation_map.
22619 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22620 (init_kboard): Init input-decode-map.
22621 Replace local-key-translation-map back with key-translation-map.
22622 (syms_of_keyboard): Declare input-decode-map.
22623 Remove local-key-translation-map. Update docstrings.
22624 (mark_kboards): Mark Vinput_decode_map.
22625 Don't mark Vlocal_key_translation_map.
22626 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22627 Replace local-key-translation-map back with key-translation-map.
22628 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22629 Bind in input-decode-map rather than function-key-map.
22630
22631 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22632 This was made redundant by the previous introduction of XSETPVECTYPE.
22633
226342007-10-09 Richard Stallman <rms@gnu.org>
22635
22636 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22637
226382007-09-29 Richard Stallman <rms@gnu.org>
22639
22640 * eval.c (internal_condition_case_2, internal_condition_case_1)
22641 (internal_condition_case): Reenable abort if x_catching_errors ()
22642 to see if that really happens and why.
22643
226442007-10-06 Andreas Schwab <schwab@suse.de>
22645
22646 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22647
226482007-10-04 Juanma Barranquero <lekktu@gmail.com>
22649
22650 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22651
226522007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22653
22654 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22655
226562007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22657
22658 * window.h (struct window):
22659 * window.c (struct save_window_data, struct saved_window):
22660 * termhooks.h (struct terminal):
22661 * process.h (struct Lisp_Process):
22662 * frame.h (struct frame):
22663 * buffer.h (struct buffer):
22664 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22665 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22666 The size field of (pseudo)vectors is now unsigned.
22667 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22668
22669 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22670 Turn `count' into an integer.
22671
22672 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22673 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22674 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22675 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22676 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22677
22678 * alloc.c (allocate_pseudovector): New fun.
22679 (ALLOCATE_PSEUDOVECTOR): New macro.
22680 (allocate_window, allocate_terminal, allocate_frame)
22681 (allocate_process): Use it.
22682 (mark_vectorlike): New function.
22683 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22684 (mark_terminals): Use it.
22685 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22686 (Fmake_byte_code): Use XSETPVECTYPE.
22687
22688 * frame.c (Fframe_parameters): Minor simplification.
22689
22690 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22691
22692 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22693
22694 * buffer.c (Fget_buffer_create, init_buffer_once):
22695 * lread.c (defsubr):
22696 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22697
22698 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22699 defined differently in the m/*.h files.
22700 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22701 (XSETPVECTYPE): New macro.
22702 (XSETPSEUDOVECTOR): Use it.
22703
22704 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22705 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22706
22707 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22708 * lread.c (defvar_per_buffer):
22709 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22710
22711 * window.c (candidate_window_p): Only consider as visible frames that
22712 are on the same terminal.
22713
22714 * m/ibms390x.h (MARKBIT): Remove unused macro.
22715
227162007-10-01 Juanma Barranquero <lekktu@gmail.com>
22717
22718 * lread.c (Fload): Fix typo in docstring.
22719
227202007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22721
22722 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22723 of a non-zero value can't yield zero.
22724
227252007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22726
22727 * term.c (term_clear_mouse_face, term_mouse_highlight)
22728 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22729
22730 * print.c (safe_debug_print): Use XHASH.
22731
22732 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22733 Lisp elements such as tags.
22734 (XHASH): New macro.
22735 (EQ): Use it.
22736 (SREF, SSET, STRING_COPYIN): Use SDATA.
22737 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22738
22739 * alloc.c (mark_terminal): Remove left-over declaration.
22740 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22741 (allocate_vectorlike): Remove type argument. Adjust callers.
22742 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22743 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22744
22745 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22746 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22747 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22748 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22749 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22750 Use them.
22751
22752 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22753 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22754 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22755
227562007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22757
22758 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22759 loaded by default.
22760
227612007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22762
22763 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22764 on this tty.
22765 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22766
22767 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22768 Update all users.
22769 (handle_one_term_event): Use Gpm_DrawPointer.
22770 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22771 Signal errors instead of returning nil. Always return nil.
22772 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22773 Make it a noop if gpm-mouse was not activated.
22774 (syms_of_term): Update names.
22775
227762007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22777
22778 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22779 (init_sys_modes): Check that gpm_tty is the current tty.
22780
22781 * alloc.c (allocate_terminal): Set the vector size to only count the
22782 lisp fields. Initialize those to nil.
22783 (mark_object): Don't treat terminals specially.
22784 (mark_terminal): Remove.
22785 (mark_terminals): Use mark_object instead.
22786
22787 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22788 the GC to the beginning.
22789
22790 * indent.h:
22791 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22792
22793 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22794
227952007-09-25 Jason Rumney <jasonr@gnu.org>
22796
22797 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22798
22799 * w32console.c (create_w32cons_output): Remove.
22800
22801 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22802
22803 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22804 (reset_sys_modes): Use reset_terminal_modes_hook.
22805
228062007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22807
22808 * eval.c (do_autoload): Don't output any message.
22809
228102007-09-24 Juri Linkov <juri@jurta.org>
22811
22812 * emacs.c (standard_args): Change priority of "--no-splash"
22813 from 40 to 3. Add "--no-desktop" with the same priority.
22814
228152007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22816
22817 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22818 and optimize the case where they are all 1.
22819
228202007-09-23 Johannes Weiner <hannes@saeurebad.de>
22821
22822 * lisp.h (abs): Define if not defined.
22823 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22824 Don't define `abs', since it's defined in lisp.h.
22825
228262007-09-22 Eli Zaretskii <eliz@gnu.org>
22827
22828 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22829 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22830 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22831 (init_tty): Use DEV_TTY instead of "/dev/tty".
22832 [WINDOWSNT]: No need to protect from NAME arg being null.
22833
228342007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22835
22836 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22837 up the tty state.
22838
228392007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22840
22841 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22842 (gpm_tty): Change its type.
22843 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22844 (gpm_tty): Change its type and initialize it.
22845 (Fterm_open_connection): Check the frame is indeed a tty.
22846 Use the new gpm_tty.
22847 (Fterm_close_connection): Use the new gpm_tty.
22848 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22849 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22850
228512007-09-21 Juanma Barranquero <lekktu@gmail.com>
22852
22853 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22854 underline_color, to draw strike-through.
22855
228562007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22857
22858 * lisp.h (allocate_terminal): Declare.
22859
22860 * window.c (candidate_window_p): Consider frames that are being placed
22861 by the user as somewhere between visible and iconified.
22862 (window_loop): Prefer windows on the current frame.
22863 (Fselect_window): Move the use of select-frame to the beginning so we
22864 can just delegate all the work (it'll call us back anyway).
22865
22866 * frame.c (Qdisplay_environment_variable):
22867 * frame.h (Qdisplay_environment_variable): Delete.
22868
22869 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22870 of the first arg, since that value may be a union.
22871
22872 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22873 parameter rather than Qdisplay_environment_variable. If all else
22874 fails, look for DISPLAY in initial-environment.
22875
228762007-09-21 Glenn Morris <rgm@gnu.org>
22877
22878 * Makefile.in (emacstool): Remove target.
22879 (lisp, shortlisp): Remove termdev.elc.
22880
228812007-09-21 Markus Triska <markus.triska@gmx.at>
22882
22883 * xterm.c (x_delete_display): Compile session management conditionally.
22884
228852007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22886
22887 * callproc.c (getenv_internal_1): New function.
22888 (getenv_internal): Use it.
22889 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22890
22891 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22892 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22893 (Fset_terminal_parameter): Work with dead terminals as well.
22894 (Fmodify_terminal_parameters): Remove.
22895
22896 * terminal.c (get_terminal): Handle terminals.
22897 Make sure the terminal returned is live.
22898 (create_terminal): Use allocate_terminal.
22899 (mark_terminals): Move to alloc.c.
22900 (delete_terminal): Use terminal->name as liveness status.
22901 NULL out fields after freeing their contents.
22902 Don't deallocate the object.
22903 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22904 rather than an int.
22905 (Fterminal_live_p): Accept non-integer arguments.
22906 (Fterminal_list): Return terminal objects rather than an ints.
22907
22908 * alloc.c (enum mem_type): New member for `terminal' objects.
22909 (allocate_terminal): New function.
22910 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22911 Handle terminals.
22912 (mark_terminal): New fun.
22913 (mark_terminals): Move from terminal.c.
22914
22915 * term.c (get_tty_terminal): Don't treat output_initial specially.
22916 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22917 (delete_tty): Use terminal->name as liveness status.
22918
22919 * termhooks.h (struct terminal): Make it into a pseudovector.
22920 Remove `deleted' replaced by checking `name's nullness.
22921
22922 * print.c (print_object): Handle terminals.
22923
22924 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22925 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22926
22927 * frame.c (make_terminal_frame):
22928 * keyboard.c (tty_read_avail_input):
22929 * w32term.c (x_delete_terminal):
22930 * xfns.c (Fx_create_frame, x_create_tip_frame):
22931 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22932
229332007-09-20 Glenn Morris <rgm@gnu.org>
22934
22935 * process.c (Fmake_network_process): Doc fix.
22936
229372007-09-19 Jason Rumney <jasonr@gnu.org>
22938
22939 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22940
229412007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22942
22943 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22944 Fix a C warning regarding variable constness.
22945
22946 * xterm.c (handle_one_xevent): Fix a C warning.
22947
229482007-09-18 Jason Rumney <jasonr@gnu.org>
22949
22950 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22951
229522007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22953
22954 * gtkutil.c (gdpy_def): New variable.
22955 (xg_initialize): Initialize gdpy_def.
22956 (xg_display_close): If no other display exists, set gdpy_def to a
22957 new connection.
22958
229592007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22960
22961 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22962 when we have no file name for the icon.
22963 (xg_tool_bar_expose_callback): Remove.
22964 (xg_create_tool_bar): Don't connect expose signal to
22965 xg_tool_bar_expose_callback.
22966 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22967
229682007-09-16 Andreas Schwab <schwab@suse.de>
22969
22970 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22971 values instead of zapping them.
22972
229732007-09-14 Glenn Morris <rgm@gnu.org>
22974
22975 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22976 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22977 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22978 scope and rename to omfib_buffer for clarity.
22979 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22980
229812007-09-14 Kenichi Handa <handa@m17n.org>
22982
22983 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22984
229852007-09-13 Jason Rumney <jasonr@gnu.org>
22986
22987 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22988
22989 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22990
22991 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22992 (mac_term_init): Call here instead, passing rif.
22993
229942007-09-13 Glenn Morris <rgm@gnu.org>
22995
22996 * s/hpux.h: No longer define `static' as nothing.
22997
229982007-09-13 Johan Bockgård <bojohan@gnu.org>
22999
23000 * callint.c (Fcall_interactively): Remove unused var `fun'.
23001
230022007-09-12 Romain Francoise <romain@orebokech.com>
23003
23004 * window.c (prefer_window_split_horizontally, display_buffer):
23005 Revert 2007-09-08 change.
23006
230072007-09-12 Glenn Morris <rgm@gnu.org>
23008
23009 * alloca.c: Remove file.
23010 * Makefile.in (alloca): Do not undef.
23011 (allocaobj, alloca.o): Remove.
23012 (otherobj): Remove allocaobj.
23013 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23014 * regex.c (C_ALLOCA): Remove all references and code that was only
23015 used when this was defined.
23016 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23017 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23018 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23019
23020 * Makefile.in (SOURCES, unlock, relock): Delete.
23021
23022 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23023 (menu_grab_callback): All uses changed.
23024
23025 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23026 (x_reply_selection_request): All uses changed.
23027
230282007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23029
23030 * lread.c (load_warn_old_style_backquotes): Change message to look
23031 better when it appears in the middle of byte-compiler messages.
23032
230332007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23034
23035 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23036
23037 * xterm.c (x_create_terminal): Add comment.
23038
23039 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23040
230412007-09-10 Richard Stallman <rms@gnu.org>
23042
23043 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23044
230452007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23046
23047 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23048 (DEFUN): Document `intspec', use it instead of `prompt'.
23049
23050 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23051
23052 * data.c (Finteractive_form): If the interactive specification starts
23053 with a `(', use it as a Lisp form.
23054
23055 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23056 name and file modes.
23057
23058 * callint.c (Fcall_interactively): Comment fixes.
23059
230602007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23061
23062 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23063 and compiled functions.
23064
230652007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23066
23067 * window.c (prefer_window_split_horizontally): New variable.
23068 (display_buffer): Consider splitting window horizontally depending
23069 on prefer_window_split_horizontally.
23070
230712007-09-08 Eli Zaretskii <eliz@gnu.org>
23072
23073 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23074
230752007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23076
23077 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23078
23079 * frame.c (x_set_frame_parameters): Check number is positive before
23080 using XFASTINT.
23081
23082 * window.c (freeze_window_start): Don't presume selected_window holds
23083 a window object.
23084 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23085
230862007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23087
23088 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23089
230902007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23091
23092 * window.c (Vsplit_window_preferred_function): New var.
23093 (Fdisplay_buffer): Use it.
23094 (syms_of_window): Export, and initialize it.
23095
230962007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23097
23098 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23099
231002007-09-06 Glenn Morris <rgm@gnu.org>
23101
23102 * gtkutil.c (menu_grab_callback) <cnt>:
23103 * xselect.c (x_reply_selection_request) <cnt>: Move static
23104 variable to file scope.
23105
231062007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23107
23108 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23109 consistent values of selected_frame and selected_window.
23110
231112007-09-04 Jason Rumney <jasonr@gnu.org>
23112
23113 * w32console.c (initialize_w32_display): Zero unused hooks.
23114
231152007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23116
23117 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23118 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23119
231202007-09-04 Jason Rumney <jasonr@gnu.org>
23121
23122 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23123 in w32console.c. Set up input. Remove XXX comments that have been
23124 confirmed as correct.
23125
23126 * s/ms-w32.h (MULTI_KBOARD): Define.
23127
23128 * w32console.c (one_and_only_w32cons): Remove.
23129 (initialize_w32_display): Take terminal argument.
23130
23131 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23132 initialize_w32_display.
23133 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23134
23135 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23136
23137 * keyboard.c (discard_mouse_events): Discard it.
23138 (make_lispy_event): Translate it to a lisp event.
23139 (lispy_wheel_names): Add wheel-left and right events.
23140 (syms_of_keyboard): Enlarge wheel_syms.
23141
23142 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23143 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23144
23145 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23146
23147 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23148 from WM_MOUSEHWHEEL.
23149 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23150
23151 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23152 terminal.
23153
23154 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23155 keyboard for the terminal.
23156
231572007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23158
23159 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23160 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23161 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23162 and resume-tty-function to resume-tty-hook.
23163 (Fsuspend_tty, Fresume_tty): Use new names.
23164
231652007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23166
23167 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23168 if it starts with "n:".
23169
231702007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23171
23172 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23173
231742007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23175
23176 * frame.h:
23177 * frame.c (Qterm_environment_variable): Remove.
23178 (syms_of_frame): Don't init and staticpro it.
23179
23180 * callproc.c (getenv_internal): Remove special case for $TERM.
23181
23182 * callproc.c (Vinitial_environment): New variable.
23183 (set_initial_environment): Initialize it.
23184 (syms_of_callproc): Declare it.
23185 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23186 TERM under which a process runs is never related to the TERM in which
23187 Emacs is running.
23188
231892007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23190
23191 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23192 * s/darwin.h: ... do it here.
23193
231942007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23195
23196 * lisp.h (set_initial_environment): Rename from set_global_environment.
23197
23198 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23199 removed by mistake on the multi-tty branch.
23200
23201 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23202 (Fmodify_frame_parameters): Return a value.
23203
23204 * image.c (png_load): Comment-out var only used in commented-out code.
23205
23206 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23207 before passing it to mark_object.
23208
23209 * xfaces.c (internal_resolve_face_name): Return a value.
23210 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23211
23212 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23213 (x_icon): Comment-out var only used in commented-out code.
23214
232152007-08-29 Romain Francoise <romain@orebokech.com>
23216
23217 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23218 QUIT hasn't been provided.
23219
232202007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23221
23222 * callproc.c (child_setup, getenv_internal): Use the
23223 display-environment-variable and term-environment-variable frame params.
23224 (set_initial_environment): Initialise Vprocess_environment.
23225
23226 * config.in: Disable multi-keyboard support on a mac.
23227
23228 * frame.c (Qterm_environment_variable)
23229 (Qdisplay_environment_variable): New variables.
23230 (syms_of_frame): Intern and staticpro them.
23231 (Fmake_terminal_frame): Disable output method test.
23232
23233 * frame.h: Declare them here.
23234
23235 * macfns.c (x_set_mouse_color): Get rif from the frame.
23236 (x_set_tool_bar_lines): Don't use updating_frame.
23237 (mac_window): Add 2 new parameters for consistency with other systems.
23238 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23239 frame parameters following what is done in X11 and w32. Don't use
23240 FRAME_MAC_DISPLAY_INFO.
23241 (Fx_open_connection, start_hourglass): Remove window-system check.
23242 (x_create_tip_frame): Get the keyboard from the terminal.
23243
23244 * macmenu.c: Reorder includes.
23245 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23246
23247 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23248 terminal parameter.
23249 (x_clear_frame): Add a frame parameter.
23250 (note_mouse_movement): Get rif from the frame.
23251 (mac_term_init): Initialize the terminal.
23252 (mac_initialize): Make static and move terminal initialization ...
23253 (mac_create_terminal): ... to this new function.
23254
23255 * macterm.h (struct mac_display_info): Add terminal.
23256 (mac_initialize): Delete declaration.
23257
23258 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23259
23260 * sysdep.c: Comment out text after #endif.
23261
23262 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23263 is defined. Better initialize ttys in windows. Use terminal
23264 specific mouse_position_hook.
23265
23266 * termhooks.h (union display_info): Add mac_display_info.
23267
23268 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23269 Set the default minibuffer frame, window_system and the rest of the
23270 frame parameters following what is done in X11.
23271
23272 * w32term.c (w32_initialize): Make static.
23273
23274 * xselect.c (x_handle_selection_clear): Only access
23275 terminal->kboard when MULTI_KBOARD is defined.
23276
23277 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23278 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23279
232802007-08-29 Jason Rumney <jasonr@gnu.org>
23281
23282 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23283 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23284
23285 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23286 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23287
23288 * keyboard.c (restore_kboard_configuration): Only define when
23289 MULTI_KBOARD defined.
23290
23291 * makefile.w32-in: Update dependancies from Makefile.in.
23292 (OBJ1): Add terminal.$(O)
23293
23294 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23295 Don't define function body.
23296 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23297
23298 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23299
23300 * w32.c (request_sigio, unrequest_sigio): Remove.
23301
23302 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23303 (w32con_clear_frame, w32con_clear_end_of_line)
23304 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23305 (w32con_delete_glyphs, w32con_set_terminal_window)
23306 (scroll_line, w32_sys_ring_bell): Add frame arg.
23307 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23308 Add terminal arg.
23309 (PICK_FRAME): Remove.
23310 (w32con_write_glyphs): Use frame specific terminal coding.
23311 (one_and_only_w32cons): New global variable.
23312 (initialize_w32_display): Use it for storing hooks.
23313 (create_w32cons_output): New function.
23314
23315 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23316 arg a frame.
23317
23318 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23319 Set window_system.
23320 (x_set_tool_bar_lines): Don't use updating_frame.
23321 (Fx_create_frame): Set terminal and ref count.
23322 (Fx_open_connection): Remove window-system check.
23323
23324 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23325
23326 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23327 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23328 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23329 Add frame arg.
23330 (x_delete_terminal, w32_create_terminal): New functions.
23331 (w32_term_init): Create a terminal.
23332 (w32_initialize): Move terminal specific initialization to
23333 w32_create_terminal.
23334
23335 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23336 (w32_clear_rect, w32_clear_area): Use background from frame.
23337 (w32_display_info): Add terminal.
23338 (w32_sys_ring_bell, x_delete_display): Declare here.
23339
23340 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23341
23342 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23343
233442007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23345
23346 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23347 Fix get_named_tty calls for the controlling tty.
23348
233492007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23350
194d44e7 23351 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23352
233532007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23354
23355 * term.c (tty_insert_glyphs): Add missing first parameter.
23356
233572007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23358
23359 * buffer.c (Fbuffer_list, Fbury_buffer):
23360 Take frame->buried_buffer_list into account.
23361
23362 * cm.c (current_tty): New variable, for cmputc().
23363 (cmputc): Use it.
23364 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23365 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23366 (cmgoto): Add tty parameter. Pass it on to calccost().
23367 Use emacs_tputs() instead of tputs().
23368
23369 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23370 tputs().
23371 (current_tty): New variable, for cmputc().
23372 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23373
23374 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23375 (internal_condition_case, internal_condition_case_1)
23376 (internal_condition_case_2): Don't abort when x_catching_errors.
23377
23378 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23379 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23380 prevent crashes caused by bogus longjmps in read_char.
23381
23382 * keymap.h (Fset_keymap_parent): Add EXFUN.
23383
23384 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23385 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23386 Remove redundant definition.
23387
23388 * macfns.c (x_set_mouse_color, x_make_gc):
23389 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23390
23391 * w32term.c (x_free_frame_resources):
23392 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23393 (w32_initialize): Use the accessor macros for terminal characteristics.
23394
23395 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23396 Use the accessor macros for terminal characteristics.
23397 * msdos.c (internal_terminal_init): Use the accessor macros for
23398 terminal characteristics.
23399 (ScreenVisualBell, internal_terminal_init):
23400 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23401
23402 * termopts.h (no_redraw_on_reenter): Declare.
23403
23404 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23405 (mark_terminals, mark_ttys): Declare.
23406 (Fgarbage_collect): Call them.
23407 (mark_object): Mark buried_buffer_list.
23408
23409 * prefix-args.c: Include stdlib.h for exit.
23410
23411 * syssignal.h: Add comment.
23412
23413 * indent.c: Include stdio.h.
23414
23415 * window.h (Vinitial_window_system): Declare.
23416 (Vwindow_system): Delete declaration.
23417
23418 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23419
23420 * image.c (lookup_image): Don't initialize `c' until the xasserts
23421 have been run.
23422
23423 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23424 FRAME_FOREGROUND_PIXEL.
23425
23426 * print.c (print_preprocess): Don't lose print_depth levels while
23427 iterating.
23428
23429 * widget.c (update_from_various_frame_slots):
23430 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23431
23432 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23433 frames.
23434 (window_internal_height): Remove bogus make_number call.
23435 (init_window_once): Call make_terminal_frame with two zero parameters.
23436
23437 * fileio.c (Fread_file_name): Update comment.
23438
23439 * callint.c (Fcall_interactively):
23440 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23441 Make sure it is correctly unwound.
23442
23443 * xsmfns.c (x_session_close): New function.
23444
23445 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23446 Delete declarations.
23447
23448 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23449 (x_output): Remove background_pixel and foreground_pixel fields.
23450 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23451 (x_delete_device, x_session_close): Declare.
23452
23453 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23454 (read_filtered_event): Call `read_char' with a local
23455 `wrong_kboard_jmpbuf'.
23456
23457 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23458 Don't call single_kboard_state. Use FRAME_RIF.
23459
23460 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23461 systems.
23462
23463 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23464 (Fframe_with_environment, Fset_input_meta_mode)
23465 (Fset_quit_char): EXFUN.
23466 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23467 (init_sys_modes, reset_sys_modes): Update prototypes.
23468 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23469
23470 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23471 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23472 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23473 Delete declarations.
23474 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23475 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23476 New declarations.
23477
23478 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23479 already does that during init_display(). Call syms_of_keymap
23480 before syms_of_keyboard. Call `syms_of_terminal'.
23481 Call set_initial_environment, not set_process_environment.
23482 (shut_down_emacs): Call reset_all_sys_modes() instead of
23483 reset_sys_modes().
23484
23485 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23486 (internal_resolve_face_name, resolve_face_name_error): New functions.
23487 (resolve_face_name): Protect against loops and errors thrown by Fget.
23488 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23489 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23490
23491 * scroll.c: Replace CURTTY() with local variables throughout the
23492 file (where applicable).
23493 (calculate_scrolling, calculate_direct_scrolling)
23494 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23495 characteristics.
23496
23497 * keymap.c (Vfunction_key_map): Remove.
23498 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23499 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23500 (Vkey_translation_map): Remove.
23501 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23502 (Fdescribe_buffer_bindings)
23503 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23504 Update for terminal-local key-translation-map.
23505
23506 * Makefile.in (callproc.o): Update dependencies.
23507 (lisp, shortlisp): Add termdev.elc.
23508 (obj): Add terminal.o.
23509 (terminal.o): Add dependencies.
23510 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23511 (data.o, fns.o): Add termhooks.h dependency.
23512 (SOME_MACHINE_LISP): Add dnd.elc.
23513 (minibuf.o): Fix typo.
23514 Update dependencies.
23515
23516 * data.c (do_symval_forwarding, store_symval_forwarding)
23517 (find_symbol_value): Use the selected frame's keyboard, not
23518 current_kboard.
23519
23520 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23521 Vwindow_system.
23522
23523 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23524 Fmenu_bar_open.
23525 (syms_of_xmenu): Update defsubr.
23526 (mouse_position_for_popup, Fx_popup_menu)
23527 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23528 (set_frame_menubar, free_frame_menubar)
b97439ce 23529 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23530 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23531 an X frame.
23532
23533 * xselect.c (x_own_selection): Abort if not an X frame.
23534 (some_frame_on_display): Check if it is an X frame.
23535 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23536
23537 * coding.c: Include frame.h and termhooks.h.
23538 (terminal_coding, keyboard_coding): Delete.
23539 (Fset_terminal_coding_system_internal)
23540 (Fset_keyboard_coding_system_internal)
23541 (Fkeyboard_coding_system)
23542 (Fterminal_coding_system): Add a terminal parameter.
23543 Get terminal_coding from the terminal.
23544 (init_coding_once): Don't call setup_coding_system here.
23545
23546 * dispextern.h (set_scroll_region, turn_off_insert)
23547 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23548 (tty_clear_end_of_line, tty_setup_colors)
23549 (delete_tty, updating_frame)
23550 (produce_special_glyphs, produce_glyphs, write_glyphs)
23551 (insert_glyphs): Remove.
23552 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23553 (tty_turn_off_highlight, get_tty_size): Add declaration.
23554 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23555
23556 * frame.h (enum output_method): Add output_initial.
23557 (struct x_output): Delete.
23558 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23559 Access foreground_pixel and background_pixel directly from the frame.
23560 (tty_display): Delete.
23561 (struct frame): Add buried_buffer_list, foreground_pixel,
23562 background_pixel and terminal. Delete kboard.
23563 (union output_data): Add tty.
23564 (FRAME_KBOARD): Get the kboard from the terminal.
23565 (FRAME_INITIAL_P): New macro.
23566 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23567 (Qterm_environment_variable, Qdisplay_environment_variable)
23568 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23569 New declarations.
23570
23571 * termchar.h (tty_output, tty_display_info): New structures.
23572 (tty_list): Declare.
23573 (FRAME_TTY, CURTTY): New macros.
23574 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23575 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23576 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23577 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23578
23579 * callproc.c: Include frame.h and termhooks.h, for terminal
23580 parameters.
23581 (add_env): New function.
23582 (child_setup): Use it.
23583 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23584 (getenv_internal): Fix get_terminal_param call.
23585 (Fgetenv_internal, egetenv): Update doc.
23586 (syms_of_callproc): Initialize Vprocess_environment to nil.
23587 Register and initialize them. Remove obsolete defvars. Update doc
23588 strings.
23589 (child_setup): Handle Vlocal_environment_variables.
23590 (getenv_internal): Add terminal parameter.
23591 Handle Vlocal_environment_variables.
23592 (Fgetenv_internal): Add terminal parameter.
23593 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23594 environment in a frame (not terminal) parameter. Update doc strings.
23595 (set_initial_environment): Rename from set_global_environment.
23596 Store Emacs environment in initial frame parameter.
23597
23598 * xdisp.c (redisplay_internal): Update references to
23599 `previous_terminal_frame'.
23600 (display_mode_line, Fformat_mode_line): Replace calls to
23601 `push_frame_kboard' with `push_kboard'.
23602 (get_glyph_string_clip_rects): Add extra parentheses and
23603 braces to prevent compiler warnings.
23604 (calc_pixel_width_or_height): Add xassert to check that the
23605 frame is alive. Don't call `lookup_image' on a termcap frame.
23606 (message2_nolog, message3_nolog, redisplay_internal)
23607 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23608 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23609 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23610 (Fx_display_pixel_width, Fx_display_pixel_height)
23611 (Fx_display_planes, Fx_display_color_cells)
23612 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23613 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23614 (Fx_display_backing_store, Fx_display_visual_class)
23615 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23616 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23617
23618 * xfns.c (x_set_foreground_color x_set_background_color)
23619 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23620 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23621 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23622 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23623 terminal that is being deleted.
23624 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23625 frame parameter, and make sure it overrides any user-supplied setting.
23626 (Fx_close_connection, Fx_synchronize): Unify argument names with
23627 the rest of the DEFUNs.
23628
23629 * dispnew.c (Fsend_string_to_terminal): Update call to
23630 `get_tty_terminal'.
23631 (Fredraw_frame, Fsend_string_to_terminal)
23632 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23633 FRAME_TERMCAP_P and FRAME_TTY.
23634 (window_change_signal): Don't believe width/height values that are
23635 impossibly small.
23636 (Vinitial_window_system): Rename from Vwindow_system.
23637 (termscript, Wcm, rif): Delete.
23638
23639 * termhooks.h (struct terminal): New struct containing the
23640 previously global text display hooks and new members NAME,
23641 DELETED and PARAM_ALIST.
23642 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23643 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23644 (FRAME_RIF): New macros.
23645 (get_terminal_param, get_device): New declarations.
23646 (termscript): Delete declaration.
23647
23648 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23649 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23650 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23651 FRAME_FOREGROUND_PIXEL.
23652 (x_fully_uncatch_errors): Disable definition.
23653 (x_scroll_bar_expose): Fix reference to foreground pixel.
23654 (XTread_socket): Disable loop on all X displays.
23655 (x_delete_terminal): Don't set terminal->deleted and let
23656 delete_terminal delete the frames on the terminal.
23657 (x_delete_display): Doc update to reflect changes in
23658 delete_terminal.
23659 (x_display_info) <terminal>: Move member earlier in the struct.
23660 (deleting_tty): Remove old variable.
23661 (Fsuspend_tty): Call clear_tty_hooks.
23662 (Fresume_tty, init_tty): Call set_tty_hooks.
23663 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23664 errors on X frames.
23665 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23666 (handle_one_xevent): Initialize `f' to NULL.
23667 (x_delete_terminal, x_create_terminal): New functions.
23668 (XTset_terminal_modes, XTreset_terminal_modes)
23669 (XTread_socket, x_connection_closed, x_term_init)
23670 (x_term_init, x_delete_display): Add terminal parameter.
23671 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23672 X connections.
23673
23674 * frame.c: Include termchar.h.
23675 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23676 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23677 (Qdisplay_environment_variable): New vars.
23678 (Fframep): Deal with output_initial.
23679 (Fframe-live-p): Doc fix.
23680 (Fwindow-system): New function.
23681 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23682 (make_terminal_frame): Don't create frames on a terminal that is
23683 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23684 (store_frame_param): Check for found_for_frame before calling XFRAME.
23685 (Fmake_terminal_frame): Handle NULL tty names correctly.
23686 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23687 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23688 frames to refer to a deleted frame in their 'environment parameter.
23689 (Fframe_with_environment): New function.
23690 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23691 (get_future_frame_param): New function.
23692 (Fmake_terminal_frame): Use it.
23693 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23694
23695 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23696 * sysdep.c (reset_sys_modes): Update for renames.
23697
23698 * keyboard.c (tty_read_avail_input): New function.
23699 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23700 (syms_of_keyboard): Defsubr them.
23701 (Fset_input_meta_mode, Fset_quit_char): New functions.
23702 (Fset_input_mode): Split to above functions.
23703 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23704 parameter. Use it in call to `read_char'.
23705 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23706 Set wrong_kboard_jmpbuf correctly in recursive calls.
23707 Use current_kboard to access Vkeyboard_translate_table.
23708 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23709 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23710 Update longjmp invocations. Remember the original current_kboard,
23711 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23712 changes it. Comment out unnecessary calls to
23713 `record_single_kboard_state' and `any_kboard_state'.
23714 Update recursive calls.
23715 (wrong_kboard_jmpbuf): Remove global variable.
23716 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23717 Handle deleted interrupted_kboards correctly; that is a legal
23718 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23719 and read_char calls. Abort if interrupted_kboard died in read_char.
23720 (any_kboard_state, single_kboard_state)
23721 (push_frame_kboard): Remove function.
23722 (pop_kboard): Switch out of single_kboard mode if the kboard has
23723 been deleted. Remove unused variable. Help debugging by not
23724 changing current_kboard unnecessarily. Set current_kboard to the
23725 kboard of the selected frame when the stored kboard object has
23726 been deleted before pop_kboard.
23727 (temporarily_switch_to_single_kboard): Change first parameter to a
23728 frame pointer. Throw an error when caller wants to change kboards
23729 while in single_kboard mode. Don't push_kboard if we weren't in
23730 single kboard state. Don't pop_kboard if we popped into any
23731 kboard state.
23732 (restore_kboard_configuration): Abort if pop_kboard changed the
23733 kboard in single_kboard mode. Call pop_kboard only after setting
23734 up single_kboard mode.
23735 (Frecursive_edit): Switch to single_kboard mode only in nested
23736 command loops.
23737 (cmd_error, command_loop, command_loop_1, timer_check):
23738 Comment out unnecessary call to `any_kboard_state' and
23739 `record_single_kboard_state'.
23740 (delete_kboard): Exit single_kboard mode if we have just deleted
23741 that kboard. Use FRAME_KBOARD.
23742 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23743 `fatal_error_signal'.
23744 (record_single_kboard_state): Don't push_kboard if we weren't in
23745 single kboard state. Don't pop_kboard if we popped into any
23746 kboard state.
23747 (push_frame_kboard): Rename to push_kboard.
23748 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23749 (read_avail_input): Read input from all terminals.
23750 (mark_kboards): Also mark Vkeyboard_translate_table.
23751 (kbd_buffer_store_event_hold): Simplify condition.
23752 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23753 (Vkeyboard_translate_table): Move to struct kboard.
23754 (init_kboard): Initialize Vkeyboard_translate_table.
23755 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23756 Vkeyboard_translate_table. Update doc strings. Update docs of
23757 local-function-key-map and function-key-map.
23758
23759 * terminal.c: New file.
23760
23761 * term.c: Include errno.h.
23762 (Vring_bell_function, device_list, initial_device)
23763 (next_device_id, ring_bell, update_begin, update_end)
23764 (set_terminal_window, cursor_to, raw_cursor_to)
23765 (clear_to_end, clear_frame, clear_end_of_line)
23766 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23767 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23768 (syms_of_term): Move their initialization to terminal.c.
23769 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23770 (Ftty_display_color_cells)
23771 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23772 (clear_tty_hooks, set_tty_hooks)
23773 (init_tty, maybe_fatal): New functions.
23774 (Ftty_type): Return nil if terminal is not on a tty instead of
23775 throwing an error. Doc update.
23776 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23777 Doc update. Initialize new subrs and variables.
23778 (delete_tty): Use terminal->deleted.
23779 (tty_set_terminal_modes): Rename from set_terminal_modes.
23780 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23781 (set_scroll_region): Rename to `tty_set_scroll_region'.
23782 (turn_on_insert): Rename to `tty_turn_on_insert'.
23783 (turn_off_insert): Rename to `tty_turn_off_insert'.
23784 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23785 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23786 (toggle_highligh): Rename to `tty_toggle_highlight'.
23787 (background_highlight): Rename to `tty_background_highlight'.
23788 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23789 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23790 (tty_set_scroll_region, tty_background_highlight)
23791 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23792 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23793 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23794 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23795 Add static modifier.
23796 (tty_reset_terminal_modes, tty_set_terminal_window)
23797 (tty_set_scroll_region, tty_background_highlight)
23798 (tty_highlight_if_desired, tty_cursor_to)
23799 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23800 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23801 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23802 renames.
23803
238042007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23805
23806 * keyboard.c: Qrtl is new.
23807 (parse_tool_bar_item): Handle :rtl keyword.
23808 (syms_of_keyboard): Intern :rtl keyword.
23809
23810 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23811
23812 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23813 so no Lisp code is executed.
23814 (file_for_image, find_rtl_image): New functions.
23815 (xg_get_image_for_pixmap): Use file_for_image.
23816 (update_frame_tool_bar): If direction is RTL, use RTL image if
23817 defined. Use Gtk stock images if defined.
23818
238192007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23820
23821 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23822 for nonexistent or zero-width glyph in composition glyph.
23823
238242007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23825
23826 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23827
23828 * xdisp.c (Finvisible_p): New function.
23829 (syms_of_xdisp): defsubr it.
23830
238312007-08-24 Juanma Barranquero <lekktu@gmail.com>
23832
23833 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23834 Doc fixes.
23835
238362007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23837
23838 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23839
238402007-08-24 Martin Rudalics <rudalics@gmx.at>
23841
23842 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23843 whether decoding has modified buffer contents.
23844
238452007-08-24 Jason Rumney <jasonr@gnu.org>
23846
23847 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23848 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23849 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23850 (init_svg_functions) [HAVE_NTGUI]: New function.
23851 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23852 (svg_load_image): Use them.
23853 (svg_load_image) [HAVE_NTGUI]: Implement background.
23854
238552007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23856
23857 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23858 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23859 (LIBX): Remove @RSVG_LIBS@.
23860 (LIBES): Add $(RSVG_LIBS).
23861
23862 * image.c (svg_load_image): Blend with specified background if exists.
23863 Use IMAGE_BACKGROUND. Add Mac OS Support.
23864
23865 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23866 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23867 Remove macros.
23868 [MAC_OSX] (socket_callback): Do nothing.
23869 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23870 ReceiveNextEvent.
23871 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23872 socket_callback.
23873 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23874
238752007-08-22 Glenn Morris <rgm@gnu.org>
23876
23877 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23878
238792007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23880
23881 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23882
23883 * image.c: Add support for SVG images. Some additional comments
23884 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23885 (svg_image_p): New function to test for SVG image.
23886 (svg_load): New function to load SVG image.
23887 (svg_load_image): New function, helper for svg_load.
23888 (Qsvg): New Lisp_object.
23889 (svg_keyword_index): New enum.
23890 (svg_format): New static `image_keyword' struct.
23891 (svg_type): New static `image_type' struct.
23892 (librsvg/rsvg.h): Include it.
23893
238942007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23895
23896 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23897
238982007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23899
23900 * lread.c (Qold_style_backquotes): New var.
23901 (syms_of_lread): Init and staticpro it.
23902 (load_warn_old_style_backquotes): New fun.
23903 (Fload): Use them to warn about old style backquotes.
23904 (end_of_file_error, Fload): Remove unused vars.
23905
23906 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23907
23908 * lread.c (Vold_style_backquotes): New var.
23909 (syms_of_lread): Init and export it to Elisp.
23910 (read1): Set it when we find an old-style (back)quote.
23911
239122007-08-22 Jason Rumney <jasonr@gnu.org>
23913
23914 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23915
239162007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23917
23918 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23919
239202007-08-19 Richard Stallman <rms@gnu.org>
23921
23922 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23923
239242007-08-19 Andreas Schwab <schwab@suse.de>
23925
23926 * alloc.c (pure): Round PURESIZE up.
23927
239282007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23929
23930 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23931 active frame.
23932
239332007-08-16 Richard Stallman <rms@gnu.org>
23934
23935 * eval.c (Fcommandp): Add parens to clarify.
23936
23937 * minibuf.c (Fall_completions): Use enum for type of table.
23938
23939 * emacs.c (USAGE2): Improve text.
23940
239412007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23942
23943 * term.c (tty_default_color_capabilities): Declare static
23944 variables in file scope, to avoid HPUX compiler problem.
23945
239462007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23947
23948 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23949 to gtk_toolbar_insert.
23950
239512007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23952
23953 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23954
23955 * insdel.c (reset_var_on_error): New fun.
23956 (signal_before_change, signal_after_change):
23957 Use it to reset (after|before)-change-functions to nil in case of error.
23958 Bind inhibit-modification-hooks to t.
23959 Don't bind (after|before)-change-functions to nil while they run.
23960
239612007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23962
23963 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23964 filling pixmap with stippled background.
23965
239662007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23967
23968 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23969 Don't use invisible frame as parent window for repositioning.
23970
239712007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23972
23973 * print.c (new_backquote_output): Rename from old_backquote_output.
23974 (print): Inverse its logic (according to its name) so as to match the
23975 behavior of new_backquote_flag in lread.c.
23976
239772007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23978
23979 * gmalloc.c (posix_memalign): New function.
23980
23981 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23982 ActivateControl/DeactivateControl here.
23983 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23984 frame-notice-user-settings is non-nil.
23985 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23986 for kEventParamFMFontStyle.
23987 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23988 mac_pass_command_to_system and mac_pass_control_to_system here.
23989 (XTread_socket): Call ActivateControl/DeactivateControl here.
23990 (XTread_socket) [TARGET_API_MAC_CARBON]:
23991 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23992 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23993 for window repositioning.
23994
239952007-08-08 Glenn Morris <rgm@gnu.org>
23996
23997 * Replace `iff' in doc-strings and comments.
23998
239992007-08-07 Chong Yidong <cyd@stupidchicken.com>
24000
24001 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24002
240032007-08-07 Martin Rudalics <rudalics@gmx.at>
24004
24005 * fileio.c (Finsert_file_contents): Run format-decode and
24006 after_insert_file_functions on entire buffer when REPLACE is
24007 non-nil and inhibit modification_hooks and point_motion_hooks.
24008 For consistency, run after_insert_file_functions iff something
24009 got inserted. Move signal_after_change and update_compositions
24010 after code running after_insert_file_functions. Make sure that
24011 undo_list doesn't record intermediate steps of the decoding process.
24012
240132007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24014
24015 * emacs.c (main)
24016 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24017 Call malloc_enable_thread on interactive startup.
24018
24019 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24020 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24021 [USE_PTHREAD]: Conditionalize with it.
24022 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24023 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24024 New functions.
24025
240262007-08-06 Chong Yidong <cyd@stupidchicken.com>
24027
24028 * xdisp.c (redisplay_window): When restoring original buffer
24029 position, make sure it is still valid.
24030
24031 * image.c (png_load): Ignore png-supplied background color.
24032
240332007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24034
24035 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24036 Use kCFAbsoluteTimeIntervalSince1970.
24037
24038 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24039 New variable.
24040 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24041 event loop should be quit.
24042 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24043 Quit dialog event loop if quit_dialog_event_loop is set.
24044
24045 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24046 (Selection): New typedef. Use instead of ScrapRef.
24047 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24048 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24049 (mac_clear_selection): Rename from clear_scrap.
24050 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24051 scrap_has_target_type. All uses changed.
24052 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24053 (mac_selection_has_target_p): New functions.
24054 (mac_put_selection_value): Rename from put_scrap_string.
24055 (mac_get_selection_value): Rename from get_scrap_string.
24056 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24057 (put_scrap_private_timestamp, scrap_has_target_type)
24058 (get_scrap_private_timestamp): Remove functions.
24059 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24060 (x_own_selection, x_get_local_selection):
24061 Use mac_valid_selection_value_p.
24062 (x_own_selection): Don't use put_scrap_private_timestamp.
24063 Record OWNERSHIP-INFO into Vselection_alist instead.
24064 (x_get_local_selection): Don't check type if request is local.
24065 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24066 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24067
240682007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24069
24070 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24071 add comment explaining why.
24072
240732007-08-03 Richard Stallman <rms@gnu.org>
24074
24075 * fileio.c (Fvisited_file_modtime): Use make_time.
24076
240772007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24078
24079 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24080 build.
24081
240822007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24083
24084 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24085
240862007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24087
24088 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24089
240902007-07-30 Richard Stallman <rms@gnu.org>
24091
24092 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24093
240942007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24095
24096 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24097
240982007-07-28 Nick Roberts <nickrob@snap.net.nz>
24099
24100 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24101 remote default-directory.
24102
24103 * buffer.c (mode-line-format): Update doc string.
24104
241052007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24106
24107 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24108 scroll bar gap.
24109 (x_scroll_bar_create): Set bar->fringe_extended_p.
24110 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24111 on frame edge. Check fringe background extension. Don't clear
24112 extended fringe background area.
24113
24114 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24115 (w32_fill_area): Enclose multiple statements with do ... while (0).
24116
24117 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24118 Extend fringe background to scroll bar gap.
24119 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24120 Set bar->fringe_extended_p.
24121 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24122 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24123 background extension. Don't clear extended fringe background area.
24124
24125 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24126 New member fringe_extended_p.
24127
241282007-07-25 Glenn Morris <rgm@gnu.org>
24129
24130 * Relicense all FSF files to GPLv3 or later.
24131
24132 * COPYING: Switch to GPLv3.
24133
241342007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24135
24136 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24137
24138 * data.c (Finteractive_form): Check for the presence of an
24139 `interactive-form' symbol property more thoroughly.
24140
24141 * data.c (Finteractive_form): Use an `interactive-form' property if
24142 present, analogous to the function-documentation property.
24143
241442007-07-24 Jason Rumney <jasonr@gnu.org>
24145
24146 * w32fns.c (x_real_positions): Get real position from OS instead of
24147 calculating it.
24148
241492007-07-23 Jason Rumney <jasonr@gnu.org>
24150
24151 * filelock.c (current_lock_owner): Allow for @ sign in username.
24152
241532007-07-22 Nick Roberts <nickrob@snap.net.nz>
24154
24155 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24156 remote default-directory.
24157
24158 * buffer.c (mode-line-format): Describe above case in doc string.
24159
241602007-07-20 Eli Zaretskii <eliz@gnu.org>
24161
24162 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24163 Define if not defined.
24164
241652007-07-18 Jason Rumney <jasonr@gnu.org>
24166
24167 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24168
241692007-07-18 Richard Stallman <rms@gnu.org>
24170
24171 * data.c (Fsetq_default): Doc fix.
24172
24173 * eval.c (Fsetq): Doc fix.
24174
241752007-07-18 Juanma Barranquero <lekktu@gmail.com>
24176
24177 * coding.c (Ffind_operation_coding_system):
24178 * eval.c (For, Fand): Doc fixes.
24179 Reported by Johan Bockgård.
24180
241812007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24182
24183 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24184
24185 * xterm.h: Declare x_ewmh_activate_frame.
24186
24187 * xterm.c (x_ewmh_activate_frame): New function.
24188 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24189
241902007-07-17 Martin Rudalics <rudalics@gmx.at>
24191
24192 * window.c (Fdisplay_buffer): If largest or LRU window is the
24193 only window, split it even if it is not eligible for splitting.
24194 This restores the original behavior broken by the 2007-07-15
24195 change.
24196
241972007-07-17 Glenn Morris <rgm@gnu.org>
24198
24199 * abbrev.c (abbrev_check_chars): New function.
24200 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24201 Call abbrev_check_chars to check abbrev characters are word
24202 constituents. Doc fix.
24203
242042007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24205
24206 * process.c (Fstart_process, Fmake_network_process)
24207 (read_process_output): Fix up last changes.
24208
242092007-07-16 Eli Zaretskii <eliz@gnu.org>
24210
24211 * makefile.w32-in (clean): Don't delete *~.
24212
242132007-07-16 Andreas Schwab <schwab@suse.de>
24214
24215 * window.c (Fdisplay_buffer): Use NILP.
24216 (Fset_window_scroll_bars): Likewise.
24217
242182007-07-15 Martin Rudalics <rudalics@gmx.at>
24219
24220 * window.c (window_min_size_2): New function.
24221 (window_min_size_1, size_window, Fdisplay_buffer)
24222 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24223 windows without mode- or header-lines when window-min-height is
24224 too small.
24225 (size_window): Reset nodelete_p after testing it, following an
24226 earlier note by Kim F. Storm.
24227 (display_buffer): Do not set split_height_threshold to twice the
24228 value of window_min_height to avoid changing the value of a
24229 customizable variable. Rather explicitly check whether the
24230 height of the window that shall be splitted is at least as large
24231 as split_height_threshold.
24232 (Fwindow_full_width_p): New defun.
24233 (syms_of_window): Defsubr it.
24234
24235 * window.h: Add EXFUN for Fwindow_full_width_p.
24236
242372007-07-14 Jason Rumney <jasonr@gnu.org>
24238
24239 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24240
242412007-07-14 Richard Stallman <rms@gnu.org>
24242
24243 * eval.c (maybe_call_debugger): New function.
24244 (find_handler_clause): Use maybe_call_debugger.
24245 Call it when the handler says `debug'.
24246 Eliminate DEBUGGER_VALUE_PTR.
24247 (Fsignal): Eliminate debugger_value.
24248 (Qdebug): New variable.
24249 (syms_of_eval): Initialize it.
24250
242512007-07-14 Juanma Barranquero <lekktu@gmail.com>
24252
24253 * eval.c (Fprogn):
24254 * keyboard.c (Ftrack_mouse):
24255 * print.c (Fwith_output_to_temp_buffer):
24256 * window.c (Fsave_window_excursion): Doc fix.
24257
242582007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24259
24260 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24261
242622007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24263
24264 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24265 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24266 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24267 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24268 Remove unused encoding_carryover.
24269 * process.c: Adjust all functions accordingly.
24270
242712007-07-12 Richard Stallman <rms@gnu.org>
24272
24273 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24274
242752007-07-11 Jason Rumney <jasonr@gnu.org>
24276
24277 * makefile.w32-in (LIBS): Include OLE32.
24278
24279 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24280 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24281
242822007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24283
24284 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24285 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24286 from a Lisp_Object into a bare pointer.
24287 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24288 Adjust the code correspondingly.
24289
24290 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24291
24292 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24293 (term_show_mouse_face): Remove unused var `j'.
24294 (handle_one_term_event): Remove unused vars `i' and `j'.
24295 Don't cast return value of ttyname since it's not necessary.
24296
242972007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24298
24299 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24300 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24301
24302 * fns.c (map_char_table): Use an array of int for `indices' rather than
24303 an array of Lisp_Objects (which are only ever integers anyway).
24304 (Fmap_char_table): Update caller.
24305 * lisp.h: Update prototype.
24306 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24307 * fontset.c (Ffontset_info):
24308 * casetab.c (set_case_table): Update callers.
24309
24310 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24311
24312 * keymap.c (struct accessible_keymaps_data)
24313 (struct where_is_internal_data): New structures.
24314 (accessible_keymaps_1, where_is_internal_1): Use them to change
24315 interface to adhere to the one used by map_keymap.
24316 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24317 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24318
24319 * keymap.h (map_keymap_function_t): More informative prototype.
24320
243212007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24322
24323 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24324 (looking_at_1): Don't change search_regs and last_thing_searched
24325 if `inhibit-changing-match-data' is non-nil.
24326 (string_match_1, search_buffer, set_search_regs): Likewise.
24327 (syms_of_search): Add Lisp level definition for
24328 `inhibit-changing-match-data' and set it to nil.
24329 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24330 start and end of the match, instead of using values in search_regs.
24331
243322007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24333
24334 * minibuf.c (Fcompleting_read): New value `confirm-only'
24335 for `require-match'.
24336
243372007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24338
24339 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24340 part of the 2007-06-27 change to syms_of_fileio.
24341
243422007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24343
24344 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24345 Check WINDOWP before using XWINDOW. Consolidate return statements.
24346
243472007-06-27 Richard Stallman <rms@gnu.org>
24348
24349 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24350
243512007-06-27 Juanma Barranquero <lekktu@gmail.com>
24352
24353 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24354
243552007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24356
24357 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24358 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24359 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24360 (_free_internal, memalign): Use them.
24361 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24362 Initialize to PTHREAD_MUTEX_INITIALIZER.
24363 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24364 (morecore_nolock): Rename from morecore. All uses changed.
24365 Use only nolock versions of internal allocation functions.
24366 (_malloc_internal_nolock, _realloc_internal_nolock)
24367 (_free_internal_nolock): New functions created from
24368 _malloc_internal, _realloc_internal, and _free_internal.
24369 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24370 Copy hook value to automatic variable before its use.
24371 (memalign): Copy hook value to automatic variable before its use.
24372
243732007-06-26 Kenichi Handa <handa@m17n.org>
24374
24375 * coding.c (Ffind_operation_coding_system): Docstring improved.
24376 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24377
243782007-06-25 David Kastrup <dak@gnu.org>
24379
24380 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24381 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24382 cater for additional parameter.
24383
24384 * keymap.h: Adjust number of parameters to `current-active-maps'.
24385
24386 * doc.c (Fsubstitute_command_keys): Adjust call of
24387 `current-active-maps'.
24388
243892007-06-25 David Kastrup <dak@gnu.org>
24390
24391 * callint.c (Fcall_interactively): Make the parsing of interactive
24392 specs somewhat more readable.
24393
243942007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24395
24396 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24397 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24398 if extended background has already been filled.
24399
244002007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24401
24402 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24403 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24404
24405 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24406 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24407 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24408 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24409 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24410 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24411 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24412 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24413 Run timers during dialog popup.
24414 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24415
244162007-06-21 Jason Rumney <jasonr@gnu.org>
24417
24418 * image.c (convert_mono_to_color_image): Swap fore and background.
24419
244202007-06-20 Jason Rumney <jasonr@gnu.org>
24421
24422 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24423 (w32_free_bdf_font): Unmap memory not handle.
24424
244252007-06-20 Sam Steingold <sds@gnu.org>
24426
24427 * gmalloc.c (__morecore): Fix the declaration to comply with the
24428 definition.
24429
244302007-06-20 Juanma Barranquero <lekktu@gmail.com>
24431
24432 * w32term.c (w32_delete_display): Remove leftover declaration.
24433 (w32_define_cursor, w32_initialize): Make static.
24434
24435 * w32.c (_wsa_errlist): Fix typo in error message.
24436 (init_environment): Ignore any environment variable from the
24437 registry having a null value.
24438
244392007-06-20 Glenn Morris <rgm@gnu.org>
24440
24441 * Makefile.in (LIBGIF): Default to -lgif.
24442
244432007-06-17 Jason Rumney <jasonr@gnu.org>
24444
24445 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24446 unicode strings.
24447
244482007-06-16 Juanma Barranquero <lekktu@gmail.com>
24449
24450 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24451 Fix typo in docstring.
24452
244532007-06-16 Eli Zaretskii <eliz@gnu.org>
24454
24455 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24456 and their keybindings.
24457
244582007-06-15 Chong Yidong <cyd@stupidchicken.com>
24459
24460 * composite.c (update_compositions): Fix last fix.
24461
244622007-06-14 Jason Rumney <jasonr@gnu.org>
24463
24464 * w32.c (get_process_times_fn): New function pointer.
24465 (globals_of_w32): Intialize it if present in kernel32.dll.
24466 (w32_get_internal_run_time): New function.
24467
24468 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24469
244702007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24471
24472 * composite.c (update_compositions): Check the validness of
24473 compositions.
24474
244752007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24476
24477 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24478 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24479
24480 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24481 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24482
24483 * macgui.h (USE_MAC_TOOLBAR): New define.
24484
24485 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24486 Return immediately unless popup is activated.
24487
24488 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24489 background to scroll bar gap.
24490 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24491 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24492 scroll bars on frame edge. Check fringe background extension.
24493 Don't clear extended fringe background area.
24494 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24495 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24496 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24497 [USE_MAC_TOOLBAR]: New macros.
24498 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24499 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24500 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24501 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24502 [USE_MAC_TOOLBAR]: New functions.
24503 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24504 manually if previous repositioning has failed.
24505 (mac_handle_keyboard_event): Use precomputed event kind.
24506 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24507 as tool bar item click. Handle mouse movement over tool bar items.
24508
24509 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24510 toolbar_win_gravity.
24511 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24512 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24513 Add externs.
24514
24515 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24516 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24517
245182007-06-14 Chong Yidong <cyd@stupidchicken.com>
24519
24520 * image.c (search_image_cache): Remove unused variable.
24521
245222007-06-13 Chong Yidong <cyd@stupidchicken.com>
24523
24524 * xfns.c, xmenu.c: Link to xaw3d if available.
24525
245262007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24527
24528 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24529 frame_foreground and frame_background.
24530
24531 * image.c (lookup_image): Save frame foreground and background colors.
24532 (search_image_cache): Check if saved and current frame colors match.
24533
245342007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24535
24536 * regex.c (regex_compile): Remove the `regnum' counter.
24537 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24538
245392007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24540
24541 * term.c: Include intervals.h to declare Fget_text_property.
24542
245432007-06-10 Jason Rumney <jasonr@gnu.org>
24544
24545 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24546
245472007-06-08 Juanma Barranquero <lekktu@gmail.com>
24548
24549 * callint.c (Fcall_interactively):
24550 * editfns.c (Fdelete_and_extract_region):
24551 * fileio.c (Fread_file_name):
24552 * fns.c (Fmapconcat):
24553 * keyboard.c (cmd_error_internal):
24554 * keymap.c (Fkey_description):
24555 * lread.c (openp):
24556 * minibuf.c (read_minibuf):
24557 * search.c (wordify):
24558 * sunfns.c (sel_read):
24559 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24560 * xfns.c (x_default_scroll_bar_color_parameter):
24561 * xmenu.c (menu_help_callback):
24562 * xselect.c (Fx_get_atom_name):
24563 * xterm.c (x_term_init): Use empty_unibyte_string.
24564
245652007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24566
24567 * alloc.c (init_strings): Initialize canonical empty strings.
24568 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24569 canonical empty string when the requested size is 0.
24570
24571 * emacs.c (empty_unibyte_string): Rename from empty_string.
24572 (empty_multibyte_string): New canonical empty string.
24573 (syms_of_emacs): Don't initialize empty_string.
24574
24575 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24576 string, if appropriate.
24577 (empty_unibyte_string, empty_multibyte_string): New externs.
24578 (empty_string): Remove extern.
24579
24580 * lread.c (syms_of_lread): Use empty_unibyte_string.
24581
245822007-06-07 Jason Rumney <jasonr@gnu.org>
24583
24584 * s/ms-w32.h: Don't define HAVE_TZNAME.
24585
24586 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24587
245882007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24589
24590 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24591
24592 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24593 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24594
24595 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24596 Don't call next handler.
24597 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24598 Remove argument. Install handler to application.
24599 (set_frame_menubar): Don't change deep_p.
24600 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24601 FRAME_OUTER_TO_INNER_DIFF_Y.
24602 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24603 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24604 [HAVE_DIALOGS]: New macros.
24605 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24606 Use them.
24607 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24608
24609 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24610 init_service_handler. All callers changed. Return OSStatus value.
24611
24612 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24613 All callers changed so as not to call SetPortWindowPort.
24614 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24615 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24616 mac_draw_string_common.
24617 (mac_draw_image_string_qd): Likewise.
24618 (mac_draw_string_common): Use them. Add INLINE.
24619 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24620 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24621 GetGlobalMouse.
24622 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24623 and FRAME_OUTER_TO_INNER_DIFF_Y.
24624 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24625 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24626 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24627 repositioning window to mac_handle_window_event.
24628 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24629 saving window location to mac_handle_window_event
24630 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24631 (install_menu_target_item_handler): Remove argument in extern.
24632 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24633 Also accept command events.
24634 (do_keystroke): New function created from XTread_socket.
24635 (init_command_handler): Remove functions.
24636 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24637 and save window location by kEventWindowShowing and kEventWindowHiding
24638 handlers here. Don't call next handler for window state change and
24639 focus events.
24640 (mac_handle_application_event, mac_handle_keyboard_event)
24641 [TARGET_API_MAC_CARBON]: New functions.
24642 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24643 kEventWindowShowing and kEventWindowHiding events. Move installation
24644 of mouse, font, text input and menu target item handlers to
24645 install_application_handler.
24646 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24647 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24648 New function.
24649 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24650 Register it.
24651 (XTread_socket) [TARGET_API_MAC_CARBON]:
24652 Consolidate SendEventToEventTarget calls.
24653 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24654 Move application activation handler to mac_handle_application_event.
24655 Move keyboard handler to mac_handle_keyboard_event.
24656 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24657 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24658 init_command_handler. Call install_application_handler.
24659
24660 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24661 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24662
246632007-06-07 Glenn Morris <rgm@gnu.org>
24664
24665 * emacs.c (main): Use `emacs-copyright' in --version output.
24666
246672007-06-06 Chong Yidong <cyd@stupidchicken.com>
24668
24669 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24670
246712007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24672
24673 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24674
24675 * macgui.h: Replace WindowPtr with WindowRef.
24676
24677 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24678 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24679 Replace ControlHandle with ControlRef.
24680 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24681
24682 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24683 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24684 Replace ControlHandle with ControlRef.
24685 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24686 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24687
24688 * macterm.h (struct scroll_bar): Rename member control_handle_low
24689 and control_handle_high to control_ref_low and control_ref_high.
24690 All uses changed.
24691 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24692 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24693 respectively. All uses changed.
24694 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24695 (install_window_handler, remove_window_handler): Replace WindowPtr
24696 with WindowRef in externs.
24697
246982007-06-05 Juanma Barranquero <lekktu@gmail.com>
24699
24700 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24701
247022007-06-03 Nick Roberts <nickrob@snap.net.nz>
24703
24704 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24705
24706 * frame.c (Fmouse_position, Fmouse_pixel_position):
24707 Condition on HAVE_GPM too.
24708
24709 * term.c (term_mouse_highlight): Remove unused variables.
24710 (Fterm_open_connection): Set gpm_zerobased to 1.
24711 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24712 Use zero based co-ordinates.
24713 (handle_one_term_event): Report a drag as mouse movement too.
24714
24715 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24716
247172007-06-03 Chong Yidong <cyd@stupidchicken.com>
24718
24719 * image.c (search_image_cache): New function. Require background
24720 color match if background color is unspecified in the image spec.
24721 (uncache_image, lookup_image): Use it.
24722
247232007-06-01 Juanma Barranquero <lekktu@gmail.com>
24724
24725 * window.c (Fshrink_window): Reflow docstring.
24726
247272007-06-02 Chong Yidong <cyd@stupidchicken.com>
24728
24729 * Version 22.1 released.
24730
247312007-06-01 Richard Stallman <rms@gnu.org>
24732
24733 * xfns.c (x_encode_text): Add GCPRO.
24734
247352007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24736
24737 * xfns.c (x_set_name_internal): Save encoded name before
24738 x_encode_text in case string data is relocated.
24739
247402007-05-31 Richard Stallman <rms@gnu.org>
24741
24742 * buffer.c (syms_of_buffer): Doc fix.
24743
247442007-05-30 Nick Roberts <nickrob@snap.net.nz>
24745
24746 * sysdep.c (init_sys_modes): Add rather than replace with
24747 O_NONBLOCK.
24748
24749 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24750 term_mouse_moveto.
24751
24752 * termhooks.h (term_mouse_moveto): New extern.
24753
24754 * term.c (mouse_face_window): Rename...
24755 (Qmouse_face_window): ...to this.
24756 (term_show_mouse_face, term_clear_mouse_face)
24757 (term_mouse_highlight): Use Qmouse_face_window.
24758 (term_mouse_moveto): New function.
24759 (term_mouse_position): Make it work.
24760 (syms_of_term): Uncomment assignment to mouse_position_hook.
24761 Staticpro Qmouse_face_window.
24762
247632007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24764
24765 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24766 around current_column call.
24767
247682007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24769
24770 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24771 * xdisp.c (next_element_from_buffer):
24772 * window.c (delete_window):
24773 * term.c (term_mouse_highlight):
24774 * msdos.c (getdefdir):
24775 * macterm.c (mac_create_bitmap_from_bitmap_data)
24776 (init_font_name_table):
24777 * fns.c (Fsxhash):
24778 * data.c (Fmake_local_variable):
24779 * ccl.c (ccl_driver): Likewise.
24780
247812007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24782
24783 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24784 Call mac_wakeup_from_rne on window size change.
24785
247862007-05-25 Chong Yidong <cyd@stupidchicken.com>
24787
24788 * image.c (uncache_image): Fix typo.
24789
247902007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24791
24792 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24793
247942007-05-22 Richard Stallman <rms@gnu.org>
24795
24796 * xterm.c (x_connection_closed): Remove NO_RETURN.
24797
247982007-05-22 Martin Rudalics <rudalics@gmx.at>
24799
24800 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24801
248022007-05-21 Chong Yidong <cyd@stupidchicken.com>
24803
24804 * image.c (uncache_image): New function.
24805 (Fimage_refresh): New function.
24806
248072007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24808
24809 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24810
248112007-05-20 Nick Roberts <nickrob@snap.net.nz>
24812
24813 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24814 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24815
248162007-05-20 Nick Roberts <nickrob@snap.net.nz>
24817
24818 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24819 conditional on [HAVE_GPM_H].
24820
248212007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24822
24823 * syntax.c (skip_chars): Update syntax-table only after we checked that
24824 the new location is valid.
24825
248262007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24827
24828 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24829 mac_get_window_bounds.
24830
248312007-05-20 Nick Roberts <nickrob@snap.net.nz>
24832
24833 * Makefile.in (LIBGPM): Allow it to be set from configure.
24834 If set then link Emacs with it.
24835
24836 * config.in: Regenerate.
24837
24838 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24839 New externs.
24840
24841 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24842 Include gpm.h.
24843 (handle_one_term_event, term_gpm): New externs.
24844
24845 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24846 and allow it to be interrupted by SIGIO.
24847
24848 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24849 (wait_reading_process_output): Wait on gpm_fd too.
24850 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24851 (add_gpm_wait_descriptor_called_flag): New variable.
24852 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24853
24854 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24855 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24856 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24857 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24858 (make_lispy_event): Add case GPM_CLICK_EVENT.
24859 (read_avail_input): Handle mouse input.
24860
24861 * term.c (write_glyphs_with_face): New function.
24862 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24863 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24864 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24865 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24866 (last_mouse_x, last_mouse_y): New variables.
24867 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24868 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24869 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24870 (Fterm_close_connection): New functions.
24871 (term_init): Initialise mouse_face_window.
24872
248732007-05-19 Chong Yidong <cyd@stupidchicken.com>
24874
24875 * xdisp.c (redisplay_window): If first window line is a
24876 continuation line, recompute the new window start instead of
24877 recentering.
24878
248792007-05-18 Glenn Morris <rgm@gnu.org>
24880
24881 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24882 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24883
248842007-05-17 Glenn Morris <rgm@gnu.org>
24885
24886 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24887
248882007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24889
24890 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24891 dead key repeat and up events.
24892
248932007-05-14 Chong Yidong <cyd@stupidchicken.com>
24894
24895 * image.c (pbm_load): Check image size for monochrome pbm.
24896
248972007-05-13 Chong Yidong <cyd@stupidchicken.com>
24898
24899 * xterm.c (XTread_socket): Revert last change.
24900
249012007-05-12 Chong Yidong <cyd@stupidchicken.com>
24902
24903 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24904
24905 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24906
249072007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24908
24909 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24910 mixup (YAILOM).
24911
249122007-05-07 Andreas Schwab <schwab@suse.de>
24913
24914 * keymap.c (Flookup_key): Fix typo in last change.
24915
249162007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24917
24918 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24919 mapping for unibyte strings.
24920
249212007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24922
24923 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24924 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24925
249262007-04-29 Richard Stallman <rms@gnu.org>
24927
24928 * insdel.c (replace_range): For undo, record insertion first.
24929
249302007-04-29 Andreas Schwab <schwab@suse.de>
24931
24932 * lisp.h (VECSIZE): Use OFFSETOF.
24933
249342007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24935
24936 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24937 disabled lines.
24938
249392007-04-28 Richard Stallman <rms@gnu.org>
24940
24941 * lread.c (read_escape): In a string, \s is always space.
24942
249432007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24944
24945 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24946
24947 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24948 submenu for menu bar items.
24949
24950See ChangeLog.10 for earlier changes.
24951
24952;; Local Variables:
24953;; coding: utf-8
24954;; add-log-time-zone-rule: t
aac0c6e3
MR
24955;; End:
24956
e3eb1dae 24957 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24958
24959 This file is part of GNU Emacs.
24960
24961 GNU Emacs is free software: you can redistribute it and/or modify
24962 it under the terms of the GNU General Public License as published by
24963 the Free Software Foundation, either version 3 of the License, or
24964 (at your option) any later version.
24965
24966 GNU Emacs is distributed in the hope that it will be useful,
24967 but WITHOUT ANY WARRANTY; without even the implied warranty of
24968 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24969 GNU General Public License for more details.
24970
24971 You should have received a copy of the GNU General Public License
24972 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24973
24974;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40