Fix compilation for Motif/Lesstif.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
52214050
J
12010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
4 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5 unless USE_LUCID.
6
313d9eb2
DN
72010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
8
d8825aa3
DN
9 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
10
295d0d8f
DN
11 Clean up include guards.
12 * tparam.c: Remove include guards for config.h, string.h and code
13 that assumes #ifndef emacs.
14 * termcap.c:
15 * unexalpha.c:
16 * sysdep.c:
17 * filemode.c:
18 * filelock.c:
19 * bidi.c: Likewise.
20
49d9e6b0
DN
21 Remove prefix-args.c
22 * prefix-args.c: Remove file.
23 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
24 * Makefile.in (temacs${EXEEXT}): Remove references to
25 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
26 (mostlyclean): Remove reference to prefix-args.
27 (prefix-args): Remove.
28
313d9eb2
DN
29 Simplify cstart_of_data, start_of_code and related code.
30 * mem-limits.h: Remove !emacs and _LIBC conditional code.
31 (start_of_data): Merge into start_of_data function.
32 * sysdep.c (start_of_text): Remove. Move simplified versions of
33 it in the only users: unexaix.c and unexec.c.
34 (read_input_waiting): Remove local declaration of quit_char.
35 (start, etext): Remove declarations.
36 (start_of_data): Merge with the version in mem-limits.h and move
37 to vm-limits.c.
38 * vm-limit.c (start_of_data): Merged and simplified version of the
39 code formerly in mem-limits.h and sysdep.c.
40 * unexec.c (start): New declaration, moved from sysdep.c.
41 (start_of_text): Simplified version of the code formerly in sysdep.c.
42 * unexaix.c (start_of_text): Simplified version of the code
43 formerly in sysdep.c.
44 * m/alpha.h (HAVE_TEXT_START): Remove.
45 (TEXT_START): Move ...
46 * unexalpha.c (TEXT_START): ... here.
47 * s/hpux10-20.h (TEXT_START): Remove.
48 * s/darwin.h (TEXT_START):
49 * m/mips.h (TEXT_START):
50 * m/macppc.h (HAVE_TEXT_START):
51 * m/m68k.h (TEXT_START):
52 * m/iris4d.h (TEXT_START):
53 * m/intel386.h (TEXT_START):
54 * m/ibmrs6000.h (TEXT_START):
55 * m/ia64.h (HAVE_TEXT_START):
56 * s/msdos.h (TEXT_START): Likewise.
57
72af86bd
AS
582010-07-07 Andreas Schwab <schwab@linux-m68k.org>
59
60 * alloc.c (overrun_check_malloc, overrun_check_realloc)
61 (overrun_check_free, xstrdup, allocate_string)
62 (allocate_string_data, compact_small_strings, Fmake_string)
63 (make_unibyte_string, make_multibyte_string)
64 (make_string_from_bytes, make_specified_string, make_float)
65 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
66 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
67 memcpy, memmove, memset, memcmp.
68 * atimer.c (start_atimer, set_alarm): Likewise.
69 * buffer.c (clone_per_buffer_values, report_overlay_modification)
70 (mmap_realloc, init_buffer_once): Likewise.
71 * callint.c (Fcall_interactively): Likewise.
72 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
73 (getenv_internal_1): Likewise.
74 * casefiddle.c (casify_object): Likewise.
75 * ccl.c (ccl_driver): Likewise.
76 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
77 * charset.c (load_charset_map_from_file)
78 (load_charset_map_from_file, load_charset_map_from_vector)
79 (Fdefine_charset_internal): Likewise.
80 * cm.c (Wcm_clear): Likewise.
81 * coding.c (decode_eol, decode_coding_object)
82 (Fset_coding_system_priority, make_subsidiaries): Likewise.
83 * data.c (Faset): Likewise.
84 * dired.c (directory_files_internal, file_name_completion_stat):
85 Likewise.
86 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
87 (clear_glyph_row, copy_row_except_pointers)
88 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
89 (save_current_matrix, restore_current_matrix)
90 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
91 (mirror_line_dance, scrolling_window): Likewise.
92 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
93 Likewise.
94 * doprnt.c (doprnt): Likewise.
95 * editfns.c (Fuser_full_name, make_buffer_string_both)
96 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
97 * emacs.c (sort_args): Likewise.
98 * eval.c (Fapply, Ffuncall): Likewise.
99 * fileio.c (Ffile_name_directory, make_temp_name)
100 (Fexpand_file_name, search_embedded_absfilename)
101 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
102 (auto_save_error): Likewise.
103 * fns.c (Fstring_equal, Fcopy_sequence, concat)
104 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
105 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
106 (Fmake_hash_table): Likewise.
107 * fringe.c (Fdefine_fringe_bitmap): Likewise.
108 * ftfont.c (ftfont_text_extents): Likewise.
109 * getloadavg.c (getloadavg): Likewise.
110 * image.c (define_image_type, make_image, make_image_cache)
111 (x_create_x_image_and_pixmap, xbm_image_p)
112 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
113 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
114 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
115 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
116 (tiff_image_p, tiff_read_from_memory, gif_image_p)
117 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
118 Likewise.
119 * indent.c (scan_for_column, compute_motion): Likewise.
120 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
121 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
122 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
123 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
124 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
125 (store_user_signal_events, menu_bar_items, tool_bar_items)
126 (process_tool_bar_item, append_tool_bar_item)
127 (read_char_minibuf_menu_prompt, read_key_sequence)
128 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
129 Likewise.
130 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
131 Likewise.
132 * lisp.h (STRING_COPYIN): Likewise.
133 * lread.c (Fload, read1, oblookup): Likewise.
134 * msdos.c (Frecent_doskeys): Likewise.
135 * nsfns.m (Fx_create_frame): Likewise.
136 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
137 Likewise.
138 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
139 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
140 Likewise.
141 * nsmenu.m (ns_update_menubar): Likewise.
142 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
143 * print.c (print_unwind, printchar, strout, print_string)
144 (print_error_message): Likewise.
145 * process.c (conv_lisp_to_sockaddr, set_socket_option)
146 (Fmake_network_process, Fnetwork_interface_list)
147 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
148 (init_process): Likewise.
149 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
150 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
151 Likewise.
152 * scroll.c (do_scrolling, do_direct_scrolling)
153 (scrolling_max_lines_saved): Likewise.
154 * search.c (search_buffer, wordify, Freplace_match): Likewise.
155 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
156 * syntax.c (skip_chars, skip_syntaxes): Likewise.
157 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
158 (emacs_set_tty): Likewise.
159 * term.c (encode_terminal_code, calculate_costs)
160 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
161 Likewise.
162 * termcap.c (tgetst1, gobble_line): Likewise.
163 * termhooks.h (EVENT_INIT): Likewise.
164 * tparam.c (tparam1): Likewise.
165 * unexalpha.c (unexec): Likewise.
166 * unexec.c (write_segment): Likewise.
167 * unexmacosx.c (unexec_write_zero): Likewise.
168 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
169 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
170 * w32font.c (w32font_list_family, w32font_text_extents)
171 (w32font_list_internal, w32font_match_internal)
172 (w32font_open_internal, compute_metrics, Fx_select_font):
173 Likewise.
174 * w32menu.c (set_frame_menubar, add_menu_item)
175 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
176 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
177 * w32uniscribe.c (uniscribe_list_family): Likewise.
178 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
179 * window.c (make_window, replace_window, set_window_buffer)
180 (Fsplit_window): Likewise.
181 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
182 (add_to_log, message3, x_consider_frame_title)
183 (append_space_for_newline, extend_face_to_end_of_line)
184 (decode_mode_spec_coding, init_glyph_string): Likewise.
185 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
186 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
187 (face_attr_equal_p, make_realized_face, make_face_cache)
188 (free_realized_faces, lookup_named_face, smaller_face)
189 (face_with_height, lookup_derived_face)
190 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
191 (Finternal_set_font_selection_order, realize_default_face)
192 (compute_char_face, face_at_buffer_position)
193 (face_for_overlay_string, face_at_string_position, merge_faces):
194 Likewise.
195 * xfns.c (xic_create_fontsetname, Fx_create_frame)
196 (Fx_window_property, x_create_tip_frame)
197 (Fx_backspace_delete_keys_p): Likewise.
198 * xfont.c (xfont_list, xfont_match, xfont_list_family)
199 (xfont_text_extents): Likewise.
200 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
201 * xrdb.c (magic_file_p, x_get_resource): Likewise.
202 * xselect.c (x_queue_event, x_get_window_property)
203 (receive_incremental_selection): Likewise.
204 * xsmfns.c (x_session_check_input): Likewise.
205 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
206 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
207 Likewise.
208 * character.h (BCOPY_SHORT): Removed.
209 * config.in: Regenerate.
210 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
211 * emacs.c (main) [PROFILING]: Don't declare
212 dump_opcode_frequencies.
213 * lisp.h (safe_bcopy): Remove declaration.
214 (memset) [!HAVE_MEMSET]: Declare.
215 (memcpy) [!HAVE_MEMCPY]: Likewise.
216 (memmove) [!HAVE_MEMMOVE]: Likewise.
217 (memcmp) [!HAVE_MEMCMP]: Likewise.
218 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
219 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
220 Don't define.
221 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
222 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
223 (BCOPY_DOWNWARD_SAFE): Don't define.
224 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
225 (memcpy) [!HAVE_MEMCPY]: Define.
226 (memmove) [!HAVE_MEMMOVE]: Define.
227 (memcmp) [!HAVE_MEMCMP]: Define.
228
cb768704
J
2292010-07-07 Jan Djärv <jan.h.d@swipnet.se>
230
231 * process.c (kbd_is_on_hold): New variable.
232 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
233 functions.
234 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
235 select on empty input mask.
236 (init_process): Initialize kbd_is_on_hold to 0.
237
238 * process.h (hold_keyboard_input, unhold_keyboard_input)
239 (kbd_on_hold_p): Declare.
240
241 * keyboard.c (input_available_signal): Declare.
242 (kbd_buffer_nr_stored): New function.
243 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
244 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
245 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
246 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
247 (tty_read_avail_input): If input is on hold, return.
248 Don't read more that free slots in kbd_buffer (Bug#6571).
249
3a8ce822
EZ
2502010-07-07 Eli Zaretskii <eliz@gnu.org>
251
252 * msdos.h:
253 * msdos.c:
254 * dosfns.c:
255 * w16select.c: Convert function definitions to ANSI C.
256
257 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
258 unused prototypes.
259
cf84bb53
JB
2602010-07-07 Juanma Barranquero <lekktu@gmail.com>
261
262 * coding.c, sysdep.c: Convert some more functions to standard C.
263
1a4990fb
JB
2642010-07-07 Juanma Barranquero <lekktu@gmail.com>
265
266 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
267 (encode_coding_object): Use SPECPDL_INDEX.
268 (syms_of_coding): Use DOS_NT.
269
c0f2f16b
DN
2702010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
271
48fb6855
DN
272 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
273
c0f2f16b
DN
274 Make the function member of Lisp_Subr use standard C prototypes.
275 * lisp.h (struct Lisp_Subr): Use a union for the function member.
276 (DECL_ALIGN): Add a cast for the function.
277 * eval.c (Feval, Ffuncall): Use the proper type for each type
278 function call.
279
67aecef9
CY
2802010-07-06 Chong Yidong <cyd@stupidchicken.com>
281
282 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
283 fringe face id, so face-remapping-alist works (Bug#6091).
284
b56ceb92
JB
2852010-07-06 Juanma Barranquero <lekktu@gmail.com>
286
287 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
288 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
289 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
290
7af07b96
AS
2912010-07-06 Andreas Schwab <schwab@linux-m68k.org>
292
293 * xterm.c (x_get_keysym_name): Change type of parameter to int.
294 * lisp.h: Declare x_get_keysym_name.
295 * keyboard.c (modify_event_symbol): Don't declare
296 x_get_keysym_name here.
297
69e24e34
DN
2982010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
299
300 * ecrt0.c: Revert conversion to standard C.
301
d3da34e0 3022010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
303
304 * vm-limit.c (memory_warnings):
305 * keyboard.c (modify_event_symbol):
306 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
307 (round2, emacs_rint):
308 * process.c (send_process, old_sigpipe): Convert function
309 definitions and declarations to standard C.
310
3112010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
312
313 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
314 * xdisp.c: Convert function definitions to standard C.
315
316 * cm.c (cmputc): Arg C is now int, not char.
317 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
318
00be444c
J
3192010-07-05 James Cloos <cloos@jhcloos.com>
320
321 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
322
323 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
324 _NET_WM_ICON_NAME atoms.
325
326 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
327 and _NET_WM_ICON_NAME properties, too, matching what is
328 done in the Gtk+ case.
329
e4c8d29a
J
3302010-07-05 Jan Djärv <jan.h.d@swipnet.se>
331
ff919460
J
332 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
333
e4c8d29a
J
334 * xsmfns.c (SSDATA): New macro.
335 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
336 passed to strlen/strcpy/strcat.
337 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
338 7:th arg to XChangeProperty to (unsigned char *)
339
340 * xsettings.c (something_changedCB, parse_settings)
341 (apply_xft_settings): Reformat prototype.
342 (something_changedCB, init_gconf): Remove unused variable i.
343 (read_settings): Remove unused variable long_len.
344
345 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
346 (xg_get_image_for_pixmap, create_dialog)
347 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
348 (menuitem_highlight_callback, make_menu_item)
349 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
350 (xg_create_scroll_bar, xg_update_scrollbar_pos)
351 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
352 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
353 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
354 (xg_tool_bar_item_expose_callback): Reformat prototype.
355 (xg_update_menubar): GList *group => GSList *group.
356 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
357 before use.
358 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
359 to GTK_IMAGE (wimage).
360
dd4c5104
DN
3612010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
362
898b4c5c
DN
363 * atimer.c: Use "" instead of <> for local includes for
364 consistency with the rest of the code.
365
dd4c5104
DN
366 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
367 * xrdb.c (get_system_name):
368 * window.c (shrink_windows):
369 * syntax.c (forw_comment):
370 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
371 (ins_del_costs):
372 * mem-limits.h (start_of_data):
373 * lread.c (readevalloop):
374 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
375 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
376 * frame.c (x_get_focus_frame):
377 * floatfns.c (fmod_float):
378 * fileio.c (choose_write_coding_system):
379 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
380 (malloc_initialize_hook, sort_args, synchronize_locale):
381 * doprnt.c (doprnt):
382 * dired.c (compile_pattern):
383 * data.c (fmod_float):
384 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
385 (map_char_table_for_charset):
386 * charset.c (define_charset_internal):
387 * alloc.c (Fgarbage_collect): Convert declarations or definitions
388 to standard C.
389
9a39b306 3902010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 391 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
392
393 * lread.c (read1): Fix up last change to not mess up `c'.
394
e6cb2cbb
JB
3952010-07-04 Juanma Barranquero <lekktu@gmail.com>
396
397 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
398
438105ed
JB
3992010-07-04 Juanma Barranquero <lekktu@gmail.com>
400
401 Fix prototypes.
402
e5447b22 403 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 404 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
405 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
406 arg, as required by internal_condition_case_1.
dcc7404b 407 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
408 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
409 (analyse_first): Fix "const const".
e5447b22 410 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 411 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 412 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 413
971de7fb
DN
4142010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
415
416 * alloc.c: Convert function definitions to standard C.
417 * atimer.c:
418 * bidi.c:
419 * bytecode.c:
420 * callint.c:
421 * callproc.c:
422 * casefiddle.c:
423 * casetab.c:
424 * category.c:
425 * ccl.c:
426 * character.c:
427 * charset.c:
428 * chartab.c:
429 * cmds.c:
430 * coding.c:
431 * composite.c:
432 * data.c:
433 * dbusbind.c:
434 * dired.c:
435 * dispnew.c:
436 * doc.c:
437 * doprnt.c:
438 * ecrt0.c:
439 * editfns.c:
440 * fileio.c:
441 * filelock.c:
442 * filemode.c:
443 * fns.c:
444 * font.c:
445 * fontset.c:
446 * frame.c:
447 * fringe.c:
448 * ftfont.c:
449 * ftxfont.c:
450 * gtkutil.c:
451 * indent.c:
452 * insdel.c:
453 * intervals.c:
454 * keymap.c:
455 * lread.c:
456 * macros.c:
457 * marker.c:
458 * md5.c:
459 * menu.c:
460 * minibuf.c:
461 * prefix-args.c:
462 * print.c:
463 * ralloc.c:
464 * regex.c:
465 * region-cache.c:
466 * scroll.c:
467 * search.c:
468 * sound.c:
469 * strftime.c:
470 * syntax.c:
471 * sysdep.c:
472 * termcap.c:
473 * terminal.c:
474 * terminfo.c:
475 * textprop.c:
476 * tparam.c:
477 * undo.c:
478 * unexelf.c:
479 * window.c:
480 * xfaces.c:
481 * xfns.c:
482 * xfont.c:
483 * xftfont.c:
484 * xgselect.c:
485 * xmenu.c:
486 * xrdb.c:
487 * xselect.c:
488 * xsettings.c:
489 * xsmfns.c:
490 * xterm.c: Likewise.
491
ae492bec
EZ
4922010-07-03 Eli Zaretskii <eliz@gnu.org>
493
76ea4cc9
EZ
494 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
495 frames other than the initial one. Fix reversal of colors when
496 `reverse' is specified in the frame parameters. Call
497 update_face_from_frame_parameter instead of
498 internal-set-lisp-face-attribute. Initialize screen colors from
499 initial_screen_colors[] when f->default_face_done_p is zero,
500 instead of depending on being called with default-frame-alist as
501 the alist argument.
502
503 * xfaces.c (update_face_from_frame_parameter): Move out of
504 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
505 with HAVE_WINDOW_SYSTEM.
506
1e6255ae
EZ
507 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
508 to menu-bar-mode, if not set in the frame parameters or in
509 default-frame-alist.
510
ae492bec
EZ
511 * w32console.c (sys_tputs): Adjust argument list to prototype in
512 term.c.
513
3a35a84c
JB
5142010-07-03 Juanma Barranquero <lekktu@gmail.com>
515
516 * lisp.h (memory_warnings): Fix prototype.
517
518 * cm.h (evalcost): Fix prototype.
519
520 * cm.c (evalcost): Fix arg type.
521
c532d349
DN
5222010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
523
524 * term.c (term_clear_mouse_face, Fidentity):
525 * syssignal.h (signal_handler_t):
526 * lisp.h (memory_warnings):
527 * coding.h (preferred_coding_system):
528 * cm.h (evalcost):
529 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
530
c0b36d46
EZ
5312010-07-02 Eli Zaretskii <eliz@gnu.org>
532
533 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
534 from prototypes.
535
536 * msdos.h (load_pixmap): Don't define away.
537
383e0970
J
5382010-07-02 Jan Djärv <jan.h.d@swipnet.se>
539
f57e2426
J
540 * lisp.h:
541 * atimer.h: Remove define for P_.
542
543 * alloc.c: Remove __P and P_ from .c and .m files.
544 * atimer.c:
545 * buffer.c:
546 * callint.c:
547 * category.c:
548 * charset.c:
549 * chartab.c:
550 * cm.c:
551 * coding.c:
552 * composite.c:
553 * data.c:
554 * dired.c:
555 * dispnew.c:
556 * doc.c:
557 * editfns.c:
558 * emacs.c:
559 * eval.c:
560 * fileio.c:
561 * filelock.c:
562 * fns.c:
563 * font.c:
564 * fontset.c:
565 * frame.c:
566 * ftfont.c:
567 * ftxfont.c:
568 * gmalloc.c:
569 * gtkutil.c:
570 * image.c:
571 * indent.c:
572 * intervals.c:
573 * keyboard.c:
574 * keymap.c:
575 * lread.c:
576 * marker.c:
577 * menu.c:
578 * minibuf.c:
579 * print.c:
580 * process.c:
581 * scroll.c:
582 * search.c:
583 * sound.c:
584 * strftime.c:
585 * syntax.c:
586 * sysdep.c:
587 * term.c:
588 * terminal.c:
589 * textprop.c:
590 * unexalpha.c:
591 * w32console.c:
592 * w32fns.c:
593 * w32font.c:
594 * w32menu.c:
595 * w32term.c:
596 * w32uniscribe.c:
597 * window.c:
598 * xdisp.c:
599 * xfaces.c:
600 * xfns.c:
601 * xfont.c:
602 * xftfont.c:
603 * xmenu.c:
604 * xselect.c:
605 * xterm.c: Likewise.
606
383e0970 607 Remove P_ and __P macros.
f57e2426
J
608 * atimer.h: Remove P_ and __P macros.
609 * buffer.h:
383e0970
J
610 * category.h:
611 * ccl.h:
612 * character.h:
613 * charset.h:
614 * cm.h:
615 * coding.h:
616 * composite.h:
617 * dispextern.h:
618 * disptab.h:
9e892c8d 619 * dosfns.h:
383e0970
J
620 * font.h:
621 * fontset.h:
622 * frame.h:
623 * gtkutil.h:
624 * indent.h:
625 * intervals.h:
626 * keyboard.h:
627 * keymap.h:
628 * lisp.h:
629 * macros.h:
630 * md5.h:
631 * menu.h:
632 * msdos.h:
633 * nsterm.h:
634 * puresize.h:
635 * region-cache.h:
636 * syntax.h:
637 * syssignal.h:
638 * systime.h:
639 * termhooks.h:
9e892c8d 640 * w32font.h:
383e0970
J
641 * w32term.h:
642 * widget.h:
643 * window.h:
644 * xgselect.h:
645 * xsettings.h:
646 * xterm.h: Likewise.
647
98601119
DN
6482010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
649
d9170db5
DN
650 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
651
98601119
DN
652 Cleanup old code.
653 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
654 * syssignal.h: Remove code for Lynx, not supported anymore.
655 * vm-limit.c: Remove unused code the depends on emacs not being
656 defined and NO_LIM_DATA being defined.
657 * mem-limits.h: Remove dead code.
658
1f984e12
J
6592010-07-01 Jan Djärv <jan.h.d@swipnet.se>
660
c49d071a
J
661 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
662
9d5405ec
J
663 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
664 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
665
7a18115b
J
666 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
667 parameters, they are already absolute.
668
581a8100
J
669 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
670 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
671
672 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
673
674 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
675 FRAME_TOOLBAR_HEIGHT.
676
1f984e12
J
677 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
678 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
679
c1ef4455
CY
6802010-06-30 Chong Yidong <cyd@stupidchicken.com>
681
682 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
683 check default-frame-alist.
684
ce8f5a9a
AS
6852010-06-30 Andreas Schwab <schwab@linux-m68k.org>
686
687 * process.c (create_process): Avoid using invalid file descriptors.
688
689 * callproc.c (child_setup): Avoid closing a file descriptor twice.
690
bf935339
J
6912010-06-30 Jan Djärv <jan.h.d@swipnet.se>
692
693 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
694 Improve documentation. Return font regardless of use_system_font.
695 (syms_of_xsettings): Improve documentation for font-use-system-font.
696
769e9d47
KH
6972009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
698
699 * xftfont.c (xftfont_open): Check font width one by one also when
700 spacing is dual.
701
702 * ftfont.c (ftfont_open): Ditto.
703
6259c2ec
GM
7042010-06-30 Glenn Morris <rgm@gnu.org>
705
a46007e9
GM
706 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
707
6259c2ec
GM
708 * Makefile.in (CANNOT_DUMP): Update for configure name change.
709
710 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
711 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
712 * s/darwin.h (SYSTEM_MALLOC):
713 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
714
5d1d3d04
J
7152010-06-29 Jan Djärv <jan.h.d@swipnet.se>
716
717 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
718 (ns_get_screen): Don't assign integer to f.
719 (Fx_display_color_cells): Declarations before statements.
720
e547b051
J
7212010-06-28 Jan Djärv <jan.h.d@swipnet.se>
722
5fc8e5bc
J
723 * xfns.c (x_default_font_parameter): Remove got_from_system
724 (Bug#6526).
725
e547b051
J
726 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
727 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
728 defines based on what configure finds.
729
730 * xterm.c (XTflash): Use gtk_widget_get_window.
731 (xg_scroll_callback): Use gtk_adjustment_get_upper and
732 gtk_adjustment_get_page_size.
733 (handle_one_xevent): Use gtk_widget_get_mapped.
734 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
735 messages.
736
737 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
738
739 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
740 HAVE_GTK_FILE_SELECTION_NEW.
741
742 * gtkutil.c (xg_display_open, xg_display_close): Remove
743 HAVE_GTK_MULTIDISPLAY, it is always defined.
744 (xg_display_open): Return type is void.
745 (gtk_widget_set_has_window)
746 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
747 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
748 (gtk_adjustment_set_page_increment)
749 (gtk_adjustment_get_step_increment): #define these if not found
750 by configure.
751 (remove_submenu): New define based on Gtk+ version.
752 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
753 gtk_widget_get_window.
754 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
755 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
756 (create_dialog): Use gtk_dialog_get_action_area and
757 gtk_dialog_get_content_area.
758 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
759 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
760 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
761 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
762 g_object_ref and g_object_unref.
763 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
764 gtk_widget_get_sensitive.
765 (xg_update_submenu): Use remove_submenu.
766 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
767 properties instead to get old x and y position.
768 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
769 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 770 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
771 (xg_get_tool_bar_widgets): New function.
772 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
773 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
774 (toolbar_set_orientation): New #define based on if configure
775 finds gtk_orientable_set_orientation.
776 (xg_create_tool_bar): Call toolbar_set_orientation.
777 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
778 instead of gtk_box_pack_start_defaults.
779
b9229673
CY
7802010-06-28 Chong Yidong <cyd@stupidchicken.com>
781
782 * cmds.c (Fdelete_backward_char): Move into Lisp.
783
bbc803b0
DN
7842010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
785
786 * s/freebsd.h (BSD4_2): Remove redundant definition.
787 bsd-common.h defines it already.
788
6431f2e6
CY
7892010-06-27 Chong Yidong <cyd@stupidchicken.com>
790
791 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
792 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
793 tool-bar-mode, which are now set using these X resources at
794 startup, to determine the defaults (Bug#2249).
795
796 * w32fns.c (Fx_create_frame):
797 * nsfns.m (Fx_create_frame): Likewise.
798
799 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
800
8c079ebb
JB
8012010-06-24 Juanma Barranquero <lekktu@gmail.com>
802
803 * gtkutil.c (xg_update_scrollbar_pos):
804 Avoid C99 mid-block variable declaration.
805
e9b7ab96
JD
8062010-06-22 Jan Djärv <jan.h.d@swipnet.se>
807
bc869eca
JD
808 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
809
2b7e356a 810 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
811
812 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
813 if height is less than scroll bar min size.
814 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
815
e9b7ab96
JD
816 * xfns.c (x_default_font_parameter): Try to open font from system
817 before using it (bug#6478). Rename got_from_gconf to got_from_system.
818
32a679fd
JD
8192010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
820
821 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
822
70c4cfbb
EZ
8232010-06-20 Eli Zaretskii <eliz@gnu.org>
824
825 * xdisp.c (try_scrolling): When scroll-conservatively is set to
826 most-positive-fixnum, be extra accurate when scrolling window
827 start, to avoid missing the cursor line.
828
ad5a12b5
EZ
8292010-06-19 Eli Zaretskii <eliz@gnu.org>
830
831 * xdisp.c (try_scrolling): Compute the limit for searching point
832 in forward scroll from scroll_max, instead of an arbitrary limit
833 of 10 screen lines. See
834 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
835 and
836 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
837 for details.
838
2a64315a 8392010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
840
841 * editfns.c (Fbyte_to_string): Pacify compiler.
842
288cf4e9
SM
8432010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
844
845 * lread.c (read1): Phase out old-style backquotes a bit more.
846
6e6e5760
EZ
8472010-06-12 Eli Zaretskii <eliz@gnu.org>
848
cbc4fd20
EZ
849 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
850 bidimirror.h.
851
852 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
853
317fbf33
EZ
854 * bidi.c (bidi_initialize): Remove explicit initialization of
855 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 856 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 857 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
858
859 * biditype.h: New file.
860
cbc4fd20
EZ
861 * bidimirror.h: New file.
862
6e6e5760
EZ
863 * window.c (syms_of_window): Doc fix (bug#6409).
864
4176cba2
RF
8652010-06-12 Romain Francoise <romain@orebokech.com>
866
867 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
868 ediff-hook.
869
cb4bfcb5
GM
8702010-06-10 Glenn Morris <rgm@gnu.org>
871
64c60c2f
GM
872 * editfns.c (Fbyte_to_string): Pacify compiler.
873
cb4bfcb5
GM
874 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
875
e454a4a3
SM
8762010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
877
878 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
879 Check `object's type before accessing its guts.
880
c1b1acc2
DN
8812010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
882
883 * s/usg5-4.h: Fix previous change.
884 Suggested by Lawrence Mitchell <wence@gmx.li>
885
657d4c0b
AS
8862010-06-08 Andreas Schwab <schwab@linux-m68k.org>
887
888 * minibuf.c (Fall_completions): Add more checks.
889
9b27fd9f
JB
8902010-06-08 Juanma Barranquero <lekktu@gmail.com>
891
892 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
893
a99ebb40
DN
8942010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
895
d7c5d87d
DN
896 * lread.c (X_OK): Remove, unused.
897
0263a941
DN
898 * dispnew.c: Remove obsolete comment.
899
a99ebb40
DN
900 Remove INCLUDED_FCNTL.
901 * xterm.c (INCLUDED_FCNTL):
902 * callproc.c (INCLUDED_FCNTL):
903 * alloc.c (INCLUDED_FCNTL):
904 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
905 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
906
13b5221f
MR
9072010-06-07 Martin Rudalics <rudalics@gmx.at>
908
909 * window.c (Fselect_window): Move `record_buffer' up to the
910 beginning of this function, so the buffer gets recorded
911 even if the selected window does not change.
912 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
913
5220357f
JB
9142010-06-07 Juanma Barranquero <lekktu@gmail.com>
915
916 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
917 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
918
3085237c
DN
9192010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
920
921 Remove BSTRING related code, all platforms define it.
922 * s/usg5-4.h (BSTRING): Remove definition.
923 * s/template.h (BSTRING):
924 * s/msdos.h (BSTRING):
925 * s/ms-w32.h (BSTRING):
926 * s/hpux10-20.h (BSTRING):
927 * s/gnu-linux.h (BSTRING):
928 * s/darwin.h (BSTRING):
929 * s/cygwin.h (BSTRING):
930 * s/bsd-common.h (BSTRING):
931 * s/aix4-2.h (BSTRING): Likewise.
932 * sysdep.c: Remove code depending on BSTRING not being defined.
933
409f2919
JB
9342010-06-05 Juanma Barranquero <lekktu@gmail.com>
935
936 Remove obsolete macro BASE_LEADING_CODE_P.
937 * character.h (BASE_LEADING_CODE_P): Remove.
938 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
939 * buffer.c (Fset_buffer_multibyte):
940 * indent.c (scan_for_column, compute_motion):
941 * insdel.c (count_combining_before, count_combining_after):
942 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
943
087fc47a
JB
9442010-06-04 Juanma Barranquero <lekktu@gmail.com>
945
946 Turn `directory-sep-char' into a noop.
947
948 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
949 (DIRECTORY_SEP): Define unconditionally.
950
951 * s/ms-w32.h (DIRECTORY_SEP): Remove.
952
953 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
954 call dostounix_filename directly.
955
956 * fileio.c (CORRECT_DIR_SEPS): Remove.
957 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
958 (Fsubstitute_in_file_name): Use dostounix_filename instead.
959 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
960 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
961
962 * w32proc.c (CORRECT_DIR_SEPS): Remove.
963 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
964
0eb7675e
AS
9652010-06-03 Andreas Schwab <schwab@linux-m68k.org>
966
967 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 968 address. (Bug#6346)
0eb7675e 969
78edd3b7
JB
9702010-06-03 Juanma Barranquero <lekktu@gmail.com>
971
972 * ccl.c (Fccl_program_p): Fix typo in docstring.
973
eb697db5
DN
9742010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
975
976 Move UNEXEC definition to autoconf.
977 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
978 * s/sol2-10.h (UNEXEC):
979 * s/irix6-5.h (UNEXEC):
980 * s/hpux10-20.h (UNEXEC):
981 * s/gnu-linux.h (UNEXEC):
982 * s/darwin.h (UNEXEC):
983 * s/cygwin.h (UNEXEC):
984 * s/bsd-common.h (UNEXEC):
985 * s/aix4-2.h (UNEXEC):
986 * m/alpha.h (UNEXEC): Likewise.
987 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
988
aa3830c4
JB
9892010-06-03 Juanma Barranquero <lekktu@gmail.com>
990
991 Remove obsolete pre-unicode2 macros.
992 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
993 * composite.c (composition_reseat_it):
994 * data.c (Faset):
995 * fns.c (Ffillarray):
996 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
997 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
998
d234d13e
JL
9992010-06-03 Juri Linkov <juri@jurta.org>
1000
1001 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1002 (Fswitch_to_buffer): Remove unused variable `err'.
1003
0d4bcf4d
GM
10042010-06-03 Glenn Morris <rgm@gnu.org>
1005
e23dc1e2
GM
1006 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1007
05b09564
GM
1008 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1009 now that AH_BOTTOM does it.
1010
824e2978
GM
1011 * m/hp800.h (HAVE_ALLOCA):
1012 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1013
0d4bcf4d
GM
1014 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1015 Remove NOT_C_CODE tests, it is always true now.
1016
c55d2abf
DN
10172010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1018
08a494a3
DN
1019 Fix config.h includes.
1020 * xsettings.c:
1021 * xgselect.c:
1022 * nsterm.m:
1023 * nsselect.m:
1024 * nsimage.m:
1025 * nsfont.m:
1026 * nsfns.m:
1027 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1028 other files do.
1029
75934b1d
DN
1030 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1031
9f32a766
DN
1032 * s/sol2-6.h: Remove obsolete comments.
1033
c55d2abf
DN
1034 Remove unnecessary alloca.h includes.
1035 * keymap.c: Do not include alloca.h, config.h does that.
1036 * sysdep.c: Likewise. Do not define fwrite, not used.
1037
06ac62b4
SM
10382010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1039
1040 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1041 the HAVE_TERMIO where it belongs (bug#6149).
1042
1ab8293c
SM
10432010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1044
1045 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1046 of bug#6305).
1047
6dcfd253
EZ
10482010-05-30 Eli Zaretskii <eliz@gnu.org>
1049
1050 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1051 state is always cached (bug#6306).
1052
6d26bbb2
EZ
10532010-05-29 Eli Zaretskii <eliz@gnu.org>
1054
06fa4a23
EZ
1055 Fix cursor motion in bidi-reordered continued lines.
1056 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1057 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1058 over continuation lines in bidi-reordered buffers. Return
1059 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1060 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1061
f5783df3
MA
10622010-05-28 Michael Albinus <michael.albinus@gmx.de>
1063
1064 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1065
7d56b2dd
KH
10662010-05-28 Kenichi Handa <handa@m17n.org>
1067
1068 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1069 Don't sheck SPEC if it is nil.
1070 (font_list_entities): Call font_delete_unmatched if
b925d231 1071 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1072
e58d4ff7
GM
10732010-05-28 Glenn Morris <rgm@gnu.org>
1074
1075 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1076
f1a5d776
CY
10772010-05-27 Chong Yidong <cyd@stupidchicken.com>
1078
1079 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1080 whether to trash.
1081 (internal_delete_file, Frename_file): Callers changed.
1082 (delete_by_moving_to_trash): Doc fix.
1083 (Fdelete_directory_internal): Don't move to trash.
1084
1085 * callproc.c (delete_temp_file):
1086 * buffer.c (Fkill_buffer): Callers changed.
1087
1088 * lisp.h: Update prototype.
1089
f44a59e6
CY
10902010-05-27 Chong Yidong <cyd@stupidchicken.com>
1091
1092 * xdisp.c (redisplay_window): After redisplay, check if point is
1093 still valid before setting it (Bug#6177).
1094
81ac4f35
GM
10952010-05-27 Glenn Morris <rgm@gnu.org>
1096
1097 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1098 Convert comments to Makefile format.
1099
1100 * Makefile.in (bootstrap-clean): No more Makefile.c.
1101
ccd89fb3
GM
11022010-05-26 Glenn Morris <rgm@gnu.org>
1103
90278cb6
GM
1104 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1105 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1106
ccd89fb3
GM
1107 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1108 Remove.
1109 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1110
b7050583
KH
11112010-05-26 Kenichi Handa <handa@m17n.org>
1112
1113 * composite.c (composition_compute_stop_pos): Fix condition for
1114 backward scanning.
1115
e5458003
GM
11162010-05-25 Glenn Morris <rgm@gnu.org>
1117
c345fe90
GM
1118 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1119 Move before TEMACS_LDFLAGS.
1120 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1121 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1122
2e0689ab
GM
1123 * Makefile.in (NOT_C_CODE): No longer define.
1124 (config.h): No longer include.
1125
8009a5e8
GM
1126 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1127 variables it may reference.
1128
e5458003
GM
1129 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1130 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1131
10f72a37
KH
11322010-05-25 Kenichi Handa <handa@m17n.org>
1133
1134 * dispextern.h (struct composition_it): New members rule_idx and
1135 charpos.
1136
1137 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1138 that the character positions of IT point the last character of the
1139 current grapheme cluster.
1140 (next_element_from_composition): Don't change character positions
1141 of IT.
1142 (append_composite_glyph): Set glyph->charpos to
1143 it->cmp_it.charpos.
1144
1145 * composite.c (autocmp_chars): Change the first argument to RULE,
1146 and try composition with RULE only.
1147 (composition_compute_stop_pos): Record the index number of the
1148 composition rule in CMP_IT->rule_idx.
1149 (composition_reseat_it): Call autocmp_chars repeatedly until the
1150 correct rule of the composition is found.
1151 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1152 is at the last character of the current grapheme cluster when
1153 CMP_IT->reversed_p is nonzero.
1154
171eda53 11552010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1156
171eda53
SM
1157 * editfns.c (Fbyte_to_string): New function.
1158
66a9f7f4
SM
11592010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1160
1161 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1162 Suggested by Masatake YAMATO <yamato@redhat.com>.
1163
d8c315d1
EZ
11642010-05-23 Eli Zaretskii <eliz@gnu.org>
1165
171eda53 1166 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1167
f5b416d2 11682010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1169
1170 * s/netbsd.h: If terminfo is found, use it in preference to
1171 termcap. (Bug#6190) [Backport from trunk]
1172
0416466c
EZ
11732010-05-19 Eli Zaretskii <eliz@gnu.org>
1174
11117830 1175 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1176
1177 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1178 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1179 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1180 and maxpos members instead of start.pos and end.pos, respectively.
1181
1182 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1183 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1184 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1185 (try_window_reusing_current_matrix, try_window_id):
1186 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1187 (init_from_display_pos, init_iterator): Use EMACS_INT for
1188 character and byte positions.
66a9f7f4 1189 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1190 arguments for minimum and maximum buffer positions seen by
1191 display_line for this row. Don't use iterator to find the
1192 position following the maximum one; instead, increment the
11117830
EZ
1193 position found by display_line directly. Fix logic; eol_pos
1194 should be tested before the rest. Handle the case of characters
1195 delivered from display vector (bug#6036). Fix tests related to
1196 it->method. Handle the truncated_on_right_p rows.
1197 (RECORD_MAX_MIN_POS): New macro.
1198 (display_line): Use it to record the minimum and maximum buffer
1199 positions for glyphs in the row being assembled. Record the
1200 position of the newline that terminates the line. If word wrap is
1201 in effect, restore minimum and maximum positions seen up to the
1202 wrap point, when iterator returns to it.
1203 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1204 row and cursor not already at point. Restore original pre-bidi
1205 code for unidirectional buffers.
d36fe237
EZ
1206
1207 * dispnew.c (increment_row_positions, check_matrix_invariants):
1208 Increment and check row->start.pos and row->end.pos, in addition
1209 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1210
11117830
EZ
1211 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1212 Display truncated_on_left_p and truncated_on_right_p flags.
1213 Formatting fixes.
1214 (pmtxrows): Display the ordinal number of each row. Don't display
1215 rows beyond the last one.
1216
1217 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1218 it is not copied by bidi_copy_it.
1219
6e83d800
EZ
12202010-05-22 Eli Zaretskii <eliz@gnu.org>
1221
1222 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1223 (Bug#6237)
1224
110683ad
CY
12252010-05-22 Chong Yidong <cyd@stupidchicken.com>
1226
1227 * image.c (Fimage_flush): Rename from image-refresh.
1228
98fe5161
CY
12292010-05-21 Chong Yidong <cyd@stupidchicken.com>
1230
1231 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1232 just one window.
1233
1234 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1235 (clear_image_cache): If the number of cached images is unusually
1236 large, decrease the cache eviction delay (Bug#6230).
1237
e8752c66
GM
12382010-05-21 Glenn Morris <rgm@gnu.org>
1239
66dbf213
GM
1240 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1241 Move these rules to ns.mk.
1242 * ns.mk: New file.
1243
04384b2d
GM
1244 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1245
e8752c66
GM
1246 * Makefile.in (CANNOT_DUMP): New, set by configure.
1247 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1248
2e2bbddb
JL
12492010-05-20 Juri Linkov <juri@jurta.org>
1250
1251 * fileio.c (Fdelete_file): Change interative spec to use
1252 `read-file-name' like in `find-file-read-args' where the default
1253 value is `default-directory' instead of `buffer-file-name'.
1254 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1255
31c4aaf6
KR
12562010-05-20 Kevin Ryde <user42@zip.com.au>
1257
1258 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1259 (Voverriding_terminal_local_map, Vsystem_key_alist)
1260 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1261
9d5cf9b6
GM
12622010-05-20 Glenn Morris <rgm@gnu.org>
1263
1264 * Makefile.in (DEPDIR): New constant.
1265 (DEPFLAGS): Set with configure, not cpp.
1266 (MKDEPDIR): New, set by configure.
1267 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1268 (clean): Use $DEPDIR.
1269 (deps_frag): Include from configure.
1270 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1271 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1272
ead6f8f5
EZ
1273 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1274 reallocation of the cache. (Bug#6210)
1275
7f34aec3
GM
12762010-05-19 Glenn Morris <rgm@gnu.org>
1277
d494e8f2
GM
1278 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1279
c1d0dcfd
GM
1280 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1281 (GNULIB_VAR): Remove.
1282 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1283
1284 * m/ibms390x.h (LINKER):
1285 * m/macppc.h (LINKER) [GNU_LINUX]:
1286 * s/aix4-2.h (ORDINARY_LINK):
1287 * s/cygwin.h (LINKER):
1288 * s/darwin.h (ORDINARY_LINK):
1289 * s/gnu.h (ORDINARY_LINK):
1290 * s/netbsd.h (LINKER):
1291 * s/usg5-4.h (ORDINARY_LINK):
1292 Move to configure.
1293
7f34aec3
GM
1294 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1295
754790b6
CY
12962010-05-18 Chong Yidong <cyd@stupidchicken.com>
1297
1298 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1299 prevent stack overflow if number of arguments is too large
1300 (Bug#6214).
1301
161e44d1
JB
13022010-05-18 Juanma Barranquero <lekktu@gmail.com>
1303
1304 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1305
be4ff9da
GM
13062010-05-18 Glenn Morris <rgm@gnu.org>
1307
9539dc5d
GM
1308 * s/gnu-linux.h: Combine two conditionals.
1309
1310 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1311 $(POST_ALLOC_OBJ).
1312
40dc6bf4
GM
1313 * Makefile.in (RALLOC_OBJ): New, set by configure.
1314 (rallocobj): Replace with the previous variable.
1315 (otherobj): Use $RALLOC_OBJ.
1316
1317 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1318 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1319
be4ff9da
GM
1320 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1321 (gmallocobj, vmlimitobj): Replace with previous two variables.
1322 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1323
16455a85
GM
13242010-05-17 Glenn Morris <rgm@gnu.org>
1325
1326 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1327 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1328
5fdb7468
GM
13292010-05-16 Glenn Morris <rgm@gnu.org>
1330
7ca1f3f9
GM
1331 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1332
7541dad5
GM
1333 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1334
da53fab9
GM
1335 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1336 trailing "/".
1337
b02a6645
GM
1338 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1339 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1340
8877ca0f
GM
1341 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1342 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1343 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1344 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1345 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1346
5fdb7468
GM
1347 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1348 Remove ${STARTFLAGS}, nothing ever sets it.
1349
95adb4b1
DN
13502010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1351
1352 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1353
676b6304
GM
13542010-05-16 Glenn Morris <rgm@gnu.org>
1355
9beab9ce
GM
1356 * Makefile.in (LIBX_BASE): Always define.
1357
8a95f0e7
GM
1358 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1359
676b6304
GM
1360 * Makefile.in (LIBXT): Always define.
1361
6e546d18
GM
13622010-05-15 Glenn Morris <rgm@gnu.org>
1363
4235ca47 1364 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1365
6e546d18
GM
1366 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1367 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1368
8c5ff6dd
KR
13692010-05-15 Ken Raeburn <raeburn@raeburn.org>
1370
560bb7ae 1371 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1372 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1373
8b4eb796
KR
1374 * emacs.c (main): Initialize initial-environment and
1375 process-environment before generating from env, not after.
1376
8c5ff6dd
KR
1377 Handle --version reasonably in CANNOT_DUMP configuration.
1378 * emacs.c (emacs_version, emacs_copyright): New string variables.
1379 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1380 (syms_of_emacs): Defvar them, and initialize them from the C
1381 string variables.
1382 (main): If initialization hasn't been done, print initial version
1383 info from the C strings, instead of starting an interactive session.
1384
dbd3f723
EZ
13852010-05-15 Eli Zaretskii <eliz@gnu.org>
1386
d20e1419
EZ
1387 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1388 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1389 (bidi_paragraph_init): Remove redundant assertion that we are at
1390 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1391
1392 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1393 (syms_of_xdisp): Defsubr it.
1394
d36fe237
EZ
1395 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1396
dbd3f723
EZ
1397 * Makefile.in: Fix MSDOS-related comments.
1398
02be533b
GM
13992010-05-15 Glenn Morris <rgm@gnu.org>
1400
1a82cca9
GM
1401 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1402 (really-lwlib, really-oldXMenu): Always define.
1403 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1404
3df7b338
GM
1405 * Makefile.in: Simplify cpp conditional.
1406
2b5f541b
GM
1407 * Makefile.in (${ns_appdir}): Simplify using umask.
1408
02be533b
GM
1409 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1410
4e2db1fe
SM
14112010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1412
1413 * eval.c (specbind): Remove left-over duplicate test.
1414 Disallow let-binding frame-local vars. Add comment.
1415
4b292a22
EZ
14162010-05-14 Eli Zaretskii <eliz@gnu.org>
1417
2fe72643 1418 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1419 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1420 (bidi_init_it): Call it.
1421 (bidi_cache_iterator_state): Enlarge the cache if needed.
1422
4e2db1fe 1423 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1424 bidi_get_next_char_visually. All callers changed.
1425
82ebc97b
KH
14262010-05-14 Kenichi Handa <handa@m17n.org>
1427
1428 * dispextern.h (struct composition_it): New member reversed_p.
1429
1430 * composite.c (composition_compute_stop_pos): Search backward if
1431 ENDPOS < CHARPOS.
1432 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1433 Set CMP_IT->reversed_p.
b4b6e17e 1434 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1435
4e2db1fe
SM
1436 * xdisp.c (set_iterator_to_next):
1437 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1438 scanning backward. Call composition_compute_stop_pos if scan
1439 direction is changed.
1440 (next_element_from_buffer): Call composition_compute_stop_pos with
1441 negative ENDPOS if we are scanning backward.
1442 (next_element_from_composition): Pay attention to
1443 IT->cmp_it.reversed_p.
1444
0e5d7800
KH
14452010-05-14 Kenichi Handa <handa@m17n.org>
1446
560bb7ae 1447 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1448
cb027b32
GM
14492010-05-14 Glenn Morris <rgm@gnu.org>
1450
177b0288
GM
1451 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1452
fbc00890
GM
1453 * Makefile.in (mktime, X11, register): Move undefs to configure.
1454
f14d1dfd
GM
1455 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1456 (MSDOS_X_OBJ): New variable.
1457 (MSDOS_SUPPORT_REAL): New constant.
1458 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1459 (obj): Use MSDOS_X_OBJ.
1460 (lisp): Use MSDOS_SUPPORT as a variable.
1461
11842bd8
GM
1462 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1463 (GPM_MOUSE_SUPPORT): Now it's a constant.
1464 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1465 not cpp.
1466
489d31a4 1467 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1468 (ns_appresdir): Remove, unused.
e20f1f07 1469
489d31a4
GM
1470 * Makefile.in (SHELL): Move outside cpp section.
1471
cb027b32
GM
1472 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1473
5a903aa9
GM
14742010-05-13 Glenn Morris <rgm@gnu.org>
1475
3369c79f
GM
1476 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1477 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1478
d5e982a6
GM
1479 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1480 HAVE_WINDOW_SYSTEM must be too.
1481
6192e163
GM
1482 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1483 (lisp): Remove WINNT_SUPPORT.
1484
472c5d6b
GM
1485 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1486 Let configure set these variables (to empty) in this case as well.
1487
0116466b
GM
1488 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1489 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1490
5a903aa9
GM
1491 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1492 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1493 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1494 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1495 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1496 the values output by configure.
5a903aa9
GM
1497 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1498
1a0d7c06
GM
14992010-05-12 Glenn Morris <rgm@gnu.org>
1500
b5457f14
GM
1501 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1502 (LINKER_WAS_SPECIFIED): Remove.
1503
1a0d7c06
GM
1504 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1505 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1506 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1507 * s/cygwin.h (LIB_GCC):
1508 * s/freebsd.h (LIB_GCC):
1509 * s/gnu-linux.h (LIB_GCC):
1510 * s/msdos.h (LIB_GCC):
1511 * s/netbsd.h (LIB_GCC):
1512 Move to configure.
1513
3ffd4615 15142010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1515
1516 * ftfont.c: Fix incorrect parentheses of #if condition for
1517 definining M17N_FLT_USE_NEW_FEATURE.
1518
acddf8ae
GM
15192010-05-11 Glenn Morris <rgm@gnu.org>
1520
1521 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1522 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1523
ae5e04fa
EZ
15242010-05-10 Eli Zaretskii <eliz@gnu.org>
1525
1526 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1527 unibyte buffers. See
1528 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1529
7490175b
GM
15302010-05-10 Glenn Morris <rgm@gnu.org>
1531
97efb629
GM
1532 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1533 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1534 (LIBES): Use LIBS_SYSTEM as a variable.
1535 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1536 * s/aix4-2.h (LIBS_SYSTEM):
1537 * s/freebsd.h (LIBS_SYSTEM):
1538 * s/hpux10-20.h (LIBS_SYSTEM):
1539 * s/sol2-6.h (LIBS_SYSTEM):
1540 * s/unixware.h (LIBS_SYSTEM):
1541 Move to configure.
1542
7490175b
GM
1543 * s/aix4-2.h (MAIL_USE_LOCKF):
1544 * s/bsd-common.h (MAIL_USE_FLOCK):
1545 * s/darwin.h (MAIL_USE_FLOCK):
1546 * s/gnu-linux.h (MAIL_USE_FLOCK):
1547 * s/irix6-5.h (MAIL_USE_FLOCK):
1548 * s/template.h (MAIL_USE_FLOCK):
1549 Move to configure.
1550
0235128c 15512010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1552
1553 * Version 23.2 released.
1554
0235128c 15552010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1556
1557 * composite.c (autocmp_chars): Save point as marker before calling
1558 auto-composition-function (Bug#5984).
1559
1560 * lisp.h (restore_point_unwind): Add prototype.
1561
1562 * fileio.c (restore_point_unwind): Remove static attribute.
1563
0235128c 15642010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1565
1566 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1567 new feature of libotf and m17n-flt.
0235128c
SM
1568 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1569 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1570 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1571 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1572 that OUT is NULL. Use OTF_drive_gsub_with_log and
1573 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1574 OTF_drive_gpos.
1575 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1576 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1577 Setup mflt_enable_new_feature and mflt_try_otf.
1578
4721152c
J
15792010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1580
1581 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1582
1583 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1584 box and toolbar (Bug #6139).
1585 (xg_create_tool_bar): Remove comment (Bug #6139).
1586 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1587 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1588
ee0a16cf
JB
15892010-05-08 Juanma Barranquero <lekktu@gmail.com>
1590
1591 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1592 Update dependencies.
1593
96d79611
EZ
15942010-05-08 Eli Zaretskii <eliz@gnu.org>
1595
1596 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1597 R2L lines.
1598
40c17879
GM
15992010-05-08 Glenn Morris <rgm@gnu.org>
1600
7b42b29f
GM
1601 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1602
40c17879
GM
1603 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1604 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1605 (termcapobj): Replace with TERMCAP_OBJ.
1606 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1607 (LIBES): Use LIBS_TERMCAP as a variable.
1608
1609 * s/freebsd.h (osreldate.h): No longer include, since this file
1610 does not use __FreeBSD_version any more.
1611
1612 * s/aix4-2.h (TERMINFO):
1613 * s/cygwin.h (TERMINFO):
1614 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1615 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1616 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1617 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1618 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1619 * s/irix6-5.h (TERMINFO):
1620 * s/netbsd.h (LIBS_TERMCAP):
1621 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1622 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1623 * s/usg5-4.h (TERMINFO):
1624 Move to configure.
1625
94b612ad
SM
16262010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1627
1628 * eval.c (unbind_to): Don't unbind a local binding into the global
1629 binding when the local binding disappeared. Inversely, don't unbind
1630 a global binding into a newly created local binding.
1631 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1632 can specify the frame to use, when applicable. Adjust callers.
1633
15e12598 16342010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1635 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1636
1637 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1638
f724825e
EZ
16392010-05-07 Eli Zaretskii <eliz@gnu.org>
1640
5cba3209
EZ
1641 * w32fns.c: Include w32.h.
1642 (Fw32_shell_execute): Decode the error message before passing it
1643 to `error'. (Bug#6126)
1644
d16bdfc3
EZ
1645 * msdos.c (dos_set_window_size):
1646 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1647 instead of `XSYMBOL (foo)->value'.
1648
59d93e87
EZ
16492010-05-07 Eli Zaretskii <eliz@gnu.org>
1650
9fdec8bc
EZ
1651 Fix the MS-DOS build, broken by autoconfiscation.
1652
1653 * Makefile.in: Don't use Make-style comments past the "start of
1654 cpp stuff" line.
1655 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1656
1657 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1658 edited directly by msdos/sed1v2.inp).
f724825e 1659
2f86b22b
GM
16602010-05-07 Glenn Morris <rgm@gnu.org>
1661
1662 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1663 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1664 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1665 move out of cpp section.
1666 * s/freebsd.h (LD_SWITCH_SYSTEM):
1667 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1668 * s/netbsd.h (LD_SWITCH_SYSTEM):
1669 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1670
49ebbd65
DN
16712010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1672
1673 Define LIB_STANDARD and START_FILES using autoconf.
1674 * s/usg5-4.h (LIB_STANDARD):
1675 * s/netbsd.h (START_FILES):
1676 * s/irix6-5.h (LIB_STANDARD):
1677 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1678 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1679 * s/freebsd.h (START_FILES):
1680 * s/darwin.h (START_FILES):
1681 * s/cygwin.h (START_FILES):
1682 * s/aix4-2.h (LIB_STANDARD):
1683 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1684 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1685 autoconf, not cpp.
1686
d43c06d6
DN
16872010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1688
28823648
DN
1689 Remove NEED_BSDTTY and NEED_UNISTD_H.
1690 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1691 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1692 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1693 <sys/ptyio.h> and <unistd.h>.
1694
aca00430
DN
1695 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1696
d43c06d6
DN
1697 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1698 * s/gnu.h (START_FILES): Remove empty definition.
1699
3e56b11d
JD
17002010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1701
1702 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1703
e3cf0cde
GM
17042010-05-06 Glenn Morris <rgm@gnu.org>
1705
1706 * Makefile.in (CPP, LN_S): Remove unused variables.
1707
774b9a60
SM
17082010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1709
1710 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1711
4ab92842
LM
17122010-05-05 Lawrence Mitchell <wence@gmx.li>
1713
1714 * m/sparc.h: Fix typo in earlier change.
1715
178f2507
SM
17162010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1717
1718 Misc tweaks.
1719 * eval.c (Fdefvaralias): Remove unintended nested if.
1720 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1721
80f00217 17222010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1723
1724 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1725
ef03a4e6
DN
17262010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1727
58eb6cf0
DN
1728 Remove BSD_PGRPS.
1729 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1730 * s/gnu-linux.h (BSD_PGRPS): Remove.
1731 * term.c (dissociate_if_controlling_tty):
1732 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1733 (init_sys_modes, reset_sys_modes):
1734 * emacs.c (main):
1735 * callproc.c (Fcall_process, child_setup): Remove code depending
1736 on BSD_PGRPS.
1737
ef03a4e6
DN
1738 Remove POSIX_SIGNALS.
1739 * s/usg5-4.h (POSIX_SIGNALS):
1740 * s/netbsd.h (POSIX_SIGNALS):
1741 * s/msdos.h (POSIX_SIGNALS):
1742 * s/ms-w32.h (POSIX_SIGNALS):
1743 * s/hpux11.h (POSIX_SIGNALS):
1744 * s/gnu.h (POSIX_SIGNALS):
1745 * s/gnu-linux.h (POSIX_SIGNALS):
1746 * s/freebsd.h (POSIX_SIGNALS):
1747 * s/darwin.h (POSIX_SIGNALS):
1748 * s/cygwin.h (POSIX_SIGNALS):
1749 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1750 * s/unixware.h:
1751 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1752 * process.c (create_process):
1753 * syssignal.h:
1754 * sysdep.c (wait_for_termination, init_signals):
1755 * process.c (create_process):
1756 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1757 remove all code that assumes the contrary.
1758
49628785
GM
17592010-05-04 Glenn Morris <rgm@gnu.org>
1760
27a2cdfc
GM
1761 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1762 variable.
1763 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1764 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1765 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1766 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1767 LD_SWITCH_SYSTEM_tmp.
1768 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1769 New variables, set by configure.
1770
eb21eab5
GM
1771 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1772 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1773 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1774 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1775 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1776
49628785
GM
1777 * s/aix4-2.h (C_SWITCH_SYSTEM):
1778 * m/alpha.h (C_SWITCH_MACHINE):
1779 Move to configure.in.
1780 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1781 New variables, set by configure.
1782 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1783 $c_switch_machine and $c_switch_system.
1784
7dff330b
DN
17852010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1786
1787 * s/hpux10-20.h (LIB_STANDARD): New definition.
1788 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1789 on it, not used anymore.
1790
53967e09
CY
17912010-05-03 Chong Yidong <cyd@stupidchicken.com>
1792
1793 * eval.c (internal_condition_case_n): Rename from
1794 internal_condition_case_2.
1795 (internal_condition_case_2): New function.
1796
1797 * xdisp.c (safe_call): Use internal_condition_case_n.
1798
1799 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1800 (internal_delete_file, Frename_file): Callers changed.
1801
1802 * buffer.c (Fkill_buffer):
1803 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1804
1805 * lisp.h: Update prototypes.
1806
3dee6fdb
GM
18072010-05-03 Glenn Morris <rgm@gnu.org>
1808
1809 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1810 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1811 (LIBXT): Set with configure, not cpp.
1812 (LIBX): Remove.
1813 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1814
a101e0fb
DN
18152010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1816
1817 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1818 The FreeBSD is not needed, the default works, Solaris version is
1819 not needed, and the remaining case is not supported by configure.
1820
f63d0028
JD
18212010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1822
1823 * xsmfns.c (CHDIR_OPT): New define.
1824 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1825 restarting emacs.
1826
1827 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1828 shut_down_emacs.
1829
1830 * emacs.c (USAGE1): Mention --chdir.
1831 (main): Handle --chdir.
1832 (standard_args): Add --chdir.
1833 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1834 #5552).
1835
e4814a9f
DN
18362010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1837
cd03c74a
DN
1838 Remove LD_SWITCH_MACHINE.
1839 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1840 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1841
c3a398a1
DN
1842 Clean up IRIX code.
1843 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1844 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1845
87e7285c
DN
1846 Clean up AIX code.
1847 * m/ibmrs6000.inp: Remove file, unused.
1848 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1849 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1850 definition ...
1851 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1852
80f00217
JB
1853 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1854 unused.
e4814a9f 1855
59ca28de
EZ
18562010-05-01 Eli Zaretskii <eliz@gnu.org>
1857
197daef4
EZ
1858 Emulate POSIX_SIGNALS on MS-Windows.
1859
1860 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1861 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1862
1863 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1864 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1865 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1866
80f00217
JB
1867 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1868 New stubs.
197daef4 1869
af7c7572
EZ
1870 Miscellaneous fixes of bidi display.
1871
59ca28de
EZ
1872 * xdisp.c (find_row_end): New function, refactored from display_line.
1873 (display_line): Use it.
017ea819
EZ
1874 (extend_face_to_end_of_line): In almost-filled rows, extend only
1875 if the row is R2L and not continued.
166e930d 1876 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1877 Preserve overlay and string info in row->end.
166e930d
EZ
1878 (insert_left_trunc_glyphs): Support addition of left truncation
1879 glyphs to R2L rows.
b47e0dcf 1880 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1881 glyph between adjacent windows. Fix a crash when a display string
1882 is continued to the next line. Don't return zero if cursor was
1883 found by `cursor' property of a display string.
b47e0dcf
EZ
1884 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1885 test for that explicitly.
59ca28de 1886
7acac9f4
GM
18872010-05-01 Glenn Morris <rgm@gnu.org>
1888
1889 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1890 for clarity.
1891 (OTHER_OBJ): Remove.
1892 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1893 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1894
45841e65
KK
18952010-05-01 Karel Klíč <kklic@redhat.com>
1896
1897 * fileio.c (Ffile_selinux_context): Context functions may return null.
1898
afc61943
DN
18992010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1900
80f00217 1901 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1902
5a1bb006
GM
19032010-04-30 Glenn Morris <rgm@gnu.org>
1904
1905 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1906 (OTHER_OBJ): Define as a separate variable, for clarity.
1907
210af043
J
19082010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1909
1910 * xsettings.c: include limits.h and update file comment.
1911
0a7df391
GM
19122010-04-30 Glenn Morris <rgm@gnu.org>
1913
d5096f16
GM
1914 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1915 Set with configure, not cpp.
1916 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1917
7eb1ac33
GM
1918 * Makefile.in (mallocobj): Remove.
1919 (otherobj): Simplify using @OTHER_OBJ@.
1920
517d086b
GM
1921 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1922 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1923 Don't bother making nsgui.h dependency platform-specific.
1924
0a7df391
GM
1925 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1926
d6d23852
SM
19272010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1928
d2630aef
SM
1929 * process.c (read_process_output, exec_sentinel): Don't burp if the
1930 sentinel/filter kills the current buffer (bug#6060).
1931
f9dddf52 1932 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1933 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1934 Remove unused var `args'.
1935 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1936 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1937 * doc.c (store_function_docstring): Use XSETCAR.
1938
f1e3642a
GM
19392010-04-28 Glenn Morris <rgm@gnu.org>
1940
faf535f8
GM
1941 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1942 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1943
c40f9449
GM
1944 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1945
658f86ca
GM
1946 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1947 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1948
bc0b5f61
GM
1949 * Makefile.in (FONT_OBJ): New, set by configure.
1950 (FONT_DRIVERS): Use $FONT_OBJ.
1951
294c50a0
GM
1952 * Makefile.in (LIBXMU): Set with configure, not cpp.
1953 * s/aix4-2.h (LIBXMU):
1954 * s/hpux10-20.h (LIBXMU):
1955 Remove definition, now set in configure.
1956
e6ec4e99
GM
1957 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1958
f1e3642a
GM
1959 * m/amdx86-64.h [i386]: Move this test to configure.in.
1960
c6ea2936
GM
19612010-04-27 Glenn Morris <rgm@gnu.org>
1962
8fdac2c3
GM
1963 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1964 * s/unixware.h (NEED_LIBW): Remove definition.
1965
986fb647
GM
1966 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1967 (TOOLKIT_LIBW): New, set by configure.
1968 (@X_TOOLKIT_TYPE@): No longer define it.
1969
c6ea2936
GM
1970 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1971 (MOTIF_LIBW): Set with configure, not cpp.
1972 * s/aix4-2.h (LIB_MOTIF):
1973 * s/gnu-linux.h (LIB_MOTIF):
1974 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1975
aaa36002
DN
19762010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1977
1978 Reduce CPP usage.
1979 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1980 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1981 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1982 definitions and undefs. Inline definitions in the only user.
1983 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1984
b678dd8b
GM
19852010-04-27 Glenn Morris <rgm@gnu.org>
1986
76cda504
GM
1987 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1988 since the defaults (set by the system file) are fine in most cases.
1989 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1990 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1991 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1992 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1993 Remove definitions, since they are set correctly in s/gnu-linux.h.
1994 * s/freebsd.h (START_FILES, LIB_STANDARD):
1995 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1996 * s/hpux10-20.h (START_FILES):
1997 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1998 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1999
b678dd8b
GM
2000 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2001 (MOTIF_LIBW): Use $LIBXP.
2002 (otherobj): Use $WIDGET_OBJ.
2003
9452ded1
DN
20042010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2005
7e10844c
DN
2006 * Makefile.in (LIBS_MACHINE): Remove, unused.
2007
9452ded1
DN
2008 Use autoconf instead of cpp for LIB_MATH.
2009 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2010 * s/cygwin.h (LIB_MATH): Likewise.
2011 * Makefile.in (LIB_MATH): Do not define with cpp.
2012 (LIBES): Use autoconf for LIB_MATH.
2013
fcebfc6a
KH
20142010-04-26 Kenichi Handa <handa@m17n.org>
2015
2016 * composite.c (Ffind_composition_internal): Fix the return value
2017 for an automatic composition.
2018
39e2ad1b
DN
20192010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2020
2021 Remove all NO_ARG_ARRAY uses.
2022 * fns.c (concat2, concat3, nconc2):
2023 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2024 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2025 * m/xtensa.h (NO_ARG_ARRAY):
2026 * m/template.h (NO_ARG_ARRAY):
2027 * m/sparc.h (NO_ARG_ARRAY):
2028 * m/sh3.h (NO_ARG_ARRAY):
2029 * m/mips.h (NO_ARG_ARRAY):
2030 * m/macppc.h (NO_ARG_ARRAY):
2031 * m/iris4d.h (NO_ARG_ARRAY):
2032 * m/intel386.h (NO_ARG_ARRAY):
2033 * m/ibms390x.h (NO_ARG_ARRAY):
2034 * m/ibms390.h (NO_ARG_ARRAY):
2035 * m/ibmrs6000.h (NO_ARG_ARRAY):
2036 * m/ia64.h (NO_ARG_ARRAY):
2037 * m/hp800.h (NO_ARG_ARRAY):
2038 * m/arm.h (NO_ARG_ARRAY):
2039 * m/amdx86-64.h (NO_ARG_ARRAY):
2040 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2041
adf4f59c
EZ
20422010-04-25 Eli Zaretskii <eliz@gnu.org>
2043
6bdf5d65
EZ
2044 * xdisp.c (display_line): Don't assume 2nd call to
2045 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2046 (iterate_out_of_display_property): New function, body from pop_it.
2047 (pop_it): Use it.
adf4f59c 2048
dfbbda83
GM
20492010-04-24 Glenn Morris <rgm@gnu.org>
2050
2051 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2052 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2053 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2054 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2055
2d4018aa
EZ
20562010-04-24 Eli Zaretskii <eliz@gnu.org>
2057
a49884a6
EZ
2058 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2059 use `get_next_display_element' and `set_iterator_to_next' to
2060 advance to the next character, when looking for the character that
2061 begins the next row.
2062
76db6fcc 2063 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2064 definition of "struct Lisp_Symbol".
2065
70eab5c1
GM
20662010-04-24 Glenn Morris <rgm@gnu.org>
2067
2068 * Makefile.in (CRT_DIR): New variable, set by configure.
2069 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2070 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2071
1ad4cc3d
DN
20722010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2073
e769f484
DN
2074 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2075
4196ff33
DN
2076 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2077
879b0ee4
DN
2078 Remove redundant flags.
2079 * s/freebsd.h (C_SWITCH_SYSTEM):
2080 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2081 * s/netbsd.h (C_SWITCH_SYSTEM):
2082 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2083 of these.
2084
03cbbcb8
DN
2085 Simplify m/intel386.h.
2086 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2087 user: ecrt0.c.
2088 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2089 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2090 the only user: s/unixware.h.
2091 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2092 from m/intel386.h.
2093 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2094 moved here from m/intel386.h.
2095
1ad4cc3d
DN
2096 * m/mips.h: Remove #if 0 code.
2097
8785b888
EZ
20982010-04-23 Eli Zaretskii <eliz@gnu.org>
2099
728588cc
EZ
2100 Fix display of composed characters from L2R scripts in bidi buffers.
2101 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2102 After advancing IT past the composition, resync the bidi iterator
2103 with IT's position. (Bug#5977)
2104
a63f80b4
DN
21052010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2106
2107 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2108 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2109
ff5dec5c
SM
21102010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2111
2112 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2113
8785b888
EZ
21142010-04-23 Eli Zaretskii <eliz@gnu.org>
2115
58ccf243 2116 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2117 * xdisp.c (pop_it): When the stack is popped after displaying
2118 from a string, bidi-iterate to exit from the text portion covered
2119 by the `display' property or overlay. (Bug#5988, bug#5920)
2120
feeb1604
DN
21212010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2122
8e324eb6
DN
2123 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2124 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2125
809fcaba
DN
2126 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2127 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2128
ed710380
DN
2129 Simplify STARTFILES definition.
2130 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2131 relying on Makefile.in to define it.
2132 * s/cygwin.h (START_FILES): Likewise.
2133 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2134
feeb1604
DN
2135 Clean up Solaris code.
2136 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2137 (LIB_MOTIF): Remove, configure takes care of this.
2138 (NOT_USING_MOTIF): Remove, unused.
2139 * xrdb.c: Remove #if 0-ed #include.
2140 (SYSV): Remove conditional for old SysV.
2141 * sysdep.c (closedir): Remove conditional code for Solaris,
2142 Solaris has closedir.
2143
a0d0b563
JD
21442010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2145
2146 * xsettings.c (read_and_apply_settings): Check if current_font is
2147 NULL before strcmp (Bug#6001).
2148
56bae7c7
DN
21492010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2150
2151 Clean up HP-UX files.
2152 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2153 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2154 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2155 * s/hpux10-20.h: ... to the only user, here.
2156
372b7a95
EZ
21572010-04-21 Eli Zaretskii <eliz@gnu.org>
2158
2159 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2160 use buffer-local values of paragraph-start and paragraph-separate.
2161 <paragraph_start_re, paragraph_separate_re>: Rename from
2162 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2163 (Bug#5992)
2164
f904c0f9
JD
21652010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2166
2167 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2168 current_tool_bar_style are new.
2169 (store_config_changed_event): Rename from store_font_changed_event.
2170 (XSETTINGS_TOOL_BAR_STYLE): New define.
2171 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2172 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2173 HAVE_XFT.
2174 (something_changedCB): store_font_changed_event is now
2175 store_config_changed_event
2176 (parse_settings): Rename from parse_xft_settings. Read
2177 non-xft xsettings outside #ifdef HAVE_XFT.
2178 (read_settings): Renamed from read_xft_settings.
2179 (apply_xft_settings): Take current settings as parameter. Do not
2180 call read_(xft)_settings.
2181 (read_and_apply_settings): New function.
2182 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2183 read_and_apply_settings if there are settings to be read.
2184 (init_xsettings): Renamed from init_xfd_settings.
2185 Call read_and_apply_settings unconditionally.
2186 (xsettings_initialize): Call init_xsettings.
2187 (Ftool_bar_get_system_style): New function.
2188 (syms_of_xsettings): Define Qmonospace_font_name and
2189 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2190 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2191 dynamic-setting.
31a01b90 2192 Move misplaced HAVE_GCONF
f904c0f9
JD
2193
2194 * xsettings.h (Ftool_bar_get_system_style): Declare.
2195
2196 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2197 Qtext, Qboth, Qboth_horiz are new.
2198 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2199 Vtool_bar_style, tool_bar_max_label_size.
2200
2201 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2202
2203 * keyboard.c: QClabel is new.
2204 (parse_tool_bar_item): Take out QClabel from tool bar items.
2205 Try to construct a label if ther is no QClabel.
2206 (syms_of_keyboard): Intern :label as QClabel.
2207
2208 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2209 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2210 New.
2211
2212 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2213 dynamic-setting.el.
2214
2215 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2216 (xg_make_tool_item, xg_show_toolbar_item): New function.
2217 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2218 Call xg_make_tool_item to make a tool bar item.
2219 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2220
2221 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2222 into account for toolbars.
2223
c632dfda
JD
22242010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2225
2226 * data.c (make_blv): Declarations before code (Bug#5993).
2227
10efe302
GM
22282010-04-21 Glenn Morris <rgm@gnu.org>
2229
2230 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2231 Define using autoconf, not cpp.
2232 (LIBXSM): New variable, set by autoconf.
2233 (LIBXT): Use $LIBXSM.
2234
4285ac5a
DN
22352010-04-21 Dan Nicolaescu <local_user@dannlt>
2236
3ec759e7
DN
2237 Remove NOMULTIPLEJOBS, unused.
2238 * s/template.h (NOMULTIPLEJOBS):
2239 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2240
4285ac5a
DN
2241 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2242 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2243 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2244 detects -znocombreloc and passes it to the linker
2245 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2246
2807228d
GM
22472010-04-21 Glenn Morris <rgm@gnu.org>
2248
2249 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2250
574c05e2
KK
22512010-04-21 Karel Klíč <kklic@redhat.com>
2252
2253 * Makefile.in (LIBSELINUX_LIBS): New.
2254 (LIBES): Add $LIBSELINUX_LIBS.
2255 * eval.c, lisp.h (call7): New function.
2256 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2257 (Ffile_selinux_context, Fset_file_selinux_context):
2258 New functions.
2259 (Fcopy_file): New parameter preserve-selinux-context.
2260 (Frename_file): Preserve selinux context when renaming by copy-file.
2261
91eac4bb 22622010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2263 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2264
50426a04
JB
2265 Don't depend on cm.c or termcap.c on Windows, use stubs.
2266 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2267 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2268 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2269 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2270 (sys_tputs, sys_tgetstr): New stubs.
2271 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2272 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2273
938efb77
JB
22742010-04-20 Juanma Barranquero <lekktu@gmail.com>
2275
2276 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2277
b4bf28b7
SM
22782010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2279
8b1e1112
SM
2280 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2281 Just signal a warning rather than an error when inside a let.
2282 (Fmake_variable_frame_local): Add the same test.
2283
933ac235
SM
2284 * font.c (syms_of_font): Make the style table vars read-only.
2285
b4bf28b7
SM
2286 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2287 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2288
2289 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2290
93d68d0c
EZ
22912010-04-20 Eli Zaretskii <eliz@gnu.org>
2292
2293 Fix R2L paragraph display on TTY.
2294
2295 * xdisp.c (unproduce_glyphs): New function.
2296 (display_line): Use it when produced glyphs are discarded from R2L
2297 glyph rows.
2298 (append_composite_glyph): In R2L rows, prepend the glyph rather
2299 than appending it.
2300
2301 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2302 rather than append it. Set up the resolved_level and bidi_type
2303 attributes of the appended glyph.
283ccc18
EZ
2304 (produce_special_glyphs): Mirror the backslash continuation
2305 character in R2L lines.
93d68d0c 2306
283ccc18 2307 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2308
283ccc18
EZ
2309 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2310 append_stretch_glyph.
2311 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2312 off-by-one error in computing x at end of text in the row.
2313 (append_stretch_glyph): In reversed row, prepend the glyph rather
2314 than append it. Set resolved_level and bidi_type of the glyph.
2315 (extend_face_to_end_of_line): If the row is reversed, prepend a
2316 stretch glyph whose width is such that the rightmost glyph will be
2317 drawn at the right margin of the window. Fix off-by-one error on
2318 TTY frames in testing whether a line needs face extension. Fix
2319 face extension at ZV. If this is the last glyph row, use
2320 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2321 region face.
2322 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2323 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2324 row->continuation_lines_width.
283ccc18
EZ
2325 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2326 are at ZV. Fixes a crash when reseated to ZV by
2327 try_window_reusing_current_matrix.
45903529
EZ
2328 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2329 which happens with R2L glyph rows. Fixes a crash when inserting a
2330 character at end of an R2L line.
283ccc18
EZ
2331 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2332 treat them as having zero-width characters. Improve comments.
2333 Don't reverse pos_before and pos_after for reversed glyph rows.
2334 Set cursor.x to negative value when the cursor might be on the
2335 left fringe.
2336 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2337 left fringe, not the right one.
f951a506
EZ
2338 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2339 (erase_phys_cursor): For reversed cursor_row, support cursor on
2340 the left fringe.
2341
283ccc18
EZ
2342 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2343 of continuation indicators on the fringes.
2344 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2345 left fringe.
2346
f951a506
EZ
2347 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2348 draw cursor on the left fringe.
2349
2350 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2351 cursor on the left fringe.
2352
f951a506
EZ
2353 * dispnew.c (update_text_area): Handle reversed desired rows when
2354 the cursor is on the left fringe.
2355 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2356 below, not by 0, for when the cursor is on the left fringe.
2357
3bb49aaf
JD
23582010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2359
2360 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2361 widget is a scrollbar.
2362
c0be27fd
KH
23632010-04-20 Kenichi Handa <handa@m17n.org>
2364
2365 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2366 only when the arg CHARSET_LIST is nil.
2367
ce5b453a
SM
23682010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2369
2370 Make variable forwarding explicit rather the using special values.
2371 Basically, this makes the structure of buffer-local values and object
2372 forwarding explicit in the type of Lisp_Symbols rather than use
2373 special Lisp_Objects for that. This tends to lead to slightly more
2374 verbose code, but is more C-like, simpler, and makes it easier to make
2375 sure we handled all cases, among other things by letting the compiler
2376 help us check it.
2377 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2378 Removing forwarding objects.
2379 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2380 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2381 explicit rather than hiding them inside Lisp_Object "values".
2382 (XFWDTYPE): New macro.
2383 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2384 (XBUFFER_LOCAL_VALUE): Remove.
2385 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2386 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2387 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2388 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2389 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2390 Remove the Lisp_Misc_* header.
2391 (struct Lisp_Buffer_Local_Value): Redefine.
2392 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2393 (struct Lisp_Misc_Any): Add filler to get the right size.
2394 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2395 Lisp_Intfwd.
2396 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2397 (DEFVAR_KBOARD): Allocate a forwarding object.
2398 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2399 (let_shadows_global_binding_p): New function.
2400 (union Lisp_Val_Fwd): New type.
2401 (make_blv): New function.
2402 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2403 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2404 (swap_in_symval_forwarding, find_symbol_value, Fset)
2405 (let_shadows_buffer_binding_p, set_internal, default_value)
2406 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2407 (Fkill_local_variable, Fmake_variable_frame_local)
2408 (Flocal_variable_p, Flocal_variable_if_set_p)
2409 (Fvariable_binding_locus):
2410 * xdisp.c (select_frame_for_redisplay):
2411 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2412 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2413 * frame.c (store_frame_param):
2414 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2415 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2416 value structure.
2417 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2418 (clone_per_buffer_values): Only adjust markers into the current buffer.
2419 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2420 (Fbuffer_local_value, set_buffer_internal_1)
2421 (swap_out_buffer_local_variables):
2422 Adapt to the new symbol value structure.
2423 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2424 (defvar_per_buffer): Take a new arg for the fwd object.
2425 (buffer_lisp_local_variables): Return a proper alist (different fix
2426 for bug#4138).
2427 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2428 (Fgarbage_collect): Don't handle buffer_defaults specially.
2429 (mark_object): Handle new symbol value structure rather than the old
2430 special Lisp_Misc_* objects.
2431 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2432 * term.c (set_tty_color_mode):
2433 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2434 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2435 a buffer_local_flags.
2436 * print.c (print_object): Get rid of impossible forwarding objects.
2437
fd3998ff
EZ
24382010-04-19 Eli Zaretskii <eliz@gnu.org>
2439
2440 * bidi.c (bidi_get_type, bidi_get_category)
2441 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2442 (bidi_type_of_next_char, bidi_level_of_next_char):
2443 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2444
e42cd1a7
JB
24452010-04-19 Juanma Barranquero <lekktu@gmail.com>
2446
2447 * dired.c (Ffile_attributes): Fix typo in docstring.
2448
6e104790 24492010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2450
2451 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2452 NSInteger (Bug#5811).
2453
6e104790 24542010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2455
2456 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2457 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2458
6e104790 24592010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2460
2461 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2462
6e104790
SM
24632010-04-19 Chong Yidong <cyd@stupidchicken.com>
2464
2465 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2466 terminal frames (Bug#5837).
2467
37dcfea0
EZ
24682010-04-19 Eli Zaretskii <eliz@gnu.org>
2469
d1da276f
EZ
2470 * .gdbinit (xsubchartable): New command.
2471
37dcfea0
EZ
24722010-04-19 Eli Zaretskii <eliz@gnu.org>
2473
2474 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2475 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2476 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2477 and
2478 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2479
e9515805
SM
24802010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2481
2482 * alloc.c (Fpurecopy): Hash-cons if requested.
2483 (syms_of_alloc): Update purify-flag docstring.
2484
22aa44a8
JD
24852010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2486
2487 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2488 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2489
ebb5722e
EZ
24902010-04-17 Eli Zaretskii <eliz@gnu.org>
2491
2492 Fix a crash when an NSM character is inserted at BEGV.
2493
2494 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2495 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2496 NEUTRAL_B or UNKNOWN_BT.
2497
0f4442ef
EZ
24982010-04-16 Eli Zaretskii <eliz@gnu.org>
2499
2500 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2501 other rows with cursor unless they are different from this row and
2502 this row is part of a continued line. (Bug#5943)
2503
7d4e45f8
DN
25042010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2505
2506 * s/freebsd.h: Restore osreldate.h include.
2507 Suggested by Naohiro Aota.
2508
5ba5ec85
J
25092010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2510
2511 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2512
20af301d
CY
25132010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2514
2515 * s/cygwin.h: Avoid linking against static libgcc.
2516
a4b000fb
JL
25172010-04-15 Juri Linkov <juri@jurta.org>
2518
2519 * window.c: Add Qscroll_command.
2520 Remove Vscroll_preserve_screen_position_commands.
2521 (window_scroll_pixel_based, window_scroll_line_based): Check the
2522 `scroll-command' property on the last command instead of searching
2523 the last command in Vscroll_preserve_screen_position_commands.
2524 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2525 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2526 (scroll-preserve-screen-position): Doc fix.
2527 (Vscroll_preserve_screen_position_commands): Remove variable.
2528
bc319ba4
DN
25292010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2530
6bb24457
DN
2531 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2532
19d4c244
DN
25332010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2534
2535 Reduce cpp use in Makefile.in.
2536 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2537 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2538 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2539 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2540 (CRT0_COMPILE): Remove, inline it in the only user.
2541
32129746
JL
25422010-04-14 Juri Linkov <juri@jurta.org>
2543
2544 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2545 `scroll-up-command' and `M-v' from `scroll-down' to
2546 `scroll-down-command'.
2547
9013a7f8
JL
25482010-04-14 Juri Linkov <juri@jurta.org>
2549
2550 * window.c (Vscroll_preserve_screen_position_commands): New variable
2551 with the default value as the list of Qscroll_down and Qscroll_up.
2552 (window_scroll_pixel_based, window_scroll_line_based): Search the
2553 last command in the list Vscroll_preserve_screen_position_commands
2554 instead of comparing with Qscroll_up and Qscroll_down.
2555
4bef8d26
JD
25562010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2557
92848133
JD
2558 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2559 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2560 does that.
2561
4bef8d26
JD
2562 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2563 to zero.
2564
58b963f7
SM
25652010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2566
84164a0d
SM
2567 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2568
2b0a91e7
SM
2569 Try to solve the problem of spurious EOF chars in long lines of text
2570 sent to interactive subprocesses.
2571 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2572 (system_process_attributes): Remove unused var `ttotal'.
2573 * process.c (send_process): Don't bother breaking long line with EOF
2574 chars when talking to ttys any more.
2575 (wait_reading_process_output): Output a warning when called in such
2576 a way that it could block without being interruptible.
2577
58b963f7
SM
2578 Try to detect file modification within the same second.
2579 * buffer.h (struct buffer): New field modtime_size.
2580 * buffer.c (reset_buffer): Initialize it.
2581 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2582 (Fverify_visited_file_modtime): Check it.
2583 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2584 (Fset_visited_file_modtime): Set (or clear) it.
2585
01f5787b
SM
25862010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2587
2588 * process.c (status_notify): Remove unused var `ro'.
2589
83725342
JD
25902010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2591
2592 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2593 more than one visual (Bug#5938).
2594
b9465836
DN
25952010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2596
50426a04
JB
2597 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2598 Undefine.
b9465836 2599
8d9c8ece
DN
26002010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2601
b1f52161
DN
2602 Remove C_SWITCH_SYSTEM_TEMACS.
2603 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2604 (malloc, realloc, free): Use emacs, not temacs for conditional
2605 definition.
2606
2607 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2608 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2609
8d9c8ece
DN
2610 Use autoconf, not cpp for some variables.
2611 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2612 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2613 (ALL_CFLAGS): Use them as make variables.
2614 (really-lwlib, really-oldXMenu): Do not pass them.
2615
1ecb2d3f
JD
26162010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2617
2618 * xmenu.c (apply_systemfont_to_dialog): New.
2619 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2620
3a4fa2f2
SM
26212010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2622
97e53006
SM
2623 * process.c (exec_sentinel): Preserve current-buffer.
2624
3a4fa2f2
SM
2625 * process.c (read_process_output): Move the save-current-buffer to
2626 apply to both the filter and the non-filter branches.
2627
88df7221
DN
26282010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2629
2630 * s/msdos.h (UNEXEC): New definition.
2631
5634ff85
YM
26322010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2633
6eff5c3d
YM
2634 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2635 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2636
2637 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2638 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2639 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2640 TRY_WINDOW_CHECK_MARGINS.
2641
2642 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2643 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2644 width only when it is for padding.
5634ff85 2645
b13aef54
J
26462010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2647
2648 * xfns.c (Fx_show_tip): Call try_window in a loop until
2649 fonts_changed_p is zero (Bug#2423).
2650
21d28484
EZ
26512010-04-08 Eli Zaretskii <eliz@gnu.org>
2652
2653 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2654 the end of TEXT_AREA. (Bug#5856)
2655
0269ef77
JD
26562010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2657
2658 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2659 HAVE_GCONF.
2660
5930fe97
EZ
26612010-04-08 Eli Zaretskii <eliz@gnu.org>
2662
2663 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2664 prev.orig_type, for resolving type of NSM. (Bug#5858)
2665
99852628
JD
26662010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2667
2668 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2669 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2670 in current_font.
2671 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2672 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2673 New functions.
2674 (syms_of_xsettings): Initialize current_font.
2675 defsubr Sfont_get_system_normal_font.
99852628
JD
2676
2677 * xsettings.h (Ffont_get_system_normal_font,
2678 xsettings_get_system_normal_font): Declare.
2679
2680 * xfns.c (extern xlwmenu_default_font): Remove.
2681 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2682 to xlwmenu.c.
2683
2684 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2685 menu items in UTF-8.
2686
2687 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2688 (apply_systemfont_to_menu): New function.
2689 (set_frame_menubar, create_and_show_popup_menu): Call
2690 apply_systemfont_to_menu.
2691
7fc874c4
J
26922010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2693
2694 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2695 FRAME_LINE_TO_PIXEL_Y.
2696
2697 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2698 pixelwidth/height.
2699
863bf481
DN
27002010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2701
5e5a3b92
DN
2702 Simplify code for HP machines.
2703 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2704 for GNU_LINUX, not needed.
2705 (UNEXEC, NEED_BSDTTY): Move definitions...
2706 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2707
863bf481
DN
2708 * m/iris4d.h (UNEXEC): Move definition ...
2709 * s/irix6-5.h (UNEXEC): ... here.
2710
3e6bec3b
JD
27112010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2712
2713 * xfns.c (set_machine_and_pid_properties): New function.
2714 (Fx_create_frame): Call set_machine_and_pid_properties.
2715
2912322b
SM
27162010-04-03 Eli Zaretskii <eliz@gnu.org>
2717
1502b819
EZ
2718 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2719 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2720 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2721
2912322b
SM
2722 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2723 in this function. (Bug#5703)
2724
27252010-04-03 Chong Yidong <cyd@stupidchicken.com>
2726
2727 * nsterm.h: Fix last change.
2728
c435b432
DN
27292010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2730
a568f507
DN
2731 * m/intel386.h (NO_REMAP): Move definition ...
2732 * s/msdos.h (NO_REMAP): ... here.
2733
4cd9f6c2
DN
2734 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2735
c435b432
DN
2736 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2737 used on those platforms.
2738
42a2c622
DN
27392010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2740
2741 Remove extern errno declarations.
2742 * xterm.c:
2743 * xrdb.c:
2744 * w32term.c:
2745 * unexec.c:
2746 * unexaix.c:
2747 * sysdep.c:
2748 * process.c:
2749 * lread.c:
2750 * keyboard.c:
2751 * floatfns.c:
2752 * filelock.c:
2753 * fileio.c:
2754 * emacs.c (main):
2755 * ecrt0.c:
2756 * dispnew.c:
2757 * callproc.c:
2758 * buffer.c: Remove errno extern declarations.
2759 * s/netbsd.h (NEED_ERRNO): Remove.
2760
8224f93d
DN
27612010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2762
2763 Remove all uses of LIBX11_SYSTEM.
2764 * Makefile.in (LIBX11_SYSTEM): Remove.
2765 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2766 instead.
2767
814062c7
EZ
27682010-04-01 Eli Zaretskii <eliz@gnu.org>
2769
ed68db4d
EZ
2770 Remove support for DJGPP v1.x (bug#5813).
2771
2772 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2773 * s/msdos.h:
2774 * unexec.c (make_hdr, copy_text_and_data):
2775 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2776 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2777 (IT_set_terminal_modes, __write, _rename, gethostname)
2778 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2779 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2780 the value of __DJGPP__.
ed68db4d
EZ
2781 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2782 compatibility code.
8224f93d
DN
2783 * lread.c:
2784 * gmalloc.c (memalign):
2785 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2786 * emacs.c (main):
2787 * dosfns.c (init_dosfns):
ed68db4d
EZ
2788 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2789
52f4d8d5
EZ
27902010-04-01 Eli Zaretskii <eliz@gnu.org>
2791
814062c7
EZ
2792 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2793 string with `cursor' property comes from an `after-string'
2794 overlay. (Bug#5816)
2795
0dc2e11d
GM
27962010-04-01 Glenn Morris <rgm@gnu.org>
2797
2798 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2799 Define as Makefile variables.
2800 (LIBX): Use above variables rather than directly using autoconf.
2801
1d29df59
DN
28022010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2803
2804 Clean up BSD_SYSTEM use.
2805 * xterm.c:
2806 * process.c:
2807 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2808 for including <sys/ioctl.h>.
2809 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2810 code is only used for MSDOS.
2811
1546c559
JL
28122010-03-31 Juri Linkov <juri@jurta.org>
2813
2814 * image.c: Add `Qextension_data'.
2815 (syms_of_image): Initialize and staticpro `Qextension_data'.
2816 (Fimage_metadata): Rename from `Fimage_extension_data'.
2817 (gif_load): Put GIF extension data to the property
2818 `Qextension_data'.
2819
6521c534
CY
28202010-03-31 Chong Yidong <cyd@stupidchicken.com>
2821
2822 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2823 * nsterm.h: Fix prototype.
2824
52c30783
EZ
28252010-03-31 Eli Zaretskii <eliz@gnu.org>
2826
2827 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2828 trailing whitespace in right-to-left rows.
2829
855a0da7
SM
28302010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2831
2832 Get rid of the direct_output optimizations.
2833 * keyboard.c (nonundocount): Remove extern declaration.
2834 (command_loop_1): Remove brittle optimisation for cheap and
2835 common operations.
2836 * xdisp.c (redisplay_internal): Don't bother checking
2837 redisplay_performed_directly_p any more.
2838 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2839 any more.
2840 * dispnew.c (redisplay_performed_directly_p)
2841 (direct_output_for_insert, direct_output_forward_char):
2842 * dispextern.h (redisplay_performed_directly_p)
2843 (direct_output_for_insert, direct_output_forward_char): Remove.
2844 * cmds.c (nonundocount): Make it static.
2845
85738751 28462010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2847
2848 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2849
85738751 28502010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2851
2852 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2853 invisible (Bug#5766).
2854
85738751 28552010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2856
855a0da7
SM
2857 * xdisp.c (x_consider_frame_title, update_window_cursor):
2858 Remove HAVE_NS conditionals.
194d44e7 2859 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2860
2861 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2862 filename for the title.
2863 (ns_set_doc_edited): Do nothing if the selected window is a
2864 minibuffer window.
2865
2866 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2867 ns_set_doc_edited.
2868
2869 * nsterm.m: Remove unneeded prototype.
2870
85738751 28712010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2872
2873 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2874 in the DOC file. (Bug#5336)
2875
85738751 28762010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2877
2878 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2879
75d1428c
SM
28802010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2881
2882 * window.c (keys_of_window): Remove redundant/overridden bindings.
2883
82043cfb
EZ
28842010-03-30 Eli Zaretskii <eliz@gnu.org>
2885
2886 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2887 Restore original behavior when the iterator is not bidi_p.
2888
b5dd0ae7
DN
28892010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2890
2891 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2892
bd924a5d
EZ
28932010-03-30 Eli Zaretskii <eliz@gnu.org>
2894
2895 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2896 are outside the range of cached character positions.
2897
3580374b
JB
28982010-03-30 Juanma Barranquero <lekktu@gmail.com>
2899
2900 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2901
a7b02820
EZ
29022010-03-30 Eli Zaretskii <eliz@gnu.org>
2903
2904 Initial support for bidirectional editing.
2905
2906 * Makefile.in (obj): Include bidi.o.
2907 (bidi.o): New target.
2908
2909 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2910 ($(BLD)/bidi.$(O)): New target.
2911
2912 * bidi.c: New file.
2913
2914 * buffer.h (struct buffer): New members bidi_display_reordering
2915 and bidi_paragraph_direction.
2916
2917 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2918 and bidi_paragraph_direction.
2919 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2920 and bidi-paragraph-direction.
2921 (Fbuffer_swap_text): Swap the values of
2922 bidi_display_reordering and bidi_paragraph_direction.
2923
2924 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2925 (bidi_type_t, bidi_dir_t): New types.
2926 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2927 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2928 prev_stop, base_level_stop, and eol_pos.
2929 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2930 (IT_STACK_SIZE): Enlarge to 5.
2931 (struct glyph_row): New member reversed_p.
2932 <string_buffer_position>: Update prototype.
2933 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2934 glyph_row if bidi_it.paragraph_dir == R2L.
2935 (struct glyph): New members resolved_level and bidi_type.
2936
2937 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2938 processing or buffer's direction is right-to-left.
2939 (prepare_desired_row): Preserve the reversed_p flag.
2940 (row_equal_p): Compare the reversed_p attributes as well.
2941
2942 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2943 bidi_init_it and set it->paragraph_embedding from the current
2944 buffer's value of bidi_paragraph_direction.
2945 (reseat_1): Initialize bidi_it.first_elt.
2946 (set_iterator_to_next, next_element_from_buffer): Use the value of
2947 paragraph_embedding to determine the paragraph direction.
2948 (set_iterator_to_next): Under bidi reordering, call
2949 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2950 new_paragraph flag is set in the bidi iterator.
2951 (next_element_from_buffer): If bidi_it.first_elt is set,
2952 initialize paragraph direction and find the first character to
2953 display in the visual order. If reseated to a middle of a line,
2954 prime the bidi iterator starting at the line's beginning. Handle
2955 the situation where we overstepped stop_charpos due to
2956 non-linearity of the bidi iteration. Likewise for when we back up
2957 beyond the previous stop_charpos. When moving across stop_charpos,
2958 record it in prev_stop.
2959 (display_line): Set row->end and it->start for the next row to the
2960 next character in logical order. Always extend reversed_p rows to
2961 the end of line, even if they end at ZV. Copy the reversed_p flag
2962 to the next glyph row. Keep calling set_cursor_from_row for
2963 bidi-reordered rows even if we already have a possible candidate
2964 for cursor position. Set row_end after all the row's glyphs have
2965 been produced, by looping over the glyphs. Record the position
2966 after EOL in it->eol_pos, and use it to set end_pos of the last
2967 row produced for a continued line.
2968 <Qright_to_left, Qleft_to_right>: New variables.
2969 (syms_of_xdisp): Initialize and staticpro them.
2970 (string_buffer_position_lim): New function.
2971 (string_buffer_position): Most of code moved to
2972 string_buffer_position_lim. Last argument and return value are
2973 now EMACS_INT; all callers changed.
2974 (set_cursor_from_row): Rewritten to support bidirectional text and
2975 reversed glyph rows.
2976 (text_outside_line_unchanged_p, try_window_id): Disable
2977 optimizations if we are reordering bidirectional text and the
2978 paragraph direction can be affected by the change.
2979 (append_glyph, append_composite_glyph)
2980 (produce_image_glyph, append_stretch_glyph): Set the
2981 resolved_level and bidi_type members of each glyph.
2982 (append_glyph): If the glyph row is reversed, prepend the glyph
2983 rather than appending it.
2984 (handle_stop_backwards): New function.
2985 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2986 (reseat): call handle_stop_backwards to recompute prev_stop and
2987 base_level_stop for the new position.
2988 (handle_invisible_prop): Under bidi iteration, skip invisible text
2989 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2990 paragraph direction. Update IT->prev_stop after skipping
2991 invisible text.
2992 (move_it_in_display_line_to): New variables prev_method
2993 and prev_pos. Compare for strict equality in
2994 BUFFER_POS_REACHED_P.
2995 (try_cursor_movement): Examine all the candidate rows that occlude
2996 point, to return the best match. If rows are bidi-reordered
2997 and point moved backwards, back up to the row that is not a
2998 continuation line, and start looking for a suitable row from
2999 there.
3000
3001 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3002 rather than appending, if the glyph_row's reversed_p flag is set.
3003 Set the resolved_level and bidi_type members of each glyph.
3004
3005 * .gdbinit (pbiditype): New command.
3006 (pgx): Use it to display bidi level and type of the glyph.
3007 (pitx): Display some bidi information about the iterator.
3008 (prowlims, pmtxrows): New commands.
3009
32a8894e
DN
30102010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3011
3012 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3013 * s/usg5-4.h (LIBS_DEBUG):
3014 * s/irix6-5.h (C_DEBUG_SWITCH):
3015 * s/gnu-linux.h (LIBS_DEBUG):
3016 * s/darwin.h (LIBS_DEBUG):
3017 * s/bsd-common.h (LIBS_DEBUG):
3018 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3019 * m/iris4d.h (LIBS_DEBUG):
3020 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3021
3022 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3023 (LIBS_DEBUG): Remove definition.
3024
649dbf36
CY
30252010-03-27 Chong Yidong <cyd@stupidchicken.com>
3026
3027 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3028 Windows.
3029
cad4261f
YM
30302010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3031
3032 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3033 `connect' (Bug#5723).
3034
cd591dbc
HE
30352010-03-25 Helmut Eller <eller.helmut@gmail.com>
3036
3037 * process.c (Fmake_network_process): Call `select' for interrupted
3038 `connect' rather than creating new socket (Bug#5173).
3039
e867cb5d 30402010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3041
3042 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3043
3044 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3045
3046 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3047
e867cb5d 30482010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3049
3050 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3051 XLoadQueryFont.
3052
e867cb5d 30532010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3054
3055 * coding.c (decode_coding_ccl): Fix previous change for the
3056 multibyte case.
fb608df3
KH
3057 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3058 case that the output buffer is fullfilled.
3059 (encode_coding): Setup ccl program here.
fbdc1721 3060
5845f0ed
DN
30612010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3062
814fb708
DN
3063 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3064
5845f0ed
DN
3065 Simplify LIBS_MACHINE definitions.
3066 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3067 * m/iris4d.h (LIBS_MACHINE): Likewise.
3068 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3069 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3070 * s/netbsd.h: Remove commented out code.
5845f0ed 3071
b7064064
DN
30722010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3073
df7734b2
DN
3074 Remove dead code dealing with POSIX_SIGNALS.
3075 * atimer.c (set_alarm): Remove dead code, all USG systems define
3076 POSIX_SIGNALS.
3077 * data.c (arith_error): Likewise.
3078 * keyboard.c (input_available_signal, handle_user_signal)
3079 (interrupt_signal): Likewise.
3080 * process.c (sigchld_handler): Likewise.
3081 (create_process): Remove if 0 code. Remove HPUX conditional when
3082 !defined (POSIX_SIGNALS), it cannot be true.
3083 * syssignal.h: Remove USG5_4 and USG conditionals when
3084 !POSIX_SIGNALS, they cannot be true.
3085
b7064064
DN
3086 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3087 NO_SOCK_SIGIO, not used anymore.
3088
55da5ee3
DN
30892010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3090
0be96e3a
DN
3091 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3092 support vax on BSDs.
3093
55da5ee3
DN
3094 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3095 * s/aix4-2.h (ORDINARY_LINK): ... here.
3096
c0282183
AS
30972010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3098
82c3d67a
AS
3099 * Makefile.in (abs_builddir): Define.
3100 (bootstrap_exe): Use it.
3101 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3102
3613edce
SM
31032010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3104
3105 * Makefile.in (bootstrap_exe): Use an absolute name.
3106
7f110ddc
DN
31072010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3108
22e87574
DN
3109 Remove support for old GNU/Linux using libc version 5.
3110 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3111 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3112
05a670e6
DN
3113 Consolidate redundant definitions in s/bsd-common.h.
3114 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3115 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3116 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3117 doing it in all files that include this one.
3118 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3119 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3120 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3121 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3122 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3123 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3124 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3125 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3126 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3127
2968f561
DN
3128 Consolidate redundant definitions.
3129 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3130 it's undefined in all files that include this one.
3131 (POSIX_SIGNALS): Define here instead of doing it in all files that
3132 include this one.
3133 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3134 (POSIX_SIGNALS): Do not define.
3135 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3136 (POSIX_SIGNALS): Do not define.
3137 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3138 (POSIX_SIGNALS): Do not define.
3139
15d25dc0
DN
3140 Remove support for old UNIX System V systems.
3141 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3142 * s/usg-5-4-2.h: Remove.
3143
07e339e4
DN
3144 Remove support for Solaris on PPC and for old versions.
3145 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3146 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3147 that cancel each other.
3148 * s/sol2-3.h:
3149 * s/sol2-4.h:
3150 * s/sol2-5.h: Remove.
3151 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3152 (NO_REMAP): Remove, unused.
3153 (UNEXEC): Move definition ...
3154 * s/aix4-2.h (UNEXEC): ... here.
3155
7f110ddc
DN
3156 * s/openbsd.h: Remove support for non-ELF and for systems that do
3157 not support shared libraries.
3158 * s/netbsd.h:
3159 * s/freebsd.h: Likewise.
3160
605f35cd
DN
31612010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3162
3163 Remove non-working support for lynxos 3.0.
3164 * s/lynxos.h: Remove file.
3165
3166 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3167 COFF_BSD_SYMBOLS, nothing defines it anymore.
3168
aed71cf4
DN
31692010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3170
3171 Remove obsolete uses of HAVE_SHM.
3172 * emacs.c (standard_args):
3173 (Fdump_emacs):
3174 (syms_of_emacs): Remove code depending on HAVE_SHM.
3175
3176 * alloc.c: Remove HAVE_SHM dependent definition.
3177
3178 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3179
aded53ff
GM
31802010-03-18 Glenn Morris <rgm@gnu.org>
3181
17284745
GM
3182 * emacs.c (USAGE4): Hard-code bug address.
3183 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3184 (bug_reporting_address): Remove.
3185 (main): Don't call bug_reporting_address.
3186
aded53ff
GM
3187 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3188 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3189
303500aa
CY
31902010-03-15 Chong Yidong <cyd@stupidchicken.com>
3191
3192 * xfns.c (Fx_create_frame):
3193 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3194 on left.
3195
cef3058f
CY
31962010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3197
3198 * editfns.c (Fformat): Account for string precision when computing
3199 field width (Bug#5710).
3200
a647d59d
CY
32012010-03-12 Chong Yidong <cyd@stupidchicken.com>
3202
4fa42018
CY
3203 * xfns.c (Fx_create_frame): Set default to Qright.
3204
a647d59d
CY
3205 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3206 all window systems.
3207
6da23aaa
EZ
32082010-03-12 Eli Zaretskii <eliz@gnu.org>
3209
a96f6398 3210 These changes remove termcap.c from the build on Posix platforms.
83d02def 3211 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3212 (MSDOS_OBJ): ...to here.
3213 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3214 now identical to when LIBS_TERMCAP is defined.
3215
3216 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3217
3218 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3219
a96f6398 3220 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3221
288f9fc0
CY
32222010-03-10 Chong Yidong <cyd@stupidchicken.com>
3223
3224 * Branch for 23.2.
3225
d48cd3f4
SM
32262010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3227
3228 Cleanup setup of gl_state in various parts of the code.
3229 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3230 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3231 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3232 (skip_chars):
3233 * regex.c (regex_compile): Use it.
3234 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3235 it's now set in regex_compile when/if we need it.
3236
618db430
SM
32372010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3238
c0335e02
SM
3239 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3240 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3241 (QUIT): Use it to consolidate code and remove redundancy.
3242 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3243
254c06a8
SM
3244 * regex.c (regex_compile): Setup gl_state as well.
3245
618db430
SM
3246 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3247 (in_classes): Use CONSP before XCAR/XCDR.
3248
233f0c9f
CY
32492010-03-03 Chong Yidong <cyd@stupidchicken.com>
3250
3251 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3252 definitions, so that keyboard macros are correctly handled
3253 (Bug#5481).
3254
75f80e63
EZ
32552010-03-02 Eli Zaretskii <eliz@gnu.org>
3256
3257 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3258 text that could be relocated inside the call to emacs_mule_char.
3259 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3260 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3261
dcfb9bc4
KH
32622010-03-02 Kenichi Handa <handa@m17n.org>
3263
fc9a17bc
KH
3264 * character.c (parse_str_as_multibyte): Fix handling of the
3265 multibyte form of raw-bytes.
3266 (str_as_multibyte): Likewise.
3267
dcfb9bc4
KH
3268 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3269 form of raw-bytes.
3270
412c01b6
CY
32712010-02-28 Chong Yidong <cyd@stupidchicken.com>
3272
3273 * charset.c (load_charset_map_from_file)
3274 (load_charset_map_from_vector): Zero out allocated
3275 charset_map_entries before using them.
3276
df7e1ea0
AS
32772010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3278
3279 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3280
fe69a722
CY
32812010-02-27 Chong Yidong <cyd@stupidchicken.com>
3282
4ed28cf4
CY
3283 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3284 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3285
7379cfce
KH
32862010-02-26 Kenichi Handa <handa@m17n.org>
3287
f88cc4d6
KH
3288 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3289
7379cfce
KH
3290 * xdisp.c (reseat_to_string): Fix previous change.
3291
cf2fdcfb
CY
32922010-02-26 David Reitter <david.reitter@gmail.com>
3293
3294 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3295 Lisp_Object (Bug#4736).
3296
cc6c7c75
KH
32972010-02-25 Kenichi Handa <handa@m17n.org>
3298
3299 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3300
32e737d7
JD
33012010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3302
3303 * xterm.c (XTflash): Move declarations before statements.
3304
3305 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3306 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3307 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3308 (xg_create_tool_bar): Remove unused variables.
3309 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3310 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3311
676cae9f
CY
33122010-02-21 Chong Yidong <cyd@stupidchicken.com>
3313
3314 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3315
886cc2b8
SM
33162010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3317
3318 * term.c (fatal): Add a final \n if needed (bug#5596).
3319
ddb2d8e2
CY
33202010-02-18 Chong Yidong <cyd@stupidchicken.com>
3321
3322 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3323
2a4f8d3d
GM
33242010-02-18 Glenn Morris <rgm@gnu.org>
3325
3326 * callint.c (Finteractive): Doc fix.
3327
ebaf11b6
KH
33282010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3329
886cc2b8
SM
3330 * coding.c (record_conversion_result):
3331 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3332 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3333 memory allocation error.
3334
d0396581
KH
33352010-02-17 Kenichi Handa <handa@m17n.org>
3336
886cc2b8
SM
3337 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3338 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3339 (decode_coding): Setup ccl program here. Keep looping when the
3340 decoder stopped because the output buffer is
3341 fullfilled (bug#5534).
3342
3343 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3344
98599f74
JD
33452010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3346
471e4f04 3347 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3348 bug #5571.
886cc2b8 3349 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3350 overdrawn.
98599f74 3351
182659ae
JD
33522010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3353
3354 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3355 doing_interact here.
3356 (ice_connection_closed): New function.
3357 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3358 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3359 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3360 returns I/O error.
3361 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3362 bug #5512.
3363
9be32c4e 33642010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3365
3366 * nsfont.m (nsfont_open): The system's value for the font descent
3367 is negative, so round it down to avoid clipping.
3368
a2f3eb19
CY
33692010-02-06 Chong Yidong <cyd@stupidchicken.com>
3370
3371 * charset.c (load_charset_map_from_file)
3372 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3373 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3374
3088147c
CY
33752010-02-05 Chong Yidong <cyd@stupidchicken.com>
3376
3377 * charset.c (load_charset_map_from_file): Allocate large
3378 charset_map_entries structure on the heap rather than the stack.
3379 (Bug#5526).
3380
b57d9029
KH
33812010-01-31 Kenichi Handa <handa@m17n.org>
3382
3383 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3384 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3385
c67d885b
CY
33862010-01-31 Chong Yidong <cyd@stupidchicken.com>
3387
3388 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3389 <deactivated@gmail.com> (Bug#3605).
3390
8fab2362
CY
33912010-01-31 David De La Harpe Golden <david@harpegolden.net>
3392
3393 * fileio.c (Frename_file): Correctly rename symlinks to
3394 directories (Bug#5496).
3395
cb2a62f2
CY
33962010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3397
3398 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3399
944c7a26
AS
34002010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3401
3402 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3403
c024ac08
CY
34042010-01-29 Chong Yidong <cyd@stupidchicken.com>
3405
3406 * frame.c (DEFAULT_ROWS): Change default to 35.
3407
3408 * xfns.c (x_default_font_parameter): Change default XFT font to
3409 monospace-10 (Bug#3643).
3410
af93af83
EZ
34112010-01-29 Eli Zaretskii <eliz@gnu.org>
3412
3413 * w32inevt.c (key_event): Remove unnecessary comparison of
3414 event->uChar.AsciiChar with 128.
3415
ca0eb708
CY
34162010-01-28 Chong Yidong <cyd@stupidchicken.com>
3417
b242dbfc
CY
3418 * fileio.c (Frename_file): Fix last change (Bug#5487).
3419
ca0eb708
CY
3420 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3421
3422 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3423
45d45af5
JD
34242010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3425
3426 * xfns.c (Fx_create_frame): Remove window size matching code from
3427 2010-01-15.
a73f9c9d 3428 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3429
7e233730
JR
34302010-01-27 Jason Rumney <jasonr@gnu.org>
3431
3432 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3433 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3434
86e893e3
KH
34352010-01-27 Kenichi Handa <handa@m17n.org>
3436
3437 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3438 pattern string (Bug#4209).
86e893e3 3439
8719abec
CY
34402010-01-27 David De La Harpe Golden <david@harpegolden.net>
3441
3442 * fileio.c (Frename_file): Call copy-directory and
3443 delete-directory for directories, in order to handle cross-device
3444 renaming (Bug#3353).
3445
844794c8
JD
34462010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3447
aa3e13b5 3448 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3449 sizes 24 and 10. Bug #3643.
844794c8 3450
bd4b5750
SM
34512010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3452
8dc1adf6 3453 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3454 * keymap.c (shadow_lookup): Add `remap' arg.
3455 (describe_map, describe_vector): Update calls to shadow_lookup.
3456 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3457 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3458 perform remapping during shadow_lookup check of remapped_sequences.
3459
285d07e2
CY
34602010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3461
3462 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3463 png_check_sig, which has been removed in libpng 1.4.
3464
c6d09b8d
CY
34652010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3466
3467 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3468 lacks this header file).
3469
3d782998
YM
34702010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3471
3472 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3473 as in Emacs 22.
3474
2aff7c53
YM
34752010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3476
3477 * lisp.h (make_pure_string): String pointer arg now points to const.
3478
3479 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3480 args now point to const.
3481
74327f7a
EZ
34822010-01-22 Eli Zaretskii <eliz@gnu.org>
3483
3484 * lread.c (Fload): Don't treat files without .elc extension as
3485 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3486 them. (bug#5303)
3487
4d1e6632
KH
34882010-01-20 Kenichi Handa <handa@m17n.org>
3489
3490 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3491 treat the source as actual byte sequence.
3492
1fdede8f
AM
34932010-01-19 Alan Mackenzie <acm@muc.de>
3494
3495 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3496 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3497 `signal_after_change_p' to `coherent_change_p', and make the
3498 invocation of `modify_region' conditional on it.
3499
67477f30
JD
35002010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3501
3502 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3503 for debug purpose.
3504 (syms_of_xsettings): Declare xft-settings.
3505
244b023e
CY
35062010-01-18 Chong Yidong <cyd@stupidchicken.com>
3507
3508 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3509
617364fe
CY
35102010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3511
3512 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3513
4fe22cdf
CY
35142010-01-16 Chong Yidong <cyd@stupidchicken.com>
3515
3516 * emacs.c (standard_args): Adjust arg priorities to reflect how
3517 they are processed in startup.el.
3518
e118d2be
AS
35192010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3520
3521 * Makefile.in (lisp, shortlisp): Update.
3522
523ae620
SM
35232010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3524
3525 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3526 code, link the new kboard into all_kboard before running Lisp code,
3527 and protect the new terminal with GCPRO (Bug#5365).
3528 (x_term_init): Remove unused var `atom'.
3529 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3530
f0d13888
JD
35312010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3532
3533 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3534 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3535 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3536 this. Bug #3643.
f0d13888 3537
cc320f07
KH
35382010-01-15 Kenichi Handa <handa@m17n.org>
3539
3540 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3541
7ffdf101
CY
35422010-01-15 Chong Yidong <cyd@stupidchicken.com>
3543
3544 * nsterm.m (Qnone): Define.
3545
3546 * nsfns.m (Qnone): Move definition to nsterm.m.
3547
d12bd917
KH
35482010-01-14 Kenichi Handa <handa@m17n.org>
3549
3550 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3551 systems.
3552
d9a7c140
KH
35532010-01-14 Kenichi Handa <handa@m17n.org>
3554
3555 Make auto-composition work on all buffers even if they are
3556 fundamental mode.
3557
3558 * composite.c (Vauto_composition_mode): New variable.
3559 (composition_compute_stop_pos): Check Vauto_composition_mode
3560 instead of Vauto_composition_function.
3561 (composition_adjust_point, Ffind_composition_internal): Likewise.
3562 (syms_of_composite): Declare Lisp variable
3563 "auto-composition-mode" here.
3564
63286bb2
CY
35652010-01-13 Chong Yidong <cyd@stupidchicken.com>
3566
3567 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3568 during call to vendor-specific-keysyms (Bug#5365).
3569
c2623ee7
YM
35702010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3571
3572 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3573 Call SIGNAL_THREAD_CHECK (Bug#5333).
3574
3575 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3576 Call SIGNAL_THREAD_CHECK.
3577
0b5397c2
SM
35782010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3579
3580 Try to fix bug#5314. This is probably not the final word, tho.
3581 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3582 recent-auto-save-p as a side-effect.
3583 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3584 * buffer.c (Fkill_buffer, reset_buffer):
3585 * editfns.c (Fsubst_char_in_region):
3586 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3587 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3588
dc954cb2
KH
35892010-01-13 Kenichi Handa <handa@m17n.org>
3590
3591 Display buffer name, etc. in mode line by composing correctly.
3592
3593 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3594 STRING is not nil.
0b5397c2 3595 (display_mode_element): Adjust for the change of
dc954cb2
KH
3596 decode_mode_spec and display_line.
3597 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3598 (display_string): Handle the case that STRING is non-null and
3599 LISP_STRING is not nil.
3600
0b5397c2
SM
3601 * xterm.c (x_draw_composite_glyph_string_foreground):
3602 Pay attention to s->face->overstrike.
dc954cb2
KH
3603
3604 * composite.c (composition_reseat_it): Don't check PT if STRING is
3605 non nil.
3606
4a00eaca
YM
36072010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3608
3609 * keyboard.c (read_char): Don't apply previous change when current
3610 buffer is unchanged by command execution.
3611
60abb287
JD
36122010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3613
3614 * keyboard.c (read_char): Return after executing from special map.
3615
893db5bc
GM
36162010-01-12 Glenn Morris <rgm@gnu.org>
3617
3618 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3619 bug-gnu-emacs rather than emacs-pretest-bug.
3620
4d03ece0
CY
36212010-01-11 Chong Yidong <cyd@stupidchicken.com>
3622
3623 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3624 initializing the Lisp variables that depend on them.
3625
1df47e38
YM
36262010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3627
3628 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3629 Clear areas that will not be updated after change of menu bar lines.
3630 Clear the menu bar window's current matrix when the window gets empty.
3631
2f1c6384
CY
36322010-01-09 Chong Yidong <cyd@stupidchicken.com>
3633
e398c61c
CY
3634 * intervals.h, textprop.c (extend_property_ranges): Return value
3635 and args changed. Discard properties that begin at or after the
3636 new end (Bug#5306).
3637
3638 * editfns.c (Fformat): Caller changed.
3639
e5a29a10
CY
3640 * nsterm.m (ns_set_default_prefs): Delete function.
3641 (syms_of_nsterm): Initialize ns_command_modifier,
3642 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3643 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3644
2f1c6384
CY
3645 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3646 position (Bug#4040).
3647
d427a9fa
EZ
36482010-01-09 Eli Zaretskii <eliz@gnu.org>
3649
3650 * editfns.c (Ffloat_time): Doc fix.
3651
21b9df2f
JD
36522010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3653
3654 * xfns.c (Fx_create_frame): Don't create frame larger than display
3655 by default bug#3643.
3656
4b00d3b1
YM
36572010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3658
3659 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3660 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3661 windows above internal border.
3662
3663 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3664 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3665 windows above internal border.
3666
3667 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3668 tool bar windows specially.
3669
3670 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3671
3672 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3673 specially.
3674 (XTflash): Take account of menu bar height.
3675
3676 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3677 specially.
3678
5075d853
JD
36792010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3680
ac146f82 3681 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3682 also be true before we can return early (bug #5339).
3683
474217c8
CY
36842010-01-06 David Reitter <david.reitter@gmail.com>
3685
3686 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3687 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3688 (Bug#3233).
3689
c0e6d47d
JD
36902010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3691
d0cf45b7
JD
3692 * font.c (font_open_entity): Enable chache and call cached_font_ok
3693 for the driver if defined.
3694 (QCuser_spec): New symbol.
3695 (font_spec_from_name): Save name as user-spec.
3696 (font_load_for_lface): Keep user-spec instead of name.
3697 (font_open_by_name): Save name as user-spec.
3698 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3699 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3700
3701 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3702 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3703 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3704
3705 * font.h (struct font_driver): Add cached_font_ok.
3706
c0e6d47d
JD
3707 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3708
7c583cd8
JD
37092010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3710
3711 * xterm.c (x_new_font): Move code for setting rows/cols before
3712 resizing ...
ac146f82 3713 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3714
3715 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3716 (xg_frame_resized, xg_frame_set_char_size):
3717 Call xg_clear_under_internal_border.
7c583cd8 3718 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3719
03f77f0a
CY
37202010-01-05 Chong Yidong <cyd@stupidchicken.com>
3721
3722 * keyboard.c (read_key_sequence): Catch keyboard switch after
3723 making a new tty frame (Bug#5095).
3724
2a1ef5be
KH
37252010-01-05 Kenichi Handa <handa@m17n.org>
3726
3727 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3728
e3eb1dae
SM
37292010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3730
3731 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3732 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3733 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3734
777013f2
MA
37352010-01-03 Michael Albinus <michael.albinus@gmx.de>
3736
3737 * dbusbind.c (xd_add_watch): Improve debug message.
3738 (xd_remove_watch): Improve debug message. If DATA is the session
3739 bus, unset D-Bus session environment.
3740 (Fdbus_init_bus): Pass the bus as argument to
3741 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3742
8932b1c2
CY
37432010-01-01 Chong Yidong <cyd@stupidchicken.com>
3744
87231e2c
CY
3745 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3746
4801c5fa
CY
3747 * lread.c (syms_of_lread): Make it clearer that these are the
3748 names of loaded files (Bug#5068).
3749
8932b1c2
CY
3750 * eval.c (run_hook_with_args): Handle the case where the global
3751 value has the obsolete single-function form (Bug#5026).
3752
11e3c684
CY
37532009-12-27 Chong Yidong <cyd@stupidchicken.com>
3754
3755 * minibuf.c (Fall_completions): Minor optimization.
3756
5b28ce35
EZ
37572009-12-26 Eli Zaretskii <eliz@gnu.org>
3758
5ce6e4f4
JB
3759 * .gdbinit (pgx): Fix display of composite glyphs.
3760 Display cmp.from and cmp.to as well.
3761 (pitx): Fix last change.
5b28ce35 3762
bcffff46
KH
37632009-12-25 Kenichi Handa <handa@m17n.org>
3764
3765 * composite.h (composition_adjust_point): Update prototype.
3766
3767 * composite.c (composition_reseat_it): Don't make a composition
3768 spanning over point.
3769 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3770 composable characters.
3771 (composition_adjust_point): New arg NEW_PT. Callers changed.
3772
3773 * keyboard.c (command_loop_1): Force redisplay if the last point
3774 was within a composition.
3775 (adjust_point_for_property): Don't adjust point for automatic
3776 composition when called after buffer modification.
3777
3f670e9a
EZ
37782009-12-19 Eli Zaretskii <eliz@gnu.org>
3779
5ce6e4f4
JB
3780 * .gdbinit (pitx): Don't use enum names, use their values.
3781 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3782 (pgx): Don't use enum names, use their values.
3783 (pitmethod): New helper command.
3784 (pitx): Use it to display iteration method.
3785 (pgrowit): New command.
3786
ad903955
EZ
3787 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3788
3f670e9a
EZ
3789 Update dependencies in Makefile.in.
3790
3791 * Makefile.in (alloc.o): Depend on termhooks.h.
3792 (atimer.o): Depend on blockinput.h.
3793 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3794 and frame.h.
3795 (callint.o): Depend on systime.h, coding.h, and composite.h.
3796 (callproc.o): Depend on buffer.h.
3797 (casefiddle.o): Don't depend on charset.h.
3798 (casetab.o): Depend on character.h.
3799 (ccl.o): Depend on composite.h.
3800 (chartab.o): Depend on ccl.h.
3801 (cm.o): Depend on dispextern.h.
3802 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3803 (coding.o): Don't depend on $(INTERVALS_H).
3804 (composite.o): Don't depend on dispextern.h explicitly (it's in
3805 $(INTERVALS_H)). Depend on ccl.h.
3806 (data.o): Depend on systime.h, coding.h, composite.h,
3807 dispextern.h, font.h, and ccl.h.
3808 (dired.o): Depend on composite.h.
3809 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3810 composite.h (it's in $(INTERVALS_H)).
3811 (doc.o): Depend on systime.h, coding.h, and composite.h.
3812 (editfns.o): Don't depend explicitly on dispextern.h.
3813 (emacs.o): Depend on frame.h and coding.h.
3814 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3815 (fileio.o): Depend on frame.h and commands.h. Don't depend
3816 explicitly on dispextern.h.
3817 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3818 composite.h.
3819 (fns.o): Don't depend on termhooks.h.
3820 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3821 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3822 coding.h, $(INTERVALS_H), window.h, xterm.h.
3823 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3824 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3825 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3826 fontset.h, ccl.h, and ftfont.h.
3827 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3828 (gtkutil.o): Depend on dispextern.h and composite.h.
3829 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3830 termhooks.h, and ccl.h.
3831 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3832 (intervals.o): Depend on systime.h and coding.h.
3833 (keyboard.o): Depend on composite.h and coding.h.
3834 (keymap.o): Depend on coding.h and frame.h.
3835 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3836 (macros.o): Depend on systime.h, coding.h, and composite.h.
3837 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3838 and atimer.h.
3839 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3840 dispextern.h explicitly.
0b5397c2
SM
3841 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3842 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3843 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3844 (regex.o): Don't depend on charset.h.
3845 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3846 (search.o): Don't depend explicitly on composite.h.
3847 (sound.o): Depend on atimer.h and systime.h.
3848 (syntax.o): Don't depend explicitly on composite.h.
3849 (sysdep.o): Depend on coding.h and composite.h.
3850 (term.o): Depend on xterm.h and buffer.h.
3851 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3852 (textprop.o): Don't depend on dispextern.h explicitly.
3853 (undo.o): Depend on dispextern.h.
3854 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3855 dispextern.h and composite.h explicitly.
3856 (xdisp.o): Depend on ccl.h.
3857 (xfaces.o): Depend on coding.h and ccl.h.
3858 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3859 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3860 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3861 ftfont.h.
3862 (xgselect.o): New dependency.
3863 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3864 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3865 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3866 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3867 (xsmfns.o): Depend on frame.h and dispextern.h.
3868 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3869 sysselect.h.
3870
7a6f7fea
AS
38712009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3872
3873 * font.c (Fclear_font_cache): Pass correct cache argument to
3874 font_clear_cache.
3875
f4c21026
AS
38762009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3877
3878 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3879 twice.
3880
f7ab0997
CY
38812009-12-15 Chong Yidong <cyd@stupidchicken.com>
3882
3883 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3884 calling file-remote-p. Reported by Jim Meyering.
3885
fa8e045a
MA
38862009-12-15 Michael Albinus <michael.albinus@gmx.de>
3887
3888 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3889 avoid compiler warnings. (Bug #5217)
fa8e045a 3890
a63dba42
KH
38912009-12-14 Kenichi Handa <handa@m17n.org>
3892
3893 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3894 in 8-bit encoding.
3895
5ce6e4f4 38962009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3897
3898 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3899 tooltip windows.
3900
223e5fc6
JD
39012009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3902
36acb2a7
JD
3903 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3904 Xatom_net_window_type.
3905
3906 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3907 Xatom_net_window_type.
3908
b8f00677
JD
3909 * xterm.c (my_log_handler): New function.
3910 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3911 so we can filter out buggy messages. (Bug #5120).
b8f00677 3912
e5f0bc9a
JD
3913 * xterm.c (xg_scroll_callback): Parameter list changed,
3914 use parameter GtkScrollType to determine scroll/line/page.
3915 Only allow dragging if a button < 4 is grabbed (bug #5177).
3916 (xg_end_scroll_callback): New function.
3917 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3918 xg_create_scroll_bar.
3919
3920 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3921 (scroll_end_callback): Remove.
3922 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3923 button-release-event. Replace value-changed event with change-value,
3924 bug #5177,
3925 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3926 bug #5177.
3927
3928 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3929 (xg_create_scroll_bar): Add GCallback end_callback.
3930
223e5fc6
JD
3931 * xftfont.c (QClcdfilter): New variable.
3932 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3933 (syms_of_xftfont): Initialize QClcdfilter.
3934
3c055b77
JD
39352009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3936
3937 * xsettings.c (struct xsettings): Add member seen.
3938 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3939 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3940 (apply_xft_settings): Only update Xft settings with what member seen
3941 indicates as new.
3942
05fe33ff
EZ
39432009-12-12 Eli Zaretskii <eliz@gnu.org>
3944
3945 * dispextern.h (struct text_pos): Use EMACS_INT;
3946 (struct glyph): Use EMACS_INT for charpos.
3947 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3948 region_beg_charpos, region_end_charpos,
3949 redisplay_end_trigger_charpos, and also for
3950 iterator_stack_entry.end_charpos and
3951 iterator_stack_entry.stop_charpos.
3952
e8d7886a
JD
39532009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3954
5ce6e4f4 3955 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3956 (xg_create_scroll_bar): Call scroll_end_callback on button release
3957 event (bug #5177).
3958 (xg_event_is_for_scrollbar): != replaced with ==.
3959
d0db2ec8
KH
39602009-12-12 Kenichi Handa <handa@m17n.org>
3961
3962 * ftfont.c (struct ftfont_info): New member matrix.
3963 (ftfont_open): Setup xftfont_info->matrix.
3964 (MFLTFontFT): New member matrix.
3965 (FLOOR, CEIL, ROUND): New macros.
3966 (ftfont_get_metrics): Handle matrix transformation.
3967 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3968
3969 * xftfont.c (struct xftfont_info): New member matrix.
3970 (xftfont_open): Setup xftfont_info->matrix.
3971
39722009-12-10 Kenichi Handa <handa@m17n.org>
3973
3974 * xdisp.c (append_space_for_newline): Consider face-remapping.
3975
2cc7b62f
AS
39762009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3977
b87dd913
AS
3978 * xsettings.c: Include "keyboard.h".
3979
eba5eb94
AS
3980 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3981
2cc7b62f
AS
3982 Fix implicit function declarations.
3983 * cmds.c: Include "frame.h".
3984 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3985 * frame.h: Move declaration of delete_frame outside of
3986 HAVE_WINDOW_SYSTEM.
3987
a4ef73c8
CY
39882009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3989
3990 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3991
3992 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3993 GTK builds.
3994
944a300c
AS
39952009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3996
3997 * unexelf.c (unexec): Don't search for .data twice.
3998
022eef62
CY
39992009-12-05 Chong Yidong <cyd@stupidchicken.com>
4000
426ac949
CY
4001 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4002 if push failed.
4003 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4004 of push_display_prop (Bug#5000).
4005
022eef62
CY
4006 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4007 value of font_list_entities (Bug#5085).
4008
be95bee9
JB
40092009-12-04 Juanma Barranquero <lekktu@gmail.com>
4010
4011 Fix `string-to-number' to deal consistently with integers and floats.
4012 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4013 trailing characters, not just whitespace.
4014 (read1): Pass new arg 0 to keep old behavior.
4015 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4016 trailing chars, as it is already done for integers. Doc fixes.
4017 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4018
24c2d7ce
EZ
40192009-12-04 Eli Zaretskii <eliz@gnu.org>
4020
0b5397c2
SM
4021 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4022 Delete unused enumeration value.
24c2d7ce 4023
7e694795
EZ
40242009-12-03 Eli Zaretskii <eliz@gnu.org>
4025
4026 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4027
84b31826
SM
40282009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4029
4030 * process.c (Fmake_network_process): Fix up the tests for
4031 "connectionless socket", so they DTRT for seqpacket sockets as well.
4032
f00c449b
SM
40332009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4034
4035 * process.c (Qseqpacket): New symbol.
4036 (HAVE_SEQPACKET): New macro.
4037 (Fmake_network_process): Accept new :type `seqpacket'.
4038 (init_process): Add `seqpacket' feature when applicable.
4039 (syms_of_process): Initialize Qseqpacket.
4040
8096a0ff
YM
40412009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4042
4043 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4044 if entity is Qnil.
4045
3e0de07f
SM
40462009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4047
4048 * print.c (print_preprocess): Preprocess the key_and_value table of
4049 hashtables, even tho they're "hidden" (bug#5082).
4050
abeafb2a
JD
40512009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4052
4053 * frame.c (frame_make_pointer_invisible)
4054 (frame_make_pointer_visible): Declare f before statements.
4055
4bf47195
EZ
40562009-11-28 Eli Zaretskii <eliz@gnu.org>
4057
4058 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4059 omitted dependencies on lisp.h.
4060
c525b3f2
JD
40612009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4062
ece2d4ed
JD
4063 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4064 is NULL.
4065
4066 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4067
4068 * frame.c (frame_make_pointer_invisible)
3e0de07f 4069 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4070 frame.
4071
c525b3f2
JD
4072 * search.c (simple_search): Remove warning by making *p const.
4073
2f00e299
DN
40742009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4075
4076 * xdisp.c (power_letter): Remove duplicate const.
4077
084b049b
JD
40782009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4079
a1fadc6f
JD
4080 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4081
5ce6e4f4 4082 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4083 defaults (bug #5025).
4084
28259cac
SM
40852009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4086
4087 * insdel.c (adjust_markers_for_delete): Move it in the
4088 right direction! (bug#4803)
4089
e8e14166
YM
40902009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4091
4092 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4093
4094 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4095
86677b58
GM
40962009-11-24 Glenn Morris <rgm@gnu.org>
4097
4098 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4099
581e51e8
JD
41002009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4101
cfc86c7a
JD
4102 * Makefile.in: Must create deps for ecrt0.o in its rule.
4103
581e51e8
JD
4104 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4105 because that is what Gtk+ font dialog understands.
4106
4107 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4108 of Fcopy_sequence.
4109 (font_open_by_name): Put name given into QCname for font-object returned.
4110
4111 * frame.c (x_set_font): Save original font name as frame parameter
4112 font-parameter.
4113
4114 * xsettings.c (set_default_xft_settings): New function.
4115 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4116 is found.
4117
8b264ecb
AS
41182009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4119
4120 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4121 searching backwards through multibyte buffer.
4122
872870b2
JD
41232009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4124
4125 * xterm.c: #include xgselect.h.
4126 (x_initialize): Call xgselect_initialize.
4127
4128 * xsettings.c (something_changedCB): C++ comments => C comments.
4129 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4130 does that now.
4131
4132 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4133 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4134 (scroll_bar_button_cb): Remove.
5ce6e4f4 4135 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4136 event.
4137 (xg_create_scroll_bar): Don't bind button-press-event and
4138 button-release-event.
4139
4140 * process.c: Include xgselect.h if defined (USE_GTK) ||
4141 defined (HAVE_GCONF).
4142 (wait_reading_process_output): Call xg_select for the same condition.
4143
4144 * xgselect.c (xg_select): New function to better integrate with
4145 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4146
4147 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4148
4149 * Makefile.in (XOBJ): Add xgselect.o.
4150
62a6e103
AS
41512009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4152
0b5397c2
SM
4153 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4154 Remove ignored second argument. All callers changed.
62a6e103
AS
4155 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4156 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4157 * xdisp.c (string_char_and_length): Likewise.
4158
b0ca0f33
DN
41592009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4160
4161 * xterm.c (x_new_font):
4162 * print.c (print_object):
4163 * cmds.c (Fself_insert_command): Move declarations before statements.
4164
dd5a6279
CY
41652009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4166
4167 * s/cygwin.h: Remove unneeded linker flags.
4168
4a8e097d
JD
41692009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4170
0d1d0d26
JD
4171 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4172
4173 * xsettings.h: Declare xsettings_get_system_font.
4174
4175 * xsettings.c (xsettings_get_system_font): New function.
4176 (init_gconf): No use initiating gconf unless we have Xft also.
4177 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4178 HAVE_GCONF.
4179
4a8e097d
JD
4180 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4181 add a blank entry so it doesn't collapse into nothing.
4182
8ab1650e
SM
41832009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4184
4185 * lread.c (Funintern): Comment out last change.
4186
82c602f0
RS
41872009-11-19 Richard Stallman <rms@gnu.org>
4188
4189 * lread.c (Funintern): Error if symbol is t or nil.
4190
87e32266
SM
41912009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4192
4193 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4194 representation of Lisp integers.
4195 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4196
1b9ac145
AS
41972009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4198
4199 * lisp.h: Remove declaration of Ffont_get_system_font.
4200 * xfns.c: Move include of "xsettings.h".
4201 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4202
dfb3c4c6
JD
42032009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4204
87e32266
SM
4205 * xsettings.c (something_changedCB, Ffont_get_system_font):
4206 Check use_system_font.
dfb3c4c6
JD
4207 (syms_of_xsettings): DEFVAR font-use-system-font.
4208
9370c1d8
AS
42092009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4210
25fe851a
AS
4211 * xfns.c (x_default_font_parameter): Remove dead assignment.
4212
9370c1d8
AS
4213 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4214
637fa988
JD
42152009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4216
87e32266 4217 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4218 not have FC_LCD_*. #define them if not there.
a6eb20d8 4219
87e32266 4220 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4221
637fa988
JD
4222 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4223
4224 * xterm.c (handle_one_xevent): Call xft_settings_event for
4225 ClientMessage, PropertyNotify and DestroyNotify.
4226 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4227 Call xsettings_initialize.
4228
4229 * xftfont.c (xftfont_fix_match): New function.
4230 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4231 Call xftfont_fix_match after XftFontMatch.
4232
4233 * xfont.c (xfont_driver): Initialize all members.
4234
87e32266
SM
4235 * xfns.c (x_default_font_parameter):
4236 Try font from Ffont_get_system_font.
637fa988
JD
4237 Do not get font from x_default_parameter if we got one from
4238 Ffont_get_system_font.
87e32266 4239 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4240
4241 * w32font.c (w32font_driver): Initialize all members.
4242
4243 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4244
4245 * lisp.h: Declare syms_of_xsettings.
4246
87e32266
SM
4247 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4248 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4249
4250 * ftfont.c (ftfont_filter_properties): New function.
4251
4252 * frame.c (x_set_font): Remove unused variable lval.
4253
87e32266 4254 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4255
4256 * font.c (font_put_extra): Don't return if val is nil, it means
4257 boolean option is off.
4258 (font_parse_fcname): Collect all extra properties in extra_props
4259 and call filter_properties for all drivers with extra_props and
4260 font as parameter.
87e32266
SM
4261 (font_open_entity): Do not use cache, it does not pick up new
4262 fontconfig settings like hinting.
637fa988
JD
4263 (font_load_for_lface): If spec had a name in it, store it in entity.
4264
a73f9c9d 4265 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4266
4267 * config.in: HAVE_GCONF is new.
4268
4269 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4270 xsettings.o is new.
4271
5a942932
KH
42722009-11-17 Kenichi Handa <handa@m17n.org>
4273
4274 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4275 back to the default font in case that no suitable font is found.
4276
b7c7a4d1
SM
42772009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4278
4279 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4280 Suggested by Chad Brown <yandros@mit.edu>.
4281 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4282
072f1e39
JD
42832009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4284
4285 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4286
5d1e70a2
AS
42872009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4288
87e32266 4289 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4290
a53cfbe5
JD
42912009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4292
473a99b7
JD
4293 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4294 has a parent.
4295
a53cfbe5 4296 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4297 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4298
4299 * config.in: Generated (AUTO_DEPEND).
4300
f04bb9b2
MA
43012009-11-13 Michael Albinus <michael.albinus@gmx.de>
4302
b7c7a4d1 4303 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4304 Vdbus_registered_functions_table, because it contains also
4305 properties. Fix docstring.
b7c7a4d1 4306 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4307
8f11f7ec
SM
43082009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4309
4310 * alloc.c (mark_object): Don't reprocess marked strings.
4311 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4312 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4313
8a605fe8
KH
43142009-11-13 Kenichi Handa <handa@m17n.org>
4315
8f11f7ec 4316 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4317 semantics of Vword_combining_categories.
4318 (Vword_combining_categories): Describe the slight change of the
4319 semantics.
4320
241c4680
EZ
43212009-11-13 Eli Zaretskii <eliz@gnu.org>
4322
4323 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4324
4325 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4326
5d58e44c
SM
43272009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4328
4329 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4330
5e13f9d3
JB
43312009-11-12 Juanma Barranquero <lekktu@gmail.com>
4332
4333 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4334
cf54c754
DR
43352009-11-11 David Reitter <david.reitter@gmail.com>
4336
4337 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4338 variables to fix 2009-11-09 change.
4339
a4ada374
DN
43402009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4341
91433552
DN
4342 * process.c (ifflag_def): Make flag_sym constant.
4343 (Fnetwork_interface_info): Use a constant pointer.
4344 (ifflag_table):
4345 * xfns.c (cursor_bits):
4346 * xdisp.c (power_letter):
4347 * termcap.c (speeds, esctab):
4348 * sysdep.c (baud_convert):
4349 * keyboard.c (lispy_accent_codes, modifier_names):
4350 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4351 (jpeg_format, tiff_format, gif_format, svg_format)
4352 (interlace_start, interlace_increment, gs_format):
4353 * gtkutil.c (separator_names):
4354 * fringe.c (swap_nibble):
4355 * fns.c (base64_value_to_char, base64_char_to_value):
4356 * fileio.c (make_temp_name_tbl):
4357 * coding.c (suffixes): Make constant.
4358
f4265f6c
DN
4359 * frame.c (make_initial_frame):
4360 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4361 build_string.
4362 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4363
04420943
DN
4364 * s/freebsd.h:
4365 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4366
0a5d24ae
DN
4367 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4368 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4369
a4ada374
DN
4370 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4371 * xterm.c (syms_of_xterm):
4372 * xfaces.c (syms_of_xfaces):
4373 * xdisp.c (syms_of_xdisp):
4374 * lread.c (syms_of_lread):
4375 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4376 build_string.
91433552 4377
a4ada374
DN
4378 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4379
af98fc7f
SM
43802009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4381
8ab1650e 4382 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4383
e90292a9
JD
43842009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4385
4386 * keyboard.h: Declare timer_check.
4387
4388 * keyboard.c (timer_check_2): New function that does what the old
4389 timer_check did.
4390 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4391 returned, i.e. don't return -1 with timers pending.
4392
4393 * process.c: Remove extern declaration of timer_check.
4394
4395 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4396 even if timer_check returned -1.
4397
af98fc7f
SM
4398 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4399 xg_dialog_data.
e90292a9
JD
4400 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4401 the event loop.
4402 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4403 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4404 Destroy the dialog after xg_dialog_run.
4405
045b83c0
SM
44062009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4407
4408 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4409
1fb99a3a
JD
44102009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4411
4412 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4413
04e452cb
JB
44142009-11-09 Juanma Barranquero <lekktu@gmail.com>
4415
4416 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4417
ef7417fd
SM
44182009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4419
4420 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4421 w32menu.c, and nsmenu.m.
4422 Simplify the obsolete case where position is nil.
4423 (cleanup_popup_menu): New function, moved from nsmenu.m.
4424 (struct skp): Remove slot `notreal'.
4425 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4426 adjust callers.
4427 (single_menu_item): Adjust call to parse_menu_item.
4428 (syms_of_menu): Defsubr x-popup-menu.
4429 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4430 (keymap_panes): Don't export any more.
4431 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4432 (xmenu_show): Declare.
4433 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4434 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4435 * keyboard.h (parse_menu_item): Update declaration.
4436 * xmenu.c (Fx_popup_menu): Remove.
4437 (syms_of_xmenu): Don't defsubr x-popup-menu.
4438 * w32menu.c (Fx_popup_menu): Remove.
4439 (syms_of_w32menu): Don't defsubr x-popup-menu.
4440 * nsmenu.m (cleanup_popup_menu): Remove.
4441 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4442 moved to menu.c's Fx_popup_menu.
4443 (Fx_popup_menu): Remove.
4444 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4445 menu_items (it's done in menu.c already).
4446
424d6179
SM
44472009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4448
4449 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4450 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4451
c0df13a6 44522009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4453
4454 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4455 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4456 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4457 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4458
2de9f71c
SM
44592009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4460
4461 Let integers use up 2 tags to give them one extra bit and thus double
4462 their range.
4463 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4464 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4465 New macros.
4466 (enum Lisp_Type): Use them. Give explicit values.
4467 (Lisp_Type_Limit): Remove.
4468 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4469 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4470 Pay attention to USE_2_TAGS_FOR_INTS.
4471 (INTEGERP): Use LISP_INT_TAG_P.
4472 * fns.c (internal_equal): Simplify the default case.
4473 (sxhash): Use case_Lisp_Int.
4474 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4475 any more.
4476 (Ftype_of): Use case_Lisp_Int.
4477 (store_symval_forwarding): Take into account the fact that Ints can
4478 now have more than one tag.
4479 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4480 buffer_slot_type_mismatch):
4481 * xfaces.c (face_attr_equal_p):
4482 * print.c (print_object):
4483 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4484 Use case_Lisp_Int.
4485
323637a2
EZ
44862009-11-06 Eli Zaretskii <eliz@gnu.org>
4487
7ac65b38
EZ
4488 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4489
323637a2
EZ
4490 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4491 warning.
4492
e511451f
JD
44932009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4494
4495 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4496
4497 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4498
4499 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4500 ButtonPressRelease and MotionNotify (bug#4870).
4501
5e2327cf
DN
45022009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4503
5adc433e
DN
4504 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4505
d67b4f80
DN
4506 * xterm.c (syms_of_xterm):
4507 * xselect.c (syms_of_xselect):
4508 * xmenu.c (syms_of_xmenu):
4509 * xfns.c (syms_of_xfns):
4510 * xfaces.c (syms_of_xfaces):
4511 * xdisp.c (syms_of_xdisp):
4512 * window.c (syms_of_window):
4513 * w32fns.c (syms_of_w32fns):
4514 * undo.c (syms_of_undo):
4515 * textprop.c (syms_of_textprop):
4516 * terminal.c (syms_of_terminal):
4517 * syntax.c (syms_of_syntax):
4518 * sound.c (syms_of_sound):
4519 * search.c (syms_of_search):
4520 * print.c (syms_of_print):
4521 * minibuf.c (syms_of_minibuf):
4522 * macros.c (syms_of_macros):
4523 * keymap.c (syms_of_keymap, initial_define_key)
4524 (initial_define_lispy_key):
4525 * keyboard.c (syms_of_keyboard):
4526 * insdel.c (syms_of_insdel):
4527 * image.c (syms_of_image):
4528 * fringe.c (syms_of_fringe):
4529 * frame.c (syms_of_frame):
4530 * fontset.c (syms_of_fontset):
4531 * fns.c (syms_of_fns):
4532 * fns.c (syms_of_fns):
4533 * fileio.c (syms_of_fileio):
4534 * fileio.c (syms_of_fileio):
4535 * eval.c (syms_of_eval):
4536 * doc.c (syms_of_doc):
4537 * dispnew.c (syms_of_display):
4538 * dired.c (syms_of_dired):
4539 * dbusbind.c (syms_of_dbusbind):
4540 * data.c (syms_of_data):
4541 * composite.c (syms_of_composite):
4542 * coding.c (syms_of_coding):
4543 * cmds.c (syms_of_cmds):
4544 * charset.c (define_charset_internal, syms_of_character):
4545 * ccl.c (syms_of_ccl):
4546 * category.c (syms_of_category, init_category_once):
4547 * casetab.c (syms_of_casetab):
4548 * casefiddle.c (syms_of_casefiddle):
4549 * callint.c (syms_of_callint):
4550 * bytecode.c (syms_of_bytecode):
4551 * buffer.c (keys_of_buffer, syms_of_buffer):
4552 * alloc.c (syms_of_alloc):
4553 * process.c (syms_of_process, init_process):
4554 * lread.c (syms_of_lread, init_obarray):
4555 * font.c (build_style_table):
4556 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4557 intern_c_string, calls to make_pure_string with
4558 make_pure_c_string. Use pure_cons instead of Fcons.
4559
5e2327cf
DN
4560 * process.c (socket_options): Make it const.
4561 (set_socket_option, init_process): Use a const pointer.
4562
4563 * lread.c (intern_c_string): New function.
4564 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4565 (defvar_int): Uset it. Make the name const char*.
4566
4567 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4568 (defvar_int): Update prototypes.
4569 (DEFUN, EXFUN): Support for prototypes is now required.
4570 (intern_c_string): New prototype.
4571 (struct Lisp_Subr): Make symbol_name constant.
4572
4573 * font.c (struct table_entry): Remove unused member. Make NAMES
4574 constant.
4575 (weight_table, slant_table, width_table): Make constant.
4576
4577 * emacs.c (struct standard_args): Make name and longname constant.
4578
4579 * character.h (DEFSYM): Use intern_c_string.
4580
a56eaaef
DN
45812009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4582
4583 * alloc.c (make_pure_c_string): New function.
4584
4585 * eval.c (Fautoload): Purecopy all arguments.
4586
f6a07420
KH
45872009-11-05 Kenichi Handa <handa@m17n.org>
4588
4589 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4590 the buffer in case of replace.
4591
5d28d4b1
DN
45922009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4593
4594 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4595
b349d111
SM
45962009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4597
d528b1ce
SM
4598 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4599 when applicable (bug#4851).
4600
b349d111
SM
4601 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4602 (P_): Support for prototypes is now required.
4603
c38eb027
CY
46042009-10-31 Chong Yidong <cyd@stupidchicken.com>
4605
4606 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4607 (Bug#4827).
4608
0405f8d9
EZ
46092009-10-30 Eli Zaretskii <eliz@gnu.org>
4610
d528b1ce 4611 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4612
ca0a881a
DN
46132009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4614
4615 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4616
d528b1ce
SM
4617 * lread.c (Fload): Purecopy the file name when building
4618 Vpreloaded_file_list.
ca0a881a 4619
47e0e0e4
JR
46202009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4621
4622 * w32fns.c (syms_of_w32fns): Change default value of
4623 w32-scroll-lock-modifier to nil. (Bug#2827)
4624
057bce6f
JB
46252009-10-26 Juanma Barranquero <lekktu@gmail.com>
4626
782a943e 4627 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4628
242bc74c
AS
46292009-10-26 Andreas Schwab <schwab@redhat.com>
4630
4631 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4632
522d013a
JB
46332009-10-26 Juanma Barranquero <lekktu@gmail.com>
4634
4635 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4636 For delta < 0, skip check that only makes sense when the mini-window
4637 is going to be enlarged. (Bug#4534)
4638
18060980
CY
46392009-10-25 Chong Yidong <cyd@stupidchicken.com>
4640
4641 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4642 string in menu maps (Bug#4471).
4643
fec8f0fe
CY
46442009-10-24 Chong Yidong <cyd@stupidchicken.com>
4645
4646 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4647 FRAME_NS_VIEW on terminal frames (Bug#4765).
4648
10d66ec0
AS
46492009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4650
1cae01f7
AS
4651 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4652 DBUS_TYPE_UINTnn separately to get proper sign extension.
4653
58a12889
AS
4654 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4655 can properly handle unsigned types.
d528b1ce 4656 (make_uid, make_gid): Remove.
58a12889 4657
987c9327
AS
4658 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4659 types again.
4660
522d013a 4661 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4662 (system_process_attributes): Likewise.
4663
905a9ed3
DN
46642009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4665
4666 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4667
4668 * eval.c (Fautoload): Purecopy the filename. Simplify.
4669
4670 * category.c (Fdefine_category): Purecopy docstring.
4671
a599b3e8
AS
46722009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4673
7b792fc9
AS
4674 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4675
a599b3e8
AS
4676 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4677
b35ac83e
CY
46782009-10-23 Chong Yidong <cyd@stupidchicken.com>
4679
4680 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4681 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4682 (Bug#4775).
4683
e8903e00
SM
46842009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4685
4686 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4687 (init_fileio_once):
4688 * lisp.h (init_fileio_once): Remove.
4689 * emacs.c (main): Don't call init_fileio_once.
4690
8f43cbf3
DN
46912009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4692
4693 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4694
26898943
AS
46952009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4696
4697 * doprnt.c (doprnt): Fix overflow check.
4698
5c646d5a
JD
46992009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4700
3132a7ea
JD
4701 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4702
5c646d5a
JD
4703 * xterm.h (x_wait_for_event): Declare it.
4704
4705 * xterm.c (pending_event_wait): New variable.
4706 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4707 see pending_event_wait.eventtype.
4708 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4709 (x_new_font): Call change_frame_size with new rows/columns before we
4710 try to resize the frame.
5c646d5a 4711 (x_wait_for_event): New function.
d528b1ce
SM
4712 (x_set_window_size_1): Don't change gravity unless change_gravity
4713 is set.
5c646d5a
JD
4714 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4715 don't change frame size, instead wait for the ConfigureNotify.
4716 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4717 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4718 (x_initialize): Initialize pending_event_wait.
4719
4720 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4721 size.
4722
4723 * widget.c (EmacsFrameSetValues): Add comment.
4724 (EmacsFrameSetCharSize): Just call x_set_window_size.
4725
4726 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4727 x_wait_for_event.
d528b1ce 4728 (flush_and_sync): Remove again.
5c646d5a
JD
4729 (xg_get_font_name): Suggest monospace if no previous font is known.
4730
e9c1637d
SM
47312009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4732
4733 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4734 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4735
5a72cccb
YM
47362009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4737
4738 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4739 processing pending events when event is filtered for input method.
ab04798f 4740 (Bug#3681)
5a72cccb 4741
2629aa37
JB
47422009-10-20 Juanma Barranquero <lekktu@gmail.com>
4743
4744 * fns.c: Add #endif accidentally removed in previous change.
4745
c3417a74
DN
47462009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4747
4748 * fns.c: Remove code for unsupported system: MAC_OS.
4749 * image.c: Likewise. Include setjmp.h.
4750
9685cef2
JD
47512009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4752
4753 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4754 pixel -1 (bug #4742).
4755
d7306fe6
DN
47562009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4757
019d2c4c
DN
4758 * process.c (create_pty): Remove conditionals for no longer
4759 supported systems: UNIPLUS and RTU.
4760
ee6bacd4
DN
4761 * xterm.c:
4762 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4763
d7306fe6
DN
4764 * alloc.c: Do not define struct catchtag.
4765 * eval.c: Move struct catchtag definition ...
4766 * lisp.h: ... here.
4767
4768 * image.c: Move png.h #include earlier to avoid warnings.
4769
4770 * xterm.c:
4771 * xsmfns.c:
4772 * xselect.c:
4773 * xrdb.c:
4774 * xmenu.c:
4775 * xftfont.c:
4776 * xfont.c:
4777 * xfns.c:
4778 * xfaces.c:
4779 * xdisp.c:
4780 * window.c:
4781 * widget.c:
4782 * w32xfns.c:
4783 * w32uniscribe.c:
4784 * w32term.c:
4785 * w32select.c:
4786 * w32reg.c:
4787 * w32proc.c:
4788 * w32menu.c:
4789 * w32inevt.c:
4790 * w32heap.c:
4791 * w32font.c:
4792 * w32fns.c:
4793 * w32console.c:
4794 * w32.c:
4795 * w16select.c:
4796 * vm-limit.c:
4797 * unexsol.c:
4798 * unexec.c:
4799 * unexcw.c:
4800 * unexaix.c:
4801 * undo.c:
4802 * tparam.c:
4803 * textprop.c:
4804 * terminfo.c:
4805 * terminal.c:
4806 * termcap.c:
4807 * term.c:
4808 * syntax.c:
4809 * sound.c:
4810 * sheap.c:
4811 * search.c:
4812 * scroll.c:
4813 * region-cache.c:
4814 * regex.c:
4815 * ralloc.c:
4816 * process.c:
4817 * print.c:
b024548b
DN
4818 * nsterm.m:
4819 * nsselect.m:
4820 * nsmenu.m:
4821 * nsimage.m:
4822 * nsfont.m:
4823 * nsfns.m:
d7306fe6
DN
4824 * msdos.c:
4825 * minibuf.c:
4826 * menu.c:
4827 * marker.c:
4828 * macros.c:
4829 * keymap.c:
4830 * keyboard.c:
4831 * intervals.c:
4832 * insdel.c:
4833 * indent.c:
4834 * gtkutil.c:
4835 * ftxfont.c:
4836 * ftfont.c:
4837 * fringe.c:
4838 * frame.c:
4839 * fontset.c:
4840 * font.c:
4841 * fns.c:
4842 * floatfns.c:
4843 * filelock.c:
4844 * fileio.c:
4845 * emacs.c:
4846 * editfns.c:
4847 * dosfns.c:
4848 * doprnt.c:
4849 * doc.c:
4850 * dispnew.c:
4851 * dired.c:
4852 * dbusbind.c:
4853 * data.c:
4854 * composite.c:
4855 * coding.c:
4856 * cmds.c:
4857 * cm.c:
4858 * chartab.c:
4859 * charset.c:
4860 * character.c:
4861 * ccl.c:
4862 * category.c:
4863 * casetab.c:
4864 * casefiddle.c:
4865 * callproc.c:
4866 * callint.c:
4867 * bytecode.c:
4868 * buffer.c:
4869 * atimer.c: Include setjmp.h. (Bug#4643)
4870
fd5f21e6
SM
48712009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4872
4c0354d7
SM
4873 Remove leftover table unibyte_to_multibyte_table.
4874 * character.c (unibyte_to_multibyte_table): Remove.
4875 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4876 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4877 * character.h (UNIBYTE_TO_CHAR): New macro.
4878 (MAKE_CHAR_MULTIBYTE): Use it.
4879 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4880 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4881 (message_dolog, set_message_1):
4882 * search.c (Freplace_match):
4883 * editfns.c (Fcompare_buffer_substrings):
4884 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4885 (concat):
4886 * insdel.c (copy_text, count_size_as_multibyte):
4887 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4888 * term.c (produce_glyphs):
4889 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4890 * regex.c (RE_CHAR_TO_MULTIBYTE):
4891 * cmds.c (internal_self_insert):
4892 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4893
fd5f21e6
SM
4894 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4895
4418646e
DN
48962009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4897
4898 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4899
35f5c1d2
JB
49002009-10-16 Juanma Barranquero <lekktu@gmail.com>
4901
4902 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4903
a0cd8f6b
AR
49042009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4905
4906 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4907 still needed under Tiger.
4908
4909 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4910
4911 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4912 __Apple__.
4913
4914 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4915
01a8d3fa
KH
49162009-10-15 Kenichi Handa <handa@m17n.org>
4917
4918 * print.c (print_object): Escape a symbol like "2E10" too.
4919
bf6c75c9 49202009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4921
4922 Cleanups and changes for 64-bit compile under Snow Leopard.
4923 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4924
4925 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4926
c5959062 4927 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4928 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4929 cast argument.
4930 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4931 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4932
4933 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4934
4935 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4936 where appropriate.
4937
4938 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4939 where appropriate.
6e4780c5
JB
4940 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4941 Use stringWithUTF8String.
bf6c75c9
AR
4942 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4943
6e4780c5
JB
4944 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4945 Add formal protocol mention to inheritance.
bf6c75c9
AR
4946 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4947
6e4780c5
JB
4948 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4949 Fix printf format.
bf6c75c9
AR
4950 (ns_query_color): Use CGFloat where appropriate.
4951 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4952 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4953 argument.
4954
3d87f118
AR
4955 * config.in (NS_HAVE_NSINTEGER): Drop.
4956
a95c8102
AR
4957 * dbusbind.c (dbus-method-return-internal)
4958 (dbus-method-error-internal): Use long format in printf, and cast
4959 argument.
4960
4961 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4962 in printf, and cast argument.
4963
6873acca 4964 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4965 cast argument.
4966
9ec6f100
GM
49672009-10-11 Glenn Morris <rgm@gnu.org>
4968
4969 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4970
5be883cd
JD
49712009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4972
4973 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4974 menu bar with a small width so it doesn't enlarge the frame.
4975
d7a39b51
JB
49762009-10-08 Juanma Barranquero <lekktu@gmail.com>
4977
4978 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4979
0c2b6f8e
GM
49802009-10-06 Glenn Morris <rgm@gnu.org>
4981
4982 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4983 SOME_MACHINE_LISP (this enters indirectly via DOC).
4984
e02131a2
EZ
49852009-10-05 Eli Zaretskii <eliz@gnu.org>
4986
4987 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4988
b4744254
EZ
49892009-10-04 Eli Zaretskii <eliz@gnu.org>
4990
4991 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4992 Doc fix.
4993
dbf64827
JB
49942009-10-03 Martin Rudalics <rudalics@gmx.at>
4995
4996 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4997
e9a0aef8
MA
49982009-10-02 Michael Albinus <michael.albinus@gmx.de>
4999
d528b1ce 5000 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5001 used anymore outside fileio.c.
5002
5003 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5004
64eb2b56
JB
50052009-10-01 Juanma Barranquero <lekktu@gmail.com>
5006
5007 * lisp.h (Qdelete_directory_internal):
5008 Declare, instead of Qdelete_directory.
5009
5010 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5011
9d28c33e
SM
50122009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5013
5014 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5015
9d8f3bd9
MA
50162009-10-01 Michael Albinus <michael.albinus@gmx.de>
5017
9d28c33e 5018 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5019 Fdelete_directory. It is not a command anymore. It has no file
5020 name handler.
5021
9694740b
SM
50222009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5023
5024 * xdisp.c (get_next_display_element): Use an enum in last change.
5025
748e162f
KH
50262009-09-28 Kenichi Handa <handa@m17n.org>
5027
9694740b 5028 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5029 unibyte_display_via_language_environment in handling
5030 Vnobreak_char_display.
5031
17efd58d
AR
50322009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5033
5034 * nsterm.h (ns_app_name): New extern variable.
5035
5036 * nsterm.m (ns_app_name): New variable.
5037 (ns_term_init): Set and use it.
5038 (ns_term_shutdown): Use it.
5039
5040 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5041 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5042
5043 * nsfns.m (ns_set_name_iconic, ns_set_name)
5044 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5045 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5046
9694740b
SM
5047 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5048 Remove double-casting in client_data comparison.
31c2d412 5049
3208cb35
YM
50502009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5051
5052 * keyboard.c (make_lispy_event): Remember last wheel direction.
5053 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5054
b7d552d6
GM
50552009-09-26 Glenn Morris <rgm@gnu.org>
5056
5057 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5058 internal.elc. Add term/pc-win.elc.
5059 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5060 term/x-win.elc.
5061 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5062 term/w32-win.elc.
5063 (NS_SUPPORT): New.
5064 (lisp): Add NS_SUPPORT.
5065 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5066
4ff670a8
DR
50672009-09-25 David Reitter <david.reitter@gmail.com>
5068
5069 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5070 on Mac OS X 10.6+ (bug#4513).
5071
feabfb6c
JB
50722009-09-24 Juanma Barranquero <lekktu@gmail.com>
5073
5074 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5075 some parts of Emacs code (like font selection) don't grok them.
5076 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5077
de59072a
AS
50782009-09-24 Andreas Schwab <schwab@redhat.com>
5079
5080 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5081
a489517b
JB
50822009-09-24 Juanma Barranquero <lekktu@gmail.com>
5083
5084 * dired.c (Fdirectory_files): Fix typo in docstring.
5085
0592970c
AR
50862009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5087
5088 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5089 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5090 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5091 under GNUstep.
5092 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5093
5094 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5095 glyph advancement.
5096
48e8a88b
AR
50972009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5098
5099 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5100 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5101
5102 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5103 deleted (bug #4492).
5104
e14f0a78
AR
5105 * nsfont.m (Vns_reg_to_script): New lisp variable.
5106 (syms_of_nsfont): Declare it.
5107 (ns_registry_to_script): New function.
5108 (ns_get_req_script): Call it.
5109 (ns_findfonts): Don't give up on non-unicode registry.
5110
5111 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5112
5b650faa
SM
51132009-09-20 Tom Tromey <tromey@redhat.com>
5114
5115 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5116 batch mode (bug#4228).
5117
a489517b 51182009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5119
5120 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5121 carefully. (Bug #4339)
0bae4e09 5122
fcfe06f3
CY
51232009-09-18 Chong Yidong <cyd@stupidchicken.com>
5124
d798ba87 5125 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5126
31642728
AR
51272009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5128
5129 * emacs.c (inhibit_x_resources): Update doc string for NS.
5130 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5131 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5132
5133 * nsterm.h (ns_no_defaults): Remove.
5134
5135 * nsterm.m (ns_no_defaults): Remove.
5136 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5137 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5138 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5139 don't update the NSWindow itself.
5140 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5141 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5142
5143 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5144 ns_use_qd_smoothing.
5145
5146 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5147 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5148 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5149 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5150
8686ac71
JB
51512009-09-17 Juanma Barranquero <lekktu@gmail.com>
5152
5153 * emacs.c (inhibit_x_resources): New variable.
5154 (main) [HAVE_NS]: Don't process --quick command line option.
5155 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5156
5157 * lisp.h (inhibit_x_resources): Declare it extern.
5158
5159 * w32reg.c (x_get_string_resource):
5160 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5161
e227ba05
EZ
51622009-09-17 Eli Zaretskii <eliz@gnu.org>
5163
362654a6
JB
5164 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5165 Add lisp/term/internal.elc.
e227ba05 5166
742d40e8
SM
51672009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5168
5169 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5170 (bug#4461).
5171
005bd5a2
DN
51722009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5173
5174 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5175
5176 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5177 (OBJECTS_MACHINE): Remove, unused.
5178
f9af9719
SM
51792009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5180
5181 * frame.c (x_get_resource_string): Remove unused.
5182
0307c7d2
JD
51832009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5184
5185 * xterm.c (x_new_font): Call change_frame_size before calling
5186 x_set_window_size, in case frame size won't change.
5187
5188 * frame.c (x_set_font): Remove dead code.
5189
428b13d6
SM
51902009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5191
5192 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5193
5766c380
SM
51942009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5195
5196 * lread.c (Fload): Don't output a message after loading an obsolete
5197 package any more (done in Lisp now).
5198
2fd0161b
CY
51992009-09-12 Chong Yidong <cyd@stupidchicken.com>
5200
5201 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5202
bc5e75b6
SM
52032009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5204
5205 * keymap.c (Fwhere_is_internal): Use nconc2.
5206
c31c985e
AM
52072009-09-11 Alan Mackenzie <acm@muc.de>
5208
5209 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5210 batch mode.
5211
78012bd2
AS
52122009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5213
5214 * xdisp.c (display_mode_element): Detect cycles.
5215
9d889332
SM
52162009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5217
5218 * keymap.c (where_is_internal): Don't erroneously return nil right after
5219 filling the cache.
5220 (where_is_internal_1): Fix up typo.
5221
7ab5d780
GM
52222009-09-11 Glenn Morris <rgm@gnu.org>
5223
5224 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5225 share a common doc-string.
5226
5238a749
SM
52272009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5228
66d77eda
SM
5229 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5230 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5231
5238a749
SM
5232 * keymap.c (QCadvertised_binding): New constant.
5233 (syms_of_keymap): Initialize it.
5234 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5235 if applicable.
5236
19f48442
SM
52372009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5238
50d4ba39
SM
5239 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5240 (parse_menu_item): Streamline since bindings are recomputed all the
5241 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5242 more and don't support lmenu's menu-alias any more either.
5243
a88a5372
SM
5244 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5245 (where_is_internal): Strip it down to only traverse the keymaps.
5246 Move the cache handling from Fwhere_is_internal to here.
5247 (Fwhere_is_internal): Move the handling of remapping and the choice of
5248 the best binding from where_is_internal to here.
5249 Unify the cached/noncached paths, so remapping is also handled
5250 correctly when the cache is used, and so the cache can be used to
5251 speed up remap-handling when applicable.
5252 Give preference to non-remapped bindings.
5253 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5254 non-remapped bindings.
5255 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5256 command remapping.
5257
19f48442
SM
5258 * xdisp.c (display_mode_element): Move list length limit from 50 to
5259 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5260
599498c3 52612009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5262
5263 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5264
f9b7b5ac
SM
52652009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5266
a53af587
JB
5267 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5268 (Bug#4334)
5269
f9b7b5ac
SM
5270 * keymap.c (where_is_internal): Filter out shadowed remappings.
5271 Assume that where_is_internal returns unshadowed bindings to simplify
5272 the code and get rid of the gotos. Use ASIZE.
5273
04f4b72d
JD
52742009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5275
4da146f2
JD
5276 * xterm.c (x_focus_changed): If we get a focusout and pointer
5277 is invisible, make it visible.
5278
04f4b72d
JD
5279 * xterm.h: Remove condition for declaration of
5280 x_*_window_to_frame.
5281
7cef7ce3
SM
52822009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5283
5284 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5285 initial terminal as well.
5286
a54fa5b7
JD
52872009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5288
5289 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5290 x_menubar_window_to_frame.
a54fa5b7 5291
50426a04 5292 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5293 (XTmouse_position): Do not return valid positions
5294 for clicks in the menubar and the toolbar for Gtk+.
5295
5296 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5297 if the widget for the event has the same top level as a frame,
5298 return the frame.
5299 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5300 internal windows, bug #4122.
5301 (x_non_menubar_window_to_frame): Remove.
5302
5a021dd0
GM
53032009-09-02 Glenn Morris <rgm@gnu.org>
5304
5305 * buffer.c (default-major-mode): Move most of the doc from here...
5306 (major-mode): ... to here.
5307
548fe2f3
NR
53082009-08-30 Nick Roberts <nickrob@snap.net.nz>
5309
5310 * process.c (wait_reading_process_output): Keep the descriptor
5311 when pty is used by a non-child process, e.g., in I/O buffer of
5312 GDB this allows inferior to be restarted.
5313
e0840eef
EZ
53142009-08-29 Eli Zaretskii <eliz@gnu.org>
5315
5316 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5317 both branches into one.
5318
82e98df4
SM
53192009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5320
5321 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5322 (main): Use enable-multibyte-characters rather than
5323 default-enable-multibyte-characters. Output a warning message when
5324 running a unibyte session.
5325
890617cb
YM
53262009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5327
5328 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5329 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5330 (copy_data_segment): Also copy __program_vars section.
5331 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5332 (dump_it) [LC_DYLD_INFO]: Use it.
5333
5334 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5335
e7adeadc
EZ
53362009-08-28 Eli Zaretskii <eliz@gnu.org>
5337
5338 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5339 $(SRC)/buildobj.h.
5340 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5341 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5342 $(SRC)/buildobj.h.
5343 (clean): Add buildobj.h.
5344
3ed8bbdc
TZ
53452009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5346
5347 * print.c (print_object): Set escapeflag to 1 when printing
5348 hashtable keys and values.
5349
155a6764
SM
53502009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5351
5352 * lread.c (read_integer): Use doubles (and potentially return a float
5353 number) as we do in string-to-number.
5354 (read1): Use strtol to read integers, signal errors on strtol's
5355 overflow and use floats if strtol's output is too large for
5356 Elisp integers.
5357
877610de
EZ
53582009-08-27 Eli Zaretskii <eliz@gnu.org>
5359
5360 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5361 (make-buildobj-SH): Fix last change.
5362 (SRC): Move to before where it's first used.
5363
ef73e7be
KH
53642009-08-27 Kenichi Handa <handa@m17n.org>
5365
550c8289
KH
5366 * process.c (send_process): Use encode_coding_object instead of
5367 encode_coding_string to perform eol-conversion even if the string
5368 is unibyte.
5369
60afa08d
KH
5370 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5371 character.
5372
ef73e7be 5373 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5374 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5375
7b3a82d7
DN
53762009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5377
5654bf63
DN
5378 * callproc.c (Fcall_process): Remove always true #if.
5379
7b3a82d7
DN
5380 * lisp.h: Replace #if 0 code for checking with text pointing to
5381 the --enable-checking configure flag.
5382
5383 * emacs.c (main): Mention the --enable-profiling configure flag
5384 instead of using CFLAGS.
5385
878bde49
KR
53862009-08-26 Ken Raeburn <raeburn@raeburn.org>
5387
5388 * Makefile.in (buildobj.h): New target.
5389 (doc.o): Depend on it.
5390 (temacs${EXEEXT}): Don't generate buildobj.lst.
5391 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5392 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5393 ($(BLD)/doc.$(O)): Depend on it.
5394 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5395 provided by Eli Zaretskii.)
5396 ($(TEMACS)): Don't generate buildobj.lst.
5397 * doc.c: Include buildobj.h.
5398 (buildobj): New static variable.
5399 (Fsnarf_documentation): Use it, instead of opening and reading
5400 buildobj.lst.
5401
1574224c
MA
54022009-08-25 Michael Albinus <michael.albinus@gmx.de>
5403
5404 * dbusbind.c (Fdbus_call_method)
5405 (Fdbus_call_method_asynchronously): Use English numeric format for
5406 timeout values in doc string.
5407
d9da2f45
KH
54082009-08-25 Kenichi Handa <handa@m17n.org>
5409
ef73e7be
KH
5410 * alloc.c (mark_char_table): New function.
5411 (mark_object): Use mark_char_table for a char-table.
5412
d9da2f45
KH
5413 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5414 (CHAR_TABLE_REF): Use it.
5415
c8edcc01
KR
54162009-08-23 Ken Raeburn <raeburn@raeburn.org>
5417
5418 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5419 before invoking the newly build emacs to check for load-path
5420 shadowing.
5421
7763401b
GM
54222009-08-22 Glenn Morris <rgm@gnu.org>
5423
5424 * Makefile.in (bootstrap_exe): New variable.
5425 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5426 Use ${bootstrap_exe}.
5427
729eadda
EZ
54282009-08-22 Eli Zaretskii <eliz@gnu.org>
5429
5430 * coding.h (encode_coding_string): Don't encode unibyte strings.
5431 (Bug#4047)
5432
eb4c6ace
MA
54332009-08-22 Michael Albinus <michael.albinus@gmx.de>
5434
5435 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5436
5437 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5438 intended as hotfix only.
5439 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5440
36e34d1b
AR
54412009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5442
5443 * nsterm.m (ns_get_color): Update documentation properly for last
5444 change, and clean up loose ends in the code left by it. Fix
5445 longstanding bug with 16-bit hex parsing, and add support for
5446 yet another X11 format (rgb:r/g/b) for compatibility.
5447 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5448 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5449
f983eb8a
SM
54502009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5451
5452 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5453
3f56d3c6
MA
54542009-08-20 Michael Albinus <michael.albinus@gmx.de>
5455
5456 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5457 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5458 (xd_initialize, xd_pending_messages): Check, whether
5459 $DBUS_SESSION_BUS_ADDRESS is set.
5460
fb641d68
YM
54612009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5462
5463 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5464
5465 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5466
cf59a374
GM
54672009-08-20 Glenn Morris <rgm@gnu.org>
5468
5469 * emacs.c (system-type): Doc fix.
5470
1373f3be
SM
54712009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5472
5473 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5474 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5475
058ed861
MA
54762009-08-18 Michael Albinus <michael.albinus@gmx.de>
5477
1373f3be
SM
5478 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5479 New functions.
058ed861
MA
5480 (xd_initialize): Revert change from 2009-08-16.
5481
563a866e 54822009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5483
5484 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5485 font-group vector, return nil.
5fc05db0 5486
e42bdf01
CY
54872009-08-17 Chong Yidong <cyd@stupidchicken.com>
5488
5489 * process.c (status_notify): Don't perform redisplay.
5490 (Fdelete_process, list_processes_1, process_send_signal):
5491 Expliticly perform redisplay.
5492 (wait_reading_process_output): Always check process status, but
5493 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5494
4230ab74
KR
54952009-08-17 Ken Raeburn <raeburn@raeburn.org>
5496
1373f3be 5497 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5498 (XFLOAT_INIT): New macro for storing a float value.
5499 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5500 * fns.c (sxhash): Copy out the value of a float in order to
5501 examine its bytes.
5502 * dbusbind.c (xd_append_arg): Likewise.
5503
4230ab74
KR
5504 * emacs.c (main): Don't call syms_of_data twice.
5505
a0645cdd
MA
55062009-08-16 Michael Albinus <michael.albinus@gmx.de>
5507
5508 * dbusbind.c (xd_initialize): Add connection file descriptor to
5509 input_wait_mask, in order to let select() detect, whether a new
5510 message has been arrived.
ca4f31ea 5511 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5512
485db0ba
MA
55132009-08-15 Michael Albinus <michael.albinus@gmx.de>
5514
1373f3be
SM
5515 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5516 New functions.
485db0ba
MA
5517
5518 * lisp.h (xd_pending_messages): Declare.
5519
5520 * keyboard.c (readable_events): Call xd_pending_messages.
5521
b5b98ff4
CY
55222009-08-15 Chong Yidong <cyd@stupidchicken.com>
5523
1373f3be 5524 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5525
f8354c6e
CY
5526 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5527
b5b98ff4
CY
5528 * buffer.c (set_buffer_internal_1)
5529 (swap_out_buffer_local_variables): Check for unbound local
5530 variables (Bug#4138).
5531
8b9fc636
EZ
55322009-08-14 Eli Zaretskii <eliz@gnu.org>
5533
5534 * process.c (create_pty): Fix last change.
5535
ce959360
CY
55362009-08-13 Chong Yidong <cyd@stupidchicken.com>
5537
5538 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5539 (xbm_load_image): Caller changed.
64b807c9 5540 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5541
c7baf7e9
NR
55422009-08-13 Nick Roberts <nickrob@snap.net.nz>
5543
5544 * process.c (create_pty): New function.
5545 (Fstart_process): Use it to allow Emacs to just associate a pty
5546 with the buffer. See associated change in gdb-mi.el.
5547 (list_processes_1): Deal with no program name.
5548 (start_process_unwind): Use pid == -2 to mean no process.
5549
1ac9108a
SM
55502009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5551
5552 * cmds.c (nonundocount): New global variable.
5553 (keys_of_cmds): Initialize it.
5554 (Fself_insert_command): Use it to combine upto 20 sequential chars
5555 into a single undo entry, just like the Qself_insert_command code in
5556 keyboard.c does.
5557 Call frame_make_pointer_invisible, also like the Qself_insert_command
5558 code in keyboard.c does.
5559 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5560 than its own local replacement for it.
5561
e267324c
KR
55622009-08-10 Ken Raeburn <raeburn@raeburn.org>
5563
1ac9108a 5564 * fns.c (concat): Don't re-set string length to its current value.
77437343 5565
1ac9108a
SM
5566 * coding.h (decode_coding_string, encode_coding_string):
5567 Use SBYTES macro.
f0bed503 5568
1ac9108a 5569 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5570 (doprnt): Merge with doprnt1, discarding lispstrings code.
5571 * lisp.h (doprnt_lisp): Don't declare.
5572
416e006d
JL
55732009-08-07 Juri Linkov <juri@jurta.org>
5574
5575 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5576
6f7d5780
DN
55772009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5578
5579 * print.c (syms_of_print): Undo previous change.
5580
f19a0f5b
TZ
55812009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5582
5583 * lread.c (read1, syms_of_lread): Read hashtables back from the
5584 readable format.
5585
5586 * print.c (print_preprocess, print_object): Print hashtables fully
5587 and readably.
5588 (syms_of_print): Provide 'hashtable-print-readable.
5589
b9173dc2
AR
55902009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5591
5592 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5593 no family set.
5594 (nsfont_open): Handle case when entity has no family.
5595
1586503c
AR
55962009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5597
5598 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5599 element, not a list, for match case.
5600
087048cd
KH
56012009-07-28 Kenichi Handa <handa@m17n.org>
5602
5603 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5604 rigidly.
5605
5606 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5607 font_parse_xlfd. Check font properties more rigidly.
5608
780c2506
DN
56092009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5610
31fd7c5c
JB
5611 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5612 bsd-common.h.
780c2506 5613
a8c0cc18
KH
56142009-07-27 Kenichi Handa <handa@m17n.org>
5615
5616 * xfaces.c (face_with_height): Call font_clear_prop.
5617
4fbe2306
CY
56182009-07-26 Chong Yidong <cyd@stupidchicken.com>
5619
111d9af3
CY
5620 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5621
5622 * xterm.c (x_term_init): Use Qx.
5623
4fbe2306
CY
5624 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5625
1ac9108a 5626 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5627 (ns_get_color): Revert 2009-07-16 change.
5628
beb0b7f9
EZ
56292009-07-25 Eli Zaretskii <eliz@gnu.org>
5630
5631 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5632 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5633
2baf5e76
KR
56342009-07-25 Ken Raeburn <raeburn@raeburn.org>
5635
1ac9108a
SM
5636 * coding.h (decode_coding_string, encode_coding_string):
5637 Use SCHARS macro.
8890e5f5 5638
2baf5e76 5639 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5640 (load_depth): Delete.
2baf5e76
KR
5641 (Qload_in_progress): New variable.
5642 (load_unwind): Don't reference load_depth or load_in_progress.
5643 (Fload): Likewise; specbind Qload_in_progress instead.
5644 (init_lread): Don't initialize load_depth.
5645 (syms_of_lread): Initialize and protect Qload_in_progress.
5646
1395c6f5
AR
56472009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5648
5649 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5650
4e2f36cf
AR
56512009-07-23 Yavor Doganov <yavor@gnu.org>
5652
5653 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5654
5dd9a6f7
AR
56552009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5656
5657 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5658 Bugs 3792, 3720, 2402.
5659 (ns_lookup_indexed_color): Check for bad index.
5660 (ns_index_color): Init unused slot to 0.
5661 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5662 Bug 3714, possibly 3082.
5dd9a6f7 5663
c902b920
JR
56642009-07-22 Jason Rumney <jasonr@gnu.org>
5665
1ac9108a
SM
5666 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5667 Position IME window at cursor (Bug#2570).
c902b920
JR
5668 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5669 (globals_of_w32fns): Dynamically load functions required above.
5670
5671 * w32term.c (w32_draw_window_cursor): Send message to reposition
5672 any IME window.
5673
090101cf
CY
56742009-07-21 Chong Yidong <cyd@stupidchicken.com>
5675
5676 * fileio.c: Revert 2009-07-16 changes.
5677 (Vauto_save_include_big_deletions): New variable.
5678 (Fdo_auto_save): Disable auto-save only if
5679 auto-save-include-big-deletions is nil.
5680
e6583e3d
CY
56812009-07-21 Chong Yidong <cyd@stupidchicken.com>
5682
5683 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5684 the overflowed pixels into account (Bug#3879).
5685
ece435a5
KR
56862009-07-21 Ken Raeburn <raeburn@raeburn.org>
5687
5688 * lread.c (load_depth): New variable.
5689 (Fload, load_unwind, init_lread): Set it to the load recursion
5690 depth; set load_in_progress as a simple boolean based on the
5691 current load_depth. (Bug#3892)
5692
40b2d973
AR
56932009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5694
5695 * nsfont.m (ns_has_attribute): Remove.
5696 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5697
10be7e0d
JL
56982009-07-18 Juri Linkov <juri@jurta.org>
5699
5700 * process.c (Fset_process_query_on_exit_flag): Mention killing
5701 a buffer in docstring.
5702
fa055055
KH
57032009-07-17 Kenichi Handa <handa@m17n.org>
5704
5705 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5706
042f7b69
YM
57072009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5708
5709 * nsfns.m (Fns_set_alpha): Remove function.
5710 (syms_of_nsfns): Don't defsubr it.
5711
5712 * nsterm.m (ns_get_color): Remove incompatible color formats.
5713 (ns_color_to_lisp): Generate #rrggbb color format string.
5714
4be941e3
RS
57152009-07-16 Richard Stallman <rms@gnu.org>
5716
5717 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5718 (Fset_buffer_auto_saved): Handle save_length = -2.
5719
4e6b227d
CY
57202009-07-16 Chong Yidong <cyd@stupidchicken.com>
5721
5722 * xterm.c (Qx_gtk_map_stock): New var.
5723
5724 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5725 of calling intern each time.
5726
a1856973
YM
57272009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5728
5729 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5730 does tiling.
5731
5732 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5733
497e54d8
KH
57342009-07-14 Kenichi Handa <handa@m17n.org>
5735
72d36834
KH
5736 * font.c (font_vconcat_entity_vectors): New function.
5737 (struct font_sort_data): New member font_driver_preference.
5738 (font_compare): Check font_driver_preference.
5739 (font_sort_entities): The format of the first argument changed.
5740 (font_delete_unmatched): Likewise.
5741 (font_list_entities): The return type changed.
5742 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5743 (font_find_for_lface): Adjuste for the above changes.
5744 Don't suppress the checking of C even if the repertory supports it.
5745 (Flist_fonts): Adjust for the above changes.
72d36834 5746
1ac9108a
SM
5747 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5748 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5749 Reject a font who has adstyle property that is different from a
5750 langname derived from registry property.
1ac9108a 5751 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5752
b6046155
EZ
57532009-07-13 Eli Zaretskii <eliz@gnu.org>
5754
5755 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5756 local copy of dirfilename.
5757
fb6b6049
KH
57582009-07-13 Kenichi Handa <handa@m17n.org>
5759
e2402a5e
KH
5760 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5761 against max_char.
5762
fb6b6049
KH
5763 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5764 calling XSYMBOL (sym).
5765
65156807
EZ
57662009-07-11 Eli Zaretskii <eliz@gnu.org>
5767
1ac9108a
SM
5768 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5769 New function.
5770 (directory_files_internal) [WINDOWSNT]:
5771 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5772 the filesystem of the directory is fast or slow.
5773
5774 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5775 file name.
5776 (is_slow_fs): New function.
5777 (stat): Use it to determine whether to issue more system calls to
5778 get accurate file attributes, when w32-get-true-file-attributes is
5779 `local'.
5780
e0ab5fcf
JD
57812009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5782
5783 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5784 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5785 parameter font-parameter as default to the font dialog.
5786
784ceded
KH
57872009-07-10 Kenichi Handa <handa@m17n.org>
5788
5789 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5790
fb8edc0b
EZ
57912009-07-09 Eli Zaretskii <eliz@gnu.org>
5792
1ac9108a 5793 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5794
fb8edc0b
EZ
5795 * w32.c (stat): Treat UNC file names as residing on remote
5796 drives. (Bug#3542)
5797
635c75b1
KH
57982009-07-09 Kenichi Handa <handa@m17n.org>
5799
5800 * fontset.c (fontset_find_font): Fix previous change.
5801
c1d5ce94
MA
58022009-07-08 Michael Albinus <michael.albinus@gmx.de>
5803
5804 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5805 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5806 error flag.
5807
edb61b39
KH
58082009-07-08 Kenichi Handa <handa@m17n.org>
5809
374bf7e4
KH
5810 * fontset.c (fontset_find_font): Fix the logic of handling
5811 charset_matched.
5812 (font_for_char): Delete unused var.
5813 (generate_ascii_font_name): Delete it.
5814
edb61b39
KH
5815 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5816
5817 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5818 (encode_coding_sjis): Fix the code range check.
5819
0f3f018c
CY
58202009-07-07 Chong Yidong <cyd@stupidchicken.com>
5821
5822 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5823 (Fexpand_file_name): Copy string data properly (Bug#3772).
5824
fcaf6f3a
JD
58252009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5826
5827 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5828 first MapNotify.
5829
6809ca75
KH
58302009-07-07 Kenichi Handa <handa@m17n.org>
5831
5832 * character.h (unibyte_has_multibyte_table): Delete extern.
5833 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5834
5835 * charset.c (Fset_charset_priority): Update charset_unibyte.
5836 (syms_of_charset): Initialize charset_unibyte.
5837
5838 * character.c (unibyte_has_multibyte_table): Delete it.
5839 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5840 charset_unibyte.
5841 (multibyte_char_to_unibyte_safe): Likewise.
5842 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5843
1ac9108a 5844 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5845 (x_produce_glyphs): Likewise.
5846
5847 * .gdbinit (xcharset): Fix the treating $arg0.
5848
ad9e2d54
EZ
58492009-07-04 Eli Zaretskii <eliz@gnu.org>
5850
5851 Emulation of `getloadavg' on MS-Windows.
50426a04 5852 * w32.c: Include float.h.
ad9e2d54
EZ
5853 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5854 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5855 (get_native_system_info, get_system_times): New functions.
5856 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5857 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5858 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5859 g_b_init_get_system_times, and num_of_processors.
5860
0a3472c7
JR
58612009-07-03 Jason Rumney <jasonr@gnu.org>
5862
5863 * w32term.c (w32_initialize): Use standard types.
5864
80904120
EZ
58652009-07-03 Eli Zaretskii <eliz@gnu.org>
5866
5867 * dired.c (Ffile_attributes): Decode user and group names by the
5868 locale's encoding. (Bug#3443)
5869
6978862d
DN
58702009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5871
f8d23104
DN
5872 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5873 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5874
5875 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5876
5877 * term.c (init_tty): Remove spurious #ifdef.
5878
6978862d
DN
5879 * m/mips.h: Mention this file is also used for netbsd.
5880 * m/pmax.h: Remove file.
5881
e044e4fc
JD
58822009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5883
5884 * xterm.h (struct x_display_info): Add invisible_cursor.
5885 (struct x_output): Add current_cursor.
5886
5887 * xterm.c (XTtoggle_invisible_pointer): New function.
5888 (x_define_frame_cursor): Don't define cursor if invisible or the
5889 same as before. Set current_cursor.
5890 (x_create_terminal): Set toggle_invisible_pointer_hook.
5891
5892 * xfns.c (make_invisible_cursor): New function.
5893 (x_set_mouse_color): Call make_invisible_cursor.
5894 Set current_cursor.
5895 (x_window): Set current_cursor.
5896
5897 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5898
5899 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5900 inserting a character.
5901 (read_avail_input): Call frame_make_pointer_visible.
5902
5903 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5904 (frame_make_pointer_invisible, frame_make_pointer_visible):
5905 New functions.
e044e4fc
JD
5906 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5907
5908 * frame.h: Declare frame_make_pointer_invisible and
5909 frame_make_pointer_visible.
5910 (struct frame): Add pointer_invisible.
5911
574c8efa
JD
59122009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5913
7b507248
JD
5914 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5915 frame isn't visible.
5916 (xg_frame_resized): If width/height is -1, get size of window
5917 from X server.
5918
5919 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5920 for MapNotify.
5921
835bdaa7 5922 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5923 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5924 (flush_and_sync): Reintroduce.
574c8efa 5925
3f1c6666 59262009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5927
31fd7c5c 5928 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5929
5930 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5931 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5932
5933 * frame.h: Declare Qsticky.
5934
cad9ef74
JD
5935 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5936
5937 * nsfns.m (ns_frame_parm_handlers): Ditto.
5938
5939 * frame.c: Declare Qsticky.
5940 (frame_parms): Add sticky.
5941
5942 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5943
5944 * xterm.h: Declare x_set_sticky.
5945
5946 * xterm.c (x_set_sticky): New function.
5947
69b16610
JD
5948 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5949 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5950 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5951
5952 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5953
5954 * frame.c: Qmaximized is new.
5955 (x_set_frame_parameters): Do not handle fullscreen specially.
5956 Only set width and height if explicitly set.
5957 (x_set_fullscreen): Handle Qmaximized.
5958 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5959 (syms_of_frame): Initialize Qmaximized.
5960
1ac9108a
SM
5961 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5962 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5963
5964 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5965 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5966 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5967 set gravity to NorthWestGravity when USE_GTK.
5968 (set_wm_state): New function.
31fd7c5c 5969 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5970 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5971 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5972 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5973 to x_real_positions and x_fullscreen_adjust.
5974
5975 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5976 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5977 flush_and_sync.
5978 (xg_height_changed): New function.
5979 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5980 and gtk_window_set_policy. Set frame gravity after parsing the
5981 geometry string.
3f1c6666
JD
5982 (xg_update_frame_menubar, free_frame_menubar)
5983 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5984 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5985 Remove calls to xg_frame_set_char_size.
5986
fd503d99
KH
59872009-07-01 Kenichi Handa <handa@m17n.org>
5988
5989 * keyboard.c (decode_keyboard_code): New function.
5990 (tty_read_avail_input): Decode the input bytes if necessary.
5991
1ac9108a
SM
5992 * coding.c (setup_coding_system):
5993 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5994 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5995 use Qno_conversion.
5996
24ed93fb
YM
59972009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5998
5999 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6000
99061dfc
CY
60012009-06-30 Chong Yidong <cyd@stupidchicken.com>
6002
1ac9108a 6003 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6004
ff90fbde
JR
60052009-06-30 Jason Rumney <jasonr@gnu.org>
6006
6007 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6008 is already loaded.
6009 Set user model ID if supported (bug#1849).
6010
5f445726
JM
60112009-06-29 Jim Meyering <meyering@redhat.com>
6012
6013 Remove useless if-before-xfree test.
6014 * nsfont.m (nsfont_close): Remove useless test.
6015 * term.c (delete_tty): Likewise.
6016 * w32.c (system_process_attributes): Likewise.
6017 * w32font.c (w32font_close): Likewise.
6018 * xfaces.c (x_free_gc): Likewise.
6019 * xselect.c (buffer): Likewise.
6020
b9607587
AS
60212009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6022
6023 * process.c (send_process): Keep decoded string in a local
6024 variable and protect it from GC. (Bug#3521)
6025
89ba96f4
EZ
60262009-06-28 Eli Zaretskii <eliz@gnu.org>
6027
6028 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6029 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6030
098a1589
CY
60312009-06-28 Chong Yidong <cyd@stupidchicken.com>
6032
485422be
CY
6033 * xdisp.c (start_display, handle_face_prop)
6034 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6035 (redisplay_window, try_window_id, produce_image_glyph):
6036 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6037
098a1589
CY
6038 * xterm.c (x_update_window_begin, x_new_focus_frame)
6039 (x_scroll_bar_handle_click, handle_one_xevent)
6040 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6041 (x_make_frame_visible, x_make_frame_invisible)
6042 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6043 code chunks that are now obsolete.
6044
78c38319
MA
60452009-06-28 Michael Albinus <michael.albinus@gmx.de>
6046
6047 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6048 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6049 for hours, when optimzation is enabled.
6050 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6051 (xd_read_message): Make them static.
6052
4189ed40
CY
60532009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6054
6055 * term.c (turn_on_face): Allow simultaneously bold and dim
6056 terminal faces (Bug#3530).
6057
cd9b5e16
CY
60582009-06-27 Chong Yidong <cyd@stupidchicken.com>
6059
4e23bedb
CY
6060 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6061
cd9b5e16
CY
6062 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6063 truncation glyphs (Bug#3686).
6064
07cc3c35
GM
60652009-06-27 Glenn Morris <rgm@gnu.org>
6066
6067 * m/pmax.h: Restore file, with only netbsd portions.
6068
31fd7c5c 60692009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6070
cd9b5e16 6071 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6072
42d4a64f
KH
60732009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6074
6075 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6076 the arg FORCE_SYMBOL.
6077
930fe55b 60782009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6079
6080 * fontset.c (fontset_find_font): When a usable rfont_def is found
6081 in a fallback font-group, make it the first element of the group.
6082
57ebc3fd
CY
60832009-06-24 Chong Yidong <cyd@stupidchicken.com>
6084
6085 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6086
f084f942
KH
60872009-06-24 Kenichi Handa <handa@m17n.org>
6088
6089 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6090 set for C.
6091 (fontset_font): Record the availability of a font for C both in
6092 the realized fontsets of the current one and the default one.
6093
2f686c87
DN
60942009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6095
6096 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6097 conditional, it is always defined on AIX.
6098
666e158e
MB
60992009-06-23 Miles Bader <miles@gnu.org>
6100
6101 * window.c (Vrecenter_redisplay): New variable.
6102 (syms_of_window): Initialize it.
6103 (Qtty): New extern declaration.
6104 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6105
c6da7cd2
JM
61062009-06-23 Jim Meyering <meyering@redhat.com>
6107
1ac9108a
SM
6108 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6109 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6110 pointer dereferences are guaranteed to be valid.
c6da7cd2 6111
678dca3d
KH
61122009-06-23 Kenichi Handa <handa@m17n.org>
6113
74d75424
KH
6114 * emacs.c (main): Call init_font ().
6115
6116 * font.h (Vfont_log): Extern it.
6117 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6118
6119 * font.c (font_sort_entities, font_list_entities)
6120 (font_matching_entity, font_open_entity)
6121 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6122 (Vfont_log): Delete static.
6123 (font_log_env_checked): Delete this variable.
6124 (font_add_log): Don't check font_log_env_checked.
6125 (font_deferred_log): Check Vfont_log.
6126 (init_font): New function.
6127
678dca3d
KH
6128 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6129
6130 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6131
6132 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6133
6134 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6135
6136 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6137 (face_for_char): Don't call font_deferred_log here.
6138 (font_for_char): Likewise.
6139
8a668709
CY
61402009-06-22 Chong Yidong <cyd@stupidchicken.com>
6141
9a01ee33
CY
6142 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6143 rather than its background_width for drawing the overline and
6144 underline (Bug#489).
6145
6146 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6147 rather than its background_width for drawing the overline and
6148 underline (Bug#489).
ec7c9926
CY
6149 (xg_default_icon_file): New variable.
6150 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6151 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6152
8a668709
CY
6153 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6154 (load_overlay_strings): Remove externs.
6155 (fast_find_position): Function deleted.
6156 (mouse_face_from_buffer_pos): New function, based on
6157 fast_find_position. Correctly handle before-strings,
6158 display-strings, and after-strings (Bug#1220).
6159 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6160
4d4c02d8
CY
61612009-06-21 Chong Yidong <cyd@stupidchicken.com>
6162
1ac9108a 6163 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6164 (move_it_in_display_line_to, move_it_in_display_line_to)
6165 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6166
70243478
CY
61672009-06-21 Chong Yidong <cyd@stupidchicken.com>
6168
6169 * Branch for 23.1.
6170
13087e59
JR
61712009-06-21 Jason Rumney <jasonr@gnu.org>
6172
6173 * w32term.c (keyboard_codepage): New static variable.
6174 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6175 (w32_read_socket) [WM_CHAR]: Use it to decode character
6176 input (bug#3237).
6177 (w32_initialize): Initialize it.
6178 (codepage_for_locale): New function.
6179
4735b74e
KR
61802009-06-20 Ken Raeburn <raeburn@raeburn.org>
6181
6182 * process.c (status_message): Pass Faset index argument as a lisp
6183 object, so as to work with USE_LISP_UNION_TYPE.
6184
0e727afa
YM
61852009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6186
6187 * coding.c (Ffind_coding_systems_region_internal):
6188 Cache checked characters.
6189
cf299835
KH
61902009-06-18 Kenichi Handa <handa@m17n.org>
6191
1ac9108a 6192 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6193
90f20d94
AS
61942009-06-18 Andreas Schwab <aschwab@redhat.com>
6195
6196 * xdisp.c (redisplay_internal): Check that the frame is still
6197 live after redisplay of its windows.
6198 (redisplay_windows): Check that the window is still live.
6199
7f1faf1c
KH
62002009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6201
6202 * coding.c (detect_coding_utf_16): Fix previous change.
6203
cc13543e
KH
62042009-06-16 Kenichi Handa <handa@m17n.org>
6205
6206 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6207 UTF-16 by checking the dispersion of Eth and Oth bytes.
6208
977b85f4
AS
62092009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6210
6211 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6212
66bd43d1
KH
62132009-06-15 Kenichi Handa <handa@m17n.org>
6214
6215 * process.c (status_message): Fix previous change. Be sure to
6216 decode a localized string.
6217
cb5ca9c5
YM
62182009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6219
6220 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6221 add comment explaining why.
6222
ec7709ba 62232009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6224
ec7709ba 6225 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6226
4b7f335c
AR
62272009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6228
6229 * nsfont.m (ns_attribute_value): Remove.
6230 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6231 (ns_has_attribute): Shrink the normal range.
6232 (ns_findfonts): Don't worry about requested spec in determining
6233 need for synthItal.
e41820ee 6234 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6235
73b26103
SZ
62362009-06-14 Seiji Zenitani <zenitani@mac.com>
6237
6238 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6239
5753e4da
KH
62402009-06-11 Kenichi Handa <handa@m17n.org>
6241
6242 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6243 overhang for the static composition case.
6244
3561b671
KH
62452009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6246
5753e4da
KH
6247 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6248 overhang for the automatic composition case.
6249
3561b671
KH
6250 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6251 composition case.
6252
852bbd41
CY
62532009-06-10 Chong Yidong <cyd@stupidchicken.com>
6254
6255 * xdisp.c (get_next_display_element): When handling wrap-prefix
6256 and line-prefix, treat \n as a control character (bug#3502).
6257
9903d1e6
KH
62582009-06-10 Kenichi Handa <handa@m17n.org>
6259
6260 * font.c (font_parse_family_registry): Fix for one-char foundry.
6261 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6262
0bcbaaaa
CY
62632009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6264
6265 * process.c (status_message): Fix handling of multibyte signal
6266 string (Bug#3499).
6267
40aa3f13
JM
62682009-06-09 Jim Meyering <meyering@redhat.com>
6269
1f80c7e2
CY
6270 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6271 color name is missing.
40aa3f13 6272
72d51285
KH
62732009-06-09 Kenichi Handa <handa@m17n.org>
6274
6275 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6276 FROM-CODE and TO-CODE are codepoints of CHARSET.
6277
c1d04d84
AR
62782009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6279
6280 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6281
62822009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6283
6284 Changes to support :script/:lang/:otf in NS font driver.
6285 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6286 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6287 indicate not part of font driver interface, and change callers.
6288 (ns_get_family): Remove pointless null check.
6289 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6290 ns_spec_to_descriptor, ns_descriptor_to_entity.
6291 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6292 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6293 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6294 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6295 (ns_get_req_script, ns_accumulate_script_ranges)
6296 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6297 New functions.
6298 (nsfont_list, nsfont_match): Use ns_findfonts.
6299 (nsfont_open): Use font descriptor instead of traits.
6300 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6301 (dump_glyphstring): Rename to ns_dump_glyphstring.
6302
c7eb9816
AR
6303 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6304
c1d04d84
AR
6305 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6306
6307 * fontset.c (fontset_from_font): Remove NS-specific code.
6308
ec7709ba 63092009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6310
6311 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6312 nonactive windows.
6313
31fd7c5c 63142009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6315
1ac9108a 6316 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6317
68852c13 63182009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6319
6320 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6321
6756cd1d
CY
63222009-06-07 Chong Yidong <cyd@stupidchicken.com>
6323
6324 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6325 account for the overflowing of newlines into the last glyph on the
6326 display line (Bug#3482).
6327
28bf482a
DR
63282009-06-05 David Reitter <david.reitter@gmail.com>
6329
ec7709ba
JB
6330 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6331 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6332 Fns_selection_exists_p, Fns_selection_owner_p.
6333
fdb55376
JR
63342009-06-03 Jason Rumney <jasonr@gnu.org>
6335
6336 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6337 available. (Bug#3379)
6338
05129fbe
KH
63392009-05-29 Kenichi Handa <handa@m17n.org>
6340
1ac9108a
SM
6341 * coding.c (get_translation_table):
6342 Check Venable_character_translation.
05129fbe 6343
ec7709ba 63442009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6345
ec7709ba
JB
6346 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6347 (x_make_frame_visible): Move frame to front rather than calling
15891144 6348 ns_raise_frame().
ec7709ba 6349 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6350 isn't key window.
ec7709ba 6351 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6352 drawRect may be called by NSView even if the frame is hidden.
6353
ec7709ba
JB
6354 * nsfns.m (Fx_create_frame): Follow other ports in
6355 determining visibility; default to t. Ensure async_visible is set.
15891144 6356
21f73755
EZ
63572009-05-23 Eli Zaretskii <eliz@gnu.org>
6358
6359 * dired.c (Ffile_attributes): Doc fix.
6360
34001e41
CY
63612009-05-22 Chong Yidong <cyd@stupidchicken.com>
6362
6363 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6364
46306a17
SM
63652009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6366
6367 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6368 and xfont_scratch_props.
6369 (syms_of_xfont): Do it here instead.
6370 (xfont_find_ccl_program): Delete, unused.
6371 (xfont_open): Delete unused var `i'.
6372
ef6e0694
KH
63732009-05-21 Kenichi Handa <handa@m17n.org>
6374
6375 * fontset.c (Qlatin): Don't make it static.
6376
46306a17
SM
6377 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6378 New functions.
ef6e0694
KH
6379 (xfont_scripts_cache, xfont_scratch_props): New variables.
6380 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6381 (xfont_list_pattern): Argument changed. Callers changed.
6382 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6383 (xfont_list): Don't reject a font spec with :script property.
6384 (xfont_has_char): Fix setting of encoding.
6385 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6386 xfont_scratch_props.
6387
63882009-05-19 Kenichi Handa <handa@m17n.org>
6389
46306a17 6390 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6391 Callers changed.
6392
63932009-05-18 Kenichi Handa <handa@m17n.org>
6394
6395 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6396
ac71ced7
SM
63972009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6398
6399 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6400 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6401
1c6d1051
YM
64022009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6403
6404 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6405 (x_delete_terminal): Dissociate resource database from display and
6406 then call XrmDestroyDatabase before closing display.
6407
9b9b779c
AR
64082009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6409
6410 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6411 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6412 whether selected frame is viable before raising it (based on patch
6413 by David Reitter), and improve commentary.
6414 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6415
cccd42d5
KH
64162009-05-15 Kenichi Handa <handa@m17n.org>
6417
6418 * font.c (Ffont_spec): Check arguments.
6419
337fbd17
CY
64202009-05-14 Chong Yidong <cyd@stupidchicken.com>
6421
6422 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6423 weight when testing attributes (Bug#3282).
6424
47a6002f
JD
64252009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6426
6427 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6428 what we expect to get in the next ConfigureNotify event.
6429
9cb363db
YM
6430 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6431 before Xft one (Bug#1696).
6432
b9126609
CY
64332009-05-07 David Reitter <david.reitter@gmail.com>
6434
6435 * nsfns.m (Fx_display_planes): Compute bitplanes using
6436 NSBitsPerPixelFromDepth (Bug#3207).
6437
27a69fd9
CY
64382009-05-10 Chong Yidong <cyd@stupidchicken.com>
6439
6440 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6441
00f37552
TTN
64422009-05-10 Ulrich Mueller <ulm@gentoo.org>
6443
6444 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6445
2d82a920
DR
64462009-05-07 David Reitter <david.reitter@gmail.com>
6447
ec7709ba
JB
6448 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6449 Respect mouse face background.
2d82a920 6450
46b0d52d
DR
64512009-05-07 David Reitter <david.reitter@gmail.com>
6452
ec7709ba
JB
6453 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6454 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6455 in ns_update_begin and ns_update_end.
6456
ce1b23bb
SM
64572009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6458
5996e1b7
SM
6459 * nsfns.m (ns_get_screen): Rewrite.
6460 Don't presume selected-frame is of type `ns'.
6461
ba98e3a0
SM
6462 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6463 all drivers.
6464
ce1b23bb
SM
6465 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6466
bcda200f
YM
64672009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6468
6469 * keyboard.h (add_user_signal): Fix typo in extern.
6470
6471 * lisp.h (add_user_signal): Remove extern.
6472
6473 * unexelf.c (unexec): Consider a section to precede the .bss section
6474 if its addresses overlap that of .bss.
6475 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6476 instead of dumping process.
6477
864660a2
SM
64782009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6479
6480 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6481
50da4e56
SM
64822009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6483
6484 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6485
51520a1a
DN
64862009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6487
6488 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6489 any statements.
6490
409ea3a1
AS
64912009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6492
59c4c60f
AS
6493 * process.c (read_process_output): Make sure the current buffer is
6494 always restored.
6495
409ea3a1
AS
6496 * coding.c (record_conversion_result): Don't modify
6497 Vlast_code_conversion_error for successful result.
6498 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6499
56f00ed2
KH
65002009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6501
6502 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6503 (load_charset_map): Remove unnecessary code.
56f00ed2 6504
4491c9d2
DR
65052009-04-30 David Reitter <david.reitter@gmail.com>
6506
35f5b128 6507 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6508 through f24.
6509
6970f632
CY
65102009-04-30 Chong Yidong <cyd@stupidchicken.com>
6511
6512 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6513
6514 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6515 face_at_buffer_position.
6516 (face_before_or_after_it_pos, get_next_display_element)
6517 (note_mouse_highlight): Update face_at_buffer_position call.
6518
6519 * term.c (term_mouse_highlight):
6520 * msdos.c (IT_note_mouse_highlight):
6521 * fontset.c (Finternal_char_font):
35f5b128 6522 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6523
6524 * dispextern.h (face_at_buffer_position): Update prototype.
6525
0c616f63
KH
65262009-04-30 Kenichi Handa <handa@m17n.org>
6527
35f5b128 6528 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6529
ad3aaf33
AS
65302009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6531
6532 * callproc.c (Fcall_process): Fix GC protection. Make sure
6533 current buffer is always restored.
6534
c3c963a0
YM
65352009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6536
6537 * atimer.c (init_atimer): Also clear stopped_atimers.
6538
6539 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6540
7e3386cb
YM
6541 * process.c (create_process): Clean up merger residues of
6542 2008-07-17 change.
6543
91f68422
CY
65442009-04-29 Ulrich Mueller <ulm@gentoo.org>
6545
6546 * lread.c (Vread_circle): New variable.
6547 (read1): Disable recursive read if Vread_circle is nil.
6548
24b34550
KH
65492009-04-29 Kenichi Handa <handa@m17n.org>
6550
6551 * fontset.h (set_default_ascii_font): Delete extern.
6552
6553 * fontset.c (set_default_ascii_font): Delete this unused function.
6554
6555 * frame.c (x_set_font): When ARG is a font-object, check if the
6556 font-object matches with the ASCII font-spec of the frame's
9c358bda 6557 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6558
77bf07e1
AS
65592009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6560
6561 * fns.c (Flocale_info): Protect vector from GC during decoding.
6562
6563 * process.c (Fstart_process): Protect argv strings from GC during
6564 encoding.
6565
2c55aacf
AS
65662009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6567
6568 * sysdep.c: Include <ctype.h>.
6569
b892d3c9
DR
65702009-04-27 David Reitter <david.reitter@gmail.com>
6571
35f5b128 6572 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6573 Remove commented-out code.
6574
9d0644c4
JB
65752009-04-26 Johan Bockgård <bojohan@gnu.org>
6576
6577 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6578
b7053016
JR
65792009-04-25 Jason Rumney <jasonr@gnu.org>
6580
6581 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6582
4e8231f3
YM
65832009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6584
6585 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6586 Swap bytes in short integer if fringe bitmap width > 8.
6587
493dcf2c
KH
65882009-04-23 Kenichi Handa <handa@m17n.org>
6589
6590 * xfaces.c (Fx_list_fonts): If a font size is specified in
6591 PATTERN, set it in returned scalable fonts.
6592
401e9e57
CY
65932009-04-22 Chong Yidong <cyd@stupidchicken.com>
6594
708e05dc
CY
6595 * keyboard.c (Fset_input_meta_mode): Doc fix.
6596
6597 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6598
1ac9108a 6599 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6600
6601 * coding.c (Fterminal_coding_system): Doc fix.
6602
6603 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6604 (Fx_display_pixel_height, Fx_display_planes)
6605 (Fx_display_color_cells, Fx_server_max_request_size)
6606 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6607 (Fx_display_mm_height, Fx_display_mm_width)
6608 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6609 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6610 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6611 (check_x_display_info): Handle terminal objects instead of
6612 terminal ids.
6613
401e9e57
CY
6614 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6615 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6616 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6617 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6618
df80c7f0
KH
66192009-04-21 Kenichi Handa <handa@m17n.org>
6620
5a8f12af 6621 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6622 (font_score): Check AVGWIDTH too.
908567ef 6623
df80c7f0
KH
6624 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6625 worst case.
1ac9108a
SM
6626 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6627 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6628
705af33f
JR
66292009-04-19 Jason Rumney <jasonr@gnu.org>
6630
6631 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6632 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6633
6634 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6635 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6636 get_phys_cursor_geometry.
6637
b71ac3dd 6638 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6639 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6640 using get_phys_cursor_geometry.
6641
6642 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6643 correctly calculated.
6644
dc2933eb
JD
66452009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6646
1ac9108a
SM
6647 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6648 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6649 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6650 is deprecated.
6651
973e7849
AS
66522009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6653
6654 * font.c (font_put_frame_data): Use xfree instead of free.
6655
314d66f4
JB
66562009-04-17 Juanma Barranquero <lekktu@gmail.com>
6657
6658 * w32font.c (Qja, Qko): Remove declarations.
6659 (syms_of_w32font): Don't DEFSYM them.
6660
cf702558
CY
66612009-04-17 Chong Yidong <cyd@stupidchicken.com>
6662
6663 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6664
6665 * font.h (Qja, Qko): Extern them.
6666
6667 * ftfont.c (Qja, Qko): Remove declarations.
6668
6669 * xfont.c (Qja, Qko): Remove declarations.
6670
b50504f5
KH
66712009-04-17 Kenichi Handa <handa@m17n.org>
6672
bde25748
KH
6673 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6674 string from a vector to handle Latin-1 characters correctly.
6675
b50504f5
KH
6676 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6677 entity even if the cache hits.
6678
f4646fff
AS
66792009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6680
6681 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6682 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6683
e7deaab0
AS
6684 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6685 * lisp.h: Adjust prototypes.
6686
0a0e7d49
CY
66872009-04-16 Chong Yidong <cyd@stupidchicken.com>
6688
6689 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6690 change (Bug#3003).
6691
3c908a57
KH
66922009-04-16 Kenichi Handa <handa@m17n.org>
6693
1ac9108a 6694 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6695
6696 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6697 adstyle.
6698
6699 * ftfont.c (Qja, Qko): Don't make them static.
6700 (enum ftfont_cache_for): New enum.
6701 (fc_charset_table): Undo the previous change.
6702 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6703 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6704 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6705 non-scarable font, try to get AVERAGE_WIDTH.
6706 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6707 Change ft_face_cache from a list of a hash-table. Don't check
6708 `ja' and `ko' adstyle here.
6709 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6710 FTFONT_CACHE_FOR_CHARET.
6711 (ftfont_get_charset): Undo the previous change.
1ac9108a 6712 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6713 (ftfont_close): Likewise.
6714 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6715
6716 * font.c (font_sort_entites): Change the meaning of the arg
6717 BEST-ONLY. Don't optimize for VEC of lenght 1.
6718 (font_select_entity): Just return the value of font_sort_entites.
6719
6720 * xfaces.c (merge_face_vectors): Reflect font properties in
6721 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6722 font_clear_prop if a face attribute doesn't change.
6723
3c908a57
KH
6724 * charset.h (charset_ksc5601): Extern it.
6725
6726 * charset.c (charset_ksc5601): New variable.
6727 (Fdefine_charset_internal): Set charset_ksc5601.
6728 (init_charset_once): Initialize charset_ksc5601 to -1.
6729
d65859c3
DN
67302009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6731
6732 * fileio.c (history_delete_duplicates): Remove unused declaration.
6733
6734 * callint.c (history_delete_duplicates): New declaration.
6735 (Fcall_interactively): Remove command history duplicates when
6736 history_delete_duplicates is true.
6737
3ba010e5
EZ
67382009-04-14 Eli Zaretskii <eliz@gnu.org>
6739
6740 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6741
06f19b91
KH
67422009-04-14 Kenichi Handa <handa@m17n.org>
6743
6744 * font.c (Ffont_info): Fix docstring. Fix the second element of
6745 the returned value (bug#2949).
6746
2cce8bfc
CY
67472009-04-14 Chong Yidong <cyd@stupidchicken.com>
6748
6749 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6750
d156542d
KH
67512009-04-14 Kenichi Handa <handa@m17n.org>
6752
6753 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6754 encoding charset is ascii_compatible.
6755
6756 * charset.c (Fdefine_charset_internal): Make charset
6757 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6758 code_offset is 0, and covers all ASCII characters.
6759
86fa089e
SM
67602009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6761
6762 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6763 (ns_string_to_pasteboard_internal):
6764 * nsmenu.m (process_dialog):
6765 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6766 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6767 * lisp.h (Fx_load_color_file): Declare.
6768
a8a3728b
KH
67692009-04-13 Kenichi Handa <handa@m17n.org>
6770
1ac9108a 6771 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6772 (font_select_entity): Suppress the code to optimize for the same
6773 kind of fonts.
6774 (font_load_for_lface): Get a font that supports at least ASCII
6775 characters.
6776
6777 * ftfont.c (Qja, Qko): New variables.
6778 (fc_charset_table): Delete uniquifier data for iso8859-1.
6779 (ftfont_get_latin1_charset): New function.
6780 (get_adstyle_property): New function.
6781 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6782 bitmap fonts.
6783 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6784 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6785 `ko' or `ja'.
6786 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6787 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6788 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6789 property.
6790 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6791 (syms_of_ftfont): DEFSYM Qja and Qko.
6792
483670b5
KH
67932009-04-09 Kenichi Handa <handa@m17n.org>
6794
12b55765
KH
6795 * charset.c (map_charset_chars): For a charset of `superset'
6796 method, fix calculation of code range.
6797
483670b5
KH
6798 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6799 from the list of extra properties.
6800 (font_clear_prop): Be sure to delete `:name' font property.
6801
57d3b93b
KH
68022009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6803
b4b2c2ca
YM
6804 * dispnew.c (redraw_overlapping_rows): Fix detection of
6805 overlapping for topmost and bottommost rows.
6806
1ac9108a 6807 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6808
472c3609
JR
68092009-04-06 Jason Rumney <jasonr@gnu.org>
6810
6811 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6812
ab193662
KH
68132009-04-06 Kenichi Handa <handa@m17n.org>
6814
6815 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6816
6817 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6818
0c26f026
KH
68192009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6820
6821 * ftfont.c (ftfont_open): Fix checking of the return value of
6822 FT_Load_Char. Fix setting font->underline_thickness.
6823
e173bbce
CY
68242009-04-04 Chong Yidong <cyd@stupidchicken.com>
6825
6826 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6827 (Fterminal_parameters, Fterminal_parameter)
6828 (Fset_terminal_parameter): In doc string, refer to terminal
6829 objects rather than terminal ids.
6830
693a2698
EZ
68312009-04-04 Eli Zaretskii <eliz@gnu.org>
6832
6833 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6834 ret_lim_data. (Bug#2867)
6835
d5221487
CY
68362009-04-03 Chong Yidong <cyd@stupidchicken.com>
6837
6838 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6839 so they don't get wider than the window, matching 2006-01-23
6840 change to the partner function in xdisp.c (Bug#2800).
6841
223509a3
KH
68422009-04-03 Kenichi Handa <handa@m17n.org>
6843
6844 * print.c (print_object): Make each lowest sub_char_table start a
6845 new line (Bug#2866).
6846
74fcd0b1
KH
68472009-04-02 Kenichi Handa <handa@m17n.org>
6848
6849 * fontset.c (fontset_font): Record no-font when a fontset
6850 explicitly tells not to try another font-specs.
6851
c542407d
SM
68522009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6853
6854 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6855
e3869731
KH
68562009-03-30 Kenichi Handa <handa@m17n.org>
6857
d8d2f142
KH
6858 * fontset.c (fontset_from_font): Specify only registry in a
6859 font-spec for all characters supported by that registry.
6860
e3869731
KH
6861 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6862 even if HAVE_M17N_FLT is not defined.
6863
5da5f805
CY
68642009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6865
6866 * ftfont.c: Conditionalize prototyping and use of
6867 ftfont_variation_glyphs.
6868
ab226c50
SM
68692009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6870
9628fed7
SM
6871 * frame.c (delete_frame): Work around compiler bug.
6872
6873 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6874 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6875 Some more EMACS_INT.
6876 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6877
6878 * xdisp.c (dump_glyph): Fix typo.
6879
ae19ba7c
SM
6880 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6881 (adjust_markers_gap_motion, adjust_markers_for_delete)
6882 (adjust_markers_for_insert, adjust_point)
6883 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6884 (make_gap, copy_text, count_size_as_multibyte, insert)
6885 (insert_and_inherit, insert_before_markers)
6886 (insert_before_markers_and_inherit, insert_1)
6887 (count_combining_before, count_combining_after, insert_1_both)
6888 (insert_from_string, insert_from_string_before_markers)
6889 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6890 (insert_from_buffer_1, adjust_after_replace)
6891 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6892 (replace_range_2, del_range, del_range_1, del_range_byte)
6893 (del_range_both, del_range_2, modify_region)
6894 (prepare_to_modify_buffer, signal_before_change)
6895 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6896 for buffer positions and sizes.
6897 * lisp.h: Adjust prototypes accordingly.
6898
6899 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6900 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6901 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6902
ab226c50
SM
6903 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6904
46dfb8fb
JD
69052009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6906
6907 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6908 lines and columns so we keep the same pixel height and width.
6909
6910 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6911 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6912 (x_handle_net_wm_state): New function to update frame parameter
6913 fullscreen.
6914 (x_term_init): Initialize atoms for _NET_WM_STATE.
6915
6916 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6917
d347e494
SM
69182009-03-27 Kevin Ryde <user42@zip.com.au>
6919
6920 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6921 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6922 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6923 (Fgpm_mouse_stop): Pass that new parameter.
6924 * termhooks.h (close_gpm): Adjust prototype.
6925
84db11d6
SM
69262009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6927
c95a5008
SM
6928 * lisp.h (Fx_focus_frame): Declare.
6929
84db11d6
SM
6930 * callint.c (Fcall_interactively): For '^' just delegate the work to
6931 handle-shift-selection.
6932 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6933
0a1958d6
CY
69342009-03-24 Chong Yidong <cyd@stupidchicken.com>
6935
0bfdff23
CY
6936 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6937
0a1958d6
CY
6938 * data.c (Qinteractive_form): New variable.
6939 (Finteractive_form): Use it.
6940
6941 * eval.c (Fcommandp): Use Qinteractive_form.
6942
58aec0d6
JR
69432009-03-24 Jason Rumney <jasonr@gnu.org>
6944
6945 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6946 Calculate total size precisely. Decode environment variables
6947 before substituting. (Bug#38)
6948
553dd618
KH
69492009-03-24 Kenichi Handa <handa@m17n.org>
6950
6951 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6952 encoding (Bug#2722).
553dd618 6953
c39ea606
JD
69542009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6955
6956 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6957 that gdpy is set.
6958
bc9b2b5e
AM
69592009-03-22 Alan Mackenzie <acm@muc.de>
6960
6961 * callint.c (Finteractive): Clarify the doc string - even
6962 promptless elements need \n separators.
6963
9f995a76
JR
69642009-03-22 Jason Rumney <jasonr@gnu.org>
6965
6966 * w32term.c (syms_of_w32term): Doc fix for
6967 x-use-underline-position-properties.
6968
22749e9a
EZ
69692009-03-21 Eli Zaretskii <eliz@gnu.org>
6970
6971 * w32.c (getpwuid): Change argument type to unsigned.
6972 (struct w32_id): Change type of `rid' member to unsigned.
6973 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6974 argument ID to unsigned. All callers changed.
6975 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6976
e00553bf
EZ
69772009-03-20 Eli Zaretskii <eliz@gnu.org>
6978
6979 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6980 negative, produce a float value.
6981
6982 * dired.c (make_uid, make_gid): New functions.
6983 (Ffile_attributes): Use them to avoid negative UID and GID.
6984
f761d6b6
JB
69852009-03-20 Juanma Barranquero <lekktu@gmail.com>
6986
6987 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6988 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6989 Fix typos in docstrings.
6990
d507f8d7
KH
69912009-03-19 Kenichi Handa <handa@m17n.org>
6992
6993 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6994 changed, use font_load_for_lface to get a new font object.
6995 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6996
6997 * frame.c (x_set_font): Handle the case that ARG is a cons.
6998
c68845e0
GM
69992009-03-19 Glenn Morris <rgm@gnu.org>
7000
7001 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7002
bfa49dd1
CY
70032009-03-19 Chong Yidong <cyd@stupidchicken.com>
7004
7005 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7006
8458d4c1
KH
70072009-03-19 Kenichi Handa <handa@m17n.org>
7008
7009 * charset.c (load_charset_map_from_file): When a mapfile can't be
7010 loaded, signal an error.
7011
78e7d1fe
EZ
70122009-03-18 Eli Zaretskii <eliz@gnu.org>
7013
7014 * dired.c (Ffile_attributes): Make sure UID and GID are always
7015 positive, even if the value is too large for a positive EMACS_INT.
7016 Doc fix.
7017
7018 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7019
5da9fdfa
YM
70202009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7021
7022 * xmenu.c (xdialog_show): Move Fredisplay call ...
7023 (Fx_popup_dialog): ... here.
7024
7519c40d
SM
70252009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7026
7027 * dired.c (file_name_completion): Disable the first optimization just
7028 installed, since it is not implemented correctly.
7029
2cd298e2
SM
70302009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7031
7032 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7033 only if the entry can affect bestmatch.
2cd298e2
SM
7034 Stop the search early, as Ftry_completion already does.
7035
48d37adf
CY
70362009-03-17 Chong Yidong <cyd@stupidchicken.com>
7037
e10c9c93 7038 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7039
9286b16a
CY
70402009-03-15 Chong Yidong <cyd@stupidchicken.com>
7041
7042 * keyboard.c (parse_menu_item): Don't display remappings as menu
7043 equivalent bindings (Bug#788).
7044
f7b146dc
JR
70452009-03-15 Jason Rumney <jasonr@gnu.org>
7046
7047 * w32term.h (WM_EMACS_PAINT): New message.
7048 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7049 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7050 before passing to lisp thread. (Bug#950)
7051
f761d6b6 70522009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7053
d93f9575
CY
7054 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7055 variable as it was never reset.
7056 (ns_term_init): Remove initialization of Lisp-settable defaults
7057 and ns_expand_space.
7058 (-setPanelFromDefaultValues): Remove ns_expand_space.
7059 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7060 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7061 i.e. no additional spacing, similar to Carbon port.
7062
d93f9575
CY
7063 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7064 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7065
305018ec
JD
70662009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7067
7068 * sound.c (alsa_configure): Remove call to deprecated
7069 snd_pcm_sw_params_set_xfer_align.
7070
f761d6b6 70712009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7072
7073 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7074 after clicking in a detached tool bar.
7075 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7076
46e722a9
SM
70772009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7078
348db3dd
SM
7079 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7080 int/Lisp_Object mixup).
46e722a9 7081
a3d16f39
KH
70822009-03-13 Kenichi Handa <handa@m17n.org>
7083
7084 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7085 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7086 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7087 (set_fontset_font): Change ARG to a vector. Handle range_list in
7088 ARG correctly.
7089 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7090 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7091 the above change.
7092 (fontset_from_font): Fix previous change.
fe24f56a 7093 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7094 entry. If FONTSET is the default fontset, don't set the extra
7095 slot of the returning char-table.
7096
b066e6b6
JB
70972009-03-12 Juanma Barranquero <lekktu@gmail.com>
7098
7099 * nsfns.m (Fx_close_connection): Doc fix.
7100 (Fns_do_applescript): Reflow docstring.
7101 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7102 (Fx_display_pixel_width, Fx_display_pixel_height)
7103 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7104 Fix typos in docstrings.
7105 (Fns_set_alpha): Fix typos in error messages.
7106
d472514e 71072009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7108
d472514e 7109 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7110 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7111 were used for such events.
7112
d472514e
JB
7113 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7114 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7115
d472514e 7116 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7117 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7118
fb930676
KH
71192009-03-11 Kenichi Handa <handa@m17n.org>
7120
ff85581a
KH
7121 * font.h (font_open_by_spec): Extern it.
7122
c50b7e98
KH
7123 * font.c (font_open_by_spec): New function.
7124 (font_open_by_name): Use font_open_by_spec.
7125
fb930676
KH
7126 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7127 fontset of the frame.
7128
7129 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7130 modify the default font of frames that use this fontset.
7131 (num_auto_fontsets): New variable.
7132 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7133 name. Be sure to set FONTSET_ASCII to the correct font name.
7134 (update_auto_fontset_alist): New function.
7135
df4e8455
JB
71362009-03-11 Juanma Barranquero <lekktu@gmail.com>
7137
7138 * makefile.w32-in: Update dependencies.
7139
0a375797
AR
71402009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7141
7142 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7143
61313fa3
SM
71442009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7145
7146 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7147
b55103fb
CY
71482009-03-10 Chong Yidong <cyd@stupidchicken.com>
7149
7150 * lread.c (Feval_buffer): Doc fix.
7151
dde2559c
KH
71522009-03-09 Kenichi Handa <handa@m17n.org>
7153
7154 * charset.c (Qfile_name_handler_alist): Extern it.
7155 (load_charset_map_from_file): Temporarily bind
7156 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7157
df4e8455 71582009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7159
47f588bb
GM
7160 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7161 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7162
4ddf94bd
AR
71632009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7164
4c9bdfc2
AR
7165 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7166 (x_set_window_size): Change back to calculated method of setting
7167 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7168 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7169 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7170
fe41ae9e
AR
7171 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7172
4c9bdfc2
AR
7173 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7174 accelerator in parens under GNUstep.
7175
825d0875
KH
71762009-03-06 Kenichi Handa <handa@m17n.org>
7177
7178 These changes are to detect incorrect composition sequence without
f3b3be74 7179 looking ahead the source. (Bug#2370)
825d0875
KH
7180
7181 * coding.h: Include "composite.h".
7182 (enum compisition_state): New enum.
7183 (struct compisition_status): New struct.
7184 (struct iso_2022_spec): New member cmp_status.
7185 (struct emacs_mule_spec): New struct.
7186 (struct coding_system): New members ctext_extended_segment_len and
7187 embedded_utf_8. Change the union member
7188 spec.emacs_mule_full_support to spec.emacs_mule.
7189
7190 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7191 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7192 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7193 (ADD_COMPOSITION_DATA): New arg nbytes.
7194 (emacs_mule_char): New arg cmp_status.
7195 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7196 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7197 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7198 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7199 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7200 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7201 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7202 (EMACS_MULE_COMPOSITION_END): New macro.
7203 (emacs_mule_finish_composition): New function.
7204 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7205 (decode_coding_emacs_mule): Avoid long looking ahead while
7206 handling composition.
7207 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7208 (ENCODE_COMPOSITION_RULE): New macro.
7209 (finish_composition): New function.
7210 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7211 (DECODE_COMPOSITION_START): New implementation.
7212 (DECODE_COMPOSITION_END): Likewise.
7213 (STORE_COMPOSITION_RULE): New macro.
7214 (decode_coding_iso_2022): Avoid long looking ahead while handling
7215 composition, CTEXT extended segment, and embedded UTF-8.
7216 (setup_coding_system): For a coding of type iso-2022, reset
7217 CODING_ISO_EXTSEGMENT_LEN (coding) and
7218 CODING_ISO_EMBEDDED_UTF_8 (coding).
7219 (get_translation): Delete arguments last_block, from_nchars,
7220 to_nchars. Callers changed.
7221 (produce_chars): Don't modify charbuf. Adjusted for the change of
7222 get_translation.
98a326f7 7223 (produce_composition): Adjust for the new annotation sequence.
825d0875 7224 (handle_composition_annotation): Likewise.
98a326f7 7225 (consume_chars): Adjust for the change of get_translation.
825d0875 7226
ccbc4452
AR
72272009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7228
4ddf94bd 7229 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7230
988a7ddb
KH
72312009-03-05 Kenichi Handa <handa@m17n.org>
7232
7233 * font.c (font_select_entity): New function.
7234 (font_find_for_lface): Use font_select_entity to select a font.
7235
7236 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7237 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7238 font with C restriction.
7239
98a326f7 72402009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7241
be1bce46 7242 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7243
10ea2b82
JR
72442009-03-04 Jason Rumney <jasonr@gnu.org>
7245
2c93b248 7246 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7247 characters that have already been read. (Bug#2569)
2c93b248 7248
10ea2b82
JR
7249 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7250 Log an error message if check_image_size failed.
7251 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7252 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7253
71a0c011
EZ
72542009-03-02 Eli Zaretskii <eliz@gnu.org>
7255
7256 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7257 when decoding process output.
7258
2f63bba8
RS
72592009-03-01 Richard M Stallman <rms@gnu.org>
7260
7261 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7262
7263 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7264
0a9564cb
EZ
72652009-02-28 Eli Zaretskii <eliz@gnu.org>
7266
7267 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7268 (decode_coding_emacs_mule, decode_coding_iso_2022)
7269 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7270 (decode_coding_raw_text, decode_coding_charset)
7271 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7272 Honor inhibit-eol-conversion. (Bug #2186)
7273
449148b3
JR
72742009-02-28 Jason Rumney <jasonr@gnu.org>
7275
7276 * coding.c (detect_coding_charset): If not checking latin extra,
7277 fail on characters between 0x80 and 0xA0. (Bug#2354)
7278
a4aee864
EZ
72792009-02-28 Eli Zaretskii <eliz@gnu.org>
7280
7281 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7282 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7283
d88bee5a
GM
72842009-02-27 Glenn Morris <rgm@gnu.org>
7285
7286 * callint.c (Finteractive): Doc fix.
7287
a808f22d
KH
72882009-02-27 Kenichi Handa <handa@m17n.org>
7289
7290 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7291
caf8d60c
CY
72922009-02-27 Chong Yidong <cyd@stupidchicken.com>
7293
7294 * font.c (font_style_to_value): Set value for unknown symbols to
7295 100 instead of 255.
b61137ea
CY
7296 (weight_table, slant_table, width_table): Treat "unspecified" as
7297 the default value.
caf8d60c 7298
1a0de25c
JB
72992009-02-26 Juanma Barranquero <lekktu@gmail.com>
7300
7301 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7302
8fc45744
JB
73032009-02-25 Juanma Barranquero <lekktu@gmail.com>
7304
107bd7d1
JB
7305 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7306 error as soon as a recursive load is detected.
8fc45744 7307
f097e223
AR
73082009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7309
7310 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7311 before caching.
7312
8810a12f
KH
73132009-02-24 Kenichi Handa <handa@m17n.org>
7314
7315 * fontset.c (fontset_find_font): Fix the condition for checking
7316 unavailable font.
7317
2c7d1565
GM
73182009-02-24 Glenn Morris <rgm@gnu.org>
7319
7320 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7321 whitespace that confuses documentation.
7322
a20878b6
MB
73232009-02-23 Miles Bader <miles@gnu.org>
7324
7325 * process.c (Flist_system_processes, Fprocess_attributes)
7326 (syms_of_process): Rename `system-process-attributes' to
7327 `process-attributes'.
7328
b3b58c01
AS
73292009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7330
1b3b981b
AS
7331 * coding.h (struct coding_system): Make safe_charsets a pointer to
7332 unsigned char.
7333 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7334 being 255.
7335 (SAFE_CHARSET_P): Likewise.
7336 (setup_iso_safe_charsets): Properly setup safe_charsets.
7337 (Fdefine_coding_system_internal): Likewise.
7338 (setup_coding_system): Likewise. Remove unneeded casts.
7339 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7340 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7341 unneeded casts.
7342
b3b58c01
AS
7343 * insdel.c (del_range_2): Don't modify gap contents when called
7344 from decode_coding_object. (Bug#1809)
7345
0b6f228c
CY
73462009-02-21 Chong Yidong <cyd@stupidchicken.com>
7347
7348 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7349 Qfont_object.
7350 (Ftype_of): Recognize font objects.
7351
7352 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7353
7354 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7355 moved to data.c.
7356
52f8870b
AR
73572009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7358
7359 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7360 async_iconified. Based on a patch by Christian Lynbech
7361 <christian.lynbech@tieto.com>.
7362 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7363
7087d5e9
GM
73642009-02-20 Glenn Morris <rgm@gnu.org>
7365
7366 * syntax.c (Fskip_chars_forward): Fix doc typo.
7367
41d2ceef
CY
73682009-02-20 Chong Yidong <cyd@stupidchicken.com>
7369
7370 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7371
1a3b7ca6
CY
73722009-02-19 Chong Yidong <cyd@stupidchicken.com>
7373
7374 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7375
73cce38d
KH
73762009-02-19 Kenichi Handa <handa@m17n.org>
7377
7378 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7379 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7380
a51092ee
DN
73812009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7382
7383 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7384
c423ecca
KH
73852009-02-18 Kenichi Handa <handa@m17n.org>
7386
7387 * font.c (font_check_otf_features): Fix handling of `nil' element.
7388 (Ffont_spec): Describe :lang and :otf in the docstring.
7389
4c1958f4
AS
73902009-02-16 Andreas Schwab <schwab@suse.de>
7391
7392 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7393 string.
7394
5704f39a
KH
73952009-02-16 Kenichi Handa <handa@m17n.org>
7396
7397 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7398 (Bug#1723)
5704f39a 7399
8f0085aa
CY
74002009-02-14 Chong Yidong <cyd@stupidchicken.com>
7401
a057d86a 7402 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7403
7404 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7405 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7406
aff01dd9
EZ
74072009-02-14 Eli Zaretskii <eliz@gnu.org>
7408
7409 * msdos.c (MAX_SCREEN_BUF): New macro.
7410 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7411 Encode the entire run of glyphs sharing the same face, instead of
7412 doing that one glyph at a time (fixes a bug with displaying
7413 double-size characters).
7414
ba301db3
AR
74152009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7416
7417 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7418
7419 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7420 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7421 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7422
7423 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7424 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7425
51d861de
SM
74262009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7427
ac146f82 7428 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7429 invisible areas.
7430
7fed8996
JR
74312009-02-12 Jason Rumney <jasonr@gnu.org>
7432
631ea4fb
JR
7433 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7434 (add_font_entity_to_list): Call check_face_name even when family
7435 is unspecified.
7436
cb4a3e42
JR
7437 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7438 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7439 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7440
7fed8996 7441 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7442 raster fonts. (Bug#2219)
7fed8996 7443
895416e3
KH
74442009-02-12 Kenichi Handa <handa@m17n.org>
7445
7446 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7447 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7448 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7449 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7450 (find_automatic_composition): While looking forward and backward,
7451 check static composition. Fix where to stop looking forward.
7452 (composition_adjust_point): Fix checking of static composition.
7453 (Fcomposition_get_gstring): Pay attention to
1dacf998 7454 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7455
7456 * lisp.h (fast_looking_at): Extern it.
7457
7458 * search.c (fast_looking_at): New function.
7459
51d861de 7460 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7461 <struct glyph>.u.cmp.to.
7462 (append_composite_glyph): Likewise.
7463
51d861de 7464 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7465 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7466 composition.
51d861de 7467 (append_composite_glyph): Adjust for the change of
895416e3
KH
7468 <strcut glyph>.u.cmp.to.
7469
8510724d
JB
74702009-02-11 Juanma Barranquero <lekktu@gmail.com>
7471
7472 * casetab.c (init_casetab_once):
7473 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7474 * font.c (font_update_lface):
7475 * fontset.c (Fnew_fontset):
7476 * ftfont.c (ftfont_drive_otf):
7477 * xfont.c (xfont_open):
7478 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7479
294fa707
SM
74802009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7481
7482 * fileio.c (Fwrite_region): !NILP -> CONSP.
7483
b5bfebec
AS
74842009-02-10 Andreas Schwab <schwab@suse.de>
7485
7486 * process.c (send_process): Properly relocate pointer into data
adab88bd 7487 when using encoded data. (Bug#2272)
b5bfebec 7488
cb84a2be
KH
74892009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7490
7491 * coding.c (detect_coding_charset): Fix previous change.
7492
89e09428
JR
74932009-02-08 Jason Rumney <jasonr@gnu.org>
7494
7495 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7496 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7497
4470a277
AS
74982009-02-07 Andreas Schwab <schwab@suse.de>
7499
7500 * unexelf.c (unexec): Fix error message.
7501
3175b12a
AR
75022009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7503
7504 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7505 when modal window is active. (Bug #2152)
3175b12a
AR
7506 (applicationShouldTerminate:): Remove now-unneeded while loop
7507 around NSRunAlertPanel.
7508
7509 * nsmenu.m (popupSession): New file-global variable.
7510 (pop_down_menu): End the popupSession before closing dialog.
7511 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7512 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7513 don't query NSApp for events (just sleep instead).
7514
8434d0b8
EZ
75152009-02-07 Eli Zaretskii <eliz@gnu.org>
7516
51d861de
SM
7517 * coding.c (syms_of_coding) <translation-table-for-input>:
7518 Modify doc string to discourage use for character code unification.
8434d0b8 7519
aa82edfd
CY
75202009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7521
7522 * atimer.c (run_timers): Update pending_atimers.
7523
2d283c7c
CY
75242009-02-06 Chong Yidong <cyd@stupidchicken.com>
7525
eb306cab
CY
7526 * image.c (svg_load_image): Fix last change.
7527
2d283c7c
CY
7528 * xfns.c (Fx_create_frame): Signal an error if no font is
7529 found (Bug#2147).
7530
4d8e170e
JB
75312009-02-05 Juanma Barranquero <lekktu@gmail.com>
7532
7533 * character.c (syms_of_character) <script-representative-chars>:
7534 Fix typo in docstring.
7535
c96169a0
AR
75362009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7537
7538 * nsmenu.m (pop_down_menu): New function.
7539 (ns_popup_dialog): Call it on unwind.
7540 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7541 call timer_check() (Bug#2154).
7542 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7543 handling_signal is set.
7544 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7545
31fd7c5c 7546 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7547
7548 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7549
7550 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7551
51d861de
SM
7552 * keyboard.c (poll_for_input_1, handle_async_input):
7553 Set handling_signal under HAVE_NS.
c96169a0 7554
aacd8ba1
GM
75552009-02-04 Glenn Morris <rgm@gnu.org>
7556
7557 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7558
4cb75c4b
KH
75592009-02-04 Kenichi Handa <handa@m17n.org>
7560
7561 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7562
7563 * charset.c (Fchar_charset): New optional arg restriction.
7564
7565 * coding.h (coding_system_charset_list): Extern it.
7566
7567 * coding.c (coding_system_charset_list): New function.
7568
7569 * composite.c: Include coding.h and termhooks.h.
7570 (composition_gstring_p): Fix for the terminal case.
7571 (composition_gstring_width): Likewise.
7572 (fill_gstring_body): Likewise.
7573 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7574 the frame.
7575 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7576 is within a composition.
867d4bb3 7577 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7578
7579 * term.c (encode_terminal_code): Fix handling of composition.
7580 (produce_composite_glyph): For static composition, get pixel_width
7581 from struct composition.
7582
826ba17e
AS
75832009-02-02 Andreas Schwab <schwab@suse.de>
7584
7585 * unexelf.c (unexec): Handle unaligned bss offset.
7586
8ad093db
AR
75872009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7588
7589 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7590 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7591
8ad093db
AR
7592 * keyboard.c (handle_interrupt): Don't call
7593 quit_throw_to_read_char() under NS.
d0a76a6e 7594
8ad093db
AR
7595 * blockinput.h: Remove NS-specific code.
7596
4d18a7a2
DN
75972009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7598
db878925
DN
7599 * dispnew.c (window_change_signal): Don't try to get the size of a
7600 suspended tty frame.
7601 * term.c (Fresume_tty): Resize if the size has changed while the
7602 tty was suspended.
7603
4d18a7a2
DN
7604 * alloc.c (mark_stack): Properly conditionalize previous change.
7605
8984df7c
JB
76062009-01-30 Juanma Barranquero <lekktu@gmail.com>
7607
7608 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7609 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7610 Remove; this code is not used on Windows.
7611
75f4f1ac
EZ
76122009-01-30 Eli Zaretskii <eliz@gnu.org>
7613
7614 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7615 EOLs that also has stray ^M characters.
7616
07a1e794
JB
76172009-01-30 Juanma Barranquero <lekktu@gmail.com>
7618
7619 * atimer.c (run_timers, alarm_signal_handler):
7620 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7621 * w32inevt.c (w32_console_read_socket):
7622 * w32term.c (w32_read_socket):
7623 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7624
a8b11cc9
CY
76252009-01-30 Chong Yidong <cyd@stupidchicken.com>
7626
7627 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7628 Initialize it as a relative filename pattern.
7629 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7630 (Fcall_process_region): Simplify temp file creation using
7631 temporary-file-directory.
7632
c279587b
EZ
76332009-01-29 Eli Zaretskii <eliz@gnu.org>
7634
7635 * msdos.c: Rename pending_signals to msdos_pending_signals.
7636 (sig_suspender, sigprocmask): Adjust.
7637
a8fe3242
CY
76382009-01-29 Chong Yidong <cyd@stupidchicken.com>
7639
7640 * keyboard.c (pending_signals): New var.
7641 (poll_for_input, input_available_signal, init_keyboard): Set it.
7642 (process_pending_signals): New function.
7643
7644 * lisp.h (QUIT): Check pending_signals instead of
7645 interrupt_input_pending. Use process_pending_signals.
7646
51d861de 7647 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7648
51d861de 7649 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7650
7651 * sysdep.c (emacs_write): Use process_pending_signals.
7652
7653 * xterm.c (XTread_socket): Update pending_signals.
7654
7655 * w32term.c (w32_read_socket): Update pending_signals.
7656
7657 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7658
6570a1c4
KH
76592009-01-29 Kenichi Handa <handa@m17n.org>
7660
7661 * xftfont.c (xftfont_has_char): New function.
7662 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7663
d72a4afa
AR
76642009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7665
7666 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7667 under GNUstep.
7668 (ns_query_color): New declaration.
7669
7670 * nsterm.m (ns_confirm_quit): New variable.
7671 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7672 (EmacsApp-applicationShouldTerminate:): Use it.
7673 (EmacsPrefsController): Let user set it.
7674 (ns_query_color): New function.
7675 (ns_defined_color): Use it.
7676 (ns_initialize): Drop.
7677 (ns_term_init): Add two lines from ns_initialize(), and set
7678 input_interrupt_mode to nil.
7679
7680 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7681 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7682
9fe78804
KH
76832009-01-28 Kenichi Handa <handa@m17n.org>
7684
7685 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7686 (fontset_get_font_group): Remember that no font-group is specified
7687 for C.
9fe78804 7688
fa57de36
CY
76892009-01-27 Chong Yidong <cyd@stupidchicken.com>
7690
930600e9
CY
7691 * fns.c (concat): Check for string overflow (bug#1787).
7692
fa57de36
CY
7693 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7694 Quadruple undo limits (bug#1501).
7695
7179ce7b
KH
76962009-01-27 Kenichi Handa <handa@m17n.org>
7697
7698 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7699 directly use GT_Get_Char_index.
7700
7701 * xftfont.c (struct xftfont_info): New member `index'.
7702
7703 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7704 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7705
5be8fcc0
CY
77062009-01-26 Kenichi Handa <handa@m17n.org>
7707
7708 * fontset.c (fontset_find_font): Fix handling of non-cons return
7709 value of fontset_get_font_group.
7710 (fontset_font): Revert last change.
7711
19ae3e61
JR
77122009-01-26 Jason Rumney <jasonr@gnu.org>
7713
7714 * w32font.c (w32font_list_internal): Return quickly if registry is
7715 unknown. Simplify final return.
7716 (add_font_entity_to_list): Break complex logic down into more
7717 manageable chunks. Move unknown registry check to
7718 w32font_list_internal.
7719
8612b71a
AR
77202009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7721
7722 Changes to remove Feval calls from GUI under NS.
7723
d8038940
JB
7724 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7725 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7726 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7727
7728 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7729 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7730 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7731 instead of NON_ASCII_KEYSTROKE_EVENT.
7732 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7733 (EmacsApp-applicationShouldTerminate:): Query user.
7734 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7735 instead of Feval.
7736
7737 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7738
7739 * keyboard.c (kbd_buffer_get_event): Check for it.
7740 (keys_of_keyboard): Define lispy keys for
7741 ns-put/unput-working-text.
7742
7743 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7744 versions.
7745 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7746
6288ae55
CY
77472009-01-25 Chong Yidong <cyd@stupidchicken.com>
7748
7749 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7750 setting current_buffer directly. (Bug#2044)
6288ae55 7751
289e7f8f
CY
77522009-01-24 Chong Yidong <cyd@stupidchicken.com>
7753
5ce87308 7754 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7755 any work. (Bug#1952, bug#1990).
5ce87308 7756
64cc3cf6 7757 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7758
b3243e6f
AR
77592009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7760
7761 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7762 (ns_no_defaults): New declaration.
7763 (main): Use it.
e0d2e69a 7764
d900b2af 7765 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7766
d900b2af 7767 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7768
d900b2af
AR
7769 * nsterm.m (ns_no_defaults): New variable.
7770 (ns_initialize): Don't read defaults when ns_no_defaults.
7771 (EmacsView-readSelectionFromPasteboard:)
7772 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7773 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7774 (ns_dumpglyphs_stretch): New function.
7775 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7776 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7777
e0d2e69a
AR
7778 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7779
3ac71f5d
CY
77802009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7781
7782 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7783 call for Sparc64.
7784
3fe53a83
AR
77852009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7786
7787 * nsfns.m:
7788 * nsgui.h:
7789 * nsmenu.m:
7790 * nsselect.m:
7791 * nsterm.h:
7792 * nsterm.m: Remove '23' comments that indicated code added during
7793 update from emacs-20 -> emacs-23.
7794
10f87c6f 77952009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7796
7797 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7798 ns_alternate_modifier. (Bug#1217)
a3b53a85 7799
c7cef62d
AR
7800 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7801 Display all shortcuts, including those w/o super modifier.
7802
575fb8bd
AR
7803 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7804
918b848b
CY
78052009-01-22 Chong Yidong <cyd@stupidchicken.com>
7806
7807 * fileio.c (Vwrite_region_post_annotation_function)
7808 (Vwrite_region_annotation_buffers): New vars.
7809 (build_annotations_unwind): Just reset
7810 Vwrite_region_annotation_buffers.
7811 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7812 Call write-region-post-annotation-function.
7813 (build_annotations): Add to Vwrite_region_annotation_buffers if
7814 buffer changes.
7815
a39e2539
AR
78162009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7817
7818 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7819 Tiger.
51d861de
SM
7820 * nsfns.m (ns_do_applescript):
7821 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7822
35ed44db
AR
78232009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7824
7825 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7826
cbe0b5bf
AR
78272009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7828
7829 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7830
6049d3a0
AR
7831 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7832
7833 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7834 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7835 handle Ctrl-tab. (Bug#1841)
7836 (ns_get_color): Use unsigned long long for scanned hex string value.
7837 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7838 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7839 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7840 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7841 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7842 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7843 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7844
d3810c21 7845 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7846 DPI. (Bug#1316)
d3810c21
AR
7847 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7848 values in onTiger section.
4c7077c3 7849
e301e634
CY
78502009-01-19 Chong Yidong <cyd@stupidchicken.com>
7851
7f82490b
CY
7852 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7853 Check return value of font_spec_from_name.
64cc3cf6 7854 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7855
7856 * font.c (font_spec_from_name): Return Qnil if font name could not
7857 be parsed.
7858 (font_parse_name): Treat a `?' character as part of an XLFD.
7859
e301e634
CY
7860 * fns.c (Fsubstring): Doc fix.
7861
1c0db158
KH
78622009-01-19 Kenichi Handa <handa@m17n.org>
7863
51d861de 7864 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7865 (ftfont_list): Likewise.
7866
acf20901
JB
78672009-01-18 Juanma Barranquero <lekktu@gmail.com>
7868
fff4e459
JB
7869 * dbusbind.c (Fdbus_register_signal):
7870 * process.c (conv_sockaddr_to_lisp):
7871 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7872
acf20901
JB
7873 * callproc.c (Fgetenv_internal): Doc fix.
7874
e7abcdfb
CY
78752009-01-16 Chong Yidong <cyd@stupidchicken.com>
7876
7877 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7878 it is not even used.
7879
b60861e6
GM
78802009-01-16 Glenn Morris <rgm@gnu.org>
7881
7882 * font.c (Ffont_variation_glyphs): Silence compiler.
7883
8db52afe
JB
78842009-01-15 Juanma Barranquero <lekktu@gmail.com>
7885
7886 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7887 Reported by David Robinow <drobinow@gmail.com>.
7888
4cddb209
KH
78892009-01-15 Kenichi Handa <handa@m17n.org>
7890
51d861de 7891 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7892
f247f67b
JR
78932009-01-14 Jason Rumney <jasonr@gnu.org>
7894
7895 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7896 never a fontset. (Bug#1562)
f247f67b 7897
f56a4450
KH
78982009-01-14 Kenichi Handa <handa@m17n.org>
7899
7900 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7901 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7902
4e99855e
CY
79032009-01-13 Chong Yidong <cyd@stupidchicken.com>
7904
7905 * font.c (font_clear_prop): If clearing the family, clear the font
7906 width index too.
7907
fff4e459 7908 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7909
24f01470
JB
79102009-01-12 Juanma Barranquero <lekktu@gmail.com>
7911
7912 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7913 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7914 functions, use sizeof.
7915
a41240a3
MR
79162009-01-12 Martin Rudalics <rudalics@gmx.at>
7917
7918 * keyboard.c (read_char): Fix case where last_nonmenu_event
7919 returned a bad value with submenus. (Bug#447)
7920
944636b8
CY
79212009-01-12 Chong Yidong <cyd@stupidchicken.com>
7922
7923 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7924 family, clear the font width index too.
7925
0dad7c6f
JR
79262009-01-11 Jason Rumney <jasonr@gnu.org>
7927
7928 * keyboard.c (cmd_error_internal): Exit when errors occur before
7929 frame creation and not in daemon mode. (Bug#1836)
7930
7c2363af
CY
79312009-01-10 Chong Yidong <cyd@stupidchicken.com>
7932
7933 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7934 of a display vector, backtrack.
7935 (try_window_reusing_current_matrix): Check glyph type before
7936 referencing charpos member.
7937
97b1b294
EZ
79382009-01-10 Eli Zaretskii <eliz@gnu.org>
7939
7940 Fix Bug #876:
7941
7942 * coding.c (inhibit_null_byte_detection): New variable.
7943 (detect_coding, detect_coding_system): Don't pay attention to null
7944 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7945 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7946 <inhibit-iso-escape-detection>: Doc fix.
7947
4624b6e3
JR
79482009-01-09 Jason Rumney <jasonr@gnu.org>
7949
7950 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7951 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7952 Only report Unicode Plane 2 fonts as unicode-sip.
7953
323b840c
CY
79542009-01-09 Chong Yidong <cyd@stupidchicken.com>
7955
51d861de
SM
7956 * xfaces.c (Fx_font_family_list): Delete function.
7957 Move compatibility version to faces.el.
323b840c 7958
51d861de 7959 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7960
eba7400d
MR
79612009-01-09 Martin Rudalics <rudalics@gmx.at>
7962
7963 * frame.c (x_set_frame_parameters): Remember requested value for
7964 fullscreen before it's reset by the parameter handler.
7965
4b09796d
GM
79662009-01-09 Glenn Morris <rgm@gnu.org>
7967
7968 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7969 (last_command_event): ... and update all users.
4b09796d
GM
7970 (last_input_char): For clarity, rename to...
7971 (last_input_event): ... and update all users.
7972 (last-command-char, last-input-char): Move to subr.el as aliases.
7973 * cmds.c, commands.h: Update for last_command_char rename.
7974
14ccea62
CY
79752009-01-08 Chong Yidong <cyd@stupidchicken.com>
7976
51d861de 7977 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7978
5f004711
JR
79792009-01-08 Jason Rumney <jasonr@gnu.org>
7980
7981 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7982 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7983 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7984 Don't declare.
fff4e459 7985 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7986 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7987
b71f6f73
KH
79882009-01-07 Kenichi Handa <handa@m17n.org>
7989
50b06221 7990 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7991 remember the coding system used for decoding in
50b06221
KH
7992 coding_system (Bug#1039).
7993
b71f6f73 7994 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7995 breaking the loop. (Bug#870)
b71f6f73
KH
7996 (decode_coding_utf_16, decode_coding_emacs_mule)
7997 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7998 (decode_coding_charset): Likewise.
7999
56f668f7
MR
80002009-01-05 Martin Rudalics <rudalics@gmx.at>
8001
8002 * frame.c (x_set_frame_parameters): Make sure height (width) get
8003 applied when fullwidth (fullheight) is set. (Bug#1522)
8004
5da9424d
JB
80052009-01-04 Juanma Barranquero <lekktu@gmail.com>
8006
8007 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8008 (utc_base): Declare as ULONGLONG, not long double.
8009 (convert_time_raw): Delete.
8010 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8011 (initialize_utc_base): New function.
8012 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8013 (convert_from_time_t): Use initialize_utc_base; compute result with
8014 64-bit arithmetic.
8015 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8016
c4605e09
EZ
80172009-01-03 Eli Zaretskii <eliz@gnu.org>
8018
9acef61c 8019 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8020 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8021 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8022 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8023 [!subprocesses]: Define.
8024 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8025 (Flist_system_processes, Fsystem_process_attributes)
8026 [!subprocesses]: Call list_system_processes and
8027 system_process_attributes instead of returning Qnil.
8028
9acef61c
JB
8029 * dosfns.c (system_process_attributes, list_system_processes):
8030 New functions.
c4605e09
EZ
8031
8032 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8033
8034 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8035 Don't use the default (no-op) implementation.
8036
8b7d0a16
JR
80372009-01-03 Jason Rumney <jasonr@gnu.org>
8038
a6d46bc1
JR
8039 * keyboard.c (parse_modifiers_uncached): Wheel events are
8040 clicks (bug#687).
8041
8b7d0a16
JR
8042 * w32term.c (x_query_colors, x_query_color): New functions.
8043
8044 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8045 (svg_load_image): Cast returned pointers from dynamically loaded
8046 functions. Eliminate W32 specific code.
8047
bfe11752
DN
80482009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8049
89e2438a
DN
8050 * nsfns.m (x_set_foreground_color, x_set_background_color)
8051 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8052 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8053 x_ prefix instead of ns_. Update references.
8054 (syms_of_nsfns): Add a FIXME comment.
8055
8056 * nsterm.m (x_set_cursor_type): New prototype.
8057 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8058
bfe11752
DN
8059 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8060 for Solaris instead of incorrectly providing Qutime and Qcutime.
8061
031da700
EZ
80622009-01-02 Eli Zaretskii <eliz@gnu.org>
8063
8064 * w32.c (process_times): Compute sum of utime and stime.
8065 (system_process_attributes): Add Qtime to the alist.
8066
8067 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8068 and add them to the alist.
8069
8070 * process.c (top level) <Qtime, Qctime>: New variables.
8071 (syms_of_process): staticpro them.
8072 (Fsystem_process_attributes): Add their documentation to the doc
8073 string.
8074
8075 * process.h: Declare Qtime and Qctime.
8076
df23bf08
JR
80772009-01-02 Jason Rumney <jasonr@gnu.org>
8078
9acef61c 8079 * image.c (Qgobject): New symbol.
df23bf08
JR
8080 (syms_of_image): Initialize it.
8081 (init_svg_functions): Load some functions from gobject library.
8082
5bbdf7aa
DN
80832009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8084
8085 * frame.c (make_terminal_frame): Remove redundant code and useless
8086 block.
8087
63136da6
AS
80882009-01-01 Andreas Schwab <schwab@suse.de>
8089
8090 * process.c (conv_sockaddr_to_lisp): Add workaround for
8091 getsockname bug on BSD.
8092
9ef69046
CY
80932009-01-01 Chong Yidong <cyd@stupidchicken.com>
8094
d6fafbe0
CY
8095 * xfns.c (x_create_tip_frame): Set border width of the X window.
8096
51d861de 8097 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8098
f9c34147
JR
80992009-01-01 Jason Rumney <jasonr@gnu.org>
8100
9acef61c 8101 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8102 Don't block input, as per earlier xterm.c changes.
8103
f5497e45
AR
81042008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8105
8106 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8107 (ns_appkit_version_int): New function.
8108 (x-server-version): Use ns_appkit_version_int and follow 21+
8109 convention of returning 3 integers.
8110
c19cab20
KH
81112008-12-30 Kenichi Handa <handa@m17n.org>
8112
8113 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8114 (CHAR_SURROGATE_PAIR_P): New macro.
8115
8116 * font.h (struct font_driver): New member get_variation_glyphs.
8117
9acef61c 8118 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8119 (Ffont_variation_glyphs): New function.
8120 (syms_of_font): Defsubr it.
8121
8122 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8123 ftfont_variation_glyphs.
8124 (setup_otf_gstring): New function.
8125 (ftfont_drive_otf): Use it.
8126 (ftfont_shape_by_flt): Handle variation selector.
8127 (ftfont_variation_glyphs): New function.
8128
28cd591f
MR
81292008-12-30 Martin Rudalics <rudalics@gmx.at>
8130
8131 * frame.c (Vemacs_iconified): Remove.
8132
7f714baf
JR
81332008-12-30 Jason Rumney <jasonr@gnu.org>
8134
8135 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8136 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8137
9d2d22ab
CY
81382008-12-30 Chong Yidong <cyd@stupidchicken.com>
8139
8140 * indent.c (Fvertical_motion): Don't advance iterator if we have
8141 reseated to the desired position.
8142
8143 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8144 checking for pos match.
8145
545312c2
KH
81462008-12-30 Kenichi Handa <handa@m17n.org>
8147
1ede3eb6
KH
8148 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8149 just get the low 8-bit of the code.
8150
545312c2
KH
8151 * font.c (font_intern_prop): Validate str as multibyte.
8152
bd7bbf29
DN
81532008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8154
31e0750e
DN
8155 * dispextern.h (struct face): Move lface and hash from the middle
8156 of bitfields.
8157
bd7bbf29
DN
8158 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8159
b5672e7c
DN
81602008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8161
8162 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8163 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8164 instead of intervals.h.
8165
d704470f
AS
81662008-12-26 Andreas Schwab <schwab@suse.de>
8167
8168 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8169 cons.
8170
54b33868
MR
81712008-12-26 Martin Rudalics <rudalics@gmx.at>
8172
8173 * textprop.c (Qminibuffer_prompt): New variable.
8174 (syms_of_textprop): Initialize it.
8175 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8176 in minibuffer-prompt face. (Bug#1662)
8177
40b615d6
JR
81782008-12-25 Jason Rumney <jasonr@gnu.org>
8179
8180 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8181
baae5c2d
JR
81822008-12-24 Jason Rumney <jasonr@gnu.org>
8183
8184 * ralloc.c (r_alloc_reset_variable): New function.
8185
8186 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8187 record of what points where. (Bug#716)
baae5c2d 8188
a9051c88
DN
81892008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8190
8191 * minibuf.c (read_minibuf): Follow the non-interactive case when
8192 running as a daemon, before detaching.
8193
8b146312
AS
81942008-12-22 Andreas Schwab <schwab@suse.de>
8195
8196 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8197 * gtkutil.c (free_widget_value): Use xfree instead of free.
8198
56f2de10
MR
81992008-12-22 Martin Rudalics <rudalics@gmx.at>
8200
8201 * frame.c (delete_frame): New function derived from
8202 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8203 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8204 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8205 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8206 * frame.h: Extern delete_frame.
8207 * window.c (window_loop):
8208 * terminal.c (delete_terminal):
8209 * xterm.c (x_connection_closed):
8210 * xfns.c (Fx_hide_tip):
9acef61c 8211 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8212
1fc200d6
JR
82132008-12-21 Jason Rumney <jasonr@gnu.org>
8214
8215 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8216 when character maps to .notdef character.
8217
5e252df2
SM
82182008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8219
8220 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8221
99b72cc4
JR
82222008-12-20 Jason Rumney <jasonr@gnu.org>
8223
8224 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8225 a graphical frame on Windows. (Bug#1325)
99b72cc4 8226
acc49a52
JD
82272008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8228
8229 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8230
6ea15123
CY
82312008-12-20 Chong Yidong <cyd@stupidchicken.com>
8232
8233 * minibuf.c (Fread_buffer): Doc fix.
8234
b2dab6c8
JR
82352008-12-20 Jason Rumney <jasonr@gnu.org>
8236
54ea0c87 8237 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8238 server name in UNC paths. (Bug#719)
54ea0c87 8239
b2dab6c8 8240 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8241 charbuf. (Bug#1035)
b2dab6c8 8242
6d1921be
DN
82432008-12-19 Daniel Engeler <engeler@gmail.com>
8244
8245 * sysdep.c (serial_configure): Fix typo.
8246
53934c98
DN
82472008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8248
8249 * sysdep.c: Include alloca.h.
f4f634e8
DN
8250 (system_process_attributes): Add implementation for Solaris.
8251
8252 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8253
06e111a6
DN
82542008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8255
8256 Reorganize implementation of Flist_system_processes and
8257 Fsystem_process_attributes. No functional changes.
8258 * process.c: Don't #include pwd.h, grp.h and limits.h.
8259 (Flist_system_processes): Just call list_system_processes.
8260 (Fsystem_process_attributes): Just call system_process_attributes.
8261 (procfs_list_system_processes, time_from_jiffies)
8262 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8263 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8264
8265 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8266 (list_system_processes): Rename from
8267 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8268 Provide a do nothing implementation.
8269 (system_process_attributes): Rename from
8270 procfs_list_system_processes.
8271 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8272 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8273
8274 * w32.c (list_system_processes): Rename from
8275 w32_list_system_processes.
8276 (system_process_attributes): Rename from
8277 w32_system_process_attributes.
8278
8279 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8280
8281 * process.h (w32_list_system_processes)
8282 (w32_system_process_attributes): Remove.
362654a6
JB
8283 (list_system_processes, system_process_attributes):
8284 New prototypes.
06e111a6 8285
6a705b23
KH
82862008-12-19 Kenichi Handa <handa@m17n.org>
8287
8288 * xfont.c (xfont_decode_coding_xlfd): New function.
8289 (xfont_encode_coding_xlfd): New function.
8290 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8291 (xfont_list): Decode and encode XLFD by iso-8859-1.
8292 (xfont_match): Likewise.
8293 (xfont_list_family): Likewise.
8294 (xfont_open): Likewise.
8295
d66c0241 8296 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8297 names are utf-8.
8298
d66c0241 8299 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8300 names are utf-8.
8301
5a130941
JD
83022008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8303
8304 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8305 changed.
bfd20325
JD
8306 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8307 clicked on a detached tool bar button.
5a130941 8308
fd95644b
DN
83092008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8310
8311 * emacs.c (main): Print and error and exit when no data is read
8312 from the pipe.
8313
e6eee6ae
JR
83142008-12-17 Jason Rumney <jasonr@gnu.org>
8315
8316 * w32font.c (w32font_has_char): Always return -1.
8317
a35dd56b
KH
83182008-12-16 Kenichi Handa <handa@m17n.org>
8319
8320 * font.c (font_open_entity): Fix previous change.
8321
0e3635c2
DN
83222008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8323
8324 * process.c: Include <limits.h>.
8325
d4835507 83262008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8327
8328 * font.c (font_update_drivers): Fix mistake in reconstructing the
8329 driver list.
8330
83312008-12-16 Chong Yidong <cyd@stupidchicken.com>
8332
8333 * font.c (font_clear_cache): Fix format of font cache data.
8334
e2cbc401
CY
83352008-12-15 Chong Yidong <cyd@stupidchicken.com>
8336
8337 * xftfont.c (xftfont_open): Free Xft font pattern if
8338 XftFontOpenPattern fails.
8339
8340 * xterm.c (x_free_frame_resources): Remove extraneous call to
8341 free_frame_faces.
8342
b131d535
CY
83432008-12-13 Chong Yidong <cyd@stupidchicken.com>
8344
8345 * xterm.c (x_delete_display): Move xim_close_dpy call to
8346 x_delete_terminal.
8347 (x_delete_terminal): Call xim_close_dpy.
8348
e6df5336
JR
83492008-12-13 Jason Rumney <jasonr@gnu.org>
8350
8351 * w32font.c (intern_font_name): New function.
8352 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8353 (w32font_open_internal, Fx_select_font): Decode font name.
8354 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8355
8356 * w32font.h (intern_font_name): Declare new function.
8357
8358 * w32uniscribe.c (add_opentype_font_name_to_list):
8359 Use intern_font_name.
8360
20d68145
CY
83612008-12-13 Chong Yidong <cyd@stupidchicken.com>
8362
9f2554de
CY
8363 * frame.c (Fdelete_frame): Call free_font_driver_list.
8364
3d9bec9a
CY
8365 * font.c (free_font_driver_list): Implement missing function.
8366
20d68145
CY
8367 * w32term.c (w32_term_init): Don't initialize the image cache
8368 here; it will be done in init_frame_faces.
8369
8370 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8371 (struct x_display_info): Remove unused member null_pixel. New
8372 member xim_callback_data.
8373
8374 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8375 (xim_initialize): Save pointer to callback function data.
8376 (xim_close_dpy): Free callback function data. Call XCloseIM,
8377 reverting 2008-11-04 change by David Smith.
8378 (x_term_init): Don't initialize the image cache here; it will be
8379 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8380 (x_delete_display): Free x_dnd_atoms member.
8381
96f9306b
KH
83822008-12-13 Kenichi Handa <handa@m17n.org>
8383
6dec9044
JB
8384 * font.c (font_rescale_ratio): Moved from xfaces.c.
8385 Argument type changed. Handle a font-spec too.
96f9306b 8386 (font_score): Check Vface_font_rescale_alist.
6dec9044 8387 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8388
8389 * xfaces.c (font_rescale_ratio): Moved to font.c.
8390
8d5b4964
CY
83912008-12-13 Chong Yidong <cyd@stupidchicken.com>
8392
8393 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8394
e6df5336
JR
83952008-12-12 Jason Rumney <jasonr@gnu.org>
8396
8397 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8398 Vwindow_system_version to the real w32 major version.
8399
97c6058a
DN
84002008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8401
8402 * term.c (init_tty): Move setting the terminal name before the
8403 potential user: maybe_fatal.
8404
ec4e88d7
CY
84052008-12-11 Chong Yidong <cyd@stupidchicken.com>
8406
d4835507
JB
8407 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8408 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8409
b4233ec9
JR
84102008-12-11 Jason Rumney <jasonr@gnu.org>
8411
8ec71e23 8412 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8413 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8414
b4233ec9 8415 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8416 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8417
011a0143
JB
84182008-12-11 Juanma Barranquero <lekktu@gmail.com>
8419
8420 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8421
3c309f34
JB
84222008-12-11 Juanma Barranquero <lekktu@gmail.com>
8423
8424 * process.c (Fsystem_process_attributes, syms_of_process):
8425 Fix typo in name of Ssystem_process_attributes.
8426 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8427
fedc6ab5
JB
84282008-12-11 Juanma Barranquero <lekktu@gmail.com>
8429
8430 * syntax.c (Fmodify_syntax_entry): Doc fix.
8431
ba3de0e8
JB
84322008-12-10 Juanma Barranquero <lekktu@gmail.com>
8433
8434 * font.c (Ffont_spec): Move usage to end of docstring.
8435
174f1c74
JR
84362008-12-10 Jason Rumney <jasonr@gnu.org>
8437
8438 * w32font.c (Qcham): New symbol.
8439 (font_supported_scripts): Add cham, and comments for other new
8440 scripts in bitfield from OpenType spec.
9d32f818
JR
8441 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8442 contain characters beyond the bmp.
174f1c74 8443
7b649478
KH
84442008-12-10 Kenichi Handa <handa@m17n.org>
8445
8446 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8447 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8448 Qunicode_sip.
8449
2133e2d1
JB
84502008-12-10 Juanma Barranquero <lekktu@gmail.com>
8451
8452 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8453 (Fcoding_system_put): Use QCdefault_char.
8454 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8455
9af886ee
CY
84562008-12-09 Chong Yidong <cyd@stupidchicken.com>
8457
74d819eb
CY
8458 * xftfont.c (syms_of_xftfont): Fix typo.
8459
4ccfa1c0 8460 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8461
7c19d3ae
DN
84622008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8463
8464 * emacs.c (main): Close daemon_pipe on exec.
8465
567826bb
CY
84662008-12-08 Chong Yidong <cyd@stupidchicken.com>
8467
8468 * termchar.h (struct tty): New members termcap_term_buffer and
8469 termcap_strings_buffer.
8470
8471 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8472 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8473 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8474 All callers changed.
8475 (init_tty): Store termcap data and string buffers in new struct
8476 tty members termcap_term_buffer and termcap_strings_buffer.
8477 (delete_tty): Free them.
4ccfa1c0 8478 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8479
aa96c42b
SZ
84802008-12-07 Seiji Zenitani <zenitani@mac.com>
8481
8482 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8483 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8484
b7e1d896
CY
84852008-12-06 Chong Yidong <cyd@stupidchicken.com>
8486
8487 * coding.c (make_conversion_work_buffer): Disable buffer
8488 modification hooks in the work buffer.
8489
b5ec91a5
EZ
84902008-12-05 Eli Zaretskii <eliz@gnu.org>
8491
8492 * process.c (procfs_system_process_attributes): If `nread' has a
8493 negative value, assign zero to it.
8494
a5d2a52b
CY
84952008-12-05 Chong Yidong <cyd@stupidchicken.com>
8496
68c5540b 8497 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8498
7bf1bb21
KH
84992008-12-05 Kenichi Handa <handa@m17n.org>
8500
8501 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8502 second character is a combining character.
8503
2fdc7d00
EZ
85042008-12-05 Eli Zaretskii <eliz@gnu.org>
8505
8506 * process.c (procfs_system_process_attributes): Don't use cmd,
8507 cmdsize, and q without initializing them first.
8508
bf6bfba8
JR
85092008-12-04 Jason Rumney <jasonr@gnu.org>
8510
8511 * w32font.c (w32font_draw): Initialize orig_clip before getting
8512 it, and delete it when finished.
8513
a3b1a468
DN
85142008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8515
8516 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8517 case when running as a daemon before detaching.
8518
8b8be8eb
JB
85192008-12-03 Juanma Barranquero <lekktu@gmail.com>
8520
805f2638 8521 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8522
b1bde622
KH
85232008-12-03 Kenichi Handa <handa@m17n.org>
8524
e500c47d
KH
8525 * font.c (font_at): Set `multibyte' at first.
8526
ca516334
KH
8527 * coding.c (decode_coding_charset): Check type of an element of
8528 vector VALIDS.
7bf1bb21 8529 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8530
4ccfa1c0 8531 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8532 (font_for_char): Likewise.
8533
1e5ecd37
CY
85342008-12-03 Chong Yidong <cyd@stupidchicken.com>
8535
d5b01609 8536 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8537 (font_update_lface): Handle fonts with corrupted size specs,
8538 i.e. non-int and non-float.
d5b01609 8539
11e3a6e4 8540 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8541 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8542 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8543
ab06788b
CY
8544 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8545
1e5ecd37 8546 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8547 underline_minimum_offset for underline position.
1e5ecd37 8548
63c125ab
DN
85492008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8550
8551 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8552
8553 * character.c (c_string_width): Specify the type for LEN.
8554
3a8406e1
KH
85552008-12-03 Kenichi Handa <handa@m17n.org>
8556
4ccfa1c0 8557 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8558 (decode_coding_utf_8): Likewise.
4ccfa1c0 8559 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8560 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8561
651df7d9
CY
85622008-12-02 Chong Yidong <cyd@stupidchicken.com>
8563
8564 * keyboard.c (make_lispy_position): Only use PT if the selected
8565 window is current.
8566
1f625c6c
AS
85672008-12-02 Andreas Schwab <schwab@suse.de>
8568
f7741ce9
AS
8569 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8570
1f625c6c
AS
8571 * doprnt.c (doprnt1): Fix size of charbuf.
8572
92bc2678
CY
85732008-12-02 Chong Yidong <cyd@stupidchicken.com>
8574
8575 * keyboard.c (timer_check): Revert last change.
8576
93b9e8cc
JB
85772008-12-02 Juanma Barranquero <lekktu@gmail.com>
8578
8579 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8580
fd7a37d5
JB
85812008-12-01 Juanma Barranquero <lekktu@gmail.com>
8582
8583 * makefile.w32-in: Update dependencies.
8584 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8585
c115043b
AS
85862008-12-01 Andreas Schwab <schwab@suse.de>
8587
8588 * font.c (register_font_driver): Use xmalloc.
8589 (font_put_frame_data): Likewise.
8590
f5668d2a
CY
85912008-12-01 Chong Yidong <cyd@stupidchicken.com>
8592
860d96be
CY
8593 * xfaces.c (realize_x_face): Make abort condition clearer.
8594
f5668d2a
CY
8595 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8596
379c17e7
CY
85972008-11-30 Chong Yidong <cyd@stupidchicken.com>
8598
8599 * keyboard.c (timer_check): After a timer runs, ensure that the
8600 selected window's buffer is current.
8601
35f36d65
JB
86022008-11-30 Juanma Barranquero <lekktu@gmail.com>
8603
f952c61c
JB
8604 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8605 It was accidentally restored by the Unicode merge.
8606
35f36d65
JB
8607 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8608
b23077df
JB
86092008-11-29 Juanma Barranquero <lekktu@gmail.com>
8610
8611 * w32proc.c: Include "coding.h".
8612 (Fw32_short_file_name): Encode filename passed to Windows API.
8613 (Fw32_long_file_name): Encode filename passed to Windows API and
8614 decode back the result. (Bug#1433)
8615
b8ebe9dd
KH
86162008-11-29 Kenichi Handa <handa@m17n.org>
8617
8cc53f96
KH
8618 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8619 not before accessing it.
8620
b8ebe9dd
KH
8621 * charset.c (Fdefine_charset_internal): After calculating
8622 min_char, max_char, and fastmap, copy the charset structure again.
8623 (encode_char): Fix the previous change.
8624
59bc82c0
SZ
86252008-11-28 Seiji Zenitani <zenitani@mac.com>
8626
8627 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8628
8629 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8630
8631 * nsterm.m (x_set_frame_alpha): New function.
8632
32247e3d
EZ
86332008-11-27 Eli Zaretskii <eliz@gnu.org>
8634
8635 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8636
b003e5ff
JB
86372008-11-27 Juanma Barranquero <lekktu@gmail.com>
8638
8639 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8640 pointer to check_face_name.
8641
708550f5
KH
86422008-11-27 Kenichi Handa <handa@m17n.org>
8643
8644 * category.h (SET_CATEGORY_SET): Call set_category_set.
8645 (set_category_set): Extern it.
8646
8647 * category.c (hash_get_category_set): New function.
8648 (Fmodify_category_entry): Adjusted for the change of
8649 char_table_ref_and_range. Call hash_get_category_set to get a
8650 category set to store in the table.
8651
8652 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8653 Funify_charset.
8654
2ae37cf0 8655 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8656 (DECODE_CHAR): Check if the decoder vector is ready.
8657 (ENCODE_CHAR): Check if the encoder char-table is ready.
8658 (maybe_unify_char): Extern it.
8659
8660 * charset.c (Vchar_unified_charset_table): Delete it.
8661 (inhibit_load_charset_map): New variable.
8662 (temp_charset_work): New variable.
8663 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8664 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8665 New macros.
8666 (load_charset_map): Meaning of control_flag changed. If
8667 inhibit_load_charset_map is nonzero, setup a table in
8668 temp_charset_work.
8669 (load_charset): New argument control_flag.
8670 (map_charset_for_dump): New function.
8671 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8672 map_charset_for_dump.
8673 (Fdefine_charset_internal): If the charset method is MAP, load
8674 mapping tables by calling load_charset.
8675 (Funify_charset): Don't load a mapping table but directly set
8676 Vchar_unify_table.
8677 (maybe_unify_char): New function.
8678 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8679 Handle the case of inhibit_load_charset_map being nonzero.
8680 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8681 Handle the case of inhibit_load_charset_map being nonzero.
8682 (Fclear_charset_maps): Just free temp_charset_work.
8683 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8684 variable.
8685
8686 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8687 change of char_table_ref_and_range.
8688 (char_table_ref_and_range): Change the meaning of argument FROM
8689 and TO. Now the caller must provide initial values for *FROM
8690 and *TO.
8691
8692 * fontset.c (fontset_add): Adjusted for the change of
8693 char_table_ref_and_range.
8694 (fontset_get_font_group): Likewise.
8695 (Ffontset_info): Likewise.
8696
8697 * keymap.c (describe_vector): Adjusted for the change of
8698 char_table_ref_and_range. For char-table, put boundary between
8699 non-ASCII and 8-bit characters.
8700
8701 * print.c (print_object): For bool-vector, delete unnecessary
8702 check of ASCII_BYTE_P.
8703
9196133b
JR
87042008-11-26 Jason Rumney <jasonr@gnu.org>
8705
8706 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8707 leading in font height. (Bug#879)
9196133b 8708
9f688acf
GM
87092008-11-26 Glenn Morris <rgm@gnu.org>
8710
8711 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8712 redefinition with ifdef. (Bug#1383)
8713
90d19aff
AR
87142008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8715
8716 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8717
4ccfa1c0 87182008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8719
8720 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8721 New EmacsView methods.
8722 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8723 Fixes bug #1048,1357,1414.
8724
87252008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8726
8727 Fix bug #1362.
8728 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8729 is not an indexed color.
8730 * nsterm.m (free_indexed_color): Add argument checking.
8731 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8732
e7d5ecb3
CY
87332008-11-24 Chong Yidong <cyd@stupidchicken.com>
8734
8735 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8736 Document confirm-after-completion value for
8737 minibuffer-completion-confirm.
8738
c285743c
JR
87392008-11-24 Jason Rumney <jasonr@gnu.org>
8740
8741 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8742 warning.
8743
b0857706
JR
87442008-11-23 Jason Rumney <jasonr@gnu.org>
8745
8746 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8747 restored before returning.
8748
8749 * w32font.c (check_face_name): New function.
8750 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8751 fonts. (Bug#642)
b0857706 8752
ee50ff07
MR
87532008-11-22 Martin Rudalics <rudalics@gmx.at>
8754
8755 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8756 confirm-nonexistent-file-or-buffer in doc-string.
8757
b8ff72fa
SM
87582008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8759
8760 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8761 Fix copy/paste typo. Add checks.
8762
cee53ed4
KH
87632008-11-21 Kenichi Handa <handa@m17n.org>
8764
8765 * coding.c (detect_coding_iso_2022): Reject invalid composition
8766 sequence.
8767 (DECODE_COMPOSITION_START): If the current source is the last
8768 block, and the current composition doesn't end, regard this
8769 sequence as invalid.
8770 (decode_coding_iso_2022): Handle invalid composition sequence.
8771
f6ef1e65
MR
87722008-11-20 Martin Rudalics <rudalics@gmx.at>
8773
8774 * window.c (coordinates_in_window): Don't return
8775 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8776 line when the window is not the rightmost one. (Bug#1372)
8777
e08b1705
MR
87782008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8779
8780 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8781
ad98e89f
EZ
87822008-11-15 Eli Zaretskii <eliz@gnu.org>
8783
8784 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8785 and bright_bg if noninteractive is non-zero.
8786
fb098a4b
CY
87872008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8788
8789 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8790 x_draw_glyph_string_background.
8791
8792 * w32term.c (x_draw_glyph_string): Likewise.
8793
ce952b6e
CY
87942008-11-15 Chong Yidong <cyd@stupidchicken.com>
8795
8796 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8797 the next glyph string once past the overhang width.
8798
8799 * nsterm.m (ns_draw_glyph_string): Likewise.
8800
8801 * w32term.c (x_draw_glyph_string): Likewise.
8802
26ea7079
CY
88032008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8804
8805 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8806 double file close.
8807
1c33c906
MR
88082008-11-14 Martin Rudalics <rudalics@gmx.at>
8809
8810 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8811 dedicated status of window before attempting to display another
8812 buffer in it.
8813
8fc29035
JB
88142008-11-14 Juanma Barranquero <lekktu@gmail.com>
8815
8816 * msdos.c (Fmsdos_long_file_names):
8817 (syms_of_msdos) <dos-unsupported-char-glyph>:
8818 * dosfns.c (Fint86): Fix typos in docstrings.
8819
55fb4286
EZ
88202008-11-14 Eli Zaretskii <eliz@gnu.org>
8821
8822 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8823
3fda0315
KY
88242008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8825
8826 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8827
7e849c17
CY
88282008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8829
8830 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8831
8832 * frame.h: Negative alpha means "don't touch".
8833
8834 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8835
8836 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8837
b9fd67bd
DN
88382008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8839
8840 * hftctl.c:
8841 * chpdef.h:
8842 * acldef.h: Remove files used only for systems no longer supported.
8843
8844 * Makefile.in: Fix .o alphabetical ordering.
8845 (hftctl.o): Remove dependency, file removed.
8846 (keymap.o, print.o): Depend on charset.h.
8847
d5998e03
KH
88482008-11-10 Kenichi Handa <handa@m17n.org>
8849
2ae37cf0 8850 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8851
be70e183
CY
88522008-11-08 Chong Yidong <cyd@stupidchicken.com>
8853
8854 * dired.c (file_name_completion): If completion_ignore_case is
8855 enabled, ignore case when checking completion-regexp-list.
8856
7cf94eac
EZ
88572008-11-08 Eli Zaretskii <eliz@gnu.org>
8858
8859 * vm-limit.c (get_lim_data): Fix last change.
8860
ee107a89
KH
88612008-11-08 Kenichi Handa <handa@m17n.org>
8862
8863 * character.c (Fget_byte): New function.
8864 (syms_of_character): Defsubr Fget_byte.
8865
5fd15622
CY
88662008-11-07 Chong Yidong <cyd@stupidchicken.com>
8867
8868 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8869 cursor position is valid after scrolling.
8870
13d62fad
JB
88712008-11-06 Juanma Barranquero <lekktu@gmail.com>
8872
8873 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8874
a1dd2936
GM
88752008-11-06 Glenn Morris <rgm@gnu.org>
8876
8877 * xterm.c (handle_one_xevent): Don't let popup menus cause
8878 mouse-autoselect-window related window switching. (Bug#1261)
8879
860cd236
CY
88802008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8881
8882 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8883
653a3150
AS
88842008-11-04 Andreas Schwab <schwab@suse.de>
8885
8886 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8887
870f5cac
CY
88882008-11-03 Chong Yidong <cyd@stupidchicken.com>
8889
8890 * xfns.c (Fx_wm_set_size_hint): New function.
8891
1e02f3cb
MR
88922008-11-03 Martin Rudalics <rudalics@gmx.at>
8893
8894 * textprop.c (Fprevious_single_char_property_change): Return 0
8895 when there's no change in a string. (Bug#1301)
8896
e630dfc6
MR
88972008-11-02 Martin Rudalics <rudalics@gmx.at>
8898
8899 * frame.c (do_switch_frame): New argument NORECORD passed to
8900 Fselect_window.
8901 (Fselect_frame): New argument NORECORD passed to
8902 do_switch_frame.
8903 (Fset_frame_selected_window): New argument NORECORD passed to
8904 Fselect_frame.
8905 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8906 in call of do_switch_frame.
8907 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8908 Handle NORECORD argument in call of Fselect_frame.
8909 * lisp.h (do_switch_frame, Fselect_frame)
8910 (Fset_frame_selected_window): Adjust declarations.
8911 * window.c (select_frame_norecord): New function.
8912 (run_window_configuration_change_hook): Use it and call
8913 Fselect_frame with NORECORD set.
8914 (Fselect_window): Pass NORECORD to Fselect_frame.
8915 (Fset_window_configuration): Handle NORECORD argument in call of
8916 do_switch_frame.
8917 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8918 Fset_frame_selected_window.
8919 * keyboard.c (command_loop_1): Handle NORECORD in call of
8920 Fselect_frame (currently ifdefd).
8921
9020b223
GM
89222008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8923
8924 * emacs.c (USAGE2): Untabify.
8925
793ffee8
SM
89262008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8927
8928 * composite.c (fill_gstring_header): Fix copy/paste typo.
8929
ab6d1131
MR
89302008-10-31 Martin Rudalics <rudalics@gmx.at>
8931
8932 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8933 (Fother_window): Rename argument and rewrite doc-string.
8934 (select_window_norecord): Fix return value. (Bug#1276)
8935
601a9cf1
JB
89362008-10-30 Juanma Barranquero <lekktu@gmail.com>
8937
8938 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8939 new frames overriding foreground for tooltips. Based on similar patch
8940 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8941
813b0652
CY
89422008-10-29 Chong Yidong <cyd@stupidchicken.com>
8943
8944 * emacs.c (Fdaemon_initialized): Initialize nfd.
8945
4414f58f
MR
89462008-10-29 Martin Rudalics <rudalics@gmx.at>
8947
8948 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8949 (Fwindow_text_height): Clarify doc-strings.
8950 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8951 doc-string of window-scroll-functions.
8952
ecdcaa09
RS
89532008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8954
8955 * category.c (syms_of_category): Fix typo in docstring.
8956
23fe745a
JB
89572008-10-28 Juanma Barranquero <lekktu@gmail.com>
8958
8959 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8960 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8961 Fix typos in docstrings.
8962
ff808935
DN
89632008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8964
8965 * emacs.c (daemon_pipe): Make non-static.
8966 (IS_DAEMON): Move definition ...
8967 * lisp.h (IS_DAEMON): ... here.
8968 (daemon_pipe): Declare.
8969 (is_daemon): Remove.
8970 * dispnew.c (init_display): Use IS_DAEMON.
8971
fc012771
SM
89722008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8973
8974 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8975 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8976
8977 * emacs.c (is_daemon): Remove.
8978 (main): Don't set is_daemon.
8979 (IS_DAEMON): New macro.
8980 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8981 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8982 parent exits.
8983 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8984
d8bdbe6f
CY
89852008-10-27 Chong Yidong <cyd@stupidchicken.com>
8986
d1a072bf
CY
8987 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8988 over-sized glyph, draw it with the default glyph width.
8989
e2e325aa
CY
8990 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8991 glyph, draw it with the default glyph width.
8992
8993 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8994 glyph, draw it with the default glyph width.
8995
d8bdbe6f
CY
8996 * xdisp.c (try_scrolling): When computing the distance from the
8997 scroll margin to PT, try moving some distance past the window
8998 bottom before giving up.
8999
7bfac547
MR
90002008-10-27 Martin Rudalics <rudalics@gmx.at>
9001
9002 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9003 (Fset_window_buffer): Explain in doc-string that a window can be
9004 "strongly" dedicated to its buffer.
9005
4ff029f6
DN
90062008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9007
9008 * emacs.c (daemon_name): New variable.
9009 (main): Deal with --daemon=SERVER_NAME.
9010 (Fdaemonp): Return a name if one was passed to --daemon.
9011
5790ef40
DN
90122008-10-26 Romain Francoise <romain@orebokech.com>
9013
f9bd0df9 9014 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9015 (main): Create a pipe before forking, make the parent exit only after
9016 the child has closed its end of the pipe. Move closing the
9017 descriptors ...
9018 (Fdaemon_initialized): ... here. New function.
9019
f5385255
SM
90202008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9021
4d632321
SM
9022 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9023 the previous unoptimized table.
9024
f5385255
SM
9025 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9026 the distinction between non-nil and non-t value of `dedicated'.
9027
6c56a0f3
CY
90282008-10-25 Chong Yidong <cyd@stupidchicken.com>
9029
9030 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9031 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9032
fec89261
MR
90332008-10-25 Martin Rudalics <rudalics@gmx.at>
9034
9035 * window.c (Fget_buffer_window, Fdelete_windows_on)
9036 (Freplace_buffer_in_windows): Make buffer argument optional and
9037 rename to buffer_or_name.
9038
34fcddd0
CY
90392008-10-24 Chong Yidong <cyd@stupidchicken.com>
9040
f5385255
SM
9041 * xdisp.c (handle_single_display_spec, handle_display_prop):
9042 Undo 2005-05-16 change.
34fcddd0
CY
9043 (handle_stop): Pop iterator if it's loaded with an empty string.
9044 (get_overlay_strings_1): Don't save iterator if it's loaded with
9045 an empty string (bug#1201).
9046
064766f2
KH
90472008-10-24 Kenichi Handa <handa@m17n.org>
9048
9049 * ftfont.c (ftfont_otf_features): Fix previous change.
9050 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9051 calling ftfont_otf_features.
9052
f9bd0df9 90532008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9054
9055 * font.c (font_match_p): Fix for the case that a vector of
9056 characters is in script-representative-chars.
9057
1dae9197
MA
90582008-10-24 Michael Albinus <michael.albinus@gmx.de>
9059
9060 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9061 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9062 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9063 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9064 macro. (Bug#1186)
1dae9197 9065
f9bd0df9 90662008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9067
9068 * s/sol2-10.h: New file.
9069
878a4584
JB
90702008-10-23 Juanma Barranquero <lekktu@gmail.com>
9071
9072 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9073 poor beast has survived 9+ years and the jump from xterm.c!).
9074
cd265ca6
MR
90752008-10-23 Martin Rudalics <rudalics@gmx.at>
9076
9077 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9078 Reword doc-string.
f5385255 9079 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9080
472a4dc9
JB
90812008-10-23 Juanma Barranquero <lekktu@gmail.com>
9082
9083 * character.c (syms_of_character) <script-representative-chars>:
9084 <unicode-category-table>: Doc fixes.
9085
159bd5a2
NF
90862008-10-23 Noah Friedman <friedman@splode.com>
9087
9088 * coding.c (make_conversion_work_buffer): Check that
9089 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9090 Fget_buffer_create.
9091
49f9c344
KH
90922008-10-23 Kenichi Handa <handa@m17n.org>
9093
9094 * font.c (font_add_log): Check the values of extra properties.
9095
12bb3111
MR
90962008-10-22 Martin Rudalics <rudalics@gmx.at>
9097
9098 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9099 Reword doc-string.
9100 (Fset_window_parameter): Use NILP.
9101 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9102 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9103
bbeb4e99
JB
91042008-10-22 Juanma Barranquero <lekktu@gmail.com>
9105
9106 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9107
91082008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9109
9110 * nsfns.m (ns_appkit_version): New function.
9111 (x-server-version): Use it.
9112 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9113 (x-server-vendor): Don't check_ns().
9114
9115 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9116
a9b555d3
JB
91172008-10-22 Juanma Barranquero <lekktu@gmail.com>
9118
9119 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9120 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9121
4626499f
KH
91222008-10-22 Kenichi Handa <handa@m17n.org>
9123
e3681952
KH
9124 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9125 scripts.
9126
4626499f
KH
9127 * category.c (word_boundary_p): Check scripts instead of charset.
9128 Handle nil value in word-separating-categories and
9129 word-combining-categories.
9130 (syms_of_category): Fix docstrings of word-separating-categories
9131 and word-combining-categories.
9132
1560f91a
EZ
91332008-10-21 Eli Zaretskii <eliz@gnu.org>
9134
9135 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9136 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9137
f4668441
MR
91382008-10-21 Martin Rudalics <rudalics@gmx.at>
9139
9140 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9141 Rename arg "buffer" to "buffer_or_name".
9142 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9143 it optional.
9144 (no_switch_window): Remove since the return value is not used.
a9b555d3 9145 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9146 Consider window as dedicated when Fwindow_dedicated_p returns a
9147 non-nil value.
9148 * lisp.h: Remove prototype for no_switch_window.
9149
fd75ddb2
JD
91502008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9151
9152 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9153 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9154
07295713
KH
91552008-10-21 Kenichi Handa <handa@m17n.org>
9156
9157 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9158 check Vlatin_extra_code_table.
9159
712adc82
EZ
91602008-10-20 Eli Zaretskii <eliz@gnu.org>
9161
9162 * fileio.c (Fset_file_modes): Doc fix.
9163
f549eb0b
MA
91642008-10-19 Michael Albinus <michael.albinus@gmx.de>
9165
9166 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9167 in arrays.
9168
aac0c6e3
MR
91692008-10-19 Martin Rudalics <rudalics@gmx.at>
9170
9171 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9172 Mention kill-buffer in doc-string.
9173 (Fset_window_buffer): Reinsert tem check removed in last commit.
9174 (Fenlarge_window, Fshrink_window): Have argument names and
9175 doc-string follow Elisp manual more closely.
9176
91772008-10-18 Eli Zaretskii <eliz@gnu.org>
9178
9179 * fileio.c (Fset_file_modes): Doc fix.
9180
91812008-10-18 Martin Rudalics <rudalics@gmx.at>
9182
9183 * window.c (Fwindow_width, Fset_window_start)
9184 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9185 (Fdelete_windows_on, Freplace_buffer_in_windows):
9186 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9187 (Fwindow_dedicated_p): Make window argument optional.
9188 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9189 (Fset_window_buffer): Respect any non-nil dedicated value for
9190 window. Rename "buffer" argument to "buffer_or_name".
9191
91922008-10-18 Ulrich Mueller <ulm@gentoo.org>
9193
9194 * m/sh3.h: New file, machine description for SuperH.
9195
91962008-10-17 Martin Rudalics <rudalics@gmx.at>
9197
9198 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9199
92002008-10-17 Kenichi Handa <handa@m17n.org>
9201
9202 * ftfont.c (ftfont_otf_features): Fix indexing
9203 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9204
92052008-10-16 Magnus Henoch <mange@freemail.hu>
9206
9207 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9208 (Fdbus_call_method_asynchronously): Ditto.
9209 This change makes C-h f display the argument list.
9210
92112008-10-16 Chong Yidong <cyd@stupidchicken.com>
9212
9213 * fileio.c (Fexpand_file_name): Doc fix.
9214
9215 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9216 of :foreground and :background equivalent to unspecified (20.x
9217 compatibility).
9218
92192008-10-15 Eli Zaretskii <eliz@gnu.org>
9220
9221 * buffer.c (syms_of_buffer): Doc fix.
9222
92232008-10-14 Kenichi Handa <handa@m17n.org>
9224
9225 * font.c (font_clear_prop): When clearing font width, clear the
9226 average width field too.
9227
92282008-10-12 Andreas Schwab <schwab@suse.de>
9229
9230 * ftfont.c (ftfont_shape_by_flt): Make static.
9231 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9232
9233 * font.c: Don't include <m17n-flt.h>.
9234
92352008-10-10 Eli Zaretskii <eliz@gnu.org>
9236
9237 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9238
92392008-10-09 Eli Zaretskii <eliz@gnu.org>
9240
9241 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9242 away code.
9243
92442008-10-09 Chong Yidong <cyd@stupidchicken.com>
9245
9246 * dispnew.c (update_text_area): Avoid looping due to large glyph
9247 overhangs (bug#1070).
9248
92492008-10-09 Kenichi Handa <handa@m17n.org>
9250
9251 * fontset.c (face_for_char): If face->fontset is negative, just
9252 return ascii_face.
9253
f5385255
SM
9254 * font.c (font_delete_unmatched): Fix previous change.
9255 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9256
92572008-10-09 Martin Rudalics <rudalics@gmx.at>
9258
9259 * frame.c (Fraise_frame): On text-only terminals select frame in
9260 order to make it visible. (Bug#1061)
9261
92622008-10-08 Chong Yidong <cyd@stupidchicken.com>
9263
9264 * fontset.c (fontset_find_font): Check frame validity.
9265
92662008-10-07 Chong Yidong <cyd@stupidchicken.com>
9267
a9b555d3 9268 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9269 (xg_display_close): Allow Emacs to close all displays (bug#985).
9270
92712008-10-06 Andreas Schwab <schwab@suse.de>
9272
f5385255 9273 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9274
92752008-10-06 Chong Yidong <cyd@stupidchicken.com>
9276
f5385255 9277 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9278
a9b555d3 9279 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9280
9281 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9282 during initialization.
9283
92842008-10-04 Eli Zaretskii <eliz@gnu.org>
9285
9286 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9287 whole thing on MSDOS frames as well as on a TTY.
9288
9289 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9290 well as for TTY.
9291 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9292 well as on a TTY.
9293
9294 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9295 as well as for TTY.
9296
9297 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9298
9299 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9300 MSDOS frames as well.
9301
93022008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9303
9304 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9305 correct arguments.
b71ac3dd 9306 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9307
93082008-10-03 Glenn Morris <rgm@gnu.org>
9309
9310 * emacs.c (USAGE1): Add --daemon.
9311
93122008-10-02 Eli Zaretskii <eliz@gnu.org>
9313
9314 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9315 100, so it's in percents as advertised.
9316
93172008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9318
9319 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9320 (ns_output.current_cursor, ns_output.desired_cursor)
9321 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9322 (FRAME_NEW_CURSOR_COLOR): Remove.
9323
9324 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9325 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9326 enumeration (HOLLOW_BOX_CURSOR, etc.).
9327
9328 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9329 (draw_window_cursor): Simplify code.
f5385255
SM
9330 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9331 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9332 updates manually.
a9b555d3
JB
9333 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9334 Use core Emacs cursor types.
aac0c6e3 9335
b8ff72fa 9336 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9337
93382008-10-02 Martin Rudalics <rudalics@gmx.at>
9339
9340 * process.c (Faccept_process_output): Fix doc-string.
9341
93422008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9343
9344 * gmalloc.c (__sbrk): Also define for uClibc.
9345
9346 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9347 for uClibc.
9348
93492008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9350
9351 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9352 styles.
9353 (nsfont_open): Reenable the cache.
9354
93552008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9356
9357 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9358 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9359
93602008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9361
9362 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9363 a suspended terminal.
9364
93652008-09-30 Michael Albinus <michael.albinus@gmx.de>
9366
9367 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9368
93692008-09-30 Eli Zaretskii <eliz@gnu.org>
9370
9371 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9372
93732008-09-30 Chong Yidong <cyd@stupidchicken.com>
9374
9375 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9376 in a continued line coincides with a line beginning.
9377
93782008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9379
9380 * nsfont.m (nsfont_trait_distance): Fix bug.
9381 (nsfont_list): Return a list rather than a vector (syncs with Handa
9382 changes of 2008-05-14).
9383 (nsfont_open): Improve logging.
9384
93852008-09-29 Andreas Schwab <schwab@suse.de>
9386
9387 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9388
93892008-09-28 Martin Rudalics <rudalics@gmx.at>
9390
9391 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9392 name as char-resolve-modifiers.
9393 Reported by: Markus Triska <markus.triska@gmx.at>
9394
93952008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9396
9397 * dispnew.c (init_display): Return earlier when running as a daemon.
9398
93992008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9400
9401 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9402
94032008-09-27 Eli Zaretskii <eliz@gnu.org>
9404
9405 * composite.c (Fcomposition_get_gstring)
9406 (Fcompose_region_internal, Fcompose_string_internal)
9407 (Ffind_composition_internal): Doc fix.
9408 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9409 (syms_of_composite) <auto-composition-function>: Doc fix.
9410 (syms_of_composite) <composition-function-table>: Doc fix.
9411
94122008-09-25 Chong Yidong <cyd@stupidchicken.com>
9413
9414 * search.c (wordify): New argument for lax word-ends.
9415 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9416
94172008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9418
9419 * lisp.h (is_daemon): Declare.
9420 * dispnew.c (init_display): Do not try to initialize the terminal
9421 when running as a daemon.
9422
94232008-09-22 Chong Yidong <cyd@stupidchicken.com>
9424
9425 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9426 x_display_pixel_height.
9427
94282008-09-22 Martin Rudalics <rudalics@gmx.at>
9429
9430 * undo.c (record_point): Don't call Fundo_boundary for first
9431 change. (Bug#731)
9432
94332008-09-22 Juanma Barranquero <lekktu@gmail.com>
9434
9435 * emacs.c (Fdaemonp): Doc fix.
9436
94372008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9438
9439 * emacs.c (main): Place #ifdef in the proper place.
9440
94412008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9442
9443 * emacs.c (standard_args): Add --daemon.
9444 (main): Disconnect from the terminal when --daemon is passed.
9445 (is_daemon): New variable.
9446 (Fdaemonp): New function.
9447 (syms_of_emacs): Defsubr it.
9448
94492008-09-20 Chong Yidong <cyd@stupidchicken.com>
9450
9451 * xdisp.c (get_next_display_element): Handle string display
9452 correctly when checking for the end of a box run.
9453
94542008-09-20 Glenn Morris <rgm@gnu.org>
9455
9456 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9457 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9458 (Frename_file): Avoid copying to trash if a rename involves
9459 a delete. (Bug#964).
9460
94612008-09-20 Eli Zaretskii <eliz@gnu.org>
9462
9463 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9464 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9465 frames as well as termcap frames.
9466 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9467 get_named_tty.
9468
94692008-09-19 Eli Zaretskii <eliz@gnu.org>
9470
9471 * process.c (procfs_system_process_attributes): Fix cmdline in
9472 case /proc/PID/cmdline is empty.
9473
9474 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9475 x_display_pixel_height.
9476
94772008-09-19 Juanma Barranquero <lekktu@gmail.com>
9478
9479 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9480
9481 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9482 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9483
94842008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9485
9486 * dispextern.h (struct it): Move line_wrap away from the middle of
9487 bitfields. Move voffset in struct iterator_stack_entry after the
9488 bitfields. Move tab_width near after another short.
9489
94902008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9491
9492 * frame.h (struct frame): Move alpha from the middle of bitfields.
9493
9494 * window.h (struct window): Move frozen_window_start_p after the
9495 rest of the bitfields to reduce padding.
9496
94972008-09-18 Chong Yidong <cyd@stupidchicken.com>
9498
9499 * xterm.h (x_display_info): Remove `height' and `width' members.
9500
9501 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9502
9503 * w32term.h (w32_display_info): Remove `height', `width',
9504 `height_in', and `width_in' members.
9505
b8ff72fa
SM
9506 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9507 New functions.
aac0c6e3
MR
9508 (x_calc_absolute_position): Use them.
9509 (x_term_init): Omit removed `height' and `width' members.
9510
b8ff72fa
SM
9511 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9512 New functions.
aac0c6e3
MR
9513 (w32_read_socket, x_calc_absolute_position): Use them.
9514 (w32_initialize_display_info, w32_term_init): Omit removed members
9515 of w32_display_info.
9516
b8ff72fa
SM
9517 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9518 New functions.
9519 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9520
b8ff72fa
SM
9521 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9522 New functions.
aac0c6e3
MR
9523 (x_calc_absolute_position): Use them.
9524 (x_term_init): Omit removed `height' and `width' members.
9525
9526 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9527 (compute_tip_xy):
9528 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9529 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9530 x_display_pixel_width.
9531
95322008-09-18 Kenichi Handa <handa@m17n.org>
9533
9534 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9535 (composition_compute_stop_pos): Fix handling of static composition.
9536 (Fcomposition_get_gstring): Check FROM and TO at first.
9537
95382008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9539
46e722a9 9540 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9541 mixup (YAILOM).
9542
95432008-09-17 Chong Yidong <cyd@stupidchicken.com>
9544
9545 * indent.c (Fvertical_motion): Use position reported by iterator
9546 instead of PT for determining screen motion (bug#943).
9547
95482008-09-17 Romain Francoise <romain@orebokech.com>
9549
9550 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9551
95522008-09-17 Kenichi Handa <handa@m17n.org>
9553
9554 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9555
9556 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9557 if necessary.
9558
95592008-09-16 Kenichi Handa <handa@m17n.org>
9560
9561 * coding.c (make_conversion_work_buffer): Avoid calling
9562 Fget_buffer_create if it is not necessary.
9563
95642008-09-15 Martin Rudalics <rudalics@gmx.at>
9565
9566 * window.c (Fselect_window): Don't update window_select_count and
9567 use_time when norecord is not nil.
9568
95692008-09-14 Kenichi Handa <handa@m17n.org>
9570
9571 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9572 specpdl_ptr.
9573
95742008-09-12 Kenichi Handa <handa@m17n.org>
9575
9576 * indent.c (scan_for_column): Don't handle automatic composition
9577 if the current buffer is not associated with a window.
9578
9579 * composite.c (composition_reseat_it): If the current buffer is
9580 not associated with a window, ignore the automatic composition.
9581 (find_automatic_composition): Likewise.
9582
95832008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9584
9585 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9586 (Fgpm_mouse_stop): Use it.
9587 * termhooks.h (close_gpm): Declare.
9588 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9589 connection if Gpm_GetEvent fails.
9590
9591 * window.c (set_window_buffer): Always preserve current-buffer.
9592
95932008-09-12 Glenn Morris <rgm@gnu.org>
9594
9595 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9596
95972008-09-11 Glenn Morris <rgm@gnu.org>
9598
9599 * charset.c (charset-map-path): Doc fix.
9600
96012008-09-10 Kenichi Handa <handa@m17n.org>
9602
9603 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9604
9605 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9606 compose a grapheme cluster with the preceding base glyph.
9607
9608 * composite.c (composition_compute_stop_pos): Fix previous change.
9609 Reset cmp_it->id to -1 at first.
9610
96112008-09-10 Glenn Morris <rgm@gnu.org>
9612
9613 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9614
96152008-09-09 Chong Yidong <cyd@stupidchicken.com>
9616
9617 * keyboard.c (read_key_sequence): Reapply translation maps when
9618 switching keyboards.
9619
96202008-09-09 Kenichi Handa <handa@m17n.org>
9621
9622 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9623 characters.
9624
9625 * composite.c (FORWARD_CHAR): Fix calculation
9626 of (POSITION).pos_byte.
9627 (composition_compute_stop_pos): Limit the search of composition to
9628 at most 500 characters ahead. If we reach the limit or find a
9629 newline, set cmp_it->ch to -2 and return 0.
9630 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9631
96322008-09-08 Kenichi Handa <handa@m17n.org>
9633
9634 * indent.c (Fvertical_motion): Be sure to set
9635 it_overshoot_expected if it.cmp_it.id is non-negative.
9636
96372008-09-07 Andreas Schwab <schwab@suse.de>
9638
9639 * callproc.c (Fcall_process): Don't hold references to string data
9640 across garbage collection. Move initialisation of new_argv down
9641 to avoid compiler bug.
9642
96432008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9644
9645 * process.c (Fsystem_process_attributes): Doc fix.
9646
96472008-09-07 Chong Yidong <cyd@stupidchicken.com>
9648
9649 * callproc.c (Fcall_process): Canonicalize current directory name.
9650
9651 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9652 iterator advances to the next line if the current line ends in a
9653 continued tab.
9654
96552008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9656
9657 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9658 member to point to cmp_from.
9659
9660 * xdisp.c: Doc fix for references to gidx data member.
9661
96622008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9663
9664 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9665
96662008-09-07 Kenichi Handa <handa@m17n.org>
9667
9668 * composite.c (FORWARD_CHAR): Check STOP after
9669 incrementing (POSITION).pos.
9670
96712008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9672
9673 * process.c (Fsystem_process_attributes): Doc fix.
9674
96752008-09-06 Chong Yidong <cyd@stupidchicken.com>
9676
9677 * keyboard.c (Ftop_level): Doc fix.
9678
96792008-09-06 Eli Zaretskii <eliz@gnu.org>
9680
9681 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9682 minibuffer, don't let lower part of menu invade the echo area.
9683
9684 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9685 "char *q" to access menu text and advance through it. Revert the
9686 change that displayed ">" instead of ASCII character 0x10.
9687
96882008-09-05 Eli Zaretskii <eliz@gnu.org>
9689
9690 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9691 toggle boxes and radio buttons on MS-DOS as well.
9692
96932008-09-05 Kenichi Handa <handa@m17n.org>
9694
9695 * composite.c (autocmp_chars): Check lookback count.
9696 (composition_compute_stop_pos): Set cmp_it->lookback.
9697 (composition_reseat_it): Check lookback count.
9698 (struct position_record): New struct.
9699 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9700 (find_automatic_composition): New function.
9701 (composition_adjust_point): Use find_automatic_composition.
9702
9703 * dispextern.h (struct composition_it): New member lookback.
9704
97052008-09-02 Chong Yidong <cyd@stupidchicken.com>
9706
9707 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9708 if moving by a single line.
9709
97102008-09-02 Andreas Schwab <schwab@suse.de>
9711
9712 * xterm.c (x_delete_display): Fix merge error.
9713
9714 * fileio.c (Fexpand_file_name): Remove unused variables.
9715
97162008-09-02 Eli Zaretskii <eliz@gnu.org>
9717
9718 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9719 storage on all platforms, not just on DOS_NT.
9720
97212008-09-02 Jason Rumney <jasonr@gnu.org>
9722
b8ff72fa
SM
9723 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9724 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9725
97262008-09-01 Chong Yidong <cyd@stupidchicken.com>
9727
9728 * xfaces.c (Finternal_set_alternative_font_family_alist)
9729 (Finternal_set_alternative_font_registry_alist): Properly copy
9730 entire alist structure.
9731
97322008-09-01 Kenichi Handa <handa@m17n.org>
9733
d66c0241 9734 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9735 representative chars of the script is a vector.
d66c0241
JB
9736 (ftfont_list): Handle the case where the representative chars of
9737 the script is a vector.
aac0c6e3
MR
9738
9739 * character.c (syms_of_character): Docstring of
9740 script-representative-chars fixed.
9741
97422008-08-31 Eli Zaretskii <eliz@gnu.org>
9743
9744 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9745 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9746 the menu. Allocate larger buffer for `text', to account for
9747 possible ^C characters.
9748
97492008-08-31 Martin Rudalics <rudalics@gmx.at>
9750
9751 * xdisp.c (prepare_menu_bars): Don't call
9752 Vwindow_size_change_functions with arg Qt.
9753
97542008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9755
9756 * font.h (font_range):
9757 * fileio.c (report_file_error):
46e722a9
SM
9758 * composite.c (composition_update_it): Yet another int/Lisp_Object
9759 mixup (YAILOM).
aac0c6e3
MR
9760
97612008-08-30 Glenn Morris <rgm@gnu.org>
9762
9763 * data.c (Fmake_variable_frame_local): Doc fix.
9764
9765 * frame.c (Fmodify_frame_parameters): Doc fix.
9766
97672008-08-30 Eli Zaretskii <eliz@gnu.org>
9768
9769 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9770 needed by GetTokenInformation.
9771 (w32_system_process_attributes): Check return values of all system
9772 APIs.
9773
9774 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9775 only when the state changes.
9776 (IT_update_begin, IT_update_end): Add termscript trace.
9777
9778 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9779 clipboard is unavailable. Set dst to NULL if it doesn't point to
9780 malloc'ed data.
9781 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9782 passing random values to xfree.
9783
9784 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9785 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9786
97872008-08-29 Jason Rumney <jasonr@gnu.org>
9788
9789 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9790
97912008-08-29 Eli Zaretskii <eliz@gnu.org>
9792
9793 * composite.c (fill_gstring_body): Avoid compiler warnings.
9794
9795 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9796 LGLYPH_SET_CODE to avoid compiler warnings.
9797
2ae37cf0 9798 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9799
9800 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9801
9802 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9803 LGLYPH_SET_CODE.
9804
98052008-08-29 Kenichi Handa <handa@m17n.org>
9806
9807 * fileio.c (report_file_error): Don't downcase the first character
9808 of errstring if it is still unibyte.
9809
98102008-08-29 Kenichi Handa <handa@m17n.org>
9811
9812 These changes are to re-implement the automatic composition so
9813 that it doesn't use text properties.
9814
9815 * Makefile.in (ftfont.o): Depend on composite.h.
9816 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9817
9818 * character.h (Vunicode_category_table): Extern it.
9819
9820 * character.c (Vunicode_category_table): New variable.
9821 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9822
9823 * chartab.c (optimize_sub_char_table): Perform more greedy
9824 optimization.
9825
b8ff72fa
SM
9826 * composite.h (enum composition_method):
9827 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9828 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9829 (Vcomposition_function_table): Extern it.
9830 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9831 (composition_gstring_put_cache, composition_gstring_from_id)
9832 (composition_gstring_p, composition_gstring_width)
9833 (composition_compute_stop_pos, composition_reseat_it)
9834 (composition_update_it, composition_adjust_point): Extern them.
9835 (Fcomposition_get_gstring): EXFUN it.
9836
d66c0241 9837 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9838 (Vcomposition_function_table)
9839 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9840 (gstring_hash_table, gstring_work, gstring_work_headers):
9841 New variables.
aac0c6e3
MR
9842 (gstring_lookup_cache, composition_gstring_put_cache)
9843 (composition_gstring_from_id, composition_gstring_p)
9844 (composition_gstring_width, fill_gstring_header)
9845 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9846 (composition_reseat_it, composition_update_it)
b8ff72fa 9847 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9848 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9849 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9850 Defsubr composition_get_gstring.
aac0c6e3
MR
9851
9852 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9853 cmp_id.
9854 (struct glyph_string): Delete the member gidx. New members
9855 cmp_id, cmp_from, and cmp_to.
9856 (enum it_method): Delete GET_FROM_COMPOSITION.
9857 (struct composition_it): New struct.
9858 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9859 Delete c, len, cmp_id, cmp_len in u.comp.
9860
9861 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9862 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9863 (enum lglyph_indices): Likewise.
b8ff72fa 9864 (font_range): Adjust extern.
aac0c6e3
MR
9865 (font_fill_lglyph_metrics): Extern it.
9866
9867 * font.c (QCf): New variable.
9868 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9869 (font_prepare_composition): Delete this function.
9870 (font_range): Type and arguments changed.
9871 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9872 (font_fill_lglyph_metrics): New function.
b8ff72fa 9873 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9874 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9875 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9876 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9877
9878 * fontset.h (font_for_char): Extern it.
9879
9880 * fontset.c (font_for_char): New function.
9881
9882 * ftfont.c: Include composite.h.
9883 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9884 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9885
9886 * indent.c: Include composite.h and dispextern.h.
9887 (check_composition): Delete this function.
9888 (scan_for_column): Handle composition by
9889 composition_compute_stop_pos, composition_reseat_it, and
9890 composition_update_it.
9891 (compute_motion): Likewise.
9892 (Fvertical_motion): Fix checking of composition.
9893
9894 * keyboard.c (adjust_point_for_property): Check composition by
9895 composition_adjust_point.
9896
b8ff72fa 9897 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9898 struct glyph_string.
9899
b8ff72fa
SM
9900 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9901 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9902 struct glyph.
9903 (produce_composite_glyph): Likewise.
9904
b8ff72fa
SM
9905 * w32term.c (x_draw_composite_glyph_string_foreground):
9906 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9907 (x_draw_glyph_string): Likewise.
9908
9909 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9910 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9911
9912 * xdisp.c: Include font.h.
9913 (it_props): Delete the entry for Qauto_composed.
9914 (init_iterator): Initialize it->cmp_it.id to -1.
9915 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9916 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9917 (handle_auto_composed_prop): Delete it.
9918 (handle_composition_prop): Handle only static composition.
9919 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9920 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9921 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9922 (pop_it): Likewise.
9923 (get_next_element): Delete next_element_from_composition.
9924 (CHAR_COMPOSED_P): New macro.
9925 (get_next_display_element): For automatic composition, get a face
9926 from the font in the glyph-string.
9927 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9928 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9929 (next_element_from_string): Check if the character at the current
9930 position is composed by CHAR_COMPOSED_P.
9931 (next_element_from_buffer): Likewise.
d66c0241
JB
9932 (next_element_from_composition): Adjust for the change of struct it.
9933 Update it->cmp_it.
b8ff72fa
SM
9934 (dump_glyph): Adjust for the change of struct glyph.
9935 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9936 it and struct glyph. Don't handle automatic composition here.
9937 (fill_gstring_glyph_string): New function.
9938 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9939 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9940 (BUILD_GSTRING_GLYPH_STRING): New macro.
9941 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9942 automatic composition.
b8ff72fa 9943 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9944 struct glyph.
b8ff72fa 9945 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9946
b8ff72fa 9947 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9948 the change of struct glyph_string.
9949 (x_draw_glyph_string): Likewise.
9950
99512008-08-29 Glenn Morris <rgm@gnu.org>
9952
9953 * buffer.c (word-wrap): Doc fix.
9954 * xdisp.c (truncate-partial-width-windows): Doc fix.
9955 Increase default to 50.
9956
99572008-08-29 Chong Yidong <cyd@stupidchicken.com>
9958
9959 * xdisp.c (update_tool_bar_unwind): New function.
9960 (update_tool_bar): Temporarily set selected frame before building
9961 tool-bar items.
9962
99632008-08-28 Michael Albinus <michael.albinus@gmx.de>
9964
9965 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9966 snprintf, respectively.
9967 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9968
99692008-08-28 Chong Yidong <cyd@stupidchicken.com>
9970
9971 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9972 LDFLAGS to GNUstep CC invocation.
9973
99742008-08-27 Chong Yidong <cyd@stupidchicken.com>
9975
9976 * indent.c (Fvertical_motion): Revert last change. Handle the
9977 general case where we are moving forward, and PT spans multiple
9978 screen lines.
9979
9980 * eval.c (find_handler_clause): Temporarily increase
9981 max-lisp-eval-depth while printing the backtrace buffer, to
9982 guarantee that help-mode code can run.
9983
99842008-08-27 Eli Zaretskii <eliz@gnu.org>
9985
9986 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9987 colors under -rv.
9988 (IT_set_frame_parameters): Don't swap foreground and background
9989 colors if `(reverse . t)' is present in the frame properties.
9990 (internal_terminal_init): Call init_frame_faces only for the
9991 initial frame.
9992
99932008-08-27 Andreas Schwab <schwab@suse.de>
9994
9995 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9996
99972008-08-27 Andreas Schwab <schwab@suse.de>
9998
9999 * search.c (search_buffer): Set char_base to zero only at the end.
10000
100012008-08-27 Kenichi Handa <handa@m17n.org>
10002
b8ff72fa 10003 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10004
100052008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10006
10007 * xterm.c (x_term_init): Temporarily hide the partially
10008 initialized terminal while calling vendor-specific-keysyms.
10009
100102008-08-26 Eli Zaretskii <eliz@gnu.org>
10011
10012 * msdos.c (internal_terminal_init): Most initializations done only
10013 once, especially initial_screen_colors[] and termscript open.
10014
100152008-08-26 Chong Yidong <cyd@stupidchicken.com>
10016
10017 * eval.c (Fcondition_case): Doc fix.
10018
10019 * widgetprv.h (EmacsFramePart): Change font member to the new font
10020 struct.
10021
10022 * widget.c: Include character.h and font.h for XSETFONT.
10023 (setup_frame_gcs): Compute X font id from font struct, just once.
10024
100252008-08-26 Eli Zaretskii <eliz@gnu.org>
10026
10027 * term.c (get_named_tty): Fix last change.
10028
100292008-08-26 Chong Yidong <cyd@stupidchicken.com>
10030
10031 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10032 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10033
100342008-08-25 Eli Zaretskii <eliz@gnu.org>
10035
10036 * frame.c (do_switch_frame): Mark previously displayed frame as
10037 obscured for FRAME_MSDOS_P frames as well.
10038
100392008-08-24 Eli Zaretskii <eliz@gnu.org>
10040
10041 * frame.c (make_terminal_frame): Initialize f->terminal,
10042 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10043 Set the top frame to newly created frame.
10044 (Fmake_terminal_frame): Reuse the_only_display_info.
10045
10046 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10047 estimating available memory.
10048
b97439ce 100492008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10050
10051 * nsterm.m (ns_draw_window_cursor): Don't call
10052 NSDisableScreenUpdates and NSEnableScreenUpdates on
10053 non-NS_IMPL_COCOA systems.
10054
100552008-08-23 Andreas Schwab <schwab@suse.de>
10056
10057 * process.c (procfs_system_process_attributes): Fix use of
10058 uninitialized variables.
10059
100602008-08-23 Eli Zaretskii <eliz@gnu.org>
10061
10062 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10063
10064 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10065 calling tty-set-up-initial-frame-faces.
10066
b8ff72fa
SM
10067 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10068 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10069
10070 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10071 addition to output_termcap.
10072
10073 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10074
10075 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10076 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10077 highlight.
10078
10079 * process.c [!subprocesses]: Define QCname.
10080 (syms_of_process): Intern and staticpro it.
10081
10082 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10083 Adjust for changes in encoding/decoding routines.
10084 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10085 encode_coding and decode_coding.
10086
b8ff72fa 10087 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10088
10089 * dosfns.c: Include frame.h before termhooks.h.
10090 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10091 variable termscript.
10092
10093 * s/msdos.h (USER_FULL_NAME): Define.
10094 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10095
10096 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10097 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10098 pw->pw_gecos.
10099
10100 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10101 SELECTED_FRAME as additional (1st) argument.
10102 (tty_read_avail_input): Handle output_msdos_raw in
10103 addition to output_termcap.
10104
10105 * msdos.c: Include frame.h before termhooks.h.
10106 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10107 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10108 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10109 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10110 (IT_set_terminal_modes, IT_reset_terminal_modes)
10111 (IT_set_frame_parameters): Use tty->termscript instead of a global
10112 variable termscript.
10113 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10114 global variable terminal_coding. Don't refer to
10115 Vnonascii_translation_table.
10116 (internal_terminal_init): Set Vwindow_system in current_kboard.
10117 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10118 Announce date and time of session start, if termscript is open.
10119 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10120 term.c:init_tty). Open termscript only of not already open.
10121 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10122 here instead of dos_ttraw. Don't initialize display if this is an
10123 initial tty. Don't set FRAME_FONT.
10124 (Vwindow_system_version): Bump to 23.
10125 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10126 is available, set up mouse_position_hook.
10127 (dos_ttraw, IT_set_terminal_modes): If called with initial
10128 terminal, do nothing.
10129 (IT_set_frame_parameters): Handle the Qtty_type frame
10130 parameter by calling internal_terminal_init.
10131 (dos_set_window_size, show_mouse_face)
10132 (clear_mouse_face, IT_note_mode_line_highlight)
10133 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10134 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10135 (initialize_msdos_display): New function.
10136 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10137 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10138 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10139 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10140 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10141 (request_sigio, unrequest_sigio): Don't define, now defined on
10142 sysdep.c.
10143 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10144
10145 * term.c [MSDOS]: Include msdos.h.
10146 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10147 conditional to DOS_NT. Allow only one call to this function in a
10148 session. Don't allocate a new struct tty_display_info; instead,
10149 reuse the_only_display_info. Call get_tty_size to get screen
10150 dimensions. Call init_baud_rate to set bad_rate.
10151 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10152 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10153 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10154 (get_tty_terminal, get_named_tty, Ftty_type)
10155 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10156 output_termcap.
b8ff72fa
SM
10157 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10158 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10159 only when subprocesses are supported.
aac0c6e3
MR
10160
10161 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10162 f->output_data.x.
10163 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10164 terminal devices.
10165
5582fbc7 10166 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10167 x_output.
10168 (FRAME_FONT): Use output_data.tty.
10169 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10170 (struct x_display_info): Rename from display_info. Update all users in
10171 msdos.c.
aac0c6e3 10172 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10173 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10174 (dos_ttraw): Update prototype.
10175
10176 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10177 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10178
101792008-08-23 Jason Rumney <jasonr@gnu.org>
10180
10181 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10182 (fn_TIFFSetDirectory): New library function used.
10183 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10184 (tiff_load): Use :index to select among multiple images. Set count
10185 property when multiple images exist.
10186 (gif_format): Use :index, not :image.
10187
101882008-08-23 Chong Yidong <cyd@stupidchicken.com>
10189
10190 * xdisp.c (try_scrolling): Check INT_MAX instead of
10191 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10192 to obtain INT_MAX.
10193
101942008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10195
10196 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10197
101982008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10199
10200 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10201 GNUstep library location.
10202
102032008-08-21 Chong Yidong <cyd@stupidchicken.com>
10204
10205 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10206 before using it.
10207
10208 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10209
102102008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10211
10212 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10213 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10214 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10215 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10216 (EmacsApp-cursor_blink_handler): Remove declaration.
10217 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10218 match 01 Feb 2008 changes in xterm.c.
10219 (ns_read_socket): Add cast to avoid warning.
10220 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10221 GNUstep.
10222
102232008-08-20 Chong Yidong <cyd@stupidchicken.com>
10224
10225 * xselect.c (x_get_foreign_selection): Return nil if desired
10226 selection could not be obtained, instead of signalling an error.
10227
102282008-08-20 David Reitter <david.reitter@gmail.com>
10229
10230 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10231 * nsterm.m: Remove ns-specific code for cursor blinking.
10232 (ns_draw_window_cursor): Clear cursor properly rather than
10233 redrawing the area. Respect width of bar cursors.
10234 These changes enable the use of generic blink-cursor-mode and
10235 generic cursor types in NS and support smooth cursor movements (do
10236 not blink off after command).
10237 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10238 Nextstep, too.
10239
102402008-08-19 Kenichi Handa <handa@m17n.org>
10241
10242 * font.c (Vfont_log_deferred): New variable.
10243 (font_add_log): Check Vfont_log_deferred.
10244 (font_deferred_log): New function.
10245
10246 * font.h (font_deferred_log): Extern it.
10247
10248 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10249 for sorting.
10250 (face_for_char): Use deferred log.
10251
102522008-08-18 Kenichi Handa <handa@m17n.org>
10253
10254 * fontset.c (face_for_char): Add font log.
10255
10256 * font.c (font_add_log): Add the font properties :script, :lang,
10257 and :otf in the log.
10258
102592008-08-17 Chong Yidong <cyd@stupidchicken.com>
10260
10261 * xdisp.c: Remove dead code.
10262 (handle_invisible_prop, next_overlay_string): Defer call to
10263 setup_for_ellipsis.
10264 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10265
102662008-08-15 Chong Yidong <cyd@stupidchicken.com>
10267
10268 * xfaces.c (lookup_derived_face): Properly handle possible zero
10269 return value of get_lface_attributes.
10270 (merge_faces): Don't tell lookup_derived_face to signal an error
10271 if face is not found.
10272
10273 * dired.c (Fdirectory_files): Doc fix.
10274
10275 * process.c (make_process): Initialize kill_without_query struct
10276 member.
10277
102782008-08-15 Eli Zaretskii <eliz@gnu.org>
10279
10280 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10281 Alternative calculation of totphys for Visual Studio 6.
10282
10283 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10284
10285 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10286 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10287 All users changed.
10288 (stat): Only root directory passed to GetDriveType. Allow RAM
10289 disk as well as local fixed disk when w32-get-true-file-attributes
10290 is set to `local'.
10291 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10292 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10293 (w32_cached_id, w32_add_to_cache): New functions.
10294 (get_name_and_id): Look account names in the cache before calling
10295 lookup_account_sid.
10296 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10297 New initialization flags.
10298 (globals_of_w32): Initialize them to zero.
10299 (w32_system_process_attributes): Use w32_cached_id and
10300 w32_add_to_cache.
10301
103022008-08-14 Lawrence Mitchell <wence@gmx.li>
10303
10304 * lread.c (Fread_char, Fread_char_exclusive): If no character
10305 event is read before timeout is reached, return nil, rather than
10306 converting to a number.
10307
103082008-08-14 Chong Yidong <cyd@stupidchicken.com>
10309
10310 * fns.c (use_dialog_box): Doc fix.
10311
10312 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10313 on OS X.
10314
103152008-08-13 Chong Yidong <cyd@stupidchicken.com>
10316
10317 * frame.c (Qns_parse_geometry): New var.
10318 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10319
103202008-08-11 Chong Yidong <cyd@stupidchicken.com>
10321
10322 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10323 space character in calculating tabs.
10324
103252008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10326
10327 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10328
103292008-08-10 Glenn Morris <rgm@gnu.org>
10330
10331 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10332 silence gcc "limited range of data type" warnings in some
10333 make_fixnum_or_float calls.
10334
103352008-08-09 Eli Zaretskii <eliz@gnu.org>
10336
10337 * w32.c (w32_system_process_attributes): If the process does not
10338 exist, return nil.
10339
10340 * w32.c: Include thelp32.h, psapi.h and coding.h.
10341 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10342 declarations.
10343 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10344 (Process32Next_Proc): New typedefs.
10345 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10346 (g_b_init_process32_next, g_b_init_open_thread_token)
10347 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10348 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10349 (g_b_init_get_process_working_set_size)
10350 (g_b_init_global_memory_status_ex): New static variables.
10351 (globals_of_w32): Initialize them.
10352 (create_toolhelp32_snapshot, process32_first, process32_next)
10353 (open_thread_token, impersonate_self, revert_to_self)
10354 (get_process_memory_info, get_process_working_set_size)
10355 (global_memory_status, global_memory_status_ex): New wrapper
10356 functions.
10357 (w32_list_system_processes, w32_system_process_attributes)
10358 (enable_privilege, restore_privilege, ltime, process_times):
10359 New functions.
10360 (convert_time_raw): New function.
10361 (convert_time): Remove conversion of FILETIME into time in 100
10362 nsec units, call convert_time_raw instead.
10363
10364 * process.h (w32_list_system_processes, w32_system_process_attributes):
10365 Add prototypes.
10366 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10367 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10368 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10369 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10370
10371 * process.c (Fsystem_process_attributes): Doc fix.
10372
103732008-08-08 Chong Yidong <cyd@stupidchicken.com>
10374
10375 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10376 a continued multi-char glyph; if so, advance to the actual glyph.
10377
103782008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10379
10380 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10381
10382 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10383 (.m.o): Use it.
10384 * config.in: Regenerate.
10385
103862008-08-07 Chong Yidong <cyd@stupidchicken.com>
10387
10388 * xdisp.c (redisplay_window): Revert last change.
10389 (try_window): Check bottom scroll margin too.
10390
103912008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10392
10393 * config.in: Regenerate.
10394
10395 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10396 -list-load-path-shadows'.
10397 (nsgui.h): Reduce number of things depending on it.
10398
103992008-08-06 Chong Yidong <cyd@stupidchicken.com>
10400
10401 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10402 instead of window-end which does the wrong thing at eob.
10403 (try_cursor_movement): Minor optimization.
10404 (redisplay_window): If scroll margin is defined, don't assume
10405 window doesn't need scrolling.
10406
104072008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10408
10409 * config.in: Regenerate.
10410
10411 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10412 (mostlyclean): Don't delete *.d under NS.
10413
10414 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10415
104162008-08-06 Kenichi Handa <handa@m17n.org>
10417
10418 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10419
104202008-08-06 Andreas Schwab <schwab@suse.de>
10421
10422 * config.in: Regenerate.
10423
104242008-08-05 Chong Yidong <cyd@stupidchicken.com>
10425
10426 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10427 forcing a window start.
10428
10429 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10430 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10431
104322008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10433
10434 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10435 argument.
10436
104372008-08-05 Juanma Barranquero <lekktu@gmail.com>
10438
10439 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10440 <scroll-down-aggressively, before-change-functions>:
10441 <after-change-functions>: Reflow docstrings.
10442
104432008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10444 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10445
10446 Dock menu customization, based on a patch by Ken Raeburn, plus some
10447 other fixes.
10448 * nsmenu.m (dockMenu): New variable.
10449 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10450
10451 * nsterm.h (dockMenu): Declare.
10452
10453 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10454 (ns_term_init): Initialize dockMenu.
10455 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10456 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10457 left.
10458
10459 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10460
104612008-08-04 Chong Yidong <cyd@stupidchicken.com>
10462
10463 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10464
10465 * config.in: Regenerate.
10466
104672008-08-04 Seiji Zenitani <zenitani@mac.com>
10468
10469 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10470
104712008-08-04 Chong Yidong <cyd@stupidchicken.com>
10472
10473 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10474
104752008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10476
10477 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10478
10479 * keyboard.h: Comment an #endif.
10480
10481 * lisp.h (have_menus_p): Adjust comment.
10482
10483 * menu.c (find_and_return_menu_selection): Fix comparison with
10484 client_data.
10485
10486 * nsmenu.m (popup_activated_flag): New variable.
10487 (popup_activated): New function.
10488 (menu-or-popup-active-p): New exported lisp definition.
10489 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10490 when popup done.
10491 (ns_popup_dialog): Set popup_activated_flag.
10492
10493 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10494 version for GNUstep (handled by conditional typedef in nsterm.m).
10495 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10496 in rgb.txt).
10497
10498 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10499
10500 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10501
10502 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10503
10504 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10505 shortcircuit if popup_activated like GTK and X toolkit.
10506
10507 * m/inter386.h: Change DARWIN to DARWIN_OS.
10508
10509 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10510 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10511 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10512 comment on NO_SOCK_SIGIO.
10513
105142008-08-03 Chong Yidong <cyd@stupidchicken.com>
10515
10516 * nsterm.m (windowDidResize): Remove stopModal call.
10517
105182008-08-03 Andreas Schwab <schwab@suse.de>
10519
10520 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10521 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10522
105232008-08-02 Chong Yidong <cyd@stupidchicken.com>
10524
10525 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10526 Don't use uninitialized pointer variable when using getrlimit.
10527
105282008-08-02 Jason Rumney <jasonr@gnu.org>
10529
10530 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10531
105322008-08-02 Eli Zaretskii <eliz@gnu.org>
10533
10534 * alloc.c (NSTATICS): Bump to 0x640.
10535
10536 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10537
10538 * lisp.h: Add prototype for directory_files_internal.
10539
10540 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10541 New functions.
10542 (syms_of_process): Defsubr them. Add initializations for various
10543 Q* symbols used in procfs_system_process_attributes.
10544 (procfs_list_system_processes, procfs_system_process_attributes)
10545 [HAVE_PROCFS]: New functions.
10546 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10547 (procfs_get_total_memory): New functions.
10548
105492008-08-01 Juanma Barranquero <lekktu@gmail.com>
10550
10551 * xfaces.c (Fx_load_color_file): Fix previous change;
10552 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10553
105542008-08-01 Michael Albinus <michael.albinus@gmx.de>
10555
10556 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10557
105582008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10559
10560 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10561
105622008-08-01 Chong Yidong <cyd@stupidchicken.com>
10563
10564 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10565
10566 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10567 define NSApplicationDelegateReplySuccess.
10568 (EmacsView -converstationIdentifier): Use long instead of
10569 NSInteger for GNUstep, since it doesn't have NSInteger.
10570
10571 * xmenu.c: Revert last change.
10572
10573 * keyboard.h: Fix last change.
10574
105752008-08-01 Juanma Barranquero <lekktu@gmail.com>
10576
10577 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10578 on Windows.
10579
105802008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10581
10582 Warning clearing and clean-up in NS port.
10583 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10584 Add prototypes.
10585 * nsgui.h (FACE_DEFAULT): Remove, unused.
10586 (XGCValues): Change colors to unsigned long.
10587 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10588 nsterm.m.
10589 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10590 (ns_list_fonts): Remove, unused.
10591 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10592 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10593 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10594 (nsfont_draw): Compare face colors to 0, not nil.
10595 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10596 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10597 (-addSubmenuWithTitle:): Use NSMenuItem class.
10598 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10599 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10600 (ns_clip_to_row): Make gc arg a BOOL.
10601 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10602 ns_clip_to_row() call.
10603 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10604 used). Cast FRAME_FONT assignments.
10605 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10606 (ns_string_to_lispmod): Change arg to const char.
10607 (ns_term_init): Use NSMenuItem class.
10608 (EmacsApp -openFile:): Move to different section of file.
10609 (EmacsApp -application:openFiles:): Don't return a value, call
10610 -replyToOpenOrPrint:.
10611 (EmacsView -keyDown:): Fix up cast.
10612 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10613 (EmacsView -menuDown:): Cast tag in call to
10614 find_and_call_menu_selection().
10615 (ns_list_fonts): Remove, unused.
10616 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10617 (ns_fontname_to_xlfd): Make static.
10618 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10619 Remove prototypes (now in keyboard.h).
10620 (next_menubar_widget_id): Remove, unused.
10621 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10622 Remove prototypes (now in keyboard.h).
10623 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10624
106252008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10626
10627 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10628 (floatfns.o): Depend on syssignal.h.
10629 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10630
10631 * systty.h: Fix previous change that removed BSD_TERMIOS.
10632 Add comments to #ifdefs.
10633
106342008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10635
10636 * w32fns.c (w32-load-color-file): Remove.
10637 (x-open-connection): Use renamed Fx_load_color_file.
10638 * xfaces.c (x-load-color-file): Add.
10639 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10640 Emacs.clr.
10641 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10642
106432008-07-31 Michael Albinus <michael.albinus@gmx.de>
10644
10645 * dbusbind.c (Fdbus_call_method_asynchronously)
10646 (Fdbus_method_error_internal): New defuns.
10647 (xd_read_message): Handle also reply messages.
10648 (Vdbus_registered_functions_table): Extend docstring.
10649
106502008-07-31 Juanma Barranquero <lekktu@gmail.com>
10651
10652 * keyboard.c (gobble_input): Fix previous change.
10653
106542008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10655
10656 * bitmaps/README:
10657 * xfns.c:
10658 * termcap.c:
10659 * term.c:
10660 * syswait.h:
10661 * systty.h:
10662 * systime.h:
10663 * syssignal.h:
10664 * sysdep.c:
10665 * process.h:
10666 * process.c:
10667 * print.c:
10668 * ndir.h:
10669 * lread.c:
10670 * keyboard.c:
10671 * getpagesize.h:
10672 * floatfns.c:
10673 * fileio.c:
10674 * emacs.c:
10675 * doc.c:
10676 * dispnew.c:
10677 * dired.c:
10678 * data.c:
10679 * callproc.c:
10680 * buffer.c:
10681 * README:
10682 * Makefile.in:
10683 * s/template.h:
10684 * s/msdos.h:
10685 * m/vax.h: Remove VMS support.
10686 * s/vms.h:
10687 * vlimit.h:
10688 * uaf.h:
10689 * temacs.opt:
10690 * param.h:
10691 * ioctl.h: Remove file.
10692
106932008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10694
10695 * s/ms-w32.h (MULTI_KBOARD): Remove.
10696 * xterm.c:
10697 * xselect.c:
10698 * xfns.c:
10699 * window.c:
10700 * w32term.c:
10701 * w32fns.c:
10702 * terminal.c:
10703 * termhooks.h:
10704 * term.c:
10705 * sysdep.c:
10706 * keyboard.h:
10707 * keyboard.c:
10708 * frame.h:
10709 * frame.c:
10710 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10711 * config.in: Regenerate.
10712
107132008-07-30 Jason Rumney <jasonr@gnu.org>
10714
10715 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10716
10717 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10718 (w32font_open_internal): Get unicode version of textmetrics.
10719 Don't enable or disable glyph indices here.
10720 (w32font_open): Disable use of glyph indices.
10721
10722 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10723
107242008-07-30 Chong Yidong <cyd@stupidchicken.com>
10725
10726 * minibuf.c (Vread_buffer_function): Doc fix.
10727
107282008-07-30 John Paul Wallington <jpw@pobox.com>
10729
10730 * minibuf.c (read_buffer_completion_ignore_case): New var.
10731 (Fread_buffer): Use it.
10732
107332008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10734
10735 * systty.h (sensemode): Remove empty #if. Remove reference to
10736 BSD_TERMIOS, unused.
10737
10738 * sysdep.c: Remove reference to DGUX.
10739 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10740
10741 * config.in: Regenerate.
10742
107432008-07-30 Jason Rumney <jasonr@gnu.org>
10744
10745 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10746
107472008-07-29 Jason Rumney <jasonr@gnu.org>
10748
10749 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10750 is populated.
10751 (uniscribe_encode_char): Always use uniscribe.
10752 Avoid using context if cache is populated.
10753
107542008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10755
10756 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10757 open menu.
10758
10759 * gtkutil.c (menu_nav_ended): Remove.
10760 (create_menus): Remove signal connect for menu_nav_ended.
10761
107622008-07-28 Chong Yidong <cyd@stupidchicken.com>
10763
10764 * xdisp.c (redisplay_window): Check return value of
10765 compute_window_start_on_continuation_line before forcing a window
10766 start.
10767
107682008-07-28 Jason Rumney <jasonr@gnu.org>
10769
10770 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10771
10772 * w32term.c (w32_enable_unicode_output, cleartype_active):
10773 Remove obsolete display options.
10774 (x_draw_glyph_string_background): Don't use old cleartype_active
10775 workaround.
10776 (w32_initialize): Remove cleartype_active initialization.
10777 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10778
107792008-07-28 Andreas Schwab <schwab@suse.de>
10780
10781 * lisp.h (init_weak_hash_tables, syms_of_font)
10782 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10783 (remove_hash_entry): Don't declare.
10784 * eval.c (maybe_call_debugger): Make static and move before use.
10785 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10786 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10787 * xterm.h (x_set_frame_alpha): Declare.
10788
107892008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10790
10791 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10792 (create_menus): Connect selection-done to menu_nav_ended.
10793
107942008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10795
10796 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10797 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10798 parameter with read of 'alpha' one.
10799 (Qns_frame_parameter): Remove.
5582fbc7 10800 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10801 (next-selection-coding-system, Vselection_coding_system)
10802 (Vnext_selection_coding_system): Drop.
10803
108042008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10805
10806 * nsfns.m (do-applescript, do_applescript): Rename to
10807 ns-do-applescript, ns_do_applescript, and move within file.
10808
108092008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10810
10811 Remove support for Mac Carbon.
10812 * mactoolbox.c:
10813 * macterm.h:
10814 * macterm.c:
10815 * macselect.c:
10816 * macmenu.c:
10817 * macgui.h:
10818 * macfns.c:
10819 * mac.c: Remove file.
10820 * s/darwin.h:
10821 * m/intel386.h:
10822 * xfaces.c:
10823 * xdisp.c:
10824 * window.c:
10825 * tparam.c:
10826 * termhooks.h:
10827 * termcap.c:
10828 * term.c:
10829 * syssignal.h:
10830 * sysselect.h:
10831 * sysdep.c:
10832 * process.c:
10833 * lread.c:
10834 * lisp.h:
10835 * keyboard.c:
10836 * image.c:
10837 * fringe.c:
10838 * frame.h:
10839 * frame.c:
10840 * fontset.c:
10841 * font.h:
10842 * font.c:
10843 * fns.c:
10844 * fileio.c:
10845 * emacs.c:
10846 * dispnew.c:
10847 * dispextern.h:
10848 * config.in:
10849 * atimer.c:
2ae37cf0 10850 * Makefile.in: Remove code for Carbon.
aac0c6e3 10851
f0131492 108522008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10853
10854 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10855
108562008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10857
10858 * macterm.h (kCGBitmapByteOrder32Host): New define for
10859 non-universal SDKs.
10860
10861 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10862 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10863
10864 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10865 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10866
108672008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10868
10869 * w32inevt.c: Include dispextern.h.
10870
108712008-07-26 Andreas Schwab <schwab@suse.de>
10872
10873 * print.c (print_object): Fix off-by-one in last change.
10874
108752008-07-25 Juanma Barranquero <lekktu@gmail.com>
10876
10877 * term.c (syms_of_term): Don't initialize default_orig_pair,
10878 default_set_foreground and default_set_background on Windows.
10879
108802008-07-25 Jason Rumney <jasonr@gnu.org>
10881
10882 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10883 ScriptItemize. Clean up return value checking. Remove unused
10884 variables.
10885 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10886 shaping engine.
10887
10888 * w32font.c (w32font_has_char): Handle the case where we can't
10889 determine the script for a character.
10890
108912008-07-25 Chong Yidong <cyd@stupidchicken.com>
10892
10893 * term.c (syms_of_term): Initialize default_orig_pair,
10894 default_set_foreground, and default_set_background.
10895
10896 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10897 clash (bug#86).
10898 (getloadavg): Callers changed.
10899
10900 * image.c (svg_load_image): Fix last change.
10901 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10902 image size is valid. Use g_object_unref instead of deprecated
10903 rsvg_handle_free to free rsvg handle.
10904 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10905
109062008-07-25 Jason Rumney <jasonr@gnu.org>
10907
10908 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10909 surrogates before looking up glyph index.
10910 (w32font_text_extents): Encode as surrogates if falling back to
10911 functions that need UTF-16 wide chars.
10912
10913 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10914 BMP as surrogates before looking up glyph index.
10915
109162008-07-25 Chong Yidong <cyd@stupidchicken.com>
10917
10918 * image.c (svg_load_image): Check for failure in return value of
10919 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10920
109212008-07-25 Jason Rumney <jasonr@gnu.org>
10922
10923 * w32font.c (Fx_select_font): Reverse sense of second arg.
10924
109252008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10926
10927 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10928 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10929
10930 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10931 (PURESIZE): Use it.
10932
109332008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10934
10935 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10936 * m/alpha.h (TEXT_END):
10937 * m/ibmrs6000.h (TEXT_END):
10938 * m/macppc.h (TEXT_END):
10939 * s/darwin.h (TEXT_END):
10940 * s/msdos.h (TEXT_END): Remove, unused.
10941 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10942 * s/cygwin.h: Remove comment.
10943
10944 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10945 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10946 * m/intel386.h (DOT_GLOBAL_START):
10947 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10948 (USG): Remove, file not used on USG platforms.
10949
10950 * Makefile.in (HAVE_X11): Remove empty #else.
10951
109522008-07-24 Andreas Schwab <schwab@suse.de>
10953
10954 * fileio.c (Finsert_file_contents): Properly adjust undo list
10955 after format conversion.
10956
109572008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10958
10959 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10960 (menu_nav_ended): Remove.
10961 (create_menus): Remove signal connect for menu_nav_ended.
10962 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10963 create_menus.
10964 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10965
109662008-07-23 Jason Rumney <jasonr@gnu.org>
10967
10968 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10969 with opened font.
10970 (w32font_open): Set font type to gdi.
10971
10972 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10973
109742008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10975
10976 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10977 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10978 defines it.
10979 * unexec.c (ADDR_CORRECT): Define unconditionally.
10980
10981 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10982
10983 * unexec.c: Remove code depending on !COFF and USG, the file is
10984 not used for such systems.
10985
10986 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10987 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10988 (LD_SWITCH_SYSTEM_1): Remove, update users.
10989
10990 * s/darwin.h (DATA_END):
10991 * m/intel386.h (DATA_END):
10992 * m/ibmrs6000.h (DATA_END):
10993 * m/alpha.h (DATA_END): Remove, unused.
10994
10995 * config.in: Regenerate.
10996 * s/ms-w32.h (subprocesses): Define unconditionally.
10997 * s/template.h (subprocesses): Update comment.
10998 * s/vms.h (subprocesses):
10999 * s/usg5-4.h (subprocesses):
11000 * s/hpux10-20.h (subprocesses):
11001 * s/gnu-linux.h (subprocesses):
11002 * s/cygwin.h (subprocesses):
11003 * s/bsd-common.h (subprocesses):
11004 * s/aix4-2.h (subprocesses):
11005 * s/darwin.h (subprocesses): Do not define, defined by default now.
11006
11007 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11008 Remove all references.
11009 (temacs): Add GNUstep specific ld flags.
11010
11011 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11012 similarly to what X does.
11013
110142008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11015
11016 * nsfns.m (x-list-fonts): Remove.
11017 (syms_of_nsfns): Drop the x-list-fonts declaration.
11018 * nsterm.m: Get rid of remaining "//" comments.
11019
110202008-07-22 Chong Yidong <cyd@stupidchicken.com>
11021
11022 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11023
11024 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11025 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11026 (Fns_own_selection_internal, Fx_disown_selection_internal)
11027 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11028
11029 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11030 ... */' style of docstrings. Doc fixes.
11031
110322008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11033
11034 * terminfo.c (UP, BC, PC): Undo previous change.
11035
11036 * nsfns.m: Rename ns prefixed functions/variables to the
11037 corresponding x versions. Update references.
11038
110392008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11040
11041 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11042
110432008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11044
11045 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11046 Remove forwarding functions.
11047 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11048 non-static.
11049 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11050 non-static.
11051 (ns_frame_parm_handlers): Use the new names.
11052 (syms_of_nsfns): Move to the end of file.
11053
11054 * nsterm.m (syms_of_nsterm): Move to the end of file.
11055
11056 * dispnew.c (init_display): Remove code for X10.
11057
110582008-07-22 Jason Rumney <jasonr@gnu.org>
11059
11060 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11061 bare drive.
11062
110632008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11064
11065 * nsterm.m (syms_of_nsterm): Remove debugging println.
11066
110672008-07-22 David Reitter <david.reitter@gmail.com>
11068
11069 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11070 Carbon implementation of the same functionality: execute arbitrary
11071 AppleScript code.
11072
110732008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11074
11075 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11076 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11077 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11078 (Fx_display_mm_height, Fx_display_mm_width)
11079 (Fx_display_backing_store, Fx_display_visual_class)
11080 (Fx_display_save_under, Fx_open_connection)
11081 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11082 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11083 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11084 (Fx_display_pixel_width, Fx_display_pixel_height)
11085 (Fx_display_usable_bounds, Fx_display_planes)
11086 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11087 ... */' style of docstrings.
11088
110892008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11090
11091 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11092 on this platform.
11093 (mips):
11094 * m/iris4d.h (mips): Do not define.
11095 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11096
11097 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11098
11099 * image.c:
11100 * nsfns.m:
11101 * nsselect.m:
11102 * nsterm.h:
11103 * nsterm.m: Rename ns prefixed functions/variables to the
11104 corresponding x versions. Update references.
11105
11106 * m/ibms390x.h (NO_REMAP): Do not undefine.
11107
11108 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11109
111102008-07-21 Chong Yidong <cyd@stupidchicken.com>
11111
11112 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11113 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11114 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11115 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11116 (Fns_display_mm_height, Fns_display_mm_width)
11117 (Fns_display_backing_store, Fns_display_visual_class)
11118 (Fns_display_save_under, Fns_open_connection)
11119 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11120 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11121 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11122 (Fns_display_pixel_width, Fns_display_pixel_height)
11123 (Fns_display_usable_bounds, Fx_display_planes)
11124 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11125
111262008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11127
11128 * print.c (print_object): Check print_depth before searching for
11129 circularities.
11130
111312008-07-21 Michael Albinus <michael.albinus@gmx.de>
11132
11133 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11134 only sprintf.
11135
111362008-07-21 Kenichi Handa <handa@m17n.org>
11137
11138 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11139
111402008-07-20 Andreas Schwab <schwab@suse.de>
11141
11142 * syntax.c (find_start_pos, find_start_value)
11143 (find_start_value_byte, find_start_begv, find_defun_start)
11144 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11145
111462008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11147
11148 * s/sol2-3.h: Insert contents of s/sol2.h.
11149 (LD_SWITCH_SYSTEM): Remove redundant definition.
11150 * s/sol2.h: Remove, unused.
11151
111522008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11153
11154 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11155
111562008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11157
11158 * Makefile.in (ns_appdir): Fix typo in find command.
11159
111602008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11161
11162 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11163
11164 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11165 added not supported anymore.
11166
11167 * s/usg5-4-2.h (LIBS_SYSTEM):
11168 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11169
11170 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11171 * s/lynxos.h (GETPGRP_NO_ARG):
11172 * s/hpux10-20.h (NO_SIOCTL_H):
11173 * s/gnu.h (GETPGRP_NO_ARG):
11174 * s/gnu-linux.h (NO_SIOCTL_H):
11175 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11176 * s/cygwin.h (GETPGRP_NO_ARG):
11177 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11178 (C_DEBUG_SWITCH): Remove duplicate definition.
11179
11180 * m/ibms390.h: Remove boilerplate comments.
11181
11182 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11183
11184 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11185 (wait_reading_process_output): Remove code for SunOS, platform not
11186 supported anymore. Use SOLARIS2 instead of sun.
11187
111882008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11189
11190 * font.c (font_open_by_name): Under NS, default lface height to zero.
11191 (font_open_for_lface): Under NS, set size based on frame fontsize.
11192 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11193 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11194
111952008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11196
11197 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11198 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11199 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11200 YES/NO.
11201 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11202 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11203 * Makefile.in (clean): Clear out build destination dir.
11204
112052008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11206
11207 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11208 xterm, xselect.
11209 * lisp.h: Remove declaration of hash_remove.
11210 * nsgui.h: Remove redefinitions of hash_remove.
11211 * fns.c (hash_remove): Rename to hash_remove_from_table.
11212
112132008-07-19 Seiji Zenitani <zenitani@mac.com>
11214
11215 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11216 strdup() the family UTF8String before modifying it.
11217
112182008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11219
11220 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11221 NS_FACE_BACKGROUND with 0 instead of nil.
11222 * nsfont.m (nsfont_draw): Same.
11223
112242008-07-19 Chong Yidong <cyd@stupidchicken.com>
11225
11226 * nsfns.m (ns_set_background_color): Fix crash.
11227
112282008-07-18 Chong Yidong <cyd@stupidchicken.com>
11229
11230 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11231
112322008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11233
11234 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11235
112362008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11237
11238 * gtkutil.c: Include <config.h> instead of "config.h".
11239
11240 * lisp.h (Foverlay_buffer): Add EXFUN.
11241
11242 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11243 child process to complete child_setup. Undo 2005-09-21 change.
11244
11245 * s/darwin.h: Mention setsid after vfork.
11246
112472008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11248
11249 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11250 Depend on macgui.h.
11251
11252 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11253 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11254
11255 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11256 and f19.
11257 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11258
11259 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11260 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11261 Remove enumerators.
11262
11263 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11264 Check if FACE_FROM_ID returns NULL.
11265
112662008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11267
11268 * w32inevt.c (change_frame_size): Remove extern declaration.
11269 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11270 change_frame_size.
11271
112722008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11273
11274 * getloadavg.c: Revert last change (2008-07-15).
11275
112762008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11277
11278 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11279 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11280 from configure.
11281
112822008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11283
11284 * s/sol2.h:
11285 * s/sol2-4.h: Reorganize conditionals.
11286
11287 * ecrt0.c: Remove code depending on m68000, not used anymore.
11288
11289 * fns.c (hash_remove): Make static.
11290 * lisp.h (hash_remove): Don't prototype.
11291
11292 * m/ibmrs6000.h:
11293 * m/ibms390x.h:
11294 * m/macppc.h: Remove boilerplate comments.
11295
11296 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11297 Solaris, which does not need them.
11298
11299 * m/vax.h: Remove comments about unsupported systems.
11300
11301 * s/darwin.h: Reorganize ifdefs.
11302
113032008-07-17 Andreas Schwab <schwab@suse.de>
11304
11305 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11306
113072008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11308
11309 Use SDATA. Follow coding convention of placing operators at
11310 beginning of next line rather than end of previous line, and placing
11311 spaces around infix operators.
11312
11313 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11314 in case it was defined already.
11315 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11316 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11317 ns_default.
11318 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11319 Lisp_Objects.
11320 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11321 (ns_defined_color, ns_color_to_lisp): Declare.
11322 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11323 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11324 it's accepted even with USE_LISP_UNION_TYPE.
11325 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11326 (update_frame_tool_bar): Remove apparently obsolete tests for
11327 non-integerness of f->tool_bar_lines.
11328 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11329 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11330 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11331 (nsfont_open): Don't confuse NULL for Qnil.
11332 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11333 * menu.h (find_and_call_menu_selection):
11334 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11335 (find_and_return_menu_selection): Always return something.
11336 * frame.h: Include dispextern.h for Display_Info.
11337 (display_x_get_resource): Declare.
11338
113392008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11340
11341 * syntax.c: Remove stdio.h include accidentally introduced in
11342 Emacs.app commit.
11343 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11344 NS_IMPL_COCOA.
11345 * keyboard.c (handle_async_input, input_available_signal): Remove
11346 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11347
113482008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11349
11350 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11351 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11352 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11353 Use SDATA.
11354
11355 * keymap.c: Remove all NS-specific code.
11356 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11357 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11358 where_is_preferred_modifier, return a different value depending on how
11359 preferred is the binding.
11360 (where_is_internal): Adjust accordingly.
11361 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11362 Adjust to new preferred_sequence_p.
11363 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11364 * keyboard.c (parse_solitary_modifier): Not static any more.
11365 * keyboard.h (parse_solitary_modifier): Declare.
11366
113672008-07-16 Andreas Schwab <schwab@suse.de>
11368
11369 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11370 of easymenu.
11371
113722008-07-16 Chong Yidong <cyd@stupidchicken.com>
11373
11374 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11375 that we don't move off the line.
11376
113772008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11378
11379 * keyboard.c (Qsuper): Remove.
11380 (parse_menu_item): Don't call where_is_internal specially for NS.
11381
113822008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11383
11384 * s/gnu-linux.h: Remove boilerplate comments.
11385
11386 * m/alpha.h (__ELF__): Consolidate conditions.
11387
11388 * m/m68k.h (linux): Use GNU_LINUX instead.
11389 Remove boilerplate comments.
11390
11391 * m/intel386.h: Undo refactoring from previous change.
11392 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11393 too, remove dead code.
11394 (linux): Use GNU_LINUX instead.
11395
113962008-07-16 Jason Rumney <jasonr@gnu.org>
11397
11398 * w32gui.h: Repeat 26 June changes lost by last change.
11399
114002008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11401
11402 * systty.h: Remove code for Aix on 386, unsupported platform.
11403
11404 * s/ms-w32.h: Remove boilerplate comments.
11405 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11406
11407 * s/gnu-linux.h (TERM): Remove support.
11408 (HAVE_SYSVIPC): Remove, unused.
11409 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11410 for this system.
11411
11412 * process.c: Remove support for IRIS, unused.
11413 Remove support for TERM, not relevant anymore.
11414
11415 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11416 used with the definition.
11417
11418 * s/aix4-2.h (static): Do not undef.
11419
11420 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11421 only used on Aix.
11422 (HAVE_SYSVIPC): Remove, unused.
11423
11424 * m/hp800.h (CANNOT_DUMP): Do not undef.
11425
11426 * m/alpha.h: Fix comment.
11427
11428 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11429 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11430 used by this configuration.
11431 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11432 * unexec.c: Remove code depending on HPUX and
11433 USG_SHARED_LIBRARIES, not used with this file. Remove code
11434 depending on IRIS, unused. Remove if 0-ed code.
11435
11436 * s/template.h: Remove comments about static.
11437
11438 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11439 Remove if 0-ed code.
11440 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11441 were the same as the default.
11442 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11443 Remove boilerplate comments.
11444 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11445 (HAVE_SYSVIPC): Remove, unused.
11446 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11447
11448 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11449 Remove boilerplate comments.
11450 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11451 Remove boilerplate comments.
11452 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11453 Remove boilerplate comments.
11454 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11455
11456 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11457 USG systems which do not use DATA_SEG_BITS.
11458 Refactor code. Remove boilerplate comments.
11459
11460 * m/ibms390.h:
11461 * m/m68k.h:
11462 * s/bsd-common.h:
11463 * s/cygwin.h:
11464 * s/darwin.h:
11465 * s/freebsd.h:
11466 * s/gnu.h:
11467 * s/msdos.h: Remove boilerplate comments.
11468
11469 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11470 do not use this file.
aac0c6e3
MR
11471 (IRIS_4D): Remove, unused.
11472
11473 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11474 do not use this file.
aac0c6e3
MR
11475 (SIGN_EXTEND_CHAR):
11476 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11477 * unexmips.c: Remove file, unused.
11478
11479 * editfns.c (Fuser_full_name): Replace the only use of
11480 USER_FULL_NAME with its value.
11481 * config.in: Regenerate.
11482
114832008-07-16 David Reitter <david.reitter@gmail.com>
11484
11485 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11486 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11487
114882008-07-16 Glenn Morris <rgm@gnu.org>
11489
11490 * emacs.c (system-type): Doc fix.
11491
114922008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11493
11494 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11495 If the cache doesn't work, let's fix it, rather than work around it.
11496
114972008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11498
11499 * Makefile.in: Correct additions for nsfont.o in last commit.
11500 * nsfont.m: New file (forgot last commit).
11501
115022008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11503
11504 * callproc.c (set_initial_environment): Initialize
11505 Vprocess_environment under CANNOT_DUMP (fixes crash when
11506 batch-compiling for bootstrap).
11507
115082008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11509 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11510
11511 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11512 fix crash due to different init order.
11513
115142008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11515
11516 Changes and additions for NeXTstep windowing system (Cocoa and
11517 GNUstep) support.
11518
11519 * Makefile.in:
11520 * config.in: Support defines and build commands for NS port.
11521 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11522 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11523 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11524 windowing.
11525 (struct face): Add synth_ital field.
11526 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11527 (init_display): Initialize Vinitial_window_system to "ns" when so
11528 compiled.
11529 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11530 (display_arg): Use under NS.
11531 (main): Under NS, allocate autorelease pool and handle command line
11532 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11533 (standard_args): Add NS-specific args.
11534 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11535 * font.c (DEFAULT_ENCODING): New variable.
11536 (font_find_for_lface): Use it.
11537 (syms_of_font): Load syms_of_nsfont under NS.
11538 * font.h: Declare nsfont_driver when compiled under NS.
11539 * fontset.c: When compiling under NS, include nsterm.h.
11540 (fontset_from_font): Autoconstruct fontset under NS.
11541 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11542 symbol, document and use it.
11543 (do_switch_frame): When for_deletion under Cocoa, add
11544 Fraise_frame(Qnil).
11545 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11546 (x_get_arg): Allow "yes" and "no" as boolean values.
11547 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11548 Qright under Cocoa.
11549 (focus-follows-mouse): Default to 0 under NS.
11550 * frame.h (enum output_method): Add output_ns.
11551 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11552 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11553 (FRAME_WINDOW_P): NS-specific definition.
11554 * fringe.c (max_used_fringe_bitmap): Make public.
11555 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11556 (getloadavg): Use NeXT code under descendant OS's.
11557 * image.c (includes and header section, x_create_bitmap_from_data)
11558 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11559 (image_background_transparent, x_clear_image_1)
11560 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11561 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11562 (x_to_xcolors, x_from_xcolors, x_disable_image)
11563 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11564 other GUIs, including XPM support using code originally written for
11565 Carbon GUI.
11566 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11567 using NS API.
11568 (image_ascent): Use font metrics macros instead of direct struct field
11569 access.
11570 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11571 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11572 Also, handle NS as GTK for menu bar purposes.
11573 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11574 toolkit where they differ.
11575 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11576 use cachelist, still needed under NS.
11577 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11578 (struct widget_value): Define it here for menu.c.
11579 * keymap.c (includes): Include modifier internals.
11580 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11581 NS.
11582 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11583 support for preferring sequences using certain modifiers, specified by
11584 the FIRSTONLY argument.
11585 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11586 under NS GNUstep implementation.
11587 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11588 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11589 * menu.c: Include nsterm.h under NS.
11590 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11591 (free_menubar_widget_tree_value, update_submenu_strings)
11592 (find_and_call_menu_selection): Treat NS as X and NT.
11593 (find_and_return_menu_selection): New function, used for popup menus.
11594 * nsgui.h:
11595 * nsterm.h:
11596 * nsfns.m:
11597 * nsimage.m:
11598 * nsmenu.m:
11599 * nsselect.m:
11600 * nsterm.m: New files.
11601 * process.c (wait_reading_process_output): Under NS, call ns_select()
11602 instead of plain select().
11603 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11604 beginning of buffer.
11605 * sysselect.h (init_process): Rename when compiling under Cocoa to
11606 avoid name conflict.
11607 * termhooks.h (display_info): Add ns_display_info to union.
11608 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11609 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11610 COCOA environment.
11611 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11612 unexec() signature. (Note, this will dump, but the resulting file
11613 crashes; unexosx is used instead; keeping around for reference and
11614 possible aid in getting dump working under GNUstep.)
11615 * w32gui.h (button_type, widget_value): Remove definitions (now in
11616 keyboard.h).
11617 * window.c: Include nsterm.h when compiling under NS.
11618 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11619 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11620 other GUI windowing systems.
11621 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11622 GTK.
11623 (x_consider_frame_title): Under NS, set icon type and frame
11624 modified-state indicator; use ns_set_name_as_filename() when using
11625 formatted title.
11626 (update_window_cursor): Make public when compiling under NS.
11627 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11628 (hourglass_atimer, Vhourglass_delay
11629 * xfaces.c (header section, init_frame_faces, clear_font_table)
11630 (defined_color, unload_color, x_face_list_fonts)
11631 (prepare_face_for_display): Add NS support parallel to other GUIs.
11632 Emulate GCs like other non-X GUIs.
11633 (split_font_name): Don't lowercase font name under NS.
11634 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11635 under NS.
11636 * s/darwin.h: Add support for compilation under NS.
11637
116382008-07-15 Jason Rumney <jasonr@gnu.org>
11639
11640 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11641 (w32_show_hourglass): Rename from show_hourglass.
11642 (w32_hide_hourglass): Rename from hide_hourglass.
11643 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11644 (Vhourglass_delay): Declare extern.
11645 (hourglass_started): Remove.
11646
11647 * xdisp.c (Vhourglass_delay): Remove static.
11648 (hourglass_started, start_hourglass, cancel_hourglass):
11649 Don't include these versions on WINDOWSNT.
11650
116512008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11652
11653 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11654 variables (formerly in xfns.c).
11655 (show_hourglass, hide_hourglass): New prototypes (same).
11656 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11657 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11658 in xfns.c).
11659 (syms_of_xdisp): Declare/initialize display-hourglass,
11660 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11661 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11662 formerly in xfns.c.
11663 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11664 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11665 (start_hourglass, cancel_hourglass): Remove.
11666 (show_hourglass, hide_hourglass): Remove prototypes and static
11667 modifiers.
11668 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11669 hourglass_atimer, hourglass_shown_p declaration/initialization.
11670 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11671 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11672 (start_hourglass, cancel_hourglass): Remove.
11673 (show_hourglass, hide_hourglass): Remove prototypes and static
11674 modifiers.
11675 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11676 hourglass_atimer, hourglass_shown_p declaration/initialization.
11677 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11678 (DEFAULT_HOURGLASS_DELAY): Remove.
11679 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11680 hourglass_shown_p declaration/initialization.
11681
116822008-07-14 Jason Rumney <jasonr@gnu.org>
11683
11684 * w32fns.c (w32_get_arg): Remove wrapper function.
11685 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11686 directly.
11687 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11688
116892008-07-14 Kenichi Handa <handa@m17n.org>
11690
11691 * xfont.c (xfont_open): Add workaround for X's bug.
11692
116932008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11694
11695 * fontset.c: Include <stdio.h> unconditionally.
11696
116972008-07-13 Michael Albinus <michael.albinus@gmx.de>
11698
11699 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11700 for filtering.
11701
117022008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11703
11704 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11705
11706 * m/macppc.h:
11707 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11708
11709 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11710 (SPECIAL_EMACS_INT):
11711 * m/ia64.h (SPECIAL_EMACS_INT):
11712 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11713 * s/gnu.h (NLIST_STRUCT):
11714 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11715 * s/gnu-linux.h (LINUX):
11716 * s/msdos.h (HAVE_FACES):
11717 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11718
11719 * systty.h:
11720 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11721 anymore.
11722
117232008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11724
11725 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11726 always defined as int.
11727
11728 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11729 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11730 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11731 * s/freebsd.h (HAVE_WAIT_HEADER):
11732 * s/bsd-common.h (HAVE_UNION_WAIT):
11733 * s/aix4-2.h (HAVE_WAIT_HEADER):
11734 * m/mips.h (HAVE_UNION_WAIT):
11735 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11736 (COFF, static): Do not define, they are undefined later in the file.
11737
11738 * process.c (update_status): Don't use a union.
11739 (status_convert):
11740 (sigchld_handler): Use int instead of WAITTYPE.
11741
117422008-07-12 Chong Yidong <cyd@stupidchicken.com>
11743
11744 * indent.c (Fvertical_motion): Restore hscroll before moving to
11745 goal column.
11746
117472008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11748
11749 * lisp.h: Remove left over code.
11750
117512008-07-11 Andreas Schwab <schwab@suse.de>
11752
11753 * lisp.h: Fix logic in last change.
11754
11755 * menu.h: New file.
11756 * menu.c: Include it.
11757 * xmenu.c: Likewise.
11758 * Makefile.in: Update dependencies.
11759
117602008-07-11 Kenichi Handa <handa@m17n.org>
11761
11762 * fontset.c (fontset_from_font): Cancel the previous change.
11763
117642008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11765
11766 * lisp.h:
11767 * w32heap.c:
11768 * emacs.c:
11769 * alloc.c: Replace all references of NO_UNION_TYPE with
11770 USE_LISP_UNION_TYPE.
11771
11772 * m/xtensa.h (NO_UNION_TYPE):
11773 * m/vax.h (NO_UNION_TYPE):
11774 * m/template.h (NO_UNION_TYPE):
11775 * m/sparc.h (NO_UNION_TYPE):
11776 * m/mips.h (NO_UNION_TYPE):
11777 * m/macppc.h (NO_UNION_TYPE):
11778 * m/m68k.h (NO_UNION_TYPE):
11779 * m/iris4d.h (NO_UNION_TYPE):
11780 * m/intel386.h (NO_UNION_TYPE):
11781 * m/ibms390x.h (NO_UNION_TYPE):
11782 * m/ibms390.h (NO_UNION_TYPE):
11783 * m/ibmrs6000.h (NO_UNION_TYPE):
11784 * m/ia64.h (NO_UNION_TYPE):
11785 * m/hp800.h (NO_UNION_TYPE):
11786 * m/arm.h (NO_UNION_TYPE):
11787 * m/amdx86-64.h (NO_UNION_TYPE):
11788 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11789 defining it the same.
11790
117912008-07-10 Chong Yidong <cyd@stupidchicken.com>
11792
11793 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11794
117952008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11796
11797 * fileio.c:
50426a04 11798 * sysdep.c:
aac0c6e3
MR
11799 * systty.h:
11800 * m/ibmrs6000.h:
11801 * m/iris4d.h:
11802 * s/aix4-2.h:
11803 * s/freebsd.h:
11804 * s/gnu-linux.h:
11805 * s/hpux10-20.h:
11806 * s/hpux11.h:
11807 * s/netbsd.h:
11808 * s/sol2-3.h:
11809 * s/sol2-4.h:
11810 * s/sol2.h:
11811 * s/usg5-4.h:
11812 * s/vms.h: Remove references to unused variables.
11813
118142008-07-10 Andreas Schwab <schwab@suse.de>
11815
11816 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11817 pattern before matching the generic family.
11818
118192008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11820
11821 * unexec.c:
11822 * s/vms.h:
11823 * s/usg5-4-2.h:
11824 * s/sol2-5.h:
11825 * s/freebsd.h:
11826 * s/darwin.h: Remove dead code.
11827
11828 * m/template.h:
11829 * m/sparc.h:
11830 * m/mips.h:
11831 * m/m68k.h:
11832 * m/iris4d.h:
11833 * m/intel386.h:
11834 * m/ibms390x.h:
11835 * m/ibms390.h:
11836 * m/ia64.h:
11837 * m/hp800.h:
11838 * m/arm.h:
11839 * m/amdx86-64.h: Remove dead code and references to unused
11840 and compiler defined symbols.
11841
11842 * unexmips.c:
11843 * unexelf.c: Remove references to desupported systems.
11844
11845 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11846
11847 * m/powermac.h: Remove boilerplate comments.
11848 (NO_REMAP): Remove unused definition.
11849
11850 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11851 define them.
11852
118532008-07-10 Kenichi Handa <handa@m17n.org>
11854
11855 * xfont.c (xfont_open): Log the reason of failure.
11856
118572008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11858
11859 * fontset.c (fontset_get_font_group):
11860 * font.c (font_check_otf): Specify argument types.
11861
118622008-07-09 Kenichi Handa <handa@m17n.org>
11863
11864 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11865 non-ASCII char is found.
11866
11867 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11868 (reorder_font_vector): Change the arg preferred_family to font.
11869 Prefer the spec matching with font.
11870 (fontset_get_font_group): New function.
11871 (fontset_find_font): Change the format of an element of a realized
11872 fontset. Use fontset_get_font_group.
11873 (fontset_font): Try the current fontset, the default fontset, the
11874 fallbacks of the current fontset, and the fallbacks of the default
11875 fontset in this order.
11876 (face_for_char): Delete the shortcut to use the current font.
11877 (fontset_from_font): Don't set fonts for Latin in the fontset.
11878
11879 * font.h (font_make_object, font_match_p): Adjust prototypes.
11880
11881 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11882
11883 * font.c (font_make_object): New arg entity and pixelsize.
11884 (font_check_otf_features, font_check_otf): New functions.
11885 (font_match_p): Check :lang, :script, and :otf properties.
11886
11887 * xfont.c (xfont_open): Adjust it for the change of
11888 font_make_object.
11889 (xfont_text_extents): Fix initial setting of metrics.
11890
11891 * ftfont.c (struct ftfont_info): New member index, delete member
11892 fc_charset_idx. Make the member order compatible with struct
11893 xftfont_info.
11894 (fc_charset_table): Change charset names to registry names.
11895 (ftfont_pattern_entity): Delete the args registry and
11896 fc_charset_idx. Change the value of :font-entity property
11897 to (FONTNAME . INDEX). Always set :registry property to
11898 `iso10646-1'.
11899 (struct ftfont_cache_data): New struct.
11900 (ftfont_lookup_cache): New arg for_face.
11901 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11902 (ftfont_driver): Set the member otf_capability.
11903 (ftfont_get_charset): Adjust it for the change of
11904 fc_charset_table.
11905 (OTF_TAG_SYM): New macro.
11906 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11907 for the change of fc_charset_table.
11908 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11909 ftfont_pattern_entity. Add FC_INDEX to objset.
11910 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11911 and ftfont_pattern_entity.
11912 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11913 font_make_object, struct ftfont_info.
11914 (ftfont_has_char): Use ftfont_get_fc_charset.
11915 (ftfont_otf_features, ftfont_otf_capability): New functions.
11916 (ftfont_shape): Use ftfont_get_otf.
11917 (ftfont_text_extents): Fix initial setting of metrics.
11918
11919 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11920 member order compatible with struct ftfont_info.
11921 (xftfont_open): Add FC_CHARSET to the pattern. Set
11922 xftfont_info->ft_size. Don't unlock the face. Check BDF
11923 properties if appropriate.
11924 (xftfont_close): Unlock the face.
11925 (xftfont_anchor_point, xftfont_shape): Deleted.
11926 (syms_of_xftfont): Don't set members anchor_point and shape of
11927 xftfont_driver.
11928
11929 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11930 font_make_object.
11931
11932 * w32font.c (w32font_open): Adjust it for the change of
11933 font_make_object.
11934 (w32font_open_internal): Don't set properties of font_object here.
11935
119362008-07-08 Chong Yidong <cyd@stupidchicken.com>
11937
11938 * macfns.c (x_create_tip_frame):
11939 * w32fns.c (x_create_tip_frame):
11940 * xfns.c (x_create_tip_frame): Pass parameter argument to
11941 face-set-after-frame-default.
11942
11943 * xfaces.c (Finternal_merge_in_global_face): Save merged
11944 attributes for the default face back into the face vector.
11945
119462008-07-08 Andreas Schwab <schwab@suse.de>
11947
11948 * fontset.h: Declare fontset_from_font. Don't declare
11949 new_fontset_from_font and fontset_from_font_name.
11950 * xterm.c: Include "fontset.h".
11951 * Makefile.in (xterm.o): Update dependencies.
11952
119532008-07-08 Glenn Morris <rgm@gnu.org>
11954
11955 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11956 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11957
119582008-07-07 Chong Yidong <cyd@stupidchicken.com>
11959
11960 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11961 (x_set_frame_parameters): Don't bind it.
11962
119632008-07-07 Juanma Barranquero <lekktu@gmail.com>
11964
11965 * w32fns.c (map_w32_filename): Declare extern.
11966
119672008-07-07 Jason Rumney <jasonr@gnu.org>
11968
11969 * w32term.c (WS_EX_LAYERED): Define if not already.
11970
119712008-07-06 Chong Yidong <cyd@stupidchicken.com>
11972
11973 * xfaces.c (set_font_frame_param): Don't try to set the font
11974 parameter if it is still unspecified in the lface.
11975
119762008-07-05 Chong Yidong <cyd@stupidchicken.com>
11977
11978 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11979 face if it didn't already exist.
11980
11981 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11982
119832008-07-05 Andreas Schwab <schwab@suse.de>
11984
11985 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11986
119872008-07-05 Chong Yidong <cyd@stupidchicken.com>
11988
11989 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11990 word-wrapping.
11991 (IT_DISPLAYING_WHITESPACE): New macro.
11992 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11993 when word-wrapping. Simplify word-wrapping logic. Use correct
11994 pixel positions when saving copies of the iterator.
11995 (display_line): Use proper wrap point if the last character on a
11996 line was preceded by whitespace.
11997
119982008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11999
12000 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12001
120022008-07-04 Kenichi Handa <handa@m17n.org>
12003
12004 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12005
12006 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12007
120082008-07-02 Jason Rumney <jasonr@gnu.org>
12009
12010 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12011 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12012
12013 * xdisp.c (next_element_from_display_vector): Move assignment out
12014 of if statement.
12015
120162008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12017
12018 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12019
12020 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12021 (syms_of_fileio): Initialize and export them.
12022 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12023
12024 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12025 (Fsystem_move_file_to_trash): New function.
12026 (syms_of_w32fns): Export it to lisp.
12027
120282008-07-01 Jason Rumney <jasonr@gnu.org>
12029
12030 * w32font.c (w32font_text_extents): Don't count overhang as part
12031 of width.
12032
120332008-06-30 Miles Bader <miles@gnu.org>
12034
12035 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12036 Add `avoid_cursor_p' field.
12037
12038 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12039 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12040 (append_glyph, append_composite_glyph, produce_image_glyph)
12041 (append_stretch_glyph): Initialize avoid_cursor_p.
12042 (get_it_property): Rename from `get_line_height_property'.
12043 (x_produce_glyphs): Use get_it_property.
12044 (handle_line_prefix, push_display_prop): New functions.
12045 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12046 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12047 New variables.
12048 (syms_of_xdisp): Initialize them.
12049
120502008-06-30 Kenichi Handa <handa@m17n.org>
12051
12052 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12053 XftDefaultSubstitute (they are called in XftFontMatch).
12054 (xftfont_open): Fix args to ftfont_font_format.
12055
12056 * ftfont.c (fc_charset_table): New member lang.
12057 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12058 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12059 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12060 (ftfont_open): Fix args to ftfont_font_format.
12061 (ftfont_font_format): New arg filename.
12062
120632008-06-30 Chong Yidong <cyd@stupidchicken.com>
12064
12065 * xfaces.c (Finternal_merge_in_global_face): If default face was
12066 modified, realize it again. Update the font face attribute.
12067
120682008-06-29 Jason Rumney <jasonr@gnu.org>
12069
12070 * w32term.c (x_set_frame_alpha): Fix logic.
12071
120722008-06-29 Kenichi Handa <handa@m17n.org>
12073
12074 * fontset.c (Finternal_char_font): Return font-object instead of
12075 font-name.
12076
12077 * composite.c (get_composition_id): Fix the width calculation for TAB.
12078
120792008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12080
12081 * indent.c (Fvertical_motion): Properly handle float column arg.
12082
120832008-06-28 Jason Rumney <jasonr@gnu.org>
12084
12085 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12086 (pfnSetLayeredWindowAttributes): New function pointer.
12087 (w32_initialize): Initialize it when supported.
12088 (x_set_frame_alpha): New function.
12089
12090 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12091 (w32_frame_parm_handlers): Set alpha handler.
12092
12093 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12094
120952008-06-27 Jason Rumney <jasonr@gnu.org>
12096
12097 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12098 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12099 (w32_to_x_charset, x_to_w32_charset)
12100 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12101 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12102 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12103 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12104 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12105 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12106 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12107 (Qw32_charset_unicode): Remove.
12108 (syms_of_w32fns): Update for above changes.
12109
12110 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12111 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12112 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12113 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12114 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12115 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12116 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12117 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12118 (syms_of_w32font): Update for above changes.
12119
121202008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12121
12122 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12123 removed #if.
12124 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12125
121262008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12127 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12128
12129 * makefile.w32-in (LOCAL_FLAGS):
12130 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12131
12132 * sysdep.c (_spawnlp, _getpid):
12133 Declare with explicit _cdecl instead of _CRTAPI1.
12134
12135 * editfns.c (Fget_internal_run_time):
12136 Check for WINDOWSNT with #ifdef, not #if.
12137
121382008-06-26 Jason Rumney <jasonr@gnu.org>
12139
12140 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12141
12142 * w32term.c (x_draw_glyph_string_foreground)
12143 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12144 Use FONT_HANDLE macro.
12145 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12146
12147 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12148 (uniscribe_encode_char): Use FONT_HANDLE macro.
12149
12150 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12151 (w32font_text_extents): Use precast w32_font.
12152 (w32font_close): Free cached metrics.
12153 (w32font_open_internal): Allocate space for name on stack.
12154
121552008-06-26 Chong Yidong <cyd@stupidchicken.com>
12156
12157 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12158
121592008-06-26 Jason Rumney <jasonr@gnu.org>
12160
12161 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12162 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12163
121642008-06-26 Juanma Barranquero <lekktu@gmail.com>
12165
12166 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12167
121682008-06-26 Jason Rumney <jasonr@gnu.org>
12169
12170 * w32bdf.c, w32bdf.h: Remove obsolete files.
12171
12172 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12173
12174 * w32gui.h: Don't include w32bdf.h.
12175 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12176 Remove obsolete font support.
12177
12178 * w32font.h (struct w32font_info): Remove compat_w32_font.
12179 Add hfont member.
12180 (FONT_COMPAT): Remove obsolete macro.
12181
12182 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12183 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12184 (w32font_open_internal): Remove compat code. Set new hfont member.
12185 (Fx_select_font): Use new hfont member.
12186
12187 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12188 (uniscribe_encode_char): Use new hfont member.
12189
12190 * w32term.c (x_draw_glyph_string_foreground)
12191 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12192 (x_draw_glyph_string): Use metrics in w32font_info.
12193
121942008-06-26 Kenichi Handa <handa@m17n.org>
12195
12196 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12197
121982008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12199
12200 * unexnext.c:
12201 * m/ews4800.h:
12202 * m/hp9000s300.h:
12203 * m/ibm370aix.h:
12204 * m/mips-siemens.h:
12205 * m/ncr386.h:
12206 * m/next.h:
12207 * m/pmax.h:
12208 * m/powerpcle.h:
12209 * m/tandem-s2.h:
12210 * s/386bsd.h:
12211 * s/bsd386.h:
12212 * s/bsd4-1.h:
12213 * s/bsd4-2.h:
12214 * s/bsdos2-1.h:
12215 * s/bsdos2.h:
12216 * s/bsdos3.h:
12217 * s/bsdos4.h:
12218 * s/nextstep.h:
12219 * s/ultrix4-3.h:
12220 * s/usg5-0.h:
12221 * s/usg5-2-2.h:
12222 * s/usg5-2.h:
12223 * s/usg5-4-3.h:
12224 * s/ux4800.h:
12225 * s/uxpds.h:
12226 * s/uxpv.h: Remove support for obsolete systems.
12227 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12228 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12229 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12230 Remove, insert contents in s/aix4-2.h.
12231 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12232 * s/bsd4-3.h: Rename to ...
12233 * s/bsd-common.h: ... this.
12234 * data.c:
12235 * doc.c:
12236 * ecrt0.c:
12237 * emacs.c:
12238 * fileio.c:
12239 * floatfns.c:
12240 * keyboard.c:
12241 * mem-limits.h:
12242 * print.c:
12243 * process.c:
12244 * sysdep.c:
12245 * syssignal.h:
12246 * systty.h:
12247 * syswait.h:
12248 * term.c:
12249 * unexec.c:
12250 * unexelf.c:
12251 * unexhp9k800.c:
12252 * m/hp800.h:
12253 * m/ibmrs6000.h:
12254 * m/mips.h:
12255 * m/vax.h:
12256 * s/darwin.h:
12257 * s/freebsd.h:
12258 * s/gnu.h:
12259 * s/ms-w32.h:
12260 * s/msdos.h:
12261 * s/netbsd.h:
12262 * s/template.h: Remove references to obsolete variables.
12263
12264 * Makefile.in: Add dependencies for all unexec files.
12265 (admindir): Remove unused variable.
12266 (UNEXEC_SRC): Remove references.
12267
122682008-06-25 Chong Yidong <cyd@stupidchicken.com>
12269
12270 * xfns.c (x_default_font_parameter): If Xft is available, first
12271 try Monospace-12 for the default font.
12272
122732008-06-25 Jason Rumney <jasonr@gnu.org>
12274
12275 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12276
122772008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12278
12279 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12280
12281 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12282
122832008-06-25 Juanma Barranquero <lekktu@gmail.com>
12284
12285 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12286 <scroll-conservatively>: Fix typo in docstring.
12287
12288 * xselect.c (Fx_send_client_event): Doc fix.
12289
122902008-06-25 Kenichi Handa <handa@m17n.org>
12291
12292 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12293
12294 * font.c (font_parse_fcname): Remove unused variables.
12295 (font_sort_entites): Delete the arg SPEC. Caller changed.
12296 Fix for the case of ! best_only.
12297 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12298
12299 * lisp.h (Fstring_to_unibyte): EXFUN it.
12300
12301 * character.h (str_to_unibyte): Extern it.
12302
12303 * character.c (str_to_unibyte): New function.
12304
12305 * fns.c (Fstring_to_unibyte): New function.
12306 (syms_of_fns): Defsubr it.
12307
123082008-06-24 Kenichi Handa <handa@m17n.org>
12309
12310 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12311 DPI too.
12312 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12313
123142008-06-24 Andreas Schwab <schwab@suse.de>
12315
12316 * Makefile.in (${lispsource}loaddefs.el): Rename from
12317 ../lisp/loaddefs.el.
12318 (bootstrap-clean): Do what distclean does but don't remove
12319 Makefile.
12320 (distclean): Depend on bootstrap-clean and remove Makefile.
12321
123222008-06-24 Chong Yidong <cyd@stupidchicken.com>
12323
12324 * buffer.h (struct buffer): New member word_wrap.
12325
12326 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12327 word-wrap.
12328 (init_buffer_once): Initialize them.
12329
12330 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12331 line_wrap enum possessing three possible values.
12332
12333 * termopts.h: Replace truncate_partial_width_windows with
12334 Vtruncate_partial_width_windows.
12335
12336 * dispnew.c (direct_output_for_insert): Avoid direct output when
12337 inserting a space with word wrap on.
12338
12339 * indent.c (compute_motion): Obey integer values of
12340 truncate-partial-width-windows.
12341
12342 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12343 replacing truncate_partial_width_windows.
12344 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12345 truncate only if the window width is below that integer.
12346 (start_display, resize_mini_window, produce_stretch_glyph)
12347 (display_string, move_it_in_display_line_to): Use line_wrap.
12348 (back_to_previous_visible_line_start, reseat_1): Reset
12349 string_from_display_prop_p.
12350 (display_line): Extend default face to end of line when wrapping.
12351
123522008-06-24 Kim F. Storm <storm@cua.dk>
12353
12354 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12355 to wrap continued lines at word boundaries.
12356
123572008-06-24 Jason Rumney <jasonr@gnu.org>
12358
12359 * font.c (Ffont_face_attributes): Multiply pixel size before point
12360 conversion to avoid multiplying rounding error.
12361
123622008-06-23 Jason Rumney <jasonr@gnu.org>
12363
12364 * w32term.c (x_draw_glyph_string_background)
12365 (x_draw_glyph_string): Remove old bdf font code.
12366
12367 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12368
123692008-06-22 Kenichi Handa <handa@m17n.org>
12370
12371 * font.c (font_find_for_lface): Try the adstyle specified in
12372 the property of LFACE_FONT of LFACE (if any).
12373
123742008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12375 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12376
12377 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12378
123792008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12380
12381 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12382 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12383 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12384 (witness-emacs): Remove.
12385 (lisp, shortlisp): Move loaddefs.el earlier.
12386 (mostlyclean): Forget about witness-emacs.
12387
123882008-06-22 Glenn Morris <rgm@gnu.org>
12389
12390 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12391 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12392
123932008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12394
12395 * Makefile.in (PRECOMP): Remove.
12396 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12397 (witness-emacs): Run `compile-first'.
12398 (.el.elc): Use the new compile-onefile target.
12399
124002008-06-21 Kenichi Handa <handa@m17n.org>
12401
12402 * xftfont.c (xftfont_open): Handle QCembolden only when
12403 FC_EMBOLDEN is defined.
12404
124052008-06-21 Andreas Schwab <schwab@suse.de>
12406
12407 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12408 (.el.elc): Likewise.
12409
124102008-06-21 Miles Bader <miles@gnu.org>
12411
12412 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12413 build dir, not the lisp source dir.
12414
124152008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12416
12417 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12418 (bootstrapclean): Remove.
12419 (.el.elc): New rule.
12420 (PRECOMP): New var.
12421 (../lisp/subdirs.el): Remove.
12422 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12423 (witness-emacs): New target.
12424 (mostlyclean): Remove witness-emacs as well.
12425 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12426 Add witness-emacs dependency.
12427
124282008-06-20 Chong Yidong <cyd@stupidchicken.com>
12429
12430 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12431 defined by the font.
12432
124332008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12434
12435 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12436 (bootstrap-clean): New target that keeps TAGS around.
12437 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12438 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12439
124402008-06-20 Jason Rumney <jasonr@gnu.org>
12441
12442 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12443 Remove obsolete font code.
12444
12445 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12446 to determine language support.
12447
124482008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12449
12450 * sysdep.c (cfsetspeed): New fun extracted from the code.
12451 (cfmakeraw): Move before first use.
12452
124532008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12454
12455 * sysdep.c (cfmakeraw): Provide fallback implementation.
12456 (serial_configure): Provide fallback implementation of cfsetspeed.
12457
124582008-06-20 Kenichi Handa <handa@m17n.org>
12459
12460 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12461 the pattern.
12462
12463 * fontset.c (fontset_from_font): Copy font_spec before changing
12464 the elements.
12465
12466 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12467
124682008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12469
12470 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12471 for explicit `font' parameters.
12472
12473 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12474
124752008-06-19 Kenichi Handa <handa@m17n.org>
12476
12477 * frame.c: Include <ctype.h>.
12478 (x_set_font_backend): Allow spacing characters in the X resource
12479 for FontBackend.
12480
124812008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12482
12483 * w32fns.c, xfns.c (Qfont_param): New var.
12484 (syms_of_w32fns): Initialize it.
12485 (x_default_font_parameter): Record explicit `font' into
12486 `font-parameter'.
12487
124882008-06-18 Kenichi Handa <handa@m17n.org>
12489
12490 * font.c (font_parse_xlfd): Fix previous change.
12491 (font_parse_fcname): Don't use :fc-unknown-spec.
12492 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12493 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12494 (font_add_log): Prepend the driver name to the resulting fonts.
12495
12496 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12497 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12498 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12499
12500 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12501 (QCembolden): New variables.
12502 (syms_of_xftfont): DEFSYM them.
12503 (xftfont_open): Call XftFontMatch. Don't trust the result of
12504 XftTextExtents8 if the pixel_size is less than 5.
12505
125062008-06-18 Andreas Schwab <schwab@suse.de>
12507
12508 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12509 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12510
125112008-06-18 Jason Rumney <jasonr@gnu.org>
12512
12513 * w32font.c (w32font_list, w32font_match): Add logging.
12514
12515 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12516
125172008-06-17 Chong Yidong <cyd@stupidchicken.com>
12518
12519 * font.c (font_parse_fcname): Store divider characters for
12520 unknown-spec list. For known key symbols, intern using correct
12521 symbol name.
12522
125232008-06-17 Kenichi Handa <handa@m17n.org>
12524
12525 * xfaces.c (realize_default_face): If the frame is not on window
12526 system, set the fontset of face to nil.
12527
125282008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12529
12530 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12531
125322008-06-16 Juanma Barranquero <lekktu@gmail.com>
12533
12534 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12535 (build_font_name_from_vector): Delete externs.
12536
12537 * xfaces.c (struct font_name): Don't declare.
12538
125392008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12540
12541 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12542
125432008-06-16 Chong Yidong <cyd@stupidchicken.com>
12544
12545 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12546
125472008-06-16 Juanma Barranquero <lekktu@gmail.com>
12548
12549 * font.c (Ffont_spec): Fix usage in docstring.
12550 (Ffont_face_attributes): Doc fix.
12551
125522008-06-16 Andreas Schwab <schwab@suse.de>
12553
12554 * font.c (Ffont_face_attributes): Fix definition.
12555
125562008-06-16 Jason Rumney <jasonr@gnu.org>
12557
12558 * font.h (font_style_symbolic_from_value): Remove.
12559
12560 * font.c (font_style_symbolic_from_value): Remove.
12561 (font_style_symbolic): Revert to pre 2008-06-13 version.
12562
12563 * w32font.c (w32_to_fc_weight): New function.
12564 (w32font_full_name, logfont_to_fcname): Use it.
12565
125662008-06-16 Kenichi Handa <handa@m17n.org>
12567
12568 * font.c (font_check_object): Delete it.
12569 (font_clear_cache): Check if a font-object is alive.
12570 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12571 font-object to nil.
12572 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12573 (font_at): Don't call font_check_object.
12574 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12575
125762008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12577
12578 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12579
125802008-06-16 Chong Yidong <cyd@stupidchicken.com>
12581
12582 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12583
125842008-06-15 Chong Yidong <cyd@stupidchicken.com>
12585
12586 * font.c (font_parse_fcname): Only one decimal point.
12587 (font_unparse_fcname): Handle data in family and foundry indices
12588 as symbols, not strings.
12589 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12590
12591 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12592
12593 * font.h (font_unparse_gtkname): Add prototype.
12594
125952008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12596
12597 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12598
125992008-06-15 Andreas Schwab <schwab@suse.de>
12600
12601 * font.c (font_update_drivers): Fix crash when no drivers match.
12602
126032008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12604
12605 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12606 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12607
126082008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12609
12610 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12611
126122008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12613
12614 * process.c (Fserial_process_configure, Fprocess_send_eof):
12615 Use EQ to compare Lisp_Objects.
12616
126172008-06-13 Jason Rumney <jasonr@gnu.org>
12618
12619 * w32fns.c (Fw32_select_font): Remove old font API function.
12620
12621 * w32font.c (logfont_to_fcname): New function.
12622 (Fx_select_font): New font dialog function compatible with
12623 GTK/fontconfig version.
12624
12625 * font.c (font_style_symbolic_from_value): New function.
12626 (font_style_symbolic): Use it.
12627
12628 * font.h (font_style_symbolic_from_value): Declare new function.
12629
126302008-06-13 Juanma Barranquero <lekktu@gmail.com>
12631
12632 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12633 <font-width-table>: Fix typos in docstrings.
12634
126352008-06-13 Daniel Engeler <engeler@gmail.com>
12636
12637 These changes add serial port access.
12638 * process.c: Add HAVE_SERIAL.
12639 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12640 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12641 (list_processes_1, select_wrapper, Fstop_process)
12642 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12643 (status_notify): Modify to handle serial processes.
12644 [HAVE_SERIAL] (Fserial_process_configure)
12645 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12646 New functions.
12647 * process.h (struct Lisp_Process): Add `type'.
12648 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12649 New functions.
12650 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12651 serial ports.
b71ac3dd 12652 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12653 * w32.h: Add FILE_SERIAL.
12654 (struct _child_process): Add ovl_read, ovl_write.
12655
126562008-06-13 Kenichi Handa <handa@m17n.org>
12657
12658 * dispextern.h (enum lface_attribute_index): New member
12659 LFACE_FOUNDRY_INDEX.
12660
12661 * font.c (font_score): Delete arg alternate_families. Check only
12662 weight, slant, width, and size. Ignore the difference of alias
12663 style symbols.
12664 (font_sort_entites): Adjust for the above change. Reflect the
12665 order of font-driver to scores.
12666 (font_list_entities): Don't check alternate_familes here.
12667 (font_clear_prop): Handle foundry.
12668 (font_update_lface): Don't parse "foundry-family" form here.
12669 Handle FONT_FOUNDRY_INDEX.
12670 (font_find_for_lface): Likewise. Handle alternate families here.
12671 If registry is nil, try iso8859-1 and ascii-0.
12672 (font_open_for_lface): Pay attention to size in ENTITY.
12673 (font_open_by_name): Simplify by calling font_load_for_lface.
12674 (free_font_driver_list): Delete it.
12675 (font_update_drivers): Preserve the order of backends.
12676 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12677 of font_score and font_sort_entites.
12678 (font_update_sort_order): Likewise.
12679
12680 * xfaces.c (LFACE_FOUNDRY): New macro.
12681 (check_lface_attrs): Check foundry.
12682 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12683 (merge_face_vectors): Check foundry.
12684 (merge_face_ref): Likewise.
12685 (Finternal_set_lisp_face_attribute): Likewise.
12686 (x_update_menu_appearance): Likewise.
12687 (Finternal_get_lisp_face_attribute): Likewise.
12688 (lface_hash): Likewise.
12689 (lface_same_font_attributes_p): Likewise.
12690 (x_supports_face_attributes_p): Likewise.
12691 (tty_supports_face_attributes_p): Likewise.
12692 (Finternal_set_alternative_font_family_alist): Intern strings.
12693 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12694 (realize_default_face): Set LFACE_FOUNDRY (lface).
12695
12696 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12697 font-driver at first.
12698
12699 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12700
127012008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12702
12703 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12704
127052008-06-12 Jim Meyering <meyering@redhat.com>
12706
12707 Make unexec_free handle NULL the same way free does.
12708 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12709
127102008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12711
12712 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12713 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12714 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12715 (WEAK_ALIAS): Simplify.
12716 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12717 when searching a unibyte buffer.
12718
127192008-06-12 Chong Yidong <cyd@stupidchicken.com>
12720
12721 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12722
127232008-06-12 Juanma Barranquero <lekktu@gmail.com>
12724
12725 * w32font.c: Include ctype.h.
12726
127272008-06-11 Jason Rumney <jasonr@gnu.org>
12728
12729 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12730 misreported as space.
12731 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12732 as aliases for registry iso10646-1.
12733
127342008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12735
12736 * buffer.c (clone_per_buffer_values): Skip `name'.
12737
127382008-06-11 Chong Yidong <cyd@stupidchicken.com>
12739
12740 * font.c (font_parse_fcname): Fix last change; accept decimal
12741 points in font size.
12742
127432008-06-10 Jason Rumney <jasonr@gnu.org>
12744
12745 * w32uniscribe.c (add_opentype_font_name_to_list):
12746 Skip non unicode fonts.
12747
127482008-06-10 Chong Yidong <cyd@stupidchicken.com>
12749
12750 * xfns.c (Fx_font_dialog): New function.
12751
12752 * gtkutil.c (xg_dialog_response_cb): Rename from
12753 xg_file_response_callback.
12754 (pop_down_dialog): Rename from pop_down_file_dialog.
12755 (xg_get_file_name): Callers changed.
12756 (xg_get_font_name): New function.
12757
12758 * gtkutil.h (xg_get_font_name): Insert prototype.
12759
127602008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12761
12762 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12763 x_underline_minimum_display_offset.
12764 (syms_of_xdisp): Declare it here rather than in xterm.c.
12765 * dispextern.h (underline_minimum_offset): Declare it.
12766 * w32term.c (x_draw_glyph_string): Use it.
12767 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12768 (syms_of_xterm): Don't declare it any more.
12769 (x_draw_glyph_string): Adjust to the new name.
12770
8719abec 127712008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12772
12773 * xterm.c (x_underline_minimum_display_offset): New var.
12774 (x_draw_glyph_string): Use it.
12775 (syms_of_xterm): Declare it.
12776
127772008-06-10 Chong Yidong <cyd@stupidchicken.com>
12778
12779 * font.c (font_parse_fcname): Accept GTK-style font names too.
12780
127812008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12782
12783 * dired.c (file_name_completion): Don't return t if the match is exact
12784 but with different capitalization.
12785 * minibuf.c (Ftry_completion): Simplify.
12786
12787 * window.c (Vwindow_point_insertion_type): New var.
12788 (set_window_buffer): Use it.
12789 (syms_of_window): Init and export it to Lisp.
12790
127912008-06-10 Kenichi Handa <handa@m17n.org>
12792
12793 * font.h (font_intern_prop): Prototype adjusted.
12794
12795 * font.c (font_intern_prop): New arg force_symbol.
12796 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12797 Adjust for the change of font_intern_prop.
12798
12799 * ftfont.c (ftfont_pattern_entity):
12800 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12801 (w32_registry):
12802 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12803 the change of font_intern_prop.
12804
128052008-06-09 Juanma Barranquero <lekktu@gmail.com>
12806
12807 * w32menu.c (digest_single_submenu): Declare extern.
12808
128092008-06-09 Jason Rumney <jasonr@gnu.org>
12810
12811 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12812
12813 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12814 (parse_single_submenu): Remove.
12815 (digest_single_submenu): Remove.
12816 (syms_of_w32menu): Don't initialise variables that have moved
12817 to menu.c.
12818 (set_frame_menubar): Sync with version in xmenu.c.
12819 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12820
12821 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12822 Make static again.
12823
128242008-06-09 Jason Rumney <jasonr@gnu.org>
12825
12826 Changes to w32 files related to the move of common menu code
12827 to menu.c on 2008-06-08 by Chong Yidong.
12828
12829 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12830 defs to w32gui.h.
12831 (single_keymap_panes, push_menu_item, push_menu_pane):
12832 Make globally visible.
12833
12834 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12835 (local_free, malloc_widget_value, free_widget_value)
12836 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12837 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12838 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12839 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12840 (menu_items, menu_items_allocated, menu_items_used)
12841 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12842 (init_menu_items, finish_menu_items, discard_menu_items)
12843 (grow_menu_items, push_submenu_start, push_submenu_end)
12844 (push_left_right_boundary, push_menu_pane, push_menu_item)
12845 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12846 (free_menubar_widget_tree_value, parse_single_submenu)
12847 (update_submenu_strings): Remove functions.
12848 (xmalloc_widget_value): Remove and declare extern.
12849
12850 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12851 (OBJ1): Build it.
12852
12853 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12854 (local_heap, local_alloc, local_free, malloc_widget_value)
12855 (free_widget_value): Define here.
12856
128572008-06-09 Kenichi Handa <handa@m17n.org>
12858
12859 * font.h (Qascii_0): Extern it.
12860
12861 * font.c (Qascii_0): New variable.
12862 (syms_of_font): DEFSYM it.
12863 (font_open_by_name): If the registry "iso8859-1" fails, try also
12864 "ascii-0".
12865
12866 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12867
128682008-06-08 Kenichi Handa <handa@m17n.org>
12869
12870 * .gdbinit (xfont): New command.
12871
128722008-06-08 Andreas Schwab <schwab@suse.de>
12873
12874 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12875 * Makefile.in (menu.o): Update dependencies.
12876
12877 * Makefile.in (obj): Always add menu.o.
12878 * emacs.c (main): Always call syms_of_menu.
12879 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12880
128812008-06-08 Chong Yidong <cyd@stupidchicken.com>
12882
12883 * Makefile.in: Compile menu.c.
12884
12885 * lisp.h: Declare syms_of_menu.
12886
12887 * emacs.c (main): Call syms_of_menu.
12888
12889 * keyboard.h: Relocate platform-independent menu definitions from
12890 xmenu.c.
12891
12892 * menu.c: New file. Relocate platform-independent menu
12893 definitions from xmenu.c. Suggested by Adrian Robert.
12894
12895 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12896 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12897 (menu_items_used, menu_items_n_panes)
12898 (menu_items_submenu_depth): Move to keyboard.h.
12899 (init_menu_items, finish_menu_items, unuse_menu_items)
12900 (discard_menu_items, restore_menu_items, save_menu_items)
12901 (grow_menu_items, push_submenu_start, push_submenu_end)
12902 (push_left_right_boundary, push_menu_pane, push_menu_item)
12903 (keymap_panes, single_keymap_panes, single_menu_item)
12904 (list_of_panes, list_of_items, find_and_call_menu_selection)
12905 (xmalloc_widget_value, free_menubar_widget_value_tree)
12906 (parse_single_submenu, digest_single_submenu)
12907 (update_submenu_strings): Move to menu.c.
12908
129092008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12910
12911 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12912
129132008-06-06 Miles Bader <miles@gnu.org>
12914
12915 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12916 face, not frame default.
12917
129182008-06-05 Martin Rudalics <rudalics@gmx.at>
12919
12920 * window.c (pop_up_windows, pop_up_frames)
12921 (display_buffer_reuse_frames, Vpop_up_frame_function)
12922 (Vdisplay_buffer_function, Veven_window_heights)
12923 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12924 (Vspecial_display_function, Vsame_window_buffer_names)
12925 (Vsame_window_regexps, split_height_threshold)
12926 (Vsplit_window_preferred_function): Move those vars to window.el.
12927 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12928 (Fdisplay_buffer): Move those functions to window.el.
12929 (syms_of_window): Remove corresponding declarations.
12930 (display_buffer): New function.
12931 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12932 * dispnew.c (Flast_nonminibuf_frame): New function.
12933 * buffer.c (Fpop_to_buffer): Move to window.el.
12934
129352008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12936
12937 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12938
129392008-06-05 Kenichi Handa <handa@m17n.org>
12940
12941 * coding.c (detect_coding): Fix previous change.
12942 (detect_coding_system): Likewise.
12943
129442008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12945
12946 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12947
12948 * keymap.c (Vminibuffer_local_filename_must_match_map):
12949 Rename from Vminibuffer_local_must_match_filename_map.
12950 (syms_of_keymap):
12951 * minibuf.c (Fcompleting_read): Adjust accordingly.
12952 * commands.h: Rename declaration as well.
12953
129542008-06-05 Kenichi Handa <handa@m17n.org>
12955
12956 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12957 family name.
12958 (Ffont_put): Likewise.
12959
12960 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12961 current font-spec.
12962
12963 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12964 is unspecified.
12965
12966 * xfaces.c (realize_x_face): If the font-related face attributes
12967 are the same as those of default face, realize a new fontset from
12968 default->fontset.
12969 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12970
129712008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12972
12973 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12974 (move_it_in_display_line): New wrapper.
12975
12976 * window.c (window_scroll_pixel_based_preserve_x)
12977 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12978 (window_scroll_pixel_based, window_scroll_line_based):
12979 Use them to preserve column positions.
12980 (syms_of_window): Initialize them.
12981
12982 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12983 (HPOS . VPOS) pair.
12984
12985 * dispextern.h (move_it_in_display_line): Declare.
12986
129872008-06-05 Juanma Barranquero <lekktu@gmail.com>
12988
12989 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12990 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12991 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12992
129932008-06-04 Juanma Barranquero <lekktu@gmail.com>
12994
12995 * window.c (Fset_window_parameter): Doc fix.
12996 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12997
129982008-06-04 Joakim Verona <joakim@verona.se>
12999
13000 * window.h (struct window): Add new member window_parameters.
13001
13002 * window.c (Fwindow_parameters, Fwindow_parameter)
13003 (Fset_window_parameter): New defuns.
13004 (syms_of_window): Defsubr the new defuns.
13005 (make_window): Initialize window_parameters to nil.
13006
130072008-06-04 John Paul Wallington <jpw@pobox.com>
13008
13009 * eval.c (Fdefmacro): Doc fix.
13010
130112008-06-04 Kenichi Handa <handa@m17n.org>
13012
13013 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13014 Be sure to call setup_coding_system when we find a proper coding system.
13015 (detect_coding_system): Fix handling of coding->head_ascii.
13016
130172008-06-03 Andreas Schwab <schwab@suse.de>
13018
13019 * font.c (font_prop_validate_spacing): Fix last change.
13020
130212008-06-03 Kenichi Handa <handa@m17n.org>
13022
13023 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13024 (font_parse_fcname): Fix handling of unknown key.
13025
13026 * xfont.c (xfont_list): Try an alias.
13027
13028 * charset.c (char_charset): Return NULL if the arg charset_list is
13029 specified and C doesn't belong to any of them.
13030
130312008-06-02 Chip Coldwell <coldwell@redhat.com>
13032
13033 * font.c (font_pixel_size): Don't take cdr of an integer.
13034
130352008-06-02 Jim Meyering <meyering@redhat.com>
13036
13037 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13038 * alloc.c (xfree): Return right away for a NULL arg.
13039 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13040 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13041 * mac.c (create_apple_event_from_event_ref): Likewise.
13042 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13043 Likewise.
13044 * doprnt.c (doprnt1): Likewise.
13045 * frame.c (frame): Likewise.
13046 * keyboard.c (wipe_kboard): Likewise.
13047 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13048 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13049 * term.c (tty_default_color_capabilities, maybe_fatal)
13050 (delete_tty): Likewise.
13051 * w16select.c (string): Likewise.
13052 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13053 * w32bdf.c (w32_free_bdf_font): Likewise.
13054 * w32fns.c (w32_unload_font): Likewise.
13055 * w32font.c (w32font_close): Likewise.
13056 * window.c (size_window): Likewise.
13057 * xselect.c (receive_incremental_selection): Likewise.
13058 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13059 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13060 * w32.c (stat): Likewise.
13061
13062 Remove useless if-before-free tests.
13063 * editfns.c (Fset_time_zone_rule): Likewise.
13064 * lread.c (nosuffix): Likewise.
13065 * ralloc.c (get_bloc): Likewise.
13066 * regex.c (reg_free): Likewise.
13067 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13068 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13069 * xsmfns.c (smc_save_yourself_CB): Likewise.
13070
130712008-06-02 Kenichi Handa <handa@m17n.org>
13072
13073 * font.c (font_find_for_lface): Handle float font size.
13074 (font_open_for_lface): Likewise.
13075
13076 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13077 comparing the properties.
13078
130792008-06-01 Jason Rumney <jasonr@gnu.org>
13080
13081 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13082 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13083 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13084 Don't add empty script list.
13085 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13086
130872008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13088
13089 * Makefile.in (dot, dotdot): Remove, update users.
13090 ".." has been used elsewhere in the file for a long time.
13091 (LIBXT_STATIC): Remove conditional based on unused variable.
13092
130932008-06-01 Miles Bader <miles@gnu.org>
13094
13095 * xfaces.c (Vface_remapping_alist): New variable.
13096 (syms_of_xfaces): Initialize it.
13097 (enum named_merge_point_kind): New type.
13098 (struct named_merge_point): Add `named_merge_point_kind' field.
13099 (push_named_merge_point): Make cycle detection respect different
13100 named-merge-point kinds.
13101 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13102 Remove face-name alias resolution.
13103 (lface_from_face_name): New definition using
13104 `lface_from_face_name_no_resolve'.
13105 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13106 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13107 (get_lface_attributes): New definition that layers face-remapping on
13108 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13109 (lookup_basic_face): New function.
13110 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13111 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13112 `get_lface_attributes'.
13113 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13114 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13115 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13116
13117 * xdisp.c (init_iterator): Pass base_face_id through
13118 `lookup_basic_face' when we actually use it as a face-id.
13119 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13120 DEFAULT_FACE_ID.
13121
13122 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13123 lookup the initial face-id.
13124
13125 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13126
131272008-06-01 Juanma Barranquero <lekktu@gmail.com>
13128
13129 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13130 (Fremove_text_properties): Fix typos in docstrings.
13131
131322008-05-31 Kenichi Handa <handa@m17n.org>
13133
13134 * font.c (font_list_entities): Fix the car part of data to be
13135 stored in the cache.
13136
13137 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13138
131392008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13140
13141 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13142 Add a `test' argument so another predicate than `equal' can be used.
13143 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13144 (map_char_table): Remove unused vars `c' and `i'.
13145 * lisp.h (Foptimize_char_table): Adjust declaration.
13146 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13147
131482008-05-30 Kenichi Handa <handa@m17n.org>
13149
13150 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13151 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13152 defined.
13153
131542008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13155
13156 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13157 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13158 frame-local settings for the same variable.
13159
131602008-05-30 Kenichi Handa <handa@m17n.org>
13161
13162 * fontset.c (Ffont_info): Move to font.c.
13163 (syms_of_fontset): Delete defsubr of Sfont_info.
13164
13165 * font.c (font_style_to_value, font_score): Delete casting of the
13166 args to xstcasecmp.
13167 (register_font_driver): Increment num_font_drivers only when
13168 registering the driver globally.
13169 (Ffont_info): Move from fontset.c. Handle a font object too.
13170 (syms_of_font): Defsubr Sfont_info.
13171
131722008-05-29 Kenichi Handa <handa@m17n.org>
13173
13174 * coding.h (enum define_coding_utf8_arg_index): New enum.
13175 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13176 coding_attr_utf_bom.
13177 (enum utf_bom_type): Rename from utf_16_bom_type.
13178 (struct utf_16_spec): Adjust for the above change.
13179 (struct coding_system): Add utf_8_bom in `spec' union.
13180
13181 * coding.c (CODING_UTF_8_BOM): New macro.
13182 (enum coding_category): Delete coding_category_utf_8, add
13183 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13184 coding_category_utf_8_sig.
13185 (CATEGORY_MASK_UTF_8): Delete it.
13186 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13187 (CATEGORY_MASK_UTF_8_SIG): New macros.
13188 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13189 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13190 CATEGORY_MASK_UTF_8_SIG.
13191 (CATEGORY_MASK_UTF_8): New macro.
13192 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13193 (detect_coding_utf_8): Check BOM.
13194 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13195 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13196 (encode_coding_utf_16): Likewise.
13197 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13198 (detect_coding, detect_coding_system): Handle utf-8-auto.
13199 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13200 (syms_of_coding): Fix setting up of Vcoding_category_table.
13201
132022008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13203
13204 * process.c (Faccept_process_output): If `millisec' is non-nil,
13205 `seconds' default to 0.
13206 (wait_reading_process_output): Also return non-nil if we read output
13207 from a non-running process.
13208
132092008-05-29 Jason Rumney <jasonr@gnu.org>
13210
13211 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13212 `raster' specified.
13213 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13214 in the uniscribe backend, but disallow any font that has no
13215 unicode subrange support.
13216
132172008-05-29 Juanma Barranquero <lekktu@gmail.com>
13218
13219 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13220 Fix typos in docstrings.
13221
132222008-05-29 Kenichi Handa <handa@m17n.org>
13223
13224 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13225 (Fx_family_fonts): Set frame correctly.
13226
132272008-05-28 Jason Rumney <jasonr@gnu.org>
13228
13229 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13230
132312008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13232
13233 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13234 calling build_annotations.
13235
132362008-05-28 Juanma Barranquero <lekktu@gmail.com>
13237
13238 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13239 (Fencode_coding_string):
13240 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13241 <latin-extra-code-table>: Fix typos in docstrings.
13242 (syms_of_coding) <coding-system-alist>: Doc fix.
13243 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13244
132452008-05-28 Kenichi Handa <handa@m17n.org>
13246
13247 * fontset.c (Ffont_info): Don't call font_close_object.
13248
13249 * font.c (font_parse_family_registry): Use Ffont_put to validate
13250 foundry and family.
13251 (font_delete_unmatched): Don't check spacing.
13252 (font_list_entities): Add spacing to the spec to list fonts.
13253
13254 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13255 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13256
13257 * coding.c (encode_coding_raw_text): Fix previous change.
13258 (encode_coding_object): When the dst_object is a buffer and is
13259 different from src_object, move gap to PT.
13260
132612008-05-27 Chong Yidong <cyd@stupidchicken.com>
13262
13263 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13264
132652008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13266
13267 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13268 all branches. Compute it differently.
13269
13270 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13271
132722008-05-27 Juanma Barranquero <lekktu@gmail.com>
13273
13274 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13275 into "else if () ... else ...".
13276
132772008-05-27 Jason Rumney <jasonr@gnu.org>
13278
13279 * w32font.c (w32font_open_internal): Determine if glyph indices
13280 are likely to work here.
13281
132822008-05-27 Chong Yidong <cyd@stupidchicken.com>
13283
13284 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13285 draw overlap glyphs with appropriate highlighting.
13286
132872008-05-27 Kenichi Handa <handa@m17n.org>
13288
13289 * xfont.c (xfont_open): Fix calculation of font->average_width.
13290
132912008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13292
13293 * casefiddle.c (casify_object): Try to guess better whether the
13294 argument is a byte or a char.
13295
132962008-05-26 Andreas Schwab <schwab@suse.de>
13297
13298 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13299 Always send multiples of format size.
13300
13301 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13302
133032008-05-26 Jason Rumney <jasonr@gnu.org>
13304
13305 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13306 (compute_metrics): Don't set failure if we just cleared the cache.
13307 (w32_weight_table): Remove unused variable.
13308 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13309 backwards compatibility.
13310
133112008-05-25 Kenichi Handa <handa@m17n.org>
13312
13313 * w32term.c (x_draw_glyph_string):
13314 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13315
13316 * xfaces.c: Delete unused function prototypes.
13317 (xstrlwr, font_frame): Delete them.
13318 (clear_face_cache): Delete unused variable.
13319
13320 * xftfont.c (xftfont_open): Delete unused variable.
13321 If underline_thickness is not 1, adjust underline_position.
13322
13323 * ftxfont.c (ftxfont_open): Delete unused variable.
13324
13325 * fontset.c (face_for_char): Optimize for the case of no charset
13326 property.
13327
13328 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13329 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13330 (otf_open, font_otf_capability, generate_otf_features)
13331 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13332 Comment out by surrounding "#if 0" and "#endif" for the moment.
13333 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13334 (syms_of_font): Codes for accessing above commented out.
13335
133362008-05-24 Eli Zaretskii <eliz@gnu.org>
13337
13338 * w32proc.c: Include dispextern.h.
13339
13340 * w32.c: Include dispextern.h.
13341
133422008-05-23 Juanma Barranquero <lekktu@gmail.com>
13343
13344 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13345 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13346 Fix typos in docstrings.
13347
133482008-05-23 Jason Rumney <jasonr@gnu.org>
13349
13350 * xsmfns.c: Remove includes that are already included by config.h.
13351
133522008-05-23 Kenichi Handa <handa@m17n.org>
13353
13354 * charset.c (Qemacs, charset_emacs): New variables.
13355 (char_charset): Fix for non-Unicode characters.
13356 (syms_of_charset): Define charset_emacs.
13357
13358 * w32term.c (x_draw_glyph_string): Be sure to update
13359 s->underline_thickness and s->underline_position. Be sure to draw
13360 underline within the current line area.
13361
13362 * xterm.c (x_draw_glyph_string): Be sure to update
13363 s->underline_thickness and s->underline_position. Be sure to draw
13364 underline within the current line area.
13365
13366 * fontset.c: Delete unused variables and add casting for char *
13367 throughout the file.
13368 (fontset_font): Try the fallback fonts of the current fontset
13369 before consulting the default fontset.
13370
13371 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13372
13373 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13374
133752008-05-22 Jason Rumney <jasonr@gnu.org>
13376
13377 * font.c: Don't include strings.h.
13378
13379 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13380
13381 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13382 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13383 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13384 to call xstrcasecmp.
13385
13386 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13387
13388 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13389
13390 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13391
13392 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13393
133942008-05-22 Kenichi Handa <handa@m17n.org>
13395
13396 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13397
13398 * font.c (font_prop_validate_style): Adjust for the format
13399 change of font_style_table.
13400
13401 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13402 two args.
13403
13404 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13405 two args.
13406
134072008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13408
13409 * minibuf.c (keys_of_minibuf): Delete.
13410 * lisp.h (keys_of_minibuf): Delete.
13411 * emacs.c (main): Don't call keys_of_minibuf.
13412
134132008-05-22 Kenichi Handa <handa@m17n.org>
13414
13415 * ftfont.c (ftfont_resolve_generic_family): Rename from
13416 ftfont_list_generic_family. Return a single family for each
13417 generic family.
13418 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13419 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13420 Call font_add_log.
13421 (ftfont_match): Call font_add_log.
13422
13423 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13424 (FONT_DEBUG): Define it.
13425 (font_add_log): Extern it.
13426 (font_assert): Rename from xassert.
13427
13428 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13429 (xfont_list_family): Call font_add_log.
13430 (xfont_match): Likewise.
13431 (memq_no_quit): Delete.
13432
13433 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13434 call of Ffont_xlfd_name.
13435
13436 * xfaces.c (struct table_entry, slant_table, weight_table)
13437 (swidth_table): Move to font.c.
13438
13439 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13440 xassert are changed to font_assert. Delete many unused variables.
13441 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13442 New variables.
13443 (struct table_entry): Move from xfaces.c and modified.
13444 (weight_table, slant_table, width_table): Move from xfaces.c and
13445 contents adjusted for the change of struct table_entry.
13446 (font_style_to_value, font_style_symbolic): Adjust for the
13447 format change of font_style_table.
13448 (font_parse_family_registry): Don't overwrite existing foundry and
13449 family of font_spec.
13450 (font_score): Fix calculation of diff for sizes.
13451 (font_sort_entites): Call font_add_log.
13452 (font_delete_unmatched): Return a newly created list.
13453 (font_list_entities): Fix previous change. Call font_add_log.
13454 (font_matching_entity, font_open_entity, font_close_entity):
13455 Call font_add_log.
13456 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13457 (Finternal_set_font_style_table): Delete.
13458 (BUILD_STYLE_TABLE): New macro.
13459 (build_style_table): New function.
13460 (Vfont_log, font_log_env_checked): New variables.
13461 (font_add_log): New function.
13462 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13463 Declare Lisp variables "font-weight-table", "font-slant-table",
13464 "font-width-table", and "font-log". Initialize font_style_table.
13465
134662008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13467
13468 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13469
134702008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13471 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13472
13473 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13474 (Vframe_alpha_lower_limit): New variable.
13475 (x_set_alpha): New function.
13476
13477 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13478
13479 * xfns.c (x-create-frame, Qalpha):
13480 Initialize the frame parameter `alpha'.
13481 * xterm.c (OPAQUE, OPACITY): New.
13482 (x_set_frame_alpha): New function.
13483 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13484
13485 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13486 * w32fns.c (w32_frame_parm_handlers): Likewise.
13487
134882008-05-20 Jason Rumney <jasonr@gnu.org>
13489
13490 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13491 truetype fonts to opentype list.
13492
134932008-05-20 Juanma Barranquero <lekktu@gmail.com>
13494
13495 * fontset.c (Ffontset_info): Doc fix.
13496 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13497 <ignore-relative-composition>: Fix typos in docstrings.
13498
13499 * font.c (syms-of-font) <font-encoding-alist>:
13500 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13501 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13502 (Ffont_otf_alternates): Doc fixes.
13503
135042008-05-20 Kenichi Handa <handa@m17n.org>
13505
13506 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13507 font.h through out the file.
13508 (FONT_DRIVERS): Rename from FONTOBJ.
13509 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13510 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13511
13512 * emacs.c (main): Call syms_of_font unconditionally.
13513
13514 * font.h (find_font_encoding): Extern it.
13515
13516 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13517 fontset.c.
194d44e7 13518 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13519 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13520 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13521 only when HAVE_WINDOW_SYSTEM is defined.
13522 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13523 when HAVE_WINDOW_SYSTEM is defined.
13524
13525 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13526 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13527
13528 * xfaces.c: Include font.h unconditionally.
13529 (merge_face_ref, merge_face_vectors)
13530 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13531
135322008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13533
13534 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13535 indirect_variable.
13536 * eval.c (lisp_indirect_variable): New fun.
13537 (Fuser_variable_p): Use it.
13538
135392008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13540
13541 * lisp.h (indirect_variable):
13542 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13543 Use Lisp_Symbol pointers rather than Lisp_Object.
13544 Adjust callers.
13545 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13546 To this end, change calling-convention.
13547
13548 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13549 if some non-hidden buffers are selected by string&pred.
13550
135512008-05-19 Chong Yidong <cyd@stupidchicken.com>
13552
13553 * process.c (wait_reading_process_output): Always check status
13554 when in batch mode.
13555
135562008-05-19 Kenichi Handa <handa@m17n.org>
13557
13558 * font.c (font_list_entities): Fix handling of cache.
13559 (font_matching_entity): Likewise.
13560
13561 * ftfont.c (cs_iso8859_1): Delete.
13562 (ft_face_cache): New variable.
13563 (struct ftfont_info): New member fc_charset_idx.
13564 (ftfont_build_basic_charsets): Delete.
13565 (fc_charset_table): New variable.
13566 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13567 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13568 Callers changed.
13569 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13570 (ftfont_spec_pattern): New argument fc_charset_idx.
13571 Check registry more rigidly. Change callers.
13572 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13573 change of :font-entity property of the font.
13574
13575 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13576 property of the font.
13577
135782008-05-18 Juanma Barranquero <lekktu@gmail.com>
13579
13580 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13581 (Funencodable_char_position, Fcheck_coding_systems_region)
13582 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13583 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13584 (Ffind_operation_coding_system, Fset_coding_system_priority)
13585 (Fcoding_system_eol_type): Doc fixes.
13586
135872008-05-17 Glenn Morris <rgm@gnu.org>
13588
13589 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13590
135912008-05-16 Eli Zaretskii <eliz@gnu.org>
13592
13593 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13594 and st_gid.
13595
13596 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13597 HAVE_WINDOW_SYSTEM is not defined.
13598
13599 * xfaces.c (merge_face_ref, merge_face_vectors)
13600 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13601 HAVE_WINDOW_SYSTEM is defined.
13602 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13603
136042008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13605
13606 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13607
136082008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13609
13610 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13611
136122008-05-15 Kenichi Handa <handa@m17n.org>
13613
13614 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13615 preference.
13616
136172008-05-15 Glenn Morris <rgm@gnu.org>
13618
13619 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13620
136212008-05-15 Chong Yidong <cyd@stupidchicken.com>
13622
13623 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13624 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13625
13626 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13627
136282008-05-15 Kenichi Handa <handa@m17n.org>
13629
13630 * ftfont.c (ftfont_list): Downcase family name to check generic
13631 families.
13632
13633 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13634 font-spec for QCfont value.
13635
13636 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13637 buffer. Check the return value of it.
13638
136392008-05-14 Jason Rumney <jasonr@gnu.org>
13640
13641 * w32term.c (w32_get_glyph_overhangs): Remove.
13642 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13643
136442008-05-14 Kenichi Handa <handa@m17n.org>
13645
13646 * font.c (font_prop_validate): Make nil a valid value.
13647 (font_clear_cache): Check if the cached vector of entities is nil
13648 or not.
13649
136502008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13651
13652 * emacs.c (main_thread): Conditionalize on
13653 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13654 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13655
13656 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13657 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13658 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13659
136602008-05-14 Kenichi Handa <handa@m17n.org>
13661
13662 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13663 has no corresponding coding system.
13664
136652008-05-14 Jason Rumney <jasonr@gnu.org>
13666
13667 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13668
13669 * w32font.h (w32font_open_internal): Update declaration.
13670
13671 * w32font.c (w32font_open_internal): Change last argument from
13672 w32font_info struct to font object. Fill in font object from
13673 font_entity. Get Outline metrics if possible. Use them to
13674 calculate underline position and thickness. Use xlfd name as name
13675 property. Don't set codepage.
13676 (w32font_open): Pass font_object to w32font_open_internal. Don't
13677 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13678 (w32font_draw): Use s->font.
13679 (clear_cached_metrics): Don't clear non-existent blocks.
13680
13681 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13682 font was not found.
13683 (x_draw_glyph_string): Use underline position and thickness from font.
13684
13685 * w32uniscribe.c (uniscribe_open): Pass font_object to
13686 w32font_open_internal.
13687
136882008-05-14 Kenichi Handa <handa@m17n.org>
13689
13690 These changes are to delete all legacy font-handling codes, and
13691 make Emacs use only font-backends.
13692
13693 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13694 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13695
13696 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13697
13698 * charset.h (Vcharset_non_preferred_head)
13699 (Vcurrent_iso639_language): Extern them.
13700
13701 * charset.c (Vcharset_non_preferred_head): New variable.
13702 (Vcurrent_iso639_language): New variable.
13703 (syms_of_charset): Declare it as a Lisp variable.
13704 (char_charset): Don't check non preferred charsets. As a last
13705 resort, return charset_unicode.
13706 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13707
13708 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13709 conditionals. Don't check enable_font_backend. Delete all codes
13710 used only when USE_FONT_BACKEND is not defined.
13711
13712 * dispextern.h (struct glyph_string): Change type of `font' to
13713 `struct font *'.
13714 (struct glyph_string): New member underline_position and
13715 underline_thickness.
13716 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13717 (struct face): Change type of `font' to `struct font *'. Remove
13718 members `font_name', `font_info_id'.
13719 (per_char_metric, encode_char): Delete externs.
13720 (calc_pixel_width_or_height): Adjust the prototype.
13721
13722 * emacs.c (enable_font_backend): Delete extern.
13723 (main): Don't set enable_font_backend. Don't check the command
13724 line argument "-disable-font-backend".
13725
13726 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13727 (enum font_property_index): New members FONT_DPI_INDEX,
13728 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13729 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13730 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13731 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13732 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13733 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13734 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13735 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13736 (struct font_spec, struct font_entity): New structs.
13737 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13738 (struct font): Many members from old "struct font_info" moved to
13739 here. Members font and entity deleted.
13740 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13741 the new font-related objects.
13742 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13743 (CHECK_FONT_GET_OBJECT): Likewise.
13744 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13745 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13746 (struct font_driver): New members case_sensitive anc check. Type
13747 of the member list and open changed.
13748 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13749 (font_symbolic_width, font_find_object, font_get_spec)
13750 (font_set_lface_from_name): Delete extern.
13751 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13752
13753 * font.c: Include <strings.h>.
13754 (enable_font_backend): Delete it.
13755 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13756 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13757 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13758 (null_string): Delete it.
13759 (null_vector): Make it static.
13760 (font_family_alist): Delete it.
13761 (Qnormal): Extern it.
13762 (QCextra, QClanguage): Delete it.
13763 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13764 (font_make_spec, font_make_entity, font_make_object)
13765 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13766 the string. Callers changed.
13767 (font_pixel_size): Adjusted for the format change of font-related
13768 objects.
13769 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13770 (font_style_to_value, font_style_symbolic): New function.
13771 (build_font_family_alist): Delete it.
13772 (font_registry_charsets): Use Fassoc_string instead of
13773 assq_no_quit.
13774 (font_prop_validate_symbol): Don't return null_string.
13775 (font_prop_validate_style): Adjusted for the change of
13776 style-related values in a font vector.
13777 (font_property_table): Delete entries for QClanguage and
13778 QCantialias, add entries for QCavgwidth.
13779 (get_font_prop_index): Delete the 2nd argument FROM.
13780 (font_prop_validate): Arguments changed.
13781 (font_put_extra): Adjusted for the change of font-related objects.
13782 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13783 (font_parse_fcname, font_unparse_fcname)
13784 (font_prepare_composition): Likewise.
13785 (font_parse_family_registry): Renamed from font_merge_old_spec.
13786 (otf_open): Delete the 1st arg entity.
13787 (font_otf_capability): Adjusted for the above change.
13788 (font_score): New arg alternate_families. Adjusted for the change
13789 of font-related objects.
13790 (font_sort_entites): New arg best_only.
13791 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13792 Delete them.
13793 (font_match_p): Check alternate families.
13794 (font_find_object): Delete it.
13795 (font_check_object): New function.
13796 (font_clear_cache): Adjusted for the change of font-related objects.
13797 (font_delete_unmatched): New arg.
13798 (font_list_entities): Call font_driver->list with a spec that
13799 doesn't specify style-related properties.
13800 (font_matching_entity): Arguments changed. Caller changed.
13801 (font_open_entity): Adjusted for the change of font-related objects.
13802 (font_close_object, font_has_char, font_encode_char)
13803 (font_get_name, font_get_spec): Likewise.
13804 (font_spec_from_name, font_clear_prop, font_update_lface):
13805 New functions.
13806 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13807 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13808 (font_at): Adjusted for the change of font-related objects.
13809 (font_range): New function.
13810 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13811 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13812 (Fcopy_font_spec, Fmerge_font_spec): New function.
13813 (Ffont_family_list): Renamed from list-families.
13814 (Finternal_set_font_style_table): Arguments changed.
13815 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13816 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13817 change of font-related objects.
13818 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13819
13820 * fontset.h (struct font_info): Delete it. Most members go to
13821 struct font.
13822 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13823 (enum FONT_SPEC_INDEX): Delete it.
13824 (font_info, list_fonts_func, load_font_func, query_font_func)
13825 (set_frame_fontset_func, find_ccl_program_func)
13826 (get_font_repertory_func, new_fontset_from_font_name): Delete
13827 externs.
13828 (fontset_from_font_name): Extern it.
13829 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13830 (FONT_INFO_FROM_FACE): Deleted.
13831 (face_for_font): Adjust prototype.
13832
13833 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13834 conditionals. Don't check enable_font_backend. Delete all codes
13835 used only when USE_FONT_BACKEND is not defined.
13836 (get_font_info_func, list_font_func, load_font_func)
13837 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13838 (get_font_repertory_func): Delete them.
13839 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13840 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13841 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13842 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13843 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13844 (fontset_compare_rfontdef): New function.
13845 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13846 rfont-defs by qsort. Adjusted for the change of font-group vector.
13847 (load_font_get_repertory): Deleted.
13848 (fontset_find_font): Use new macros to ref/set elements of
13849 font-def and rfont-def.
13850 (fontset_font): Fix the timing of remembering that no font for C.
13851 (free_face_fontset): Do nothing if the face has no fontset.
13852 (face_suitable_for_char_p): Use new macros to ref/set elements of
13853 rfont-def.
13854 (face_for_char): Likewise. Call face_for_char with font_object.
13855 (fs_load_font): Delete. Delete #pragma surrounding it.
13856 (fs_query_fontset): Use strcasecmp instead of strcmp.
13857 (generate_ascii_font_name): Adjusted for the format change of
13858 font-spec.
13859 (Fset_fontset_font): Likewise. Use new macros to set elements of
13860 font-def.
13861 (Fnew_fontset): Use font_unparse_xlfd to generate
13862 FONTSET_ASCII (fontset).
13863 (new_fontset_from_font_name): Deleted.
13864 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13865 a fontset is already created for the font. FIx updating of
13866 Vfontset_alias_alist.
13867 (fontset_ascii_font): Deleted.
13868 (Ffont_info): Adjusted for the format change of font-spec.
13869 (Finternal_char_font): Likewise.
13870 (Ffontset_info): Likewise.
13871 (syms_of_fontset): Don't check load_font_func.
13872
13873 * fns.c (internal_equal): Handle PREV_FONT.
13874
13875 * frame.h: Delete USE_FONT_BACKEND conditional.
13876
13877 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13878 conditionals. Don't check enable_font_backend. Delete all codes
13879 used only when USE_FONT_BACKEND is not defined.
13880 (x_set_font): Call x_new_font, not x_new_fontset2.
13881 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13882 already set for the frame.
13883
13884 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13885 a font-entity by font_make_entity. Use font_intern_prop instead
13886 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13887 font property. If a font is scalable, set avgwidth property to 0.
13888 Set font-entity property by font_put_extra.
13889 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13890 (ffont_driver): Adjusted for the change of struct font_driver.
13891 (ftfont_spec_pattern): New function.
13892 (ftfont_list): Return a list, not vector.
13893 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13894 (ftfont_list_family): Don't downcase names.
13895 (ftfont_free_entity): Deleted.
13896 (ftfont_open): Return a font-object. Adjusted for the change of
13897 struct font. Get underline_thickness and underline_position from
13898 font property. Don't update dpyinfo->smallest_font_height and
13899 dpyinfo->smallest_char_width.
13900 (ftfont_close): Don't free `struct font'.
13901 (ftfont_has_char): Adjusted for the format change of font-entity.
13902 (ftfont_encode_char, ftfont_text_extents): Likewise.
13903
13904 * ftxfont.c (ftxfont_list): Return a list, not vector.
13905 (ftxfont_open): Return a font-object. Adjusted for the change of
13906 struct font. Get underline_thickness and underline_position from
13907 font property. Don't update dpyinfo->smallest_font_height and
13908 dpyinfo->smallest_char_width.
13909 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13910 (ftxfont_draw): Adjusted for the change of struct font.
13911
13912 * image.c (image_ascent): Don't include "charset.h". Include
13913 "character.h" and "font.h".
13914
13915 * lisp.h (enum pvec_type): New member PREV_FONT.
13916 (Fassoc_string): EXFUN it.
13917
13918 * print.c: Include font.h.
13919 (print_object): Handle font-related objects.
13920
13921 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13922 conditionals. Don't check enable_font_backend. Delete all codes
13923 used only when USE_FONT_BACKEND is not defined.
13924 (handle_auto_composed_prop): Do nothing if it->f is not on a
13925 window system. Check how many following characters can be
13926 displayed by the same font.
13927 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13928 'struct font *'.
13929 (get_char_face_and_encoding): Assign the whole encoding task to
13930 the `encode-char' method of a font driver.
13931 (fill_composite_glyph_string): Adjusted for the change of `struct
13932 face' and `struct glyph_string'.
13933 (fill_glyph_string): Likewise.
13934 (get_per_char_metric): Arguments changed.
13935 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13936 and `struct glyph_string'.
13937 (produce_stretch_glyph, calc_line_height_property)
13938 (x_produce_glyphs): Likewise.
13939
13940 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13941 conditionals. Don't check enable_font_backend. Delete all codes
13942 used only when USE_FONT_BACKEND is not defined. Use
13943 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13944 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13945 (Qp): Extern them.
13946 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13947 Deleted.
13948 (struct font_name): Deleted.
13949 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13950 (compare_fonts_by_sort_order): New function.
13951 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13952 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13953 Deleted.
13954 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13955 compare_fonts_by_sort_order.
13956 (Fx_font_family_list): Call Ffont_family_list.
13957 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13958 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13959 (face_symbolic_slant, face_symbolic_swidth)
13960 (split_font_name_into_vector, build_font_name_from_vector)
13961 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13962 (font_rescale_ratio, split_font_name, build_font_name)
13963 (free_font_names, sort_fonts, x_face_list_fonts)
13964 (face_font_available_p, sorted_font_list, cmp_font_names)
13965 (font_list_1, concat_font_list, font_list, remove_duplicates):
13966 Deleted.
13967 (Fx_list_fonts): Use Ffont_list.
13968 (LFACE_AVGWIDTH): Deleted.
13969 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13970 by FONTP.
13971 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13972 (set_lface_from_font_name): Delete it.
13973 (set_lface_from_font): Renamed from
13974 set_lface_from_font_and_fontset. Caller changed. Don't set
13975 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13976 for face.
13977 (merge_face_vectors): Copy font-spec if necessary.
13978 Clear properties of the font-spec if necessary.
13979 (merge_face_ref): Clear properties of the font-spec if necessary.
13980 (Finternal_set_lisp_face_attribute): Likewise.
13981 (set_font_frame_param): Use font_load_for_lface to load a
13982 font-object, and call Fmodify_frame_parameters with it.
13983 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13984 font name by Ffont_xlfd_name.
13985 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13986 QCslant, and QCwidth.
13987 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13988 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13989 Compare fonts by EQ.
13990 (lookup_non_ascii_face): Deleted.
13991 (face_for_font): The 2nd argument changed.
13992 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13993 Check atomic font properties by case insensitive.
13994 (realize_non_ascii_face): Set face->overstrike correctly.
13995 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13996 (dump_realized_face): Get font name from
13997 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13998
13999 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14000 conditionals. Don't check enable_font_backend. Delete all codes
14001 used only when USE_FONT_BACKEND is not defined.
14002 (xic_create_xfontset): Original code deleted and renamed from
14003 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14004 (x_make_gc): Don't set GCFont in GCs.
14005 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14006 opened by "fixed".
14007 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14008 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14009 get_font_repertory_func.
14010
14011 * xfont.c: Include <stdlib.h> and "ccl.h".
14012 (struct xfont_info): New structure.
14013 (xfont_query_font): Deleted.
14014 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14015 moved from xterm.c.
14016 (xfont_driver): Adjusted for the change of struct font_driver.
14017 (compare_font_names): New function.
14018 (xfont_list_pattern): Sort font names case insensitively. Make
14019 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14020 (xfont_list): Return a list, not vector.
14021 (xfont_match): If the font doesn't have QCname property, generate
14022 a name from the other font properties.
14023 (xfont_open): Return a font-object. Adjusted for the change of
14024 struct font. Get underline_thickness and underline_position from
14025 font property. Don't update dpyinfo->smallest_font_height and
14026 dpyinfo->smallest_char_width.
14027 (xfont_close): Don't free struct font.
14028 (xfont_prepare_face): Adjusted for the change of struct font.
14029 (xfont_done_face): Deleted.
14030 (xfont_has_char): Adjusted for the change of struct font.
14031 (xfont_encode_char, xfont_draw): Likewise.
14032 (xfont_check): New function.
14033
14034 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14035 callback function.
14036 (xftfont_match): Adjusted for the format change of font-entity.
14037 (xftfont_open): Adjusted for the format change of font-entity and
14038 font-object. Adjusted for the change of struct font. Return a
14039 font-object. Don't update dpyinfo->smallest_font_height and
14040 dpyinfo->smallest_char_width.
14041 (xftfont_close): Block input while calling XftFontClose.
14042 (xftfont_prepare_face): Don't block input while calling
14043 xftfont_get_colors. Adjusted for the change of struct font.
14044 (xftfont_shape): Return value of error case fixed.
14045
14046 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14047
14048 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14049 conditionals.
14050 (FONT_WIDTH): Return (f)->max_width.
14051 (struct x_display_info): Delete member `font'.
14052 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14053 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14054 (struct x_output): Change type of `font' to `struct font *'.
14055
14056 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14057 conditionals. Don't check enable_font_backend. Delete all codes
14058 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14059 (x_per_char_metric, x_encode_char): Deleted.
14060 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14061 (x_compute_glyph_string_overhangs): Adjusted for the change of
14062 `struct face'.
14063 (x_draw_glyph_string_foreground)
14064 (x_draw_composite_glyph_string_foreground): Likewise.
14065 (x_draw_glyph_string): Likewise. Use font->underline_position and
14066 font->underline_thickness.
14067 (x_new_font): Renamed from x_new_fontset2.
14068 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14069 (x_check_font): Call `check' method of a font driver.
14070 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14071 (x_query_font, x_get_font_repertory): Deleted.
14072 (x_find_ccl_program): Renamed and moved to xfont.c.
14073 (x_redisplay_interface): Adjusted for the change of `struct
14074 redisplay_interface'.
14075
14076 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14077 conditionals. Don't check enable_font_backend. Delete all codes
14078 used only when USE_FONT_BACKEND is not defined. Surround non-used
14079 code by "#ifdef OLD_FONT" and "endif".
14080 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14081
14082 * w32font.h (struct w32font_info): New member.
14083 (FONT_COMPAT): New macro.
14084 (w32font_open_internal): Prototype adjusted.
14085
14086 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14087 OLD_FONT" and "endif".
14088
14089 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14090 conditionals. Don't check enable_font_backend. Delete all codes
14091 used only when USE_FONT_BACKEND is not defined.
14092 (w32font_open): Return a font-object. Make a font-object by
14093 font_make_object. Adjusted for the change of struct w32font_info.
14094 (w32font_close): Don't free struct font. Adjusted for the change
14095 of struct w32font_info.
14096 (w32font_encode_char, w32font_text_extents, w32font_draw):
14097 Adjusted for the change of struct w32font_info.
14098 (w32font_draw): Likewise.
14099 (w32font_list_internal): Return a list, not vector.
14100 (w32font_open_internal): Change the 4th arg to font-object.
14101 Adjusted for the change of struct w32font_info and font-object format.
14102 (add_font_name_to_list): Don't downcase names.
14103 (w32_enumfont_pattern_entity): Make a font-entity by
14104 font_make_entity. Adjusted for the format change of font-entity.
14105 Use FONT_SET_STYLE to set a style-related font property. If a
14106 font is scalable, set avgwidth property to 0. Set font-entity
14107 property by font_put_extra.
14108 (font_matches_spec): Adjusted for the format change of font-entity.
14109 (w32_weight_table, w32_decode_weight): New variables.
14110 (w32_encode_weight): New function.
14111 (fill_in_logfont): Adjusted for the format change of font-spec.
14112 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14113 weight value.
14114 (w32font_driver): Adjusted for the change of struct font_driver.
14115
14116 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14117 conditionals. Don't check enable_font_backend. Surround non-used
14118 code by "#ifdef OLD_FONT" and "endif".
14119 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14120 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14121
14122 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14123 conditionals. Don't check enable_font_backend. Delete all codes
14124 used only when USE_FONT_BACKEND is not defined. Surround non-used
14125 code by "#ifdef OLD_FONT" and "endif".
14126
14127 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14128 (uniscribe_open): Return value changed to font-object.
14129 Adjusted for the format change of font-object.
14130 (uniscribe_otf_capability): Adjusted for the change of struct font.
14131 (add_opentype_font_name_to_list): Don't downcase names.
14132 (uniscribe_font_driver): Adjusted for the change of struct
14133 font_driver.
14134
141352008-05-13 Chong Yidong <cyd@stupidchicken.com>
14136
14137 * dispnew.c (update_frame_1): Check if tty output is still valid
14138 before flushing it.
14139
141402008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14141
14142 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14143 to Gtk+ menus.
14144
141452008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14146
14147 * dired.c (file_name_completion): Tweak the code so as to always do it
14148 in a single pass. Tighten the scope of some variables.
14149
14150 * dired.c (Qdefault_directory): New var.
14151 (file_name_completion): Use it instead of Fexpand_file_name.
14152 (syms_of_dired): Initialize it.
14153
141542008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14155
14156 * fileio.c (double_dollars): Remove dead code.
14157
141582008-05-10 Eli Zaretskii <eliz@gnu.org>
14159
14160 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14161 Mention w32-get-true-file-attributes in doc string.
14162
14163 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14164
141652008-05-09 Glenn Morris <rgm@gnu.org>
14166
14167 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14168 2008-04-23.
14169
141702008-05-09 Eli Zaretskii <eliz@gnu.org>
14171
14172 Support for reporting owner and group of each file on MS-Windows:
14173 * dired.c (stat_uname, stat_gname): New functions, with special
14174 implementation for w32.
14175 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14176
14177 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14178 (dflt_group_name): New static variable.
14179 (dflt_group): Rename from the_group.
14180 (init_user_info): Init dflt_group fields. Get user's group name
14181 from LookupAccountSid.
14182 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14183 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14184 New initialization states.
14185 (globals_of_w32): Initialize them to zero. Initialize the default
14186 group name to "None".
14187 (GetFileSecurity_Name): New global var, the name of the function
14188 to call for GetFileSecurity.
14189 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14190 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14191 (get_file_security, get_security_descriptor_owner)
14192 (get_security_descriptor_group, is_valid_sid)
14193 (get_file_security_desc, get_rid, get_name_and_id)
14194 (get_file_owner_and_group): New functions.
14195 (stat): Use get_file_security_desc and get_file_owner_and_group to
14196 report the owner and primary group of each file. Don't ignore the
14197 high 32 bits of file's size, now that st_size is 64-bit wide.
14198 Fix test when to get true file attributes.
14199 (init_user_info): Use get_rid instead of equivalent inline code.
14200 (fstat): Don't ignore the high 32 bits of file's size.
14201
142022008-05-09 Chong Yidong <cyd@stupidchicken.com>
14203
14204 * image.c (png_load): Use correct bit-depth for setting background
14205 color.
14206
142072008-05-08 Eli Zaretskii <eliz@gnu.org>
14208
14209 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14210 epa-hook.elc.
14211
142122008-05-08 Juanma Barranquero <lekktu@gmail.com>
14213
14214 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14215
142162008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14217
14218 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14219 because the original parameters are in pure storage now.
14220 (mac_window): Remove unused params. Update callers.
14221
142222008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14223
14224 * lread.c (substitute_object_recurse): Use lower-level primitives.
14225 Don't signal errors when traversing sub-char-tables.
14226 Don't loop over all the possible characters when traversing char-tables.
14227
14228 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14229 just like we do in print.c.
14230
142312008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14232
14233 * minibuf.c (Ftry_completion): Remove code left over from when we used
14234 scmp instead of Fcompare_strings.
14235
142362008-05-04 Juanma Barranquero <lekktu@gmail.com>
14237
14238 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14239
142402008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14241
14242 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14243 Create bitmap context in native byte order.
14244
14245 * macterm.c (XDrawLine)
14246 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14247 context in native byte order.
14248
142492008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14250
14251 * config.in: Regenerate.
14252
14253 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14254 New definitions for Image I/O support.
14255 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14256 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14257 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14258 (mac_data_provider_release_data, image_load_image_io)
14259 [USE_MAC_IMAGE_IO]: New functions.
14260 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14261 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14262 (init_image_func_pointer) [MAC_OSX]: Remove function.
14263 (image_load_quartz2d) [MAC_OSX]: Check availability of
14264 CGImageCreateWithPNGDataProvider at compile time.
14265 Use lowercase `false' for boolean constant.
14266 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14267 Use image_load_image_io.
14268 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14269 Don't check MyCGImageCreateWithPNGDataProvider.
14270 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14271 Don't call init_image_func_pointer.
14272
14273 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14274
14275 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14276 Make variable non-static.
14277 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14278 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14279
14280 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14281 (RED_FROM_ULONG): Mask off higher bits.
14282 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14283
14284 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14285 Include AvailabilityMacros.h.
14286 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14287 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14288
142892008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14290
14291 * chartab.c (Fset_char_table_range): If range is t, really set all
14292 chars to that value.
14293
142942008-05-03 Eli Zaretskii <eliz@gnu.org>
14295
14296 * dired.c (Ffile_attributes): Don't allow the device number become
14297 negative.
14298
142992008-05-02 Daiki Ueno <ueno@unixuser.org>
14300
14301 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14302
143032008-05-02 Juri Linkov <juri@jurta.org>
14304
14305 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14306 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14307 DEFAULT argument as a list of default values in docstrings.
14308
143092008-05-01 Chong Yidong <cyd@stupidchicken.com>
14310
14311 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14312
143132008-05-01 Martin Rudalics <rudalics@gmx.at>
14314
14315 * dispnew.c (change_frame_size_1): Preserve small windows when
14316 shrinking frames by calling set_window_height|width with third
14317 arg 2.
14318
14319 * window.h (struct window): Replace field too_small_ok by field
14320 resize_proportionally.
14321
14322 * window.c (make_window): Initialize resize_proportionally.
14323 (enlarge_window): Temporarily set resize_proportionally to make
14324 sure that shrink_windows does scale the window proportionally.
14325 (shrink_windows): When window has resize_proportionally set try
14326 to shrink it proportionally by stealing from other windows.
14327 (struct saved_window, Fset_window_configuration)
14328 (compare_window_configurations): Handle resize_proportionally.
14329 (WINDOW_TOTAL_SIZE): New macro.
14330 (window_min_size, shrink_windows, size_window): Use it.
14331 (check_min_window_sizes): Remove. Invalid values of
14332 window-min-height|width are handled by window_min_size_2 now.
14333 (size_window, Fsplit_window, enlarge_window)
14334 (adjust_window_trailing_edge, grow_mini_window): Don't call
14335 check_min_window_sizes.
14336 (window_min_size_2, window_min_size_1, window_min_size):
14337 New argument safe_p for retrieving "safe" minimum sizes.
14338 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14339 (adjust_window_trailing_edge, grow_mini_window):
14340 Adjust arguments of window_min_size... functions.
14341 (shrink_windows): Argument min_size removed. New argument
14342 safe_p allows shrinking windows to their safe minimum sizes.
14343 Calculate minimum size and decide whether a window shall be
14344 deleted for each window individually.
14345 (size_window): When nodelete_p equals 2, tell shrink_windows to
14346 delete windows only if their new minimum size is no more safe.
14347 (shrink_window_lowest_first): Call window_min_size_1 to make
14348 sure to preserve modeline of bottom-most window when resizing
14349 the minibuffer.
14350 (Fset_window_configuration, Fcurrent_window_configuration)
14351 (compare_window_configurations): Do not handle
14352 window-min-height|width any more.
14353 (syms_of_window): Clarify window-min-height|width doc-strings.
14354
143552008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14356
14357 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14358 some more. Copy some of the code from Ftry_completions.
14359 Remove special case code that dates back to initial revision when the
14360 slash was only added when necessary and that can't trigger nowadays.
14361
143622008-04-27 Kenichi Handa <handa@m17n.org>
14363
14364 * font.c (font_prop_validate): Signal `error' instead of `font'.
14365
143662008-04-29 Jason Rumney <jasonr@gnu.org>
14367
14368 * w32fns.c (Fw32_battery_status): New defun.
14369 (syms_of_w32fns): Defsubr it.
14370
143712008-04-28 Andreas Schwab <schwab@suse.de>
14372
14373 * dired.c (file_name_completion): Fix another mixing of encoded
14374 and decoded names.
14375
143762008-04-28 Juanma Barranquero <lekktu@gmail.com>
14377
14378 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14379
143802008-04-27 Juanma Barranquero <lekktu@gmail.com>
14381
14382 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14383
143842008-04-27 Andreas Schwab <schwab@suse.de>
14385
14386 * dired.c (file_name_completion): Fix inappropriate mixing of
14387 encoded and decoded names.
14388
14389 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14390
14391 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14392
143932008-04-26 Eli Zaretskii <eliz@gnu.org>
14394
14395 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14396 2008-03-31, it's not needed anymore with `struct stat' definition
14397 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14398 for the same reasons.
14399
144002008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14401
14402 * m/sparc.h: Additional redefinitions for GNU/Linux.
14403
144042008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14405
14406 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14407 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14408 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14409 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14410 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14411 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14412 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14413 Likewise.
14414
14415 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14416 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14417 (mac_ax_number_of_characters): Add externs.
14418 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14419 [USE_MAC_TSM]: Likewise.
14420 (mac_handle_text_input_event) [MAC_OSX]:
14421 Handle kEventTextInputOffsetToPos for no active input area case.
14422 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14423 (mac_handle_document_access_event)
14424 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14425 (install_application_handler) [MAC_OSX]: Register handlers for
14426 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14427 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14428 Register mac_handle_document_access_event.
14429
14430 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14431 Make functions non-static.
14432
144332008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14434
14435 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14436 (read_file_name_completion_ignore_case, insert_default_directory)
14437 (Qdefault_directory): Move to minibuffer.el.
14438 (Fread_file_name): Call the new `read-file-name' instead.
14439
144402008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14441
14442 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14443 Make function non-static.
14444 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14445 Remove function.
14446 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14447 Move to mactoolbox.c.
14448 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14449
14450 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14451 (mac_rect_make): New macro.
14452
14453 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14454 instead of float.
14455 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14456 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14457 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14458 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14459 CGRectMake.
14460 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14461 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14462 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14463 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14464 instead of WindowRef in argument type.
14465 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14466 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14467 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14468 instead of DISPLAY. All uses changed.
14469 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14470 (x_calc_absolute_position): Simplify so as not to use
14471 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14472
14473 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14474 instead of WindowRef in argument type.
14475 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14476 [TARGET_API_MAC_CARBON]: Remove externs.
14477 (create_apple_event, mac_event_parameters_to_lisp)
14478 [TARGET_API_MAC_CARBON]: Add externs.
14479
14480 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14481 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14482 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14483 is clicked.
14484 (x_activate_menubar): Remove extern for saved_menu_event_location.
14485 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14486 Move from mac.c.
14487
144882008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14489
14490 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14491 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14492
144932008-04-23 Jason Rumney <jasonr@gnu.org>
14494
14495 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14496 attributes only for local files.
14497
14498 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14499 default to Qlocal.
14500
145012008-04-22 Juri Linkov <juri@jurta.org>
14502
14503 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14504 read-buffer-to-switch instead of using the letter "B".
14505
145062008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14507
14508 * fileio.c (Qdefault_directory): New variable.
14509 (Fread_file_name): Use it to pass `dir' to the completion functions.
14510
145112008-04-20 Chong Yidong <cyd@stupidchicken.com>
14512
14513 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14514
145152008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14516
14517 * keyboard.c (Vpre_help_message): Remove.
14518 (show_help_echo): Remove default C code.
14519
14520 * dired.c (directory_files_internal, file_name_completion):
14521 Only call ENCODE_FILE if the string is indeed decoded.
14522
145232008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14524
14525 * Makefile.in (TOOLKIT_DEFINES): Remove.
14526 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14527
145282008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14529
14530 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14531 (mactoolbox.o): New target.
14532
14533 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14534 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14535
14536 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14537 Use mac_set_frame_window_background instead of XSetWindowBackground.
14538 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14539 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14540 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14541 instead of SetWindowTitleWithCFString.
14542 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14543 Move function to mactoolbox.c.
14544 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14545 Use mac_set_window_modified instead of SetWindowModified.
14546 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14547 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14548 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14549 FrontNonFloatingWindow. Use mac_activate_window instead of
14550 ActivateWindow. Use mac_active_non_floating_window instead of
14551 ActiveNonFloatingWindow.
14552 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14553 Use mac_show_hourglass and mac_hide_hourglass.
14554 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14555 instead of GetGlobalMouse.
14556 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14557 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14558 Use mac_bring_window_to_front instead of BringToFront.
14559 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14560 mactoolbox.c.
14561 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14562 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14563 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14564 mactoolbox.c.
14565
14566 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14567 (XtPointer): Move typedef from macmenu.c.
14568 (enum button_type): Move enum from macmenu.c.
14569 (widget_value): Move typedef from macmenu.c.
14570 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14571 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14572 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14573 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14574 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14575 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14576 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14577 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14578 (Selection): Move typedef from macselect.c.
14579 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14580 macterm.c.
14581 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14582 (mac_is_window_collapsed, mac_bring_window_to_front)
14583 (mac_send_window_behind, mac_hide_window, mac_show_window)
14584 (mac_collapse_window, mac_front_non_floating_window)
14585 (mac_active_non_floating_window, mac_activate_window)
14586 (mac_move_window_structure, mac_move_window, mac_size_window)
14587 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14588
14589 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14590 (enum mac_menu_kind): Move enum to mactoolbox.c.
14591 (min_menu_id): Move variable to mactoolbox.c.
14592 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14593 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14594 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14595 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14596 [TARGET_API_MAC_CARBON]: Likewise.
14597 (XtPointer): Move typedef to macgui.h.
14598 (enum button_type): Move enum to macgui.h.
14599 (widget_value): Move typedef to macgui.h.
14600 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14601 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14602 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14603 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14604 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14605 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14606 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14607 (popup_activated_flag): Make variable non-static.
14608 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14609 (add_menu_item, fill_menu, dispose_menus):
14610 Move functions to mactoolbox.c.
14611 (restore_show_help_function, menu_target_item_handler)
14612 (install_menu_target_item_handler, mac_handle_dialog_event)
14613 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14614 [TARGET_API_MAC_CARBON]: Likewise.
14615 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14616 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14617 (find_and_call_menu_selection, name_is_separator): Make function
14618 non-static.
14619 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14620 to mactoolbox.c.
14621 (set_frame_menubar): Don't call install_menu_quit_handler.
14622 (menu_item_selection): New variable.
14623 (mac_menu_show): Use create_and_show_popup_menu.
14624 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14625 selection but set variable menu_item_selection. All uses changed.
14626 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14627 Call install_menu_quit_handler. Move to mactoolbox.c.
14628
14629 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14630 (Selection): Move typedef to macgui.h.
14631 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14632 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14633 Make variables non-static.
14634 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14635 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14636 Make functions non-static.
14637 (Vmac_service_selection) [MAC_OSX]: Likewise.
14638 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14639 (mac_valid_selection_target_p, mac_clear_selection)
14640 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14641 (mac_put_selection_value, mac_selection_has_target_p)
14642 (mac_get_selection_value, mac_get_selection_target_list)
14643 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14644 Move functions to mactoolbox.c.
14645 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14646 Likewise.
14647 (copy_scrap_flavor_data, mac_handle_service_event)
14648 (install_service_handler) [MAC_OSX]: Likewise.
14649 (syms_of_macselect) <Vmac_dnd_known_types>:
14650 Use mac_dnd_default_known_types.
14651
14652 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14653 Move to mactoolbox.c.
14654 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14655 (Fx_selection_owner_p): Add EXFUN.
14656 (install_window_handler, remove_window_handler, XSetWindowBackground):
14657 Remove externs.
14658 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14659 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14660 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14661 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14662 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14663 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14664 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14665 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14666 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14667 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14668 (mac_valid_selection_target_p, mac_clear_selection)
14669 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14670 (mac_put_selection_value, mac_selection_has_target_p)
14671 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14672 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14673 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14674 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14675 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14676 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14677 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14678 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14679 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14680
14681 * mactoolbox.c: New file.
14682
146832008-04-18 Jason Rumney <jasonr@gnu.org>
14684
14685 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14686
146872008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14688
14689 * character.c (Fmultibyte_char_to_unibyte):
14690 Return latin1 chars unchanged.
14691
14692 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14693 relocated if it points to `name'.
14694
146952008-04-17 Kenichi Handa <handa@m17n.org>
14696
14697 * data.c (Faset): Allow setting a multibyte character in an
14698 ASCII-only unibyte string.
14699
14700 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14701
147022008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14703
14704 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14705 done in config.h.
14706
147072008-04-16 Juanma Barranquero <lekktu@gmail.com>
14708
14709 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14710 (Fchar_direction): Add usage in the docstring.
14711
147122008-04-15 Chong Yidong <cyd@stupidchicken.com>
14713
14714 * keyboard.c (read_key_sequence): Remove always-true checks.
14715
147162008-04-14 Jason Rumney <jasonr@gnu.org>
14717
14718 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14719 compatibility struct, for better underline positioning.
14720
147212008-04-13 David Hansen <david.hansen@gmx.net>
14722
14723 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14724 string.
14725
147262008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14727
14728 * m/hp800.h (XUINT, XSET): Remove.
14729
147302008-04-12 Juanma Barranquero <lekktu@gmail.com>
14731
14732 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14733 previous change.
14734
147352008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14736
14737 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14738 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14739
147402008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14741
14742 * keymap.h (map_keymap_canonical): Declare.
14743 * xmenu.c (single_keymap_panes): Use it.
14744
147452008-04-11 Glenn Morris <rgm@gnu.org>
14746
14747 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14748 set the target's value to that of the alias.
14749
147502008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14751
14752 * term.c (set_tty_color_mode): Left over typo.
14753
147542008-04-10 Michael Albinus <michael.albinus@gmx.de>
14755
14756 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14757 only after check for file name handler functions. Signal, when
14758 native functionality is not supported.
14759 (syms_of_fileio): Declare it unconditionally.
14760
147612008-04-10 Jason Rumney <jasonr@gnu.org>
14762
14763 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14764 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14765
14766 * w32.c (logon_network_drive): Also logon to remote drives that
14767 are mapped to drive letters.
14768
147692008-04-10 Glenn Morris <rgm@gnu.org>
14770
14771 * xdisp.c (truncate-partial-width-windows): Doc fix.
14772
147732008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14774
14775 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14776 Move functions to minibuffer.el.
14777 (syms_of_fileio): Don't declare them.
14778
147792008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14780
14781 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14782 (syms_of_minibuf): Remove its initialization.
14783
14784 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14785
147862008-04-09 Juanma Barranquero <lekktu@gmail.com>
14787
14788 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14789
147902008-04-09 Jason Rumney <jasonr@gnu.org>
14791
14792 * makefile.w32-in (distclean): Delete makefile too.
14793 (maintainer-clean): New target.
14794
14795 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14796
14797 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14798 for new font backend and composite cases.
14799
148002008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14801
14802 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14803 Most of the code moved to run_timers.
14804 (do_pending_atimers): Call run_timers.
14805 (run_timers): New function.
14806
14807 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14808 run atimers.
14809
14810 * process.c (wait_reading_process_output): The same as above.
14811
148122008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14813
14814 * minibuf.c (last_exact_completion): Remove variable.
14815 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14816 (complete_and_exit_1, complete_and_exit_2)
14817 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14818 (Fdisplay_completion_list, display_completion_list_1)
14819 (Fminibuffer_completion_help, Fself_insert_and_exit)
14820 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14821 minibuffer.el.
14822 (syms_of_minibuf): Remove corresponding initializations.
14823
14824 * keyboard.c (Qdeactivate_mark): New var.
14825 (command_loop_1): Use it to call `deactivate-mark'.
14826 (syms_of_keyboard): Initialize it.
14827
14828 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14829 to another frame.
14830 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14831 Don't call set_tty_color_mode.
14832 (store_frame_param): Reset previous_frame rather than call
14833 set_tty_color_mode.
14834 * term.c (set_tty_color_mode): Rewrite.
14835 * dispextern.h (set_tty_color_mode): New type.
14836 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14837
148382008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14839
14840 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14841 for generic chars, which do not exist any more in emacs-unicode.
14842
148432008-04-08 Michael Albinus <michael.albinus@gmx.de>
14844
14845 * coding.c (detect_coding_emacs_mule)
14846 (Ffind_operation_coding_system): Fix typo.
14847
148482008-04-08 Jason Rumney <jasonr@gnu.org>
14849
14850 * w32uniscribe.c (SNAME): Extract only symbol name.
14851
14852 * w32font.h (struct w32_metric_cache): New struct.
14853 (w32font_info): Use it.
14854 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14855 (CACHE_BLOCKSIZE): New constants.
14856
14857 * w32font.c (Qja, Qko, Qzh): New symbols.
14858 (syms_of_w32font): Initialise them.
14859 (font_matches_spec): Use them to filter by language.
14860 (recompute_cached_metrics): Remove function.
14861 (compute_metrics, clear_cached_metrics): New functions.
14862 (w32font_encode_char): Use them to manage metric cache.
14863 (w32font_text_extents): Cache metrics for all glyphs on demand.
14864 Delay converting glyph indices to WORD until needed.
14865 (w32font_open_internal): Initialize metric cache to empty.
14866 (registry_to_w32_charset): Charset should always be a symbol.
14867 (fill_in_logfont, list_all_matching_fonts): Family should
14868 always be a symbol.
14869
148702008-04-06 Jason Rumney <jasonr@gnu.org>
14871
14872 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14873 Give up if glyph indices not supported. Use uniscribe obtained
14874 ABC widths for individual metrics. Map glyph clusters back to
14875 characters using fClusterStart flag. Return number of glyphs
14876 produced, not chars processed.
14877 (uniscribe_shape): Map char at FROM to current glyph.
14878
148792008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14880
14881 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14882 Use SetMenuItemHierarchicalMenu.
14883
148842008-04-05 Jason Rumney <jasonr@gnu.org>
14885
14886 * image.c (pbm_load): Allow color values up to 65535.
14887 Throw an error if max_color_idx is outside the supported range.
14888 Report an error when image size is invalid.
14889 Read two bytes at a time when raw images have max_color_idx above 255.
14890
aac0c6e3
MR
148912008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14892
14893 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14894 append "CCL: Quitted" when the CCL program is quitted.
14895 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14896
14897 * ccl.h (struct ccl_program): New member quit_silently.
14898
148992008-04-05 Chong Yidong <cyd@stupidchicken.com>
14900
14901 * search.c (compile_pattern_1): Treat non-nil and non-string of
14902 search-spaces-regexp as nil.
14903
14904 * minibuf.c (Fassoc_string): Tweak docstring.
14905
149062008-04-05 Eli Zaretskii <eliz@gnu.org>
14907
14908 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14909 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14910 2008-03-14 to force inode be positive.
14911
14912 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14913 _S_* ones, since we now use our own sys/stat.h.
14914 (stat, fstat): Don't mangle the inode number.
14915 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14916
149172008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14918
14919 * frame.h (struct frame): Give one more bit to `visible' since we use
14920 values larger than 1 to indicate obscured frames on ttys.
14921
14922 * keymap.c (Qkeymap_canonicalize): New var.
14923 (Fmap_keymap_internal): New fun.
14924 (describe_map): Use keymap-canonicalize.
14925
14926 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14927 (Fundo_boundary): Set them.
14928 (syms_of_undo): Initialize them.
14929 (record_point): Use them instead of last_point_position*.
14930 (last_undo_buffer): Change type.
14931
149322008-04-04 Jason Rumney <jasonr@gnu.org>
14933
14934 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14935 (recompute_cached_metrics): Don't set ascent and descent per char.
14936
14937 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14938 (uniscribe_check_otf): Add GC protection before consing.
14939 Rearrange loop for counting features.
14940
149412008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14942
14943 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14944 buffer with byte-size of source buffer.
14945
149462008-04-03 Chong Yidong <cyd@stupidchicken.com>
14947
14948 * callint.c (Fcall_interactively): Handle temporary region even
14949 when shift-select-mode is off.
14950
149512008-04-03 Jason Rumney <jasonr@gnu.org>
14952
14953 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14954
149552008-04-03 Kenichi Handa <handa@m17n.org>
14956
14957 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14958 (CATEGORY_MASK_UTF_16): Likewise.
14959 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14960 binary file.
14961 (detect_coding): Add null-byte detection for a binary file.
14962 (detect_coding_system): Likewise.
14963
149642008-04-03 Jason Rumney <jasonr@gnu.org>
14965
14966 * w32uniscribe.c: New file.
14967
14968 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14969
14970 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14971
14972 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14973 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14974 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14975 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14976 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14977 (Qphonetic): New symbols.
14978 (syms_of_w32font): Initialize them.
14979 (font_supported_scripts): Use them.
14980 (w32font_list_family): List all charsets.
14981 (w32font_text_extents, recompute_cached_metrics): Fix metric
14982 calculations.
14983 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14984 Give opentype fonts their own format.
14985 (font_matches_spec): New arguments backend and logfont.
14986 Handle :otf spec for uniscribe backend.
14987 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14988 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14989
14990 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14991 font backend.
14992 (globals_of_w32fns): Initialize uniscribe font backend.
14993
14994 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14995 dependencies.
14996 (w32uniscribe.$(O)): New file to build.
14997 (FONT_OBJ): Include w32uniscribe.$(O).
14998 (LIBS): Add uniscribe libraries.
14999
15000 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15001
150022008-04-02 Chong Yidong <cyd@stupidchicken.com>
15003
15004 * callint.c (Vshift_select_mode): New var.
15005 (Finteractive): Document new ^ spec.
15006 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15007 is present.
15008
15009 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15010 (command_loop_1): Avoid running the direct display versions of
15011 forward-char and backward-char if shift-selection may occur.
15012 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15013 shift-translation takes place.
15014
15015 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15016 avoid clobbering by define-minor-mode.
15017
15018 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15019 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15020
15021 * syntax.c (Fforward_word): Add ^ interactive spec.
15022
15023 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15024 (Fscroll_right): Add ^ interactive spec.
15025
150262008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15027
15028 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15029
15030 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15031
15032 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15033
150342008-03-31 Juri Linkov <juri@jurta.org>
15035
15036 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15037
150382008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15039
15040 * gtkutil.c (xg_set_geometry): Fix indentation.
15041 (xg_resize_outer_widget): Remove.
15042 (x_wm_size_hint_off): Fix indentation.
15043 (xg_frame_set_char_size): Call flush_and_sync after
15044 gtk_window_resize.
15045 (x_wm_set_size_hint): Pass NULL as geometry window to
15046 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15047 Add menu bar and tool bar height to base height.
15048 (xg_update_frame_menubar, free_frame_menubar)
15049 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15050 (update_frame_tool_bar, free_frame_tool_bar):
15051 Change xg_resize_outer_widget to xg_frame_set_char_size.
15052
150532008-03-30 Michael Albinus <michael.albinus@gmx.de>
15054
15055 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15056 (Fdbus_call_method): New parameter TIMEOUT.
15057 (dbus-send-signal): Optimize UNGCPRO call.
15058
150592008-03-29 Juri Linkov <juri@jurta.org>
15060
15061 * window.c (Fdisplay_buffer): Move call to
15062 Vsplit_window_preferred_function out of conditions that check
15063 if window is eligible for vertical splitting.
15064 When Vsplit_window_preferred_function is non-nil, call it and use
15065 its non-nil return value as window. Otherwise, continue doing
15066 vertical splitting using Fsplit_window with arg horflag=nil.
15067 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15068 default value from `split-window' to nil.
15069
150702008-03-29 Juri Linkov <juri@jurta.org>
15071
15072 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15073 for interactive code letters 'b' and 'B'.
15074
150752008-03-29 Eli Zaretskii <eliz@gnu.org>
15076
15077 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15078 multibyte string.
15079
150802008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15081
15082 * keyboard.c (pending_funcalls): New var.
15083 (timer_check): Run it.
15084 (syms_of_keyboard): Initialize it.
15085 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15086 (Vdelete_terminal_functions): New vars.
15087 (syms_of_terminal): Initialize them.
15088 (Fdelete_terminal): Run delete-terminal-functions.
15089 * xdisp.c (safe_eval): Rewrite.
15090 (safe_call2): New fun.
15091 * frame.c (Qdelete_frame_functions): New var.
15092 (syms_of_frame): Initialize it.
15093 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15094 * lisp.h (safe_call2, pending_funcalls): Declare.
15095
150962008-03-28 Andreas Schwab <schwab@suse.de>
15097
15098 * indent.c (Fmove_to_column): Move declaration before statements.
15099
151002008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15101
15102 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15103 (struct frame): Use bit fields for boolean vars.
15104
15105 * process.c (server_accept_connection): Simplify naming.
15106 (emacs_get_tty_pgrp): Use SDATA.
15107
15108 * coding.c (decode_coding_object): Fix last change.
15109
151102008-03-27 Jason Rumney <jasonr@gnu.org>
15111
15112 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15113
151142008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15115
15116 * charset.c (Fdefine_charset_internal): Change the way of
15117 registering charsets in Vcharset_order_list.
15118 (syms_of_charset): Make the charset `eight-bit' supplementary.
15119
151202008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15121
15122 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15123 operations, to avoid having the difference between pointers
15124 overflow.
15125
151262008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15127
15128 * indent.c (check_display_width): New fun.
15129 (scan_for_column): Use it.
15130
15131 * data.c (syms_of_data): Mark most-positive-fixnum and
15132 most-negative-fixnum as constants.
15133
15134 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15135
15136 * indent.c (scan_for_column): Extract from current_column_1.
15137 Merge with the same code from Fmove_to_column.
15138 (current_column_1, Fmove_to_column): Use it.
15139
151402008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15141
15142 * keymap.c (map_keymap_internal): New fun.
15143 (map_keymap): Use it.
15144 (Fmap_keymap_internal): New fun.
15145 (Fmap_keymap): Remove left-out test from before make_save_value.
15146
15147 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15148
15149 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15150 Use XCAR/XCDR.
15151
15152 * process.h (struct Lisp_Process): Remove filter_multibyte.
15153 * process.c (QCfilter_multibyte): Remove.
15154 (setup_process_coding_systems): Don't use filter_multibyte.
15155 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15156 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15157 (Fset_process_filter_multibyte): Change the coding-system to
15158 approximate the previous behavior.
15159 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15160 coding-system.
15161
15162 * coding.c (decode_coding_object): When not decoding into a buffer,
15163 obey the coding system's preference of (uni|multi)byte.
15164
151652008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15166
15167 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15168 every char is changed and has a different byte-length.
15169 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15170 Fix int -> EMACS_INT.
15171
151722008-03-23 David Hansen <david.hansen@gmx.net>
15173
15174 * dbusbind.c (xd_read_message): Remove extra copying of message
15175 strings. Check for NULL `interface' or `member'.
15176
151772008-03-22 Eli Zaretskii <eliz@gnu.org>
15178
15179 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15180 cFileName a file name that includes `?' characters, use the 8+3
15181 alias in cAlternateFileName instead.
15182
151832008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15184
15185 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15186
151872008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15188
15189 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15190 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15191 work on current_buffer only instead (that was already the case
15192 for some of the code anyway).
15193 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15194 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15195 (SET_PT, SET_PT_BOTH): Adjust.
15196 * intervals.h (set_point, temp_set_point, set_point_both)
15197 (temp_set_point_both): Remove redundant declarations.
15198
151992008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15200
15201 * fileio.c (Finsert_file_contents):
15202 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15203 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15204 when buffer != current_buffer anyway.
15205
152062008-03-20 Andreas Schwab <schwab@suse.de>
15207
15208 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15209 as default.
15210
152112008-03-19 Jason Rumney <jasonr@gnu.org>
15212
15213 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15214 (syms_of_w32fns): Initialize them.
15215 (HOURGLASS_ID): New constant.
15216 (x_window_to_frame): Don't check hourglass_window.
15217 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15218 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15219 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15220 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15221 Only change the cursor if hourglass is not active.
15222 (Fx_create_frame): Initialize frame's current_cursor.
15223 (hourglass_atimer): Remove.
15224 (hourglass_started): New function.
15225 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15226 (show_hourglass): Adapt to w32, changing argument to frame.
15227
15228 * w32term.h (struct w32_output): Remove hourglass_window.
15229 Add current_cursor.
15230
15231 * eval.c (call_debugger, Fsignal):
15232 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15233 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15234 (Fexecute_extended_command, cancel_hourglass_unwind):
15235 * minibuf.c (read_minibuf):
15236 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15237
152382008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15239
15240 * window.c (run_funs): New fun.
15241 (run_window_configuration_change_hook): Use it to run the buffer-local
15242 and the global part of the hook.
15243
15244 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15245 (unwind_format_mode_line): Restore selected window.
15246 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15247
152482008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15249
15250 * editfns.c (Fchar_equal): Check they are valid characters.
15251
15252 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15253
152542008-03-17 Andreas Schwab <schwab@suse.de>
15255
15256 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15257 against a charset.
15258
15259 * lisp.h (Fbuffer_list): Declare.
15260
152612008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15262
aac0c6e3
MR
15263 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15264 handlebox_widget is != 0.
15265
152662008-03-16 Juri Linkov <juri@jurta.org>
15267
15268 * callint.c (Fcall_interactively): For interactive code letters
15269 'b' and 'B' put the buffer list into the list of default "future"
15270 values of the minibuffer.
15271
152722008-03-16 Andreas Schwab <schwab@suse.de>
15273
15274 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15275 modifiers.
15276
15277 * regex.c (re_match_2_internal): Correct matching of a charset
15278 against latin-1 characters.
15279
152802008-03-16 Kenichi Handa <handa@m17n.org>
15281
15282 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15283 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15284 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15285 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15286 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15287 CHAR_STRING_ADVANCE.
15288 (produce_chars): Fix for the case that the source and the
15289 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15290 instead of CHAR_STRING_ADVANCE.
15291 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15292 STRING_CHAR_ADVANCE.
15293
152942008-03-15 Andreas Schwab <schwab@suse.de>
15295
15296 * regex.c (re_match_2_internal): Correct matching of eight bit
15297 characters in unibyte strings.
15298
152992008-03-15 Martin Rudalics <rudalics@gmx.at>
15300
15301 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15302 at end of range when it coincides with the end of the buffer.
15303
153042008-03-14 Eli Zaretskii <eliz@gnu.org>
15305
15306 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15307
15308 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15309
153102008-03-14 Jason Rumney <jasonr@gnu.org>
15311
15312 * editfns.c (initial_tz): New variable.
15313 (syms_of_editfns): Initialize it.
15314 (Fset_time_zone_rule): Set it when first called.
15315 Use it when TZSTRING is nil.
15316
15317 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15318 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15319 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15320 (globals_of_w32fns): Initialize them.
15321 (compute_tip_xy): Use them to position tooltips.
15322
153232008-03-14 Glenn Morris <rgm@gnu.org>
15324
15325 * emacs.c (main): Revert previous change.
15326 (standard_args): Revert -internal-script back to -scriptload,
15327 and remove the long-option form.
15328
153292008-03-13 Glenn Morris <rgm@gnu.org>
15330
15331 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15332 Remove option -enable-font-backend.
15333
153342008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15335
15336 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15337
153382008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15339
15340 * xterm.c (x_connection_closed): For GTK: If this is the last
15341 terminal just exit without closing the display.
15342
153432008-03-11 Jason Rumney <jasonr@gnu.org>
15344
15345 * w32font.c (w32font_full_name): Use floor to round.
15346
f0131492 153472008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15348
15349 * sound.c (alsa_configure): Declare vol at beginning of block.
15350
15351 * fontset.c (Ffontset_info): Remove extra semicolon.
15352
153532008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15354
15355 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15356 size of resulting string.
15357
153582008-03-10 Jason Rumney <jasonr@gnu.org>
15359
15360 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15361
153622008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15363
15364 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15365 Don't pretend as if characters with display property haven't been
15366 consumed for string-replacing-string case.
15367
153682008-03-08 Kim F. Storm <storm@cua.dk>
15369
15370 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15371 (get_next_display_element, next_element_from_string)
15372 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15373
153742008-03-08 Andreas Schwab <schwab@suse.de>
15375
15376 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15377
153782008-03-06 Jason Rumney <jasonr@gnu.org>
15379
15380 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15381 when charset not specified. Only translate ANSI to unicode when
15382 font_type is truetype.
15383 (w32font_coverage_ok): New function.
15384 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15385
153862008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15387
15388 * lread.c (Fread_char): Resolve modifiers.
15389 (Fread_char_exclusive): Likewise.
15390
15391 * character.c (char_resolve_modifier_mask): New function.
15392 (char_string): Use char_resolve_modifier_mask.
15393 (Fchar_resolve_modifiers): New function.
15394 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15395 function.
15396
153972008-03-04 Jason Rumney <jasonr@gnu.org>
15398
15399 * makefile.w32-in: Always include w32font.c in the build.
15400 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15401
154022008-03-04 Andreas Schwab <schwab@suse.de>
15403
15404 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15405 (versionclean): Likewise.
15406
154072008-03-04 Juanma Barranquero <lekktu@gmail.com>
15408
15409 * .cvsignore: Add oo.
15410
154112008-03-03 Andreas Schwab <schwab@suse.de>
15412
15413 * coding.c (decode_coding_object): Inhibit gap shrinking while
15414 decoding in place.
15415
154162008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15417
15418 * w32term.c: Remove unused include "gnu.h".
15419 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15420
15421 * gnu.h: Rename to ...
15422 * emacs-icon.h: ... this.
15423 * xterm.c: Use emacs-icon.h instead of gnu.h.
15424 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15425
154262008-03-03 Juanma Barranquero <lekktu@gmail.com>
15427
15428 * w32font.c: Include math.h.
15429
154302008-03-03 Jason Rumney <jasonr@gnu.org>
15431
15432 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15433 Compute options separately.
15434 (w32font_open_internal): Set glyph_idx before caching metrics.
15435
15436 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15437 Define if system headers don't.
15438 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15439 (w32font_encode_char): Don't declare here.
15440
15441 * w32font.c (Quniscribe, QCformat): New symbols.
15442 (syms_of_w32font): Define them.
15443 (w32font_has_char): Indicate uncertainty.
15444 (w32font_encode_char): Encode as glyph point. Make static.
15445 (recompute_cached_metrics): New function.
15446 (w32font_open_internal): Use it. Set font to use glyph points
15447 initially. Set format based on type of font.
15448 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15449 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15450 on it. Set format based on information available here.
15451 (add_font_entity_to_list): Identify backend based on opentype_only.
15452
154532008-03-02 Andreas Schwab <schwab@suse.de>
15454
15455 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15456
15457 * coding.c (decode_coding_big5, produce_chars):
15458 Fix typos in last change.
15459
154602008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15461
15462 * gnu.h: New icon.
15463
154642008-03-02 Kenichi Handa <handa@m17n.org>
15465
15466 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15467 `dos', don't decode '\r' if that is the last in the source.
15468 (decode_coding_utf_16, decode_coding_emacs_mule)
15469 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15470 (decode_coding_raw_text, decode_coding_charset): Likewise.
15471 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15472
154732008-03-01 Jason Rumney <jasonr@gnu.org>
15474
15475 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15476
154772008-03-01 Kim F. Storm <storm@cua.dk>
15478
15479 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15480
154812008-03-01 Jason Rumney <jasonr@gnu.org>
15482
15483 * w32font.c (w32font_full_name): New function.
15484 (w32font_open_internal): Use it.
15485
154862008-03-01 Kim F. Storm <storm@cua.dk>
15487
15488 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15489
154902008-03-01 Jason Rumney <jasonr@gnu.org>
15491
15492 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15493
154942008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15495
15496 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15497 xg_frame_resized when the event is for the edit widget.
15498
15499 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15500
15501 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15502 set_char_size.
15503 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15504 operations on widgets here. Just set frame size if needed.
15505 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15506 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15507 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15508 the whole frame.
15509 (xg_create_tool_bar): Move attachment of the tool bar to
15510 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15511 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15512
155132008-03-01 Jason Rumney <jasonr@gnu.org>
15514
15515 * w32fns.c (w32_msg_pump): Disable debug code.
15516
155172008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15518
15519 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15520
155212008-02-29 Chong Yidong <cyd@stupidchicken.com>
15522
15523 * xdisp.c (next_overlay_string): Don't set
15524 overlay_strings_at_end_processed_p if we're currently reading from
15525 a display string.
15526
155272008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15528
15529 * xdisp.c (get_overlay_strings_1): Fix typo.
15530
155312008-02-29 Chong Yidong <cyd@stupidchicken.com>
15532
15533 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15534
155352008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15536
15537 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15538
15539 * xdisp.c (display_mode_element): Cancel the previous change.
15540 (decode_mode_spec): Likewise.
15541 (handle_auto_composed_prop): Don't make composition if it->string
15542 is a string.
15543
155442008-02-27 Kim F. Storm <storm@cua.dk>
15545
15546 * lisp.h (GLYPH): Change type from int to struct with separate char
15547 and face_id members.
15548 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15549 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15550 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15551 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15552 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15553 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15554 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15555 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15556 handle new Lisp glyph code encoding, either an integer or a cons.
15557
15558 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15559 (GLYPH_ALIAS): Delete.
15560 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15561 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15562 (GLYPH_FROM_CHAR): Replace macro by ...
15563 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15564
15565 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15566 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15567 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15568 (GLYPH_INVALID_P): New macro.
15569 (spec_glyph_lookup_face): Update prototype.
15570
15571 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15572 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15573 new glyph code encoding.
15574 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15575 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15576
15577 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15578 Adapt to new glyph type and new glyph code encoding.
15579
15580 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15581
15582 * indent.c (current_column, current_column_1, Fmove_to_column)
15583 (compute_motion): Adapt to new glyph code encoding.
15584
15585 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15586
155872008-02-27 Chong Yidong <cyd@stupidchicken.com>
15588
15589 * process.c (wait_reading_process_output): Check for window
15590 changes caused by timers.
15591 Suggested by Johan Bockgård.
15592
155932008-02-27 Glenn Morris <rgm@gnu.org>
15594
15595 * emacs.c (USAGE1): Add `--disable-font-backend'.
15596
155972008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15598
15599 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15600 is made to the buffer.
15601
156022008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15603
15604 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15605 (face_at_string_position):
15606 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15607 (face_at_string_position):
15608 * xdisp.c (display_string, next_overlay_change):
15609 * buffer.h (overlays_at):
15610 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15611 Update callers.
15612
156132008-02-26 Chong Yidong <cyd@stupidchicken.com>
15614
15615 * editfns.c (Fformat): Doc fix.
15616
156172008-02-26 Juanma Barranquero <lekktu@gmail.com>
15618
15619 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15620 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15621 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15622
156232008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15624
15625 * buffer.c (Fbuffer_swap_text): New function.
15626 (syms_of_buffer): Defsubr it.
15627
156282008-02-25 Chong Yidong <cyd@stupidchicken.com>
15629
15630 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15631
156322008-02-25 Jason Rumney <jasonr@gnu.org>
15633
15634 * w32font.c (w32font_draw): Draw one character at a time when padding.
15635
156362008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15637
15638 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15639 Handle a nil arg. Use run_window_configuration_change_hook.
15640 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15641 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15642 Use run_window_configuration_change_hook.
15643
156442008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15645
15646 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15647 1-pixel width.
15648
156492008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15650
15651 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15652 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15653 if the glyph in the font is zero pixel with.
15654
15655 * dispextern.h (struct glyph_string): New member padding_p.
15656
15657 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15658
15659 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15660
15661 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15662
15663 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15664
15665 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15666
156672008-02-25 Jason Rumney <jasonr@gnu.org>
15668
15669 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15670
156712008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15672
15673 Allow fine-grained image-cache flushing.
15674 * dispextern.h (struct image): Add `dependencies' field.
15675 (clear_image_caches): Change arg to Lisp_Object.
15676 * image.c (make_image): Initialize `dependencies' field.
15677 (clear_image_cache): Change arg to allow fine-grained flushing.
15678 Perform the flush even if image-cache-eviction-delay is nil.
15679 (clear_image_caches): Change arg to Lisp_Object.
15680 (Fclear_image_cache): Expand meaning of the argument.
15681 (mark_image): Mark `dependencies' field.
15682 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15683 (lface_hash): Use XHASH rather than XFASTINT.
15684 (face_at_buffer_position): Fix int -> EMACS_INT position.
15685 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15686 (select_frame_for_redisplay): Remove code duplication.
15687 (redisplay_internal): Adapt arg to call to clear_image_caches.
15688
156892008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15690
15691 * s/vms4-0.h:
15692 * s/vms4-2.h:
15693 * s/vms4-4.h:
15694 * s/vms5-5.h: Remove, unused.
15695
15696 * s/irix5-2.h:
15697 * s/irix6-0.h:
15698 * s/riscos5.h:
15699 * s/mach-bsd4-3.h:
15700 * m/mips4.h: Remove files for obsolete systems.
15701
15702 * Makefile.in:
15703 * filelock.c:
15704 * unexmips.c:
15705 * m/hp9000s300.h:
15706 * m/iris4d.h:
15707 * s/aix3-1.h:
15708 * s/hpux.h:
15709 * s/msdos.h:
15710 * s/usg5-0.h:
15711 * s/usg5-2-2.h:
15712 * s/usg5-2.h:
15713 * s/usg5-3.h: Remove references to obsolete variables.
15714
15715 * s/irix5-0.h: Remove, move all the contents ...
15716 * s/irix6-5.h: ... here. Simplify.
15717 * config.in: Regenerate.
15718
157192008-02-24 Jason Rumney <jasonr@gnu.org>
15720
15721 * w32term.c (x_draw_glyph_string_background): Clear the background
15722 manually when cleartype is in use.
15723 (x_draw_glyph_string_foreground): Draw text transparently when
15724 cleartype is in use.
15725
15726 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15727 a font into it unless we have to.
15728
157292008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15730
15731 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15732 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15733
aac0c6e3
MR
157342008-02-18 Jason Rumney <jasonr@gnu.org>
15735
15736 * w32fns.c (Fw32_shell_execute): Encode parameters.
15737
157382008-02-09 Eli Zaretskii <eliz@gnu.org>
15739
15740 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15741
157422008-02-05 Juanma Barranquero <lekktu@gmail.com>
15743
15744 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15745
157462008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15747
15748 * xterm.c (x_set_offset): Don't change the gravity if
15749 CHANGE_GRAVITY is -1.
15750
157512008-02-23 Chong Yidong <cyd@stupidchicken.com>
15752
15753 * fileio.c (auto_save_error_occurred): New var.
15754 (auto_save_error): Set it.
15755 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15756 error occurred.
15757
157582008-02-23 Eli Zaretskii <eliz@gnu.org>
15759
15760 * w32.c (globals_of_w32): Add initializations for
15761 g_b_init_get_sid_sub_authority and
15762 g_b_init_get_sid_sub_authority_count.
15763
157642008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15765
15766 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15767 (font_parse_xlfd): Use them for sanity check.
15768 (Finternal_set_font_style_table): Make sure the table is bijective.
15769
15770 Consolidate the image_cache to the terminal struct.
15771 * termhooks.h (P_): Remove redundant def.
15772 (struct terminal): New field `image_cache'.
15773 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15774 of FRAME_X_IMAGE_CACHE.
15775 * xterm.h (struct x_display_info): Remove image_cache field.
15776 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15777 * w32term.h (struct w32_display_info): Remove image_cache field.
15778 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15779 * macterm.h (struct mac_display_info): Remove image_cache field.
15780 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15781 * xterm.c (x_term_init):
15782 * w32term.c (w32_term_init):
15783 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15784 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15785 Remove declarations.
15786 (clear_image_caches, mark_image_cache): New declarations.
15787 * xfaces.c (clear_face_cache):
15788 * xdisp.c (redisplay_internal): Use clear_image_caches.
15789 * image.c (clear_image_cache): Don't check that a frame is on
15790 a window-system before checking if it shares the same cache.
15791 (clear_image_caches): New function.
15792 (Fclear_image_cache): Use it.
15793 (mark_image): Move from allo.c.
15794 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15795 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15796 (mark_object): Don't call mark_image_cache for frames.
15797 (mark_terminals): Call mark_image_cache.
15798
15799 * lisp.h (Fdelete_terminal): Declare.
15800
15801 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15802 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15803 wrong_type_argument.
15804
158052008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15806
15807 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15808 malayalam.el, and tamil.el. Add sinhala.el.
15809
158102008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15811
15812 * xterm.c (x_connection_closed): Consolidate identical tests.
15813 (x_delete_terminal): Don't crash if called via x_connection_closed.
15814
158152008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15816
15817 * xdisp.c (decode_mode_spec): New arg string.
15818 (display_mode_element): Adjust for the above change.
15819
158202008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15821
15822 * callint.c (Fcall_interactively): Use AREF.
15823
158242008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15825
15826 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15827
158282008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15829
15830 * xfns.c (Fx_show_tip): Set string to " " if empty.
15831
158322008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15833
15834 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15835 with Qt.
15836
158372008-02-17 Kenichi Handa <handa@m17n.org>
15838
15839 * ftfont.c (ftfont_shape): Return Lispy number.
15840
15841 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15842 for GCs.
15843 (Finternal_set_font_selection_order): Call font_update_sort_order
15844 only when enable_font_backend is set.
15845 (realize_x_face): Set face->font_info to that of default face only
15846 when enable_font_backend is set.
15847
15848 * xdisp.c (handle_composition_prop): Set it->c to the fist
15849 character of the composed region.
15850 (fill_composite_glyph_string): Set base_face->font_info to
15851 s->font_info. Get a face for ascii from base_face->ascii_face.
15852 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15853 with a face already decided.
15854 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15855 non-negative.
15856 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15857 call font_prepare_composition unconditionally.
15858
15859 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15860
15861 * xterm.h (struct x_display_info): New member font.
15862
15863 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15864 (x_set_mouse_face_gc, x_new_font): Likewise.
15865 (x_term_init): Setup display_info->font.
15866 (x_delete_terminal): Free display_info->font.
15867
15868 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15869
15870 * ftxfont.c (ftxfont_default_fid): Delete it.
15871 (ftxfont_open): Set xfont->fid to 0.
15872 (ftxfont_end_for_frame): Clear data specific to the frame and the
15873 font-driver.
15874
15875 * xftfont.c (xftfont_default_fid): Delete it.
15876 (xftfont_open): Set xfont->fid to 0.
15877
15878 * fontset.c (FONTSET_OBJLIST): New macro.
15879 (fontset_find_font): Update font-object list of the fontset.
15880 (free_realized_fontset): New function.
15881 (free_face_fontset): Call free_realized_fontset.
15882 (Ffont_info): Call font_close_object only when enable_font_backend
15883 is set.
15884
15885 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15886 [HAVE_NTGUI]: Include w32term.h.
15887 [MAC_OS]: Include macterm.ch.
15888 (font_otf_ValueRecord): Use make_number.
15889 (font_finish_cache): Fix handling of reference count.
15890 (font_clear_cache): Update num_fonts.
15891 (font_open_entity): Update smallest_char_width and
15892 smallest_font_height of the frame.
15893 (font_close_object): Update num_fonts.
15894 (Fclear_font_cache): Fix finding the target cache data.
15895
158962008-02-16 Glenn Morris <rgm@gnu.org>
15897
15898 * fontset.c (Finternal_char_font): Fix compilation warning.
15899
159002008-02-16 Eli Zaretskii <eliz@gnu.org>
15901
15902 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15903 instead of char arrays. Enlarge the size of array passed to
15904 get_token_information.
15905
15906 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15907 warnings.
15908
159092008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15910
15911 * .gdbinit: Don't set `args', it breaks gdb --args.
15912
159132008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15914
15915 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15916 within a narrowed buffer.
15917
159182008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15919
15920 * coding.c (decode_coding_object, encode_coding_object):
15921 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15922
159232008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15924
15925 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15926 hardcoding 1.
15927 (detect_coding_system):
15928 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15929 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15930 * insdel.c (insert_from_gap):
15931 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15932 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15933 (string_to_multibyte):
15934 * character.c (chars_in_text, multibyte_chars_in_text):
15935 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15936
15937 * character.h (FETCH_STRING_CHAR_ADVANCE)
15938 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15939 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15940 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15941
15942 * casefiddle.c (casify_region): Only call after-change and composition
15943 functions on the part of the region that was changed.
15944
15945 * keyboard.c (read_avail_input):
15946 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15947
159482008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15949
15950 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15951 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15952
159532008-02-11 Juanma Barranquero <lekktu@gmail.com>
15954
15955 * w32menu.c (push_submenu_start, push_submenu_end)
15956 (push_left_right_boundary, push_menu_pane, push_menu_item):
15957 * keyboard.c (read_key_sequence): Don't pass args with side effects
15958 to AREF, it fails when compiling with -DENABLE_CHECKING.
15959
159602008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15961
15962 * Makefile.in (${lispsource}international/charprop.el):
15963 Delete this target.
15964
15965 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15966 emacs-unicode-2.
15967
159682008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15969
15970 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15971
159722008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15973
15974 * frame.c (Qnoelisp): New symbol.
15975 (syms_of_frame): Initialize it.
15976 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15977 harmless Elisp code, from a strong `force' from x_connection_closed.
15978 * frame.h (Qnoelisp): Declare.
15979 * xterm.c (x_connection_closed): Pass `noelisp'.
15980
15981 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15982 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15983 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15984 rather than `int' for the type of `type'.
15985
159862008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15987
15988 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15989
15990 * Makefile.in (GNUC): Remove support for gcc-1.x.
15991
159922008-02-10 Richard Stallman <rms@gnu.org>
15993
15994 * lisp.h (ASET): Use AREF, not ASLOT.
15995
159962008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15997
15998 * lisp.h (ASET): Check bounds.
15999
160002008-02-10 Glenn Morris <rgm@gnu.org>
16001
16002 * buffer.c (mode-name): Doc fix.
16003
160042008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16005
16006 * Makefile.in:
16007 * emacs.c:
16008 * gmalloc.c:
16009 * keyboard.c:
16010 * lisp.h:
16011 * m/ibm370aix.h:
16012 * process.c:
16013 * regex.c:
16014 * s/hpux.h:
16015 * sysdep.c:
16016 * sysselect.h:
16017 * systty.h:
16018 * unexec.c:
16019 * w32term.c:
16020 * xsmfns.c:
16021 * xterm.c: Remove code that deals with obsolete variables.
16022
16023 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16024
16025 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16026 nothing else needs it anymore.
16027
160282008-02-09 Eli Zaretskii <eliz@gnu.org>
16029
16030 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16031 instead of unibyte_char_to_multibyte.
16032
160332008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16034
16035 * s/gnu-linux.h: Remove commented out code.
16036
16037 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16038
16039 * Makefile.in: Update what RMS says about using autoconf.
16040 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16041 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16042 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16043 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16044
160452008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16046
16047 * keymap.c (Fkey_description): Move side effect outside of macro call.
16048
16049 * xfaces.c (Finternal_make_lisp_face):
16050 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16051
16052 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16053 (syms_of_fontset): Use ASET.
16054
16055 * fns.c (concat): Move side effect outside of macro call.
16056 (hash_clear): Use ASET.
16057
160582008-02-08 Richard Stallman <rms@gnu.org>
16059
16060 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16061 If FORCE, and frame has a surrogate minibuffer for another frame,
16062 delete the other frame first.
16063
160642008-02-07 Timo Savola <timo.savola@iki.fi>
16065
16066 * xterm.c (x_detect_focus_change): Handle embed client message.
16067 (handle_one_xevent): Ditto.
16068 (handle_one_xevent): If embedded and we get a button press/release,
16069 request focus.
16070 (xembed_set_info, xembed_send_message): New functions.
16071 (x_make_frame_visible): Call xembed_set_info if embedded.
16072 (x_make_frame_invisible): Call xembed_set_info if embedded.
16073 (x_term_init): Initialize Xatom_XEMBED.
16074 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16075 (x_iconify_frame): Ditto.
16076
16077 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16078 (enum xembed_info, enum xembed_message, enum xembed_focus)
16079 (enum xembed_modifier, enum xembed_accelerator): New.
16080 (xembed_set_info, xembed_send_message): Declare.
16081 (FRAME_X_EMBEDDED_P): New.
16082
16083 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16084 gtk_plug_new.
16085
16086 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16087 window ID of a frame.
16088 (x_window): Reparent frame if embedded.
16089 (Fx_create_frame): Don't set border width if embedded.
16090
16091 * emacs.c (USAGE3): Add --parent-id.
16092 (standard_args): Ditto.
16093
160942008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16095
16096 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16097
160982008-02-07 Jim Meyering <meyering@redhat.com>
16099
16100 Use "do...while (0)", not "if (1)...else" in macro definitions.
16101 The latter provokes a warning from gcc about the empty else, when
16102 followed by ";". Also, without that trailing semicolon, it would
16103 silently swallow up any following statement.
16104 * syntax.h (SETUP_SYNTAX_TABLE)
16105 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16106 * buffer.h (DECODE_POSITION): Likewise.
16107 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16108 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16109 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16110 (FETCH_CHAR_ADVANCE): Likewise.
16111 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16112
161132008-02-07 Jim Meyering <meyering@redhat.com>
16114
16115 * lread.c [lint]: Don't include <sys/inode.h>.
16116
161172008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16118
16119 * xselect.c (x_handle_dnd_message):
16120 * xmenu.c (digest_single_submenu, xmenu_show):
16121 * xdisp.c (with_echo_area_buffer_unwind_data)
16122 (format_mode_line_unwind_data, unwind_format_mode_line)
16123 (display_menu_bar):
16124 * eval.c (Ffetch_bytecode):
16125 * doc.c (store_function_docstring):
16126 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16127 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16128 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16129
161302008-02-07 Kenichi Handa <handa@m17n.org>
16131
16132 * ftxfont.c (ftxfont_open): Don't set
16133 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16134
16135 * ftfont.c (ftfont_open): Fix previous change.
16136
161372008-02-06 Jason Rumney <jasonr@gnu.org>
16138
16139 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16140 Use cached metrics for ASCII characters.
16141 (w32font_open_internal): Don't set font's owning_frame.
16142 Cache metrics for ASCII characters.
16143
16144 * w32font.h (struct w32font_info): Add ascii_metrics.
16145 Remove owning_frame.
16146
161472008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16148
16149 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16150 to negative value.
16151
16152 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16153
16154 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16155
16156 * charset.c (syms_of_charset): Set QCtest and Qeq.
16157
161582008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16159
16160 * process.c (Fstart_process):
16161 * callproc.c (Fcall_process): Handle the case where
16162 Funhandled_file_name_directory returns nil.
16163
16164 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16165 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16166 * font.c (check_gstring): Use them and AREF to access the vector before
16167 we know it's really a gstring.
16168 (Ffont_shape_text): Fix typo.
46e722a9 16169 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16170
16171 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16172 Declare.
16173
16174 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16175
161762008-02-05 Jason Rumney <jasonr@gnu.org>
16177
16178 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16179 Set smallest_font_height and smallest_char_width in display info.
16180
161812008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16182
16183 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16184
161852008-02-05 Miles Bader <miles@gnu.org>
16186
16187 * xfaces.c (get_lface_attributes, merge_named_face)
16188 (lookup_named_face, lookup_derived_face, realize_named_face):
16189 Revert 2008-02-01 change by cyd@stupidchicken.com.
16190
161912008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16192
16193 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16194 fallback fonts.
16195 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16196
161972008-02-04 Jason Rumney <jasonr@gnu.org>
16198
16199 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16200 set full_name.
16201 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16202
162032008-02-03 Jason Rumney <jasonr@gnu.org>
16204
16205 * makefile.w32-in (OBJ1): Include font.o here.
16206 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16207
162082008-02-02 Jason Rumney <jasonr@gnu.org>
16209
16210 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16211
162122008-02-01 Jason Rumney <jasonr@gnu.org>
16213
16214 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16215
16216 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16217
162182008-02-01 Andreas Schwab <schwab@suse.de>
16219
16220 * Makefile.in (shortlisp, lisp): Update for rename of
16221 ../lisp/language/myanmar.el.
16222
162232008-02-01 Chong Yidong <cyd@stupidchicken.com>
16224
16225 * xfaces.c (get_lface_attributes): Delete function.
16226 (merge_named_face, lookup_named_face, lookup_derived_face)
16227 (realize_named_face): Call lface_from_face_name directly, and use
16228 the fact that merge_face_vectors does not alter its FROM argument.
16229
162302008-02-01 Jason Rumney <jasonr@gnu.org>
16231
16232 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16233 input in the default locale. Handle non-Unicode multibyte input.
16234
162352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16236
16237 * fontset.c (reorder_font_vector): Exclude nil elements from the
16238 font group. Don't try multiple fonts.
16239 (fontset_font): Adjust for the above change.
16240 (Finternal_char_font): Return nil if the found font doesn't
16241 contain the character ch.
16242
16243 * Makefile.in (lisp, shortlisp): Add cham.el.
16244
162452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16246
16247 * font.h (FONTP): Make it return 1 also for a font-object.
16248
16249 * .gdbinit (xfontset): New function.
16250
16251 * font.c (font_find_for_lface): Check if the character C is
16252 supported or not only for the first font.
16253
16254 * fontset.c (reorder_font_vector): Fix typo.
16255 (fontset_find_font): Don't add a font-spec specifying a script.
16256 Use 0 (not Qt) for the indication of empty font-group. Change the
16257 format of RFONT-DEF. Return Qt if no font in the font-group
16258 support the character.
16259 (fontset_font): Adjust for the above change. If no font was
16260 found the character, remember that.
16261 (face_for_char): Adjust for the change of RFONT-DEF.
16262 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16263 no font for the target.
16264 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16265
162662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16267
16268 * font.c (font_load_for_face): Handle the case that the font in
16269 face->lface is a string.
16270
162712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16272
16273 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16274
162752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16276
16277 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16278 Fix previous change. If the frame is not on a window system,
16279 signal an error.
16280
162812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16282
16283 * coding.c (decode_coding_object, encode_coding_object): Adjust
16284 marker positions after conversion.
16285
16286 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16287
162882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16289
16290 * font.c (font_find_for_lface): Fix the handling of the return
16291 value of font_has_char.
16292 (Ffont_shape_text): Fix previous change.
16293
16294 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16295 (fontset_ref_and_range): Delete it.
16296 (fontset_find_font): Call char_table_ref_and_range instead of
16297 FONTSET_REF_AND_RANGE.
16298 (make_fontset): Don't setup font groups of Latin here.
16299 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16300 (new_fontset_from_font): Make the specified font the default for
16301 all Latin characters.
16302
163032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16304
16305 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16306 is on a window system before accessing the fontset of the frame.
16307
163082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16309
16310 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16311
16312 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16313 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16314
16315 * font.c (Ffont_shape_text): If the font driver doesn't have a
16316 shaper function, make zero-width glyphs to have at least one-pixel
16317 width. Fix setting of `to' field of glyphs.
16318
163192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16320
16321 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16322 glyphs.
16323
16324 * font.h (struct font_driver): Improve docstring of member `shape'.
16325
163262008-02-01 Kenichi Handa <handa@m17n.org>
16327
16328 * composite.c (syms_of_composite): Fix docstring of
16329 auto-composition-function.
16330
16331 * font.h (LGLYPH_SIZE): New macro.
16332
16333 * font.c (Ffont_fill_gstring): Stop filling when a character not
16334 supported by the font is found.
16335 (Ffont_shape_text): When a shape callback function returns nil,
16336 try at most two more times with larger gstring.
16337 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16338
16339 * xdisp.c (handle_auto_composed_prop): Change the argument to
16340 auto-composition-function.
16341
16342 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16343 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16344 Lispy glyph and store it in the lgstring.
16345
16346 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16347
16348 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16349
163502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16351
16352 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16353
16354 * fontset.c (Vfont_encoding_charset_alist): New variable.
16355 (syms_of_fontset): DEFVAR it.
16356 (reorder_font_vector, fontset_find_font): Optimize for the case of
16357 no need of reordering.
16358 (face_for_char): Map the charset property by
16359 Vfont_encoding_charset_alist.
16360
163612008-02-01 Jason Rumney <jasonr@gnu.org>
16362
16363 * w32font.c (logfonts_match): Don't check adstyle here.
16364 (font_matches_spec): Check here against physical font instead.
16365 (add_font_entity_to_list): Avoid some substitutions.
16366
16367 * font.c (font_parse_fcname): Default weight and slant to normal.
16368 (font_score): Prefer normal fonts if weight or slant unspecified.
16369 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16370 match freetype scores.
16371
163722008-02-01 Jason Rumney <jasonr@gnu.org>
16373
16374 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16375 font, as it may have been deleted.
16376 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16377 most common hyphenless variation.
16378 (logfonts_match): Check generic family.
16379 (font_matches_spec): Don't check generic family here.
16380 (fill_in_logfont): Set generic family based on adstyle.
16381
16382 * w32font.h (w32font_get_cache): Update declaration.
16383
163842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16385
16386 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16387
16388 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16389 If none of the new drivers are available, call font_update_drivers
16390 with the old drivers.
16391
16392 * w32font.c (w32font_get_cache): Adjust the argument type.
16393
16394 * xfont.c (xfont_get_cache): Adjust the argument type.
16395
16396 * font.h (struct font_driver): Change argument type of get_cache.
16397
16398 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16399
16400 * font.c (Ffont_get): Fix arguments to Fassoc.
16401 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16402 (font_clear_cache): New function.
16403 (font_list_entities, font_matching_entity): Use font_get_cache.
16404 (font_update_drivers): Call font_clear_cache when finishing a driver.
16405
16406 * fontset.c (fontset_find_font): Fix previous change.
16407
164082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16409
16410 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16411 dpyinfo->font_table.
16412 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16413 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16414
16415 * font.c (font_at): Handle the case that the arg C is negative.
16416 Handle the unibyte case.
16417 (Ffont_at): Call font_at with the arg C -1.
16418
16419 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16420 the position here, and call font_at with the arg C -1.
16421 Don't check the range of the existing composition at the point.
16422
164232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16424
16425 * fontset.c (fontset_add): New args charset_id and family.
16426 Change caller.
16427 (load_font_get_repertory, fontset_find_font): Assume that
16428 font_spec is always a font-spec object.
16429 (Fset_fontset_font): Always store a font-spec object in a fontset.
16430
16431 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16432 instead of get_property_and_range.
16433
164342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16435
16436 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16437 (xftfont_open): Don't keep locking face.
16438 (xftfont_close): Don't unlock face.
16439 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16440
16441 * fontset.c (fontset_find_font): Don't prefer a font of
16442 supplementary charset.
16443
164442008-02-01 Kenichi Handa <handa@m17n.org>
16445
16446 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16447 script, langsys_tag to langsys, new member script.
16448 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16449 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16450 listing to the script specified in that property. Fix arg to
16451 OTF_check_features.
16452
164532008-02-01 Jason Rumney <jasonr@gnu.org>
16454
16455 * w32font.h: New file.
16456
16457 * w32font.c: Include it.
16458 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16459 (w32font_open): Set owning_frame.
16460 (w32font_text_extents): Use owning_frame.
16461 (struct font_callback_data): Add opentype_only field.
16462 (add_font_entity_to_list): Use it to filter fonts.
16463 Don't check against full name.
16464 (w32font_list_internal): New function.
16465 (w32font_list): Use it.
16466 (w32font_match_internal): New function.
16467 (w32font_match): Use it.
16468 (w32font_open_internal): New function.
16469 (w32font_open): Use it.
16470 (w32font_get_cache, w32font_close, w32font_has_char)
16471 (w32font_encode_char, w32font_text_extents, w32font_draw):
16472 Make non-static.
16473
16474 * makefile.w32-in (w32font.o): Depend on w32font.h.
16475
164762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16477
16478 * charset.c (Fdefine_charset_internal): Record a supplementary
16479 charset at the tail of Vcharset_order_list.
16480
16481 * font.c (Ffont_shape_text): Fix the return value.
16482
16483 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16484
16485 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16486
164872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16488
16489 * ftfont.c (struct OpenTypeSpec): New struct.
16490 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16491 (ftfont_get_open_type_spec): New function.
16492 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16493
16494 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16495
164962008-02-01 Jason Rumney <jasonr@gnu.org>
16497
16498 * w32font.c (add_font_entity_to_list): Compare only the beginning
16499 of full name.
16500
165012008-02-01 Kenichi Handa <handa@m17n.org>
16502
16503 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16504 Never return HANDLED_RECOMPUTE_PROPS.
16505
165062008-02-01 Kenichi Handa <handa@m17n.org>
16507
16508 * font.c (font_gstring_produce): Delete it.
16509
16510 * composite.h (COMPOSITION_METHOD):
16511 Handle COMPOSITION_WITH_GLYPH_STRING.
16512
165132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16514
16515 * xfont.c (Qx): Delete.
16516 (syms_of_xfont): Don't initialize Qx.
16517
16518 * composite.h (enum composition_method):
16519 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16520
165212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16522
16523 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16524 (choose_face_font): Accept new form of font-spec.
16525
16526 * frame.h (font_driver_list): Declare it unconditionally.
16527 (struct frame): Define members font_driver_list and font_data_list
16528 unconditionally.
16529
16530 * fontset.c: Include "font.h" unconditionally.
16531 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16532 (Fset_fontset_font): Accept a font-spec object.
16533
16534 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16535 PIXEL_SIZE part a wild card.
16536
16537 * dispextern.h (struct glyph_string): Define members clip and
16538 num_clips unconditionally.
16539 (struct face): Define members font_info and extra unconditionally.
16540
16541 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16542 ftfont_info only when HAVE_LIBOTF is defined.
16543
165442008-02-01 Andreas Schwab <schwab@suse.de>
16545
16546 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16547 and end.
16548
165492008-02-01 Jason Rumney <jasonr@gnu.org>
16550
16551 * w32font.c (w32font_driver): Add new fields.
16552
165532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16554
16555 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16556 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16557 (LIBES): Add @M17N_FLT_CFLAGS@.
16558
16559 * composite.c (compose_text): Don't treat the new style
16560 composition specially.
16561
16562 * emacs.c (main): Call syms_of_font unconditionally.
16563
16564 * font.h (FONT_ENTITY_NOT_LOADABLE)
16565 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16566 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16567 (struct font_driver): New member shape.
16568 (font_registry_charsets): Extern it.
16569 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16570 (font_otf_capability, font_drive_otf): Delete their externs.
16571
16572 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16573 (font_charset_alist, font_registry_charsets): Move from xfont.c
16574 and rename.
16575 (font_prop_validate_otf): New function.
16576 (font_property_table): Register it for QCotf.
16577 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16578 (font_drive_otf): Delete.
16579 (font_prepare_composition): New arg F. Adjust for the change of
16580 lispy gstring.
16581 (font_find_for_lface): New arg C.
16582 (font_load_for_face): Adjust for the change of font_find_for_lface.
16583 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16584 lispy gstring.
16585 (Ffont_shape_text): New function.
16586 (Fopen_font): If the font size is not given, use 12-pixel.
16587 (Ffont_at): New arg STRING.
16588 (syms_of_font): Initalize font_charset_alist.
16589 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16590 conditionally.
16591
16592 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16593 fonts of the same font-spec. Change the format of RFONT-DEF.
16594 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16595 Adjust for the change of RFONT-DEF.
16596 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16597
16598 * ftfont.h: New file.
16599
16600 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16601 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16602 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16603 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16604 font_otf_capability and font_drive_otf, set ftfont_shape.
16605 (ftfont_list): Adjust for the change of :otf property value.
16606 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16607 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16608 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16609 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16610 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16611 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16612
16613 * w32term.c (x_draw_composite_glyph_string_foreground):
16614 Adjust for the change of lispy gstring.
16615
16616 * xdisp.c (handle_composition_prop): Adjust for the change of
16617 lispy gstring. Call a function for auto-composition with the
16618 third arg it->window.
16619 (fill_composite_glyph_string): Adjust for the change of lispy string.
16620 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16621
16622 * xfaces.c (set_font_frame_param): Adjust for the change of
16623 font_find_for_lface.
16624
16625 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16626 (xfont_registry_charsets): Likewise. Change caller.
16627 (syms_of_xfont): Don't handle x_font_charset_alist.
16628
16629 * xftfont.c: Include "ftfont.h".
16630 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16631 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16632 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16633 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16634 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16635 Set xftfont_driver.shape to xftfont_shape.
16636
16637 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16638 the change of lispy gstring.
16639
166402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16641
16642 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16643
166442008-02-01 Jason Rumney <jasonr@gnu.org>
16645
16646 * w32font.c (w32font_draw): Fill background manually.
16647
166482008-02-01 Jason Rumney <jasonr@gnu.org>
16649
16650 * font.c (Qfontp): Remove unused symbol.
16651 (QCantialias): New symbol.
16652 (syms_of_font): Define it.
16653 (font_property_table): Set a validator for QCantialias.
16654
16655 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16656 Define if not already.
16657 (QCfamily): Share with xfaces.c.
16658 (Qstandard, Qsubpixel, Qnatural): New symbols.
16659 (syms_of_w32font): Define them. Don't define QCfamily here.
16660 (w32_antialias_type, lispy_antialias_type): New functions.
16661 (w32_enumfont_pattern_entity): New arg requested_font.
16662 Set antialias parameter if non-default was requested.
16663 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16664
166652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16666
16667 * lread.c (read1): Undo the previous change.
16668
166692008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16670
16671 * frame.c (Fdelete_frame): Call font_update_drivers only when
16672 USE_FONT_BACKEND is defined.
16673
166742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16675
16676 * font.h (struct font_bitmap): New member bits_per_pixel.
16677 (struct font_driver): New members start_for_frame and end_for_frame.
16678 (struct font_data_list): New struct.
16679 (font_put_frame_data, font_get_frame_data): Extern them.
16680
16681 * frame.h (struct frame): New member font_data_list.
16682
16683 * font.c (font_update_drivers): Call driver->start_for_frame and
16684 driver->end_for_frame at proper timings.
16685 (font_put_frame_data, font_get_frame_data): New functions.
16686 (Ffont_spec): Add usage in the docstring.
16687
16688 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16689 (Fdelete_frame): Call font_update_drivers.
16690
16691 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16692 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16693 (xftfont_get_xft_draw): New function.
16694 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16695 (xftfont_end_for_frame): New function.
16696 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16697
16698 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16699 Change argument. Cache GCs in the per-frame data.
16700 (struct ftxfont_frame_data): New struct.
16701 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16702 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16703 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16704 (ftxfont_end_for_frame): New function.
16705 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16706
16707 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16708
167092008-02-01 Kenichi Handa <handa@m17n.org>
16710
16711 * xselect.c (Vselection_coding_system)
16712 (Vnext_selection_coding_system): Delete them.
16713 (syms_of_xselect): Don't declare selection-coding-system and
16714 next-selection-coding-system. They are declared in select.el.
16715
167162008-02-01 Jason Rumney <jasonr@gnu.org>
16717
16718 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16719
16720 * w32fns.c: Include imm.h.
16721 (get_composition_string_fn, get_ime_context_fn): New optional
16722 system functions.
16723 (globals_of_w32fns): Load them from imm32.dll.
16724 (ignore_ime_char): New flag.
16725 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16726 WM_IME_ENDCOMPOSITION messages.
16727
16728 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16729 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16730
167312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16732
16733 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16734 (READCHAR_REPORT_MULTIBYTE): New macro.
16735 (readchar): New 2nd arg MULTIBYTE.
16736 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16737 Make symbol's name multibyte according to the multibyteness of the
16738 source.
16739
167402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16741
16742 * xfaces.c (face_for_overlay_string): Call lookup_face with
16743 correct arguments (fix of synching with the trunk).
16744
167452008-02-01 Kenichi Handa <handa@m17n.org>
16746
16747 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16748 (font_prop_validate_non_neg, font_prop_validate_spacing):
16749 Delete argument prop_index.
16750 (font_property_table): Change arguments to validater. Change Callers.
16751 (font_lispy_object): Delete.
16752 (font_at): Use font_find_object instead fo font_lispy_object.
16753
167542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16755
16756 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16757 and file names.
16758
167592008-02-01 Jason Rumney <jasonr@gnu.org>
16760
16761 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16762 (font_matches_spec): Remove debug output.
16763 (add_font_entity_to_list): Avoid using substituted fonts.
16764
167652008-02-01 Jason Rumney <jasonr@gnu.org>
16766
16767 * doc.c (Fsnarf_documentation):
16768 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16769
167702008-02-01 Miles Bader <miles@gnu.org>
16771
16772 * dispextern.h (struct glyph_row): Only define "clip" field if
16773 HAVE_WINDOW_SYSTEM is defined.
16774
167752008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16776
16777 Fix up multi-tty merge.
16778
16779 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16780 and indentation.
16781
16782 * xfaces.c (free_realized_face, clear_face_gcs):
16783 Include font_done_for_face in the input_blocked section, just in case.
16784
16785 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16786 (get_char_face_and_encoding): Undo last change and remove the *other*
16787 duplicate definition (i.e. keep the one that's better scoped and that
16788 includes code for the font-backend).
16789
16790 * terminal.c (create_terminal): Default keyboard_coding to
16791 `no-conversion' and terminal_coding to `undecided'.
16792
16793 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16794
16795 * fontset.c (free_realized_fontsets): Check that the table entry does
16796 contain a fontset before trying to compare it to `base'.
16797
16798 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16799 syms_of_charset, and syms_of_coding earlier because init_window_once
16800 now needs Vcoding_system_hash_table to be setup.
16801
16802 * coding.h (default_buffer_file_coding): Remove.
16803
16804 * coding.c (default_buffer_file_coding): Remove.
16805 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16806 than ->symbol, and use the terminal-local coding system.
16807 (syms_of_coding): Don't setup the coding-systems that are not
16808 terminal-local.
16809 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16810
16811 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16812 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16813
16814 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16815 in chartab.c and were re-added here by mistake.
16816 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16817
16818 * doc.c (Fsnarf_documentation):
16819 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16820 src to etc.
16821
16822 * ChangeLog.10: Add mistakenly removed entry.
16823
168242008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16825
16826 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16827
168282008-02-01 Miles Bader <miles@gnu.org>
16829
16830 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16831 Add extra args to FACE_FOR_CHAR.
16832
168332008-02-01 Kenichi Handa <handa@m17n.org>
16834
16835 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16836 in sequence.
16837
16838 * chartab.c (map_sub_char_table, map_char_table): If the range
16839 contains just one character, call the function with that character
16840 even if the depth is not 3.
16841
168422008-02-01 Jason Rumney <jasonr@gnu.org>
16843
16844 * w32font.c (w32font_text_extents): Calculate metrics for the
16845 whole string.
16846
168472008-02-01 Jason Rumney <jasonr@gnu.org>
16848
16849 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16850
168512008-02-01 Jason Rumney <jasonr@gnu.org>
16852
16853 * w32term.c (x_set_glyph_string_clipping): Use
16854 get_glyph_string_clip_rects.
16855 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16856 Adjust for the change of struct glyph_string.
16857
16858 * w32font.c (w32font_draw): Do clipping here.
16859
168602008-02-01 Kenichi Handa <handa@m17n.org>
16861
16862 * xftfont.c (xftfont_draw): Adjust for the change of struct
16863 glyph_string.
16864
16865 * xterm.c (x_set_glyph_string_clipping): Use
16866 get_glyph_string_clip_rects.
16867 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16868 Adjust for the change of struct glyph_string.
16869
16870 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16871 the resulting clip(s}.
16872 (expose_overlaps): Add arg r. Change callers. Set it to
16873 row->clip temporarily.
16874 (expose_window): Redraw rows overlapping the exposed area.
16875
16876 * dispextern.h (struct glyph_row): New member clip.
16877 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16878 clip_height, new member clip, and num_clips.
16879
168802008-02-01 Kenichi Handa <handa@m17n.org>
16881
16882 * data.c (Fchar_or_string_p): Fix docstring.
16883
168842008-02-01 Kenichi Handa <handa@m17n.org>
16885
16886 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16887 create a temporary XftDraw object.
16888
168892008-02-01 Kenichi Handa <handa@m17n.org>
16890
16891 * font.c (Ffontp): Fix docstring.
16892
16893 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16894 strong evidence of ISO-2022.
16895
168962008-02-01 Kenichi Handa <handa@m17n.org>
16897
16898 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16899 SYNTAX_ENTRY_FOLLOW_PARENT.
16900
169012008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16902
16903 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16904 its type.
16905 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16906 Update to the new type of weak_hash_tables and next_weak.
16907
16908 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16909 a plain C pointer to Lisp_Hash_Table.
16910
16911 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16912 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16913 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16914 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16915 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16916 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16917 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16918 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16919 (GC_EQ): Remove since they've been identical to their non-GC_
16920 alter-egos ever since the markbit was eradicated.
16921
16922 * alloc.c:
16923 * buffer.c:
16924 * buffer.h:
16925 * data.c:
16926 * fileio.c:
16927 * filelock.c:
16928 * fns.c:
16929 * frame.h:
16930 * lisp.h:
16931 * macterm.c:
16932 * print.c:
16933 * process.c:
16934 * w32fns.c:
16935 * w32menu.c:
16936 * w32term.c:
16937 * xfns.c:
16938 * xmenu.c:
16939 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16940
169412008-02-01 Kenichi Handa <handa@m17n.org>
16942
16943 * chartab.c (map_sub_char_table): Make it work for the top-level
16944 char-table. Fix handling of parent char-table.
16945 (map_char_table): Adjust for the above change.
16946
169472008-02-01 Jason Rumney <jasonr@gnu.org>
16948
16949 * w32font.c (Qgdi): Rename from Qw32.
16950
169512008-02-01 Jason Rumney <jasonr@gnu.org>
16952
16953 * w32bdf.c (get_quoted_string): Make function static.
16954
169552008-02-01 Kenichi Handa <handa@m17n.org>
16956
16957 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16958 bigger ascent and descent than those of the font, use them as
16959 font's ascent and descent.
16960
169612008-02-01 Kenichi Handa <handa@m17n.org>
16962
16963 * Makefile.in (${lispsource}international/charprop.el): Move this
16964 target within "#ifdef HAVE_UNIDATA" and "#endif".
16965
169662008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16969 (shortlisp): Add ../lisp/language/tai-viet.el.
16970
169712008-02-01 Ulrich Mueller <ulm@gentoo.org>
16972
16973 * Makefile.in (${lispsource}international/charprop.el): Depend on
16974 temacs${EXEEXT}.
16975
169762008-02-01 Jason Rumney <jasonr@gnu.org>
16977
16978 * w32font.c (w32font_close): Delete the GDI font object.
16979
16980 * w32menu.c: Include character.h.
16981
16982 * w32proc.c: Likewise.
16983
16984 * w32select.c: Likewise.
16985
16986 * makefile.w32-in (w32proc.o): Depend on character.h.
16987
169882008-02-01 Jason Rumney <jasonr@gnu.org>
16989
16990 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16991
16992 * w32menu.c (syms_of_w32menu): Likewise.
16993
16994 * w32proc.c (syms_of_ntproc): Likewise.
16995
16996 * w32select.c (syms_of_w32select): Likewise.
16997
16998 * w32term.c (syms_of_w32term): Likewise.
16999
170002008-02-01 Jason Rumney <jasonr@gnu.org>
17001
17002 * w32font.c (w32font_draw): Delete brush after using it.
17003
170042008-02-01 Jason Rumney <jasonr@gnu.org>
17005
17006 * w32font.c (w32font_open): Don't set font_idx.
17007 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17008 to font settings.
17009 (w32font_draw): Fill background explicitly.
17010
170112008-02-01 Jason Rumney <jasonr@gnu.org>
17012
17013 * w32term.c (w32_initialize): Don't call w32font_initialize.
17014
17015 * w32font.c (w32font_info): Remove subranges.
17016 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17017 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17018 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17019 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17020 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17021 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17022 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17023 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17024 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17025 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17026 New symbols.
17027 (font_callback_data): New struct.
17028 (w32font_list, w32font_match): Use it.
17029 (w32font_open): Don't populate subranges.
17030 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17031 (w32font_encode_char): Always return unicode code-point as-is.
17032 (w32font_text_extents): Supply a transformation matrix to
17033 GetGlyphOutline. Never look up by glyph index. Avoid looping
17034 twice. Use unicode version of GetTexExtentPoint32 instead of
17035 glyph index version.
17036 (set_fonts_frame): Remove.
17037 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17038 set frame parameter. Use backward compatible fake foundries.
17039 Save generic family in extra slot under QCfamily. Make width slot
17040 constant. Save QCspacing value. Save list of scripts instead of
17041 binary subranges.
17042 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17043 (add_font_entity_to_list): Use font_callback_data struct. Filter
17044 unwanted fonts.
17045 (add_one_font_entity_to_list): Use font_callback_data struct.
17046 (w32_registry): Default to iso10646_1.
17047 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17048 string font registries. Don't fill in font name if it is a generic
17049 family name, fill family instead. Use spacing, family and script
17050 extra info to fill pitch, family and charset fields.
17051 (list_all_matching_fonts): Use font_callback_data struct.
17052 (unicode_range_for_char): Remove.
17053 (font_supported_scripts): New function.
17054 (w32font_initialize): Remove.
17055 (syms_of_w32font): Update which symbols are defined.
17056
170572008-02-01 Jason Rumney <jasonr@gnu.org>
17058
17059 * font.c (font_pixel_size): Reverse assq_no_quit args.
17060
17061 * w32term.h (FONT_WIDTH): Report max width, not average.
17062 (FONT_MAX_WIDTH): Remove.
17063 (FONT_AVG_WIDTH): New macro.
17064
17065 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17066 redefinition of FONT_WIDTH.
17067
17068 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17069 (w32_cache_char_metrics): Use FONT_WIDTH.
17070
17071 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17072
170732008-02-01 Jason Rumney <jasonr@gnu.org>
17074
17075 * w32font.c (w32font_open): Make lfHeight negative.
17076
17077 * w32fns.c (x_default_font_parameter): Use new style font name.
17078 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17079
170802008-02-01 Jason Rumney <jasonr@gnu.org>
17081
17082 * w32font.c (QCsubranges): New symbol.
17083 (w32font_open, w32font_has_char): Get subranges from subproperty
17084 of extra.
17085 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17086 (syms_of_w32font): Define :subranges symbol.
17087
17088 * font.c (font_put_extra): Expose externally.
17089
17090 * font.h (font_put_extra): Move declaration from font.c.
17091
17092 * font.c (Ffont_get): Use font driver to determine otf capability.
17093 (adjust_anchor): Check if driver defines anchor_point before using.
17094
17095 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17096 (w32font_draw): Use options.
17097 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17098 Fix detection of truetype fonts.
17099 (registry_to_w32_charset): Handle charsets other than iso8859-1
17100 expressed as lisp symbols.
17101 (w32_registry): Express charset as lisp symbol.
17102 (fill_in_logfont): Reverse pixel and point height logic.
17103 Don't set width here. Set quality to default.
17104
17105 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17106 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17107
17108 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17109 Remove redundant loop and allocation.
17110
17111 * makefile.w32-in (font.o, w32font.o): New objects.
17112 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17113 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17114
17115 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17116 STORE_XCHARB a valid l-value.
17117
17118 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17119 calculations for non-Truetype fonts.
17120 (x_draw_glyph_string): Sync with xterm.c.
17121 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17122 Remove redundant code.
17123 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17124
17125 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17126 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17127
17128 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17129 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17130
17131 * w32font.c: New file for w32 font backend.
17132
171332008-02-01 Kenichi Handa <handa@m17n.org>
17134
17135 * term.c: Don't include "buffer.h" twice.
17136
171372008-02-01 Kenichi Handa <handa@m17n.org>
17138
17139 * character.c (Funibyte_string): New function.
17140 (syms_of_character): Defsubr it.
17141
171422008-02-01 Jason Rumney <jasonr@gnu.org>
17143
17144 * w32term.c [USE_FONT_BACKEND]:
17145 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17146 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17147 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17148 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17149 (x_free_frame_resources): Sync with xterm.c.
17150
171512008-02-01 Andreas Schwab <schwab@suse.de>
17152
17153 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17154 char-table size.
17155
171562008-02-01 Kenichi Handa <handa@m17n.org>
17157
17158 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17159
171602008-02-01 Kenichi Handa <handa@m17n.org>
17161
17162 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17163 font_otf_gpos, add font_drive_otf.
17164
17165 * fontset.c (fontset_find_font): Pay attention to font size
17166 specified for a font.
17167 (reorder_font_vector): Check contents of font_def.
17168
17169 * font.c (struct otf_list): Delete it.
17170 (otf_list): Make it a lisp variable.
17171 (otf_open): Use lispy otf_list.
17172 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17173 (check_otf_features): New function.
17174 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17175 New functions.
17176 (font_drive_otf): New function merging font_otf_gsub and
17177 font_otf_gpos.
17178 (font_open_for_lface): New arg spec. Change argument order.
17179 (font_load_for_face): Adjust for the change of font_open_for_lface.
17180 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17181 Ffont_otf_gpos.
17182 (syms_of_font): Staticpro otf_list. Delete defsubr of
17183 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17184
17185 * xfaces.c (set_font_frame_param): Adjust for the change of
17186 font_open_for_lface.
17187
17188 * font.h (font_open_for_lface): Adjust prototype.
17189 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17190 member otf_drive.
17191 (font_otf_gsub, font_otf_gpos): Delete externs.
17192 (font_drive_otf): Extern it.
17193
171942008-02-01 Kenichi Handa <handa@m17n.org>
17195
17196 * font.c (font_at): If the window W is not on a window system,
17197 return Qnil.
17198
17199 * coding.c (produce_chars, encode_coding): Don't call
17200 insert_from_gap if no characters to produce.
17201
172022008-02-01 Kenichi Handa <handa@m17n.org>
17203
17204 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17205 Fclear_face_cache.
17206
17207 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17208
172092008-02-01 Miles Bader <miles@gnu.org>
17210
17211 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17212 Parse "--disable-font-backend" option.
17213 (standard_args): Add "--disable-font-backend" option.
17214
172152008-02-01 Kenichi Handa <handa@m17n.org>
17216
17217 * fontset.c (fontset_find_font): New function.
17218 (fontset_font): Use fontset_find_font.
17219 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17220 Register the specified font for all Latin characters.
17221 (new_fontset_from_font): Register the specified font for all Latin
17222 characters.
17223 (dump_fontset): For a realized fontset, include the base fontset
17224 name in the returned vector.
17225
172262008-02-01 Kenichi Handa <handa@m17n.org>
17227
17228 * character.h (CHAR_STRING): Cast C to unsigned on calling
17229 char_string.
17230
17231 * character.c (char_string): Type of arg C changed to unsigned.
17232 Signal an error if C is an invalid character code.
17233
17234 * editfns.c (general_insert_function, Fchar_to_string):
17235 Use CHARACTERP, not INTEGERP.
17236
172372008-02-01 Kenichi Handa <handa@m17n.org>
17238
17239 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17240 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17241
17242 * regex.c (analyse_first): Fix for multibyte characters in "case
17243 charset:" and "case categoryspec:".
17244
172452008-02-01 Andreas Schwab <schwab@suse.de>
17246
17247 * Makefile.in (LIBES): Move standard libraries to the end.
17248
172492008-02-01 Kenichi Handa <handa@m17n.org>
17250
17251 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17252 nonzero, don't shrink the buffer nextb.
17253
17254 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17255
17256 * coding.c (coding_alloc_by_making_gap): New arg offset.
17257 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17258 offset.
17259 (decode_coding_iso_2022): Update coding->safe_charsets.
17260 (decode_coding_gap): Temporarily set
17261 current_buffer->text->inhibit_shrinking to 1.
17262
172632008-02-01 Kenichi Handa <handa@m17n.org>
17264
17265 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17266 indexing into elements of s->cmp and s->char2b.
17267
172682008-02-01 Juanma Barranquero <lekktu@gmail.com>
17269
17270 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17271
172722008-02-01 Kenichi Handa <handa@m17n.org>
17273
17274 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17275 target_multibyte instead of multibyte.
17276 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17277 (bcmp_translate): Change the argument name from multibyte to
17278 target_multibyte.
17279
172802008-02-01 Kenichi Handa <handa@m17n.org>
17281
17282 These changes are to compile a regexp into a pattern that can be
17283 used both for multibyte and unibyte targets.
17284
17285 * Makefile.in (search.o): Depend on charset.h.
17286
17287 * character.c (multibyte_char_to_unibyte_safe): New function.
17288
17289 * search.c: Include "charset.h".
17290 (compile_pattern_1): Delete argument multibyte. Don't set
17291 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17292 (compile_pattern): Don't compare cp->buf.target_multibyte.
17293 Compare cp->buf.charset_unibyte.
17294 (compile_pattern): Set cp->buf.target_multibyte.
17295
17296 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17297
17298 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17299
17300 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17301 multibyte. Change callers.
17302 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17303 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17304 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17305 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17306 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17307 (regex_compile): Make the compiled pattern usable both for
17308 multibyte and unibyte targets.
17309 (analyse_first): Make the fastmap usable both for multibyte and
17310 unibyte targets.
17311 (TRANSLATE_VIA_MULTIBYTE): Delete.
17312 (re_match_2_internal): Pay attention to the case that the
17313 multibyteness of bufp and target may be different.
17314
173152008-02-01 Kenichi Handa <handa@m17n.org>
17316
17317 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17318 empty box occupy at least one column width.
17319
173202008-02-01 Miles Bader <miles@gnu.org>
17321
17322 * Makefile.in: Remove redundant HAVE_XFT clause.
17323
173242008-02-01 Kenichi Handa <handa@m17n.org>
17325
17326 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17327
173282008-02-01 Kenichi Handa <handa@m17n.org>
17329
17330 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17331 being nil.
17332
173332008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17336
173372008-02-01 Kenichi Handa <handa@m17n.org>
17338
17339 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17340
173412008-02-01 Kenichi Handa <handa@m17n.org>
17342
17343 * search.c (simple_search): Fix previous change.
17344
173452008-02-01 Kenichi Handa <handa@m17n.org>
17346
17347 * xftfont.c (ftfont_font_format): Extern declaration.
17348
17349 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17350
17351 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17352 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17353
17354 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17355 (ftfont_font_format): Fix previous change.
17356
17357 * font.h (Ffont_xlfd_name): EXFUN it.
17358
17359 * font.c (font_parse_xlfd): Fix the array size of `f'.
17360 (register_font_driver): Use EQ to compare driver->type.
17361
17362 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17363 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17364 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17365
173662008-02-01 Kenichi Handa <handa@m17n.org>
17367
17368 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17369 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17370
173712008-02-01 Kenichi Handa <handa@m17n.org>
17372
17373 * xfont.c (xfont_open): Set font->format.
17374
17375 * xftfont.c (xftfont_open): Set font->format.
17376
17377 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17378 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17379 (ftfont_open): Set font->format.
17380 (ftfont_font_format): New function.
17381
17382 * font.h (struct font): New member format.
17383
17384 * font.c (Qopentype): New variable.
17385 (syms_of_font): Defsym it.
17386 (Fquery_font): Change the format of the last element of the return
17387 value.
17388
173892008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17392 last resort.
17393
173942008-02-01 Kenichi Handa <handa@m17n.org>
17395
17396 * coding.c (detect_coding_charset): Fix detection of multi-byte
17397 charset.
17398
173992008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17400
17401 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17402
174032008-02-01 Kenichi Handa <handa@m17n.org>
17404
17405 * xdisp.c (get_next_display_element): Set it->face_id for the
17406 first component of a composition.
17407 (x_produce_glyphs): Check if the font is changed or not for composition.
17408
174092008-02-01 Kenichi Handa <handa@m17n.org>
17410
17411 * fontset.c (Qlatin): New variable.
17412 (syms_of_fontset): Define it as a lisp symbol.
17413 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17414
174152008-02-01 Kenichi Handa <handa@m17n.org>
17416
17417 * font.c (font_unparse_fcname): Pay attention to the case that
17418 some of font property is a null string.
17419
174202008-02-01 Kenichi Handa <handa@m17n.org>
17421
17422 * term.c: Include "composite.h".
17423 (encode_terminal_code): Output all components of composition.
17424 Check the size of encode_terminal_src.
17425 (produce_glyphs): For composition, call produce_composite_glyph.
17426 (append_composite_glyph, produce_composite_glyph): New functions.
17427
17428 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17429 is not found, get font_info from the current ascii face.
17430
174312008-02-01 Kenichi Handa <handa@m17n.org>
17432
17433 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17434 buffer-file-name to Qnil before calling insert_from_buffer.
17435
17436 * font.c (font_unparse_fcname): Pay attention to the case that
17437 foundry is a null string.
17438
174392008-02-01 Kenichi Handa <handa@m17n.org>
17440
17441 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17442
17443 * font.c (Qunicode_sip): New variable.
17444 (syms_of_font): Declare it as a Lisp symbol.
17445
17446 * font.h (Qunicode_sip): Extern it.
17447
174482008-02-01 Kenichi Handa <handa@m17n.org>
17449
17450 * composite.c (get_composition_id): Pay attention to TAB component.
17451
17452 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17453 TAB. Adjust for the change of s->char2b which always points to
17454 the first element of allocated memory.
17455
17456 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17457
17458 * xdisp.c (handle_composition_prop): Set it->c to the first
17459 non-TAB component.
17460 (fill_composite_glyph_string): Change argument.
17461 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17462 (x_produce_glyphs): Fix handling of left/right padding.
17463
174642008-02-01 Kenichi Handa <handa@m17n.org>
17465
17466 * coding.c (detect_coding_system): Fix for handling off
17467 inhibit_iso_escape_detection. Fix for the case that no coding
17468 system is defined for a specific coding category.
17469
174702008-02-01 Kenichi Handa <handa@m17n.org>
17471
17472 * font.c (font_matching_entity): Delete unused local var.
17473
17474 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17475 opening a font.
17476
17477 * fileio.c (Finsert_file_contents): On recovering a file, assume
17478 Unix-like eol.
17479 (choose_write_coding_system): On auto-saving a file, force
17480 Unix-like eol.
17481
17482 * coding.c (setup_coding_system): Fix setting of
17483 coding->common_flags based on eol_type.
17484 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17485 inherit from it.
17486
174872008-02-01 Kenichi Handa <handa@m17n.org>
17488
17489 * alloc.c (NSTATICS): Increas to 0x600.
17490
174912008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17494 (ftfont_list): Don't check :name property.
17495 (ftfont_match): New function.
17496 (ftfont_pattern_entity): If the pattern doesn't contain
17497 FC_SPACING, don't assume FC_MONO.
17498
17499 * font.h (struct font_driver): New member `match'.
17500 (font_update_drivers): Adjust prototype.
17501
17502 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17503 property of FONT.
17504 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17505 them unconditionally.
17506 (font_matching_entity): New function.
17507 (font_open_by_name): Try font_matching_entity if exact match is
17508 not found.
17509 (font_update_drivers): Delete the arg FONT. Return a list of
17510 actually used backends. Don't free faces, font caches here.
17511 Don't store data in frame parameters. Don't call x_set_font.
17512 (Ffont_spec): Store :name property as is.
17513 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17514 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17515 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17516 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17517 Call font->driver->otf_gsub instead of font_otf_gsub.
17518
17519 * frame.c (x_set_font_backend): Do more works that were done in
17520 font_update_drivers before.
17521
17522 * xfont.c (xfont_match): New function.
17523 (xfont_driver): Set xfont_driver.match to xfont_match.
17524 (xfont_draw): Set font in GC if necessary.
17525
17526 * ftxfont.c (ftxfont_match): New function.
17527 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17528
17529 * xftfont.c (xftfont_match): New function.
17530 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17531
175322008-02-01 Kenichi Handa <handa@m17n.org>
17533
17534 * font.h (struct font): New member scalable.
17535 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17536 (font_otf_gsub): Adjust prototype.
17537
17538 * font.c (font_otf_capability): Fix handling of the default langsys.
17539 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17540 Check the contents of SPEC.
17541 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17542 (check_gstring): New function.
17543 (REPLACEMENT_CHARACTER): New macro.
17544 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17545 glyph codes of GSTRING.
17546 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17547 (font_prepare_composition): Set cmp->glyph_len.
17548 (font_open_entity): Set font->scalable.
17549 (Ffont_get): Handle :otf property.
17550 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17551 functions.
17552 (Fquery_font): Use font->font.full_name.
17553 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17554 Sfont_otf_alternates.
17555
17556 * ftfont.c (ftfont_open): Set font->font.full_name and
17557 font->font.name properly. Fix calculation of font->font.height
17558 and font->min_width.
17559
17560 * ftxfont.c (ftxfont_create_gcs): New function.
17561 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17562 (ftxfont_draw_backgrond): Fix filling region.
17563 (ftxfont_default_fid): New function.
17564 (ftxfont_open): Set xfont->fid to the return value of
17565 ftxfont_default_fid.
17566 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17567 (ftxfont_done_face): Free only GCs that are created by
17568 ftxfont_create_gcs.
17569 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17570
17571 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17572 Clip to src->width, etc (not src->clip_XXX).
17573
17574 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17575 FontBackend frame parameter.
17576
175772008-02-01 Kenichi Handa <handa@m17n.org>
17578
17579 * font.h (struct font_driver_list): New member `on'.
17580 (Fclear_font_cache): EXFUN it.
17581 (font_update_drivers): Extern it.
17582
17583 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17584 (font_list_entities): Check driver_list->on.
17585 (register_font_driver): Initalize `on' member to 0.
17586 (font_update_drivers): New function.
17587 (Fclear_font_cache): Check driver_list->on.
17588
17589 * frame.h (Qfont_backend): Extern it.
17590 (x_set_font_backend): Extern it.
17591
17592 * frame.c (Qfont_backend): New variable.
17593 (frame_parms): New element for font-backend.
17594 (x_set_font_backend): New function.
17595
17596 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17597 FontBackend frame parameter.
17598 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17599 x_set_font_backend.
17600
17601 * xfont.c (xfont_list): Don't try listing by :name property if the
17602 name is not for XLFD.
17603
176042008-02-01 Kenichi Handa <handa@m17n.org>
17605
17606 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17607 (LGLYPH_SET_TO): New macros.
17608 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17609 element of G is vector or not.
17610 (font_at): Extern it.
17611
17612 * font.c: Include window.h.
17613 (font_lispy_object): New function.
17614 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17615 end of valid glyph.
17616 (font_close_object): Fix getting (struct font *).
17617 (font_at): New function.
17618 (Ffont_get): If FONT is a font-object, get entity from it.
17619 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17620 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17621 range check.
17622 (Ffont_at): New function.
17623 (syms_of_font): Defsubr Sfont_at.
17624
17625 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17626 before the entry for Qcomposition.
17627 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17628 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17629 the font in gstring.
17630 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17631 LGLYPH_FORM (g) to detect the end of valid glyph.
17632 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17633 we are composing with gstring.
17634
17635 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17636 Check if adjustment is vector or not.
17637
17638 * Makefile.in (font.o): Make it depends on window.h.
17639
176402008-02-01 Kenichi Handa <handa@m17n.org>
17641
17642 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17643 adjustment is vector or not.
17644
176452008-02-01 Miles Bader <miles@gnu.org>
17646
17647 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17648
176492008-02-01 Kenichi Handa <handa@m17n.org>
17650
17651 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17652 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17653 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17654
17655 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17656 (DEVICE_DELTA): Fix typo.
17657 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17658 LGLYPH format.
17659
17660 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17661 the change of LGLYPH format.
17662
176632008-02-01 Kenichi Handa <handa@m17n.org>
17664
17665 * ftfont.c (ftfont_list): Fix typo.
17666 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17667
176682008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17669
17670 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17671
17672 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17673 xftface_info is non-NULL.
17674
176752008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17676
17677 * ftfont.c (ftfont_list): Move misplaced #endif.
17678
176792008-02-01 Kenichi Handa <handa@m17n.org>
17680
17681 * ftfont.c (ftfont_list): Pay attention to the case that
17682 FC_CAPABILITY is not defined.
17683
176842008-02-01 Kenichi Handa <handa@m17n.org>
17685
17686 * xftfont.c (xftfont_open): Set charset related members to -1.
17687
17688 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17689 QCname.
17690 (ftfont_open): Set charset related members to -1.
17691
17692 * fontset.c (Votf_script_alist): New variable.
17693 (syms_of_fontset): Initialize it.
17694 (fontset_font): Delete unused variable.
17695
17696 * fontset.h (Votf_script_alist): Extern it.
17697
17698 * font.c (font_find_for_lface): Optimize code.
17699
17700 * font.h (font_close_object, font_merge_old_spec): Extern them.
17701
177022008-02-01 Kenichi Handa <handa@m17n.org>
17703
17704 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17705 (syms_of_font): Initialize them.
17706 (font_pixel_size): Allow float value in dpi.
17707 (font_prop_validate_type): Delete.
17708 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17709 Change caller.
17710 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17711 (font_prop_validate_extra): Delete.
17712 (font_prop_validate_spacing): New function.
17713 (font_property_table): Add elements for all known properties.
17714 (get_font_prop_index): Rename from check_font_prop_name. New
17715 argument FROM. Change caller.
17716 (font_prop_validate): Validate all known properties.
17717 (font_put_extra): Delete argument force. Change caller.
17718 (font_expand_wildcards): Make it static. Fix the way of shrinking
17719 the possible range.
17720 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17721 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17722 Change caller.
17723 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17724 (font_parse_fcname): Delete argument merge. Fix parsing of point
17725 size. Don't validate properties values here. Change caller.
17726 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17727 (font_open_by_name): Delete unused variable.
17728 (Ffont_spec): Likewise. Validate property values.
17729 (Ffont_match_p): New function.
17730
17731 * font.h (QCscalable): Extern it.
17732 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17733
17734 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17735
17736 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17737 (xfont_list_pattern): New function.
17738 (xfont_list): Use xfont_list_pattern.
17739
177402008-02-01 Kenichi Handa <handa@m17n.org>
17741
17742 * font.h (Flist_fonts): EXFUN it.
17743
177442008-02-01 Jason Rumney <jasonr@gnu.org>
17745
17746 * w32term.c (w32_initialize): Add back smoothing_type and
17747 smoothing_enabled definitions.
17748
177492008-02-01 Kenichi Handa <handa@m17n.org>
17750
17751 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17752 s->face->font on determining underline position.
17753
177542008-02-01 Kenichi Handa <handa@m17n.org>
17755
17756 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17757 (font_has_char): Accept font-object too.
17758 (font_find_for_lface): Try at first with a size specified in face.
17759
177602008-02-01 Kenichi Handa <handa@m17n.org>
17761
17762 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17763 font_open_by_name.
17764
177652008-02-01 Kenichi Handa <handa@m17n.org>
17766
17767 * font.h (QCspacing, QCdpi): Extern them.
17768 (enum font_spacing): New enum.
17769 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17770
17771 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17772 (QCspacing, QCdpi): New variables.
17773 (syms_of_font): Initialize them.
17774 (font_pixel_size): New function.
17775 (font_put_extra): New function.
17776 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17777 in FONT_EXTRA.
17778 (font_parse_fcname): Handle enumerated values (e.g. bold).
17779 Fix handling font size. Add QCname property that contains only
17780 unknown properties.
17781 (font_score): Change argument. Change caller. Pay attention to
17782 FONT_PIXEL_SIZE_QUANTUM.
17783 (font_sort_entites, font_list_entities, font_find_for_lface)
17784 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17785 (Ffont_spec): Add QCname property that contains only unknown properties.
17786
17787 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17788 include weight in listing pattern, instead check weight of each
17789 listed font. Don't include scalable in pattern. Pay attention to
17790 FONT_PIXEL_SIZE_QUANTUM.
17791
177922008-02-01 Kenichi Handa <handa@m17n.org>
17793
17794 * font.c (font_parse_fcname): Fix parsing of point-size.
17795 (font_unparse_fcname): Produce symbolic names for style properties.
17796 (font_list_entities): Handle float size correctly.
17797 (font_open_by_name): Prefer `normal' property values if the name
17798 doesn't specify them.
17799
17800 * fontset.c (Finternal_char_font): Use font_get_name, not
17801 Ffont_xlfd_name.
17802
17803 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17804 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17805 pattern. Don't force scalable.
17806
17807 * xftfont.c (xftfont_open): For generating a name, start from
17808 96-byte buffer.
17809
178102008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17811
17812 * frame.h (x_new_fontset2): Fix prototype.
17813
178142008-02-01 Kenichi Handa <handa@m17n.org>
17815
17816 * font.h (struct font_driver): Delete member parse_name.
17817 (font_match_p, font_get_spec, font_parse_fcname)
17818 (font_unparse_fcname): Extern them.
17819 (font_get_name): Adjust prototype.
17820
17821 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17822 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17823 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17824 unnecessary checks for weight, slant, and swidth.
17825 (font_parse_fcname): New function.
17826 (font_unparse_fcname): New function.
17827 (font_parse_name): New function.
17828 (font_match_p): New function.
17829 (font_get_name): Change return value to Lisp string.
17830 (font_get_spec): New function.
17831 (Qunspecified, Qignore_defface): Don't extern them.
17832 (font_find_for_lface): Assume that LFACE is fully specified.
17833 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17834 object, use it for FACE.
17835 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17836 driver->parse_name.
17837 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17838
17839 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17840 prototype.
17841
17842 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17843 argument F. Don't call Fnew_fontset. Instead, directly call
17844 make_fontset.
17845
17846 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17847
17848 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17849 of x_new_fontset2.
17850
17851 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17852 (Qsans__serif): New variables.
17853 (ftfont_generic_family_list): New variable.
17854 (syms_of_ftfont): Initialize the above variables.
17855 (ftfont_pattern_entity): Delete argument NAME.
17856 (ftfont_list_generic_family): New function.
17857 (ftfont_parse_name): Delete this function.
17858 (ftfont_list): Try generic family only when FcFontList found no font.
17859 (ftfont_list_family): Fix args to FcObjectSetBuild.
17860
17861 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17862 object in attrs[LFACE_FONT_INDEX].
17863 (set_lface_from_font_name): Cancel all changes for font-backend.
17864 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17865 function.
17866 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17867 font object in QCfont attribute.
17868 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17869 (realize_default_face) [USE_FONT_BACKEND]: Call
17870 set_lface_from_font_and_fontset.
17871
17872 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17873 "fixed", and signal error here if no suitable font was found.
17874
17875 * xfont.c (xfont_parse_name): Delete this function.
17876
17877 * xftfont.c (xftfont_open): Change coding style of error
17878 handling. Generate fontconfig's fontname pattern.
17879
17880 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17881 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17882
17883 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17884 Both args FONTSET and FONT_OBJECT must be existing ones.
17885
178862008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17887
17888 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17889
178902008-02-01 Kenichi Handa <handa@m17n.org>
17891
17892 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17893
17894 * font.h (struct font): Fix typo.
17895
17896 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17897 XLFD_XXX_INDEX.
17898 (enum xlfd_field_mask): New enum.
17899 (intern_font_field): Changed argument. Change caller. If digits
17900 are followed by non-digits, return a symbol.
17901 (font_expand_wildcards): New function.
17902 (font_parse_xlfd): Fix wildcard handling.
17903 (Ffont_spec): If :name is specified, reflect the info in the other
17904 properties.
17905
17906 * ftfont.c (ftfont_pattern_entity): Fix typo.
17907 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17908 locale.
17909
179102008-02-01 Kenichi Handa <handa@m17n.org>
17911
17912 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17913
17914 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17915 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17916 registry doesn't specify encoding part.
17917 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17918 (font_open_by_name): At first try parsing the name.
17919 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17920 as Lisp symbols.
17921
17922 * fontset.c (reorder_font_vector): Pay attention to the case that
17923 the 3rd element of font_def is nil.
17924 (fontset_font): For the default fontset, append one more fontset
17925 elements for a script-based font specification. Don't add script
17926 attribute on finding a font.
17927 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17928 font name.
17929 (fontset_ascii_font): If a font can't be opened, return nil.
17930
17931 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17932 (ftfont_pattern_entity): New function.
17933 (ftfont_get_cache): Assume that freetype_font_cache is already
17934 initialized.
17935 (ftfont_list): Handle the case that a file is specified in font
17936 name. Use ftfont_pattern_entity to generate entities.
17937 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17938 (syms_of_ftfont): Initialize freetype_font_cache.
17939
17940 * xftfont.c (xftfont_open): Make the font name fontconfig's
17941 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17942 (xftfont_close): Free font->font.name if not NULL.
17943
17944 * xfont.c (xfont_list): If script is specified for a font, return
17945 null_vector.
17946 (xfont_list_family): Declare argument type.
17947
17948 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17949 name, set LFACE_FONT (lface) to nil.
17950
17951 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17952 return Qnil.
17953
179542008-02-01 Kenichi Handa <handa@m17n.org>
17955
17956 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17957 (standard_args): Add "-enable-font-backend".
17958
179592008-02-01 Kenichi Handa <handa@m17n.org>
17960
17961 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17962 (struct xftdraw_list, xftdraw_list): Delete them.
17963 (register_xftdraw, check_xftdraw): Delete them.
17964 (xftfont_prepare_face): Don't call register_xftdraw.
17965 (xftfont_done_face): Don't call check_xftdraw.
17966 (xftfont_draw): Get background color only when with_background is
17967 nonzero.
17968
17969 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17970
179712008-02-01 Kenichi Handa <handa@m17n.org>
17972
17973 These changes are for the new font handling codes.
17974
17975 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17976 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17977 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17978 (FONTSRC, FONTOBJ): New variables.
17979 (obj): Add $(FONTOBJ).
17980 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17981 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17982 @LIBOTF_LIBS@.
17983 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17984 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17985
17986 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17987
17988 * character.h (Vscript_representative_chars): Extern it.
17989
17990 * character.c (Vscript_representative_chars): New variable.
17991 (syms_of_character): Declare it as a Lisp variable.
17992
17993 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17994 enable_font_backend is nonzero, accept the composition method
17995 COMPOSITION_WITH_GLYPH_STRING.
17996
17997 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17998 enumeration COMPOSITION_WITH_GLYPH_STRING.
17999
18000 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18001 members clip_x, clip_y, clip_width, and clip_height.
18002 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18003
18004 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18005 --enable-font-backend. Call syms_of_font.
18006
18007 * fns.c (assoc_no_quit): New function.
18008
18009 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18010 (face_for_font, new_fontset_from_font)
18011 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18012
18013 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18014 (fontset_font, fontset_ascii, face_for_char)
18015 (make_fontset_for_ascii_face, Ffont_info)
18016 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18017 is nonzero, use font-backend mechanism.
18018 (find_font_encoding): Make it non-static.
18019 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18020 New functions.
18021
18022 * frame.h (struct frame): New members resx and resy.
18023 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18024 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18025
18026 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18027 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18028
18029 * lisp.h (assoc_no_quit): Extern it.
18030
18031 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18032 Through out the file, use FONT_INFO_FROM_FACE instead of
18033 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18034 rif->per_char_metric.
18035 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18036 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18037 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18038 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18039 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18040 nonzero, use font-backend mechanism.
18041 (get_per_char_metric): New function.
18042
18043 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18044 (set_lface_from_font_name)
18045 (set_font_frame_param, free_realized_face)
18046 (prepare_face_for_display, clear_face_gcs)
18047 (Finternal_set_font_selection_order, realize_x_face)
18048 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18049 font-backend mechanism.
18050 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18051 (load_face_font) [USE_FONT_BACKEND]: Abort.
18052 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18053 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18054
18055 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18056 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18057 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18058 nonzero, register all available font drivers. Call
18059 x_default_font_parameter for deciding a font.
18060 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18061
18062 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18063 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18064 (x_set_glyph_string_clipping_exactly)
18065 (x_compute_glyph_string_overhangs)
18066 (x_draw_glyph_string_foreground)
18067 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18068 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18069 enable_font_backend is nonzero, use font-backend mechanism.
18070 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18071
180722008-02-01 Kenichi Handa <handa@m17n.org>
18073
18074 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18075 system_eol_type.
18076 (syms_of_coding): Initialize system_eol_type.
18077
18078 * process.c (Fset_process_coding_system): Inherit system's eol
18079 format if necessary.
18080
180812008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18082
18083 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18084
180852008-02-01 Kenichi Handa <handa@m17n.org>
18086
18087 * coding.c (decode_eol): Pay attention to buffer relocation in
18088 del_range_2.
18089 (decode_coding): Call decode_eol before restoring undo_list.
18090
180912008-02-01 Kenichi Handa <handa@m17n.org>
18092
18093 * charset.c (Fdefine_charset_internal): Fix setting of
18094 emacs_mule_bytes.
18095
180962008-02-01 Kenichi Handa <handa@m17n.org>
18097
18098 * keyboard.c (read_char): Check if C is a character or not before
18099 looking up Vkeyboard_translate_table.
18100
181012008-02-01 Kenichi Handa <handa@m17n.org>
18102
18103 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18104 condition to terminate the loop.
18105
181062008-02-01 Kenichi Handa <handa@m17n.org>
18107
18108 * coding.c (produce_composition): Compare charbuf[i] instead of
18109 args[i] against 0.
18110 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18111
181122008-02-01 Kenichi Handa <handa@m17n.org>
18113
18114 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18115 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18116 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18117 detect_coding.
18118 (emacs_mule_char): Handle old style (Emacs 20) component character
18119 of a composition.
18120 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18121 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18122 composition rule.
18123 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18124
181252008-02-01 Kenichi Handa <handa@m17n.org>
18126
18127 * coding.c (encode_coding_ccl): Allocate destination dynamically
18128 when necessary.
18129
181302008-02-01 Kenichi Handa <handa@m17n.org>
18131
18132 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18133 the loop. When quitted, show a proper error message.
18134
181352008-02-01 Kenichi Handa <handa@m17n.org>
18136
18137 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18138 src->clip_head and src->clip_tail temporarily instead of src->hl.
18139
18140 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18141 character sequence.
18142 (Fccl_execute_on_string): Use ASET, not XSET.
18143
181442008-02-01 Kenichi Handa <handa@m17n.org>
18145
18146 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18147
181482008-02-01 Kenichi Handa <handa@m17n.org>
18149
18150 * coding.c (decode_coding): Fix the condition of terminating the
18151 decoding loop.
18152
181532008-02-01 Kenichi Handa <handa@m17n.org>
18154
18155 * data.c (Faset): On setting a character bigger than 255 in a
18156 unibyte string, signal an error instead of make the string multibyte.
18157
181582008-02-01 Kenichi Handa <handa@m17n.org>
18159
18160 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18161 made by a mapping table.
18162
181632008-02-01 Kenichi Handa <handa@m17n.org>
18164
18165 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18166 not.
18167 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18168 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18169
18170 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18171 s->face is NULL or not.
18172
181732008-02-01 Kenichi Handa <handa@m17n.org>
18174
18175 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18176 (x_draw_glyph_string): Fix drawing of right_overhang and
18177 left_overhang around/on cursor.
18178
18179 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18180
181812008-02-01 Kenichi Handa <handa@m17n.org>
18182
18183 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18184
181852008-02-01 Kenichi Handa <handa@m17n.org>
18186
18187 * coding.c (Fdefine_coding_system_internal)
18188 (Fdefine_coding_system_alias): Avoid a duplicated element in
18189 Vcoding_system_alist.
18190
181912008-02-01 Kenichi Handa <handa@m17n.org>
18192
18193 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18194
18195 * coding.c (Qcoding_system_define_form): New variable.
18196 (syms_of_coding): Intern and staticpro it.
18197 (Fcoding_system_p): Check Qcoding_system_define_form.
18198 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18199
18200 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18201 Fcoding_system_p.
18202 (CHECK_CODING_SYSTEM): If ID is not available, call
18203 Fcheck_coding_system.
18204 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18205 Try also Fcheck_coding_system.
18206
182072008-02-01 Kenichi Handa <handa@m17n.org>
18208
18209 * coding.c (code_conversion_restore): GCPRO arg.
18210
182112008-02-01 Kenichi Handa <handa@m17n.org>
18212
18213 * character.c (lisp_string_width): Check multibyteness of STRING.
18214
182152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18216
18217 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18218 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18219 (decode_mac_font_name): Use decode_coding_c_string instead of
18220 decode_coding.
18221 (x_load_font): Initialize fontp->fontset to -1. Set
18222 fontp->encoding_type.
18223
182242008-02-01 Kenichi Handa <handa@m17n.org>
18225
18226 * search.c (search_buffer): Give up BM search on case-fold-search
18227 if one of a target character has a case-equivalence of different
18228 byte length even if that target charcter is an ASCII.
18229 (simple_search): Fix calculation of byte length of matched text.
18230 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18231
182322008-02-01 Kenichi Handa <handa@m17n.org>
18233
18234 * coding.c (decode_coding): Fix handling of invalid bytes.
18235
182362008-02-01 Kenichi Handa <handa@m17n.org>
18237
18238 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18239 Unicode characters.
18240
182412008-02-01 Kenichi Handa <handa@m17n.org>
18242
18243 * coding.c (encode_coding_object): If a pre-write-conversion
18244 function makes a new buffer, kill it.
18245
182462008-02-01 Kenichi Handa <handa@m17n.org>
18247
18248 * coding.c (QCascii_compatible_p): New variable.
18249 (syms_of_coding): Initialize it.
18250 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18251 calling string_char.
18252 (record_conversion_result): Add `default:' case.
18253 (coding_charset_list): Delete unused variable `coding_type'.
18254 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18255 property in the plist of the coding system.
18256 (Fcoding_system_put): Check QCascii_compatible_p.
18257
182582008-02-01 Miles Bader <miles@gnu.org>
18259
18260 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18261 removed calculation of frame `f', as it's now used.
18262
182632008-02-01 Kenichi Handa <handa@m17n.org>
18264
18265 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18266 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18267 (UNIDATA): New variable.
18268 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18269 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18270 $(RUN_TEMACS) unconditionally.
18271
182722008-02-01 Kenichi Handa <handa@m17n.org>
18273
18274 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18275 (admindir): New variable.
18276 ($(lispsource)international/charprop.el): New target.
18277
182782008-02-01 Miles Bader <miles@gnu.org>
18279
18280 * character.c (chars-in-region): Remove obsolete function.
18281 (syms_of_character): Remove its initialization.
18282
182832008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18284
18285 * w32select.c (validate_coding_system)
18286 (setup_windows_coding_system): New functions.
18287 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18288 setup_windows_coding_system.
18289 (setup_config, Fw32_get_clipboard_data): Use
18290 validate_coding_system.
18291 (Fx_selection_exists): Move call to setup_config to a place
18292 where signals are allowed.
18293
18294 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18295 (Fcheck_coding_system): Add declarations.
18296
182972008-02-01 Kenichi Handa <handa@m17n.org>
18298
18299 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18300
183012008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18302
18303 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18304 string as the second argument for x_new_fontset.
18305
183062008-02-01 Kenichi Handa <handa@m17n.org>
18307
18308 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18309 (encode_coding_object): Use safe_call instead of call2.
18310
183112008-02-01 Kenichi Handa <handa@m17n.org>
18312
18313 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18314
18315 * Makefile.in (lisp): Include charprop.el.
18316
183172008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18318
18319 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18320 Not sure if it's unnecessary.
18321
183222008-02-01 Steven Tamm <steventamm@mac.com>
18323
18324 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18325 some possibly unnecessary fontset checking code that crashed
18326 when creating a new frame.
18327
183282008-02-01 Kenichi Handa <handa@m17n.org>
18329
18330 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18331 lookup_face.
18332
18333 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18334
18335 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18336
183372008-02-01 Kenichi Handa <handa@m17n.org>
18338
18339 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18340 (coding_charset_list): New function.
18341
18342 * coding.h (coding_charset_list): Extern it.
18343
183442008-02-01 Kenichi Handa <handa@m17n.org>
18345
18346 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18347 concatenation of family and registry.
18348
183492008-02-01 Kenichi Handa <handa@m17n.org>
18350
18351 * character.h (BYTE8_STRING): Fix typo.
18352
18353 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18354 string to multibyte (sync to HEAD).
18355
18356 * casefiddle.c (casify_region): Handle changes in byte-length
18357 using replace_range_2 (sync to HEAD).
18358
183592008-02-01 Andreas Schwab <schwab@suse.de>
18360
18361 * chartab.c (map_char_table): GCPRO table and arg.
18362
183632008-02-01 Kenichi Handa <handa@m17n.org>
18364
18365 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18366 already at limit.
18367
183682008-02-01 Kenichi Handa <handa@m17n.org>
18369
18370 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18371 instead of fast_c_string_match_ignore_case.
18372 (find_font_encoding): Change argument to Lisp_Object. Use
18373 fast_string_match_ignore_case instead of
18374 fast_c_string_match_ignore_case. Change caller.
18375
183762008-02-01 Kenichi Handa <handa@m17n.org>
18377
18378 * xdisp.c (get_next_display_element): In unibyte case, decide to
18379 display in octal form by checking a character by
18380 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18381
18382 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18383
18384 * character.c (unibyte_has_multibyte_table): New variable.
18385
18386 * character.h (unibyte_has_multibyte_table): Extern it.
18387 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18388
183892008-02-01 Kenichi Handa <handa@m17n.org>
18390
18391 * coding.c (encode_coding_iso_2022): Fix handling of charset
18392 annotation.
18393
183942008-02-01 Kenichi Handa <handa@m17n.org>
18395
18396 * coding.c (setup_coding_system): If coding_system is nil, use
18397 Qundecided.
18398 (Fterminal_coding_system): Return nil if terminal coding system is
18399 `undecided'.
18400 (syms_of_coding): Define coding-system `undecided' here. Setup
18401 terminal_coding as `undecided'.
18402
184032008-02-01 Kenichi Handa <handa@m17n.org>
18404
18405 * xdisp.c (message_dolog, set_message_1): Call
18406 unibyte_char_to_multibyte with arg type int.
18407
18408 * lread.c (read1): Fix reading of a char-table.
18409
18410 * print.c (print_object): Include sub char-table in circularities
18411 detection.
18412
184132008-02-01 Kenichi Handa <handa@m17n.org>
18414
18415 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18416 Append the found sequences in car of ARGS instead of prepending.
18417
184182008-02-01 Kenichi Handa <handa@m17n.org>
18419
18420 * fileio.c (report_file_error): Make a unibyte string from
18421 strerror (errorno).
18422 (Fsubstitute_in_file_name): Fix the arg to
18423 unibyte_char_to_multibyte. It is evaluated twice.
18424
184252008-02-01 Kenichi Handa <handa@m17n.org>
18426
18427 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18428
184292008-02-01 Kenichi Handa <handa@m17n.org>
18430
18431 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18432 BOM is not found.
18433 (detect_coding, detect_coding_system): Optimization for ISO-2022
18434 when no 8-bit data is found.
18435
184362008-02-01 Jason Rumney <jasonr@gnu.org>
18437
18438 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18439
184402008-02-01 Kenichi Handa <handa@m17n.org>
18441
18442 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18443 CHARS.
18444
184452008-02-01 Steven Tamm <steventamm@mac.com>
18446
18447 * macterm.c (mac_encode_char): Add charset argument and update
18448 to use encoding_type.
18449 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18450 switch to pure fontset.
18451 (decode_mac_font_name): Temporarily remove decoding.
18452 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18453 (x_load_font): Temporarily remove encoding.
18454
184552008-02-01 Kenichi Handa <handa@m17n.org>
18456
18457 * xfaces.c (Fface_font): If frame is not on a window system,
18458 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18459 refer to face->font.
18460 (split_font_name_into_vector, build_font_name_from_vector)
18461 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18462 when HAVE_WINDOW_SYSTEM is defined.
18463
184642008-02-01 Kenichi Handa <handa@m17n.org>
18465
18466 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18467 (x_produce_glyphs): Fix setting of members of cmp in case
18468 cmp->glyph_len is zero.
18469
18470 * fontset.c (Fset_fontset_font): Fix docstring.
18471 (Ffontset_info): Make it backward compatible. New arg ALL.
18472
184732008-02-01 Kim F. Storm <storm@cua.dk>
18474
18475 * process.c (read_process_output): Grow decoding_buf when needed;
18476 this could cause a crash in allocate_string and compact_small_strings.
18477
184782008-02-01 Kenichi Handa <handa@m17n.org>
18479
18480 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18481
184822008-02-01 Kenichi Handa <handa@m17n.org>
18483
18484 * coding.c (setup_coding_system): Set coding->common_flags
18485 correctly for raw-text.
18486 (consume_chars): On encoding unibyte text by raw-text, don't check
18487 multibyte form.
18488 (encode_coding): On encoding by raw-text, never use translation tables.
18489
18490 * fileio.c (e_write): Short cut for the case of no encoding.
18491
184922008-02-01 Kenichi Handa <handa@m17n.org>
18493
18494 * coding.c (detect_coding, detect_coding_system): Delete unused
18495 variables.
18496
184972008-02-01 Kenichi Handa <handa@m17n.org>
18498
18499 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18500 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18501
185022008-02-01 Kenichi Handa <handa@m17n.org>
18503
18504 * coding.c (Ffind_coding_systems_region_internal): Include
18505 raw-text and no-conversion in the result.
18506
185072008-02-01 Kenichi Handa <handa@m17n.org>
18508
18509 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18510 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18511 FONT_DEF.
18512 (font_def_arg, add_arg, from_arg, to_arg): New args.
18513 (set_fontset_font): Change argument.
18514 (Fset_fontset_font): Fix for the case that TARGET is a script
18515 name and charset name.
18516 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18517
185182008-02-01 Kenichi Handa <handa@m17n.org>
18519
18520 * fontset.c (fontset_font): Rename from fontset_face. Change return
18521 value.
18522 (face_suitable_for_char_p, face_for_char): Adjust for the change
18523 of fontset_font.
18524 (make_fontset_for_ascii_face): Fix setting of the fontset element
18525 for ASCII.
18526 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18527 to get a font name.
18528 (Ffontset_info): Adjust for the change of fontset_font.
18529
18530 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18531
18532 * character.h (LEADING_CODE_LATIN_1_MIN)
18533 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18534
185352008-02-01 Kenichi Handa <handa@m17n.org>
18536
18537 * editfns.c (check_translation): New function.
18538 (Ftranslate_region_internal): Handle M:N mapping.
18539
185402008-02-01 Kenichi Handa <handa@m17n.org>
18541
18542 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18543
185442008-02-01 Kenichi Handa <handa@m17n.org>
18545
18546 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18547 goto invalid_code.
18548 (decode_coding_iso_2022): Fix handling of invalid designation.
18549
18550 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18551 after calling code_conversion_save.
18552
185532008-02-01 Kenichi Handa <handa@m17n.org>
18554
18555 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18556
18557 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18558
18559 * fontset.c: Include "intervals.h".
18560 (fontset_face): Fix comparing of Lisp_Objects.
18561 (free_face_fontset, new_fontset_from_font_name): Fix
18562 Lisp_Object/int mixup.
18563
18564 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18565
18566 * coding.c: Add many prototypes for static functions.
18567 (get_translation_table): Allow max_lookup to be NULL.
18568 (decode_coding, Ffind_coding_systems_region_internal)
18569 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18570 get_translation_table with max_lookup NULL.
18571
185722008-02-01 Kenichi Handa <handa@m17n.org>
18573
18574 * coding.c (get_translation_table): Declare it as Lisp_Object.
18575 (LOOKUP_TRANSLATION_TABLE): New macro.
18576 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18577 instead of CHAR_TABLE_REF.
18578
185792008-02-01 Kenichi Handa <handa@m17n.org>
18580
18581 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18582 annotation data format.
18583 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18584 Change arguments FROM and TO to single argument NCHARS. Change caller.
18585 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18586 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18587 (decode_coding_ccl, decode_coding_charset): Pay attention to
18588 coding->charbuf_used.
18589 (get_translation): New function.
18590 (produce_chars): New arguments translation_table and last_block.
18591 Translate characters here. Return number of carryover chars.
18592 Change caller.
18593 (produce_composition): New argument pos. Change caller.
18594 Adjust for the change of annotation data format.
18595 (produce_charset, produce_annotation): Likewise.
18596 (decode_coding, encode_coding): Don't call translate_chars.
18597 (consume_chars): New arg translation_table. Change caller.
18598 (translate_chars): Delete.
18599 (syms_of_coding): Make translation-table's number of extra slots 2.
18600
186012008-02-01 Kenichi Handa <handa@m17n.org>
18602
18603 * search.c (simple_search): Fix setting this_pos_byte in backward
18604 search.
18605
18606 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18607 byte sequence.
18608 (detect_coding_ccl): Fix setting of the variable valids.
18609
186102008-02-01 Kenichi Handa <handa@m17n.org>
18611
18612 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18613
18614 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18615
18616 * editfns.c (Ftranslate_region_internal): Rename from
18617 Ftranslate_region. Accept a char-table in TABLE.
18618 (syms_of_editfns): Defsubr Stranslate_region_internal.
18619
18620 * xfaces.c (set_lface_from_font_name): If a font is specified for
18621 a frame, generate a fontset from the font.
18622 (build_scalable_font_name): If the scalable font is requested for
18623 a specific size, don't change that size.
18624 (try_font_list): Try a scalable font also in the case that a
18625 pattern string is specified.
18626
186272008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 * xfaces.c (Fface_font): New optional arg CHARACTER.
18630
186312008-02-01 Kenichi Handa <handa@m17n.org>
18632
18633 * charset.h (CHARSET_OFFSET): New macro.
18634
186352008-02-01 Kenichi Handa <handa@m17n.org>
18636
18637 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18638
18639 * fontset.c (fontset_face): Handle the case that repertory is a
18640 char-table.
18641 (find_font_encoding): Return nil for unknown encoding.
18642 (Fset_fontset_font): Ignore a font of unknown encoding.
18643
186442008-02-01 Kenichi Handa <handa@m17n.org>
18645
18646 * keymap.c (describe_vector): Handle default value of a char table.
18647
18648 * fontset.c (fontset_face): Handle fallback fonts correctly.
18649 (Ffontset_info): Return infomation about fallback fonts.
18650
186512008-02-01 Kenichi Handa <handa@m17n.org>
18652
18653 * fontset.c (FONTSET_DEFAULT): New macro.
18654 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18655 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18656 the case that it is nil.
18657 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18658 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18659
18660 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18661 subset or superset.
18662
186632008-02-01 Kenichi Handa <handa@m17n.org>
18664
18665 * emacs.c (main): Call init_charset after syms_of_XXX.
18666
18667 * charset.c (Vcharset_map_directory): Delete.
18668 (Vcharset_map_path): New variable.
18669 (load_charset_map_from_file): Use Vcharset_map_path instead.
18670 (init_charset): Initialize Vcharset_map_path.
18671 (syms_of_charset): Delete declaration of "charset-map-directory",
18672 add declaration of "charset-map-path".
18673
186742008-02-01 Kenichi Handa <handa@m17n.org>
18675
18676 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18677 ASCII only string.
18678
18679 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18680
18681 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18682 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18683
186842008-02-01 Kenichi Handa <handa@m17n.org>
18685
18686 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18687
18688 * coding.c (QCmnemonic, QCdefalut_char)
18689 (QCdecode_translation_table, QCencode_translation_table)
18690 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18691 (get_translation_table): Return a list of translation tables if
18692 necessary.
18693 (decode_coding): Call get_translation_table with ENCODEP 0.
18694 (char_encodable_p): If translation_table is non-nil, always call
18695 translate_char.
18696 (Fdefine_coding_system_internal): Accept list of translation
18697 tables as :encode-translation-table and :decode-translation-table.
18698 (Fcoding_system_put): New function.
18699 (syms_of_coding): Declare new symbols. Defsubr
18700 Scoding_system_put.
18701 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18702 typically JISX0212.
18703
18704 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18705 when the charset is superset type.
18706
18707 * character.c (translate_char): Accept list of translation tables.
18708
187092008-02-01 Kenichi Handa <handa@m17n.org>
18710
18711 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18712 (CODING_ATTR_TRANS_TBL): New macro.
18713
18714 * coding.c (get_translation_table): New function.
18715 (translate_chars): Fix the bug of skipping annotation data.
18716 (decode_coding, encode_coding): Utilize get_translation_table.
18717 (char_encodable_p, Funencodable_char_position): Translate char if
18718 necessary.
18719 (Ffind_coding_systems_region_internal)
18720 (Fcheck_coding_systems_region): Setup translation table for encode
18721 in a coding system attribute vector in advance.
18722 (Fdefine_coding_system_internal): Allow a symbol as translation
18723 table. For shift-jis type coding system, allow 4th charset.
18724
187252008-02-01 Kenichi Handa <handa@m17n.org>
18726
18727 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18728
18729 * xdisp.c (get_next_display_element): Pass -1 as POS to
18730 FACE_FOR_CHAR if displaying a C-string.
18731
187322008-02-01 Kenichi Handa <handa@m17n.org>
18733
18734 * composite.c (get_composition_id): Handle xoff and yoff in a
18735 composition rule.
18736
18737 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18738 (struct composition): New member lbearing and rbearing.
18739
18740 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18741 (x_get_glyph_overhangs): Handle a composition glyph.
18742 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18743
18744 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18745 composition glyph.
18746
187472008-02-01 Kenichi Handa <handa@m17n.org>
18748
18749 * print.c: Include charset.h.
18750 (Vprint_charset_text_property): New variable.
18751 (Qdefault): Extern it.
18752 (PRINT_STRING_NON_CHARSET_FOUND)
18753 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18754 (print_check_string_result): New variable.
18755 (print_check_string_charset_prop): New function.
18756 (print_prune_charset_plist): New variable.
18757 (print_prune_string_charset): New function.
18758 (print_object): Call print_prune_string_charset if
18759 Vprint_charset_text_property is not t.
18760 (print_interval): Print nothing if interval->plist is nil.
18761 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18762 variable. Init and staticpro print_prune_charset_plist.
18763
187642008-02-01 Kenichi Handa <handa@m17n.org>
18765
18766 * fontset.c (new_fontset_from_font_name): Use the specified font
18767 for all characters in the new fontset.
18768
18769 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18770 OBJECT args.
18771
18772 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18773 OBJECT args for composition too.
18774
18775 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18776 OBJECT args.
18777
187782008-02-01 Kenichi Handa <handa@m17n.org>
18779
18780 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18781
18782 * fontset.c (reorder_font_vector): Adjust for the change of
18783 FONT_DEF format.
18784 (fontset_face): New arg id. Change caller.
18785 (face_for_char): New args pos and object.
18786 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18787 (fs_query_fontset): Check NAME by Fassoc too.
18788 (Fset_fontset_font): Allow non-XLFD font name.
18789 (Ffontset_info): Adjust for the change of FONT_DEF format.
18790
18791 * fontset.h (face_for_char): Adjust prototype.
18792
18793 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18794 (append_space, extend_face_to_end_of_line)
18795 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18796 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18797
18798 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18799 POS and OBJECT args.
18800
18801 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18802 POS and OBJECT args.
18803
188042008-02-01 Jason Rumney <jasonr@gnu.org>
18805
18806 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18807 of GlobalAlloc'ed memory.
18808
188092008-02-01 Kenichi Handa <handa@m17n.org>
18810
18811 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18812
18813 * charset.h (charset_table_used): Delete extern.
18814
18815 * charset.c (charset_table_used): Make it static.
18816 (map_charset_chars): Fix args to c_function with.
18817
18818 * chartab.c (map_sub_char_table_for_charset): Fix args to
18819 c_function with.
18820
18821 * coding.h (enum coding_result_code): Delete
18822 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18823
18824 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18825 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18826 (Vlast_code_conversion_error): New variables.
18827 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18828 (ONE_MORE_BYTE): Record error if any instead of signaling an
18829 error. If non-ASCII multibyte char is found, return the negative
18830 value of the code. All callers changed to check it.
18831 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18832 (record_conversion_result): New function. Change all codes setting
18833 coding->result to call this function.
18834 (detect_coding_utf_8, decode_coding_utf_8)
18835 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18836 Don't use the local variable incomplete.
18837 (emacs_mule_char): Change the second arg to `const'.
18838 (decode_coding): Fix of flushing out unprocessed data.
18839 (make_conversion_work_buffer): Fix making of a work buffer.
18840 (decode_coding_object): Return coding->dst_object.
18841
18842 * fontset.c (set_fontset_font): Fix args.
18843
18844 * lisp.h (CHARACTERBITS): Define as 22.
18845
18846 * process.c (send_process): Be sure to set coding->src_multibyte.
18847
18848 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18849
188502008-02-01 Kenichi Handa <handa@m17n.org>
18851
18852 * xdisp.c (handle_auto_composed_prop): Give limit to
18853 Fnext_single_char_property_change.
18854
188552008-02-01 Kenichi Handa <handa@m17n.org>
18856
18857 * composite.c (syms_of_composite): Don't make the composition hash
18858 table weak.
18859
18860 * fontset.c (Fset_fontset_font): Fix docstring.
18861
18862 * lisp.h (detect_coding_system): Adjust prototype.
18863
18864 * fileio.c (kill_workbuf_unwind): Delete this function.
18865 (Finsert_file_contents): Adjust the call of detect_coding_system.
18866 Get conversion_buffer by code_conversion_save. Use the macro
18867 CODING_MAY_REQUIRE_DECODING. After decoding, update
18868 coding_system.
18869
18870 * coding.h (make_conversion_work_buffer): Delete extern.
18871 (code_conversion_save): Extern it.
18872
18873 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18874 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18875 (decode_coding_utf_8): Don't do eol converion.
18876 (detect_coding_utf_16): Check coding->src_chars, not
18877 coding->src_bytes. Add heuristics for those that have no signature.
18878 (decode_coding_emacs_mule, decode_coding_iso_2022)
18879 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18880 Don't do eol converion.
18881 (adjust_coding_eol_type): Return a new coding system.
18882 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18883 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18884 each change.
18885 (decode_coding): Pay attention to undo_list. Do eol conversion for
18886 all types of coding-systems (if necessary).
18887 (Vcode_conversion_work_buf_list): Delete it.
18888 (Vcode_conversion_reused_workbuf): Rename from
18889 Vcode_conversion_reused_work_buf.
18890 (Vcode_conversion_workbuf_name): New variable.
18891 (reused_workbuf_in_use): New variable.
18892 (make_conversion_work_buffer): Delete the arg DEPTH.
18893 (code_conversion_restore): Change argument to cons.
18894 (code_conversion_save): Delete the argument BUFFER. Change callers.
18895 (detect_coding_system): New argument src_chars. Change callers.
18896 Fix for utf-16 detection.
18897 (init_coding_once): Don't use ISO_carriage_return.
18898 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18899 reused_workbuf_in_use.
18900
189012008-02-01 Kenichi Handa <handa@m17n.org>
18902
18903 * keymap.c (store_in_keymap): Pay attention to the case that idx
18904 is a cons specifying a character range.
18905
189062008-02-01 Kenichi Handa <handa@m17n.org>
18907
18908 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18909 HANDLED_RECOMPUTE_PROPS.
18910
18911 * coding.c (Fdefine_coding_system_internal): Fix checking of
18912 ascii compatibility.
18913
189142008-02-01 Kenichi Handa <handa@m17n.org>
18915
18916 * charset.c (find_charsets_in_text): Delete unused locale variable.
18917 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18918
18919 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18920 Resync charset_list to Vemacs_mule_charset_list.
18921
18922 * keymap.c (store_in_keymap): Pay attention to the case that idx
18923 is a cons specifying a character range.
18924
189252008-02-01 Kenichi Handa <handa@m17n.org>
18926
18927 * composite.c (update_compositions): Bind inhibit-read-only, etc
18928 to t before calling remove-list-of-text-properties.
18929
18930 * print.c (print_object): Always print ASCII chars as is.
18931
189322008-02-01 Kenichi Handa <handa@m17n.org>
18933
18934 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18935
18936 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18937 is a char table.
18938
189392008-02-01 Kenichi Handa <handa@m17n.org>
18940
18941 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18942
189432008-02-01 Kenichi Handa <handa@m17n.org>
18944
18945 * xfaces.c (set_lface_from_font_name): Fix for the case that
18946 FONTNAME is not fontset name.
18947
189482008-02-01 Kenichi Handa <handa@m17n.org>
18949
18950 * fns.c (base64_encode_1): Fix previous change.
18951
189522008-02-01 Kenichi Handa <handa@m17n.org>
18953
18954 * fontset.c (set_fontset_font): New function.
18955 (Fset_fontset_font): If a font is specified for a charset, use
18956 map_charset_chars to store the font spec in a fontset.
18957
189582008-02-01 Kenichi Handa <handa@m17n.org>
18959
18960 * fontset.c (fontset_face): Create a fallback fontset on demand.
18961 (make_fontset): Don't create a fallback fontset here.
18962 (free_face_fontset): Free a fallback fontset (if any) too.
18963 (n_auto_fontsets): Delete this variable.
18964 (auto_fontset_alist): New variable.
18965 (new_fontset_from_font_name): Check auto_fontset_alist.
18966 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18967 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18968 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18969 Defsubr Sfontset_list_all.
18970
189712008-02-01 Kenichi Handa <handa@m17n.org>
18972
18973 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18974
189752008-02-01 Kenichi Handa <handa@m17n.org>
18976
18977 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18978
189792008-02-01 Kenichi Handa <handa@m17n.org>
18980
18981 * editfns.c (Fgoto_char): Fix docstring.
18982
189832008-02-01 Kenichi Handa <handa@m17n.org>
18984
18985 * insdel.c (insert_from_gap): Adjust intervals correctly.
18986
189872008-02-01 Jason Rumney <jasonr@gnu.org>
18988
18989 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18990 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18991 (w32_initialize): Try to load it.
18992 (x_get_font_repertory): Use it if available.
18993 (w32_encode_char): Add shortcut for unicode output.
18994
18995 * w32fns.c (w32_load_system_font): Default charset to -1.
18996 (x_to_w32_charset): Match all fonts for unicode.
18997 (w32_to_x_charset): New parameter matching. Don't return partial
18998 or wildcard charsets.
18999 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19000 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19001 (w32_to_x_font): Match charset to real charset.
19002 (enum_font_cb2): Always list unicode versions.
19003
19004 * makefile.w32-in (temacs): Increase EMHEAP.
19005
190062008-02-01 Jason Rumney <jasonr@gnu.org>
19007
19008 * w32term.c (w32_encode_char): New charset parameter.
19009 font_info.encoding becomes encoding_type.
19010 (x_get_font_repertory): New function. Warning: stub only!
19011 (x_new_font): Return quickly if font already set.
19012 (x_new_fontset): fontsetname parameter is Lisp_Object.
19013 Use new fs_query_fontset. Try new_fontset_from_font_name.
19014 Use fontset_name for return value.
19015
19016 * w32term.h: Declare x_get_font_repertory.
19017
19018 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19019 place of find_charset_in_text. Use encode_coding_object in place
19020 of encode_coding.
19021 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19022 decode_coding.
19023
19024 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19025 of x_new_fontset.
19026 (w32_load_system_font): Initialize charset as unicode.
19027 font_info.encoding becomes encoding_type.
19028 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19029 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19030 (syms_of_w32fns): Set get_font_repertory_func.
19031
19032 * w32console.c: Include character.h. Use terminal_encode_buffer
19033 from term.c.
19034 (write_glyphs): Use new version of encode_terminal_code. Use
19035 encode_coding_object in place of encode_coding.
19036
19037 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19038 encoding becomes encoding_type.
19039
19040 * term.c (terminal_encode_buffer): Make externally visible.
19041
19042 * makefile.w32-in: Add character.h dependancies.
19043 (character.o, chartab.o): New targets.
19044
190452008-02-01 Kenichi Handa <handa@m17n.org>
19046
19047 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19048 CODING_ID_EOL_TYPE.
19049
190502008-02-01 Andreas Schwab <schwab@suse.de>
19051
19052 * coding.c (produce_chars): Revert last change.
19053
190542008-02-01 Kenichi Handa <handa@m17n.org>
19055
19056 * charset.h (charset_unicode): Extern it.
19057
19058 * charset.c (string_xstring_p): Check by (C >= 0x100).
19059 (find_charsets_in_text): Change format of the arc CHARSETS. New
19060 arg MULTIBYTE.
19061 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19062 change of find_charsets_in_text.
19063 (Fsplit_char): Fix doc. Never return unknown.
19064
19065 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19066
19067 * coding.c (Fdefine_coding_system_alias): Update
19068 Vcoding_system_list.
19069
19070 * fontset.c (load_font_get_repertory): Pay attention to the case
19071 that ENCODING of a font is specified by a char-table.
19072
19073 * xterm.c (x_get_font_repertory): Handle the case that the
19074 encoding of font is other than Unicode.
19075
190762008-02-01 Kenichi Handa <handa@m17n.org>
19077
19078 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19079 if a character is encodable by the terminal coding system. If
19080 not, produces proper number of `?'s. Update
19081 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19082 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19083
190842008-02-01 Kenichi Handa <handa@m17n.org>
19085
19086 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19087 variables.
19088 (encode_terminal_code): Change argument. Encode multiple
19089 characters at once. Store the result of encoding in
19090 terminal_encode_buffer.
19091 (write_glyphs, insert_glyphs): Adjust for the change of
19092 encode_terminal_code.
19093 (term_init): Initialize terminal_encode_buffer and
19094 terminal_encode_buf_size.
19095
19096 * coding.c (consume_chars): If coding->src_object is nil, don't
19097 check annotation.
19098
190992008-02-01 Kenichi Handa <handa@m17n.org>
19100
19101 * character.c (char_string): Use ASCII_CHAR_P instead of
19102 SINGLE_BYTE_CHAR_P.
19103
191042008-02-01 Kenichi Handa <handa@m17n.org>
19105
19106 * xdisp.c (handle_auto_composed_prop): Check if the last
19107 characters of auto-composed region is newly composed with the
19108 following characters.
19109 (handle_composition_prop): Fix checking of point being inside
19110 composition.
19111
191122008-02-01 Kenichi Handa <handa@m17n.org>
19113
19114 * fns.c (concat): Don't change multibyteness of the result by
19115 concatenating an 8-bit character.
19116
19117 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19118 multibyteness of the result when newelt is an 8-bit character.
19119
191202008-02-01 Dave Love <fx@gnu.org>
19121
19122 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19123 EMACS_INT.
19124
19125 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19126
19127 * xfaces.c (face_numeric_value): Declare dim size_t.
19128 (Finternal_lisp_face_equal_p): Remove unused f.
19129
19130 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19131 (MATRIX_ROW): Remove unused vars.
19132 (draw_glyphs, x_insert_glyphs, fast_find_position)
19133 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19134 byte/char counts.
19135
19136 * regex.c (regex_compile): Remove unused var.
19137
19138 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19139
19140 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19141 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19142
19143 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19144
19145 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19146
19147 * fileio.c (Fwrite_region): Remove unused var.
19148
19149 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19150 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19151
19152 * composite.c (Fremove_list_of_text_properties): Declare.
19153
19154 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19155 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19156 (coding_inherit_eol_type): Remove unused attrs.
19157 (detect_coding): Cast arg of detect_eol.
19158
19159 * charset.c (syms_of_charset): Remove unused var p.
19160 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19161 byte/char counts.
19162
19163 * casetab.c (set_case_table): Remove unused var.
19164
19165 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19166 unused vars.
19167
191682008-02-01 Dave Love <fx@gnu.org>
19169
19170 * xterm.c (x_bitmap_mask): Declare.
19171
191722008-02-01 Dave Love <fx@gnu.org>
19173
19174 * xterm.c (x_term_init): Fix type error.
19175
19176 * lisp.h: Add Funibyte_char_to_multibyte.
19177
19178 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19179 (Fset_coding_system_priority): Doc fix.
19180
19181 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19182
19183 * indent.c (check_composition): Make start and end EMACS_INT.
19184
19185 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19186
19187 * xdisp.c (handle_composition_prop, check_point_in_composition):
19188 Make buffer positions EMACS_INT.
19189
19190 * composite.c (find_composition, run_composition_function)
19191 (update_compositions, Ffind_composition_internal): Make buffer
19192 positions EMACS_INT.
19193
19194 * composite.h (find_composition, update_compositions): Make
19195 position args EMACS_INT.
19196
19197 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19198
19199 * intervals.c (get_property_and_range):
19200 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19201
19202 * unexalpha.c: Don't include varargs.h.
19203
192042008-02-01 Dave Love <fx@gnu.org>
19205
19206 * coding.h (ENCODE_UTF_8): New.
19207
19208 * Makefile.in (gtkutil.o): Depend on coding.h.
19209
19210 * coding.c (Fset_coding_system_priority): Doc fix.
19211
192122008-02-01 Kenichi Handa <handa@m17n.org>
19213
19214 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19215 the case of auto saving.
19216
192172008-02-01 Andreas Schwab <schwab@suse.de>
19218
19219 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19220 `range' from GC.
19221
192222008-02-01 Kenichi Handa <handa@m17n.org>
19223
19224 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19225
192262008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * fileio.c (choose_write_coding_system): Return a decided coding system.
19229 (Fwrite_region): Set Vlast_coding_system_used to the return value
19230 of choose_write_coding_system.
19231
192322008-02-01 Kenichi Handa <handa@m17n.org>
19233
19234 * charset.c (Fset_charset_priority): Pay attention to duplicated
19235 arguments.
19236
19237 * coding.c (QCcategory): New variable.
19238 (syms_of_coding): Defsym it. Set all elements of
19239 Vcoding_category_table and their symbol values.
19240 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19241 coding-category-XXX, and coding-category-list.
19242 (Fdefine_coding_system_internal): Add category in the plist.
19243
192442008-02-01 Kenichi Handa <handa@m17n.org>
19245
19246 * callproc.c (Fcall_process): Handle carryover correctly.
19247
19248 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19249 (raw_text_coding_system): Check NILP (coding_system).
19250 (coding_inherit_eol_type): Check NILP (coding_system) and
19251 NILP (parent).
19252 (consume_chars): Fix for the case of raw-text.
19253
19254 * process.c (read_process_output): Handle carryover correctly.
19255
192562008-02-01 Dave Love <fx@gnu.org>
19257
19258 * regex.c (re_search_2): Fix last change.
19259
192602008-02-01 Kenichi Handa <handa@m17n.org>
19261
19262 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19263 target_multibyte. Even in a unibyte case, return a converted
19264 multibyte char.
19265 (GET_CHAR_AFTER): New macro.
19266 (PATFETCH): Translate via multibyte char.
19267 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19268 (SETUP_MULTIBYTE_RANGE): New macro.
19269 (regex_compile): Setup compiled code so that its multibyteness
19270 matches that of a target. Fix the handling of "[X-YZ]" using
19271 SETUP_MULTIBYTE_RANGE.
19272 (analyse_first) <charset>: For filling fastmap for all multibyte
19273 characters, don't check by BASE_LEADING_CODE_P.
19274 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19275 the same as RE_MULTIBYTE_P (bufp) now.
19276 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19277 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19278 (TRANSLATE_VIA_MULTIBYTE): New macro.
19279 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19280 It is the same as RE_MULTIBYTE_P (bufp) now.
19281 <exactn>: Translate via multibyte.
19282 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19283 translate it.
19284 <charset, charset_not>: Fetch a character by
19285 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19286 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19287 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19288 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19289 by GET_CHAR_AFTER.
19290 (bcmp_translate): Likewise.
19291
19292 * search.c (compile_pattern): Check the member target_multibyte,
19293 not the member multibyte of buf.
19294
19295 * lread.c (read1): While reading a string, set force_singlebyte
19296 and force_multibyte correctly.
19297
19298 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19299 up of unibyte_to_multibyte_table.
19300
193012008-02-01 Kenichi Handa <handa@m17n.org>
19302
19303 * coding.c (setup_coding_system): If coding has
19304 post-read-conversion or pre-write-conversion, set
19305 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19306 respectively.
19307 (decode_coding_gap): Run post-read-conversion if any.
19308
19309 * fileio.c (Finsert_file_contents): Even if we read into a
19310 unibyte buffer, check if we must decode the result or not.
19311
193122008-02-01 Kenichi Handa <handa@m17n.org>
19313
19314 * coding.c (make_conversion_work_buffer): Change the work buffer
19315 name to the same one as that of Emacs 21.
19316
193172008-02-01 Kenichi Handa <handa@m17n.org>
19318
19319 * coding.h (make_conversion_work_buffer): Adjust prototype.
19320 (code_conversion_restore): Don't extern it.
19321
19322 * coding.c (detected_mask): Delete unused variable.
19323 (decode_coding_iso_2022): Pay attention to the byte sequence of
19324 CTEXT extended segment, and retain those bytes as is.
19325 (decode_coding_ccl): Delete unused variable `valids'.
19326 (setup_coding_system): Delete unused variable `category'.
19327 (consume_chars): Delete unused variable `category'. Make it work
19328 for non-multibyte case.
19329 (make_conversion_work_buffer): Change argument.
19330 (saved_coding): Delete unused variable.
19331 (code_conversion_restore): Don't check saved_coding->destination.
19332 (code_conversion_save): New function.
19333 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19334 instead of record_unwind_protect.
19335 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19336 (detect_coding_system): Delete unused variable `mask'.
19337 (Fdefine_coding_system_internal): Delete unused variable id.
19338
19339 * fileio.c (kill_workbuf_unwind): New function.
19340 (Finsert_file_contents): On replacing, call
19341 make_conversion_work_buffer with correct args, and call
19342 record_unwind_protect with the first arg kill_workbuf_unwind.
19343
19344 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19345
193462008-02-01 Kenichi Handa <handa@m17n.org>
19347
19348 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19349 (fontset_add): Fix for the case that TO is less than TO1.
19350 (Ffontset_info): Don't use fallback fontset on checking the
19351 default fontset.
19352 (dump_fontset): New function for debugging.
19353
19354 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19355 coding_type is Qcharset.
19356
193572008-02-01 Kenichi Handa <handa@m17n.org>
19358
19359 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19360 (map_char_table): Don't inherit the value from the parent on
19361 initializing VAL. Adjust for the above change.
19362
193632008-02-01 Kenichi Handa <handa@m17n.org>
19364
19365 * coding.c (Qsignature, Qendian): Delete these variables.
19366 (syms_of_coding): Don't initialize them.
19367 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19368 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19369 detect_info->found.
19370 (decode_coding_utf_16): Don't detect BOM here.
19371 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19372 is NOT utf_16_without_bom.
19373 (setup_coding_system): For a coding system of type utf-16, check
19374 if the attribute :endian is Qbig or not (not nil or not), and set
19375 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19376 (detect_coding): If coding type is utf-16 and BOM detection is
19377 required, detect it.
19378 (Fdefine_coding_system_internal): For a coding system of type
19379 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19380
193812008-02-01 Kenichi Handa <handa@m17n.org>
19382
19383 * coding.c (coding_set_source): Fix for the case that the current
19384 buffer is different from coding->src_object.
19385 (decode_coding_object): Don't use the conversion work buffer if
19386 DST_OBJECT is a buffer.
19387
193882008-02-01 Dave Love <fx@gnu.org>
19389
19390 * lread.c (read_emacs_mule_char) [len==2]: Index
19391 emacs_mule_charset correctly.
19392
193932008-02-01 Dave Love <fx@gnu.org>
19394
19395 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19396 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19397 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19398 treated specially.)
19399 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19400 (detected_mask): Remove Big5 bits.
19401
194022008-02-01 Kenichi Handa <handa@m17n.org>
19403
19404 The following changes are to make the font rescaling facility
19405 compatible with Emacs 21.
19406
19407 * xfaces.c (Vface_font_rescale_alist): Rename from
19408 Vface_resizing_fonts.
19409 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19410 (font_rescale_ratio): Rename from font_resizing_ratio.
19411 (split_font_name): Set font->rescale_ratio.
19412 (better_font_p): Pay attention to font->rescale_ratio.
19413 (build_scalable_font_name): Likewise. Change RESX, and RESY
19414 fields.
19415 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19416
194172008-02-01 Kenichi Handa <handa@m17n.org>
19418
19419 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19420 (Qutf_16_le): Remove these variables.
19421 (syms_of_coding): Don't DEFSYM them.
19422 (decode_coding_utf_16): Fix handling of BOM.
19423 (encode_coding_utf_16): Fix handling of BOM.
19424
194252008-02-01 Kenichi Handa <handa@m17n.org>
19426
19427 * fileio.c (Finsert_file_contents): On replacing, before decoding
19428 the file into the work buffer, set point of the work buffer to the end.
19429
194302008-02-01 Dave Love <fx@gnu.org>
19431
19432 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19433
194342008-02-01 Dave Love <fx@gnu.org>
19435
19436 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19437 and fix C types.
19438
194392008-02-01 Kenichi Handa <handa@m17n.org>
19440
19441 * xdisp.c (SKIP_GLYPHS): New macro.
19442 (set_cursor_from_row): Pay attention to string display properties.
19443
19444 * category.c (copy_category_entry): Fix for the case that RANGE
19445 is an integer.
19446
19447 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19448
19449 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19450
194512008-02-01 Kenichi Handa <handa@m17n.org>
19452
19453 * charset.c (Fcharset_id_internal): New function.
19454 (syms_of_charset): Defsubr it.
19455
19456 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19457 with the last arg charset_list acquired from coding.
19458 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19459 the attribute coding_attr_ccl_valids.
19460
19461 * coding.h (enum define_coding_ccl_arg_index): Set the first
19462 member coding_arg_ccl_decoder to coding_arg_max.
19463
19464 * ccl.h (ccl_driver): Adjust prototype.
19465
19466 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19467 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19468 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19469 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19470 last arg Qnil.
19471
194722008-02-01 Kenichi Handa <handa@m17n.org>
19473
19474 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19475 call encode_char.
19476
19477 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19478
194792008-02-01 Dave Love <fx@gnu.org>
19480
19481 * composite.c (syms_of_composite): Make composition_hash_table weak.
19482
194832008-02-01 Kenichi Handa <handa@m17n.org>
19484
19485 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19486 (font_name_registry): Don't extern them.
19487 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19488
19489 * fontset.h (Qfontset): Don't extern it.
19490 (new_fontset_from_font_name): Extern it.
19491
19492 * fontset.c: Give 8 extra slots to fontset objects.
19493 (Qfontset_info): New variable.
19494 (syms_of_fontset): Defsym it.
19495 (FONTSET_FALLBACK): New macro.
19496 (fontset_face): Try also the default fontset.
19497 (make_fontset): Realize a fallback fontset from the default fontset.
19498 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19499 using split_font_name_into_vector and build_font_name_from_vector.
19500 (Fset_fontset_font): Access the elements of font_spec by enum
19501 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19502 name by using split_font_name_into_vector.
19503 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19504 generate a proper font name from the fontset name. Update
19505 Vfontset_alias_alist.
19506 (n_auto_fontsets): New variable.
19507 (new_fontset_from_font_name): New function.
19508 (Ffont_info): Store the information about fonts generated from the
19509 default fontset in the first extra slot of the returned char-table.
19510
19511 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19512 (font_name_registry): Delete function.
19513 (split_font_name_into_vector): New function.
19514 (build_font_name_from_vector): New function.
19515 (font_list): The argument REGISTRY is now a list of registry names.
19516 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19517 specifies an explicit font name, return the name as is. Make a
19518 list of registy names.
19519
19520 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19521 of x_new_fontset.
19522 (Fx_create_frame): Don't call x_new_fontset here. Just use
19523 x_list_fonts to check the existence of fonts.
19524
19525 * xterm.h (x_new_fontset): Adjust prototype.
19526
19527 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19528 string. Use new_fontset_from_font_name to create a fontset from a
19529 font name.
19530
195312008-02-01 Kenichi Handa <handa@m17n.org>
19532
19533 * syntax.c (Vfind_word_boundary_function_table): New name for
19534 Vnext_word_boundary_function_table.
19535 (find-word-boundary-function-table): New name for
19536 next-word-boundary-function-table.
19537
195382008-02-01 Dave Love <fx@gnu.org>
19539
19540 * Makefile.in: Fix some dependencies.
19541
19542 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19543 set it to nil before returning.
19544
19545 * composite.c (update_compositions): Fix type error.
19546
19547 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19548
195492008-02-01 Kenichi Handa <handa@m17n.org>
19550
19551 * xterm.c (x_new_font): Optimize for the case that the font is
19552 already set for the frame.
19553
195542008-02-01 Kenichi Handa <handa@m17n.org>
19555
19556 * chartab.c (char_table_ascii): Check if the char table contents
19557 is sub-char-table or not.
19558 (char_table_set, char_table_set_range): Fix argument to
19559 char_table_ascii.
19560
19561 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19562 (detect_coding_utf_8, detect_coding_utf_16)
19563 (detect_coding_emacs_mule, detect_coding_iso_2022)
19564 (detect_coding_sjis, detect_coding_big5)
19565 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19566 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19567 sequence is valid in this coding system. Change callers.
19568 (MAX_ANNOTATION_LENGTH): New macro.
19569 (ADD_ANNOTATION_DATA): New macro.
19570 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19571 ADD_ANNOTATION_DATA. Change the format of annotation data.
19572 (ADD_CHARSET_DATA): New macro.
19573 (emacs_mule_char): New argument ID. Change callers.
19574 (decode_coding_emacs_mule, decode_coding_iso_2022)
19575 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19576 Produce charset annotation data in coding->charbuf.
19577 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19578 to charset annotation data in coding->charbuf.
19579 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19580 coding->common_flags if the coding system is iso-2022 based and
19581 uses designation.
19582 (produce_composition): Adjust for the new annotation data format.
19583 (produce_charset): New function.
19584 (produce_annotation): Handle charset annotation.
19585 (handle_composition_annotation, handle_charset_annotation): New
19586 functions.
19587 (consume_chars): Handle charset annotation. Utilize the above two
19588 functions.
19589 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19590 buffer, get the deleted text as a string and set
19591 coding->src_object to that string.
19592 (detect_coding, detect_coding_system): Use the new struct
19593 coding_detection_info.
19594
19595 * coding.h (struct coding_detection_info): New structure.
19596 (struct coding_system): Adjust prototype of the member `detector'.
19597 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19598
195992008-02-01 Kenichi Handa <handa@m17n.org>
19600
19601 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19602
196032008-02-01 Dave Love <fx@gnu.org>
19604
19605 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19606 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19607 to new local and nullify apropos_accumulate before returning.
19608 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19609
196102008-02-01 Kenichi Handa <handa@m17n.org>
19611
19612 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19613 correctly.
e3eea1fc 19614
aac0c6e3
MR
196152008-02-01 Dave Love <fx@gnu.org>
19616
19617 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19618
196192008-02-01 Kenichi Handa <handa@m17n.org>
19620
19621 The following changes are to make character composition happen
19622 automatically on displaying.
19623
19624 * Makefile.in (lisp, shortlisp): Add composite.elc.
19625
19626 * composite.h (Qauto_composed, Vauto_composition_function)
19627 (Qauto_composition_function): Extern them.
19628
19629 * composite.c (Vcomposition_function_table)
19630 (Qcomposition_function_table): Delete variables.
19631 (Qauto_composed, Vauto_composition_function)
19632 (Qauto_composition_function): New variables.
19633 (run_composition_function): Don't call
19634 compose-chars-after-function.
19635 (update_compositions): Clear `auto-composed' text property.
19636 (compose_chars_in_text): Delete this function.
19637 (syms_of_composite): Staticpro Qauto_composed and
19638 Qauto_composition_function. Declare Vauto_composition_function as
19639 a Lisp variable.
19640
19641 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19642
19643 * xdisp.c (it_props): Add an entry for Qauto_composed.
19644 (handle_auto_composed_prop): New function.
19645
19646 * xselect.c (selection_data_to_lisp_data): Don't call
19647 compose_chars_in_text.
19648
196492008-02-01 Dave Love <fx@gnu.org>
19650
19651 * keyboard.c (read_char): Modify checking around use of
19652 Vkeyboard_translate_table.
19653
19654 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19655 and fix C types.
19656
196572008-02-01 Kenichi Handa <handa@m17n.org>
19658
19659 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19660 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19661 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19662 the case that the last byte is '\r' correctly.
19663 (decode_coding): Flush out the unprocessed data correctly.
19664 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19665
196662008-02-01 Dave Love <fx@gnu.org>
19667
19668 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19669 Add XK_ISO... case.
19670 (xaw_scroll_callback): Revert last change.
19671
196722008-02-01 Kenichi Handa <handa@m17n.org>
19673
19674 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19675
196762008-02-01 Kenichi Handa <handa@m17n.org>
19677
19678 * xfaces.c (Vface_resizing_fonts): New variable.
19679 (struct font_name): New member `resizing_ratio'.
19680 (font_resizing_ratio): New function.
19681 (split_font_name): Set font->resizing_ratio.
19682 (better_font_p): Pay attention to font->resizing_ratio.
19683 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19684 RESX, and RESY fields.
19685 (try_alternative_families): Try scalable fonts if
19686 Vscalable_fonts_allowed is not Qt.
19687 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19688
196892008-02-01 Dave Love <fx@gnu.org>
19690
19691 * xterm.c (xaw_scroll_callback): Cast correctly.
19692
196932008-02-01 Dave Love <fx@gnu.org>
19694
19695 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19696 (lispy_kana_keys): Comment out.
19697 (make_lispy_event) [XK_kana_A]: Comment out.
19698
19699 * xterm.c (xaw_scroll_callback): Cast call_data.
19700 (XTread_socket): Deal with ASCII keysyms.
19701 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19702
197032008-02-01 Dave Love <fx@gnu.org>
19704
19705 * xterm.c (Vx_keysym_table): New.
19706 (syms_of_xterm): Initialize it.
19707 (XTread_socket): Use it.
19708 From head: Eliminate incorrect optimization that tried to avoid
19709 decoding the output of X*LookupString.
19710 (x_get_font_repertory): Delete charset declaration.
19711
197122008-02-01 Kenichi Handa <handa@m17n.org>
19713
19714 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19715 return 0.
19716 (Fdefine_coding_system_internal): Setup
19717 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19718
197192008-02-01 Dave Love <fx@gnu.org>
19720
19721 * coding.c (Fcheck_coding_system): Doc fix.
19722
19723 * editfns.c (Finsert_byte): Return a proper value.
19724
197252008-02-01 Kenichi Handa <handa@m17n.org>
19726
19727 * coding.c (decode_coding): Fix args to translate_chars. Pay
19728 attention to Vstandard_translation_table_for_decode.
19729 (encode_coding): Fix args to translate_chars. Pay attention to
19730 Vstandard_translation_table_for_encode.
19731
19732 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19733 SINGLE_BYTE_CHAR_P.
19734
19735 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19736 not by SINGLE_BYTE_CHAR_P.
19737
19738 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19739 SINGLE_BYTE_CHAR_P.
19740
19741 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19742 SINGLE_BYTE_CHAR_P.
19743
19744 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19745 by SINGLE_BYTE_CHAR_P.
19746
19747 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19748 SINGLE_BYTE_CHAR_P.
19749
197502008-02-01 Dave Love <fx@gnu.org>
19751
19752 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19753
197542008-02-01 Dave Love <fx@gnu.org>
19755
19756 * fns.c (Flanginfo): Fix typo.
19757
19758 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19759
197602008-02-01 Kenichi Handa <handa@m17n.org>
19761
19762 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19763 (detect_coding_emacs_mule, detect_coding_iso_2022)
19764 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19765 incomplete byte sequence. Don't update *mask when correctly detected.
19766 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19767 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19768 (detect_coding, detect_coding_system): Adjust for the changes above.
19769
197702008-02-01 Kenichi Handa <handa@m17n.org>
19771
19772 * character.c (char_string): Rename from
19773 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19774 (string_char): Rename from string_char.
19775
19776 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19777 if C is greater than MAX_3_BYTE_CHAR.
19778 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19779 string_char instead of string_char_with_unification.
19780
197812008-02-01 Dave Love <fx@gnu.org>
19782
19783 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19784
197852008-02-01 Kenichi Handa <handa@m17n.org>
19786
19787 * keymap.c (push_key_description): Pay attention to force_multibyte.
19788
19789 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19790
197912008-02-01 Dave Love <fx@gnu.org>
19792
19793 * charset.c (define_charset_internal): Rename `supprementary'.
19794
19795 * Makefile.in (lisp, shortlisp): Remove latin-N.
19796
197972008-02-01 Dave Love <fx@gnu.org>
19798
19799 * xfns.c (x_window, x_window): Use use_xim.
19800
19801 * xterm.c (use_xim): Initialize.
19802 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19803 (x_term_init): Maybe set use_xim.
19804
19805 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19806
198072008-02-01 Kenichi Handa <handa@m17n.org>
19808
19809 * search.c (search_buffer): Fix case-fold-search of multibyte
19810 characters.
19811 (boyer_moore): Rename the last argument to char_high_bits.
19812
198132008-02-01 Kenichi Handa <handa@m17n.org>
19814
19815 * xdisp.c (display_string): Fix for the case of zero width glyph.
19816
19817 * xfns.c (x_set_font): Change the error message of the case that
19818 x_new_fontset returns Qt.
19819
19820 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19821 (Finternal_set_lisp_face_attribute): Use signal_error for the
19822 error of invalid fontset.
19823
19824 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19825 fontset, return Qt.
19826
198272008-02-01 Dave Love <fx@gnu.org>
19828
19829 * unexelf.c (unexec): Make .got handling not SGI-specific.
19830
19831 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19832
19833 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19834
19835 * keyboard.c (read_key_sequence): Fix type error.
19836
19837 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19838 type error.
19839
19840 * fontset.c (fontset_add): Return Lisp_Object.
19841
198422008-02-01 Dave Love <fx@gnu.org>
19843
19844 * charset.h (charset_ordered_list_tick): Declare extern.
19845
198462008-02-01 Kenichi Handa <handa@m17n.org>
19847
19848 The following changes (and some of 2008-02-01 changes of mine) are
19849 for handling syntax, category, and case conversion for unibyte
19850 characters by converting them to multibyte on the fly. With these
19851 changes, we don't have to setup syntax and case tables for unibyte
19852 characters in each language environment.
19853
19854 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19855 multibyte if necessary.
19856
19857 * bytecode.c (Fbyte_code): Likewise.
19858
19859 * character.h (LEADING_CODE_LATIN_1_MIN)
19860 (LEADING_CODE_LATIN_1_MAX): New macros.
19861 (unibyte_to_multibyte_table): Extern it.
19862 (unibyte_char_to_multibyte): New macro.
19863 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19864 (CHAR_LEADING_CODE): New macro.
19865 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19866
19867 * character.c (unibyte_to_multibyte_table): New variable.
19868 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19869 (multibyte_char_to_unibyte): If C is an eight-bit character,
19870 convert it to the corresponding byte value.
19871
19872 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19873 not 1, signals an error. Update the elements of
19874 unibyte_to_multibyte_table.
19875 (init_charset_once): Initialize unibyte_to_multibyte_table.
19876 (syms_of_charset): Define the charset `iso-8859-1'.
19877
19878 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19879 as is without converting it to unibyte. In a unibyte buffer,
19880 convert C to multibyte before checking the syntax.
19881
19882 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19883
19884 * minibuf.c (Fminibuffer_complete_word): Use the macro
19885 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19886
19887 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19888
19889 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19890 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19891 that is zero, convert an eight-bit char to multibyte.
19892 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19893 non-emacs case.
19894 (PATFETCH): Convert an eight-bit char to multibyte.
19895 (HANDLE_UNIBYTE_RANGE): New macro.
19896 (regex_compile): Setup the compiled pattern for multibyte chars
19897 even if the given regex string is unibyte. Use PATFETCH_RAW
19898 instead of PATFETCH in many places. To handle `charset'
19899 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19900 only for ASCII chars.
19901 (analyse_first) <exactn>: Simplify because the compiled pattern
19902 is multibyte.
19903 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19904 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19905 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19906 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19907 multibyte always 1.
19908 (re_search_2): In emacs, set the locale variable multibyte to 1,
19909 otherwise to 0. New local variable target_multibyte. Check it
19910 to decide the multibyteness of STR1 and STR2. If
19911 target_multibyte is zero, convert unibyte chars to multibyte
19912 before translating and checking fastmap.
19913 (TARGET_CHAR_AND_LENGTH): New macro.
19914 (re_match_2_internal): In emacs, set the locale variable multibyte
19915 to 1, otherwise to 0. New local variable target_multibyte. Check
19916 it to decide the multibyteness of STR1 and STR2. Use
19917 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19918 <charset, charset_not>: If multibyte is nonzero, check fastmap
19919 only for ASCII chars. Call bcmp_translate with
19920 target_multibyte, not with multibyte.
19921 <begline>: Declare the local variable C as `unsigned'.
19922 (bcmp_translate): Change the last arg name to target_multibyte.
19923
19924 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19925 the regexp pattern and the matching target. Set cp->buf.multibyte
19926 to the multibyteness of the regexp pattern. Set
19927 cp->but.target_multibyte to the multibyteness of the matching target.
19928 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19929 FETCH_STRING_CHAR_ADVANCE.
19930 (Freplace_match): Convert unibyte chars to multibyte.
19931
19932 * syntax.c (char_quoted, back_comment, scan_words)
19933 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19934 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19935 unibyte chars to multibyte.
19936 (skip_chars): Delete the arg syntaxp, and move the code for
19937 handling syntaxes to skip_syntaxes. Change callers.
19938 Fix the case that the multibyteness of STRING and the current
19939 buffer doesn't match.
19940 (skip_syntaxes): New function.
19941 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19942 SINGLE_BYTE_CHAR_P.
19943
199442008-02-01 Kenichi Handa <handa@m17n.org>
19945
19946 * xfaces.c (QCfontset): New variable.
19947 (LFACE_FONTSET): New macro.
19948 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19949 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19950 (Finternal_set_lisp_face_attribute)
19951 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19952 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19953 check also LFACE_FONTSET_INDEX.
19954 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19955 attrs[LFACE_FONT_INDEX].
19956 (syms_of_xfaces): Intern and staticpro QCfontset.
19957
19958 * dispextern.h (enum lface_attribute_index): New member
19959 LFACE_FONTSET_INDEX.
19960
19961 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19962
199632008-02-01 Kenichi Handa <handa@m17n.org>
19964
19965 * coding.c (coding_set_destination): Fix coding->destination for
19966 the case converting a region.
19967 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19968 (encode_coding_object): Fix coding->dst_pos and
19969 coding->dst_pos_byte for the case converting a region.
19970
19971 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19972
19973 * character.h (BYTE8_STRING): New macro.
19974
19975 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19976
199772008-02-01 Kenichi Handa <handa@m17n.org>
19978
19979 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19980 characters by octal form.
19981
19982 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19983
19984 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19985 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19986 _fetch_multibyte_char_len.
19987 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19988
19989 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19990
19991 * casefiddle.c (casify_object): Simplify. Handle the case that
19992 the case conversion change the byte length.
19993 (casify_region): Likewise.
19994
19995 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19996
19997 * character.c (_fetch_multibyte_char_len): Delete this variable.
19998 (syms_of_character): Setup Vprintable_chars.
19999
20000 * editfns.c (Fchar_equal): Fix for the unibyte case.
20001 (Finsert_byte): New function.
20002 (syms_of_editfns): Defsubr it.
20003
20004 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20005 of direct code 0x3ffff.
20006
20007 * search.c (Freplace_match): Fix for the unibyte case.
20008
200092008-02-01 Kenichi Handa <handa@m17n.org>
20010
20011 * lread.c (safe_to_load_p): Fix the logic.
20012
20013 * syntax.c (scan_words): Don't treat characters belonging to
20014 different scripts as constituting a word.
20015
20016 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20017
20018 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20019
20020 * emacs.c (main): In the case of --unibyte, instead of aborting on
20021 finding non-empty buffer, make it unibyte.
20022
200232008-02-01 Kenichi Handa <handa@m17n.org>
20024
20025 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20026 to create a fontset.
20027
200282008-02-01 Dave Love <fx@gnu.org>
20029
20030 * character.c (Funibyte_char_to_multibyte): Doc fix.
20031
20032 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20033
200342008-02-01 Kenichi Handa <handa@m17n.org>
20035
20036 * fontset.c (fontset_add): Make the type `int'.
20037 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20038
20039 * character.c (unibyte_char_to_multibyte)
20040 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20041 charset_unibyte, not charset_primary.
20042
20043 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20044
20045 * charset.c (charset_unibyte): Rename from charset_primary.
20046 (Funibyte_charset): Rename from Fprimary_charset.
20047 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20048 (syms_of_charset): Adjust for the above changes.
20049
20050 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20051 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20052 it->multibyte_p is zero.
20053
20054 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20055 Delete extern.
20056
200572008-02-01 Kenichi Handa <handa@m17n.org>
20058
20059 * coding.c (Fdefine_coding_system_internal): Fix category setting
20060 for a coding system of type iso-2022.
20061
200622008-02-01 Kenichi Handa <handa@m17n.org>
20063
20064 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20065
200662008-02-01 Kenichi Handa <handa@m17n.org>
20067
20068 * syntax.c (Vnext_word_boundary_function_table): New variable.
20069 (next-word-boundary-function-table): Declare it as a Lisp variable
20070 in syms_of_syntax.
20071 (scan_words): Call functions in Vnext_word_boundary_function_table
20072 if any.
20073
20074 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20075
20076 * fontset.c (fs_load_font): If fontp->charset is not negative,
20077 return fontp without setting its members.
20078
200792008-02-01 Dave Love <fx@gnu.org>
20080
20081 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20082
20083 * m/sparc.h (HAVE_ALLOCA): Delete.
20084
20085 * s/irix6-5.h: Don't include strings.h.
20086 (bcopy, bzero, bcmp): Don't undef.
20087
20088 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20089
20090 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20091 (TIOCSIGSEND): Don't test IRIX6.
20092 (bcopy, bzero, bcmp): Define conditionally.
20093
200942008-02-01 Kenichi Handa <handa@m17n.org>
20095
20096 * buffer.c (Qas, Qmake, Qto): New variables.
20097 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20098 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20099
20100 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20101 we are inserting a process output into a multibyte buffer.
20102
20103 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20104 multibyte_char_to_unibyte.
20105
20106 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20107 by the primary charset, make it eight-bit char.
20108 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20109
20110 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20111 (charset_8_bit__control, charset_8_bit_graphic)
20112 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20113 (define_charset_internal): New function.
20114 (syms_of_charset): Call define_charset_internal for pre-defined
20115 charsets.
20116
20117 * charset.h (charset_8_bit): Extern it.
20118
20119 * coding.c (make_conversion_work_buffer): Adjust for the change
20120 of Fset_buffer_multibyte.
20121 (encode_coding_raw_text): Increment p0 in the loop.
20122
20123 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20124
20125 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20126 for the change of Fset_buffer_multibyte.
20127
20128 * fns.c (Fstring_to_multibyte): New function.
20129 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20130
201312008-02-01 Dave Love <fx@gnu.org>
20132
20133 * xfns.c (x_put_x_image): Declare args.
20134
20135 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20136 (try_font_list): Declare an arg.
20137
20138 * xdisp.c (message2_nolog, set_message): Declare an arg.
20139
20140 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20141
20142 * syntax.c (scan_sexps_forward): Declare an arg.
20143
20144 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20145 Declare an arg.
20146
20147 * lisp.h (Fnew_fontset): Declare.
20148
20149 * keymap.c (push_key_description): Call CHARACTERP correctly.
20150
20151 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20152 (face_for_char): Delete unused vars.
20153 (Fset_fontset_font): Doc fix. Delete unused vars.
20154
20155 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20156
20157 * composite.c (update_compositions): Declare arg.
20158
20159 * cm.c (calccost, cmgoto): Declare args.
20160
20161 * charset.c: Remove `emacs' conditional. Doc fixes.
20162 (map_char_table_for_charset): Declare.
20163
20164 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20165
20166 * ccl.c: Remove `emacs' conditional.
20167
201682008-02-01 Kenichi Handa <handa@m17n.org>
20169
20170 The following changes are to allow specifying multiple font
20171 patterns for a character range (specified by script or charset).
20172
20173 * Makefile.in (abbrev.o): Depend on syntax.h.
20174 (xfaces.o): Depend on charset.h.
20175
20176 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20177 SINGLE_BYTE_CHAR_P.
20178
20179 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20180
20181 * character.h (Vchar_script_table): Extern it.
20182
20183 * character.c (Vscript_alist): Delete.
20184 (Vchar_script_table, Qchar_script_table): New variable.
20185 (syms_of_character): Declare Vchar_script_table as a lisp variable
20186 and initialize it.
20187
20188 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20189 have property char-table-extra-slots, make no extra slot.
20190
20191 * dispextern.h (struct face): Delete member `charset'.
20192 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20193 SINGLE_BYTE_CHAR_P.
20194 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20195 Add prototypes.
20196 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20197 (generate_ascii_font_name): Rename from generate_ascii_font.
20198
20199 * fontset.h (get_font_repertory_func): New prototype.
20200 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20201 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20202
20203 * fontset.c (Qprepend, Qappend): New variables.
20204 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20205 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20206 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20207 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20208 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20209 (load_font_get_repertory): New functions.
20210 (fontset_set): Delete.
20211 (fontset_face): New arg FACE. Return face ID, not face.
20212 Complete re-write to handle new fontset structure. Change caller.
20213 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20214 (face_for_char): Don't call lookup_face.
20215 (make_fontset_for_ascii_face): New arg FACE.
20216 (fs_load_font): New arg CHARSET_ID. Don't check
20217 Vfont_encoding_alist here.
20218 (find_font_encoding): New function.
20219 (list_fontsets): Use STRINGP, not ! NILP.
20220 (accumulate_script_ranges): New function.
20221 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20222 re-written to handle new fontset structure.
20223 (Ffontset_font): Return a copy of element.
20224 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20225 docstring of font-encoding-alist.
20226
20227 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20228 (Fset_fotset_font): Fix arguments to 5.
20229
20230 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20231
20232 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20233 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20234 (highlight_trailing_whitespace): Adjust for the change of
20235 lookup_named_face.
20236
20237 * xfaces.c: Include charset.h.
20238 (load_face_font): Delete argument C. Change caller.
20239 (generate_ascii_font_name): Rename from generate_ascii_font.
20240 (font_name_registry): New function.
20241 (cache_face): Store ascii faces before non-ascii faces in buckets.
20242 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20243 Lookup only ascii faces.
20244 (lookup_non_ascii_face): New function.
20245 (lookup_named_face): Delete argument C. Change caller.
20246 (lookup_derived_face): Delete argument C. Change caller.
20247 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20248 a string, just call font_list with it.
20249 (choose_face_font): Delete arguments FACE and C. New arg
20250 FONT_SPEC. Change caller.
20251 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20252 Change caller.
20253 (realize_non_ascii_face): New function.
20254 (realize_x_face): Call load_face_font here.
20255 (realize_tty_face): Delete argument C. Change caller.
20256 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20257 get a face ID.
20258 (dump_realized_face): Don't print charset of FACE.
20259
20260 * xfns.c (x_set_font): Always call x_new_fontset and
20261 store_frame_parameter.
20262 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20263 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20264
20265 * xterm.h (x_get_font_repertory): Extern it.
20266
20267 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20268 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20269 it->multibyte_p is zero.
20270 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20271 (x_new_fontset): If FONTSETNAME doesn't match any existing
20272 fontsets, create a new one.
20273 (x_get_font_repertory): New function.
20274
202752008-02-01 Kenichi Handa <handa@m17n.org>
20276
20277 * coding.c (Ffind_coding_systems_region_internal): Detect an
20278 ASCII only string correctly.
20279
20280 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20281 version is 0.
20282
202832008-02-01 Kenichi Handa <handa@m17n.org>
20284
20285 * lread.c: Include "coding.h".
20286 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20287 (load_each_byte, unread_char): New variables.
20288 (readchar_backlog): Delete.
20289 (readchar): Return a character unless load_each_byte is nonzero.
20290 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20291 cons. If unread_char is not -1, simply return it.
20292 (unreadchar): Handle the case that readcharfun is
20293 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20294 (read_multibyte): Delete.
20295 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20296 (read_emacs_mule_char): New functions.
20297 (Fload): Even if the file doesn't have the extension ".elc", if
20298 safe_to_load_p returns a positive version number, assume that the
20299 file contains bytecompiled code. If the version is less than 22,
20300 load the file while decoding multibyte sequences by emacs-mule.
20301 (readevalloop): Don't use readchar_backlog.
20302 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20303 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20304 (read_escape): Delete the arg BYTEREP.
20305 (read1): Set load_each_byte to 1 temporarily while handling
20306 #@NUMBER. Don't call read_multibyte.
20307 (read_vector): Call Fread with a cons. If readcharfun is
20308 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20309 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20310 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20311 and Qload_force_doc_strings.
20312
203132008-02-01 Kenichi Handa <handa@m17n.org>
20314
20315 * xdisp.c (face_before_or_after_it_pos): Call
20316 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20317
203182008-02-01 Kenichi Handa <handa@m17n.org>
20319
20320 * character.h (TRAILING_CODE_P): New macro.
20321 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20322 (string_char_with_unification): Fix prototype.
20323 (Vscript_alist): Extern it.
20324
20325 * character.c (Vscript_alist): New variable.
20326 (string_char_with_unification, str_as_unibyte)
20327 (string_escape_byte8): Add `const' to local variables.
20328 (syms_of_character): Declare script-alist as a Lisp variable.
20329
20330 * charset.h (Vcharset_ordered_list): Extern it.
20331 (charset_ordered_list_tick): Extern it.
20332 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20333 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20334 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20335 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20336 (Funify_charset): Adjust for the change of Funify_charset.
20337
20338 * charset.c (charset_ordered_list_tick): New variable.
20339 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20340 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20341 deunify intead of unify a charset.
20342 (string_xstring_p): Add `const' to local variables.
20343 (find_charsets_in_text): Add `const' to arguments and local variables.
20344 (encode_char): Adjust for the change of Funify_charset. Fix
20345 detecting of invalid code.
20346 (Fset_charset_priority): Increment charset_ordered_list_tick.
20347 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20348 and TO_CODE.
20349
20350 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20351 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20352 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20353 (decode_coding_ccl, consume_chars)
20354 (Ffind_coding_systems_region_internal)
20355 (Fcheck_coding_systems_region): Add `const' to local variables.
20356
20357 * print.c (print_object): Use octal form for printing the
20358 contents of a bool vector.
20359
203602008-02-01 Dave Love <fx@gnu.org>
20361
20362 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20363 <version == 20>: Refuse to load.
20364
203652008-02-01 Dave Love <fx@gnu.org>
20366
20367 * fns.c: Move coding.h.
20368 (Qcodeset, Qdays, Qmonths): New.
20369 (concat): Use CHARACTERP instead of INTEGERP.
20370 (Flocale_codeset): Delete.
20371 (Flanginfo): New function.
20372 (syms_of_fns): Change accordingly.
20373
20374 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20375
203762008-02-01 Dave Love <fx@gnu.org>
20377
20378 * casetab.c (init_casetab_once, init_casetab_once): Fix
20379 CHAR_TABLE_SET call.
20380
20381 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20382
20383 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20384
20385 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20386 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20387 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20388
20389 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20390
20391 * coding.c (ENCODE_DESIGNATION, decode_eol)
20392 (make_conversion_work_buffer, code_conversion_restore)
20393 (Fdefine_coding_system_internal): Convert Lisp types.
20394 (code_conversion_restore): Use EQ, not ==.
20395 (Fencode_coding_string): Fix code_convert_string call.
20396
20397 * coding.h (code_convert_region): Fix prototype.
20398
20399 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20400
20401 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20402 (Ffontset_info): Convert Lisp types.
20403
20404 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20405
20406 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20407
20408 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20409
20410 * chartab.c: Include "...h", not <...h> in some cases.
20411
20412 * callproc.c (Fcall_process): Remove unused variables.
20413
204142008-02-01 Dave Love <fx@gnu.org>
20415
20416 * coding.c (Fset_coding_system_priority): Allow null arg list.
20417
204182008-02-01 Dave Love <fx@gnu.org>
20419
20420 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20421 (Fself_insert_and_exit): Use CHARACTERP.
20422
20423 * callproc.c (Fcall_process): Remove unused vars.
20424
20425 * xterm.c (XTread_socket): Add extra dead keysyms.
20426
20427 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20428
20429 * dispextern.h: Remove prototypes for redraw_frame,
20430 redraw_garbaged_frames.
20431
20432 * cmds.c (Fself_insert_command): Use CHARACTERP.
20433
20434 * chartab.c (make_sub_char_table): Remove unused var.
20435 (Fset_char_table_default, Fmap_char_table): Doc fix.
20436
20437 * keymap.c (access_keymap): Remove generic char code.
20438 (push_key_description): Use CHARACTERP.
20439
204402008-02-01 Dave Love <fx@gnu.org>
20441
20442 * charset.c: Doc fixes.
20443 (Funify_charset): Extra checking.
20444
204452008-02-01 Dave Love <fx@gnu.org>
20446
20447 * lread.c: Remove some unused variables.
20448 (safe_to_load_p): If safe, return the magic number version byte.
20449 (Fload): Maybe use load-with-code-conversion.
20450
204512008-02-01 Kenichi Handa <handa@m17n.org>
20452
20453 * category.c (Fmodify_category_entry): Don't modify the contents
20454 of category_set for characters out of the range. Avoid
20455 unnecessary modification.
20456
20457 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20458 Vchar_unify_table. The default value of the table is now nil.
20459
20460 * character.c (syms_of_character): Setup Vchar_width_table for
20461 eight-bit-control and raw-byte chars.
20462
20463 * charset.h (enum define_charset_arg_index): Delete
20464 charset_arg_parents and add charset_arg_subset and
20465 charset_arg_superset.
20466 (enum charset_attr_index): Delete charset_parents and add
20467 charset_subset and charset_superset.
20468 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20469 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20470 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20471 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20472 (CHARSET_SUPERSET): New macros.
20473 (charset_work): Extern it.
20474 (ENCODE_CHAR): Use charset_work.
20475 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20476 (map_charset_chars): Extern it.
20477
20478 * charset.c (load_charset_map): Set the default value of encoder
20479 and deunifier char-tables to nil.
20480 (map_charset_chars): Change argument. Change callers. Use
20481 map_char_table_for_charset instead of map_char_table.
20482 (Fmap_charset_chars): New optional args from_code and to_code.
20483 (Fdefine_charset_internal): Adjust for the change of
20484 `define-charset' (:parents -> :subset or :superset).
20485 (charset_work): New variable.
20486 (encode_char, syms_of_charset): Adjust for the change of
20487 Fdefine_charset_internal.
20488 (Ffind_charset_string): Setup the vector `charsets' correctly.
20489
20490 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20491 the previous change.
20492 (char_table_ref_and_range): Adjust for the above change.
20493 (map_sub_char_table_for_charset): New function.
20494 (map_char_table_for_charset): New function.
20495
20496 * keymap.c (describe_vector): Handle a char-table directly here.
20497 (describe_char_table): Delete.
20498
20499 * lisp.h (map_charset_chars): Delete.
20500
205012008-02-01 Dave Love <fx@gnu.org>
20502
20503 * fns.c (count_combining): Comment out (unused).
20504 (Flocale_codeset): New.
20505 (syms_of_fns): Defsubr it.
20506
20507 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20508 (size_t): Remove.
20509
205102008-02-01 Dave Love <fx@gnu.org>
20511
20512 * Makefile.in (chartab.o): Depend on charset.h.
20513
205142008-02-01 Kenichi Handa <handa@m17n.org>
20515
20516 * character.c (syms_of_character): Set the default value of
20517 Vprintable_chars to Qnil.
20518
205192008-02-01 Dave Love <fx@gnu.org>
20520
20521 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20522
205232008-02-01 Kenichi Handa <handa@m17n.org>
20524
20525 * charset.c (load_charset_map): Handle the case that from < to
20526 correctly.
20527
20528 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20529 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20530 Pay attention to raw-8-bit chars.
20531
205322008-02-01 Kenichi Handa <handa@m17n.org>
20533
20534 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20535 It is not bytecompiled now.
20536
20537 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20538 (charset_jisx0208): New variables.
20539 (Fdefine_charset_internal): Setup them if appropriate.
20540 (init_charset_once): Initialize them to -1.
20541
20542 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20543 (charset_jisx0208): Extern them.
20544
20545 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20546 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20547 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20548 (setup_iso_safe_charsets): Fix arguments to Fassq.
20549 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20550 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20551 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20552 (encode_coding_iso_2022): Change the 1st arg to
20553 ENCODE_ISO_CHARACTER to a variable.
20554
205552008-02-01 Kenichi Handa <handa@m17n.org>
20556
20557 * charset.h (enum define_charset_arg_index): New enums
20558 charset_arg_min_code and charset_arg_max_code.
20559 (struct charset): New member char_index_offset.
20560
20561 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20562 Take charset->char_index_offset into account.
20563 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20564 args[charset_arg_max_code]. Setup charset.char_index_offset.
20565 (syms_of_charset): Fix args to Fdefine_charset_internal.
20566
205672008-02-01 Dave Love <fx@gnu.org>
20568
20569 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20570
205712008-02-01 Dave Love <fx@gnu.org>
20572
20573 * coding.c: Doc fixes.
20574 (Fcoding_system_aliases): Fix return value.
20575 (Qmac): Remove (duplicated) definition.
20576
205772008-02-01 Dave Love <fx@gnu.org>
20578
362654a6
JB
20579 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20580 New functions.
aac0c6e3
MR
20581
20582 * character.c (Fstring): Doc fix.
20583
20584 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20585
362654a6 20586 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20587 (font-encoding-alist): Doc fix.
20588
205892008-02-01 Dave Love <fx@gnu.org>
20590
20591 * term.c (costs_set): Declare static, non-initialized for pcc.
20592 (encode_terminal_code): Remove unused var.
20593
20594 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20595 for K&R.
20596
20597 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20598
20599 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20600 (suffixes): Move out of make_subsidiaries for K&R.
20601
20602 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20603
20604 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20605
206062008-02-01 Dave Love <fx@gnu.org>
20607
20608 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20609
20610 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20611
206122008-02-01 Yong Lu <lyongu@asia-infonet.com>
20613
20614 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20615
20616 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20617
206182008-02-01 Kenichi Handa <handa@m17n.org>
20619
20620 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20621 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20622
206232008-02-01 Kenichi Handa <handa@m17n.org>
20624
20625 * coding.c (decode_coding_charset): Adjust for the change of
20626 Fdefine_coding_system_internal.
20627 (Fdefine_coding_system_internal): For a coding system of
20628 `charset' type, store a list of charset IDs in
20629 `charset_attr_charset_valids' element of coding attributes.
20630
206312008-02-01 Kenichi Handa <handa@m17n.org>
20632
20633 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20634 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20635 caller. Handle 2-byte and 3-byte charsets correctly.
20636 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20637 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20638 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20639 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20640 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20641 sequence.
20642 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20643 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20644 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20645 and alt&rule composition.
20646 (decode_coding_iso_2022): Handle composition correctly.
20647 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20648
20649 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20650 re-defining a charset. If the charset has :emacs-mule-id, setup
20651 emacs_mule_bytes.
20652 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20653
206542008-02-01 Kenichi Handa <handa@m17n.org>
20655
20656 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20657 (encode_coding_big5, encode_coding_charset): If coding requires safe
20658 encoding, produce a character specified by
20659 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20660
206612008-02-01 Dave Love <fx@gnu.org>
20662
20663 * xterm.c (XSetIMValues): Declare.
20664
20665 * process.c: Conditionally include sys/wait.h, pty.h.
20666
20667 * print.c (print_object): Fix print format for 64-bit systems.
20668
20669 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20670
20671 * buffer.c (emacs_strerror): Declare.
20672
20673 * fontset.c (Fclear_face_cache): Declare.
20674 (accumulate_font_info): Comment-out (unused).
20675 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20676 variables.
20677
20678 * character.h (string_escape_byte8): Declare.
20679
20680 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20681 unused vars.
20682 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20683 (Fmap_charset_chars): Doc fix.
20684
20685 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20686 (Fset_coding_system_priority, Fset_coding_system_priority)
20687 (Fdefine_coding_system_internal): Doc fix.
20688
206892008-02-01 Dave Love <fx@gnu.org>
20690
20691 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20692
206932008-02-01 Kenichi Handa <handa@m17n.org>
20694
20695 * character.c (string_escape_byte8): Make multibyte string with
20696 correct size.
20697
20698 * charset.c (Fmake_char): Delete unnecessary code.
20699
207002008-02-01 Kenichi Handa <handa@m17n.org>
20701
20702 * xfns.c (x_encode_text): Allocate coding.destination here, and
20703 call encode_coding_object with dst_object Qnil.
20704
20705 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20706 multibyte form correctly.
20707
20708 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20709 against Vfont_encoding_alist.
20710
20711 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20712 handling of charset list.
20713 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20714 (decode_coding_object): Move point to coding->dst_pos before
20715 calling post-read-conversion function.
20716 (encode_coding_object): Give correct arguments to
20717 pre-write-conversion. Ignore the return value of
20718 pre-write-conversion function. Pay attention to the case that
20719 pre-write-conversion changes the current buffer. If dst_object is
20720 Qt, even if coding->src_bytes is zero, allocate at least one byte
20721 to coding->destination.
20722
20723 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20724
20725 * charset.c (Fmake_char): Make it more backward compatible.
20726 (Fmap_charset_chars): Fix docstring.
20727
207282008-02-01 Dave Love <fx@gnu.org>
20729
20730 * coding.c: Doc fixes.
20731 (Fdefine_coding_system_alias): Use names, not symbols, in
20732 coding-system-alist.
20733
207342008-02-01 Kenichi Handa <handa@m17n.org>
20735
20736 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20737 of calling free_realized_face.
20738
207392008-02-01 Yong Lu <lyongu@asia-infonet.com>
20740
20741 * charset.c (read_hex): Don't treat SPC as a comment starter.
20742 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20743 (Fdecode_char): Fix typo.
20744
207452008-02-01 Kenichi Handa <handa@m17n.org>
20746
20747 * charset.h (struct charset): New member `code_space_mask'.
20748
20749 * coding.c (coding_set_source): Delete the local variable beg_byte.
20750 (encode_coding_charset, Fdefine_coding_system_internal):
20751 Delete the local variable charset.
20752 (Fdefine_coding_system_internal): Setup
20753 attrs[coding_attr_charset_valids] correctly.
20754
20755 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20756 member to check if CODE is valid or not.
20757 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20758 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20759 is within the range of charset->min_code and carset->max_code.
20760
207612008-02-01 Dave Love <fx@gnu.org>
20762
20763 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20764
20765 * dispextern.h (generate_ascii_font): Fix return type.
20766
20767 * xfaces.c (generate_ascii_font): Fix arg declaration.
20768
20769 * coding.c (coding_inherit_eol_type)
20770 (Fset_terminal_coding_system_internal)
20771 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20772
207732008-02-01 Kenichi Handa <handa@m17n.org>
20774
20775 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20776 multiple charsets correctly.
20777
207782008-02-01 Kenichi Handa <handa@m17n.org>
20779
20780 * search.c (boyer_moore): Fix handling of multibyte character
20781 translation.
20782
20783 * xdisp.c (display_mode_element): When the variable `elt' is
20784 changed, update `this' and `lisp_string'.
20785
207862008-02-01 Kenichi Handa <handa@m17n.org>
20787
20788 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20789
20790 * callproc.c (Fcall_process): Be sure to give the current buffer
20791 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20792
20793 * charset.c (struct charset_map_entries): New struct.
20794 (load_charset_map): Rename from parse_charset_map. New args
20795 entries and n_entries. Change caller.
20796 (load_charset_map_from_file): Rename from load_charset_map.
20797 Change caller. New arg control_flag. Call load_charset_map at
20798 the tail.
20799 (load_charset_map_from_vector): New function.
20800 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20801 (encode_char): If the charset is compact, change a character index
20802 to a code point.
20803
20804 * coding.c (coding_alloc_by_making_gap): Check the case that the
20805 source and destination are the same correctly.
20806 (decode_coding_raw_text): Set coding->consumed_char and
20807 coding->consumed to 0.
20808 (produce_chars): If coding->chars_at_source is nonzero, update
20809 coding->consumed_char and coding->consumed before calling
20810 alloc_destination.
20811 (Fdefine_coding_system_alias): Register ALIAS in
20812 Vcoding_system_alist.
20813 (syms_of_coding): Define `no-conversion' coding system at the tail.
20814
20815 * fileio.c (Finsert_file_contents): Set coding_system instead of
20816 val. If the current buffer is multibyte, always call
20817 decode_coding_gap.
20818
20819 * xfaces.c (try_font_list): Give higher priority to fontset's
20820 family than face's family.
20821
208222008-02-01 Kenichi Handa <handa@m17n.org>
20823
20824 * callproc.c (Fcall_process): Be sure to give the current buffer
20825 to decode_coding_c_string.
20826
20827 * xfaces.c (try_font_list): Give a family specified in a fontset
20828 higher priority than a family specified in a face.
20829
208302008-02-01 Kenichi Handa <handa@m17n.org>
20831
20832 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20833 Fix arguments to insert_from_buffer.
20834
20835 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20836
208372008-02-01 Kenichi Handa <handa@m17n.org>
20838
20839 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20840 (decode_coding_gap): Set coding->dst_multibyte correctly.
20841
208422008-02-01 Kenichi Handa <handa@m17n.org>
20843
20844 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20845 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20846 (encode_coding_utf_16): Substitute coding->default_char for
20847 non-Unicode characters.
20848 (decode_coding): Don't call record_insert here.
20849 (setup_coding_system): Initialize `surrogate' of
20850 coding->spec.utf_16 to 0.
20851 (EMIT_ONE_BYTE): Fix for multibyte case.
20852
20853 * insdel.c (insert_from_gap): Call record_insert.
20854
208552008-02-01 Kenichi Handa <handa@m17n.org>
20856
20857 * casefiddle.c (casify_region): Fix multibyte case.
20858
20859 * character.c (c_string_width): Add return type `int'.
20860 (char_string_with_unification): Delete arg ADVANCED.
20861
20862 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20863 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20864 (CHAR_STRING_ADVANCE): Make it do-while statement.
20865
20866 * chartab.c (sub_char_table_set_range): Optimize for the case
20867 DEPTH == 3. Add workaround code for a GCC optimization bug.
20868
20869 * charset.c (parse_charset_map): Remove an unused variable.
20870
20871 * coding.c: Delete unused variables.
20872
20873 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20874 earlier. If inserted is zero and the coding system doesn't
20875 require flushing, don't call decode_coding_gap.
20876
20877 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20878
208792008-02-01 Kenichi Handa <handa@m17n.org>
20880
20881 The following changes are for using Unicode as an internal
20882 character model, and use UTF-8 format for buffer/string
20883 representation.
20884
20885 * .gdbinit (xchartable): Adjust for the change of char table structure.
20886 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20887
20888 * Makefile.in (obj): Add character.o and chartab.o.
20889 (lisp, shortlisp): Remove utf-8.elc.
20890 (*.o): For many files, change dependency on charset.h to
20891 character.h, and add dependency on character.h.
20892 (character.o, chartab.o): New targets.
20893
20894 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20895 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20896 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20897 of "charset.h".
20898
20899 * dired.c, filelock.c: Include "character.h".
20900
20901 * alloc.c: Include "character.h" instead of "charset.h".
20902 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20903 (syms_of_alloc): Remove defsubr for Smake_char_table.
20904
20905 * buffer.c: Include "character.h" instead of "charset.h", don't
20906 include "coding.h".
20907 (Fset_buffer_multibyte): Adjust for UTF-8.
20908
20909 * buffer.h: EXFUN Fbuffer_live_p.
20910
20911 * callproc.c: Include "character.h" instead of "charset.h".
20912 (Fcall_process): Big change for the new code-conversion APIs.
20913
20914 * casetab.c: Include "character.h" instead of "charset.h".
20915 (set_canon, set_identity, shuffle): Adjust for the new
20916 map_char_table spec.
20917 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20918 accessing the char table structure.
20919
20920 * chartab.c: New file that implements char table.
20921
20922 * category.c: Include "character.h".
20923 (copy_category_entry): New function.
20924 (copy_category_table): Call map_char_table and copy_category_entry.
20925 (Fmake_category_table): Initialize all top-level slots.
20926 (char_category_set): New function.
20927 (modify_lower_category_set): Delete.
20928 (Fmodify_category_entry): Call char_table_ref_and_range.
20929
20930 * category.h (CATEGORY_SET): Just call char_category_set.
20931
20932 * ccl.c: Include "character.h".
20933 (Qccl, Qcclp): New variables.
20934 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20935 it's less than 256.
20936 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20937 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20938 and DST type.
20939 (ccl_driver): Change types of argument, adjust code accordingly.
20940 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20941 ccl_driver.
20942 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20943
20944 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20945 New members src_multibyte, dst_multibyte, consumed, and produced.
20946 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20947 (CODING_SPEC_CCL_PROGRAM): New macro.
20948 (ccl_driver): Update prototype.
20949 (Qccl, Qcclp, Fccl_program_p): Extern them.
20950 (CHECK_CCL_PROGRAM): New macro.
20951
20952 * character.c, character.h, chartab.c: New files.
20953
20954 * charset.c: Mostly re-written. Move character and multibyte sequence
20955 handling codes to character.c.
20956
20957 * charset.h: Mostly re-written. Move character and multibyte sequence
20958 handling codes to character.h.
20959
20960 * coding.c, coding.h: Mostly re-written.
20961
20962 * composite.c: Include "character.h" instead of "charset.h".
20963 (CHAR_WIDTH): Move to character.h.
20964 (HASH_KEY, HASH_VALUE): Delete.
20965
20966 * composite.h (enum composition_method): Change order of enumeration
20967 symbols.
20968
20969 * data.c: Include "character.h" instead of "charset.h".
20970 (Faref): Call CHAR_TABLE_REF for a char table.
20971 (Faset): Call CHAR_TABLE_SET for a char table.
20972
20973 * dispextern.h (free_realized_face, check_face_attribytes)
20974 (generate_ascii_font): Extern them.
20975 (free_realized_multibyte_face): Delete extern.
20976
20977 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20978 table structure.
20979
20980 * editfns.c: Include "character.h" instead of "charset.h".
20981 (Fchar_to_string): Always call CHAR_STRING.
20982
20983 * emacs.c (main): Call init_charset_once, init_charset,
20984 syms_of_chartab, and syms_of_character.
20985
20986 * fileio.c: Include "character.h" instead of "charset.h".
20987 (Finsert_file_contents): Big change for the new code-conversion API.
20988 (choose_write_coding_system, Fwrite_region): Likewise.
20989 (build_annotations_2): Delete.
20990 (e_write): Big change for the new code-conversion API.
20991
20992 * fns.c: Include "character.h" instead of "charset.h".
20993 (copy_sub_char_table): Move to chartab.c.
20994 (Fcopy_sequence): Call copy_char_table for a char table.
20995 (concat): Delete codes calling count_multibyte.
20996 (string_char_to_byte, string_byte_to_char): Adjust for the new
20997 multibyte form.
20998 (internal_equal): Adjust for the change of char table structure.
20999 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21000 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21001 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21002 (char_table_translate, optimize_sub_char_table)
21003 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21004 chartab.c.
21005 (char_table_ref_and_index): Delete.
21006 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21007 (Fmd5): Call preferred_coding_system instead of accessing
21008 Vcoding_category_list. Adjust for the new code-conversion API.
21009 (syms_of_fns): Move defsubr for char table related functions to
21010 chartab.c.
21011
21012 * fontset.c: Mostly re-written.
21013
21014 * fontset.h (struct font_info): Change type of the member encoding_type.
21015 (enum FONT_SPEC_INDEX): New enum.
21016 (fontset_font_pattern, fs_load_font): Update prototype.
21017 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21018
21019 * indent.c: Include "character.h" instead of "charset.h".
21020 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21021
21022 * insdel.c: Include "character.h" instead of "charset.h".
21023 (copy_text): Don't refer to Vnonascii_translation_table.
21024 (insert_from_gap): New function.
21025
21026 * keyboard.c: Include "character.h" instead of "charset.h".
21027 (command_loop_1): Never call direct_output_forward_char before
21028 a non-ASCII character.
21029 (read_char): If Vkeyboard_translate_table is a char table, always
21030 translate a character.
21031
21032 * keymap.c: Include "character.h".
21033 (store_in_keymap): Handle the case that IDX is a cons.
21034 (Fdefine_key): Handle the case that KEY is a cons and the car part
21035 is also a cons (range).
21036 (push_key_description): Adjust for the new character code.
21037 (describe_vector): Call describe_char_table for a char table.
21038 (describe_char_table): New function.
21039
21040 * keymap.h (describe_char_table): Extern it.
21041
21042 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21043 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21044 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21045 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21046 Delete.
21047 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21048 structure.
21049 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21050 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21051 (CHARTAB_SIZE_BITS_3): New macros.
21052 (chartab_size): Extern it.
21053 (struct Lisp_Char_Table): Re-design.
21054 (struct Lisp_Sub_Char_Table): New structure.
21055 (HASH_KEY, HASH_VALUE): Move from fns.c.
21056 (CHARACTERBITS): Define as 22.
21057 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21058 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21059 (GC_SUB_CHAR_TABLE_P): New macro.
21060 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21061 (code_convert_string_norecord): Deleted extern.
21062 (init_character_once, syms_of_character, init_charset)
21063 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21064
21065 * lread.c: Include "character.h".
21066 (read_multibyte): New arg NBYTES.
21067 (read_escape): Change the meaning of returned *BYTEREP.
21068 (to_multibyte): Delete.
21069 (read1): Adjust the handling of char table and string.
21070
21071 * print.c: Include "character.h" instead of "charset.h".
21072 (print_string): Convert 8-bit raw bytes to octal form by
21073 string_escape_byte8.
21074 (print_object): Adjust for the new multibyte form. Print 8-bit
21075 raw bytes always in octal form. Handle sub char table correctly.
21076
21077 * process.c: Include "character.h" instead of "charset.h".
21078 (read_process_output, send_process): Adjust for the new
21079 code-conversion API.
21080
21081 * puresize.h (BASE_PURESIZE): Increase.
21082
21083 * regex.c: Include "character.h" instead of "charset.h".
21084 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21085 (regex_compile): Accept a range whose starting and ending
21086 character have different leading bytes.
21087 (analyse_first): Adjust for the above change.
21088
21089 * search.c: Include "character.h" instead of "charset.h".
21090 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21091 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21092
21093 * syntax.c: Include "character.h" instead of "charset.h".
21094 (syntax_parent_lookup): Delete.
21095 (Fmodify_syntax_entry): Accept a cons as CHAR.
21096 (skip_chars): Adjust for the new multibyte form.
21097 (init_syntax_once): Call char_table_set_range instead of directly
21098 accessing the structure of a char table.
21099
21100 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21101 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21102 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21103 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21104
21105 * term.c: Include "buffer.h" and "character.h".
21106 (encode_terminal_code, write_glyphs): Adjust for the new
21107 code-conversion API.
21108 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21109
21110 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21111
21112 * xdisp.c: Include "character.h".
21113 (get_next_display_element): Adjust for the new multibyte form.
21114 (disp_char_vector): Adjust for the new char table structure.
21115 (decode_mode_spec_coding): Adjust for the new structure of
21116 coding system.
21117 (decode_mode_spec): Adjust for the new code-conversion API.
21118
21119 * xfaces.c: Include "character.h" instead of "charset.h".
21120 (load_face_font): Adjust for the change of choose_face_font and
21121 FS_LOAD_FONT.
21122 (generate_ascii_font): New function.
21123 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21124 (set_font_frame_param): Adjust for the change of choose_face_font.
21125 (free_realized_face): Make it public.
21126 (free_realized_faces_for_fontset): Rename from
21127 free_realized_multibyte_face. Free also faces realized for ASCII.
21128 (choose_face_font): Change arguments. Adjust for the change of
21129 fontset_font_pattern and FS_LOAD_FONT.
21130
21131 * xfns.c: Include "character.h".
21132 (x_encode_text): Adjust for the new code-conversion API.
21133
21134 * xselect.c: Don't include "charset.h".
21135 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21136
21137 * xterm.c: Include "character.h".
21138 (x_encode_char): New argument CHARSET. Change caller.
21139 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21140 Call ENCODE_CHAR instead of SPLIT_CHAR.
21141 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21142 CHAR_WIDTH instead of CHARSET_WIDTH.
21143 (XTread_socket): Adjust for the new code-conversion API.
21144 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21145 (x_load_font): Adjust for the change of struct font.
21146
211472008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21148
21149 * xfaces.c (face_at_buffer_position): Remove unused vars.
21150
211512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21152
21153 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21154 Fix overflow checking.
21155
211562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21157
21158 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21159 Cancel previous change.
21160
211612008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21162
21163 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21164 ccl->eight_bit_control. Fix check for buffer overflow.
21165 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21166 (ccl_driver): Initialize extra_bytes to 0.
21167
211682008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21169
21170 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21171 return it ORed with ctrl_modifier.
21172
211732008-01-29 Miles Bader <miles@gnu.org>
21174
21175 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21176
211772008-01-28 Jason Rumney <jasonr@gnu.org>
21178
21179 * w32.c (stat): Don't double check for networked drive.
21180
211812008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21182
21183 * window.c (run_window_configuration_change_hook): New function.
21184 Code extracted from set_window_buffer. Set the selected frame.
21185 (set_window_buffer): Use it.
21186 * window.h (run_window_configuration_change_hook): Declare.
21187 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21188
21189 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21190
211912008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21192
21193 * Makefile.in: Remove references to unused macros.
21194
211952008-01-26 Eli Zaretskii <eliz@gnu.org>
21196
21197 * w32.c (g_b_init_get_sid_sub_authority)
21198 (g_b_init_get_sid_sub_authority_count): New static variables.
21199 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21200 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21201 (init_user_info): Use them to retrieve uid and gid.
21202 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21203 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21204 st_uid and st_gid of the file.
21205
212062008-01-26 Jason Rumney <jasonr@gnu.org>
21207
21208 * w32.c (logon_network_drive): New function.
21209 (stat): Use it.
21210
212112008-01-26 Chong Yidong <cyd@stupidchicken.com>
21212
21213 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21214 invisible text covered with an ellipsis.
21215
212162008-01-25 Richard Stallman <rms@gnu.org>
21217
21218 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21219 jump back to beginning. Move some other initializations after that.
21220 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21221 New variables.
21222 (syms_of_xdisp): Init them.
21223
21224 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21225
21226 * buffer.c (reset_buffer_local_variables):
21227 Implement `permanent-local-hook'.
21228 (Qpermanent_local_hook): New variable.
21229 (syms_of_buffer): Init and staticpro it.
21230
212312008-01-25 Michael Albinus <michael.albinus@gmx.de>
21232
21233 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21234
212352008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21236
21237 * fns.c (Fclrhash): Return TABLE.
21238
212392008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21240
21241 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21242 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21243 is set even without positional changes.
21244 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21245
21246 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21247
212482008-01-23 Jason Rumney <jasonr@gnu.org>
21249
21250 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21251
21252 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21253 the unicode range available in MULE by locale-coding-system.
21254 Improve dbcs lead byte detection. Set event timestamp and modifiers
21255 earlier.
21256
212572008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21258
21259 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21260 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21261 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21262 when used on child processes.
21263
212642008-01-21 Michael Albinus <michael.albinus@gmx.de>
21265
21266 * dbusbind.c (Fdbus_method_return_internal): Rename from
21267 Fdbus_method_return.
21268 (Fdbus_unregister_object): Move to dbus.el.
21269 (Fdbus_call_method, Fdbus_method_return_internal)
21270 (Fdbus_send_signal): Improve debug messages.
21271
212722008-01-20 Martin Rudalics <rudalics@gmx.at>
21273
21274 * undo.c (undo_inhibit_record_point): New variable.
21275 (syms_of_undo): Initialize it.
21276 (record_point): Don't record point when undo_inhibit_record_point
21277 is set.
21278
212792008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21280
21281 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21282
21283 * xdisp.c (Qauto_hscroll_mode): New var.
21284 (syms_of_xdisp): Initialize it.
21285 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21286 window's buffer.
21287 (hscroll_windows): Don't check automatic_hscrolling_p here.
21288
21289 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21290 vscroll if we're setting window-buffer to the value it already has.
21291
212922008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21293
21294 * m/intel386.h: Remove references to XENIX.
21295
212962008-01-17 Andreas Schwab <schwab@suse.de>
21297
21298 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21299 instead of HAVE_X86_64_LIB64_DIR.
21300 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21301
213022008-01-17 Glenn Morris <rgm@gnu.org>
21303
21304 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21305 to HAVE_X86_64_LIB64_DIR.
21306
213072008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21308
21309 * s/irix3-3.h:
21310 * s/irix4-0.h:
21311 * s/386-ix.h:
21312 * s/domain.h:
21313 * s/hpux9-x11r4.h:
21314 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21315
21316 * sysdep.c: Remove code containing references to symbols defined
21317 by unsupported systems.
21318
213192008-01-16 Glenn Morris <rgm@gnu.org>
21320
21321 * coding.c (select-safe-coding-system-function): Doc fix.
21322
213232008-01-15 Glenn Morris <rgm@gnu.org>
21324
21325 * config.in: Revert 2008-01-13 change: this is a generated file.
21326
213272008-01-13 Tom Tromey <tromey@redhat.com>
21328
21329 * lisp.h: Fix typo.
21330
213312008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21332
21333 * m/sequent-ptx.h:
21334 * m/sequent.h:
21335 * s/ptx.h:
21336 * s/ptx4-2.h:
21337 * s/ptx4.h: Remove files for systems no longer supported.
21338
21339 * callproc.c (Fcall_process): Fix previous change.
21340
213412008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21342
21343 * unexsunos4.c: Remove file, system not supported anymore.
21344
21345 * m/mips.h:
21346 * m/intel386.h:
21347 * callproc.c:
21348 * config.in:
21349 * ecrt0.c:
21350 * emacs.c:
21351 * fileio.c:
21352 * frame.c:
21353 * getpagesize.h:
21354 * keyboard.c:
21355 * lread.c:
21356 * process.c:
21357 * puresize.h:
21358 * sysdep.c:
21359 * systty.h:
21360 * syswait.h:
21361 * unexec.c:
21362 * xdisp.c:
21363 * alloc.c: Remove code containing references to symbols defined by
21364 unsupported systems.
21365
213662008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21367
21368 * coding.c (detect_coding_mask): Fix previous change.
21369
213702008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21371
21372 * coding.c (detect_coding_iso2022): New arg
21373 latin_extra_code_state. Allow Latin extra codes only
21374 when *latin_extra_code_state is nonzero.
21375 (detect_coding_mask): If there is a NULL byte, detect the encoding
21376 as UTF-16 or binary. If Latin extra codes exist, detect the
21377 encoding as ISO-2022 only when there's no other proper encoding is
21378 found.
21379
213802008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21381
21382 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21383 #ifdef MAC_OS.
21384
213852008-01-08 Richard Stallman <rms@gnu.org>
21386
21387 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21388
213892008-01-06 Nick Roberts <nickrob@snap.net.nz>
21390
21391 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21392 menu bar in parentheses.
21393
213942008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21395
21396 * m/7300.h:
21397 * m/acorn.h:
21398 * m/alliant-2800.h:
21399 * m/alliant.h:
21400 * m/alliant1.h:
21401 * m/alliant4.h:
21402 * m/altos.h:
21403 * m/amdahl.h:
21404 * m/apollo.h:
21405 * m/att3b.h:
21406 * m/aviion-intel.h:
21407 * m/aviion.h:
21408 * m/celerity.h:
21409 * m/clipper.h:
21410 * m/cnvrgnt.h:
21411 * m/convex.h:
21412 * m/cydra5.h:
21413 * m/delta88k.h:
21414 * m/dpx2.h:
21415 * m/dual.h:
21416 * m/elxsi.h:
21417 * m/f301.h:
21418 * m/gould-np1.h:
21419 * m/gould.h:
21420 * m/i860.h:
21421 * m/ibmps2-aix.h:
21422 * m/ibmrt-aix.h:
21423 * m/ibmrt.h:
21424 * m/irist.h:
21425 * m/is386.h:
21426 * m/isi-ov.h:
21427 * m/mega68.h:
21428 * m/mg1.h:
21429 * m/news-r6.h:
21430 * m/news-risc.h:
21431 * m/news.h:
21432 * m/nh3000.h:
21433 * m/nh4000.h:
21434 * m/ns16000.h:
21435 * m/ns32000.h:
21436 * m/nu.h:
21437 * m/orion.h:
21438 * m/orion105.h:
21439 * m/paragon.h:
21440 * m/pfa50.h:
21441 * m/plexus.h:
21442 * m/pyramid.h:
21443 * m/pyrmips.h:
21444 * m/sh3el.h:
21445 * m/sps7.h:
21446 * m/sr2k.h:
21447 * m/stride.h:
21448 * m/sun1.h:
21449 * m/sun2.h:
21450 * m/sun3-68881.h:
21451 * m/sun3-fpa.h:
21452 * m/sun3-soft.h:
21453 * m/sun3.h:
21454 * m/sun386.h:
21455 * m/symmetry.h:
21456 * m/tad68k.h:
21457 * m/tahoe.h:
21458 * m/targon31.h:
21459 * m/tek4300.h:
21460 * m/tekxd88.h:
21461 * m/tower32.h:
21462 * m/tower32v3.h:
21463 * m/ustation.h:
21464 * m/wicat.h:
21465 * m/xps100.h:
21466 * s/cxux.h:
21467 * s/cxux7.h:
21468 * s/dgux.h:
21469 * s/dgux4.h:
21470 * s/dgux5-4-3.h:
21471 * s/dgux5-4r2.h:
21472 * s/esix.h:
21473 * s/esix5r4.h:
21474 * s/hiuxmpp.h:
21475 * s/hiuxwe2.h:
21476 * s/iris3-5.h:
21477 * s/iris3-6.h:
21478 * s/isc2-2.h:
21479 * s/isc3-0.h:
21480 * s/isc4-0.h:
21481 * s/isc4-1.h:
21482 * s/newsos5.h:
21483 * s/newsos6.h:
21484 * s/osf1.h:
21485 * s/osf5-0.h:
21486 * s/riscix1-1.h:
21487 * s/riscix12.h:
21488 * s/sco4.h:
21489 * s/sco5.h:
21490 * s/sunos4-0.h:
21491 * s/sunos4-1.h:
21492 * s/sunos413.h:
21493 * s/sunos4shr.h:
21494 * s/umax.h:
21495 * s/unipl5-2.h:
21496 * s/xenix.h:
21497 * cxux-crt0.s:
21498 * unexapollo.c:
21499 * unexconvex.c:
21500 * unexenix.c:
21501 * unexsni.c: Remove files for systems no longer supported.
21502
21503 * m/intel386.h: Remove references to unsupported systems.
21504
21505 * w32.c (get_emacs_configuration): Remove reference to i860.
21506
21507 * sysdep.c: Remove dead code.
21508
215092008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21510
21511 * s/rtu.h:
21512 * m/masscomp.h: Remove files. Platform is obsolete.
21513
215142008-01-04 Michael Albinus <michael.albinus@gmx.de>
21515
21516 * dbusbind.c (Fdbus_method_return): New function.
21517 (xd_read_message): Add the serial number to the event.
21518 (Fdbus_register_method): Activate the function.
21519
215202008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21521
21522 * keyboard.c (read_key_sequence): Fix typo.
21523
215242008-01-03 Michael Albinus <michael.albinus@gmx.de>
21525
21526 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21527 (xd_signature, xd_append_arg): Handle element type detection for
21528 empty arrays.
21529 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21530 SDATA () calls; this must be solved more general.
21531 (Fdbus_register_signal): Use SBYTES instead of strlen.
21532
215332008-01-03 Magnus Henoch <magnus@zemdatav>
21534
21535 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21536 unsigned int for byte values (necessary for big-endian platform).
21537 (Fdbus_call_method): Handle the case of no returned arguments.
21538
215392007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21540
21541 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21542
215432007-12-31 Magnus Henoch <mange@freemail.hu>
21544
21545 * dbusbind.c (xd_signature): Signature of variant is just "v".
21546
215472007-12-30 Michael Albinus <michael.albinus@gmx.de>
21548
21549 * dbusbind.c: Fix several errors and compiler warnings.
21550 Reported by Tom Tromey <tromey@redhat.com>.
21551 (XD_ERROR, XD_DEBUG_MESSAGE)
21552 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21553 (xd_append_arg): Part for basic D-Bus types rewritten.
21554 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21555 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21556 appropriate.
21557 (xd_read_message): Return Qnil. Don't signal an error; it is not
21558 useful during event reading.
21559 (Fdbus_register_signal): Signal an error if the check for
21560 FUNCTIONP fails.
21561 (Fdbus_register_method): New function. The implementation is not
21562 complete, the call of the function signals an error therefore.
21563 (Fdbus_unregister_object): New function, renamed from
21564 Fdbus_unregister_signal. The initial check signals an error, if
21565 the object is not well formed.
21566
215672007-12-30 Richard Stallman <rms@gnu.org>
21568
21569 * textprop.c (get_char_property_and_overlay):
21570 Signal error if POSITION is out of range in a buffer.
21571
215722007-12-29 Martin Rudalics <rudalics@gmx.at>
21573
21574 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21575 because the original parameters are in pure storage now.
21576
215772007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21578
21579 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21580
215812007-12-22 Eli Zaretskii <eliz@gnu.org>
21582
21583 * callint.c (syms_of_callint) <command-history>: Add reference to
21584 history-length in the doc string.
21585
215862007-12-17 Jason Rumney <jasonr@gnu.org>
21587
21588 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21589 before passing as wParam.
21590
215912007-12-22 Michael Albinus <michael.albinus@gmx.de>
21592
21593 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21594 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21595 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21596 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21597 as number.
21598 (Fdbus_call_method): Fix docstring.
21599
216002007-12-21 Michael Albinus <michael.albinus@gmx.de>
21601
21602 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21603 New macros.
21604 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21605 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21606 Simplify.
21607 (xd_signature): New function.
21608 (xd_append_arg): Compute also signatures. Major rewrite.
21609 (xd_retrieve_arg): Make debug messages friendly.
21610 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21611 Check for signatures of arguments.
21612
216132007-12-19 Michael Albinus <michael.albinus@gmx.de>
21614
21615 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21616 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21617 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21618 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21619 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21620 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21621 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21622 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21623 (xd_retrieve_value): Remove. Functionality included in ...
21624 (xd_append_arg): New function.
21625 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21626
216272007-12-16 Michael Albinus <michael.albinus@gmx.de>
21628
21629 * dbusbind.c (top): Include <stdio.h>.
21630 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21631 dbus_message_new_method_call and dbus_message_new_signal.
21632 (Fdbus_register_signal): Rename unique_name to uname.
21633 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21634 non-existing unique name. Fix typos in matching rule. Return an
21635 object which is useful in Fdbus_unregister_signal.
21636 (Fdbus_unregister_signal): Reimplementation, in order to remove
21637 only the corresponding entry.
21638 (Vdbus_registered_functions_table): Change the order of entries.
21639 Apply these changes in xd_read_message and Fdbus_register_signal.
21640
216412007-12-16 Andreas Schwab <schwab@suse.de>
21642
21643 * fileio.c (Finsert_file_contents): Fix overflow check to not
21644 depend on undefined integer overflow.
21645
216462007-12-14 Jason Rumney <jasonr@gnu.org>
21647
21648 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21649 for characters above 127.
21650
216512007-12-13 Jason Rumney <jasonr@gnu.org>
21652
21653 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21654 before dereferencing array.
21655 (lookup_vk_code): Remove zero comparison.
21656
216572007-12-14 Michael Albinus <michael.albinus@gmx.de>
21658
21659 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21660 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21661 Use `unsigned int' instead of `uint'.
21662 (xd_read_message, Fdbus_register_signal): Split expressions into
21663 multiple lines before operators "&&" and "||", according to the
21664 GNU Coding Standards.
21665
216662007-12-14 Eli Zaretskii <eliz@gnu.org>
21667
21668 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21669
216702007-12-12 Juri Linkov <juri@jurta.org>
21671
21672 * buffer.c (Frename_buffer): In interactive spec replace
21673 `read-buffer' with `read-string' that uses `buffer-name-history'
21674 as history, and the current buffer's name as default.
21675
216762007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21677
21678 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21679 manipulating the backtrace manually.
21680 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21681 (struct backtrace, backtrace_list): Remove.
21682 (command_loop_1): Remove dead var `no_direct'.
21683
21684 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21685 preserve non-built-in buffer-local variables.
21686 (Fkill_all_local_variables): Don't re-create&re-set permanent
21687 buffer-local variables.
21688
216892007-12-09 Juri Linkov <juri@jurta.org>
21690
21691 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21692 Lisp code that uses `read-buffer' with current buffer as default.
21693
216942007-12-08 Michael Albinus <michael.albinus@gmx.de>
21695
21696 * dbusbind.c (xd_read_message): Generate an event for every
21697 registered handler. There might be several handlers registered
21698 for the same signal.
21699 (Fdbus_register_signal): Don't overwrite a registration for the
21700 same signal. Add a new registration if handlers are different.
21701 (Vdbus_registered_functions_table): Rework doc string.
21702
217032007-12-07 Michael Albinus <michael.albinus@gmx.de>
21704
21705 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21706 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21707 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21708 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21709 Unify argument lists.
21710 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21711 arguments and hash table keys. Use unique name for service.
21712 (Fdbus_unregister_signal): Remove checks.
21713 (Vdbus_registered_functions_table): Fix doc string.
21714
217152007-12-05 Magnus Henoch <mange@freemail.hu>
21716
21717 * process.c (make_process): Initialize pty_flag to 0.
21718
217192007-12-05 Jason Rumney <jasonr@gnu.org>
21720
21721 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21722 specified XBMs.
21723
217242007-12-05 Richard Stallman <rms@gnu.org>
21725
21726 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21727
217282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21729
21730 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21731 New variable.
21732 (mac_try_close_socket) [MAC_OSX]: New function.
21733 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21734 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21735
21736 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21737 Use mac_try_close_socket.
21738
217392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21740
21741 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21742 reloc_base.
21743 (copy_dysymtab): Compute relocation base here.
21744 (rebase_reloc_address) [__ppc64__]: New function.
21745 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21746 changed.
21747
217482007-12-05 Jason Rumney <jasonr@gnu.org>
21749
21750 * w32proc.c (sys_spawnve): Quote args with wildcards.
21751
217522007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21753
21754 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21755 __objc_* sections.
21756 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21757
217582007-12-05 Michael Albinus <michael.albinus@gmx.de>
21759
21760 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21761 Move check for Vdbus_registered_functions_table to
21762 xd_read_queued_messages.
21763 (xd_read_queued_messages): Protect xd_read_message calls by
21764 internal_condition_case_1.
21765
217662007-12-04 Michael Albinus <michael.albinus@gmx.de>
21767
21768 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21769 Qdbus_system_bus and Qdbus_session_bus, respectively.
21770 (Vdbus_intern_symbols): Remove.
21771 (Vdbus_registered_functions_table): New hash table.
21772 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21773 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21774 Rewrite in order to manage registered functions by hash table
21775 Vdbus_registered_functions_table.
21776
217772007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21778
21779 * xterm.c: Update URL to Window Manager Specification in comment.
21780
217812007-12-02 Michael Albinus <michael.albinus@gmx.de>
21782
21783 * config.in (HAVE_DBUS): Add.
21784
21785 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21786 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21787 (obj): Add $(DBUS_OBJ).
21788 (LIBES): Add $(DBUS_LIBS).
21789 (dbusbind.o): New target.
21790
21791 * dbusbind.c: New file.
21792
21793 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21794
21795 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21796 (Qdbus_event): New Lisp symbol.
21797 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21798 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21799 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21800
21801 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21802
218032007-12-01 Richard Stallman <rms@gnu.org>
21804
21805 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21806
218072007-11-30 Jason Rumney <jasonr@gnu.org>
21808
21809 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21810 (w32con_reset_terminal_modes): Clear screen buffer.
21811 (w32_face_attributes): Don't use color indexes that are out of range.
21812 Only reverse the default colors.
21813
21814 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21815 WINDOWSNT.
21816
21817 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21818
218192007-11-29 Jason Rumney <jasonr@gnu.org>
21820
21821 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21822 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21823 if the terminal colors are initialized.
21824 (unspecified_fg, unspecified_bg): Remove unused declarations.
21825
218262007-11-29 Andreas Schwab <schwab@suse.de>
21827
21828 * keyboard.c (apply_modifiers): Fix typo.
21829
218302007-11-29 Richard Stallman <rms@gnu.org>
21831
21832 * keymap.c (Fcurrent_local_map): Doc fix.
21833
218342007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21835
21836 * s/gnu-kfreebsd.h: New file.
21837
218382007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21839
21840 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21841 Don't cast redundantly.
21842
21843 * keyboard.c (KEY_TO_CHAR): New macro.
21844 (parse_modifiers, apply_modifiers): Accept integer arguments.
21845 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21846 for chars and symbol keys.
21847 After doing such remapping, apply function-key-map again.
21848
218492007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21850
21851 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21852 compiled anymore.
21853
218542007-11-26 Andreas Schwab <schwab@suse.de>
21855
21856 * process.c (list_processes_1): Fix indentation level of the
21857 command column.
21858
218592007-11-23 Andreas Schwab <schwab@suse.de>
21860
21861 * editfns.c (Fformat): Handle %c specially since it requires the
21862 argument to be of type int.
21863
218642007-11-23 Markus Triska <markus.triska@gmx.at>
21865
21866 * emacs.c (main): Call init_editfns before init_process, since
21867 init_process sets Vprocess_connection_type depending on OS release.
21868
218692007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21870
21871 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21872 (find_symbol_value): Use do_symval_forwarding.
21873
21874 * data.c (set_internal): Set the value in the `cons-cell' (for
21875 Buffer_Local_values) not only for frame-local variables.
21876
218772007-11-22 Andreas Schwab <schwab@suse.de>
21878
21879 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21880 values to sprintf.
21881 * keymap.c (Fsingle_key_description): Likewise.
21882 * print.c (print_object): Likewise.
21883
218842007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21885
21886 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21887 file for image is nil.
21888
218892007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21890
21891 * term.c: Include stdarg.h.
21892 (fatal): Implement using varargs.
21893 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21894
218952007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21896
21897 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21898 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21899 Update call to buffer_slot_type_mismatch.
21900 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21901 (buffer_slot_type_mismatch): Update.
21902 * buffer.c (buffer_local_types): Remove.
21903 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21904 (defvar_per_buffer): Set the type in the buffer_objfwd.
21905
219062007-11-21 Jason Rumney <jasonr@gnu.org>
21907
21908 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21909 CreateFileMapping returns NULL on failure.
21910
219112007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21912
21913 * search.c (Fset_match_data): Remove the `evaporate' feature.
21914 (unwind_set_match_data): Don't use the `evaporate' feature.
21915
219162007-11-21 Jason Rumney <jasonr@gnu.org>
21917
21918 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21919
21920 * w32console.c (w32con_write_glyphs): Remove unused variables.
21921
219222007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21923
21924 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21925
21926 * s/darwin.h (MULTI_KBOARD): Remove.
21927
21928 * macfns.c (x_create_tip_frame, Fx_create_frame)
21929 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21930
219312007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21932
21933 * buffer.c (Fbuffer_local_value): Remove redundant test.
21934 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21935 than in `current-buffer' to match the comment.
21936 Do the swap using swap_in_global_binding.
21937
21938 * data.c (store_symval_forwarding, set_internal):
21939 * eval.c (specbind): Remove dead code.
21940
21941 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21942 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21943 Since we do not want to see internal Lisp_*fwd objects here.
21944
219452007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21946
21947 * sysdep.c (init_system_name): Use getaddrinfo if available.
21948
21949 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21950 (x_scroll_bar_note_movement): start, end, with, height in struct
21951 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21952
219532007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21954
21955 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21956
219572007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21958
21959 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21960 This undoes Richard's change of 14-Oct-2002.
21961
21962 * alloc.c (allocate_other_vector):
21963 * lisp.h (allocate_other_vector): Remove.
21964
21965 * window.c (struct save_window_data): Move non-lisp data to the end
21966 and make it `int' rather than Lisp_Object.
21967 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21968 Done wrap/unwrap integer values.
21969 (Fset_window_configuration, compare_window_configurations):
21970 Update use of fields to their new types.
21971
21972 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21973 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21974 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21975 (SET_SCROLL_BAR_X_WINDOW): Remove.
21976 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21977 Access the new x_window field directly.
21978 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21979 Don't wrap/unwrap integers into Lisp_Objects.
21980 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21981 (x_scroll_bar_report_motion):
21982 Don't wrap/unwrap integers into Lisp_Objects.
21983 (x_term_init): Use SDATA.
21984 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21985 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21986 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21987 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21988 * xfns.c (x_set_background_color):
21989 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21990 Access the new x_window field directly.
21991
21992 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21993 (allocate_pseudovector): Make non-static.
21994
21995 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21996 (allocate_pseudovector): Declare.
21997 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21998
219992007-11-15 Andreas Schwab <schwab@suse.de>
22000
22001 * editfns.c (Fformat): Correctly format EMACS_INT values.
22002 Also take precision into account when formatting an integer.
22003
22004 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22005
220062007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22007
22008 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22009 (syms_of_keyboard): Defsubr it.
22010
22011 * data.c (swap_in_global_binding): Fix longstanding bug where
22012 store_symval_forwarding was not called with the right second argument,
22013 thus causing objfwd-ing from being dropped.
22014
220152007-11-14 Juanma Barranquero <lekktu@gmail.com>
22016
22017 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22018 (Fx_display_pixel_height, Fx_display_planes)
22019 (Fx_display_color_cells, Fx_server_max_request_size)
22020 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22021 (Fx_display_visual_class, Fx_display_save_under):
22022 * w32fns.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_screens)
22026 (Fx_display_mm_height, Fx_display_mm_width)
22027 (Fx_display_backing_store, Fx_display_visual_class)
22028 (Fw32_select_font, Fx_display_save_under):
22029 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22030 (Fx_display_pixel_height, Fx_display_planes)
22031 (Fx_display_color_cells, Fx_server_max_request_size)
22032 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22033 (Fx_display_save_under): Fix typos in docstrings.
22034
220352007-11-14 Juanma Barranquero <lekktu@gmail.com>
22036
22037 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22038 corresponding to deleted entries; they are an implementation detail.
22039 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22040 Remove variables.
22041 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22042 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22043 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22044 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22045 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22046 (Fw32_define_rgb_color, Fw32_load_color_file)
22047 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22048 Fix typos in docstrings.
22049 (Fx_server_version): Reflow docstring.
22050 (Fw32_shell_execute): Doc fixes.
22051
220522007-11-13 Juanma Barranquero <lekktu@gmail.com>
22053
22054 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22055 if w32_parse_hot_key returned nil.
22056
220572007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22058
22059 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22060
220612007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22062
aac0c6e3
MR
22063 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22064
22065 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22066
22067 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22068 Remove W32_SCROLL_BAR_CLICK_EVENT.
22069
22070 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22071 Add MULTIMEDIA_KEY_EVENT.
22072
22073 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22074 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22075 (make_lispy_event) [WINDOWSNT]: Use it to translate
22076 MULTIMEDIA_KEY_EVENT.
22077
22078 * w32term.h (WM_APPCOMMAND): Define if not already.
22079 (GET_APPCOMMAND_LPARAM): Likewise.
22080
22081 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22082 WM_APPCOMMAND.
22083
22084 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22085 (syms_of_w32fns): Export and initialize it.
22086 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22087
220882007-11-09 Chong Yidong <cyd@stupidchicken.com>
22089
22090 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22091 twice.
22092
22093 * xdisp.c (handle_face_prop): Fix last change.
22094
220952007-11-09 Richard Stallman <rms@gnu.org>
22096
22097 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22098 not just for after-strings and before-strings.
22099 Call face_for_overlay_string and pass the overlay to it.
22100 (handle_display_prop): Determine whether property came from an overlay.
22101 Pass OVERLAY arg to handle_single_display_spec.
22102 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22103 (load_overlay_strings): Fill in it->string_overlays.
22104 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22105
22106 * xfaces.c (face_for_overlay_string): Function renamed from
22107 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22108
22109 * dispextern.h (struct it): New elt string_overlays.
22110 New elt from_overlay, also in stack.
22111 Rearrange a few elements.
22112 (face_for_overlay_string): Decl renamed from
22113 face_at_buffer_position_no_overlays, and add argument.
22114
221152007-11-09 Richard Stallman <rms@gnu.org>
22116
22117 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22118 to get the base face for an overlay string.
22119
22120 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22121
22122 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22123
22124 * xdisp.c (handle_stop): Move some code out of loop.
22125
221262007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22127
22128 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22129 Fix conversion from Lisp object to ATSUFontID.
22130
221312007-11-09 Jason Rumney <jasonr@gnu.org>
22132
22133 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22134
221352007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22136
22137 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22138 Don't assume regions are aligned to page boundary.
22139 (print_load_command_name): Add LC_UUID if defined.
22140
221412007-11-09 Richard Stallman <rms@gnu.org>
22142
22143 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22144
221452007-11-07 Jason Rumney <jasonr@gnu.org>
22146
22147 * s/windows95.h: Remove.
22148
221492007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22150
22151 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22152 abort with a message on unhandled store_type values.
22153
221542007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22155
22156 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22157 Remove HAVE_X11R5 and HAVE_X11R4.
22158
221592007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22160
22161 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22162
221632007-11-01 Johan Bockgård <bojohan@gnu.org>
22164
22165 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22166 Don't set s->stippled_p here, since it has already been set by
22167 x_set_glyph_string_gc from x_draw_glyph_string.
22168
221692007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22170
22171 * sunfns.c: Remove file.
22172
22173 * m/sun386.h:
22174 * m/sun2.h:
22175 * m/sparc.h: Remove Sun windows code.
22176
221772007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22178
22179 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22180 (init_keyboard): Set current_kboard's window-system to nil.
22181 (tty_read_avail_input): Typo.
22182 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22183
221842007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22185
22186 * s/usg5-4.h:
22187 * s/usg5-3.h:
22188 * s/ptx.h:
22189 * m/is386.h:
22190 * m/ibmps2-aix.h:
22191 * Makefile.in: Remove all mentions of X10.
22192
22193 * dispnew.c (syms_of_display): Don't mention version 10.
22194
221952007-10-28 Juanma Barranquero <lekktu@gmail.com>
22196
22197 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22198 ($(BLD)/abbrev.$(O)): Remove.
22199
222002007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22201
22202 Rewrite abbrev.c in Elisp.
22203 * image.c (Qcount): Don't declare as extern.
22204 (syms_of_image): Initialize and staticpro `Qcount'.
22205 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22206 * emacs.c (main): Don't call syms_of_abbrev.
22207 * Makefile.in (obj): Remove abbrev.o.
22208 (abbrev.o): Remove.
22209 * abbrev.c: Remove.
22210
222112007-10-26 Martin Rudalics <rudalics@gmx.at>
22212
22213 * window.c (window_min_size_2): Don't count header-line.
22214
222152007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22216
22217 * frame.h (struct frame): Move all bit fields after the first bit
22218 field to take advantage of the available space. Group all the
22219 chars together to reduce wasted space due to padding.
22220
222212007-10-26 Juanma Barranquero <lekktu@gmail.com>
22222
22223 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22224
22225 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22226 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22227 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22228 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22229 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22230 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22231 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22232 (last_marked, mark_object_loop_halt): Make static.
22233
22234 * frame.c (syms_of_frame) <delete-frame-functions>:
22235 Fix typo in docstring.
22236
222372007-10-25 Juanma Barranquero <lekktu@gmail.com>
22238
22239 * w32.c (init_environment): Fix tiny memory leak.
22240 (w32_get_resource): Remove unused variable `ok'.
22241
222422007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22243
22244 Make `window-system' into a keyboard-local variable (rather than
22245 frame-local as done originally by multi-tty).
22246
22247 * keyboard.h (struct kboard): Add Vwindow_system.
22248 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22249 (mark_kboards): Mark Vwindow_system.
22250
22251 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22252 (init_display): Don't set the obsolete `window-system' frame-param.
22253
22254 * xterm.c (x_term_init):
22255 * w32term.c (w32_create_terminal):
22256 * term.c (init_tty): Set Vwindow_system.
22257 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22258 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22259
22260 * xfns.c (Fx_create_frame, x_create_tip_frame):
22261 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22262 * macfns.c (Fx_create_frame):
22263 Don't set the obsolete `window-system' frame-param.
22264
22265 * frame.h (Qwindow_system): Remove.
22266 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22267 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22268
222692007-10-24 Richard Stallman <rms@gnu.org>
22270
22271 * frame.c (x_figure_window_size): For fullscreen case,
22272 set USPosition | PPosition without clobbering rest of window_prompting.
22273
22274 * keyboard.c (Fcurrent_idle_time): Doc fix.
22275
22276 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22277
222782007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22279
22280 * process.c (unwind_request_sigio): Only define if __ultrix__.
22281
22282 * callproc.c (child_setup): Remove spurious *.
22283
22284 * lisp.h (Fget_text_property): Declare.
22285 (have_menus_p): Declare it here rather than in sys-dep header files.
22286 * macterm.h (have_menus_p):
22287 * msdos.h (have_menus_p):
22288 * xterm.h (have_menus_p): Remove.
22289
22290 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22291 (Fmake_variable_frame_local): Just check the variable's const-ness
22292 rather than checking nil or t.
22293
222942007-10-22 Jason Rumney <jasonr@gnu.org>
22295
22296 * w32fns.c: Include math.h.
22297 (w32_abort): Declaration moved to nt/config.nt.
22298
22299 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22300 (abort): Redefinition moved to nt/config.nt.
22301
22302 * m/windowsnt.h: Remove.
22303
223042007-10-22 Juanma Barranquero <lekktu@gmail.com>
22305
22306 * emacs.c (Fdump_emacs): Fix typo in message.
22307 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22308 <installation-directory>: Reflow docstring.
22309
223102007-10-22 Juri Linkov <juri@jurta.org>
22311
22312 * minibuf.c: Allow minibuffer default to be a list of default values.
22313 With empty input use the first element of this list as returned default.
22314 (string_to_object)
22315 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22316 (read_minibuf): If defalt is cons, set histstring to its car.
22317 (Fread_string): If default_value is cons, set val to its car.
22318 (Fread_buffer): If def is cons, use its car.
22319 (Fcompleting_read): If defalt is cons, set val to its car.
22320
223212007-10-21 Michael Albinus <michael.albinus@gmx.de>
22322
22323 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22324
223252007-10-20 Juanma Barranquero <lekktu@gmail.com>
22326
22327 * doc.c (Fdocumentation): Check for advice in all cases.
22328
223292007-10-19 Chong Yidong <cyd@stupidchicken.com>
22330
22331 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22332
223332007-10-19 Richard Stallman <rms@gnu.org>
22334
22335 * doc.c (Fdocumentation): Check for and handle an advised function.
22336
223372007-10-19 Juanma Barranquero <lekktu@gmail.com>
22338
22339 * process.c (Fset_process_filter): Doc fix.
22340
223412007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22342
22343 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22344 which caused key-translation-map to applied repeatedly (thus breaking
22345 double-mode).
22346
223472007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22348
22349 * xselect.c (x_own_selection, x_handle_selection_clear)
22350 (x_clear_frame_selections):
22351 * w32menu.c (list_of_panes, list_of_items):
22352 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22353 * textprop.c (validate_plist, interval_has_all_properties)
22354 (interval_has_some_properties, interval_has_some_properties_list)
22355 (add_properties, text_property_list):
22356 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22357 * minibuf.c (Fassoc_string):
22358 * macselect.c (x_own_selection, x_clear_frame_selections)
22359 (Fx_disown_selection_internal):
22360 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22361 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22362
223632007-10-17 Chong Yidong <cyd@stupidchicken.com>
22364
22365 * process.c: Link to libs for calling res_init() if available.
22366 (Fmake_network_process): Call res_init() before getaddrinfo or
22367 gethostbyname, if possible.
22368
223692007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22370
22371 * lread.c (read1): Set pvectype for char_tables.
22372
22373 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22374 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22375 Add type checks.
22376 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22377
22378 * alloc.c (free_misc): Use XMISCTYPE.
22379 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22380
223812007-10-17 Glenn Morris <rgm@gnu.org>
22382
22383 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22384 (syms_of_minibuf): Add Qcompletion_ignore_case.
22385 * dired.c (Qcompletion_ignore_case): Change to external.
22386 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22387 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22388 (Fread_file_name): Use it rather than intern'ing.
22389
22390 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22391 (Fread_coding_system): Ignore case of user input.
22392
223932007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22394
22395 * xdisp.c (handle_display_prop): Ignore display specs after
22396 replacing one when string text is being replaced.
22397 (handle_single_display_spec): Pretend as if characters with display
22398 property haven't been consumed only when buffer text is being replaced.
22399
224002007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22401
22402 * xfns.c (Fx_create_frame, Fx_display_list):
22403 * window.c (window_fixed_size_p, enlarge_window)
22404 (shrink_window_lowest_first):
22405 * macterm.c (init_font_name_table):
22406 * macfns.c (Fx_create_frame, Fx_display_list):
22407 * lread.c (close_load_descs):
22408 * keyboard.c (read_char_x_menu_prompt):
22409 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22410 * coding.c (code_convert_region_unwind): Test the type of an object
22411 rather than just !NILP before extracting data from it.
22412
22413 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22414
22415 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22416 (XMISCANY): New macro.
22417 (XMISCTYPE): Use it.
22418 (struct Lisp_Misc_Any): New type.
22419 (union Lisp_Misc): Use it.
22420 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22421 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22422 (find_symbol_value, set_internal, default_value, Fset_default)
22423 (Fmake_variable_buffer_local, Fmake_local_variable)
22424 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22425 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22426 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22427 * alloc.c (allocate_buffer): Set the size and tag.
22428 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22429 Use XMISCANY.
22430 (die): Follow the GNU convention for error messages.
22431 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22432 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22433 tag any more.
22434 (set_buffer_internal_1):
22435 * frame.c (store_frame_param):
22436 * eval.c (specbind):
22437 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22438
22439 * doc.c (Fsnarf_documentation): Simplify.
22440
224412007-10-14 Juanma Barranquero <lekktu@gmail.com>
22442
22443 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22444 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22445
224462007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22447
22448 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22449
224502007-10-14 Juanma Barranquero <lekktu@gmail.com>
22451
22452 * eval.c (do_autoload): Don't save autoloads.
22453
22454 * data.c (Ffset): Save autoload of the function being set.
22455
224562007-10-07 John Paul Wallington <jpw@pobox.com>
22457
22458 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22459 parameter before setting up faces.
22460
224612007-10-13 Eli Zaretskii <eliz@gnu.org>
22462
22463 * ccl.c (Fregister_code_conversion_map):
22464 * keyboard.c (append_tool_bar_item): Reformat last change.
22465
22466 * lisp.h (eabs): Rename from `abs'. All callers changed.
22467
224682007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22469
22470 * buffer.c (add_overlay_mod_hooklist):
22471 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22472 * fontset.c (make_fontset):
22473 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22474 (append_tool_bar_item):
22475 * macmenu.c (grow_menu_items):
22476 * w32menu.c (grow_menu_items):
22477 * xmenu.c (grow_menu_items): Use larger_vector.
22478
224792007-10-13 Eli Zaretskii <eliz@gnu.org>
22480
22481 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22482 selected frame'' on MSDOS).
22483
224842007-10-12 Martin Rudalics <rudalics@gmx.at>
22485
22486 * frame.c (Qexplicit_name): New variable.
22487 (x_report_frame_params): Report it in parameter alist.
22488 (syms_of_frame): Intern and staticpro it.
22489
224902007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22491
22492 * macfns.c (x_create_tip_frame): Set terminal for frame.
22493
224942007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22495
22496 * frame.c (Qenvironment): Remove.
22497 (syms_of_frame) <Qenvironment>: Don't initialize.
22498 (Fdelete_frame): Don't treat the `environment' param specially.
22499 * frame.h (Qenvironment): Don't declare.
22500 * callproc.c (set_initial_environment): Don't set unused frame param.
22501
22502 * frame.c (Fframe_with_environment): Remove.
22503 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22504
22505 * lisp.h (Fframe_with_environment): Don't declare.
22506
225072007-10-10 Juanma Barranquero <lekktu@gmail.com>
22508
22509 * indent.c (indent_tabs_mode, last_known_column)
22510 (last_known_column_modified): Make static.
22511 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22512
225132007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22514
22515 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22516
225172007-10-09 Jason Rumney <jasonr@gnu.org>
22518
22519 * w32term.c (x_set_window_size): Disable code that attempts to tell
22520 Lisp code about a size change before it actually happens.
22521
225222007-10-09 Richard Stallman <rms@gnu.org>
22523
22524 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22525 return HANDLED_RETURN.
22526
225272007-10-08 Martin Rudalics <rudalics@gmx.at>
22528
22529 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22530 when there's an unread command event.
22531
22532 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22533 window autoselection act appropriately when leaving selected frame.
22534 (syms_of_frame): Initialize focus_follows_mouse.
22535 * frame.h (focus_follows_mouse): Extern it.
22536 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22537 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22538 * msdos.c (dos_rawgetc): Likewise.
22539 * w32term.c (w32_read_socket): Likewise.
22540 * xterm.c (handle_one_xevent): Likewise.
22541 * xdisp.c (syms_of_xdisp): In doc-string of
22542 mouse-autoselect-window mention focus-follows-mouse.
22543
225442007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22545
22546 * macterm.c (mac_load_query_font): Fix missing return value.
22547 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22548 Add BLOCK_INPUT.
22549
225502007-10-08 Richard Stallman <rms@gnu.org>
22551
22552 * xdisp.c (get_window_cursor_type): Implement documented behavior
22553 for cursor-in-non-selected-windows = t.
22554
225552007-10-08 Jason Rumney <jasonr@gnu.org>
22556
22557 * w32.c (w32_get_resource): Always close registry keys.
22558
225592007-10-08 Jason Rumney <jasonr@gnu.org>
22560
22561 * makefile.w32-in (LIBS): Add COMCTL32.
22562
22563 * w32fns.c (globals_of_w32fns): Init common controls.
22564
225652007-10-08 Richard Stallman <rms@gnu.org>
22566
22567 * image.c (our_memory_buffer): Rename from omfib_buffer.
22568
225692007-10-08 Richard Stallman <rms@gnu.org>
22570
22571 * buffer.c (Foverlays_at): Doc fix.
22572
225732007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22574
22575 * fns.c (Fplist_put): Preserve uneven tail data.
22576
225772007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22578
22579 * termhooks.h (enum event_kind): Remove trailing comma.
22580
22581 * frame.h (enum): Remove trailing comma.
22582
225832007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22584
22585 * w32proc.c (delete_child): Don't terminate threads of zombies.
22586
225872007-10-08 Martin Rudalics <rudalics@gmx.at>
22588
22589 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22590
22591 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22592 last-repeatable-command.
22593 (init_kboard): Initialize Vlast_repeatable_command.
22594 (command_loop_1): Set it to real_this_command unless that was
22595 bound to an input event.
22596 (mark_kboards): Mark it.
22597
225982007-10-08 Richard Stallman <rms@gnu.org>
22599
22600 * eval.c (condition-case): Doc fix.
22601
226022007-10-08 Masatake YAMATO <jet@gyve.org>
22603
22604 * xfaces.c (tty_supports_face_attributes_p): Fix code
22605 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22606 was copied and not edited.
22607
226082007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22609
22610 Add new `input-decode-map' keymap and use it for terminal
22611 escape sequences.
22612 * keyboard.h (struct kboard): Add Vinput_decode_map.
22613 Remove Vlocal_key_translation_map.
22614 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22615 (init_kboard): Init input-decode-map.
22616 Replace local-key-translation-map back with key-translation-map.
22617 (syms_of_keyboard): Declare input-decode-map.
22618 Remove local-key-translation-map. Update docstrings.
22619 (mark_kboards): Mark Vinput_decode_map.
22620 Don't mark Vlocal_key_translation_map.
22621 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22622 Replace local-key-translation-map back with key-translation-map.
22623 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22624 Bind in input-decode-map rather than function-key-map.
22625
22626 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22627 This was made redundant by the previous introduction of XSETPVECTYPE.
22628
226292007-10-09 Richard Stallman <rms@gnu.org>
22630
22631 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22632
226332007-09-29 Richard Stallman <rms@gnu.org>
22634
22635 * eval.c (internal_condition_case_2, internal_condition_case_1)
22636 (internal_condition_case): Reenable abort if x_catching_errors ()
22637 to see if that really happens and why.
22638
226392007-10-06 Andreas Schwab <schwab@suse.de>
22640
22641 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22642
226432007-10-04 Juanma Barranquero <lekktu@gmail.com>
22644
22645 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22646
226472007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22648
22649 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22650
226512007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22652
22653 * window.h (struct window):
22654 * window.c (struct save_window_data, struct saved_window):
22655 * termhooks.h (struct terminal):
22656 * process.h (struct Lisp_Process):
22657 * frame.h (struct frame):
22658 * buffer.h (struct buffer):
22659 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22660 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22661 The size field of (pseudo)vectors is now unsigned.
22662 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22663
22664 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22665 Turn `count' into an integer.
22666
22667 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22668 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22669 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22670 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22671 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22672
22673 * alloc.c (allocate_pseudovector): New fun.
22674 (ALLOCATE_PSEUDOVECTOR): New macro.
22675 (allocate_window, allocate_terminal, allocate_frame)
22676 (allocate_process): Use it.
22677 (mark_vectorlike): New function.
22678 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22679 (mark_terminals): Use it.
22680 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22681 (Fmake_byte_code): Use XSETPVECTYPE.
22682
22683 * frame.c (Fframe_parameters): Minor simplification.
22684
22685 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22686
22687 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22688
22689 * buffer.c (Fget_buffer_create, init_buffer_once):
22690 * lread.c (defsubr):
22691 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22692
22693 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22694 defined differently in the m/*.h files.
22695 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22696 (XSETPVECTYPE): New macro.
22697 (XSETPSEUDOVECTOR): Use it.
22698
22699 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22700 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22701
22702 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22703 * lread.c (defvar_per_buffer):
22704 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22705
22706 * window.c (candidate_window_p): Only consider as visible frames that
22707 are on the same terminal.
22708
22709 * m/ibms390x.h (MARKBIT): Remove unused macro.
22710
227112007-10-01 Juanma Barranquero <lekktu@gmail.com>
22712
22713 * lread.c (Fload): Fix typo in docstring.
22714
227152007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22716
22717 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22718 of a non-zero value can't yield zero.
22719
227202007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22721
22722 * term.c (term_clear_mouse_face, term_mouse_highlight)
22723 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22724
22725 * print.c (safe_debug_print): Use XHASH.
22726
22727 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22728 Lisp elements such as tags.
22729 (XHASH): New macro.
22730 (EQ): Use it.
22731 (SREF, SSET, STRING_COPYIN): Use SDATA.
22732 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22733
22734 * alloc.c (mark_terminal): Remove left-over declaration.
22735 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22736 (allocate_vectorlike): Remove type argument. Adjust callers.
22737 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22738 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22739
22740 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22741 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22742 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22743 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22744 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22745 Use them.
22746
22747 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22748 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22749 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22750
227512007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22752
22753 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22754 loaded by default.
22755
227562007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22757
22758 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22759 on this tty.
22760 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22761
22762 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22763 Update all users.
22764 (handle_one_term_event): Use Gpm_DrawPointer.
22765 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22766 Signal errors instead of returning nil. Always return nil.
22767 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22768 Make it a noop if gpm-mouse was not activated.
22769 (syms_of_term): Update names.
22770
227712007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22772
22773 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22774 (init_sys_modes): Check that gpm_tty is the current tty.
22775
22776 * alloc.c (allocate_terminal): Set the vector size to only count the
22777 lisp fields. Initialize those to nil.
22778 (mark_object): Don't treat terminals specially.
22779 (mark_terminal): Remove.
22780 (mark_terminals): Use mark_object instead.
22781
22782 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22783 the GC to the beginning.
22784
22785 * indent.h:
22786 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22787
22788 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22789
227902007-09-25 Jason Rumney <jasonr@gnu.org>
22791
22792 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22793
22794 * w32console.c (create_w32cons_output): Remove.
22795
22796 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22797
22798 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22799 (reset_sys_modes): Use reset_terminal_modes_hook.
22800
228012007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22802
22803 * eval.c (do_autoload): Don't output any message.
22804
228052007-09-24 Juri Linkov <juri@jurta.org>
22806
22807 * emacs.c (standard_args): Change priority of "--no-splash"
22808 from 40 to 3. Add "--no-desktop" with the same priority.
22809
228102007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22811
22812 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22813 and optimize the case where they are all 1.
22814
228152007-09-23 Johannes Weiner <hannes@saeurebad.de>
22816
22817 * lisp.h (abs): Define if not defined.
22818 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22819 Don't define `abs', since it's defined in lisp.h.
22820
228212007-09-22 Eli Zaretskii <eliz@gnu.org>
22822
22823 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22824 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22825 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22826 (init_tty): Use DEV_TTY instead of "/dev/tty".
22827 [WINDOWSNT]: No need to protect from NAME arg being null.
22828
228292007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22830
22831 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22832 up the tty state.
22833
228342007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22835
22836 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22837 (gpm_tty): Change its type.
22838 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22839 (gpm_tty): Change its type and initialize it.
22840 (Fterm_open_connection): Check the frame is indeed a tty.
22841 Use the new gpm_tty.
22842 (Fterm_close_connection): Use the new gpm_tty.
22843 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22844 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22845
228462007-09-21 Juanma Barranquero <lekktu@gmail.com>
22847
22848 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22849 underline_color, to draw strike-through.
22850
228512007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22852
22853 * lisp.h (allocate_terminal): Declare.
22854
22855 * window.c (candidate_window_p): Consider frames that are being placed
22856 by the user as somewhere between visible and iconified.
22857 (window_loop): Prefer windows on the current frame.
22858 (Fselect_window): Move the use of select-frame to the beginning so we
22859 can just delegate all the work (it'll call us back anyway).
22860
22861 * frame.c (Qdisplay_environment_variable):
22862 * frame.h (Qdisplay_environment_variable): Delete.
22863
22864 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22865 of the first arg, since that value may be a union.
22866
22867 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22868 parameter rather than Qdisplay_environment_variable. If all else
22869 fails, look for DISPLAY in initial-environment.
22870
228712007-09-21 Glenn Morris <rgm@gnu.org>
22872
22873 * Makefile.in (emacstool): Remove target.
22874 (lisp, shortlisp): Remove termdev.elc.
22875
228762007-09-21 Markus Triska <markus.triska@gmx.at>
22877
22878 * xterm.c (x_delete_display): Compile session management conditionally.
22879
228802007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22881
22882 * callproc.c (getenv_internal_1): New function.
22883 (getenv_internal): Use it.
22884 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22885
22886 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22887 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22888 (Fset_terminal_parameter): Work with dead terminals as well.
22889 (Fmodify_terminal_parameters): Remove.
22890
22891 * terminal.c (get_terminal): Handle terminals.
22892 Make sure the terminal returned is live.
22893 (create_terminal): Use allocate_terminal.
22894 (mark_terminals): Move to alloc.c.
22895 (delete_terminal): Use terminal->name as liveness status.
22896 NULL out fields after freeing their contents.
22897 Don't deallocate the object.
22898 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22899 rather than an int.
22900 (Fterminal_live_p): Accept non-integer arguments.
22901 (Fterminal_list): Return terminal objects rather than an ints.
22902
22903 * alloc.c (enum mem_type): New member for `terminal' objects.
22904 (allocate_terminal): New function.
22905 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22906 Handle terminals.
22907 (mark_terminal): New fun.
22908 (mark_terminals): Move from terminal.c.
22909
22910 * term.c (get_tty_terminal): Don't treat output_initial specially.
22911 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22912 (delete_tty): Use terminal->name as liveness status.
22913
22914 * termhooks.h (struct terminal): Make it into a pseudovector.
22915 Remove `deleted' replaced by checking `name's nullness.
22916
22917 * print.c (print_object): Handle terminals.
22918
22919 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22920 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22921
22922 * frame.c (make_terminal_frame):
22923 * keyboard.c (tty_read_avail_input):
22924 * w32term.c (x_delete_terminal):
22925 * xfns.c (Fx_create_frame, x_create_tip_frame):
22926 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22927
229282007-09-20 Glenn Morris <rgm@gnu.org>
22929
22930 * process.c (Fmake_network_process): Doc fix.
22931
229322007-09-19 Jason Rumney <jasonr@gnu.org>
22933
22934 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22935
229362007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22937
22938 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22939 Fix a C warning regarding variable constness.
22940
22941 * xterm.c (handle_one_xevent): Fix a C warning.
22942
229432007-09-18 Jason Rumney <jasonr@gnu.org>
22944
22945 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22946
229472007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22948
22949 * gtkutil.c (gdpy_def): New variable.
22950 (xg_initialize): Initialize gdpy_def.
22951 (xg_display_close): If no other display exists, set gdpy_def to a
22952 new connection.
22953
229542007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22955
22956 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22957 when we have no file name for the icon.
22958 (xg_tool_bar_expose_callback): Remove.
22959 (xg_create_tool_bar): Don't connect expose signal to
22960 xg_tool_bar_expose_callback.
22961 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22962
229632007-09-16 Andreas Schwab <schwab@suse.de>
22964
22965 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22966 values instead of zapping them.
22967
229682007-09-14 Glenn Morris <rgm@gnu.org>
22969
22970 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22971 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22972 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22973 scope and rename to omfib_buffer for clarity.
22974 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22975
229762007-09-14 Kenichi Handa <handa@m17n.org>
22977
22978 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22979
229802007-09-13 Jason Rumney <jasonr@gnu.org>
22981
22982 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22983
22984 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22985
22986 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22987 (mac_term_init): Call here instead, passing rif.
22988
229892007-09-13 Glenn Morris <rgm@gnu.org>
22990
22991 * s/hpux.h: No longer define `static' as nothing.
22992
229932007-09-13 Johan Bockgård <bojohan@gnu.org>
22994
22995 * callint.c (Fcall_interactively): Remove unused var `fun'.
22996
229972007-09-12 Romain Francoise <romain@orebokech.com>
22998
22999 * window.c (prefer_window_split_horizontally, display_buffer):
23000 Revert 2007-09-08 change.
23001
230022007-09-12 Glenn Morris <rgm@gnu.org>
23003
23004 * alloca.c: Remove file.
23005 * Makefile.in (alloca): Do not undef.
23006 (allocaobj, alloca.o): Remove.
23007 (otherobj): Remove allocaobj.
23008 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23009 * regex.c (C_ALLOCA): Remove all references and code that was only
23010 used when this was defined.
23011 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23012 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23013 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23014
23015 * Makefile.in (SOURCES, unlock, relock): Delete.
23016
23017 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23018 (menu_grab_callback): All uses changed.
23019
23020 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23021 (x_reply_selection_request): All uses changed.
23022
230232007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23024
23025 * lread.c (load_warn_old_style_backquotes): Change message to look
23026 better when it appears in the middle of byte-compiler messages.
23027
230282007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23029
23030 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23031
23032 * xterm.c (x_create_terminal): Add comment.
23033
23034 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23035
230362007-09-10 Richard Stallman <rms@gnu.org>
23037
23038 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23039
230402007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23041
23042 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23043 (DEFUN): Document `intspec', use it instead of `prompt'.
23044
23045 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23046
23047 * data.c (Finteractive_form): If the interactive specification starts
23048 with a `(', use it as a Lisp form.
23049
23050 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23051 name and file modes.
23052
23053 * callint.c (Fcall_interactively): Comment fixes.
23054
230552007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23056
23057 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23058 and compiled functions.
23059
230602007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23061
23062 * window.c (prefer_window_split_horizontally): New variable.
23063 (display_buffer): Consider splitting window horizontally depending
23064 on prefer_window_split_horizontally.
23065
230662007-09-08 Eli Zaretskii <eliz@gnu.org>
23067
23068 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23069
230702007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23071
23072 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23073
23074 * frame.c (x_set_frame_parameters): Check number is positive before
23075 using XFASTINT.
23076
23077 * window.c (freeze_window_start): Don't presume selected_window holds
23078 a window object.
23079 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23080
230812007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23082
23083 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23084
230852007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23086
23087 * window.c (Vsplit_window_preferred_function): New var.
23088 (Fdisplay_buffer): Use it.
23089 (syms_of_window): Export, and initialize it.
23090
230912007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23092
23093 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23094
230952007-09-06 Glenn Morris <rgm@gnu.org>
23096
23097 * gtkutil.c (menu_grab_callback) <cnt>:
23098 * xselect.c (x_reply_selection_request) <cnt>: Move static
23099 variable to file scope.
23100
231012007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23102
23103 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23104 consistent values of selected_frame and selected_window.
23105
231062007-09-04 Jason Rumney <jasonr@gnu.org>
23107
23108 * w32console.c (initialize_w32_display): Zero unused hooks.
23109
231102007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23111
23112 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23113 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23114
231152007-09-04 Jason Rumney <jasonr@gnu.org>
23116
23117 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23118 in w32console.c. Set up input. Remove XXX comments that have been
23119 confirmed as correct.
23120
23121 * s/ms-w32.h (MULTI_KBOARD): Define.
23122
23123 * w32console.c (one_and_only_w32cons): Remove.
23124 (initialize_w32_display): Take terminal argument.
23125
23126 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23127 initialize_w32_display.
23128 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23129
23130 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23131
23132 * keyboard.c (discard_mouse_events): Discard it.
23133 (make_lispy_event): Translate it to a lisp event.
23134 (lispy_wheel_names): Add wheel-left and right events.
23135 (syms_of_keyboard): Enlarge wheel_syms.
23136
23137 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23138 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23139
23140 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23141
23142 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23143 from WM_MOUSEHWHEEL.
23144 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23145
23146 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23147 terminal.
23148
23149 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23150 keyboard for the terminal.
23151
231522007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23153
23154 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23155 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23156 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23157 and resume-tty-function to resume-tty-hook.
23158 (Fsuspend_tty, Fresume_tty): Use new names.
23159
231602007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23161
23162 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23163 if it starts with "n:".
23164
231652007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23166
23167 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23168
231692007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23170
23171 * frame.h:
23172 * frame.c (Qterm_environment_variable): Remove.
23173 (syms_of_frame): Don't init and staticpro it.
23174
23175 * callproc.c (getenv_internal): Remove special case for $TERM.
23176
23177 * callproc.c (Vinitial_environment): New variable.
23178 (set_initial_environment): Initialize it.
23179 (syms_of_callproc): Declare it.
23180 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23181 TERM under which a process runs is never related to the TERM in which
23182 Emacs is running.
23183
231842007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23185
23186 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23187 * s/darwin.h: ... do it here.
23188
231892007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23190
23191 * lisp.h (set_initial_environment): Rename from set_global_environment.
23192
23193 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23194 removed by mistake on the multi-tty branch.
23195
23196 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23197 (Fmodify_frame_parameters): Return a value.
23198
23199 * image.c (png_load): Comment-out var only used in commented-out code.
23200
23201 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23202 before passing it to mark_object.
23203
23204 * xfaces.c (internal_resolve_face_name): Return a value.
23205 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23206
23207 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23208 (x_icon): Comment-out var only used in commented-out code.
23209
232102007-08-29 Romain Francoise <romain@orebokech.com>
23211
23212 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23213 QUIT hasn't been provided.
23214
232152007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23216
23217 * callproc.c (child_setup, getenv_internal): Use the
23218 display-environment-variable and term-environment-variable frame params.
23219 (set_initial_environment): Initialise Vprocess_environment.
23220
23221 * config.in: Disable multi-keyboard support on a mac.
23222
23223 * frame.c (Qterm_environment_variable)
23224 (Qdisplay_environment_variable): New variables.
23225 (syms_of_frame): Intern and staticpro them.
23226 (Fmake_terminal_frame): Disable output method test.
23227
23228 * frame.h: Declare them here.
23229
23230 * macfns.c (x_set_mouse_color): Get rif from the frame.
23231 (x_set_tool_bar_lines): Don't use updating_frame.
23232 (mac_window): Add 2 new parameters for consistency with other systems.
23233 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23234 frame parameters following what is done in X11 and w32. Don't use
23235 FRAME_MAC_DISPLAY_INFO.
23236 (Fx_open_connection, start_hourglass): Remove window-system check.
23237 (x_create_tip_frame): Get the keyboard from the terminal.
23238
23239 * macmenu.c: Reorder includes.
23240 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23241
23242 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23243 terminal parameter.
23244 (x_clear_frame): Add a frame parameter.
23245 (note_mouse_movement): Get rif from the frame.
23246 (mac_term_init): Initialize the terminal.
23247 (mac_initialize): Make static and move terminal initialization ...
23248 (mac_create_terminal): ... to this new function.
23249
23250 * macterm.h (struct mac_display_info): Add terminal.
23251 (mac_initialize): Delete declaration.
23252
23253 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23254
23255 * sysdep.c: Comment out text after #endif.
23256
23257 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23258 is defined. Better initialize ttys in windows. Use terminal
23259 specific mouse_position_hook.
23260
23261 * termhooks.h (union display_info): Add mac_display_info.
23262
23263 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23264 Set the default minibuffer frame, window_system and the rest of the
23265 frame parameters following what is done in X11.
23266
23267 * w32term.c (w32_initialize): Make static.
23268
23269 * xselect.c (x_handle_selection_clear): Only access
23270 terminal->kboard when MULTI_KBOARD is defined.
23271
23272 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23273 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23274
232752007-08-29 Jason Rumney <jasonr@gnu.org>
23276
23277 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23278 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23279
23280 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23281 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23282
23283 * keyboard.c (restore_kboard_configuration): Only define when
23284 MULTI_KBOARD defined.
23285
23286 * makefile.w32-in: Update dependancies from Makefile.in.
23287 (OBJ1): Add terminal.$(O)
23288
23289 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23290 Don't define function body.
23291 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23292
23293 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23294
23295 * w32.c (request_sigio, unrequest_sigio): Remove.
23296
23297 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23298 (w32con_clear_frame, w32con_clear_end_of_line)
23299 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23300 (w32con_delete_glyphs, w32con_set_terminal_window)
23301 (scroll_line, w32_sys_ring_bell): Add frame arg.
23302 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23303 Add terminal arg.
23304 (PICK_FRAME): Remove.
23305 (w32con_write_glyphs): Use frame specific terminal coding.
23306 (one_and_only_w32cons): New global variable.
23307 (initialize_w32_display): Use it for storing hooks.
23308 (create_w32cons_output): New function.
23309
23310 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23311 arg a frame.
23312
23313 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23314 Set window_system.
23315 (x_set_tool_bar_lines): Don't use updating_frame.
23316 (Fx_create_frame): Set terminal and ref count.
23317 (Fx_open_connection): Remove window-system check.
23318
23319 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23320
23321 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23322 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23323 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23324 Add frame arg.
23325 (x_delete_terminal, w32_create_terminal): New functions.
23326 (w32_term_init): Create a terminal.
23327 (w32_initialize): Move terminal specific initialization to
23328 w32_create_terminal.
23329
23330 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23331 (w32_clear_rect, w32_clear_area): Use background from frame.
23332 (w32_display_info): Add terminal.
23333 (w32_sys_ring_bell, x_delete_display): Declare here.
23334
23335 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23336
23337 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23338
233392007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23340
23341 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23342 Fix get_named_tty calls for the controlling tty.
23343
233442007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23345
194d44e7 23346 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23347
233482007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23349
23350 * term.c (tty_insert_glyphs): Add missing first parameter.
23351
233522007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23353
23354 * buffer.c (Fbuffer_list, Fbury_buffer):
23355 Take frame->buried_buffer_list into account.
23356
23357 * cm.c (current_tty): New variable, for cmputc().
23358 (cmputc): Use it.
23359 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23360 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23361 (cmgoto): Add tty parameter. Pass it on to calccost().
23362 Use emacs_tputs() instead of tputs().
23363
23364 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23365 tputs().
23366 (current_tty): New variable, for cmputc().
23367 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23368
23369 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23370 (internal_condition_case, internal_condition_case_1)
23371 (internal_condition_case_2): Don't abort when x_catching_errors.
23372
23373 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23374 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23375 prevent crashes caused by bogus longjmps in read_char.
23376
23377 * keymap.h (Fset_keymap_parent): Add EXFUN.
23378
23379 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23380 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23381 Remove redundant definition.
23382
23383 * macfns.c (x_set_mouse_color, x_make_gc):
23384 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23385
23386 * w32term.c (x_free_frame_resources):
23387 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23388 (w32_initialize): Use the accessor macros for terminal characteristics.
23389
23390 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23391 Use the accessor macros for terminal characteristics.
23392 * msdos.c (internal_terminal_init): Use the accessor macros for
23393 terminal characteristics.
23394 (ScreenVisualBell, internal_terminal_init):
23395 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23396
23397 * termopts.h (no_redraw_on_reenter): Declare.
23398
23399 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23400 (mark_terminals, mark_ttys): Declare.
23401 (Fgarbage_collect): Call them.
23402 (mark_object): Mark buried_buffer_list.
23403
23404 * prefix-args.c: Include stdlib.h for exit.
23405
23406 * syssignal.h: Add comment.
23407
23408 * indent.c: Include stdio.h.
23409
23410 * window.h (Vinitial_window_system): Declare.
23411 (Vwindow_system): Delete declaration.
23412
23413 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23414
23415 * image.c (lookup_image): Don't initialize `c' until the xasserts
23416 have been run.
23417
23418 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23419 FRAME_FOREGROUND_PIXEL.
23420
23421 * print.c (print_preprocess): Don't lose print_depth levels while
23422 iterating.
23423
23424 * widget.c (update_from_various_frame_slots):
23425 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23426
23427 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23428 frames.
23429 (window_internal_height): Remove bogus make_number call.
23430 (init_window_once): Call make_terminal_frame with two zero parameters.
23431
23432 * fileio.c (Fread_file_name): Update comment.
23433
23434 * callint.c (Fcall_interactively):
23435 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23436 Make sure it is correctly unwound.
23437
23438 * xsmfns.c (x_session_close): New function.
23439
23440 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23441 Delete declarations.
23442
23443 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23444 (x_output): Remove background_pixel and foreground_pixel fields.
23445 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23446 (x_delete_device, x_session_close): Declare.
23447
23448 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23449 (read_filtered_event): Call `read_char' with a local
23450 `wrong_kboard_jmpbuf'.
23451
23452 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23453 Don't call single_kboard_state. Use FRAME_RIF.
23454
23455 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23456 systems.
23457
23458 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23459 (Fframe_with_environment, Fset_input_meta_mode)
23460 (Fset_quit_char): EXFUN.
23461 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23462 (init_sys_modes, reset_sys_modes): Update prototypes.
23463 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23464
23465 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23466 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23467 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23468 Delete declarations.
23469 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23470 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23471 New declarations.
23472
23473 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23474 already does that during init_display(). Call syms_of_keymap
23475 before syms_of_keyboard. Call `syms_of_terminal'.
23476 Call set_initial_environment, not set_process_environment.
23477 (shut_down_emacs): Call reset_all_sys_modes() instead of
23478 reset_sys_modes().
23479
23480 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23481 (internal_resolve_face_name, resolve_face_name_error): New functions.
23482 (resolve_face_name): Protect against loops and errors thrown by Fget.
23483 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23484 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23485
23486 * scroll.c: Replace CURTTY() with local variables throughout the
23487 file (where applicable).
23488 (calculate_scrolling, calculate_direct_scrolling)
23489 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23490 characteristics.
23491
23492 * keymap.c (Vfunction_key_map): Remove.
23493 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23494 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23495 (Vkey_translation_map): Remove.
23496 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23497 (Fdescribe_buffer_bindings)
23498 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23499 Update for terminal-local key-translation-map.
23500
23501 * Makefile.in (callproc.o): Update dependencies.
23502 (lisp, shortlisp): Add termdev.elc.
23503 (obj): Add terminal.o.
23504 (terminal.o): Add dependencies.
23505 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23506 (data.o, fns.o): Add termhooks.h dependency.
23507 (SOME_MACHINE_LISP): Add dnd.elc.
23508 (minibuf.o): Fix typo.
23509 Update dependencies.
23510
23511 * data.c (do_symval_forwarding, store_symval_forwarding)
23512 (find_symbol_value): Use the selected frame's keyboard, not
23513 current_kboard.
23514
23515 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23516 Vwindow_system.
23517
23518 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23519 Fmenu_bar_open.
23520 (syms_of_xmenu): Update defsubr.
23521 (mouse_position_for_popup, Fx_popup_menu)
23522 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23523 (set_frame_menubar, free_frame_menubar)
b97439ce 23524 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23525 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23526 an X frame.
23527
23528 * xselect.c (x_own_selection): Abort if not an X frame.
23529 (some_frame_on_display): Check if it is an X frame.
23530 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23531
23532 * coding.c: Include frame.h and termhooks.h.
23533 (terminal_coding, keyboard_coding): Delete.
23534 (Fset_terminal_coding_system_internal)
23535 (Fset_keyboard_coding_system_internal)
23536 (Fkeyboard_coding_system)
23537 (Fterminal_coding_system): Add a terminal parameter.
23538 Get terminal_coding from the terminal.
23539 (init_coding_once): Don't call setup_coding_system here.
23540
23541 * dispextern.h (set_scroll_region, turn_off_insert)
23542 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23543 (tty_clear_end_of_line, tty_setup_colors)
23544 (delete_tty, updating_frame)
23545 (produce_special_glyphs, produce_glyphs, write_glyphs)
23546 (insert_glyphs): Remove.
23547 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23548 (tty_turn_off_highlight, get_tty_size): Add declaration.
23549 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23550
23551 * frame.h (enum output_method): Add output_initial.
23552 (struct x_output): Delete.
23553 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23554 Access foreground_pixel and background_pixel directly from the frame.
23555 (tty_display): Delete.
23556 (struct frame): Add buried_buffer_list, foreground_pixel,
23557 background_pixel and terminal. Delete kboard.
23558 (union output_data): Add tty.
23559 (FRAME_KBOARD): Get the kboard from the terminal.
23560 (FRAME_INITIAL_P): New macro.
23561 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23562 (Qterm_environment_variable, Qdisplay_environment_variable)
23563 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23564 New declarations.
23565
23566 * termchar.h (tty_output, tty_display_info): New structures.
23567 (tty_list): Declare.
23568 (FRAME_TTY, CURTTY): New macros.
23569 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23570 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23571 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23572 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23573
23574 * callproc.c: Include frame.h and termhooks.h, for terminal
23575 parameters.
23576 (add_env): New function.
23577 (child_setup): Use it.
23578 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23579 (getenv_internal): Fix get_terminal_param call.
23580 (Fgetenv_internal, egetenv): Update doc.
23581 (syms_of_callproc): Initialize Vprocess_environment to nil.
23582 Register and initialize them. Remove obsolete defvars. Update doc
23583 strings.
23584 (child_setup): Handle Vlocal_environment_variables.
23585 (getenv_internal): Add terminal parameter.
23586 Handle Vlocal_environment_variables.
23587 (Fgetenv_internal): Add terminal parameter.
23588 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23589 environment in a frame (not terminal) parameter. Update doc strings.
23590 (set_initial_environment): Rename from set_global_environment.
23591 Store Emacs environment in initial frame parameter.
23592
23593 * xdisp.c (redisplay_internal): Update references to
23594 `previous_terminal_frame'.
23595 (display_mode_line, Fformat_mode_line): Replace calls to
23596 `push_frame_kboard' with `push_kboard'.
23597 (get_glyph_string_clip_rects): Add extra parentheses and
23598 braces to prevent compiler warnings.
23599 (calc_pixel_width_or_height): Add xassert to check that the
23600 frame is alive. Don't call `lookup_image' on a termcap frame.
23601 (message2_nolog, message3_nolog, redisplay_internal)
23602 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23603 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23604 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23605 (Fx_display_pixel_width, Fx_display_pixel_height)
23606 (Fx_display_planes, Fx_display_color_cells)
23607 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23608 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23609 (Fx_display_backing_store, Fx_display_visual_class)
23610 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23611 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23612
23613 * xfns.c (x_set_foreground_color x_set_background_color)
23614 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23615 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23616 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23617 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23618 terminal that is being deleted.
23619 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23620 frame parameter, and make sure it overrides any user-supplied setting.
23621 (Fx_close_connection, Fx_synchronize): Unify argument names with
23622 the rest of the DEFUNs.
23623
23624 * dispnew.c (Fsend_string_to_terminal): Update call to
23625 `get_tty_terminal'.
23626 (Fredraw_frame, Fsend_string_to_terminal)
23627 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23628 FRAME_TERMCAP_P and FRAME_TTY.
23629 (window_change_signal): Don't believe width/height values that are
23630 impossibly small.
23631 (Vinitial_window_system): Rename from Vwindow_system.
23632 (termscript, Wcm, rif): Delete.
23633
23634 * termhooks.h (struct terminal): New struct containing the
23635 previously global text display hooks and new members NAME,
23636 DELETED and PARAM_ALIST.
23637 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23638 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23639 (FRAME_RIF): New macros.
23640 (get_terminal_param, get_device): New declarations.
23641 (termscript): Delete declaration.
23642
23643 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23644 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23645 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23646 FRAME_FOREGROUND_PIXEL.
23647 (x_fully_uncatch_errors): Disable definition.
23648 (x_scroll_bar_expose): Fix reference to foreground pixel.
23649 (XTread_socket): Disable loop on all X displays.
23650 (x_delete_terminal): Don't set terminal->deleted and let
23651 delete_terminal delete the frames on the terminal.
23652 (x_delete_display): Doc update to reflect changes in
23653 delete_terminal.
23654 (x_display_info) <terminal>: Move member earlier in the struct.
23655 (deleting_tty): Remove old variable.
23656 (Fsuspend_tty): Call clear_tty_hooks.
23657 (Fresume_tty, init_tty): Call set_tty_hooks.
23658 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23659 errors on X frames.
23660 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23661 (handle_one_xevent): Initialize `f' to NULL.
23662 (x_delete_terminal, x_create_terminal): New functions.
23663 (XTset_terminal_modes, XTreset_terminal_modes)
23664 (XTread_socket, x_connection_closed, x_term_init)
23665 (x_term_init, x_delete_display): Add terminal parameter.
23666 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23667 X connections.
23668
23669 * frame.c: Include termchar.h.
23670 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23671 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23672 (Qdisplay_environment_variable): New vars.
23673 (Fframep): Deal with output_initial.
23674 (Fframe-live-p): Doc fix.
23675 (Fwindow-system): New function.
23676 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23677 (make_terminal_frame): Don't create frames on a terminal that is
23678 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23679 (store_frame_param): Check for found_for_frame before calling XFRAME.
23680 (Fmake_terminal_frame): Handle NULL tty names correctly.
23681 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23682 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23683 frames to refer to a deleted frame in their 'environment parameter.
23684 (Fframe_with_environment): New function.
23685 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23686 (get_future_frame_param): New function.
23687 (Fmake_terminal_frame): Use it.
23688 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23689
23690 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23691 * sysdep.c (reset_sys_modes): Update for renames.
23692
23693 * keyboard.c (tty_read_avail_input): New function.
23694 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23695 (syms_of_keyboard): Defsubr them.
23696 (Fset_input_meta_mode, Fset_quit_char): New functions.
23697 (Fset_input_mode): Split to above functions.
23698 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23699 parameter. Use it in call to `read_char'.
23700 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23701 Set wrong_kboard_jmpbuf correctly in recursive calls.
23702 Use current_kboard to access Vkeyboard_translate_table.
23703 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23704 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23705 Update longjmp invocations. Remember the original current_kboard,
23706 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23707 changes it. Comment out unnecessary calls to
23708 `record_single_kboard_state' and `any_kboard_state'.
23709 Update recursive calls.
23710 (wrong_kboard_jmpbuf): Remove global variable.
23711 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23712 Handle deleted interrupted_kboards correctly; that is a legal
23713 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23714 and read_char calls. Abort if interrupted_kboard died in read_char.
23715 (any_kboard_state, single_kboard_state)
23716 (push_frame_kboard): Remove function.
23717 (pop_kboard): Switch out of single_kboard mode if the kboard has
23718 been deleted. Remove unused variable. Help debugging by not
23719 changing current_kboard unnecessarily. Set current_kboard to the
23720 kboard of the selected frame when the stored kboard object has
23721 been deleted before pop_kboard.
23722 (temporarily_switch_to_single_kboard): Change first parameter to a
23723 frame pointer. Throw an error when caller wants to change kboards
23724 while in single_kboard mode. Don't push_kboard if we weren't in
23725 single kboard state. Don't pop_kboard if we popped into any
23726 kboard state.
23727 (restore_kboard_configuration): Abort if pop_kboard changed the
23728 kboard in single_kboard mode. Call pop_kboard only after setting
23729 up single_kboard mode.
23730 (Frecursive_edit): Switch to single_kboard mode only in nested
23731 command loops.
23732 (cmd_error, command_loop, command_loop_1, timer_check):
23733 Comment out unnecessary call to `any_kboard_state' and
23734 `record_single_kboard_state'.
23735 (delete_kboard): Exit single_kboard mode if we have just deleted
23736 that kboard. Use FRAME_KBOARD.
23737 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23738 `fatal_error_signal'.
23739 (record_single_kboard_state): Don't push_kboard if we weren't in
23740 single kboard state. Don't pop_kboard if we popped into any
23741 kboard state.
23742 (push_frame_kboard): Rename to push_kboard.
23743 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23744 (read_avail_input): Read input from all terminals.
23745 (mark_kboards): Also mark Vkeyboard_translate_table.
23746 (kbd_buffer_store_event_hold): Simplify condition.
23747 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23748 (Vkeyboard_translate_table): Move to struct kboard.
23749 (init_kboard): Initialize Vkeyboard_translate_table.
23750 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23751 Vkeyboard_translate_table. Update doc strings. Update docs of
23752 local-function-key-map and function-key-map.
23753
23754 * terminal.c: New file.
23755
23756 * term.c: Include errno.h.
23757 (Vring_bell_function, device_list, initial_device)
23758 (next_device_id, ring_bell, update_begin, update_end)
23759 (set_terminal_window, cursor_to, raw_cursor_to)
23760 (clear_to_end, clear_frame, clear_end_of_line)
23761 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23762 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23763 (syms_of_term): Move their initialization to terminal.c.
23764 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23765 (Ftty_display_color_cells)
23766 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23767 (clear_tty_hooks, set_tty_hooks)
23768 (init_tty, maybe_fatal): New functions.
23769 (Ftty_type): Return nil if terminal is not on a tty instead of
23770 throwing an error. Doc update.
23771 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23772 Doc update. Initialize new subrs and variables.
23773 (delete_tty): Use terminal->deleted.
23774 (tty_set_terminal_modes): Rename from set_terminal_modes.
23775 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23776 (set_scroll_region): Rename to `tty_set_scroll_region'.
23777 (turn_on_insert): Rename to `tty_turn_on_insert'.
23778 (turn_off_insert): Rename to `tty_turn_off_insert'.
23779 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23780 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23781 (toggle_highligh): Rename to `tty_toggle_highlight'.
23782 (background_highlight): Rename to `tty_background_highlight'.
23783 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23784 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23785 (tty_set_scroll_region, tty_background_highlight)
23786 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23787 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23788 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23789 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23790 Add static modifier.
23791 (tty_reset_terminal_modes, tty_set_terminal_window)
23792 (tty_set_scroll_region, tty_background_highlight)
23793 (tty_highlight_if_desired, tty_cursor_to)
23794 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23795 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23796 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23797 renames.
23798
237992007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23800
23801 * keyboard.c: Qrtl is new.
23802 (parse_tool_bar_item): Handle :rtl keyword.
23803 (syms_of_keyboard): Intern :rtl keyword.
23804
23805 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23806
23807 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23808 so no Lisp code is executed.
23809 (file_for_image, find_rtl_image): New functions.
23810 (xg_get_image_for_pixmap): Use file_for_image.
23811 (update_frame_tool_bar): If direction is RTL, use RTL image if
23812 defined. Use Gtk stock images if defined.
23813
238142007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23815
23816 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23817 for nonexistent or zero-width glyph in composition glyph.
23818
238192007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23820
23821 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23822
23823 * xdisp.c (Finvisible_p): New function.
23824 (syms_of_xdisp): defsubr it.
23825
238262007-08-24 Juanma Barranquero <lekktu@gmail.com>
23827
23828 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23829 Doc fixes.
23830
238312007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23832
23833 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23834
238352007-08-24 Martin Rudalics <rudalics@gmx.at>
23836
23837 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23838 whether decoding has modified buffer contents.
23839
238402007-08-24 Jason Rumney <jasonr@gnu.org>
23841
23842 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23843 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23844 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23845 (init_svg_functions) [HAVE_NTGUI]: New function.
23846 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23847 (svg_load_image): Use them.
23848 (svg_load_image) [HAVE_NTGUI]: Implement background.
23849
238502007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23851
23852 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23853 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23854 (LIBX): Remove @RSVG_LIBS@.
23855 (LIBES): Add $(RSVG_LIBS).
23856
23857 * image.c (svg_load_image): Blend with specified background if exists.
23858 Use IMAGE_BACKGROUND. Add Mac OS Support.
23859
23860 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23861 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23862 Remove macros.
23863 [MAC_OSX] (socket_callback): Do nothing.
23864 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23865 ReceiveNextEvent.
23866 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23867 socket_callback.
23868 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23869
238702007-08-22 Glenn Morris <rgm@gnu.org>
23871
23872 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23873
238742007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23875
23876 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23877
23878 * image.c: Add support for SVG images. Some additional comments
23879 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23880 (svg_image_p): New function to test for SVG image.
23881 (svg_load): New function to load SVG image.
23882 (svg_load_image): New function, helper for svg_load.
23883 (Qsvg): New Lisp_object.
23884 (svg_keyword_index): New enum.
23885 (svg_format): New static `image_keyword' struct.
23886 (svg_type): New static `image_type' struct.
23887 (librsvg/rsvg.h): Include it.
23888
238892007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23890
23891 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23892
238932007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23894
23895 * lread.c (Qold_style_backquotes): New var.
23896 (syms_of_lread): Init and staticpro it.
23897 (load_warn_old_style_backquotes): New fun.
23898 (Fload): Use them to warn about old style backquotes.
23899 (end_of_file_error, Fload): Remove unused vars.
23900
23901 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23902
23903 * lread.c (Vold_style_backquotes): New var.
23904 (syms_of_lread): Init and export it to Elisp.
23905 (read1): Set it when we find an old-style (back)quote.
23906
239072007-08-22 Jason Rumney <jasonr@gnu.org>
23908
23909 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23910
239112007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23912
23913 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23914
239152007-08-19 Richard Stallman <rms@gnu.org>
23916
23917 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23918
239192007-08-19 Andreas Schwab <schwab@suse.de>
23920
23921 * alloc.c (pure): Round PURESIZE up.
23922
239232007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23924
23925 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23926 active frame.
23927
239282007-08-16 Richard Stallman <rms@gnu.org>
23929
23930 * eval.c (Fcommandp): Add parens to clarify.
23931
23932 * minibuf.c (Fall_completions): Use enum for type of table.
23933
23934 * emacs.c (USAGE2): Improve text.
23935
239362007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23937
23938 * term.c (tty_default_color_capabilities): Declare static
23939 variables in file scope, to avoid HPUX compiler problem.
23940
239412007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23942
23943 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23944 to gtk_toolbar_insert.
23945
239462007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23947
23948 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23949
23950 * insdel.c (reset_var_on_error): New fun.
23951 (signal_before_change, signal_after_change):
23952 Use it to reset (after|before)-change-functions to nil in case of error.
23953 Bind inhibit-modification-hooks to t.
23954 Don't bind (after|before)-change-functions to nil while they run.
23955
239562007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23957
23958 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23959 filling pixmap with stippled background.
23960
239612007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23962
23963 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23964 Don't use invisible frame as parent window for repositioning.
23965
239662007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23967
23968 * print.c (new_backquote_output): Rename from old_backquote_output.
23969 (print): Inverse its logic (according to its name) so as to match the
23970 behavior of new_backquote_flag in lread.c.
23971
239722007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23973
23974 * gmalloc.c (posix_memalign): New function.
23975
23976 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23977 ActivateControl/DeactivateControl here.
23978 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23979 frame-notice-user-settings is non-nil.
23980 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23981 for kEventParamFMFontStyle.
23982 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23983 mac_pass_command_to_system and mac_pass_control_to_system here.
23984 (XTread_socket): Call ActivateControl/DeactivateControl here.
23985 (XTread_socket) [TARGET_API_MAC_CARBON]:
23986 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23987 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23988 for window repositioning.
23989
239902007-08-08 Glenn Morris <rgm@gnu.org>
23991
23992 * Replace `iff' in doc-strings and comments.
23993
239942007-08-07 Chong Yidong <cyd@stupidchicken.com>
23995
23996 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23997
239982007-08-07 Martin Rudalics <rudalics@gmx.at>
23999
24000 * fileio.c (Finsert_file_contents): Run format-decode and
24001 after_insert_file_functions on entire buffer when REPLACE is
24002 non-nil and inhibit modification_hooks and point_motion_hooks.
24003 For consistency, run after_insert_file_functions iff something
24004 got inserted. Move signal_after_change and update_compositions
24005 after code running after_insert_file_functions. Make sure that
24006 undo_list doesn't record intermediate steps of the decoding process.
24007
240082007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24009
24010 * emacs.c (main)
24011 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24012 Call malloc_enable_thread on interactive startup.
24013
24014 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24015 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24016 [USE_PTHREAD]: Conditionalize with it.
24017 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24018 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24019 New functions.
24020
240212007-08-06 Chong Yidong <cyd@stupidchicken.com>
24022
24023 * xdisp.c (redisplay_window): When restoring original buffer
24024 position, make sure it is still valid.
24025
24026 * image.c (png_load): Ignore png-supplied background color.
24027
240282007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24029
24030 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24031 Use kCFAbsoluteTimeIntervalSince1970.
24032
24033 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24034 New variable.
24035 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24036 event loop should be quit.
24037 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24038 Quit dialog event loop if quit_dialog_event_loop is set.
24039
24040 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24041 (Selection): New typedef. Use instead of ScrapRef.
24042 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24043 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24044 (mac_clear_selection): Rename from clear_scrap.
24045 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24046 scrap_has_target_type. All uses changed.
24047 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24048 (mac_selection_has_target_p): New functions.
24049 (mac_put_selection_value): Rename from put_scrap_string.
24050 (mac_get_selection_value): Rename from get_scrap_string.
24051 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24052 (put_scrap_private_timestamp, scrap_has_target_type)
24053 (get_scrap_private_timestamp): Remove functions.
24054 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24055 (x_own_selection, x_get_local_selection):
24056 Use mac_valid_selection_value_p.
24057 (x_own_selection): Don't use put_scrap_private_timestamp.
24058 Record OWNERSHIP-INFO into Vselection_alist instead.
24059 (x_get_local_selection): Don't check type if request is local.
24060 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24061 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24062
240632007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24064
24065 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24066 add comment explaining why.
24067
240682007-08-03 Richard Stallman <rms@gnu.org>
24069
24070 * fileio.c (Fvisited_file_modtime): Use make_time.
24071
240722007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24073
24074 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24075 build.
24076
240772007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24078
24079 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24080
240812007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24082
24083 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24084
240852007-07-30 Richard Stallman <rms@gnu.org>
24086
24087 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24088
240892007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24090
24091 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24092
240932007-07-28 Nick Roberts <nickrob@snap.net.nz>
24094
24095 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24096 remote default-directory.
24097
24098 * buffer.c (mode-line-format): Update doc string.
24099
241002007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24101
24102 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24103 scroll bar gap.
24104 (x_scroll_bar_create): Set bar->fringe_extended_p.
24105 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24106 on frame edge. Check fringe background extension. Don't clear
24107 extended fringe background area.
24108
24109 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24110 (w32_fill_area): Enclose multiple statements with do ... while (0).
24111
24112 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24113 Extend fringe background to scroll bar gap.
24114 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24115 Set bar->fringe_extended_p.
24116 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24117 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24118 background extension. Don't clear extended fringe background area.
24119
24120 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24121 New member fringe_extended_p.
24122
241232007-07-25 Glenn Morris <rgm@gnu.org>
24124
24125 * Relicense all FSF files to GPLv3 or later.
24126
24127 * COPYING: Switch to GPLv3.
24128
241292007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24130
24131 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24132
24133 * data.c (Finteractive_form): Check for the presence of an
24134 `interactive-form' symbol property more thoroughly.
24135
24136 * data.c (Finteractive_form): Use an `interactive-form' property if
24137 present, analogous to the function-documentation property.
24138
241392007-07-24 Jason Rumney <jasonr@gnu.org>
24140
24141 * w32fns.c (x_real_positions): Get real position from OS instead of
24142 calculating it.
24143
241442007-07-23 Jason Rumney <jasonr@gnu.org>
24145
24146 * filelock.c (current_lock_owner): Allow for @ sign in username.
24147
241482007-07-22 Nick Roberts <nickrob@snap.net.nz>
24149
24150 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24151 remote default-directory.
24152
24153 * buffer.c (mode-line-format): Describe above case in doc string.
24154
241552007-07-20 Eli Zaretskii <eliz@gnu.org>
24156
24157 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24158 Define if not defined.
24159
241602007-07-18 Jason Rumney <jasonr@gnu.org>
24161
24162 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24163
241642007-07-18 Richard Stallman <rms@gnu.org>
24165
24166 * data.c (Fsetq_default): Doc fix.
24167
24168 * eval.c (Fsetq): Doc fix.
24169
241702007-07-18 Juanma Barranquero <lekktu@gmail.com>
24171
24172 * coding.c (Ffind_operation_coding_system):
24173 * eval.c (For, Fand): Doc fixes.
24174 Reported by Johan Bockgård.
24175
241762007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24177
24178 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24179
24180 * xterm.h: Declare x_ewmh_activate_frame.
24181
24182 * xterm.c (x_ewmh_activate_frame): New function.
24183 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24184
241852007-07-17 Martin Rudalics <rudalics@gmx.at>
24186
24187 * window.c (Fdisplay_buffer): If largest or LRU window is the
24188 only window, split it even if it is not eligible for splitting.
24189 This restores the original behavior broken by the 2007-07-15
24190 change.
24191
241922007-07-17 Glenn Morris <rgm@gnu.org>
24193
24194 * abbrev.c (abbrev_check_chars): New function.
24195 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24196 Call abbrev_check_chars to check abbrev characters are word
24197 constituents. Doc fix.
24198
241992007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24200
24201 * process.c (Fstart_process, Fmake_network_process)
24202 (read_process_output): Fix up last changes.
24203
242042007-07-16 Eli Zaretskii <eliz@gnu.org>
24205
24206 * makefile.w32-in (clean): Don't delete *~.
24207
242082007-07-16 Andreas Schwab <schwab@suse.de>
24209
24210 * window.c (Fdisplay_buffer): Use NILP.
24211 (Fset_window_scroll_bars): Likewise.
24212
242132007-07-15 Martin Rudalics <rudalics@gmx.at>
24214
24215 * window.c (window_min_size_2): New function.
24216 (window_min_size_1, size_window, Fdisplay_buffer)
24217 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24218 windows without mode- or header-lines when window-min-height is
24219 too small.
24220 (size_window): Reset nodelete_p after testing it, following an
24221 earlier note by Kim F. Storm.
24222 (display_buffer): Do not set split_height_threshold to twice the
24223 value of window_min_height to avoid changing the value of a
24224 customizable variable. Rather explicitly check whether the
24225 height of the window that shall be splitted is at least as large
24226 as split_height_threshold.
24227 (Fwindow_full_width_p): New defun.
24228 (syms_of_window): Defsubr it.
24229
24230 * window.h: Add EXFUN for Fwindow_full_width_p.
24231
242322007-07-14 Jason Rumney <jasonr@gnu.org>
24233
24234 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24235
242362007-07-14 Richard Stallman <rms@gnu.org>
24237
24238 * eval.c (maybe_call_debugger): New function.
24239 (find_handler_clause): Use maybe_call_debugger.
24240 Call it when the handler says `debug'.
24241 Eliminate DEBUGGER_VALUE_PTR.
24242 (Fsignal): Eliminate debugger_value.
24243 (Qdebug): New variable.
24244 (syms_of_eval): Initialize it.
24245
242462007-07-14 Juanma Barranquero <lekktu@gmail.com>
24247
24248 * eval.c (Fprogn):
24249 * keyboard.c (Ftrack_mouse):
24250 * print.c (Fwith_output_to_temp_buffer):
24251 * window.c (Fsave_window_excursion): Doc fix.
24252
242532007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24254
24255 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24256
242572007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24258
24259 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24260 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24261 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24262 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24263 Remove unused encoding_carryover.
24264 * process.c: Adjust all functions accordingly.
24265
242662007-07-12 Richard Stallman <rms@gnu.org>
24267
24268 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24269
242702007-07-11 Jason Rumney <jasonr@gnu.org>
24271
24272 * makefile.w32-in (LIBS): Include OLE32.
24273
24274 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24275 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24276
242772007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24278
24279 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24280 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24281 from a Lisp_Object into a bare pointer.
24282 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24283 Adjust the code correspondingly.
24284
24285 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24286
24287 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24288 (term_show_mouse_face): Remove unused var `j'.
24289 (handle_one_term_event): Remove unused vars `i' and `j'.
24290 Don't cast return value of ttyname since it's not necessary.
24291
242922007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24293
24294 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24295 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24296
24297 * fns.c (map_char_table): Use an array of int for `indices' rather than
24298 an array of Lisp_Objects (which are only ever integers anyway).
24299 (Fmap_char_table): Update caller.
24300 * lisp.h: Update prototype.
24301 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24302 * fontset.c (Ffontset_info):
24303 * casetab.c (set_case_table): Update callers.
24304
24305 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24306
24307 * keymap.c (struct accessible_keymaps_data)
24308 (struct where_is_internal_data): New structures.
24309 (accessible_keymaps_1, where_is_internal_1): Use them to change
24310 interface to adhere to the one used by map_keymap.
24311 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24312 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24313
24314 * keymap.h (map_keymap_function_t): More informative prototype.
24315
243162007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24317
24318 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24319 (looking_at_1): Don't change search_regs and last_thing_searched
24320 if `inhibit-changing-match-data' is non-nil.
24321 (string_match_1, search_buffer, set_search_regs): Likewise.
24322 (syms_of_search): Add Lisp level definition for
24323 `inhibit-changing-match-data' and set it to nil.
24324 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24325 start and end of the match, instead of using values in search_regs.
24326
243272007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24328
24329 * minibuf.c (Fcompleting_read): New value `confirm-only'
24330 for `require-match'.
24331
243322007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24333
24334 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24335 part of the 2007-06-27 change to syms_of_fileio.
24336
243372007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24338
24339 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24340 Check WINDOWP before using XWINDOW. Consolidate return statements.
24341
243422007-06-27 Richard Stallman <rms@gnu.org>
24343
24344 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24345
243462007-06-27 Juanma Barranquero <lekktu@gmail.com>
24347
24348 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24349
243502007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24351
24352 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24353 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24354 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24355 (_free_internal, memalign): Use them.
24356 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24357 Initialize to PTHREAD_MUTEX_INITIALIZER.
24358 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24359 (morecore_nolock): Rename from morecore. All uses changed.
24360 Use only nolock versions of internal allocation functions.
24361 (_malloc_internal_nolock, _realloc_internal_nolock)
24362 (_free_internal_nolock): New functions created from
24363 _malloc_internal, _realloc_internal, and _free_internal.
24364 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24365 Copy hook value to automatic variable before its use.
24366 (memalign): Copy hook value to automatic variable before its use.
24367
243682007-06-26 Kenichi Handa <handa@m17n.org>
24369
24370 * coding.c (Ffind_operation_coding_system): Docstring improved.
24371 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24372
243732007-06-25 David Kastrup <dak@gnu.org>
24374
24375 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24376 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24377 cater for additional parameter.
24378
24379 * keymap.h: Adjust number of parameters to `current-active-maps'.
24380
24381 * doc.c (Fsubstitute_command_keys): Adjust call of
24382 `current-active-maps'.
24383
243842007-06-25 David Kastrup <dak@gnu.org>
24385
24386 * callint.c (Fcall_interactively): Make the parsing of interactive
24387 specs somewhat more readable.
24388
243892007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24390
24391 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24392 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24393 if extended background has already been filled.
24394
243952007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24396
24397 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24398 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24399
24400 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24401 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24402 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24403 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24404 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24405 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24406 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24407 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24408 Run timers during dialog popup.
24409 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24410
244112007-06-21 Jason Rumney <jasonr@gnu.org>
24412
24413 * image.c (convert_mono_to_color_image): Swap fore and background.
24414
244152007-06-20 Jason Rumney <jasonr@gnu.org>
24416
24417 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24418 (w32_free_bdf_font): Unmap memory not handle.
24419
244202007-06-20 Sam Steingold <sds@gnu.org>
24421
24422 * gmalloc.c (__morecore): Fix the declaration to comply with the
24423 definition.
24424
244252007-06-20 Juanma Barranquero <lekktu@gmail.com>
24426
24427 * w32term.c (w32_delete_display): Remove leftover declaration.
24428 (w32_define_cursor, w32_initialize): Make static.
24429
24430 * w32.c (_wsa_errlist): Fix typo in error message.
24431 (init_environment): Ignore any environment variable from the
24432 registry having a null value.
24433
244342007-06-20 Glenn Morris <rgm@gnu.org>
24435
24436 * Makefile.in (LIBGIF): Default to -lgif.
24437
244382007-06-17 Jason Rumney <jasonr@gnu.org>
24439
24440 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24441 unicode strings.
24442
244432007-06-16 Juanma Barranquero <lekktu@gmail.com>
24444
24445 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24446 Fix typo in docstring.
24447
244482007-06-16 Eli Zaretskii <eliz@gnu.org>
24449
24450 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24451 and their keybindings.
24452
244532007-06-15 Chong Yidong <cyd@stupidchicken.com>
24454
24455 * composite.c (update_compositions): Fix last fix.
24456
244572007-06-14 Jason Rumney <jasonr@gnu.org>
24458
24459 * w32.c (get_process_times_fn): New function pointer.
24460 (globals_of_w32): Intialize it if present in kernel32.dll.
24461 (w32_get_internal_run_time): New function.
24462
24463 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24464
244652007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24466
24467 * composite.c (update_compositions): Check the validness of
24468 compositions.
24469
244702007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24471
24472 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24473 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24474
24475 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24476 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24477
24478 * macgui.h (USE_MAC_TOOLBAR): New define.
24479
24480 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24481 Return immediately unless popup is activated.
24482
24483 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24484 background to scroll bar gap.
24485 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24486 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24487 scroll bars on frame edge. Check fringe background extension.
24488 Don't clear extended fringe background area.
24489 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24490 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24491 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24492 [USE_MAC_TOOLBAR]: New macros.
24493 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24494 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24495 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24496 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24497 [USE_MAC_TOOLBAR]: New functions.
24498 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24499 manually if previous repositioning has failed.
24500 (mac_handle_keyboard_event): Use precomputed event kind.
24501 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24502 as tool bar item click. Handle mouse movement over tool bar items.
24503
24504 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24505 toolbar_win_gravity.
24506 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24507 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24508 Add externs.
24509
24510 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24511 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24512
245132007-06-14 Chong Yidong <cyd@stupidchicken.com>
24514
24515 * image.c (search_image_cache): Remove unused variable.
24516
245172007-06-13 Chong Yidong <cyd@stupidchicken.com>
24518
24519 * xfns.c, xmenu.c: Link to xaw3d if available.
24520
245212007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24522
24523 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24524 frame_foreground and frame_background.
24525
24526 * image.c (lookup_image): Save frame foreground and background colors.
24527 (search_image_cache): Check if saved and current frame colors match.
24528
245292007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24530
24531 * regex.c (regex_compile): Remove the `regnum' counter.
24532 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24533
245342007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24535
24536 * term.c: Include intervals.h to declare Fget_text_property.
24537
245382007-06-10 Jason Rumney <jasonr@gnu.org>
24539
24540 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24541
245422007-06-08 Juanma Barranquero <lekktu@gmail.com>
24543
24544 * callint.c (Fcall_interactively):
24545 * editfns.c (Fdelete_and_extract_region):
24546 * fileio.c (Fread_file_name):
24547 * fns.c (Fmapconcat):
24548 * keyboard.c (cmd_error_internal):
24549 * keymap.c (Fkey_description):
24550 * lread.c (openp):
24551 * minibuf.c (read_minibuf):
24552 * search.c (wordify):
24553 * sunfns.c (sel_read):
24554 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24555 * xfns.c (x_default_scroll_bar_color_parameter):
24556 * xmenu.c (menu_help_callback):
24557 * xselect.c (Fx_get_atom_name):
24558 * xterm.c (x_term_init): Use empty_unibyte_string.
24559
245602007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24561
24562 * alloc.c (init_strings): Initialize canonical empty strings.
24563 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24564 canonical empty string when the requested size is 0.
24565
24566 * emacs.c (empty_unibyte_string): Rename from empty_string.
24567 (empty_multibyte_string): New canonical empty string.
24568 (syms_of_emacs): Don't initialize empty_string.
24569
24570 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24571 string, if appropriate.
24572 (empty_unibyte_string, empty_multibyte_string): New externs.
24573 (empty_string): Remove extern.
24574
24575 * lread.c (syms_of_lread): Use empty_unibyte_string.
24576
245772007-06-07 Jason Rumney <jasonr@gnu.org>
24578
24579 * s/ms-w32.h: Don't define HAVE_TZNAME.
24580
24581 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24582
245832007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24584
24585 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24586
24587 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24588 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24589
24590 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24591 Don't call next handler.
24592 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24593 Remove argument. Install handler to application.
24594 (set_frame_menubar): Don't change deep_p.
24595 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24596 FRAME_OUTER_TO_INNER_DIFF_Y.
24597 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24598 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24599 [HAVE_DIALOGS]: New macros.
24600 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24601 Use them.
24602 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24603
24604 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24605 init_service_handler. All callers changed. Return OSStatus value.
24606
24607 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24608 All callers changed so as not to call SetPortWindowPort.
24609 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24610 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24611 mac_draw_string_common.
24612 (mac_draw_image_string_qd): Likewise.
24613 (mac_draw_string_common): Use them. Add INLINE.
24614 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24615 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24616 GetGlobalMouse.
24617 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24618 and FRAME_OUTER_TO_INNER_DIFF_Y.
24619 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24620 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24621 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24622 repositioning window to mac_handle_window_event.
24623 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24624 saving window location to mac_handle_window_event
24625 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24626 (install_menu_target_item_handler): Remove argument in extern.
24627 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24628 Also accept command events.
24629 (do_keystroke): New function created from XTread_socket.
24630 (init_command_handler): Remove functions.
24631 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24632 and save window location by kEventWindowShowing and kEventWindowHiding
24633 handlers here. Don't call next handler for window state change and
24634 focus events.
24635 (mac_handle_application_event, mac_handle_keyboard_event)
24636 [TARGET_API_MAC_CARBON]: New functions.
24637 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24638 kEventWindowShowing and kEventWindowHiding events. Move installation
24639 of mouse, font, text input and menu target item handlers to
24640 install_application_handler.
24641 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24642 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24643 New function.
24644 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24645 Register it.
24646 (XTread_socket) [TARGET_API_MAC_CARBON]:
24647 Consolidate SendEventToEventTarget calls.
24648 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24649 Move application activation handler to mac_handle_application_event.
24650 Move keyboard handler to mac_handle_keyboard_event.
24651 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24652 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24653 init_command_handler. Call install_application_handler.
24654
24655 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24656 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24657
246582007-06-07 Glenn Morris <rgm@gnu.org>
24659
24660 * emacs.c (main): Use `emacs-copyright' in --version output.
24661
246622007-06-06 Chong Yidong <cyd@stupidchicken.com>
24663
24664 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24665
246662007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24667
24668 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24669
24670 * macgui.h: Replace WindowPtr with WindowRef.
24671
24672 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24673 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24674 Replace ControlHandle with ControlRef.
24675 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24676
24677 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24678 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24679 Replace ControlHandle with ControlRef.
24680 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24681 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24682
24683 * macterm.h (struct scroll_bar): Rename member control_handle_low
24684 and control_handle_high to control_ref_low and control_ref_high.
24685 All uses changed.
24686 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24687 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24688 respectively. All uses changed.
24689 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24690 (install_window_handler, remove_window_handler): Replace WindowPtr
24691 with WindowRef in externs.
24692
246932007-06-05 Juanma Barranquero <lekktu@gmail.com>
24694
24695 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24696
246972007-06-03 Nick Roberts <nickrob@snap.net.nz>
24698
24699 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24700
24701 * frame.c (Fmouse_position, Fmouse_pixel_position):
24702 Condition on HAVE_GPM too.
24703
24704 * term.c (term_mouse_highlight): Remove unused variables.
24705 (Fterm_open_connection): Set gpm_zerobased to 1.
24706 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24707 Use zero based co-ordinates.
24708 (handle_one_term_event): Report a drag as mouse movement too.
24709
24710 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24711
247122007-06-03 Chong Yidong <cyd@stupidchicken.com>
24713
24714 * image.c (search_image_cache): New function. Require background
24715 color match if background color is unspecified in the image spec.
24716 (uncache_image, lookup_image): Use it.
24717
247182007-06-01 Juanma Barranquero <lekktu@gmail.com>
24719
24720 * window.c (Fshrink_window): Reflow docstring.
24721
247222007-06-02 Chong Yidong <cyd@stupidchicken.com>
24723
24724 * Version 22.1 released.
24725
247262007-06-01 Richard Stallman <rms@gnu.org>
24727
24728 * xfns.c (x_encode_text): Add GCPRO.
24729
247302007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24731
24732 * xfns.c (x_set_name_internal): Save encoded name before
24733 x_encode_text in case string data is relocated.
24734
247352007-05-31 Richard Stallman <rms@gnu.org>
24736
24737 * buffer.c (syms_of_buffer): Doc fix.
24738
247392007-05-30 Nick Roberts <nickrob@snap.net.nz>
24740
24741 * sysdep.c (init_sys_modes): Add rather than replace with
24742 O_NONBLOCK.
24743
24744 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24745 term_mouse_moveto.
24746
24747 * termhooks.h (term_mouse_moveto): New extern.
24748
24749 * term.c (mouse_face_window): Rename...
24750 (Qmouse_face_window): ...to this.
24751 (term_show_mouse_face, term_clear_mouse_face)
24752 (term_mouse_highlight): Use Qmouse_face_window.
24753 (term_mouse_moveto): New function.
24754 (term_mouse_position): Make it work.
24755 (syms_of_term): Uncomment assignment to mouse_position_hook.
24756 Staticpro Qmouse_face_window.
24757
247582007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24759
24760 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24761 around current_column call.
24762
247632007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24764
24765 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24766 * xdisp.c (next_element_from_buffer):
24767 * window.c (delete_window):
24768 * term.c (term_mouse_highlight):
24769 * msdos.c (getdefdir):
24770 * macterm.c (mac_create_bitmap_from_bitmap_data)
24771 (init_font_name_table):
24772 * fns.c (Fsxhash):
24773 * data.c (Fmake_local_variable):
24774 * ccl.c (ccl_driver): Likewise.
24775
247762007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24777
24778 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24779 Call mac_wakeup_from_rne on window size change.
24780
247812007-05-25 Chong Yidong <cyd@stupidchicken.com>
24782
24783 * image.c (uncache_image): Fix typo.
24784
247852007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24786
24787 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24788
247892007-05-22 Richard Stallman <rms@gnu.org>
24790
24791 * xterm.c (x_connection_closed): Remove NO_RETURN.
24792
247932007-05-22 Martin Rudalics <rudalics@gmx.at>
24794
24795 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24796
247972007-05-21 Chong Yidong <cyd@stupidchicken.com>
24798
24799 * image.c (uncache_image): New function.
24800 (Fimage_refresh): New function.
24801
248022007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24803
24804 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24805
248062007-05-20 Nick Roberts <nickrob@snap.net.nz>
24807
24808 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24809 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24810
248112007-05-20 Nick Roberts <nickrob@snap.net.nz>
24812
24813 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24814 conditional on [HAVE_GPM_H].
24815
248162007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24817
24818 * syntax.c (skip_chars): Update syntax-table only after we checked that
24819 the new location is valid.
24820
248212007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24822
24823 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24824 mac_get_window_bounds.
24825
248262007-05-20 Nick Roberts <nickrob@snap.net.nz>
24827
24828 * Makefile.in (LIBGPM): Allow it to be set from configure.
24829 If set then link Emacs with it.
24830
24831 * config.in: Regenerate.
24832
24833 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24834 New externs.
24835
24836 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24837 Include gpm.h.
24838 (handle_one_term_event, term_gpm): New externs.
24839
24840 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24841 and allow it to be interrupted by SIGIO.
24842
24843 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24844 (wait_reading_process_output): Wait on gpm_fd too.
24845 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24846 (add_gpm_wait_descriptor_called_flag): New variable.
24847 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24848
24849 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24850 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24851 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24852 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24853 (make_lispy_event): Add case GPM_CLICK_EVENT.
24854 (read_avail_input): Handle mouse input.
24855
24856 * term.c (write_glyphs_with_face): New function.
24857 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24858 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24859 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24860 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24861 (last_mouse_x, last_mouse_y): New variables.
24862 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24863 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24864 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24865 (Fterm_close_connection): New functions.
24866 (term_init): Initialise mouse_face_window.
24867
248682007-05-19 Chong Yidong <cyd@stupidchicken.com>
24869
24870 * xdisp.c (redisplay_window): If first window line is a
24871 continuation line, recompute the new window start instead of
24872 recentering.
24873
248742007-05-18 Glenn Morris <rgm@gnu.org>
24875
24876 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24877 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24878
248792007-05-17 Glenn Morris <rgm@gnu.org>
24880
24881 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24882
248832007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24884
24885 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24886 dead key repeat and up events.
24887
248882007-05-14 Chong Yidong <cyd@stupidchicken.com>
24889
24890 * image.c (pbm_load): Check image size for monochrome pbm.
24891
248922007-05-13 Chong Yidong <cyd@stupidchicken.com>
24893
24894 * xterm.c (XTread_socket): Revert last change.
24895
248962007-05-12 Chong Yidong <cyd@stupidchicken.com>
24897
24898 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24899
24900 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24901
249022007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24903
24904 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24905 mixup (YAILOM).
24906
249072007-05-07 Andreas Schwab <schwab@suse.de>
24908
24909 * keymap.c (Flookup_key): Fix typo in last change.
24910
249112007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24912
24913 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24914 mapping for unibyte strings.
24915
249162007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24917
24918 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24919 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24920
249212007-04-29 Richard Stallman <rms@gnu.org>
24922
24923 * insdel.c (replace_range): For undo, record insertion first.
24924
249252007-04-29 Andreas Schwab <schwab@suse.de>
24926
24927 * lisp.h (VECSIZE): Use OFFSETOF.
24928
249292007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24930
24931 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24932 disabled lines.
24933
249342007-04-28 Richard Stallman <rms@gnu.org>
24935
24936 * lread.c (read_escape): In a string, \s is always space.
24937
249382007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24939
24940 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24941
24942 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24943 submenu for menu bar items.
24944
24945See ChangeLog.10 for earlier changes.
24946
24947;; Local Variables:
24948;; coding: utf-8
24949;; add-log-time-zone-rule: t
aac0c6e3
MR
24950;; End:
24951
e3eb1dae 24952 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24953
24954 This file is part of GNU Emacs.
24955
24956 GNU Emacs is free software: you can redistribute it and/or modify
24957 it under the terms of the GNU General Public License as published by
24958 the Free Software Foundation, either version 3 of the License, or
24959 (at your option) any later version.
24960
24961 GNU Emacs is distributed in the hope that it will be useful,
24962 but WITHOUT ANY WARRANTY; without even the implied warranty of
24963 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24964 GNU General Public License for more details.
24965
24966 You should have received a copy of the GNU General Public License
24967 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24968
24969;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40