* process.c: Remove obsolete comment.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
ae96d47a
AS
12010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2
3 * process.c: Remove obsolete comment.
4
635c0aa1
CY
52010-07-11 Chong Yidong <cyd@stupidchicken.com>
6
7 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
8
a64df650
AS
92010-07-11 Andreas Schwab <schwab@linux-m68k.org>
10
8966b757
AS
11 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
12 index, rindex.
13 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
14 * editfns.c (Fuser_full_name, Fformat): Likewise.
15 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
16 * fileio.c (Ffile_symlink_p): Likewise.
17 * filelock.c (current_lock_owner): Likewise.
18 * font.c (font_parse_name, font_parse_family_registry): Likewise.
19 * fontset.c (fontset_pattern_regexp): Likewise.
20 * lread.c (read1): Likewise.
21 * sysdep.c (init_system_name): Likewise.
22 * xfns.c (select_visual): Likewise.
23 * s/hpux10-20.h (index, rindex): Don't define.
24 * s/ms-w32.h (index): Likewise.
25 * s/usg5-4.h: Likewise.
26
cf237e27
AS
27 * callproc.c (relocate_fd): Use F_DUPFD if defined.
28
a8fe7202
AS
29 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
30 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
31 (egetenv): Likewise.
32 * doprnt.c (doprnt): Likewise.
33 * editfns.c (set_time_zone_rule, format2): Likewise.
34 * emacs.c (decode_env_path): Likewise.
35 * eval.c (signal_error, error): Likewise.
36 * insdel.c (replace_range_2): Likewise.
37 * keyboard.c (cmd_error_internal): Likewise.
38 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
39 * print.c (write_string, write_string_1, print_error_message):
40 Likewise.
41 * vm-limit.c (warn_function, memory_warnings): Likewise.
42 * xdisp.c (message1, message1_nolog, message_with_string)
43 (vmessage, message, message_nolog): Likewise.
44 * emacs.c: Remove duplicate declaration.
45 * keyboard.h: Likewise.
46 * lisp.h: Update prototypes.
47
bb8e180f
AS
48 * eval.c: Fix indentation problem.
49
83380e65
AS
50 * keyboard.c: Include "process.h"
51
a64df650
AS
52 * eval.c: Remove obsolete noinline declaration.
53 * fns.c: Likewise.
54
6a8033e1
KR
552010-07-11 Ken Raeburn <raeburn@raeburn.org>
56
57 * doprnt.c (doprnt): Take a va_list argument instead of count and
58 pointer.
59 * eval.c (error): Change to a standard-C variadic function.
60 * xdisp.c (vmessage): Renamed from message, made static, and
61 changed to take a va_list argument.
62 (message): New variadic wrapper.
63 (message_nolog): Now a variadic function, calling vmessage.
64 * lisp.h: Include stdarg.h for va_list.
65 (doprnt, error, message, message_nolog): Decls updated.
66
462aa963
EZ
672010-07-11 Eli Zaretskii <eliz@gnu.org>
68
69 * process.c (syms_of_process) <delete-exited-processes>: Define
70 even if !subprocesses.
71 (delete_exited_processes): Ditto.
72
73 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
74 (delete_exited_processes): Don't define.
75
48104462
CY
762010-07-10 Chong Yidong <cyd@stupidchicken.com>
77
78 * frame.c (make_frame): Initialize menu_bar_lines and
79 tool_bar_lines members.
80 (make_initial_frame, make_terminal_frame): Initialize
81 menu_bar_lines using value of menu-bar-mode.
82
83 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
84
f388c88a
EZ
852010-07-10 Eli Zaretskii <eliz@gnu.org>
86
87 * process.c: Reshuffle #include's. Condition some of the global
88 and static variables on `subprocesses'.
89 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
90 Leave only one implementation.
91 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
92 (kill_buffer_processes, Flist_system_processes)
93 (Fprocess_attributes, init_process, syms_of_process): Unify the
94 implementations for with subprocesses and without them.
95
723f5a07
J
962010-07-09 Jan Djärv <jan.h.d@swipnet.se>
97
98 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
99 correct size for Motif.
100 (free_frame_menubar): Call x_set_window_size to update frame size.
101
102 * xfns.c (x_window): Set borderWidth to 0 for pane and
103 EmacsFrame. Frame size calculation is wrong otherwise.
104
2536a4b7
MA
1052010-07-09 Michael Albinus <michael.albinus@gmx.de>
106
107 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
108 allows to suppress errors when polling in Emacs' main loop.
109 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
110 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
111 (Fdbus_method_error_internal, Fdbus_send_signal)
112 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
113 (Fdbus_register_method): Use it. (Bug#6579)
114
5842a27b
DN
1152010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
116
117 * alloc.c: Convert DEFUNs to standard C.
118 * buffer.c:
119 * bytecode.c:
120 * callint.c:
121 * callproc.c:
122 * casefiddle.c:
123 * casetab.c:
124 * category.c:
125 * character.c:
126 * charset.c:
127 * chartab.c:
128 * cmds.c:
129 * coding.c:
130 * composite.c:
131 * data.c:
132 * dbusbind.c:
133 * dired.c:
134 * dispnew.c:
135 * doc.c:
136 * dosfns.c:
137 * editfns.c:
138 * emacs.c:
139 * eval.c:
140 * fileio.c:
141 * filelock.c:
142 * floatfns.c:
143 * fns.c:
144 * font.c:
145 * fontset.c:
146 * frame.c:
147 * fringe.c:
148 * image.c:
149 * indent.c:
150 * insdel.c:
151 * keyboard.c:
152 * keymap.c:
153 * lread.c:
154 * macros.c:
155 * marker.c:
156 * menu.c:
157 * minibuf.c:
158 * msdos.c:
159 * nsfns.m:
160 * nsmenu.m:
161 * nsselect.m:
162 * print.c:
163 * process.c:
164 * search.c:
165 * sound.c:
166 * syntax.c:
167 * term.c:
168 * terminal.c:
169 * textprop.c:
170 * undo.c:
171 * w16select.c:
172 * w32console.c:
173 * w32fns.c:
174 * w32font.c:
175 * w32menu.c:
176 * w32proc.c:
177 * w32select.c:
178 * window.c:
179 * xdisp.c:
180 * xfaces.c:
181 * xfns.c:
182 * xmenu.c:
183 * xselect.c:
184 * xsettings.c:
185 * xsmfns.c: Likewise.
186
187
d568829b
EZ
1882010-07-08 Eli Zaretskii <eliz@gnu.org>
189
190 * process.c (kbd_is_on_hold, hold_keyboard_input)
191 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
192
52214050
J
1932010-07-08 Jan Djärv <jan.h.d@swipnet.se>
194
195 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
196 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
197 unless USE_LUCID.
198
313d9eb2
DN
1992010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
200
d8825aa3
DN
201 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
202
295d0d8f
DN
203 Clean up include guards.
204 * tparam.c: Remove include guards for config.h, string.h and code
205 that assumes #ifndef emacs.
206 * termcap.c:
207 * unexalpha.c:
208 * sysdep.c:
209 * filemode.c:
210 * filelock.c:
211 * bidi.c: Likewise.
212
49d9e6b0
DN
213 Remove prefix-args.c
214 * prefix-args.c: Remove file.
215 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
216 * Makefile.in (temacs${EXEEXT}): Remove references to
217 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
218 (mostlyclean): Remove reference to prefix-args.
219 (prefix-args): Remove.
220
313d9eb2
DN
221 Simplify cstart_of_data, start_of_code and related code.
222 * mem-limits.h: Remove !emacs and _LIBC conditional code.
223 (start_of_data): Merge into start_of_data function.
224 * sysdep.c (start_of_text): Remove. Move simplified versions of
225 it in the only users: unexaix.c and unexec.c.
226 (read_input_waiting): Remove local declaration of quit_char.
227 (start, etext): Remove declarations.
228 (start_of_data): Merge with the version in mem-limits.h and move
229 to vm-limits.c.
230 * vm-limit.c (start_of_data): Merged and simplified version of the
231 code formerly in mem-limits.h and sysdep.c.
232 * unexec.c (start): New declaration, moved from sysdep.c.
233 (start_of_text): Simplified version of the code formerly in sysdep.c.
234 * unexaix.c (start_of_text): Simplified version of the code
235 formerly in sysdep.c.
236 * m/alpha.h (HAVE_TEXT_START): Remove.
237 (TEXT_START): Move ...
238 * unexalpha.c (TEXT_START): ... here.
239 * s/hpux10-20.h (TEXT_START): Remove.
240 * s/darwin.h (TEXT_START):
241 * m/mips.h (TEXT_START):
242 * m/macppc.h (HAVE_TEXT_START):
243 * m/m68k.h (TEXT_START):
244 * m/iris4d.h (TEXT_START):
245 * m/intel386.h (TEXT_START):
246 * m/ibmrs6000.h (TEXT_START):
247 * m/ia64.h (HAVE_TEXT_START):
248 * s/msdos.h (TEXT_START): Likewise.
249
72af86bd
AS
2502010-07-07 Andreas Schwab <schwab@linux-m68k.org>
251
252 * alloc.c (overrun_check_malloc, overrun_check_realloc)
253 (overrun_check_free, xstrdup, allocate_string)
254 (allocate_string_data, compact_small_strings, Fmake_string)
255 (make_unibyte_string, make_multibyte_string)
256 (make_string_from_bytes, make_specified_string, make_float)
257 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
258 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
259 memcpy, memmove, memset, memcmp.
260 * atimer.c (start_atimer, set_alarm): Likewise.
261 * buffer.c (clone_per_buffer_values, report_overlay_modification)
262 (mmap_realloc, init_buffer_once): Likewise.
263 * callint.c (Fcall_interactively): Likewise.
264 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
265 (getenv_internal_1): Likewise.
266 * casefiddle.c (casify_object): Likewise.
267 * ccl.c (ccl_driver): Likewise.
268 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
269 * charset.c (load_charset_map_from_file)
270 (load_charset_map_from_file, load_charset_map_from_vector)
271 (Fdefine_charset_internal): Likewise.
272 * cm.c (Wcm_clear): Likewise.
273 * coding.c (decode_eol, decode_coding_object)
274 (Fset_coding_system_priority, make_subsidiaries): Likewise.
275 * data.c (Faset): Likewise.
276 * dired.c (directory_files_internal, file_name_completion_stat):
277 Likewise.
278 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
279 (clear_glyph_row, copy_row_except_pointers)
280 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
281 (save_current_matrix, restore_current_matrix)
282 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
283 (mirror_line_dance, scrolling_window): Likewise.
284 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
285 Likewise.
286 * doprnt.c (doprnt): Likewise.
287 * editfns.c (Fuser_full_name, make_buffer_string_both)
288 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
289 * emacs.c (sort_args): Likewise.
290 * eval.c (Fapply, Ffuncall): Likewise.
291 * fileio.c (Ffile_name_directory, make_temp_name)
292 (Fexpand_file_name, search_embedded_absfilename)
293 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
294 (auto_save_error): Likewise.
295 * fns.c (Fstring_equal, Fcopy_sequence, concat)
296 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
297 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
298 (Fmake_hash_table): Likewise.
299 * fringe.c (Fdefine_fringe_bitmap): Likewise.
300 * ftfont.c (ftfont_text_extents): Likewise.
301 * getloadavg.c (getloadavg): Likewise.
302 * image.c (define_image_type, make_image, make_image_cache)
303 (x_create_x_image_and_pixmap, xbm_image_p)
304 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
305 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
306 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
307 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
308 (tiff_image_p, tiff_read_from_memory, gif_image_p)
309 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
310 Likewise.
311 * indent.c (scan_for_column, compute_motion): Likewise.
312 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
313 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
314 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
315 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
316 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
317 (store_user_signal_events, menu_bar_items, tool_bar_items)
318 (process_tool_bar_item, append_tool_bar_item)
319 (read_char_minibuf_menu_prompt, read_key_sequence)
320 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
321 Likewise.
322 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
323 Likewise.
324 * lisp.h (STRING_COPYIN): Likewise.
325 * lread.c (Fload, read1, oblookup): Likewise.
326 * msdos.c (Frecent_doskeys): Likewise.
327 * nsfns.m (Fx_create_frame): Likewise.
328 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
329 Likewise.
330 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
331 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
332 Likewise.
333 * nsmenu.m (ns_update_menubar): Likewise.
334 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
335 * print.c (print_unwind, printchar, strout, print_string)
336 (print_error_message): Likewise.
337 * process.c (conv_lisp_to_sockaddr, set_socket_option)
338 (Fmake_network_process, Fnetwork_interface_list)
339 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
340 (init_process): Likewise.
341 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
342 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
343 Likewise.
344 * scroll.c (do_scrolling, do_direct_scrolling)
345 (scrolling_max_lines_saved): Likewise.
346 * search.c (search_buffer, wordify, Freplace_match): Likewise.
347 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
348 * syntax.c (skip_chars, skip_syntaxes): Likewise.
349 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
350 (emacs_set_tty): Likewise.
351 * term.c (encode_terminal_code, calculate_costs)
352 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
353 Likewise.
354 * termcap.c (tgetst1, gobble_line): Likewise.
355 * termhooks.h (EVENT_INIT): Likewise.
356 * tparam.c (tparam1): Likewise.
357 * unexalpha.c (unexec): Likewise.
358 * unexec.c (write_segment): Likewise.
359 * unexmacosx.c (unexec_write_zero): Likewise.
360 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
361 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
362 * w32font.c (w32font_list_family, w32font_text_extents)
363 (w32font_list_internal, w32font_match_internal)
364 (w32font_open_internal, compute_metrics, Fx_select_font):
365 Likewise.
366 * w32menu.c (set_frame_menubar, add_menu_item)
367 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
368 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
369 * w32uniscribe.c (uniscribe_list_family): Likewise.
370 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
371 * window.c (make_window, replace_window, set_window_buffer)
372 (Fsplit_window): Likewise.
373 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
374 (add_to_log, message3, x_consider_frame_title)
375 (append_space_for_newline, extend_face_to_end_of_line)
376 (decode_mode_spec_coding, init_glyph_string): Likewise.
377 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
378 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
379 (face_attr_equal_p, make_realized_face, make_face_cache)
380 (free_realized_faces, lookup_named_face, smaller_face)
381 (face_with_height, lookup_derived_face)
382 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
383 (Finternal_set_font_selection_order, realize_default_face)
384 (compute_char_face, face_at_buffer_position)
385 (face_for_overlay_string, face_at_string_position, merge_faces):
386 Likewise.
387 * xfns.c (xic_create_fontsetname, Fx_create_frame)
388 (Fx_window_property, x_create_tip_frame)
389 (Fx_backspace_delete_keys_p): Likewise.
390 * xfont.c (xfont_list, xfont_match, xfont_list_family)
391 (xfont_text_extents): Likewise.
392 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
393 * xrdb.c (magic_file_p, x_get_resource): Likewise.
394 * xselect.c (x_queue_event, x_get_window_property)
395 (receive_incremental_selection): Likewise.
396 * xsmfns.c (x_session_check_input): Likewise.
397 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
398 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
399 Likewise.
400 * character.h (BCOPY_SHORT): Removed.
401 * config.in: Regenerate.
402 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
403 * emacs.c (main) [PROFILING]: Don't declare
404 dump_opcode_frequencies.
405 * lisp.h (safe_bcopy): Remove declaration.
406 (memset) [!HAVE_MEMSET]: Declare.
407 (memcpy) [!HAVE_MEMCPY]: Likewise.
408 (memmove) [!HAVE_MEMMOVE]: Likewise.
409 (memcmp) [!HAVE_MEMCMP]: Likewise.
410 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
411 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
412 Don't define.
413 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
414 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
415 (BCOPY_DOWNWARD_SAFE): Don't define.
416 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
417 (memcpy) [!HAVE_MEMCPY]: Define.
418 (memmove) [!HAVE_MEMMOVE]: Define.
419 (memcmp) [!HAVE_MEMCMP]: Define.
420
cb768704
J
4212010-07-07 Jan Djärv <jan.h.d@swipnet.se>
422
423 * process.c (kbd_is_on_hold): New variable.
424 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
425 functions.
426 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
427 select on empty input mask.
428 (init_process): Initialize kbd_is_on_hold to 0.
429
430 * process.h (hold_keyboard_input, unhold_keyboard_input)
431 (kbd_on_hold_p): Declare.
432
433 * keyboard.c (input_available_signal): Declare.
434 (kbd_buffer_nr_stored): New function.
435 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
436 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
437 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
438 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
439 (tty_read_avail_input): If input is on hold, return.
440 Don't read more that free slots in kbd_buffer (Bug#6571).
441
3a8ce822
EZ
4422010-07-07 Eli Zaretskii <eliz@gnu.org>
443
444 * msdos.h:
445 * msdos.c:
446 * dosfns.c:
447 * w16select.c: Convert function definitions to ANSI C.
448
449 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
450 unused prototypes.
451
cf84bb53
JB
4522010-07-07 Juanma Barranquero <lekktu@gmail.com>
453
454 * coding.c, sysdep.c: Convert some more functions to standard C.
455
1a4990fb
JB
4562010-07-07 Juanma Barranquero <lekktu@gmail.com>
457
458 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
459 (encode_coding_object): Use SPECPDL_INDEX.
460 (syms_of_coding): Use DOS_NT.
461
c0f2f16b
DN
4622010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
463
48fb6855
DN
464 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
465
c0f2f16b
DN
466 Make the function member of Lisp_Subr use standard C prototypes.
467 * lisp.h (struct Lisp_Subr): Use a union for the function member.
468 (DECL_ALIGN): Add a cast for the function.
469 * eval.c (Feval, Ffuncall): Use the proper type for each type
470 function call.
471
67aecef9
CY
4722010-07-06 Chong Yidong <cyd@stupidchicken.com>
473
474 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
475 fringe face id, so face-remapping-alist works (Bug#6091).
476
b56ceb92
JB
4772010-07-06 Juanma Barranquero <lekktu@gmail.com>
478
479 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
480 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
481 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
482
7af07b96
AS
4832010-07-06 Andreas Schwab <schwab@linux-m68k.org>
484
485 * xterm.c (x_get_keysym_name): Change type of parameter to int.
486 * lisp.h: Declare x_get_keysym_name.
487 * keyboard.c (modify_event_symbol): Don't declare
488 x_get_keysym_name here.
489
69e24e34
DN
4902010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
491
492 * ecrt0.c: Revert conversion to standard C.
493
d3da34e0 4942010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
495
496 * vm-limit.c (memory_warnings):
497 * keyboard.c (modify_event_symbol):
498 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
499 (round2, emacs_rint):
500 * process.c (send_process, old_sigpipe): Convert function
501 definitions and declarations to standard C.
502
5032010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
504
505 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
506 * xdisp.c: Convert function definitions to standard C.
507
508 * cm.c (cmputc): Arg C is now int, not char.
509 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
510
00be444c
J
5112010-07-05 James Cloos <cloos@jhcloos.com>
512
513 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
514
515 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
516 _NET_WM_ICON_NAME atoms.
517
518 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
519 and _NET_WM_ICON_NAME properties, too, matching what is
520 done in the Gtk+ case.
521
e4c8d29a
J
5222010-07-05 Jan Djärv <jan.h.d@swipnet.se>
523
ff919460
J
524 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
525
e4c8d29a
J
526 * xsmfns.c (SSDATA): New macro.
527 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
528 passed to strlen/strcpy/strcat.
529 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
530 7:th arg to XChangeProperty to (unsigned char *)
531
532 * xsettings.c (something_changedCB, parse_settings)
533 (apply_xft_settings): Reformat prototype.
534 (something_changedCB, init_gconf): Remove unused variable i.
535 (read_settings): Remove unused variable long_len.
536
537 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
538 (xg_get_image_for_pixmap, create_dialog)
539 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
540 (menuitem_highlight_callback, make_menu_item)
541 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
542 (xg_create_scroll_bar, xg_update_scrollbar_pos)
543 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
544 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
545 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
546 (xg_tool_bar_item_expose_callback): Reformat prototype.
547 (xg_update_menubar): GList *group => GSList *group.
548 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
549 before use.
550 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
551 to GTK_IMAGE (wimage).
552
dd4c5104
DN
5532010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
554
898b4c5c
DN
555 * atimer.c: Use "" instead of <> for local includes for
556 consistency with the rest of the code.
557
dd4c5104
DN
558 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
559 * xrdb.c (get_system_name):
560 * window.c (shrink_windows):
561 * syntax.c (forw_comment):
562 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
563 (ins_del_costs):
564 * mem-limits.h (start_of_data):
565 * lread.c (readevalloop):
566 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
567 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
568 * frame.c (x_get_focus_frame):
569 * floatfns.c (fmod_float):
570 * fileio.c (choose_write_coding_system):
571 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
572 (malloc_initialize_hook, sort_args, synchronize_locale):
573 * doprnt.c (doprnt):
574 * dired.c (compile_pattern):
575 * data.c (fmod_float):
576 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
577 (map_char_table_for_charset):
578 * charset.c (define_charset_internal):
579 * alloc.c (Fgarbage_collect): Convert declarations or definitions
580 to standard C.
581
9a39b306 5822010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 583 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
584
585 * lread.c (read1): Fix up last change to not mess up `c'.
586
e6cb2cbb
JB
5872010-07-04 Juanma Barranquero <lekktu@gmail.com>
588
589 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
590
438105ed
JB
5912010-07-04 Juanma Barranquero <lekktu@gmail.com>
592
593 Fix prototypes.
594
e5447b22 595 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 596 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
597 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
598 arg, as required by internal_condition_case_1.
dcc7404b 599 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
600 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
601 (analyse_first): Fix "const const".
e5447b22 602 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 603 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 604 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 605
971de7fb
DN
6062010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
607
608 * alloc.c: Convert function definitions to standard C.
609 * atimer.c:
610 * bidi.c:
611 * bytecode.c:
612 * callint.c:
613 * callproc.c:
614 * casefiddle.c:
615 * casetab.c:
616 * category.c:
617 * ccl.c:
618 * character.c:
619 * charset.c:
620 * chartab.c:
621 * cmds.c:
622 * coding.c:
623 * composite.c:
624 * data.c:
625 * dbusbind.c:
626 * dired.c:
627 * dispnew.c:
628 * doc.c:
629 * doprnt.c:
630 * ecrt0.c:
631 * editfns.c:
632 * fileio.c:
633 * filelock.c:
634 * filemode.c:
635 * fns.c:
636 * font.c:
637 * fontset.c:
638 * frame.c:
639 * fringe.c:
640 * ftfont.c:
641 * ftxfont.c:
642 * gtkutil.c:
643 * indent.c:
644 * insdel.c:
645 * intervals.c:
646 * keymap.c:
647 * lread.c:
648 * macros.c:
649 * marker.c:
650 * md5.c:
651 * menu.c:
652 * minibuf.c:
653 * prefix-args.c:
654 * print.c:
655 * ralloc.c:
656 * regex.c:
657 * region-cache.c:
658 * scroll.c:
659 * search.c:
660 * sound.c:
661 * strftime.c:
662 * syntax.c:
663 * sysdep.c:
664 * termcap.c:
665 * terminal.c:
666 * terminfo.c:
667 * textprop.c:
668 * tparam.c:
669 * undo.c:
670 * unexelf.c:
671 * window.c:
672 * xfaces.c:
673 * xfns.c:
674 * xfont.c:
675 * xftfont.c:
676 * xgselect.c:
677 * xmenu.c:
678 * xrdb.c:
679 * xselect.c:
680 * xsettings.c:
681 * xsmfns.c:
682 * xterm.c: Likewise.
683
ae492bec
EZ
6842010-07-03 Eli Zaretskii <eliz@gnu.org>
685
76ea4cc9
EZ
686 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
687 frames other than the initial one. Fix reversal of colors when
688 `reverse' is specified in the frame parameters. Call
689 update_face_from_frame_parameter instead of
690 internal-set-lisp-face-attribute. Initialize screen colors from
691 initial_screen_colors[] when f->default_face_done_p is zero,
692 instead of depending on being called with default-frame-alist as
693 the alist argument.
694
695 * xfaces.c (update_face_from_frame_parameter): Move out of
696 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
697 with HAVE_WINDOW_SYSTEM.
698
1e6255ae
EZ
699 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
700 to menu-bar-mode, if not set in the frame parameters or in
701 default-frame-alist.
702
ae492bec
EZ
703 * w32console.c (sys_tputs): Adjust argument list to prototype in
704 term.c.
705
3a35a84c
JB
7062010-07-03 Juanma Barranquero <lekktu@gmail.com>
707
708 * lisp.h (memory_warnings): Fix prototype.
709
710 * cm.h (evalcost): Fix prototype.
711
712 * cm.c (evalcost): Fix arg type.
713
c532d349
DN
7142010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
715
716 * term.c (term_clear_mouse_face, Fidentity):
717 * syssignal.h (signal_handler_t):
718 * lisp.h (memory_warnings):
719 * coding.h (preferred_coding_system):
720 * cm.h (evalcost):
721 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
722
c0b36d46
EZ
7232010-07-02 Eli Zaretskii <eliz@gnu.org>
724
725 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
726 from prototypes.
727
728 * msdos.h (load_pixmap): Don't define away.
729
383e0970
J
7302010-07-02 Jan Djärv <jan.h.d@swipnet.se>
731
f57e2426
J
732 * lisp.h:
733 * atimer.h: Remove define for P_.
734
735 * alloc.c: Remove __P and P_ from .c and .m files.
736 * atimer.c:
737 * buffer.c:
738 * callint.c:
739 * category.c:
740 * charset.c:
741 * chartab.c:
742 * cm.c:
743 * coding.c:
744 * composite.c:
745 * data.c:
746 * dired.c:
747 * dispnew.c:
748 * doc.c:
749 * editfns.c:
750 * emacs.c:
751 * eval.c:
752 * fileio.c:
753 * filelock.c:
754 * fns.c:
755 * font.c:
756 * fontset.c:
757 * frame.c:
758 * ftfont.c:
759 * ftxfont.c:
760 * gmalloc.c:
761 * gtkutil.c:
762 * image.c:
763 * indent.c:
764 * intervals.c:
765 * keyboard.c:
766 * keymap.c:
767 * lread.c:
768 * marker.c:
769 * menu.c:
770 * minibuf.c:
771 * print.c:
772 * process.c:
773 * scroll.c:
774 * search.c:
775 * sound.c:
776 * strftime.c:
777 * syntax.c:
778 * sysdep.c:
779 * term.c:
780 * terminal.c:
781 * textprop.c:
782 * unexalpha.c:
783 * w32console.c:
784 * w32fns.c:
785 * w32font.c:
786 * w32menu.c:
787 * w32term.c:
788 * w32uniscribe.c:
789 * window.c:
790 * xdisp.c:
791 * xfaces.c:
792 * xfns.c:
793 * xfont.c:
794 * xftfont.c:
795 * xmenu.c:
796 * xselect.c:
797 * xterm.c: Likewise.
798
383e0970 799 Remove P_ and __P macros.
f57e2426
J
800 * atimer.h: Remove P_ and __P macros.
801 * buffer.h:
383e0970
J
802 * category.h:
803 * ccl.h:
804 * character.h:
805 * charset.h:
806 * cm.h:
807 * coding.h:
808 * composite.h:
809 * dispextern.h:
810 * disptab.h:
9e892c8d 811 * dosfns.h:
383e0970
J
812 * font.h:
813 * fontset.h:
814 * frame.h:
815 * gtkutil.h:
816 * indent.h:
817 * intervals.h:
818 * keyboard.h:
819 * keymap.h:
820 * lisp.h:
821 * macros.h:
822 * md5.h:
823 * menu.h:
824 * msdos.h:
825 * nsterm.h:
826 * puresize.h:
827 * region-cache.h:
828 * syntax.h:
829 * syssignal.h:
830 * systime.h:
831 * termhooks.h:
9e892c8d 832 * w32font.h:
383e0970
J
833 * w32term.h:
834 * widget.h:
835 * window.h:
836 * xgselect.h:
837 * xsettings.h:
838 * xterm.h: Likewise.
839
98601119
DN
8402010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
841
d9170db5
DN
842 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
843
98601119
DN
844 Cleanup old code.
845 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
846 * syssignal.h: Remove code for Lynx, not supported anymore.
847 * vm-limit.c: Remove unused code the depends on emacs not being
848 defined and NO_LIM_DATA being defined.
849 * mem-limits.h: Remove dead code.
850
1f984e12
J
8512010-07-01 Jan Djärv <jan.h.d@swipnet.se>
852
c49d071a
J
853 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
854
9d5405ec
J
855 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
856 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
857
7a18115b
J
858 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
859 parameters, they are already absolute.
860
581a8100
J
861 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
862 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
863
864 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
865
866 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
867 FRAME_TOOLBAR_HEIGHT.
868
1f984e12
J
869 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
870 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
871
c1ef4455
CY
8722010-06-30 Chong Yidong <cyd@stupidchicken.com>
873
874 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
875 check default-frame-alist.
876
ce8f5a9a
AS
8772010-06-30 Andreas Schwab <schwab@linux-m68k.org>
878
879 * process.c (create_process): Avoid using invalid file descriptors.
880
881 * callproc.c (child_setup): Avoid closing a file descriptor twice.
882
bf935339
J
8832010-06-30 Jan Djärv <jan.h.d@swipnet.se>
884
885 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
886 Improve documentation. Return font regardless of use_system_font.
887 (syms_of_xsettings): Improve documentation for font-use-system-font.
888
7c33a057
CY
8892010-07-10 Chong Yidong <cyd@stupidchicken.com>
890
2ec1b5ee
CY
891 * xfaces.c (realize_face): Garbage the frame if a face is removed
892 (Bug#6593).
893
8942010-07-05 Andreas Schwab <schwab@linux-m68k.org>
895
896 * keyboard.c: Remove duplicate <setjmp.h>.
897 (read_key_sequence): Remove volatile qualifiers.
898
8992010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
900
901 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
902 (struct glyph_row): New members left_fringe_offset and
903 right_fringe_offset.
904
905 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
906 specially.
907 * w32term.c (w32_draw_fringe_bitmap): Likewise.
908 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
909
910 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
911 Take account of bitmap offset.
912 (draw_window_fringes): Take account of window vscroll.
913 (update_window_fringes): Likewise. Extend top-aligned top indicator
914 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
915 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
916 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
917
9182010-07-04 Juanma Barranquero <lekktu@gmail.com>
919
920 * w32fns.c (Qtooltip): Declare.
921 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
922
9232010-07-03 Jan Djärv <jan.h.d@swipnet.se>
924
925 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
926 grab on just Press (Bug#6499).
927
9282010-07-02 Chong Yidong <cyd@stupidchicken.com>
929
930 * frame.c (Qtooltip): New var.
931 (delete_frame): Use it. Fix faulty if statement. Don't update
932 mode line for tooltip frames. Suggested by Martin Rudalics.
933
934 * xfns.c (x_create_tip_frame):
935 * w32fns.c (x_create_tip_frame): Use it.
936
9372010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
938
939 * xftfont.c (xftfont_open): Check font width one by one also when
940 spacing is dual.
941
942 * ftfont.c (ftfont_open): Ditto.
943
6259c2ec
GM
9442010-06-30 Glenn Morris <rgm@gnu.org>
945
a46007e9
GM
946 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
947
6259c2ec
GM
948 * Makefile.in (CANNOT_DUMP): Update for configure name change.
949
950 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
951 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
952 * s/darwin.h (SYSTEM_MALLOC):
953 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
954
5d1d3d04
J
9552010-06-29 Jan Djärv <jan.h.d@swipnet.se>
956
957 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
958 (ns_get_screen): Don't assign integer to f.
959 (Fx_display_color_cells): Declarations before statements.
960
e547b051
J
9612010-06-28 Jan Djärv <jan.h.d@swipnet.se>
962
5fc8e5bc
J
963 * xfns.c (x_default_font_parameter): Remove got_from_system
964 (Bug#6526).
965
e547b051
J
966 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
967 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
968 defines based on what configure finds.
969
970 * xterm.c (XTflash): Use gtk_widget_get_window.
971 (xg_scroll_callback): Use gtk_adjustment_get_upper and
972 gtk_adjustment_get_page_size.
973 (handle_one_xevent): Use gtk_widget_get_mapped.
974 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
975 messages.
976
977 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
978
979 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
980 HAVE_GTK_FILE_SELECTION_NEW.
981
982 * gtkutil.c (xg_display_open, xg_display_close): Remove
983 HAVE_GTK_MULTIDISPLAY, it is always defined.
984 (xg_display_open): Return type is void.
985 (gtk_widget_set_has_window)
986 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
987 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
988 (gtk_adjustment_set_page_increment)
989 (gtk_adjustment_get_step_increment): #define these if not found
990 by configure.
991 (remove_submenu): New define based on Gtk+ version.
992 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
993 gtk_widget_get_window.
994 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
995 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
996 (create_dialog): Use gtk_dialog_get_action_area and
997 gtk_dialog_get_content_area.
998 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
999 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1000 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1001 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1002 g_object_ref and g_object_unref.
1003 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1004 gtk_widget_get_sensitive.
1005 (xg_update_submenu): Use remove_submenu.
1006 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1007 properties instead to get old x and y position.
1008 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1009 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1010 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1011 (xg_get_tool_bar_widgets): New function.
1012 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1013 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1014 (toolbar_set_orientation): New #define based on if configure
1015 finds gtk_orientable_set_orientation.
1016 (xg_create_tool_bar): Call toolbar_set_orientation.
1017 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1018 instead of gtk_box_pack_start_defaults.
1019
b9229673
CY
10202010-06-28 Chong Yidong <cyd@stupidchicken.com>
1021
1022 * cmds.c (Fdelete_backward_char): Move into Lisp.
1023
bbc803b0
DN
10242010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1025
1026 * s/freebsd.h (BSD4_2): Remove redundant definition.
1027 bsd-common.h defines it already.
1028
6431f2e6
CY
10292010-06-27 Chong Yidong <cyd@stupidchicken.com>
1030
1031 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1032 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1033 tool-bar-mode, which are now set using these X resources at
1034 startup, to determine the defaults (Bug#2249).
1035
1036 * w32fns.c (Fx_create_frame):
1037 * nsfns.m (Fx_create_frame): Likewise.
1038
1039 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1040
8c079ebb
JB
10412010-06-24 Juanma Barranquero <lekktu@gmail.com>
1042
1043 * gtkutil.c (xg_update_scrollbar_pos):
1044 Avoid C99 mid-block variable declaration.
1045
e9b7ab96
JD
10462010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1047
bc869eca
JD
1048 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1049
2b7e356a 1050 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1051
1052 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1053 if height is less than scroll bar min size.
1054 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1055
e9b7ab96
JD
1056 * xfns.c (x_default_font_parameter): Try to open font from system
1057 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1058
32a679fd
JD
10592010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
1060
1061 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1062
70c4cfbb
EZ
10632010-06-20 Eli Zaretskii <eliz@gnu.org>
1064
1065 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1066 most-positive-fixnum, be extra accurate when scrolling window
1067 start, to avoid missing the cursor line.
1068
ad5a12b5
EZ
10692010-06-19 Eli Zaretskii <eliz@gnu.org>
1070
1071 * xdisp.c (try_scrolling): Compute the limit for searching point
1072 in forward scroll from scroll_max, instead of an arbitrary limit
1073 of 10 screen lines. See
1074 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1075 and
1076 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1077 for details.
1078
2a64315a 10792010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1080
1081 * editfns.c (Fbyte_to_string): Pacify compiler.
1082
288cf4e9
SM
10832010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1084
1085 * lread.c (read1): Phase out old-style backquotes a bit more.
1086
6e6e5760
EZ
10872010-06-12 Eli Zaretskii <eliz@gnu.org>
1088
cbc4fd20
EZ
1089 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1090 bidimirror.h.
1091
1092 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1093
317fbf33
EZ
1094 * bidi.c (bidi_initialize): Remove explicit initialization of
1095 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1096 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1097 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1098
1099 * biditype.h: New file.
1100
cbc4fd20
EZ
1101 * bidimirror.h: New file.
1102
6e6e5760
EZ
1103 * window.c (syms_of_window): Doc fix (bug#6409).
1104
4176cba2
RF
11052010-06-12 Romain Francoise <romain@orebokech.com>
1106
1107 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1108 ediff-hook.
1109
cb4bfcb5
GM
11102010-06-10 Glenn Morris <rgm@gnu.org>
1111
64c60c2f
GM
1112 * editfns.c (Fbyte_to_string): Pacify compiler.
1113
cb4bfcb5
GM
1114 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1115
2ec1b5ee
CY
11162010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1117
1118 * alloc.c (Fmake_byte_code): Don't access undefined argument
1119 (Bug#6517).
1120
11212010-06-25 Chong Yidong <cyd@stupidchicken.com>
1122
1123 * xdisp.c (next_element_from_image): Ensure that after-strings are
1124 read the next time we hit handle_stop (Bug#1336).
1125
11262010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1127
1128 * lread.c (read1): Signal error if #s is not followed by paren.
1129
11302010-06-19 Chong Yidong <cyd@stupidchicken.com>
1131
1132 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1133
1134 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1135
11362010-06-15 Glenn Morris <rgm@gnu.org>
1137
1138 * editfns.c (Fbyte_to_string): Pacify compiler.
1139
e454a4a3
SM
11402010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1141
1142 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1143 Check `object's type before accessing its guts.
1144
c1b1acc2
DN
11452010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1146
1147 * s/usg5-4.h: Fix previous change.
1148 Suggested by Lawrence Mitchell <wence@gmx.li>
1149
657d4c0b
AS
11502010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1151
1152 * minibuf.c (Fall_completions): Add more checks.
1153
9b27fd9f
JB
11542010-06-08 Juanma Barranquero <lekktu@gmail.com>
1155
1156 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1157
a99ebb40
DN
11582010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1159
d7c5d87d
DN
1160 * lread.c (X_OK): Remove, unused.
1161
0263a941
DN
1162 * dispnew.c: Remove obsolete comment.
1163
a99ebb40
DN
1164 Remove INCLUDED_FCNTL.
1165 * xterm.c (INCLUDED_FCNTL):
1166 * callproc.c (INCLUDED_FCNTL):
1167 * alloc.c (INCLUDED_FCNTL):
1168 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1169 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1170
13b5221f
MR
11712010-06-07 Martin Rudalics <rudalics@gmx.at>
1172
1173 * window.c (Fselect_window): Move `record_buffer' up to the
1174 beginning of this function, so the buffer gets recorded
1175 even if the selected window does not change.
1176 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1177
5220357f
JB
11782010-06-07 Juanma Barranquero <lekktu@gmail.com>
1179
1180 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1181 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1182
3085237c
DN
11832010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1184
1185 Remove BSTRING related code, all platforms define it.
1186 * s/usg5-4.h (BSTRING): Remove definition.
1187 * s/template.h (BSTRING):
1188 * s/msdos.h (BSTRING):
1189 * s/ms-w32.h (BSTRING):
1190 * s/hpux10-20.h (BSTRING):
1191 * s/gnu-linux.h (BSTRING):
1192 * s/darwin.h (BSTRING):
1193 * s/cygwin.h (BSTRING):
1194 * s/bsd-common.h (BSTRING):
1195 * s/aix4-2.h (BSTRING): Likewise.
1196 * sysdep.c: Remove code depending on BSTRING not being defined.
1197
409f2919
JB
11982010-06-05 Juanma Barranquero <lekktu@gmail.com>
1199
1200 Remove obsolete macro BASE_LEADING_CODE_P.
1201 * character.h (BASE_LEADING_CODE_P): Remove.
1202 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1203 * buffer.c (Fset_buffer_multibyte):
1204 * indent.c (scan_for_column, compute_motion):
1205 * insdel.c (count_combining_before, count_combining_after):
1206 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1207
087fc47a
JB
12082010-06-04 Juanma Barranquero <lekktu@gmail.com>
1209
1210 Turn `directory-sep-char' into a noop.
1211
1212 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1213 (DIRECTORY_SEP): Define unconditionally.
1214
1215 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1216
1217 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1218 call dostounix_filename directly.
1219
1220 * fileio.c (CORRECT_DIR_SEPS): Remove.
1221 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1222 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1223 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1224 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1225
1226 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1227 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1228
0eb7675e
AS
12292010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1230
1231 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 1232 address. (Bug#6346)
0eb7675e 1233
78edd3b7
JB
12342010-06-03 Juanma Barranquero <lekktu@gmail.com>
1235
1236 * ccl.c (Fccl_program_p): Fix typo in docstring.
1237
eb697db5
DN
12382010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1239
1240 Move UNEXEC definition to autoconf.
1241 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1242 * s/sol2-10.h (UNEXEC):
1243 * s/irix6-5.h (UNEXEC):
1244 * s/hpux10-20.h (UNEXEC):
1245 * s/gnu-linux.h (UNEXEC):
1246 * s/darwin.h (UNEXEC):
1247 * s/cygwin.h (UNEXEC):
1248 * s/bsd-common.h (UNEXEC):
1249 * s/aix4-2.h (UNEXEC):
1250 * m/alpha.h (UNEXEC): Likewise.
1251 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1252
aa3830c4
JB
12532010-06-03 Juanma Barranquero <lekktu@gmail.com>
1254
1255 Remove obsolete pre-unicode2 macros.
1256 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1257 * composite.c (composition_reseat_it):
1258 * data.c (Faset):
1259 * fns.c (Ffillarray):
1260 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1261 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1262
d234d13e
JL
12632010-06-03 Juri Linkov <juri@jurta.org>
1264
1265 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1266 (Fswitch_to_buffer): Remove unused variable `err'.
1267
0d4bcf4d
GM
12682010-06-03 Glenn Morris <rgm@gnu.org>
1269
e23dc1e2
GM
1270 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1271
05b09564
GM
1272 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1273 now that AH_BOTTOM does it.
1274
824e2978
GM
1275 * m/hp800.h (HAVE_ALLOCA):
1276 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1277
0d4bcf4d
GM
1278 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1279 Remove NOT_C_CODE tests, it is always true now.
1280
c55d2abf
DN
12812010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1282
08a494a3
DN
1283 Fix config.h includes.
1284 * xsettings.c:
1285 * xgselect.c:
1286 * nsterm.m:
1287 * nsselect.m:
1288 * nsimage.m:
1289 * nsfont.m:
1290 * nsfns.m:
1291 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1292 other files do.
1293
75934b1d
DN
1294 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1295
9f32a766
DN
1296 * s/sol2-6.h: Remove obsolete comments.
1297
c55d2abf
DN
1298 Remove unnecessary alloca.h includes.
1299 * keymap.c: Do not include alloca.h, config.h does that.
1300 * sysdep.c: Likewise. Do not define fwrite, not used.
1301
06ac62b4
SM
13022010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1303
1304 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1305 the HAVE_TERMIO where it belongs (bug#6149).
1306
1ab8293c
SM
13072010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1308
1309 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1310 of bug#6305).
1311
6dcfd253
EZ
13122010-05-30 Eli Zaretskii <eliz@gnu.org>
1313
1314 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1315 state is always cached (bug#6306).
1316
6d26bbb2
EZ
13172010-05-29 Eli Zaretskii <eliz@gnu.org>
1318
06fa4a23
EZ
1319 Fix cursor motion in bidi-reordered continued lines.
1320 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1321 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1322 over continuation lines in bidi-reordered buffers. Return
1323 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1324 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1325
f5783df3
MA
13262010-05-28 Michael Albinus <michael.albinus@gmx.de>
1327
1328 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1329
7d56b2dd
KH
13302010-05-28 Kenichi Handa <handa@m17n.org>
1331
1332 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1333 Don't sheck SPEC if it is nil.
1334 (font_list_entities): Call font_delete_unmatched if
b925d231 1335 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1336
e58d4ff7
GM
13372010-05-28 Glenn Morris <rgm@gnu.org>
1338
1339 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1340
f1a5d776
CY
13412010-05-27 Chong Yidong <cyd@stupidchicken.com>
1342
1343 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1344 whether to trash.
1345 (internal_delete_file, Frename_file): Callers changed.
1346 (delete_by_moving_to_trash): Doc fix.
1347 (Fdelete_directory_internal): Don't move to trash.
1348
1349 * callproc.c (delete_temp_file):
1350 * buffer.c (Fkill_buffer): Callers changed.
1351
1352 * lisp.h: Update prototype.
1353
f44a59e6
CY
13542010-05-27 Chong Yidong <cyd@stupidchicken.com>
1355
1356 * xdisp.c (redisplay_window): After redisplay, check if point is
1357 still valid before setting it (Bug#6177).
1358
81ac4f35
GM
13592010-05-27 Glenn Morris <rgm@gnu.org>
1360
1361 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1362 Convert comments to Makefile format.
1363
1364 * Makefile.in (bootstrap-clean): No more Makefile.c.
1365
ccd89fb3
GM
13662010-05-26 Glenn Morris <rgm@gnu.org>
1367
90278cb6
GM
1368 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1369 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1370
ccd89fb3
GM
1371 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1372 Remove.
1373 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1374
b7050583
KH
13752010-05-26 Kenichi Handa <handa@m17n.org>
1376
1377 * composite.c (composition_compute_stop_pos): Fix condition for
1378 backward scanning.
1379
e5458003
GM
13802010-05-25 Glenn Morris <rgm@gnu.org>
1381
c345fe90
GM
1382 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1383 Move before TEMACS_LDFLAGS.
1384 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1385 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1386
2e0689ab
GM
1387 * Makefile.in (NOT_C_CODE): No longer define.
1388 (config.h): No longer include.
1389
8009a5e8
GM
1390 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1391 variables it may reference.
1392
e5458003
GM
1393 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1394 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1395
10f72a37
KH
13962010-05-25 Kenichi Handa <handa@m17n.org>
1397
1398 * dispextern.h (struct composition_it): New members rule_idx and
1399 charpos.
1400
1401 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1402 that the character positions of IT point the last character of the
1403 current grapheme cluster.
1404 (next_element_from_composition): Don't change character positions
1405 of IT.
1406 (append_composite_glyph): Set glyph->charpos to
1407 it->cmp_it.charpos.
1408
1409 * composite.c (autocmp_chars): Change the first argument to RULE,
1410 and try composition with RULE only.
1411 (composition_compute_stop_pos): Record the index number of the
1412 composition rule in CMP_IT->rule_idx.
1413 (composition_reseat_it): Call autocmp_chars repeatedly until the
1414 correct rule of the composition is found.
1415 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1416 is at the last character of the current grapheme cluster when
1417 CMP_IT->reversed_p is nonzero.
1418
171eda53 14192010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1420
171eda53
SM
1421 * editfns.c (Fbyte_to_string): New function.
1422
66a9f7f4
SM
14232010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1424
1425 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1426 Suggested by Masatake YAMATO <yamato@redhat.com>.
1427
d8c315d1
EZ
14282010-05-23 Eli Zaretskii <eliz@gnu.org>
1429
171eda53 1430 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1431
f5b416d2 14322010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1433
1434 * s/netbsd.h: If terminfo is found, use it in preference to
1435 termcap. (Bug#6190) [Backport from trunk]
1436
0416466c
EZ
14372010-05-19 Eli Zaretskii <eliz@gnu.org>
1438
11117830 1439 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1440
1441 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1442 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1443 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1444 and maxpos members instead of start.pos and end.pos, respectively.
1445
1446 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1447 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1448 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1449 (try_window_reusing_current_matrix, try_window_id):
1450 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1451 (init_from_display_pos, init_iterator): Use EMACS_INT for
1452 character and byte positions.
66a9f7f4 1453 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1454 arguments for minimum and maximum buffer positions seen by
1455 display_line for this row. Don't use iterator to find the
1456 position following the maximum one; instead, increment the
11117830
EZ
1457 position found by display_line directly. Fix logic; eol_pos
1458 should be tested before the rest. Handle the case of characters
1459 delivered from display vector (bug#6036). Fix tests related to
1460 it->method. Handle the truncated_on_right_p rows.
1461 (RECORD_MAX_MIN_POS): New macro.
1462 (display_line): Use it to record the minimum and maximum buffer
1463 positions for glyphs in the row being assembled. Record the
1464 position of the newline that terminates the line. If word wrap is
1465 in effect, restore minimum and maximum positions seen up to the
1466 wrap point, when iterator returns to it.
1467 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1468 row and cursor not already at point. Restore original pre-bidi
1469 code for unidirectional buffers.
d36fe237
EZ
1470
1471 * dispnew.c (increment_row_positions, check_matrix_invariants):
1472 Increment and check row->start.pos and row->end.pos, in addition
1473 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1474
11117830
EZ
1475 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1476 Display truncated_on_left_p and truncated_on_right_p flags.
1477 Formatting fixes.
1478 (pmtxrows): Display the ordinal number of each row. Don't display
1479 rows beyond the last one.
1480
1481 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1482 it is not copied by bidi_copy_it.
1483
6e83d800
EZ
14842010-05-22 Eli Zaretskii <eliz@gnu.org>
1485
1486 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1487 (Bug#6237)
1488
110683ad
CY
14892010-05-22 Chong Yidong <cyd@stupidchicken.com>
1490
1491 * image.c (Fimage_flush): Rename from image-refresh.
1492
98fe5161
CY
14932010-05-21 Chong Yidong <cyd@stupidchicken.com>
1494
1495 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1496 just one window.
1497
1498 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1499 (clear_image_cache): If the number of cached images is unusually
1500 large, decrease the cache eviction delay (Bug#6230).
1501
e8752c66
GM
15022010-05-21 Glenn Morris <rgm@gnu.org>
1503
66dbf213
GM
1504 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1505 Move these rules to ns.mk.
1506 * ns.mk: New file.
1507
04384b2d
GM
1508 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1509
e8752c66
GM
1510 * Makefile.in (CANNOT_DUMP): New, set by configure.
1511 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1512
2e2bbddb
JL
15132010-05-20 Juri Linkov <juri@jurta.org>
1514
1515 * fileio.c (Fdelete_file): Change interative spec to use
1516 `read-file-name' like in `find-file-read-args' where the default
1517 value is `default-directory' instead of `buffer-file-name'.
1518 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1519
31c4aaf6
KR
15202010-05-20 Kevin Ryde <user42@zip.com.au>
1521
1522 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1523 (Voverriding_terminal_local_map, Vsystem_key_alist)
1524 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1525
9d5cf9b6
GM
15262010-05-20 Glenn Morris <rgm@gnu.org>
1527
1528 * Makefile.in (DEPDIR): New constant.
1529 (DEPFLAGS): Set with configure, not cpp.
1530 (MKDEPDIR): New, set by configure.
1531 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1532 (clean): Use $DEPDIR.
1533 (deps_frag): Include from configure.
1534 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1535 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1536
ead6f8f5
EZ
1537 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1538 reallocation of the cache. (Bug#6210)
1539
7f34aec3
GM
15402010-05-19 Glenn Morris <rgm@gnu.org>
1541
d494e8f2
GM
1542 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1543
c1d0dcfd
GM
1544 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1545 (GNULIB_VAR): Remove.
1546 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1547
1548 * m/ibms390x.h (LINKER):
1549 * m/macppc.h (LINKER) [GNU_LINUX]:
1550 * s/aix4-2.h (ORDINARY_LINK):
1551 * s/cygwin.h (LINKER):
1552 * s/darwin.h (ORDINARY_LINK):
1553 * s/gnu.h (ORDINARY_LINK):
1554 * s/netbsd.h (LINKER):
1555 * s/usg5-4.h (ORDINARY_LINK):
1556 Move to configure.
1557
7f34aec3
GM
1558 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1559
754790b6
CY
15602010-05-18 Chong Yidong <cyd@stupidchicken.com>
1561
1562 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1563 prevent stack overflow if number of arguments is too large
1564 (Bug#6214).
1565
161e44d1
JB
15662010-05-18 Juanma Barranquero <lekktu@gmail.com>
1567
1568 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1569
be4ff9da
GM
15702010-05-18 Glenn Morris <rgm@gnu.org>
1571
9539dc5d
GM
1572 * s/gnu-linux.h: Combine two conditionals.
1573
1574 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1575 $(POST_ALLOC_OBJ).
1576
40dc6bf4
GM
1577 * Makefile.in (RALLOC_OBJ): New, set by configure.
1578 (rallocobj): Replace with the previous variable.
1579 (otherobj): Use $RALLOC_OBJ.
1580
1581 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1582 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1583
be4ff9da
GM
1584 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1585 (gmallocobj, vmlimitobj): Replace with previous two variables.
1586 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1587
16455a85
GM
15882010-05-17 Glenn Morris <rgm@gnu.org>
1589
1590 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1591 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1592
5fdb7468
GM
15932010-05-16 Glenn Morris <rgm@gnu.org>
1594
7ca1f3f9
GM
1595 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1596
7541dad5
GM
1597 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1598
da53fab9
GM
1599 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1600 trailing "/".
1601
b02a6645
GM
1602 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1603 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1604
8877ca0f
GM
1605 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1606 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1607 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1608 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1609 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1610
5fdb7468
GM
1611 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1612 Remove ${STARTFLAGS}, nothing ever sets it.
1613
95adb4b1
DN
16142010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1615
1616 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1617
676b6304
GM
16182010-05-16 Glenn Morris <rgm@gnu.org>
1619
9beab9ce
GM
1620 * Makefile.in (LIBX_BASE): Always define.
1621
8a95f0e7
GM
1622 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1623
676b6304
GM
1624 * Makefile.in (LIBXT): Always define.
1625
6e546d18
GM
16262010-05-15 Glenn Morris <rgm@gnu.org>
1627
4235ca47 1628 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1629
6e546d18
GM
1630 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1631 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1632
8c5ff6dd
KR
16332010-05-15 Ken Raeburn <raeburn@raeburn.org>
1634
560bb7ae 1635 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1636 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1637
8b4eb796
KR
1638 * emacs.c (main): Initialize initial-environment and
1639 process-environment before generating from env, not after.
1640
8c5ff6dd
KR
1641 Handle --version reasonably in CANNOT_DUMP configuration.
1642 * emacs.c (emacs_version, emacs_copyright): New string variables.
1643 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1644 (syms_of_emacs): Defvar them, and initialize them from the C
1645 string variables.
1646 (main): If initialization hasn't been done, print initial version
1647 info from the C strings, instead of starting an interactive session.
1648
dbd3f723
EZ
16492010-05-15 Eli Zaretskii <eliz@gnu.org>
1650
d20e1419
EZ
1651 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1652 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1653 (bidi_paragraph_init): Remove redundant assertion that we are at
1654 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1655
1656 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1657 (syms_of_xdisp): Defsubr it.
1658
d36fe237
EZ
1659 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1660
dbd3f723
EZ
1661 * Makefile.in: Fix MSDOS-related comments.
1662
02be533b
GM
16632010-05-15 Glenn Morris <rgm@gnu.org>
1664
1a82cca9
GM
1665 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1666 (really-lwlib, really-oldXMenu): Always define.
1667 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1668
3df7b338
GM
1669 * Makefile.in: Simplify cpp conditional.
1670
2b5f541b
GM
1671 * Makefile.in (${ns_appdir}): Simplify using umask.
1672
02be533b
GM
1673 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1674
4e2db1fe
SM
16752010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1676
1677 * eval.c (specbind): Remove left-over duplicate test.
1678 Disallow let-binding frame-local vars. Add comment.
1679
4b292a22
EZ
16802010-05-14 Eli Zaretskii <eliz@gnu.org>
1681
2fe72643 1682 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1683 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1684 (bidi_init_it): Call it.
1685 (bidi_cache_iterator_state): Enlarge the cache if needed.
1686
4e2db1fe 1687 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1688 bidi_get_next_char_visually. All callers changed.
1689
82ebc97b
KH
16902010-05-14 Kenichi Handa <handa@m17n.org>
1691
1692 * dispextern.h (struct composition_it): New member reversed_p.
1693
1694 * composite.c (composition_compute_stop_pos): Search backward if
1695 ENDPOS < CHARPOS.
1696 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1697 Set CMP_IT->reversed_p.
b4b6e17e 1698 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1699
4e2db1fe
SM
1700 * xdisp.c (set_iterator_to_next):
1701 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1702 scanning backward. Call composition_compute_stop_pos if scan
1703 direction is changed.
1704 (next_element_from_buffer): Call composition_compute_stop_pos with
1705 negative ENDPOS if we are scanning backward.
1706 (next_element_from_composition): Pay attention to
1707 IT->cmp_it.reversed_p.
1708
0e5d7800
KH
17092010-05-14 Kenichi Handa <handa@m17n.org>
1710
560bb7ae 1711 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1712
cb027b32
GM
17132010-05-14 Glenn Morris <rgm@gnu.org>
1714
177b0288
GM
1715 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1716
fbc00890
GM
1717 * Makefile.in (mktime, X11, register): Move undefs to configure.
1718
f14d1dfd
GM
1719 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1720 (MSDOS_X_OBJ): New variable.
1721 (MSDOS_SUPPORT_REAL): New constant.
1722 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1723 (obj): Use MSDOS_X_OBJ.
1724 (lisp): Use MSDOS_SUPPORT as a variable.
1725
11842bd8
GM
1726 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1727 (GPM_MOUSE_SUPPORT): Now it's a constant.
1728 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1729 not cpp.
1730
489d31a4 1731 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1732 (ns_appresdir): Remove, unused.
e20f1f07 1733
489d31a4
GM
1734 * Makefile.in (SHELL): Move outside cpp section.
1735
cb027b32
GM
1736 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1737
5a903aa9
GM
17382010-05-13 Glenn Morris <rgm@gnu.org>
1739
3369c79f
GM
1740 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1741 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1742
d5e982a6
GM
1743 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1744 HAVE_WINDOW_SYSTEM must be too.
1745
6192e163
GM
1746 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1747 (lisp): Remove WINNT_SUPPORT.
1748
472c5d6b
GM
1749 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1750 Let configure set these variables (to empty) in this case as well.
1751
0116466b
GM
1752 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1753 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1754
5a903aa9
GM
1755 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1756 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1757 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1758 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1759 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1760 the values output by configure.
5a903aa9
GM
1761 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1762
1a0d7c06
GM
17632010-05-12 Glenn Morris <rgm@gnu.org>
1764
b5457f14
GM
1765 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1766 (LINKER_WAS_SPECIFIED): Remove.
1767
1a0d7c06
GM
1768 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1769 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1770 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1771 * s/cygwin.h (LIB_GCC):
1772 * s/freebsd.h (LIB_GCC):
1773 * s/gnu-linux.h (LIB_GCC):
1774 * s/msdos.h (LIB_GCC):
1775 * s/netbsd.h (LIB_GCC):
1776 Move to configure.
1777
3ffd4615 17782010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1779
1780 * ftfont.c: Fix incorrect parentheses of #if condition for
1781 definining M17N_FLT_USE_NEW_FEATURE.
1782
acddf8ae
GM
17832010-05-11 Glenn Morris <rgm@gnu.org>
1784
1785 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1786 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1787
ae5e04fa
EZ
17882010-05-10 Eli Zaretskii <eliz@gnu.org>
1789
1790 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1791 unibyte buffers. See
1792 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1793
7490175b
GM
17942010-05-10 Glenn Morris <rgm@gnu.org>
1795
97efb629
GM
1796 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1797 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1798 (LIBES): Use LIBS_SYSTEM as a variable.
1799 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1800 * s/aix4-2.h (LIBS_SYSTEM):
1801 * s/freebsd.h (LIBS_SYSTEM):
1802 * s/hpux10-20.h (LIBS_SYSTEM):
1803 * s/sol2-6.h (LIBS_SYSTEM):
1804 * s/unixware.h (LIBS_SYSTEM):
1805 Move to configure.
1806
7490175b
GM
1807 * s/aix4-2.h (MAIL_USE_LOCKF):
1808 * s/bsd-common.h (MAIL_USE_FLOCK):
1809 * s/darwin.h (MAIL_USE_FLOCK):
1810 * s/gnu-linux.h (MAIL_USE_FLOCK):
1811 * s/irix6-5.h (MAIL_USE_FLOCK):
1812 * s/template.h (MAIL_USE_FLOCK):
1813 Move to configure.
1814
0235128c 18152010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1816
1817 * Version 23.2 released.
1818
0235128c 18192010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1820
1821 * composite.c (autocmp_chars): Save point as marker before calling
1822 auto-composition-function (Bug#5984).
1823
1824 * lisp.h (restore_point_unwind): Add prototype.
1825
1826 * fileio.c (restore_point_unwind): Remove static attribute.
1827
0235128c 18282010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1829
1830 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1831 new feature of libotf and m17n-flt.
0235128c
SM
1832 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1833 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1834 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1835 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1836 that OUT is NULL. Use OTF_drive_gsub_with_log and
1837 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1838 OTF_drive_gpos.
1839 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1840 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1841 Setup mflt_enable_new_feature and mflt_try_otf.
1842
4721152c
J
18432010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1844
1845 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1846
1847 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1848 box and toolbar (Bug #6139).
1849 (xg_create_tool_bar): Remove comment (Bug #6139).
1850 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1851 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1852
ee0a16cf
JB
18532010-05-08 Juanma Barranquero <lekktu@gmail.com>
1854
1855 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1856 Update dependencies.
1857
96d79611
EZ
18582010-05-08 Eli Zaretskii <eliz@gnu.org>
1859
1860 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1861 R2L lines.
1862
40c17879
GM
18632010-05-08 Glenn Morris <rgm@gnu.org>
1864
7b42b29f
GM
1865 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1866
40c17879
GM
1867 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1868 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1869 (termcapobj): Replace with TERMCAP_OBJ.
1870 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1871 (LIBES): Use LIBS_TERMCAP as a variable.
1872
1873 * s/freebsd.h (osreldate.h): No longer include, since this file
1874 does not use __FreeBSD_version any more.
1875
1876 * s/aix4-2.h (TERMINFO):
1877 * s/cygwin.h (TERMINFO):
1878 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1879 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1880 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1881 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1882 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1883 * s/irix6-5.h (TERMINFO):
1884 * s/netbsd.h (LIBS_TERMCAP):
1885 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1886 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1887 * s/usg5-4.h (TERMINFO):
1888 Move to configure.
1889
94b612ad
SM
18902010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1891
1892 * eval.c (unbind_to): Don't unbind a local binding into the global
1893 binding when the local binding disappeared. Inversely, don't unbind
1894 a global binding into a newly created local binding.
1895 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1896 can specify the frame to use, when applicable. Adjust callers.
1897
15e12598 18982010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1899 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1900
1901 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1902
f724825e
EZ
19032010-05-07 Eli Zaretskii <eliz@gnu.org>
1904
5cba3209
EZ
1905 * w32fns.c: Include w32.h.
1906 (Fw32_shell_execute): Decode the error message before passing it
1907 to `error'. (Bug#6126)
1908
d16bdfc3
EZ
1909 * msdos.c (dos_set_window_size):
1910 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1911 instead of `XSYMBOL (foo)->value'.
1912
59d93e87
EZ
19132010-05-07 Eli Zaretskii <eliz@gnu.org>
1914
9fdec8bc
EZ
1915 Fix the MS-DOS build, broken by autoconfiscation.
1916
1917 * Makefile.in: Don't use Make-style comments past the "start of
1918 cpp stuff" line.
1919 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1920
1921 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1922 edited directly by msdos/sed1v2.inp).
f724825e 1923
2f86b22b
GM
19242010-05-07 Glenn Morris <rgm@gnu.org>
1925
1926 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1927 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1928 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1929 move out of cpp section.
1930 * s/freebsd.h (LD_SWITCH_SYSTEM):
1931 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1932 * s/netbsd.h (LD_SWITCH_SYSTEM):
1933 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1934
49ebbd65
DN
19352010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1936
1937 Define LIB_STANDARD and START_FILES using autoconf.
1938 * s/usg5-4.h (LIB_STANDARD):
1939 * s/netbsd.h (START_FILES):
1940 * s/irix6-5.h (LIB_STANDARD):
1941 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1942 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1943 * s/freebsd.h (START_FILES):
1944 * s/darwin.h (START_FILES):
1945 * s/cygwin.h (START_FILES):
1946 * s/aix4-2.h (LIB_STANDARD):
1947 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1948 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1949 autoconf, not cpp.
1950
d43c06d6
DN
19512010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1952
28823648
DN
1953 Remove NEED_BSDTTY and NEED_UNISTD_H.
1954 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1955 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1956 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1957 <sys/ptyio.h> and <unistd.h>.
1958
aca00430
DN
1959 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1960
d43c06d6
DN
1961 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1962 * s/gnu.h (START_FILES): Remove empty definition.
1963
3e56b11d
JD
19642010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1965
1966 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1967
e3cf0cde
GM
19682010-05-06 Glenn Morris <rgm@gnu.org>
1969
1970 * Makefile.in (CPP, LN_S): Remove unused variables.
1971
774b9a60
SM
19722010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1973
1974 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1975
4ab92842
LM
19762010-05-05 Lawrence Mitchell <wence@gmx.li>
1977
1978 * m/sparc.h: Fix typo in earlier change.
1979
178f2507
SM
19802010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1981
1982 Misc tweaks.
1983 * eval.c (Fdefvaralias): Remove unintended nested if.
1984 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1985
80f00217 19862010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1987
1988 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1989
ef03a4e6
DN
19902010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1991
58eb6cf0
DN
1992 Remove BSD_PGRPS.
1993 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1994 * s/gnu-linux.h (BSD_PGRPS): Remove.
1995 * term.c (dissociate_if_controlling_tty):
1996 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1997 (init_sys_modes, reset_sys_modes):
1998 * emacs.c (main):
1999 * callproc.c (Fcall_process, child_setup): Remove code depending
2000 on BSD_PGRPS.
2001
ef03a4e6
DN
2002 Remove POSIX_SIGNALS.
2003 * s/usg5-4.h (POSIX_SIGNALS):
2004 * s/netbsd.h (POSIX_SIGNALS):
2005 * s/msdos.h (POSIX_SIGNALS):
2006 * s/ms-w32.h (POSIX_SIGNALS):
2007 * s/hpux11.h (POSIX_SIGNALS):
2008 * s/gnu.h (POSIX_SIGNALS):
2009 * s/gnu-linux.h (POSIX_SIGNALS):
2010 * s/freebsd.h (POSIX_SIGNALS):
2011 * s/darwin.h (POSIX_SIGNALS):
2012 * s/cygwin.h (POSIX_SIGNALS):
2013 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2014 * s/unixware.h:
2015 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2016 * process.c (create_process):
2017 * syssignal.h:
2018 * sysdep.c (wait_for_termination, init_signals):
2019 * process.c (create_process):
2020 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2021 remove all code that assumes the contrary.
2022
49628785
GM
20232010-05-04 Glenn Morris <rgm@gnu.org>
2024
27a2cdfc
GM
2025 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2026 variable.
2027 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2028 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2029 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2030 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2031 LD_SWITCH_SYSTEM_tmp.
2032 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2033 New variables, set by configure.
2034
eb21eab5
GM
2035 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2036 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2037 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2038 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2039 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2040
49628785
GM
2041 * s/aix4-2.h (C_SWITCH_SYSTEM):
2042 * m/alpha.h (C_SWITCH_MACHINE):
2043 Move to configure.in.
2044 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2045 New variables, set by configure.
2046 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2047 $c_switch_machine and $c_switch_system.
2048
7dff330b
DN
20492010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2050
2051 * s/hpux10-20.h (LIB_STANDARD): New definition.
2052 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2053 on it, not used anymore.
2054
53967e09
CY
20552010-05-03 Chong Yidong <cyd@stupidchicken.com>
2056
2057 * eval.c (internal_condition_case_n): Rename from
2058 internal_condition_case_2.
2059 (internal_condition_case_2): New function.
2060
2061 * xdisp.c (safe_call): Use internal_condition_case_n.
2062
2063 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2064 (internal_delete_file, Frename_file): Callers changed.
2065
2066 * buffer.c (Fkill_buffer):
2067 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2068
2069 * lisp.h: Update prototypes.
2070
3dee6fdb
GM
20712010-05-03 Glenn Morris <rgm@gnu.org>
2072
2073 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2074 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2075 (LIBXT): Set with configure, not cpp.
2076 (LIBX): Remove.
2077 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2078
a101e0fb
DN
20792010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2080
2081 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2082 The FreeBSD is not needed, the default works, Solaris version is
2083 not needed, and the remaining case is not supported by configure.
2084
f63d0028
JD
20852010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2086
2087 * xsmfns.c (CHDIR_OPT): New define.
2088 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2089 restarting emacs.
2090
2091 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2092 shut_down_emacs.
2093
2094 * emacs.c (USAGE1): Mention --chdir.
2095 (main): Handle --chdir.
2096 (standard_args): Add --chdir.
2097 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2098 #5552).
2099
e4814a9f
DN
21002010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2101
cd03c74a
DN
2102 Remove LD_SWITCH_MACHINE.
2103 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2104 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2105
c3a398a1
DN
2106 Clean up IRIX code.
2107 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2108 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2109
87e7285c
DN
2110 Clean up AIX code.
2111 * m/ibmrs6000.inp: Remove file, unused.
2112 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2113 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2114 definition ...
2115 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2116
80f00217
JB
2117 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2118 unused.
e4814a9f 2119
59ca28de
EZ
21202010-05-01 Eli Zaretskii <eliz@gnu.org>
2121
197daef4
EZ
2122 Emulate POSIX_SIGNALS on MS-Windows.
2123
2124 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2125 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2126
2127 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2128 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2129 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2130
80f00217
JB
2131 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2132 New stubs.
197daef4 2133
af7c7572
EZ
2134 Miscellaneous fixes of bidi display.
2135
59ca28de
EZ
2136 * xdisp.c (find_row_end): New function, refactored from display_line.
2137 (display_line): Use it.
017ea819
EZ
2138 (extend_face_to_end_of_line): In almost-filled rows, extend only
2139 if the row is R2L and not continued.
166e930d 2140 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2141 Preserve overlay and string info in row->end.
166e930d
EZ
2142 (insert_left_trunc_glyphs): Support addition of left truncation
2143 glyphs to R2L rows.
b47e0dcf 2144 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2145 glyph between adjacent windows. Fix a crash when a display string
2146 is continued to the next line. Don't return zero if cursor was
2147 found by `cursor' property of a display string.
b47e0dcf
EZ
2148 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2149 test for that explicitly.
59ca28de 2150
7acac9f4
GM
21512010-05-01 Glenn Morris <rgm@gnu.org>
2152
2153 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2154 for clarity.
2155 (OTHER_OBJ): Remove.
2156 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2157 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2158
45841e65
KK
21592010-05-01 Karel Klíč <kklic@redhat.com>
2160
2161 * fileio.c (Ffile_selinux_context): Context functions may return null.
2162
afc61943
DN
21632010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2164
80f00217 2165 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2166
5a1bb006
GM
21672010-04-30 Glenn Morris <rgm@gnu.org>
2168
2169 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2170 (OTHER_OBJ): Define as a separate variable, for clarity.
2171
210af043
J
21722010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2173
2174 * xsettings.c: include limits.h and update file comment.
2175
0a7df391
GM
21762010-04-30 Glenn Morris <rgm@gnu.org>
2177
d5096f16
GM
2178 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2179 Set with configure, not cpp.
2180 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2181
7eb1ac33
GM
2182 * Makefile.in (mallocobj): Remove.
2183 (otherobj): Simplify using @OTHER_OBJ@.
2184
517d086b
GM
2185 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2186 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2187 Don't bother making nsgui.h dependency platform-specific.
2188
0a7df391
GM
2189 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2190
d6d23852
SM
21912010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2192
d2630aef
SM
2193 * process.c (read_process_output, exec_sentinel): Don't burp if the
2194 sentinel/filter kills the current buffer (bug#6060).
2195
f9dddf52 2196 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2197 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2198 Remove unused var `args'.
2199 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2200 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2201 * doc.c (store_function_docstring): Use XSETCAR.
2202
f1e3642a
GM
22032010-04-28 Glenn Morris <rgm@gnu.org>
2204
faf535f8
GM
2205 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2206 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2207
c40f9449
GM
2208 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2209
658f86ca
GM
2210 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2211 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2212
bc0b5f61
GM
2213 * Makefile.in (FONT_OBJ): New, set by configure.
2214 (FONT_DRIVERS): Use $FONT_OBJ.
2215
294c50a0
GM
2216 * Makefile.in (LIBXMU): Set with configure, not cpp.
2217 * s/aix4-2.h (LIBXMU):
2218 * s/hpux10-20.h (LIBXMU):
2219 Remove definition, now set in configure.
2220
e6ec4e99
GM
2221 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2222
f1e3642a
GM
2223 * m/amdx86-64.h [i386]: Move this test to configure.in.
2224
c6ea2936
GM
22252010-04-27 Glenn Morris <rgm@gnu.org>
2226
8fdac2c3
GM
2227 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2228 * s/unixware.h (NEED_LIBW): Remove definition.
2229
986fb647
GM
2230 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2231 (TOOLKIT_LIBW): New, set by configure.
2232 (@X_TOOLKIT_TYPE@): No longer define it.
2233
c6ea2936
GM
2234 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2235 (MOTIF_LIBW): Set with configure, not cpp.
2236 * s/aix4-2.h (LIB_MOTIF):
2237 * s/gnu-linux.h (LIB_MOTIF):
2238 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2239
aaa36002
DN
22402010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2241
2242 Reduce CPP usage.
2243 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2244 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2245 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2246 definitions and undefs. Inline definitions in the only user.
2247 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2248
b678dd8b
GM
22492010-04-27 Glenn Morris <rgm@gnu.org>
2250
76cda504
GM
2251 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2252 since the defaults (set by the system file) are fine in most cases.
2253 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2254 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2255 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2256 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2257 Remove definitions, since they are set correctly in s/gnu-linux.h.
2258 * s/freebsd.h (START_FILES, LIB_STANDARD):
2259 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2260 * s/hpux10-20.h (START_FILES):
2261 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2262 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2263
b678dd8b
GM
2264 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2265 (MOTIF_LIBW): Use $LIBXP.
2266 (otherobj): Use $WIDGET_OBJ.
2267
9452ded1
DN
22682010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2269
7e10844c
DN
2270 * Makefile.in (LIBS_MACHINE): Remove, unused.
2271
9452ded1
DN
2272 Use autoconf instead of cpp for LIB_MATH.
2273 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2274 * s/cygwin.h (LIB_MATH): Likewise.
2275 * Makefile.in (LIB_MATH): Do not define with cpp.
2276 (LIBES): Use autoconf for LIB_MATH.
2277
fcebfc6a
KH
22782010-04-26 Kenichi Handa <handa@m17n.org>
2279
2280 * composite.c (Ffind_composition_internal): Fix the return value
2281 for an automatic composition.
2282
39e2ad1b
DN
22832010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2284
2285 Remove all NO_ARG_ARRAY uses.
2286 * fns.c (concat2, concat3, nconc2):
2287 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2288 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2289 * m/xtensa.h (NO_ARG_ARRAY):
2290 * m/template.h (NO_ARG_ARRAY):
2291 * m/sparc.h (NO_ARG_ARRAY):
2292 * m/sh3.h (NO_ARG_ARRAY):
2293 * m/mips.h (NO_ARG_ARRAY):
2294 * m/macppc.h (NO_ARG_ARRAY):
2295 * m/iris4d.h (NO_ARG_ARRAY):
2296 * m/intel386.h (NO_ARG_ARRAY):
2297 * m/ibms390x.h (NO_ARG_ARRAY):
2298 * m/ibms390.h (NO_ARG_ARRAY):
2299 * m/ibmrs6000.h (NO_ARG_ARRAY):
2300 * m/ia64.h (NO_ARG_ARRAY):
2301 * m/hp800.h (NO_ARG_ARRAY):
2302 * m/arm.h (NO_ARG_ARRAY):
2303 * m/amdx86-64.h (NO_ARG_ARRAY):
2304 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2305
adf4f59c
EZ
23062010-04-25 Eli Zaretskii <eliz@gnu.org>
2307
6bdf5d65
EZ
2308 * xdisp.c (display_line): Don't assume 2nd call to
2309 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2310 (iterate_out_of_display_property): New function, body from pop_it.
2311 (pop_it): Use it.
adf4f59c 2312
dfbbda83
GM
23132010-04-24 Glenn Morris <rgm@gnu.org>
2314
2315 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2316 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2317 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2318 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2319
2d4018aa
EZ
23202010-04-24 Eli Zaretskii <eliz@gnu.org>
2321
a49884a6
EZ
2322 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2323 use `get_next_display_element' and `set_iterator_to_next' to
2324 advance to the next character, when looking for the character that
2325 begins the next row.
2326
76db6fcc 2327 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2328 definition of "struct Lisp_Symbol".
2329
70eab5c1
GM
23302010-04-24 Glenn Morris <rgm@gnu.org>
2331
2332 * Makefile.in (CRT_DIR): New variable, set by configure.
2333 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2334 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2335
1ad4cc3d
DN
23362010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2337
e769f484
DN
2338 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2339
4196ff33
DN
2340 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2341
879b0ee4
DN
2342 Remove redundant flags.
2343 * s/freebsd.h (C_SWITCH_SYSTEM):
2344 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2345 * s/netbsd.h (C_SWITCH_SYSTEM):
2346 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2347 of these.
2348
03cbbcb8
DN
2349 Simplify m/intel386.h.
2350 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2351 user: ecrt0.c.
2352 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2353 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2354 the only user: s/unixware.h.
2355 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2356 from m/intel386.h.
2357 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2358 moved here from m/intel386.h.
2359
1ad4cc3d
DN
2360 * m/mips.h: Remove #if 0 code.
2361
8785b888
EZ
23622010-04-23 Eli Zaretskii <eliz@gnu.org>
2363
728588cc
EZ
2364 Fix display of composed characters from L2R scripts in bidi buffers.
2365 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2366 After advancing IT past the composition, resync the bidi iterator
2367 with IT's position. (Bug#5977)
2368
a63f80b4
DN
23692010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2370
2371 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2372 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2373
ff5dec5c
SM
23742010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2375
2376 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2377
8785b888
EZ
23782010-04-23 Eli Zaretskii <eliz@gnu.org>
2379
58ccf243 2380 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2381 * xdisp.c (pop_it): When the stack is popped after displaying
2382 from a string, bidi-iterate to exit from the text portion covered
2383 by the `display' property or overlay. (Bug#5988, bug#5920)
2384
feeb1604
DN
23852010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2386
8e324eb6
DN
2387 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2388 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2389
809fcaba
DN
2390 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2391 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2392
ed710380
DN
2393 Simplify STARTFILES definition.
2394 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2395 relying on Makefile.in to define it.
2396 * s/cygwin.h (START_FILES): Likewise.
2397 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2398
feeb1604
DN
2399 Clean up Solaris code.
2400 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2401 (LIB_MOTIF): Remove, configure takes care of this.
2402 (NOT_USING_MOTIF): Remove, unused.
2403 * xrdb.c: Remove #if 0-ed #include.
2404 (SYSV): Remove conditional for old SysV.
2405 * sysdep.c (closedir): Remove conditional code for Solaris,
2406 Solaris has closedir.
2407
a0d0b563
JD
24082010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2409
2410 * xsettings.c (read_and_apply_settings): Check if current_font is
2411 NULL before strcmp (Bug#6001).
2412
56bae7c7
DN
24132010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2414
2415 Clean up HP-UX files.
2416 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2417 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2418 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2419 * s/hpux10-20.h: ... to the only user, here.
2420
372b7a95
EZ
24212010-04-21 Eli Zaretskii <eliz@gnu.org>
2422
2423 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2424 use buffer-local values of paragraph-start and paragraph-separate.
2425 <paragraph_start_re, paragraph_separate_re>: Rename from
2426 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2427 (Bug#5992)
2428
f904c0f9
JD
24292010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2430
2431 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2432 current_tool_bar_style are new.
2433 (store_config_changed_event): Rename from store_font_changed_event.
2434 (XSETTINGS_TOOL_BAR_STYLE): New define.
2435 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2436 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2437 HAVE_XFT.
2438 (something_changedCB): store_font_changed_event is now
2439 store_config_changed_event
2440 (parse_settings): Rename from parse_xft_settings. Read
2441 non-xft xsettings outside #ifdef HAVE_XFT.
2442 (read_settings): Renamed from read_xft_settings.
2443 (apply_xft_settings): Take current settings as parameter. Do not
2444 call read_(xft)_settings.
2445 (read_and_apply_settings): New function.
2446 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2447 read_and_apply_settings if there are settings to be read.
2448 (init_xsettings): Renamed from init_xfd_settings.
2449 Call read_and_apply_settings unconditionally.
2450 (xsettings_initialize): Call init_xsettings.
2451 (Ftool_bar_get_system_style): New function.
2452 (syms_of_xsettings): Define Qmonospace_font_name and
2453 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2454 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2455 dynamic-setting.
31a01b90 2456 Move misplaced HAVE_GCONF
f904c0f9
JD
2457
2458 * xsettings.h (Ftool_bar_get_system_style): Declare.
2459
2460 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2461 Qtext, Qboth, Qboth_horiz are new.
2462 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2463 Vtool_bar_style, tool_bar_max_label_size.
2464
2465 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2466
2467 * keyboard.c: QClabel is new.
2468 (parse_tool_bar_item): Take out QClabel from tool bar items.
2469 Try to construct a label if ther is no QClabel.
2470 (syms_of_keyboard): Intern :label as QClabel.
2471
2472 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2473 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2474 New.
2475
2476 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2477 dynamic-setting.el.
2478
2479 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2480 (xg_make_tool_item, xg_show_toolbar_item): New function.
2481 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2482 Call xg_make_tool_item to make a tool bar item.
2483 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2484
2485 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2486 into account for toolbars.
2487
c632dfda
JD
24882010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2489
2490 * data.c (make_blv): Declarations before code (Bug#5993).
2491
10efe302
GM
24922010-04-21 Glenn Morris <rgm@gnu.org>
2493
2494 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2495 Define using autoconf, not cpp.
2496 (LIBXSM): New variable, set by autoconf.
2497 (LIBXT): Use $LIBXSM.
2498
4285ac5a
DN
24992010-04-21 Dan Nicolaescu <local_user@dannlt>
2500
3ec759e7
DN
2501 Remove NOMULTIPLEJOBS, unused.
2502 * s/template.h (NOMULTIPLEJOBS):
2503 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2504
4285ac5a
DN
2505 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2506 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2507 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2508 detects -znocombreloc and passes it to the linker
2509 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2510
2807228d
GM
25112010-04-21 Glenn Morris <rgm@gnu.org>
2512
2513 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2514
574c05e2
KK
25152010-04-21 Karel Klíč <kklic@redhat.com>
2516
2517 * Makefile.in (LIBSELINUX_LIBS): New.
2518 (LIBES): Add $LIBSELINUX_LIBS.
2519 * eval.c, lisp.h (call7): New function.
2520 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2521 (Ffile_selinux_context, Fset_file_selinux_context):
2522 New functions.
2523 (Fcopy_file): New parameter preserve-selinux-context.
2524 (Frename_file): Preserve selinux context when renaming by copy-file.
2525
91eac4bb 25262010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2527 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2528
50426a04
JB
2529 Don't depend on cm.c or termcap.c on Windows, use stubs.
2530 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2531 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2532 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2533 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2534 (sys_tputs, sys_tgetstr): New stubs.
2535 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2536 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2537
938efb77
JB
25382010-04-20 Juanma Barranquero <lekktu@gmail.com>
2539
2540 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2541
b4bf28b7
SM
25422010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2543
8b1e1112
SM
2544 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2545 Just signal a warning rather than an error when inside a let.
2546 (Fmake_variable_frame_local): Add the same test.
2547
933ac235
SM
2548 * font.c (syms_of_font): Make the style table vars read-only.
2549
b4bf28b7
SM
2550 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2551 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2552
2553 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2554
93d68d0c
EZ
25552010-04-20 Eli Zaretskii <eliz@gnu.org>
2556
2557 Fix R2L paragraph display on TTY.
2558
2559 * xdisp.c (unproduce_glyphs): New function.
2560 (display_line): Use it when produced glyphs are discarded from R2L
2561 glyph rows.
2562 (append_composite_glyph): In R2L rows, prepend the glyph rather
2563 than appending it.
2564
2565 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2566 rather than append it. Set up the resolved_level and bidi_type
2567 attributes of the appended glyph.
283ccc18
EZ
2568 (produce_special_glyphs): Mirror the backslash continuation
2569 character in R2L lines.
93d68d0c 2570
283ccc18 2571 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2572
283ccc18
EZ
2573 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2574 append_stretch_glyph.
2575 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2576 off-by-one error in computing x at end of text in the row.
2577 (append_stretch_glyph): In reversed row, prepend the glyph rather
2578 than append it. Set resolved_level and bidi_type of the glyph.
2579 (extend_face_to_end_of_line): If the row is reversed, prepend a
2580 stretch glyph whose width is such that the rightmost glyph will be
2581 drawn at the right margin of the window. Fix off-by-one error on
2582 TTY frames in testing whether a line needs face extension. Fix
2583 face extension at ZV. If this is the last glyph row, use
2584 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2585 region face.
2586 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2587 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2588 row->continuation_lines_width.
283ccc18
EZ
2589 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2590 are at ZV. Fixes a crash when reseated to ZV by
2591 try_window_reusing_current_matrix.
45903529
EZ
2592 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2593 which happens with R2L glyph rows. Fixes a crash when inserting a
2594 character at end of an R2L line.
283ccc18
EZ
2595 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2596 treat them as having zero-width characters. Improve comments.
2597 Don't reverse pos_before and pos_after for reversed glyph rows.
2598 Set cursor.x to negative value when the cursor might be on the
2599 left fringe.
2600 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2601 left fringe, not the right one.
f951a506
EZ
2602 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2603 (erase_phys_cursor): For reversed cursor_row, support cursor on
2604 the left fringe.
2605
283ccc18
EZ
2606 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2607 of continuation indicators on the fringes.
2608 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2609 left fringe.
2610
f951a506
EZ
2611 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2612 draw cursor on the left fringe.
2613
2614 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2615 cursor on the left fringe.
2616
f951a506
EZ
2617 * dispnew.c (update_text_area): Handle reversed desired rows when
2618 the cursor is on the left fringe.
2619 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2620 below, not by 0, for when the cursor is on the left fringe.
2621
3bb49aaf
JD
26222010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2623
2624 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2625 widget is a scrollbar.
2626
c0be27fd
KH
26272010-04-20 Kenichi Handa <handa@m17n.org>
2628
2629 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2630 only when the arg CHARSET_LIST is nil.
2631
ce5b453a
SM
26322010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2633
2634 Make variable forwarding explicit rather the using special values.
2635 Basically, this makes the structure of buffer-local values and object
2636 forwarding explicit in the type of Lisp_Symbols rather than use
2637 special Lisp_Objects for that. This tends to lead to slightly more
2638 verbose code, but is more C-like, simpler, and makes it easier to make
2639 sure we handled all cases, among other things by letting the compiler
2640 help us check it.
2641 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2642 Removing forwarding objects.
2643 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2644 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2645 explicit rather than hiding them inside Lisp_Object "values".
2646 (XFWDTYPE): New macro.
2647 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2648 (XBUFFER_LOCAL_VALUE): Remove.
2649 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2650 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2651 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2652 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2653 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2654 Remove the Lisp_Misc_* header.
2655 (struct Lisp_Buffer_Local_Value): Redefine.
2656 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2657 (struct Lisp_Misc_Any): Add filler to get the right size.
2658 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2659 Lisp_Intfwd.
2660 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2661 (DEFVAR_KBOARD): Allocate a forwarding object.
2662 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2663 (let_shadows_global_binding_p): New function.
2664 (union Lisp_Val_Fwd): New type.
2665 (make_blv): New function.
2666 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2667 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2668 (swap_in_symval_forwarding, find_symbol_value, Fset)
2669 (let_shadows_buffer_binding_p, set_internal, default_value)
2670 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2671 (Fkill_local_variable, Fmake_variable_frame_local)
2672 (Flocal_variable_p, Flocal_variable_if_set_p)
2673 (Fvariable_binding_locus):
2674 * xdisp.c (select_frame_for_redisplay):
2675 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2676 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2677 * frame.c (store_frame_param):
2678 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2679 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2680 value structure.
2681 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2682 (clone_per_buffer_values): Only adjust markers into the current buffer.
2683 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2684 (Fbuffer_local_value, set_buffer_internal_1)
2685 (swap_out_buffer_local_variables):
2686 Adapt to the new symbol value structure.
2687 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2688 (defvar_per_buffer): Take a new arg for the fwd object.
2689 (buffer_lisp_local_variables): Return a proper alist (different fix
2690 for bug#4138).
2691 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2692 (Fgarbage_collect): Don't handle buffer_defaults specially.
2693 (mark_object): Handle new symbol value structure rather than the old
2694 special Lisp_Misc_* objects.
2695 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2696 * term.c (set_tty_color_mode):
2697 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2698 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2699 a buffer_local_flags.
2700 * print.c (print_object): Get rid of impossible forwarding objects.
2701
fd3998ff
EZ
27022010-04-19 Eli Zaretskii <eliz@gnu.org>
2703
2704 * bidi.c (bidi_get_type, bidi_get_category)
2705 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2706 (bidi_type_of_next_char, bidi_level_of_next_char):
2707 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2708
e42cd1a7
JB
27092010-04-19 Juanma Barranquero <lekktu@gmail.com>
2710
2711 * dired.c (Ffile_attributes): Fix typo in docstring.
2712
6e104790 27132010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2714
2715 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2716 NSInteger (Bug#5811).
2717
6e104790 27182010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2719
2720 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2721 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2722
6e104790 27232010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2724
2725 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2726
6e104790
SM
27272010-04-19 Chong Yidong <cyd@stupidchicken.com>
2728
2729 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2730 terminal frames (Bug#5837).
2731
37dcfea0
EZ
27322010-04-19 Eli Zaretskii <eliz@gnu.org>
2733
d1da276f
EZ
2734 * .gdbinit (xsubchartable): New command.
2735
37dcfea0
EZ
27362010-04-19 Eli Zaretskii <eliz@gnu.org>
2737
2738 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2739 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2740 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2741 and
2742 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2743
e9515805
SM
27442010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2745
2746 * alloc.c (Fpurecopy): Hash-cons if requested.
2747 (syms_of_alloc): Update purify-flag docstring.
2748
22aa44a8
JD
27492010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2750
2751 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2752 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2753
ebb5722e
EZ
27542010-04-17 Eli Zaretskii <eliz@gnu.org>
2755
2756 Fix a crash when an NSM character is inserted at BEGV.
2757
2758 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2759 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2760 NEUTRAL_B or UNKNOWN_BT.
2761
0f4442ef
EZ
27622010-04-16 Eli Zaretskii <eliz@gnu.org>
2763
2764 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2765 other rows with cursor unless they are different from this row and
2766 this row is part of a continued line. (Bug#5943)
2767
7d4e45f8
DN
27682010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2769
2770 * s/freebsd.h: Restore osreldate.h include.
2771 Suggested by Naohiro Aota.
2772
5ba5ec85
J
27732010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2774
2775 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2776
20af301d
CY
27772010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2778
2779 * s/cygwin.h: Avoid linking against static libgcc.
2780
a4b000fb
JL
27812010-04-15 Juri Linkov <juri@jurta.org>
2782
2783 * window.c: Add Qscroll_command.
2784 Remove Vscroll_preserve_screen_position_commands.
2785 (window_scroll_pixel_based, window_scroll_line_based): Check the
2786 `scroll-command' property on the last command instead of searching
2787 the last command in Vscroll_preserve_screen_position_commands.
2788 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2789 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2790 (scroll-preserve-screen-position): Doc fix.
2791 (Vscroll_preserve_screen_position_commands): Remove variable.
2792
bc319ba4
DN
27932010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2794
6bb24457
DN
2795 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2796
19d4c244
DN
27972010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2798
2799 Reduce cpp use in Makefile.in.
2800 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2801 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2802 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2803 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2804 (CRT0_COMPILE): Remove, inline it in the only user.
2805
32129746
JL
28062010-04-14 Juri Linkov <juri@jurta.org>
2807
2808 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2809 `scroll-up-command' and `M-v' from `scroll-down' to
2810 `scroll-down-command'.
2811
9013a7f8
JL
28122010-04-14 Juri Linkov <juri@jurta.org>
2813
2814 * window.c (Vscroll_preserve_screen_position_commands): New variable
2815 with the default value as the list of Qscroll_down and Qscroll_up.
2816 (window_scroll_pixel_based, window_scroll_line_based): Search the
2817 last command in the list Vscroll_preserve_screen_position_commands
2818 instead of comparing with Qscroll_up and Qscroll_down.
2819
4bef8d26
JD
28202010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2821
92848133
JD
2822 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2823 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2824 does that.
2825
4bef8d26
JD
2826 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2827 to zero.
2828
58b963f7
SM
28292010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2830
84164a0d
SM
2831 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2832
2b0a91e7
SM
2833 Try to solve the problem of spurious EOF chars in long lines of text
2834 sent to interactive subprocesses.
2835 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2836 (system_process_attributes): Remove unused var `ttotal'.
2837 * process.c (send_process): Don't bother breaking long line with EOF
2838 chars when talking to ttys any more.
2839 (wait_reading_process_output): Output a warning when called in such
2840 a way that it could block without being interruptible.
2841
58b963f7
SM
2842 Try to detect file modification within the same second.
2843 * buffer.h (struct buffer): New field modtime_size.
2844 * buffer.c (reset_buffer): Initialize it.
2845 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2846 (Fverify_visited_file_modtime): Check it.
2847 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2848 (Fset_visited_file_modtime): Set (or clear) it.
2849
01f5787b
SM
28502010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2851
2852 * process.c (status_notify): Remove unused var `ro'.
2853
83725342
JD
28542010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2855
2856 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2857 more than one visual (Bug#5938).
2858
b9465836
DN
28592010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2860
50426a04
JB
2861 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2862 Undefine.
b9465836 2863
8d9c8ece
DN
28642010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2865
b1f52161
DN
2866 Remove C_SWITCH_SYSTEM_TEMACS.
2867 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2868 (malloc, realloc, free): Use emacs, not temacs for conditional
2869 definition.
2870
2871 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2872 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2873
8d9c8ece
DN
2874 Use autoconf, not cpp for some variables.
2875 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2876 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2877 (ALL_CFLAGS): Use them as make variables.
2878 (really-lwlib, really-oldXMenu): Do not pass them.
2879
1ecb2d3f
JD
28802010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2881
2882 * xmenu.c (apply_systemfont_to_dialog): New.
2883 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2884
3a4fa2f2
SM
28852010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2886
97e53006
SM
2887 * process.c (exec_sentinel): Preserve current-buffer.
2888
3a4fa2f2
SM
2889 * process.c (read_process_output): Move the save-current-buffer to
2890 apply to both the filter and the non-filter branches.
2891
88df7221
DN
28922010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2893
2894 * s/msdos.h (UNEXEC): New definition.
2895
5634ff85
YM
28962010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2897
6eff5c3d
YM
2898 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2899 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2900
2901 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2902 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2903 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2904 TRY_WINDOW_CHECK_MARGINS.
2905
2906 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2907 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2908 width only when it is for padding.
5634ff85 2909
b13aef54
J
29102010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2911
2912 * xfns.c (Fx_show_tip): Call try_window in a loop until
2913 fonts_changed_p is zero (Bug#2423).
2914
21d28484
EZ
29152010-04-08 Eli Zaretskii <eliz@gnu.org>
2916
2917 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2918 the end of TEXT_AREA. (Bug#5856)
2919
0269ef77
JD
29202010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2921
2922 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2923 HAVE_GCONF.
2924
5930fe97
EZ
29252010-04-08 Eli Zaretskii <eliz@gnu.org>
2926
2927 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2928 prev.orig_type, for resolving type of NSM. (Bug#5858)
2929
99852628
JD
29302010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2931
2932 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2933 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2934 in current_font.
2935 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2936 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2937 New functions.
2938 (syms_of_xsettings): Initialize current_font.
2939 defsubr Sfont_get_system_normal_font.
99852628
JD
2940
2941 * xsettings.h (Ffont_get_system_normal_font,
2942 xsettings_get_system_normal_font): Declare.
2943
2944 * xfns.c (extern xlwmenu_default_font): Remove.
2945 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2946 to xlwmenu.c.
2947
2948 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2949 menu items in UTF-8.
2950
2951 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2952 (apply_systemfont_to_menu): New function.
2953 (set_frame_menubar, create_and_show_popup_menu): Call
2954 apply_systemfont_to_menu.
2955
7fc874c4
J
29562010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2957
2958 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2959 FRAME_LINE_TO_PIXEL_Y.
2960
2961 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2962 pixelwidth/height.
2963
863bf481
DN
29642010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2965
5e5a3b92
DN
2966 Simplify code for HP machines.
2967 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2968 for GNU_LINUX, not needed.
2969 (UNEXEC, NEED_BSDTTY): Move definitions...
2970 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2971
863bf481
DN
2972 * m/iris4d.h (UNEXEC): Move definition ...
2973 * s/irix6-5.h (UNEXEC): ... here.
2974
3e6bec3b
JD
29752010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2976
2977 * xfns.c (set_machine_and_pid_properties): New function.
2978 (Fx_create_frame): Call set_machine_and_pid_properties.
2979
2912322b
SM
29802010-04-03 Eli Zaretskii <eliz@gnu.org>
2981
1502b819
EZ
2982 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2983 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2984 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2985
2912322b
SM
2986 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2987 in this function. (Bug#5703)
2988
29892010-04-03 Chong Yidong <cyd@stupidchicken.com>
2990
2991 * nsterm.h: Fix last change.
2992
c435b432
DN
29932010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2994
a568f507
DN
2995 * m/intel386.h (NO_REMAP): Move definition ...
2996 * s/msdos.h (NO_REMAP): ... here.
2997
4cd9f6c2
DN
2998 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2999
c435b432
DN
3000 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3001 used on those platforms.
3002
42a2c622
DN
30032010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3004
3005 Remove extern errno declarations.
3006 * xterm.c:
3007 * xrdb.c:
3008 * w32term.c:
3009 * unexec.c:
3010 * unexaix.c:
3011 * sysdep.c:
3012 * process.c:
3013 * lread.c:
3014 * keyboard.c:
3015 * floatfns.c:
3016 * filelock.c:
3017 * fileio.c:
3018 * emacs.c (main):
3019 * ecrt0.c:
3020 * dispnew.c:
3021 * callproc.c:
3022 * buffer.c: Remove errno extern declarations.
3023 * s/netbsd.h (NEED_ERRNO): Remove.
3024
8224f93d
DN
30252010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3026
3027 Remove all uses of LIBX11_SYSTEM.
3028 * Makefile.in (LIBX11_SYSTEM): Remove.
3029 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3030 instead.
3031
814062c7
EZ
30322010-04-01 Eli Zaretskii <eliz@gnu.org>
3033
ed68db4d
EZ
3034 Remove support for DJGPP v1.x (bug#5813).
3035
3036 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3037 * s/msdos.h:
3038 * unexec.c (make_hdr, copy_text_and_data):
3039 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3040 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3041 (IT_set_terminal_modes, __write, _rename, gethostname)
3042 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3043 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3044 the value of __DJGPP__.
ed68db4d
EZ
3045 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3046 compatibility code.
8224f93d
DN
3047 * lread.c:
3048 * gmalloc.c (memalign):
3049 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3050 * emacs.c (main):
3051 * dosfns.c (init_dosfns):
ed68db4d
EZ
3052 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3053
52f4d8d5
EZ
30542010-04-01 Eli Zaretskii <eliz@gnu.org>
3055
814062c7
EZ
3056 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3057 string with `cursor' property comes from an `after-string'
3058 overlay. (Bug#5816)
3059
0dc2e11d
GM
30602010-04-01 Glenn Morris <rgm@gnu.org>
3061
3062 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3063 Define as Makefile variables.
3064 (LIBX): Use above variables rather than directly using autoconf.
3065
1d29df59
DN
30662010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3067
3068 Clean up BSD_SYSTEM use.
3069 * xterm.c:
3070 * process.c:
3071 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3072 for including <sys/ioctl.h>.
3073 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3074 code is only used for MSDOS.
3075
1546c559
JL
30762010-03-31 Juri Linkov <juri@jurta.org>
3077
3078 * image.c: Add `Qextension_data'.
3079 (syms_of_image): Initialize and staticpro `Qextension_data'.
3080 (Fimage_metadata): Rename from `Fimage_extension_data'.
3081 (gif_load): Put GIF extension data to the property
3082 `Qextension_data'.
3083
6521c534
CY
30842010-03-31 Chong Yidong <cyd@stupidchicken.com>
3085
3086 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3087 * nsterm.h: Fix prototype.
3088
52c30783
EZ
30892010-03-31 Eli Zaretskii <eliz@gnu.org>
3090
3091 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3092 trailing whitespace in right-to-left rows.
3093
855a0da7
SM
30942010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3095
3096 Get rid of the direct_output optimizations.
3097 * keyboard.c (nonundocount): Remove extern declaration.
3098 (command_loop_1): Remove brittle optimisation for cheap and
3099 common operations.
3100 * xdisp.c (redisplay_internal): Don't bother checking
3101 redisplay_performed_directly_p any more.
3102 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3103 any more.
3104 * dispnew.c (redisplay_performed_directly_p)
3105 (direct_output_for_insert, direct_output_forward_char):
3106 * dispextern.h (redisplay_performed_directly_p)
3107 (direct_output_for_insert, direct_output_forward_char): Remove.
3108 * cmds.c (nonundocount): Make it static.
3109
85738751 31102010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3111
3112 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3113
85738751 31142010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3115
3116 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3117 invisible (Bug#5766).
3118
85738751 31192010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3120
855a0da7
SM
3121 * xdisp.c (x_consider_frame_title, update_window_cursor):
3122 Remove HAVE_NS conditionals.
194d44e7 3123 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3124
3125 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3126 filename for the title.
3127 (ns_set_doc_edited): Do nothing if the selected window is a
3128 minibuffer window.
3129
3130 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3131 ns_set_doc_edited.
3132
3133 * nsterm.m: Remove unneeded prototype.
3134
85738751 31352010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3136
3137 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3138 in the DOC file. (Bug#5336)
3139
85738751 31402010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3141
3142 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3143
75d1428c
SM
31442010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3145
3146 * window.c (keys_of_window): Remove redundant/overridden bindings.
3147
82043cfb
EZ
31482010-03-30 Eli Zaretskii <eliz@gnu.org>
3149
3150 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3151 Restore original behavior when the iterator is not bidi_p.
3152
b5dd0ae7
DN
31532010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3154
3155 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3156
bd924a5d
EZ
31572010-03-30 Eli Zaretskii <eliz@gnu.org>
3158
3159 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3160 are outside the range of cached character positions.
3161
3580374b
JB
31622010-03-30 Juanma Barranquero <lekktu@gmail.com>
3163
3164 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3165
a7b02820
EZ
31662010-03-30 Eli Zaretskii <eliz@gnu.org>
3167
3168 Initial support for bidirectional editing.
3169
3170 * Makefile.in (obj): Include bidi.o.
3171 (bidi.o): New target.
3172
3173 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3174 ($(BLD)/bidi.$(O)): New target.
3175
3176 * bidi.c: New file.
3177
3178 * buffer.h (struct buffer): New members bidi_display_reordering
3179 and bidi_paragraph_direction.
3180
3181 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3182 and bidi_paragraph_direction.
3183 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3184 and bidi-paragraph-direction.
3185 (Fbuffer_swap_text): Swap the values of
3186 bidi_display_reordering and bidi_paragraph_direction.
3187
3188 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3189 (bidi_type_t, bidi_dir_t): New types.
3190 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3191 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3192 prev_stop, base_level_stop, and eol_pos.
3193 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3194 (IT_STACK_SIZE): Enlarge to 5.
3195 (struct glyph_row): New member reversed_p.
3196 <string_buffer_position>: Update prototype.
3197 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3198 glyph_row if bidi_it.paragraph_dir == R2L.
3199 (struct glyph): New members resolved_level and bidi_type.
3200
3201 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3202 processing or buffer's direction is right-to-left.
3203 (prepare_desired_row): Preserve the reversed_p flag.
3204 (row_equal_p): Compare the reversed_p attributes as well.
3205
3206 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3207 bidi_init_it and set it->paragraph_embedding from the current
3208 buffer's value of bidi_paragraph_direction.
3209 (reseat_1): Initialize bidi_it.first_elt.
3210 (set_iterator_to_next, next_element_from_buffer): Use the value of
3211 paragraph_embedding to determine the paragraph direction.
3212 (set_iterator_to_next): Under bidi reordering, call
3213 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3214 new_paragraph flag is set in the bidi iterator.
3215 (next_element_from_buffer): If bidi_it.first_elt is set,
3216 initialize paragraph direction and find the first character to
3217 display in the visual order. If reseated to a middle of a line,
3218 prime the bidi iterator starting at the line's beginning. Handle
3219 the situation where we overstepped stop_charpos due to
3220 non-linearity of the bidi iteration. Likewise for when we back up
3221 beyond the previous stop_charpos. When moving across stop_charpos,
3222 record it in prev_stop.
3223 (display_line): Set row->end and it->start for the next row to the
3224 next character in logical order. Always extend reversed_p rows to
3225 the end of line, even if they end at ZV. Copy the reversed_p flag
3226 to the next glyph row. Keep calling set_cursor_from_row for
3227 bidi-reordered rows even if we already have a possible candidate
3228 for cursor position. Set row_end after all the row's glyphs have
3229 been produced, by looping over the glyphs. Record the position
3230 after EOL in it->eol_pos, and use it to set end_pos of the last
3231 row produced for a continued line.
3232 <Qright_to_left, Qleft_to_right>: New variables.
3233 (syms_of_xdisp): Initialize and staticpro them.
3234 (string_buffer_position_lim): New function.
3235 (string_buffer_position): Most of code moved to
3236 string_buffer_position_lim. Last argument and return value are
3237 now EMACS_INT; all callers changed.
3238 (set_cursor_from_row): Rewritten to support bidirectional text and
3239 reversed glyph rows.
3240 (text_outside_line_unchanged_p, try_window_id): Disable
3241 optimizations if we are reordering bidirectional text and the
3242 paragraph direction can be affected by the change.
3243 (append_glyph, append_composite_glyph)
3244 (produce_image_glyph, append_stretch_glyph): Set the
3245 resolved_level and bidi_type members of each glyph.
3246 (append_glyph): If the glyph row is reversed, prepend the glyph
3247 rather than appending it.
3248 (handle_stop_backwards): New function.
3249 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3250 (reseat): call handle_stop_backwards to recompute prev_stop and
3251 base_level_stop for the new position.
3252 (handle_invisible_prop): Under bidi iteration, skip invisible text
3253 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3254 paragraph direction. Update IT->prev_stop after skipping
3255 invisible text.
3256 (move_it_in_display_line_to): New variables prev_method
3257 and prev_pos. Compare for strict equality in
3258 BUFFER_POS_REACHED_P.
3259 (try_cursor_movement): Examine all the candidate rows that occlude
3260 point, to return the best match. If rows are bidi-reordered
3261 and point moved backwards, back up to the row that is not a
3262 continuation line, and start looking for a suitable row from
3263 there.
3264
3265 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3266 rather than appending, if the glyph_row's reversed_p flag is set.
3267 Set the resolved_level and bidi_type members of each glyph.
3268
3269 * .gdbinit (pbiditype): New command.
3270 (pgx): Use it to display bidi level and type of the glyph.
3271 (pitx): Display some bidi information about the iterator.
3272 (prowlims, pmtxrows): New commands.
3273
32a8894e
DN
32742010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3275
3276 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3277 * s/usg5-4.h (LIBS_DEBUG):
3278 * s/irix6-5.h (C_DEBUG_SWITCH):
3279 * s/gnu-linux.h (LIBS_DEBUG):
3280 * s/darwin.h (LIBS_DEBUG):
3281 * s/bsd-common.h (LIBS_DEBUG):
3282 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3283 * m/iris4d.h (LIBS_DEBUG):
3284 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3285
3286 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3287 (LIBS_DEBUG): Remove definition.
3288
649dbf36
CY
32892010-03-27 Chong Yidong <cyd@stupidchicken.com>
3290
3291 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3292 Windows.
3293
cad4261f
YM
32942010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3295
3296 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3297 `connect' (Bug#5723).
3298
cd591dbc
HE
32992010-03-25 Helmut Eller <eller.helmut@gmail.com>
3300
3301 * process.c (Fmake_network_process): Call `select' for interrupted
3302 `connect' rather than creating new socket (Bug#5173).
3303
e867cb5d 33042010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3305
3306 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3307
3308 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3309
3310 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3311
e867cb5d 33122010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3313
3314 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3315 XLoadQueryFont.
3316
e867cb5d 33172010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3318
3319 * coding.c (decode_coding_ccl): Fix previous change for the
3320 multibyte case.
fb608df3
KH
3321 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3322 case that the output buffer is fullfilled.
3323 (encode_coding): Setup ccl program here.
fbdc1721 3324
5845f0ed
DN
33252010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3326
814fb708
DN
3327 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3328
5845f0ed
DN
3329 Simplify LIBS_MACHINE definitions.
3330 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3331 * m/iris4d.h (LIBS_MACHINE): Likewise.
3332 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3333 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3334 * s/netbsd.h: Remove commented out code.
5845f0ed 3335
b7064064
DN
33362010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3337
df7734b2
DN
3338 Remove dead code dealing with POSIX_SIGNALS.
3339 * atimer.c (set_alarm): Remove dead code, all USG systems define
3340 POSIX_SIGNALS.
3341 * data.c (arith_error): Likewise.
3342 * keyboard.c (input_available_signal, handle_user_signal)
3343 (interrupt_signal): Likewise.
3344 * process.c (sigchld_handler): Likewise.
3345 (create_process): Remove if 0 code. Remove HPUX conditional when
3346 !defined (POSIX_SIGNALS), it cannot be true.
3347 * syssignal.h: Remove USG5_4 and USG conditionals when
3348 !POSIX_SIGNALS, they cannot be true.
3349
b7064064
DN
3350 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3351 NO_SOCK_SIGIO, not used anymore.
3352
55da5ee3
DN
33532010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3354
0be96e3a
DN
3355 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3356 support vax on BSDs.
3357
55da5ee3
DN
3358 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3359 * s/aix4-2.h (ORDINARY_LINK): ... here.
3360
c0282183
AS
33612010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3362
82c3d67a
AS
3363 * Makefile.in (abs_builddir): Define.
3364 (bootstrap_exe): Use it.
3365 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3366
3613edce
SM
33672010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3368
3369 * Makefile.in (bootstrap_exe): Use an absolute name.
3370
7f110ddc
DN
33712010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3372
22e87574
DN
3373 Remove support for old GNU/Linux using libc version 5.
3374 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3375 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3376
05a670e6
DN
3377 Consolidate redundant definitions in s/bsd-common.h.
3378 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3379 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3380 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3381 doing it in all files that include this one.
3382 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3383 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3384 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3385 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3386 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3387 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3388 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3389 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3390 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3391
2968f561
DN
3392 Consolidate redundant definitions.
3393 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3394 it's undefined in all files that include this one.
3395 (POSIX_SIGNALS): Define here instead of doing it in all files that
3396 include this one.
3397 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3398 (POSIX_SIGNALS): Do not define.
3399 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3400 (POSIX_SIGNALS): Do not define.
3401 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3402 (POSIX_SIGNALS): Do not define.
3403
15d25dc0
DN
3404 Remove support for old UNIX System V systems.
3405 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3406 * s/usg-5-4-2.h: Remove.
3407
07e339e4
DN
3408 Remove support for Solaris on PPC and for old versions.
3409 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3410 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3411 that cancel each other.
3412 * s/sol2-3.h:
3413 * s/sol2-4.h:
3414 * s/sol2-5.h: Remove.
3415 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3416 (NO_REMAP): Remove, unused.
3417 (UNEXEC): Move definition ...
3418 * s/aix4-2.h (UNEXEC): ... here.
3419
7f110ddc
DN
3420 * s/openbsd.h: Remove support for non-ELF and for systems that do
3421 not support shared libraries.
3422 * s/netbsd.h:
3423 * s/freebsd.h: Likewise.
3424
605f35cd
DN
34252010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3426
3427 Remove non-working support for lynxos 3.0.
3428 * s/lynxos.h: Remove file.
3429
3430 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3431 COFF_BSD_SYMBOLS, nothing defines it anymore.
3432
aed71cf4
DN
34332010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3434
3435 Remove obsolete uses of HAVE_SHM.
3436 * emacs.c (standard_args):
3437 (Fdump_emacs):
3438 (syms_of_emacs): Remove code depending on HAVE_SHM.
3439
3440 * alloc.c: Remove HAVE_SHM dependent definition.
3441
3442 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3443
aded53ff
GM
34442010-03-18 Glenn Morris <rgm@gnu.org>
3445
17284745
GM
3446 * emacs.c (USAGE4): Hard-code bug address.
3447 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3448 (bug_reporting_address): Remove.
3449 (main): Don't call bug_reporting_address.
3450
aded53ff
GM
3451 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3452 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3453
303500aa
CY
34542010-03-15 Chong Yidong <cyd@stupidchicken.com>
3455
3456 * xfns.c (Fx_create_frame):
3457 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3458 on left.
3459
cef3058f
CY
34602010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3461
3462 * editfns.c (Fformat): Account for string precision when computing
3463 field width (Bug#5710).
3464
a647d59d
CY
34652010-03-12 Chong Yidong <cyd@stupidchicken.com>
3466
4fa42018
CY
3467 * xfns.c (Fx_create_frame): Set default to Qright.
3468
a647d59d
CY
3469 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3470 all window systems.
3471
6da23aaa
EZ
34722010-03-12 Eli Zaretskii <eliz@gnu.org>
3473
a96f6398 3474 These changes remove termcap.c from the build on Posix platforms.
83d02def 3475 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3476 (MSDOS_OBJ): ...to here.
3477 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3478 now identical to when LIBS_TERMCAP is defined.
3479
3480 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3481
3482 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3483
a96f6398 3484 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3485
288f9fc0
CY
34862010-03-10 Chong Yidong <cyd@stupidchicken.com>
3487
3488 * Branch for 23.2.
3489
d48cd3f4
SM
34902010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3491
3492 Cleanup setup of gl_state in various parts of the code.
3493 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3494 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3495 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3496 (skip_chars):
3497 * regex.c (regex_compile): Use it.
3498 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3499 it's now set in regex_compile when/if we need it.
3500
618db430
SM
35012010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3502
c0335e02
SM
3503 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3504 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3505 (QUIT): Use it to consolidate code and remove redundancy.
3506 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3507
254c06a8
SM
3508 * regex.c (regex_compile): Setup gl_state as well.
3509
618db430
SM
3510 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3511 (in_classes): Use CONSP before XCAR/XCDR.
3512
233f0c9f
CY
35132010-03-03 Chong Yidong <cyd@stupidchicken.com>
3514
3515 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3516 definitions, so that keyboard macros are correctly handled
3517 (Bug#5481).
3518
75f80e63
EZ
35192010-03-02 Eli Zaretskii <eliz@gnu.org>
3520
3521 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3522 text that could be relocated inside the call to emacs_mule_char.
3523 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3524 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3525
dcfb9bc4
KH
35262010-03-02 Kenichi Handa <handa@m17n.org>
3527
fc9a17bc
KH
3528 * character.c (parse_str_as_multibyte): Fix handling of the
3529 multibyte form of raw-bytes.
3530 (str_as_multibyte): Likewise.
3531
dcfb9bc4
KH
3532 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3533 form of raw-bytes.
3534
412c01b6
CY
35352010-02-28 Chong Yidong <cyd@stupidchicken.com>
3536
3537 * charset.c (load_charset_map_from_file)
3538 (load_charset_map_from_vector): Zero out allocated
3539 charset_map_entries before using them.
3540
df7e1ea0
AS
35412010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3542
3543 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3544
fe69a722
CY
35452010-02-27 Chong Yidong <cyd@stupidchicken.com>
3546
4ed28cf4
CY
3547 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3548 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3549
7379cfce
KH
35502010-02-26 Kenichi Handa <handa@m17n.org>
3551
f88cc4d6
KH
3552 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3553
7379cfce
KH
3554 * xdisp.c (reseat_to_string): Fix previous change.
3555
cf2fdcfb
CY
35562010-02-26 David Reitter <david.reitter@gmail.com>
3557
3558 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3559 Lisp_Object (Bug#4736).
3560
cc6c7c75
KH
35612010-02-25 Kenichi Handa <handa@m17n.org>
3562
3563 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3564
32e737d7
JD
35652010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3566
3567 * xterm.c (XTflash): Move declarations before statements.
3568
3569 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3570 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3571 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3572 (xg_create_tool_bar): Remove unused variables.
3573 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3574 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3575
676cae9f
CY
35762010-02-21 Chong Yidong <cyd@stupidchicken.com>
3577
3578 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3579
886cc2b8
SM
35802010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3581
3582 * term.c (fatal): Add a final \n if needed (bug#5596).
3583
ddb2d8e2
CY
35842010-02-18 Chong Yidong <cyd@stupidchicken.com>
3585
3586 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3587
2a4f8d3d
GM
35882010-02-18 Glenn Morris <rgm@gnu.org>
3589
3590 * callint.c (Finteractive): Doc fix.
3591
ebaf11b6
KH
35922010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3593
886cc2b8
SM
3594 * coding.c (record_conversion_result):
3595 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3596 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3597 memory allocation error.
3598
d0396581
KH
35992010-02-17 Kenichi Handa <handa@m17n.org>
3600
886cc2b8
SM
3601 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3602 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3603 (decode_coding): Setup ccl program here. Keep looping when the
3604 decoder stopped because the output buffer is
3605 fullfilled (bug#5534).
3606
3607 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3608
98599f74
JD
36092010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3610
471e4f04 3611 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3612 bug #5571.
886cc2b8 3613 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3614 overdrawn.
98599f74 3615
182659ae
JD
36162010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3617
3618 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3619 doing_interact here.
3620 (ice_connection_closed): New function.
3621 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3622 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3623 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3624 returns I/O error.
3625 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3626 bug #5512.
3627
9be32c4e 36282010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3629
3630 * nsfont.m (nsfont_open): The system's value for the font descent
3631 is negative, so round it down to avoid clipping.
3632
a2f3eb19
CY
36332010-02-06 Chong Yidong <cyd@stupidchicken.com>
3634
3635 * charset.c (load_charset_map_from_file)
3636 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3637 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3638
3088147c
CY
36392010-02-05 Chong Yidong <cyd@stupidchicken.com>
3640
3641 * charset.c (load_charset_map_from_file): Allocate large
3642 charset_map_entries structure on the heap rather than the stack.
3643 (Bug#5526).
3644
b57d9029
KH
36452010-01-31 Kenichi Handa <handa@m17n.org>
3646
3647 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3648 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3649
c67d885b
CY
36502010-01-31 Chong Yidong <cyd@stupidchicken.com>
3651
3652 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3653 <deactivated@gmail.com> (Bug#3605).
3654
8fab2362
CY
36552010-01-31 David De La Harpe Golden <david@harpegolden.net>
3656
3657 * fileio.c (Frename_file): Correctly rename symlinks to
3658 directories (Bug#5496).
3659
cb2a62f2
CY
36602010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3661
3662 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3663
944c7a26
AS
36642010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3665
3666 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3667
c024ac08
CY
36682010-01-29 Chong Yidong <cyd@stupidchicken.com>
3669
3670 * frame.c (DEFAULT_ROWS): Change default to 35.
3671
3672 * xfns.c (x_default_font_parameter): Change default XFT font to
3673 monospace-10 (Bug#3643).
3674
af93af83
EZ
36752010-01-29 Eli Zaretskii <eliz@gnu.org>
3676
3677 * w32inevt.c (key_event): Remove unnecessary comparison of
3678 event->uChar.AsciiChar with 128.
3679
ca0eb708
CY
36802010-01-28 Chong Yidong <cyd@stupidchicken.com>
3681
b242dbfc
CY
3682 * fileio.c (Frename_file): Fix last change (Bug#5487).
3683
ca0eb708
CY
3684 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3685
3686 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3687
45d45af5
JD
36882010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3689
3690 * xfns.c (Fx_create_frame): Remove window size matching code from
3691 2010-01-15.
a73f9c9d 3692 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3693
7e233730
JR
36942010-01-27 Jason Rumney <jasonr@gnu.org>
3695
3696 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3697 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3698
86e893e3
KH
36992010-01-27 Kenichi Handa <handa@m17n.org>
3700
3701 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3702 pattern string (Bug#4209).
86e893e3 3703
8719abec
CY
37042010-01-27 David De La Harpe Golden <david@harpegolden.net>
3705
3706 * fileio.c (Frename_file): Call copy-directory and
3707 delete-directory for directories, in order to handle cross-device
3708 renaming (Bug#3353).
3709
844794c8
JD
37102010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3711
aa3e13b5 3712 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3713 sizes 24 and 10. Bug #3643.
844794c8 3714
bd4b5750
SM
37152010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3716
8dc1adf6 3717 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3718 * keymap.c (shadow_lookup): Add `remap' arg.
3719 (describe_map, describe_vector): Update calls to shadow_lookup.
3720 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3721 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3722 perform remapping during shadow_lookup check of remapped_sequences.
3723
285d07e2
CY
37242010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3725
3726 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3727 png_check_sig, which has been removed in libpng 1.4.
3728
c6d09b8d
CY
37292010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3730
3731 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3732 lacks this header file).
3733
3d782998
YM
37342010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3735
3736 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3737 as in Emacs 22.
3738
2aff7c53
YM
37392010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3740
3741 * lisp.h (make_pure_string): String pointer arg now points to const.
3742
3743 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3744 args now point to const.
3745
74327f7a
EZ
37462010-01-22 Eli Zaretskii <eliz@gnu.org>
3747
3748 * lread.c (Fload): Don't treat files without .elc extension as
3749 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3750 them. (bug#5303)
3751
4d1e6632
KH
37522010-01-20 Kenichi Handa <handa@m17n.org>
3753
3754 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3755 treat the source as actual byte sequence.
3756
1fdede8f
AM
37572010-01-19 Alan Mackenzie <acm@muc.de>
3758
3759 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3760 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3761 `signal_after_change_p' to `coherent_change_p', and make the
3762 invocation of `modify_region' conditional on it.
3763
67477f30
JD
37642010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3765
3766 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3767 for debug purpose.
3768 (syms_of_xsettings): Declare xft-settings.
3769
244b023e
CY
37702010-01-18 Chong Yidong <cyd@stupidchicken.com>
3771
3772 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3773
617364fe
CY
37742010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3775
3776 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3777
4fe22cdf
CY
37782010-01-16 Chong Yidong <cyd@stupidchicken.com>
3779
3780 * emacs.c (standard_args): Adjust arg priorities to reflect how
3781 they are processed in startup.el.
3782
e118d2be
AS
37832010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3784
3785 * Makefile.in (lisp, shortlisp): Update.
3786
523ae620
SM
37872010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3788
3789 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3790 code, link the new kboard into all_kboard before running Lisp code,
3791 and protect the new terminal with GCPRO (Bug#5365).
3792 (x_term_init): Remove unused var `atom'.
3793 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3794
f0d13888
JD
37952010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3796
3797 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3798 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3799 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3800 this. Bug #3643.
f0d13888 3801
cc320f07
KH
38022010-01-15 Kenichi Handa <handa@m17n.org>
3803
3804 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3805
7ffdf101
CY
38062010-01-15 Chong Yidong <cyd@stupidchicken.com>
3807
3808 * nsterm.m (Qnone): Define.
3809
3810 * nsfns.m (Qnone): Move definition to nsterm.m.
3811
d12bd917
KH
38122010-01-14 Kenichi Handa <handa@m17n.org>
3813
3814 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3815 systems.
3816
d9a7c140
KH
38172010-01-14 Kenichi Handa <handa@m17n.org>
3818
3819 Make auto-composition work on all buffers even if they are
3820 fundamental mode.
3821
3822 * composite.c (Vauto_composition_mode): New variable.
3823 (composition_compute_stop_pos): Check Vauto_composition_mode
3824 instead of Vauto_composition_function.
3825 (composition_adjust_point, Ffind_composition_internal): Likewise.
3826 (syms_of_composite): Declare Lisp variable
3827 "auto-composition-mode" here.
3828
63286bb2
CY
38292010-01-13 Chong Yidong <cyd@stupidchicken.com>
3830
3831 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3832 during call to vendor-specific-keysyms (Bug#5365).
3833
c2623ee7
YM
38342010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3835
3836 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3837 Call SIGNAL_THREAD_CHECK (Bug#5333).
3838
3839 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3840 Call SIGNAL_THREAD_CHECK.
3841
0b5397c2
SM
38422010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3843
3844 Try to fix bug#5314. This is probably not the final word, tho.
3845 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3846 recent-auto-save-p as a side-effect.
3847 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3848 * buffer.c (Fkill_buffer, reset_buffer):
3849 * editfns.c (Fsubst_char_in_region):
3850 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3851 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3852
dc954cb2
KH
38532010-01-13 Kenichi Handa <handa@m17n.org>
3854
3855 Display buffer name, etc. in mode line by composing correctly.
3856
3857 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3858 STRING is not nil.
0b5397c2 3859 (display_mode_element): Adjust for the change of
dc954cb2
KH
3860 decode_mode_spec and display_line.
3861 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3862 (display_string): Handle the case that STRING is non-null and
3863 LISP_STRING is not nil.
3864
0b5397c2
SM
3865 * xterm.c (x_draw_composite_glyph_string_foreground):
3866 Pay attention to s->face->overstrike.
dc954cb2
KH
3867
3868 * composite.c (composition_reseat_it): Don't check PT if STRING is
3869 non nil.
3870
4a00eaca
YM
38712010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3872
3873 * keyboard.c (read_char): Don't apply previous change when current
3874 buffer is unchanged by command execution.
3875
60abb287
JD
38762010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3877
3878 * keyboard.c (read_char): Return after executing from special map.
3879
893db5bc
GM
38802010-01-12 Glenn Morris <rgm@gnu.org>
3881
3882 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3883 bug-gnu-emacs rather than emacs-pretest-bug.
3884
4d03ece0
CY
38852010-01-11 Chong Yidong <cyd@stupidchicken.com>
3886
3887 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3888 initializing the Lisp variables that depend on them.
3889
1df47e38
YM
38902010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3891
3892 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3893 Clear areas that will not be updated after change of menu bar lines.
3894 Clear the menu bar window's current matrix when the window gets empty.
3895
2f1c6384
CY
38962010-01-09 Chong Yidong <cyd@stupidchicken.com>
3897
e398c61c
CY
3898 * intervals.h, textprop.c (extend_property_ranges): Return value
3899 and args changed. Discard properties that begin at or after the
3900 new end (Bug#5306).
3901
3902 * editfns.c (Fformat): Caller changed.
3903
e5a29a10
CY
3904 * nsterm.m (ns_set_default_prefs): Delete function.
3905 (syms_of_nsterm): Initialize ns_command_modifier,
3906 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3907 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3908
2f1c6384
CY
3909 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3910 position (Bug#4040).
3911
d427a9fa
EZ
39122010-01-09 Eli Zaretskii <eliz@gnu.org>
3913
3914 * editfns.c (Ffloat_time): Doc fix.
3915
21b9df2f
JD
39162010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3917
3918 * xfns.c (Fx_create_frame): Don't create frame larger than display
3919 by default bug#3643.
3920
4b00d3b1
YM
39212010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3922
3923 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3924 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3925 windows above internal border.
3926
3927 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3928 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3929 windows above internal border.
3930
3931 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3932 tool bar windows specially.
3933
3934 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3935
3936 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3937 specially.
3938 (XTflash): Take account of menu bar height.
3939
3940 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3941 specially.
3942
5075d853
JD
39432010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3944
ac146f82 3945 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3946 also be true before we can return early (bug #5339).
3947
474217c8
CY
39482010-01-06 David Reitter <david.reitter@gmail.com>
3949
3950 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3951 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3952 (Bug#3233).
3953
c0e6d47d
JD
39542010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3955
d0cf45b7
JD
3956 * font.c (font_open_entity): Enable chache and call cached_font_ok
3957 for the driver if defined.
3958 (QCuser_spec): New symbol.
3959 (font_spec_from_name): Save name as user-spec.
3960 (font_load_for_lface): Keep user-spec instead of name.
3961 (font_open_by_name): Save name as user-spec.
3962 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3963 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3964
3965 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3966 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3967 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3968
3969 * font.h (struct font_driver): Add cached_font_ok.
3970
c0e6d47d
JD
3971 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3972
7c583cd8
JD
39732010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3974
3975 * xterm.c (x_new_font): Move code for setting rows/cols before
3976 resizing ...
ac146f82 3977 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3978
3979 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3980 (xg_frame_resized, xg_frame_set_char_size):
3981 Call xg_clear_under_internal_border.
7c583cd8 3982 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3983
03f77f0a
CY
39842010-01-05 Chong Yidong <cyd@stupidchicken.com>
3985
3986 * keyboard.c (read_key_sequence): Catch keyboard switch after
3987 making a new tty frame (Bug#5095).
3988
2a1ef5be
KH
39892010-01-05 Kenichi Handa <handa@m17n.org>
3990
3991 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3992
e3eb1dae
SM
39932010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3994
3995 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3996 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3997 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3998
777013f2
MA
39992010-01-03 Michael Albinus <michael.albinus@gmx.de>
4000
4001 * dbusbind.c (xd_add_watch): Improve debug message.
4002 (xd_remove_watch): Improve debug message. If DATA is the session
4003 bus, unset D-Bus session environment.
4004 (Fdbus_init_bus): Pass the bus as argument to
4005 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4006
8932b1c2
CY
40072010-01-01 Chong Yidong <cyd@stupidchicken.com>
4008
87231e2c
CY
4009 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4010
4801c5fa
CY
4011 * lread.c (syms_of_lread): Make it clearer that these are the
4012 names of loaded files (Bug#5068).
4013
8932b1c2
CY
4014 * eval.c (run_hook_with_args): Handle the case where the global
4015 value has the obsolete single-function form (Bug#5026).
4016
11e3c684
CY
40172009-12-27 Chong Yidong <cyd@stupidchicken.com>
4018
4019 * minibuf.c (Fall_completions): Minor optimization.
4020
5b28ce35
EZ
40212009-12-26 Eli Zaretskii <eliz@gnu.org>
4022
5ce6e4f4
JB
4023 * .gdbinit (pgx): Fix display of composite glyphs.
4024 Display cmp.from and cmp.to as well.
4025 (pitx): Fix last change.
5b28ce35 4026
bcffff46
KH
40272009-12-25 Kenichi Handa <handa@m17n.org>
4028
4029 * composite.h (composition_adjust_point): Update prototype.
4030
4031 * composite.c (composition_reseat_it): Don't make a composition
4032 spanning over point.
4033 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4034 composable characters.
4035 (composition_adjust_point): New arg NEW_PT. Callers changed.
4036
4037 * keyboard.c (command_loop_1): Force redisplay if the last point
4038 was within a composition.
4039 (adjust_point_for_property): Don't adjust point for automatic
4040 composition when called after buffer modification.
4041
3f670e9a
EZ
40422009-12-19 Eli Zaretskii <eliz@gnu.org>
4043
5ce6e4f4
JB
4044 * .gdbinit (pitx): Don't use enum names, use their values.
4045 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4046 (pgx): Don't use enum names, use their values.
4047 (pitmethod): New helper command.
4048 (pitx): Use it to display iteration method.
4049 (pgrowit): New command.
4050
ad903955
EZ
4051 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4052
3f670e9a
EZ
4053 Update dependencies in Makefile.in.
4054
4055 * Makefile.in (alloc.o): Depend on termhooks.h.
4056 (atimer.o): Depend on blockinput.h.
4057 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4058 and frame.h.
4059 (callint.o): Depend on systime.h, coding.h, and composite.h.
4060 (callproc.o): Depend on buffer.h.
4061 (casefiddle.o): Don't depend on charset.h.
4062 (casetab.o): Depend on character.h.
4063 (ccl.o): Depend on composite.h.
4064 (chartab.o): Depend on ccl.h.
4065 (cm.o): Depend on dispextern.h.
4066 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4067 (coding.o): Don't depend on $(INTERVALS_H).
4068 (composite.o): Don't depend on dispextern.h explicitly (it's in
4069 $(INTERVALS_H)). Depend on ccl.h.
4070 (data.o): Depend on systime.h, coding.h, composite.h,
4071 dispextern.h, font.h, and ccl.h.
4072 (dired.o): Depend on composite.h.
4073 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4074 composite.h (it's in $(INTERVALS_H)).
4075 (doc.o): Depend on systime.h, coding.h, and composite.h.
4076 (editfns.o): Don't depend explicitly on dispextern.h.
4077 (emacs.o): Depend on frame.h and coding.h.
4078 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4079 (fileio.o): Depend on frame.h and commands.h. Don't depend
4080 explicitly on dispextern.h.
4081 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4082 composite.h.
4083 (fns.o): Don't depend on termhooks.h.
4084 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4085 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4086 coding.h, $(INTERVALS_H), window.h, xterm.h.
4087 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4088 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4089 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4090 fontset.h, ccl.h, and ftfont.h.
4091 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4092 (gtkutil.o): Depend on dispextern.h and composite.h.
4093 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4094 termhooks.h, and ccl.h.
4095 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4096 (intervals.o): Depend on systime.h and coding.h.
4097 (keyboard.o): Depend on composite.h and coding.h.
4098 (keymap.o): Depend on coding.h and frame.h.
4099 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4100 (macros.o): Depend on systime.h, coding.h, and composite.h.
4101 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4102 and atimer.h.
4103 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4104 dispextern.h explicitly.
0b5397c2
SM
4105 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4106 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4107 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4108 (regex.o): Don't depend on charset.h.
4109 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4110 (search.o): Don't depend explicitly on composite.h.
4111 (sound.o): Depend on atimer.h and systime.h.
4112 (syntax.o): Don't depend explicitly on composite.h.
4113 (sysdep.o): Depend on coding.h and composite.h.
4114 (term.o): Depend on xterm.h and buffer.h.
4115 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4116 (textprop.o): Don't depend on dispextern.h explicitly.
4117 (undo.o): Depend on dispextern.h.
4118 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4119 dispextern.h and composite.h explicitly.
4120 (xdisp.o): Depend on ccl.h.
4121 (xfaces.o): Depend on coding.h and ccl.h.
4122 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4123 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4124 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4125 ftfont.h.
4126 (xgselect.o): New dependency.
4127 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4128 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4129 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4130 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4131 (xsmfns.o): Depend on frame.h and dispextern.h.
4132 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4133 sysselect.h.
4134
7a6f7fea
AS
41352009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4136
4137 * font.c (Fclear_font_cache): Pass correct cache argument to
4138 font_clear_cache.
4139
f4c21026
AS
41402009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4141
4142 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4143 twice.
4144
f7ab0997
CY
41452009-12-15 Chong Yidong <cyd@stupidchicken.com>
4146
4147 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4148 calling file-remote-p. Reported by Jim Meyering.
4149
fa8e045a
MA
41502009-12-15 Michael Albinus <michael.albinus@gmx.de>
4151
4152 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4153 avoid compiler warnings. (Bug #5217)
fa8e045a 4154
a63dba42
KH
41552009-12-14 Kenichi Handa <handa@m17n.org>
4156
4157 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4158 in 8-bit encoding.
4159
5ce6e4f4 41602009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4161
4162 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4163 tooltip windows.
4164
223e5fc6
JD
41652009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4166
36acb2a7
JD
4167 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4168 Xatom_net_window_type.
4169
4170 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4171 Xatom_net_window_type.
4172
b8f00677
JD
4173 * xterm.c (my_log_handler): New function.
4174 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4175 so we can filter out buggy messages. (Bug #5120).
b8f00677 4176
e5f0bc9a
JD
4177 * xterm.c (xg_scroll_callback): Parameter list changed,
4178 use parameter GtkScrollType to determine scroll/line/page.
4179 Only allow dragging if a button < 4 is grabbed (bug #5177).
4180 (xg_end_scroll_callback): New function.
4181 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4182 xg_create_scroll_bar.
4183
4184 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4185 (scroll_end_callback): Remove.
4186 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4187 button-release-event. Replace value-changed event with change-value,
4188 bug #5177,
4189 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4190 bug #5177.
4191
4192 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4193 (xg_create_scroll_bar): Add GCallback end_callback.
4194
223e5fc6
JD
4195 * xftfont.c (QClcdfilter): New variable.
4196 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4197 (syms_of_xftfont): Initialize QClcdfilter.
4198
3c055b77
JD
41992009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4200
4201 * xsettings.c (struct xsettings): Add member seen.
4202 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4203 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4204 (apply_xft_settings): Only update Xft settings with what member seen
4205 indicates as new.
4206
05fe33ff
EZ
42072009-12-12 Eli Zaretskii <eliz@gnu.org>
4208
4209 * dispextern.h (struct text_pos): Use EMACS_INT;
4210 (struct glyph): Use EMACS_INT for charpos.
4211 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4212 region_beg_charpos, region_end_charpos,
4213 redisplay_end_trigger_charpos, and also for
4214 iterator_stack_entry.end_charpos and
4215 iterator_stack_entry.stop_charpos.
4216
e8d7886a
JD
42172009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4218
5ce6e4f4 4219 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4220 (xg_create_scroll_bar): Call scroll_end_callback on button release
4221 event (bug #5177).
4222 (xg_event_is_for_scrollbar): != replaced with ==.
4223
d0db2ec8
KH
42242009-12-12 Kenichi Handa <handa@m17n.org>
4225
4226 * ftfont.c (struct ftfont_info): New member matrix.
4227 (ftfont_open): Setup xftfont_info->matrix.
4228 (MFLTFontFT): New member matrix.
4229 (FLOOR, CEIL, ROUND): New macros.
4230 (ftfont_get_metrics): Handle matrix transformation.
4231 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4232
4233 * xftfont.c (struct xftfont_info): New member matrix.
4234 (xftfont_open): Setup xftfont_info->matrix.
4235
42362009-12-10 Kenichi Handa <handa@m17n.org>
4237
4238 * xdisp.c (append_space_for_newline): Consider face-remapping.
4239
2cc7b62f
AS
42402009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4241
b87dd913
AS
4242 * xsettings.c: Include "keyboard.h".
4243
eba5eb94
AS
4244 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4245
2cc7b62f
AS
4246 Fix implicit function declarations.
4247 * cmds.c: Include "frame.h".
4248 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4249 * frame.h: Move declaration of delete_frame outside of
4250 HAVE_WINDOW_SYSTEM.
4251
a4ef73c8
CY
42522009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4253
4254 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4255
4256 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4257 GTK builds.
4258
944a300c
AS
42592009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4260
4261 * unexelf.c (unexec): Don't search for .data twice.
4262
022eef62
CY
42632009-12-05 Chong Yidong <cyd@stupidchicken.com>
4264
426ac949
CY
4265 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4266 if push failed.
4267 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4268 of push_display_prop (Bug#5000).
4269
022eef62
CY
4270 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4271 value of font_list_entities (Bug#5085).
4272
be95bee9
JB
42732009-12-04 Juanma Barranquero <lekktu@gmail.com>
4274
4275 Fix `string-to-number' to deal consistently with integers and floats.
4276 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4277 trailing characters, not just whitespace.
4278 (read1): Pass new arg 0 to keep old behavior.
4279 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4280 trailing chars, as it is already done for integers. Doc fixes.
4281 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4282
24c2d7ce
EZ
42832009-12-04 Eli Zaretskii <eliz@gnu.org>
4284
0b5397c2
SM
4285 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4286 Delete unused enumeration value.
24c2d7ce 4287
7e694795
EZ
42882009-12-03 Eli Zaretskii <eliz@gnu.org>
4289
4290 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4291
84b31826
SM
42922009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4293
4294 * process.c (Fmake_network_process): Fix up the tests for
4295 "connectionless socket", so they DTRT for seqpacket sockets as well.
4296
f00c449b
SM
42972009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4298
4299 * process.c (Qseqpacket): New symbol.
4300 (HAVE_SEQPACKET): New macro.
4301 (Fmake_network_process): Accept new :type `seqpacket'.
4302 (init_process): Add `seqpacket' feature when applicable.
4303 (syms_of_process): Initialize Qseqpacket.
4304
8096a0ff
YM
43052009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4306
4307 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4308 if entity is Qnil.
4309
3e0de07f
SM
43102009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4311
4312 * print.c (print_preprocess): Preprocess the key_and_value table of
4313 hashtables, even tho they're "hidden" (bug#5082).
4314
abeafb2a
JD
43152009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4316
4317 * frame.c (frame_make_pointer_invisible)
4318 (frame_make_pointer_visible): Declare f before statements.
4319
4bf47195
EZ
43202009-11-28 Eli Zaretskii <eliz@gnu.org>
4321
4322 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4323 omitted dependencies on lisp.h.
4324
c525b3f2
JD
43252009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4326
ece2d4ed
JD
4327 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4328 is NULL.
4329
4330 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4331
4332 * frame.c (frame_make_pointer_invisible)
3e0de07f 4333 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4334 frame.
4335
c525b3f2
JD
4336 * search.c (simple_search): Remove warning by making *p const.
4337
2f00e299
DN
43382009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4339
4340 * xdisp.c (power_letter): Remove duplicate const.
4341
084b049b
JD
43422009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4343
a1fadc6f
JD
4344 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4345
5ce6e4f4 4346 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4347 defaults (bug #5025).
4348
28259cac
SM
43492009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4350
4351 * insdel.c (adjust_markers_for_delete): Move it in the
4352 right direction! (bug#4803)
4353
e8e14166
YM
43542009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4355
4356 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4357
4358 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4359
86677b58
GM
43602009-11-24 Glenn Morris <rgm@gnu.org>
4361
4362 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4363
581e51e8
JD
43642009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4365
cfc86c7a
JD
4366 * Makefile.in: Must create deps for ecrt0.o in its rule.
4367
581e51e8
JD
4368 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4369 because that is what Gtk+ font dialog understands.
4370
4371 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4372 of Fcopy_sequence.
4373 (font_open_by_name): Put name given into QCname for font-object returned.
4374
4375 * frame.c (x_set_font): Save original font name as frame parameter
4376 font-parameter.
4377
4378 * xsettings.c (set_default_xft_settings): New function.
4379 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4380 is found.
4381
8b264ecb
AS
43822009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4383
4384 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4385 searching backwards through multibyte buffer.
4386
872870b2
JD
43872009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4388
4389 * xterm.c: #include xgselect.h.
4390 (x_initialize): Call xgselect_initialize.
4391
4392 * xsettings.c (something_changedCB): C++ comments => C comments.
4393 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4394 does that now.
4395
4396 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4397 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4398 (scroll_bar_button_cb): Remove.
5ce6e4f4 4399 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4400 event.
4401 (xg_create_scroll_bar): Don't bind button-press-event and
4402 button-release-event.
4403
4404 * process.c: Include xgselect.h if defined (USE_GTK) ||
4405 defined (HAVE_GCONF).
4406 (wait_reading_process_output): Call xg_select for the same condition.
4407
4408 * xgselect.c (xg_select): New function to better integrate with
4409 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4410
4411 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4412
4413 * Makefile.in (XOBJ): Add xgselect.o.
4414
62a6e103
AS
44152009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4416
0b5397c2
SM
4417 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4418 Remove ignored second argument. All callers changed.
62a6e103
AS
4419 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4420 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4421 * xdisp.c (string_char_and_length): Likewise.
4422
b0ca0f33
DN
44232009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4424
4425 * xterm.c (x_new_font):
4426 * print.c (print_object):
4427 * cmds.c (Fself_insert_command): Move declarations before statements.
4428
dd5a6279
CY
44292009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4430
4431 * s/cygwin.h: Remove unneeded linker flags.
4432
4a8e097d
JD
44332009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4434
0d1d0d26
JD
4435 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4436
4437 * xsettings.h: Declare xsettings_get_system_font.
4438
4439 * xsettings.c (xsettings_get_system_font): New function.
4440 (init_gconf): No use initiating gconf unless we have Xft also.
4441 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4442 HAVE_GCONF.
4443
4a8e097d
JD
4444 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4445 add a blank entry so it doesn't collapse into nothing.
4446
8ab1650e
SM
44472009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4448
4449 * lread.c (Funintern): Comment out last change.
4450
82c602f0
RS
44512009-11-19 Richard Stallman <rms@gnu.org>
4452
4453 * lread.c (Funintern): Error if symbol is t or nil.
4454
87e32266
SM
44552009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4456
4457 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4458 representation of Lisp integers.
4459 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4460
1b9ac145
AS
44612009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4462
4463 * lisp.h: Remove declaration of Ffont_get_system_font.
4464 * xfns.c: Move include of "xsettings.h".
4465 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4466
dfb3c4c6
JD
44672009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4468
87e32266
SM
4469 * xsettings.c (something_changedCB, Ffont_get_system_font):
4470 Check use_system_font.
dfb3c4c6
JD
4471 (syms_of_xsettings): DEFVAR font-use-system-font.
4472
9370c1d8
AS
44732009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4474
25fe851a
AS
4475 * xfns.c (x_default_font_parameter): Remove dead assignment.
4476
9370c1d8
AS
4477 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4478
637fa988
JD
44792009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4480
87e32266 4481 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4482 not have FC_LCD_*. #define them if not there.
a6eb20d8 4483
87e32266 4484 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4485
637fa988
JD
4486 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4487
4488 * xterm.c (handle_one_xevent): Call xft_settings_event for
4489 ClientMessage, PropertyNotify and DestroyNotify.
4490 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4491 Call xsettings_initialize.
4492
4493 * xftfont.c (xftfont_fix_match): New function.
4494 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4495 Call xftfont_fix_match after XftFontMatch.
4496
4497 * xfont.c (xfont_driver): Initialize all members.
4498
87e32266
SM
4499 * xfns.c (x_default_font_parameter):
4500 Try font from Ffont_get_system_font.
637fa988
JD
4501 Do not get font from x_default_parameter if we got one from
4502 Ffont_get_system_font.
87e32266 4503 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4504
4505 * w32font.c (w32font_driver): Initialize all members.
4506
4507 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4508
4509 * lisp.h: Declare syms_of_xsettings.
4510
87e32266
SM
4511 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4512 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4513
4514 * ftfont.c (ftfont_filter_properties): New function.
4515
4516 * frame.c (x_set_font): Remove unused variable lval.
4517
87e32266 4518 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4519
4520 * font.c (font_put_extra): Don't return if val is nil, it means
4521 boolean option is off.
4522 (font_parse_fcname): Collect all extra properties in extra_props
4523 and call filter_properties for all drivers with extra_props and
4524 font as parameter.
87e32266
SM
4525 (font_open_entity): Do not use cache, it does not pick up new
4526 fontconfig settings like hinting.
637fa988
JD
4527 (font_load_for_lface): If spec had a name in it, store it in entity.
4528
a73f9c9d 4529 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4530
4531 * config.in: HAVE_GCONF is new.
4532
4533 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4534 xsettings.o is new.
4535
5a942932
KH
45362009-11-17 Kenichi Handa <handa@m17n.org>
4537
4538 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4539 back to the default font in case that no suitable font is found.
4540
b7c7a4d1
SM
45412009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4542
4543 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4544 Suggested by Chad Brown <yandros@mit.edu>.
4545 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4546
072f1e39
JD
45472009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4548
4549 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4550
5d1e70a2
AS
45512009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4552
87e32266 4553 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4554
a53cfbe5
JD
45552009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4556
473a99b7
JD
4557 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4558 has a parent.
4559
a53cfbe5 4560 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4561 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4562
4563 * config.in: Generated (AUTO_DEPEND).
4564
f04bb9b2
MA
45652009-11-13 Michael Albinus <michael.albinus@gmx.de>
4566
b7c7a4d1 4567 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4568 Vdbus_registered_functions_table, because it contains also
4569 properties. Fix docstring.
b7c7a4d1 4570 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4571
8f11f7ec
SM
45722009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4573
4574 * alloc.c (mark_object): Don't reprocess marked strings.
4575 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4576 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4577
8a605fe8
KH
45782009-11-13 Kenichi Handa <handa@m17n.org>
4579
8f11f7ec 4580 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4581 semantics of Vword_combining_categories.
4582 (Vword_combining_categories): Describe the slight change of the
4583 semantics.
4584
241c4680
EZ
45852009-11-13 Eli Zaretskii <eliz@gnu.org>
4586
4587 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4588
4589 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4590
5d58e44c
SM
45912009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4592
4593 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4594
5e13f9d3
JB
45952009-11-12 Juanma Barranquero <lekktu@gmail.com>
4596
4597 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4598
cf54c754
DR
45992009-11-11 David Reitter <david.reitter@gmail.com>
4600
4601 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4602 variables to fix 2009-11-09 change.
4603
a4ada374
DN
46042009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4605
91433552
DN
4606 * process.c (ifflag_def): Make flag_sym constant.
4607 (Fnetwork_interface_info): Use a constant pointer.
4608 (ifflag_table):
4609 * xfns.c (cursor_bits):
4610 * xdisp.c (power_letter):
4611 * termcap.c (speeds, esctab):
4612 * sysdep.c (baud_convert):
4613 * keyboard.c (lispy_accent_codes, modifier_names):
4614 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4615 (jpeg_format, tiff_format, gif_format, svg_format)
4616 (interlace_start, interlace_increment, gs_format):
4617 * gtkutil.c (separator_names):
4618 * fringe.c (swap_nibble):
4619 * fns.c (base64_value_to_char, base64_char_to_value):
4620 * fileio.c (make_temp_name_tbl):
4621 * coding.c (suffixes): Make constant.
4622
f4265f6c
DN
4623 * frame.c (make_initial_frame):
4624 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4625 build_string.
4626 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4627
04420943
DN
4628 * s/freebsd.h:
4629 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4630
0a5d24ae
DN
4631 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4632 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4633
a4ada374
DN
4634 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4635 * xterm.c (syms_of_xterm):
4636 * xfaces.c (syms_of_xfaces):
4637 * xdisp.c (syms_of_xdisp):
4638 * lread.c (syms_of_lread):
4639 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4640 build_string.
91433552 4641
a4ada374
DN
4642 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4643
af98fc7f
SM
46442009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4645
8ab1650e 4646 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4647
e90292a9
JD
46482009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4649
4650 * keyboard.h: Declare timer_check.
4651
4652 * keyboard.c (timer_check_2): New function that does what the old
4653 timer_check did.
4654 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4655 returned, i.e. don't return -1 with timers pending.
4656
4657 * process.c: Remove extern declaration of timer_check.
4658
4659 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4660 even if timer_check returned -1.
4661
af98fc7f
SM
4662 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4663 xg_dialog_data.
e90292a9
JD
4664 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4665 the event loop.
4666 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4667 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4668 Destroy the dialog after xg_dialog_run.
4669
045b83c0
SM
46702009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4671
4672 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4673
1fb99a3a
JD
46742009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4675
4676 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4677
04e452cb
JB
46782009-11-09 Juanma Barranquero <lekktu@gmail.com>
4679
4680 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4681
ef7417fd
SM
46822009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4683
4684 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4685 w32menu.c, and nsmenu.m.
4686 Simplify the obsolete case where position is nil.
4687 (cleanup_popup_menu): New function, moved from nsmenu.m.
4688 (struct skp): Remove slot `notreal'.
4689 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4690 adjust callers.
4691 (single_menu_item): Adjust call to parse_menu_item.
4692 (syms_of_menu): Defsubr x-popup-menu.
4693 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4694 (keymap_panes): Don't export any more.
4695 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4696 (xmenu_show): Declare.
4697 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4698 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4699 * keyboard.h (parse_menu_item): Update declaration.
4700 * xmenu.c (Fx_popup_menu): Remove.
4701 (syms_of_xmenu): Don't defsubr x-popup-menu.
4702 * w32menu.c (Fx_popup_menu): Remove.
4703 (syms_of_w32menu): Don't defsubr x-popup-menu.
4704 * nsmenu.m (cleanup_popup_menu): Remove.
4705 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4706 moved to menu.c's Fx_popup_menu.
4707 (Fx_popup_menu): Remove.
4708 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4709 menu_items (it's done in menu.c already).
4710
424d6179
SM
47112009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4712
4713 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4714 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4715
c0df13a6 47162009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4717
4718 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4719 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4720 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4721 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4722
2de9f71c
SM
47232009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4724
4725 Let integers use up 2 tags to give them one extra bit and thus double
4726 their range.
4727 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4728 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4729 New macros.
4730 (enum Lisp_Type): Use them. Give explicit values.
4731 (Lisp_Type_Limit): Remove.
4732 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4733 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4734 Pay attention to USE_2_TAGS_FOR_INTS.
4735 (INTEGERP): Use LISP_INT_TAG_P.
4736 * fns.c (internal_equal): Simplify the default case.
4737 (sxhash): Use case_Lisp_Int.
4738 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4739 any more.
4740 (Ftype_of): Use case_Lisp_Int.
4741 (store_symval_forwarding): Take into account the fact that Ints can
4742 now have more than one tag.
4743 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4744 buffer_slot_type_mismatch):
4745 * xfaces.c (face_attr_equal_p):
4746 * print.c (print_object):
4747 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4748 Use case_Lisp_Int.
4749
323637a2
EZ
47502009-11-06 Eli Zaretskii <eliz@gnu.org>
4751
7ac65b38
EZ
4752 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4753
323637a2
EZ
4754 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4755 warning.
4756
e511451f
JD
47572009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4758
4759 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4760
4761 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4762
4763 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4764 ButtonPressRelease and MotionNotify (bug#4870).
4765
5e2327cf
DN
47662009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4767
5adc433e
DN
4768 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4769
d67b4f80
DN
4770 * xterm.c (syms_of_xterm):
4771 * xselect.c (syms_of_xselect):
4772 * xmenu.c (syms_of_xmenu):
4773 * xfns.c (syms_of_xfns):
4774 * xfaces.c (syms_of_xfaces):
4775 * xdisp.c (syms_of_xdisp):
4776 * window.c (syms_of_window):
4777 * w32fns.c (syms_of_w32fns):
4778 * undo.c (syms_of_undo):
4779 * textprop.c (syms_of_textprop):
4780 * terminal.c (syms_of_terminal):
4781 * syntax.c (syms_of_syntax):
4782 * sound.c (syms_of_sound):
4783 * search.c (syms_of_search):
4784 * print.c (syms_of_print):
4785 * minibuf.c (syms_of_minibuf):
4786 * macros.c (syms_of_macros):
4787 * keymap.c (syms_of_keymap, initial_define_key)
4788 (initial_define_lispy_key):
4789 * keyboard.c (syms_of_keyboard):
4790 * insdel.c (syms_of_insdel):
4791 * image.c (syms_of_image):
4792 * fringe.c (syms_of_fringe):
4793 * frame.c (syms_of_frame):
4794 * fontset.c (syms_of_fontset):
4795 * fns.c (syms_of_fns):
4796 * fns.c (syms_of_fns):
4797 * fileio.c (syms_of_fileio):
4798 * fileio.c (syms_of_fileio):
4799 * eval.c (syms_of_eval):
4800 * doc.c (syms_of_doc):
4801 * dispnew.c (syms_of_display):
4802 * dired.c (syms_of_dired):
4803 * dbusbind.c (syms_of_dbusbind):
4804 * data.c (syms_of_data):
4805 * composite.c (syms_of_composite):
4806 * coding.c (syms_of_coding):
4807 * cmds.c (syms_of_cmds):
4808 * charset.c (define_charset_internal, syms_of_character):
4809 * ccl.c (syms_of_ccl):
4810 * category.c (syms_of_category, init_category_once):
4811 * casetab.c (syms_of_casetab):
4812 * casefiddle.c (syms_of_casefiddle):
4813 * callint.c (syms_of_callint):
4814 * bytecode.c (syms_of_bytecode):
4815 * buffer.c (keys_of_buffer, syms_of_buffer):
4816 * alloc.c (syms_of_alloc):
4817 * process.c (syms_of_process, init_process):
4818 * lread.c (syms_of_lread, init_obarray):
4819 * font.c (build_style_table):
4820 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4821 intern_c_string, calls to make_pure_string with
4822 make_pure_c_string. Use pure_cons instead of Fcons.
4823
5e2327cf
DN
4824 * process.c (socket_options): Make it const.
4825 (set_socket_option, init_process): Use a const pointer.
4826
4827 * lread.c (intern_c_string): New function.
4828 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4829 (defvar_int): Uset it. Make the name const char*.
4830
4831 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4832 (defvar_int): Update prototypes.
4833 (DEFUN, EXFUN): Support for prototypes is now required.
4834 (intern_c_string): New prototype.
4835 (struct Lisp_Subr): Make symbol_name constant.
4836
4837 * font.c (struct table_entry): Remove unused member. Make NAMES
4838 constant.
4839 (weight_table, slant_table, width_table): Make constant.
4840
4841 * emacs.c (struct standard_args): Make name and longname constant.
4842
4843 * character.h (DEFSYM): Use intern_c_string.
4844
a56eaaef
DN
48452009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4846
4847 * alloc.c (make_pure_c_string): New function.
4848
4849 * eval.c (Fautoload): Purecopy all arguments.
4850
f6a07420
KH
48512009-11-05 Kenichi Handa <handa@m17n.org>
4852
4853 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4854 the buffer in case of replace.
4855
5d28d4b1
DN
48562009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4857
4858 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4859
b349d111
SM
48602009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4861
d528b1ce
SM
4862 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4863 when applicable (bug#4851).
4864
b349d111
SM
4865 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4866 (P_): Support for prototypes is now required.
4867
c38eb027
CY
48682009-10-31 Chong Yidong <cyd@stupidchicken.com>
4869
4870 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4871 (Bug#4827).
4872
0405f8d9
EZ
48732009-10-30 Eli Zaretskii <eliz@gnu.org>
4874
d528b1ce 4875 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4876
ca0a881a
DN
48772009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4878
4879 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4880
d528b1ce
SM
4881 * lread.c (Fload): Purecopy the file name when building
4882 Vpreloaded_file_list.
ca0a881a 4883
47e0e0e4
JR
48842009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4885
4886 * w32fns.c (syms_of_w32fns): Change default value of
4887 w32-scroll-lock-modifier to nil. (Bug#2827)
4888
057bce6f
JB
48892009-10-26 Juanma Barranquero <lekktu@gmail.com>
4890
782a943e 4891 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4892
242bc74c
AS
48932009-10-26 Andreas Schwab <schwab@redhat.com>
4894
4895 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4896
522d013a
JB
48972009-10-26 Juanma Barranquero <lekktu@gmail.com>
4898
4899 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4900 For delta < 0, skip check that only makes sense when the mini-window
4901 is going to be enlarged. (Bug#4534)
4902
18060980
CY
49032009-10-25 Chong Yidong <cyd@stupidchicken.com>
4904
4905 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4906 string in menu maps (Bug#4471).
4907
fec8f0fe
CY
49082009-10-24 Chong Yidong <cyd@stupidchicken.com>
4909
4910 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4911 FRAME_NS_VIEW on terminal frames (Bug#4765).
4912
10d66ec0
AS
49132009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4914
1cae01f7
AS
4915 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4916 DBUS_TYPE_UINTnn separately to get proper sign extension.
4917
58a12889
AS
4918 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4919 can properly handle unsigned types.
d528b1ce 4920 (make_uid, make_gid): Remove.
58a12889 4921
987c9327
AS
4922 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4923 types again.
4924
522d013a 4925 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4926 (system_process_attributes): Likewise.
4927
905a9ed3
DN
49282009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4929
4930 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4931
4932 * eval.c (Fautoload): Purecopy the filename. Simplify.
4933
4934 * category.c (Fdefine_category): Purecopy docstring.
4935
a599b3e8
AS
49362009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4937
7b792fc9
AS
4938 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4939
a599b3e8
AS
4940 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4941
b35ac83e
CY
49422009-10-23 Chong Yidong <cyd@stupidchicken.com>
4943
4944 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4945 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4946 (Bug#4775).
4947
e8903e00
SM
49482009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4949
4950 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4951 (init_fileio_once):
4952 * lisp.h (init_fileio_once): Remove.
4953 * emacs.c (main): Don't call init_fileio_once.
4954
8f43cbf3
DN
49552009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4956
4957 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4958
26898943
AS
49592009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4960
4961 * doprnt.c (doprnt): Fix overflow check.
4962
5c646d5a
JD
49632009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4964
3132a7ea
JD
4965 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4966
5c646d5a
JD
4967 * xterm.h (x_wait_for_event): Declare it.
4968
4969 * xterm.c (pending_event_wait): New variable.
4970 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4971 see pending_event_wait.eventtype.
4972 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4973 (x_new_font): Call change_frame_size with new rows/columns before we
4974 try to resize the frame.
5c646d5a 4975 (x_wait_for_event): New function.
d528b1ce
SM
4976 (x_set_window_size_1): Don't change gravity unless change_gravity
4977 is set.
5c646d5a
JD
4978 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4979 don't change frame size, instead wait for the ConfigureNotify.
4980 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4981 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4982 (x_initialize): Initialize pending_event_wait.
4983
4984 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4985 size.
4986
4987 * widget.c (EmacsFrameSetValues): Add comment.
4988 (EmacsFrameSetCharSize): Just call x_set_window_size.
4989
4990 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4991 x_wait_for_event.
d528b1ce 4992 (flush_and_sync): Remove again.
5c646d5a
JD
4993 (xg_get_font_name): Suggest monospace if no previous font is known.
4994
e9c1637d
SM
49952009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4996
4997 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4998 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4999
5a72cccb
YM
50002009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5001
5002 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5003 processing pending events when event is filtered for input method.
ab04798f 5004 (Bug#3681)
5a72cccb 5005
2629aa37
JB
50062009-10-20 Juanma Barranquero <lekktu@gmail.com>
5007
5008 * fns.c: Add #endif accidentally removed in previous change.
5009
c3417a74
DN
50102009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5011
5012 * fns.c: Remove code for unsupported system: MAC_OS.
5013 * image.c: Likewise. Include setjmp.h.
5014
9685cef2
JD
50152009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5016
5017 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5018 pixel -1 (bug #4742).
5019
d7306fe6
DN
50202009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5021
019d2c4c
DN
5022 * process.c (create_pty): Remove conditionals for no longer
5023 supported systems: UNIPLUS and RTU.
5024
ee6bacd4
DN
5025 * xterm.c:
5026 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5027
d7306fe6
DN
5028 * alloc.c: Do not define struct catchtag.
5029 * eval.c: Move struct catchtag definition ...
5030 * lisp.h: ... here.
5031
5032 * image.c: Move png.h #include earlier to avoid warnings.
5033
5034 * xterm.c:
5035 * xsmfns.c:
5036 * xselect.c:
5037 * xrdb.c:
5038 * xmenu.c:
5039 * xftfont.c:
5040 * xfont.c:
5041 * xfns.c:
5042 * xfaces.c:
5043 * xdisp.c:
5044 * window.c:
5045 * widget.c:
5046 * w32xfns.c:
5047 * w32uniscribe.c:
5048 * w32term.c:
5049 * w32select.c:
5050 * w32reg.c:
5051 * w32proc.c:
5052 * w32menu.c:
5053 * w32inevt.c:
5054 * w32heap.c:
5055 * w32font.c:
5056 * w32fns.c:
5057 * w32console.c:
5058 * w32.c:
5059 * w16select.c:
5060 * vm-limit.c:
5061 * unexsol.c:
5062 * unexec.c:
5063 * unexcw.c:
5064 * unexaix.c:
5065 * undo.c:
5066 * tparam.c:
5067 * textprop.c:
5068 * terminfo.c:
5069 * terminal.c:
5070 * termcap.c:
5071 * term.c:
5072 * syntax.c:
5073 * sound.c:
5074 * sheap.c:
5075 * search.c:
5076 * scroll.c:
5077 * region-cache.c:
5078 * regex.c:
5079 * ralloc.c:
5080 * process.c:
5081 * print.c:
b024548b
DN
5082 * nsterm.m:
5083 * nsselect.m:
5084 * nsmenu.m:
5085 * nsimage.m:
5086 * nsfont.m:
5087 * nsfns.m:
d7306fe6
DN
5088 * msdos.c:
5089 * minibuf.c:
5090 * menu.c:
5091 * marker.c:
5092 * macros.c:
5093 * keymap.c:
5094 * keyboard.c:
5095 * intervals.c:
5096 * insdel.c:
5097 * indent.c:
5098 * gtkutil.c:
5099 * ftxfont.c:
5100 * ftfont.c:
5101 * fringe.c:
5102 * frame.c:
5103 * fontset.c:
5104 * font.c:
5105 * fns.c:
5106 * floatfns.c:
5107 * filelock.c:
5108 * fileio.c:
5109 * emacs.c:
5110 * editfns.c:
5111 * dosfns.c:
5112 * doprnt.c:
5113 * doc.c:
5114 * dispnew.c:
5115 * dired.c:
5116 * dbusbind.c:
5117 * data.c:
5118 * composite.c:
5119 * coding.c:
5120 * cmds.c:
5121 * cm.c:
5122 * chartab.c:
5123 * charset.c:
5124 * character.c:
5125 * ccl.c:
5126 * category.c:
5127 * casetab.c:
5128 * casefiddle.c:
5129 * callproc.c:
5130 * callint.c:
5131 * bytecode.c:
5132 * buffer.c:
5133 * atimer.c: Include setjmp.h. (Bug#4643)
5134
fd5f21e6
SM
51352009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5136
4c0354d7
SM
5137 Remove leftover table unibyte_to_multibyte_table.
5138 * character.c (unibyte_to_multibyte_table): Remove.
5139 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5140 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5141 * character.h (UNIBYTE_TO_CHAR): New macro.
5142 (MAKE_CHAR_MULTIBYTE): Use it.
5143 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5144 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5145 (message_dolog, set_message_1):
5146 * search.c (Freplace_match):
5147 * editfns.c (Fcompare_buffer_substrings):
5148 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5149 (concat):
5150 * insdel.c (copy_text, count_size_as_multibyte):
5151 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5152 * term.c (produce_glyphs):
5153 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5154 * regex.c (RE_CHAR_TO_MULTIBYTE):
5155 * cmds.c (internal_self_insert):
5156 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5157
fd5f21e6
SM
5158 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5159
4418646e
DN
51602009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5161
5162 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5163
35f5c1d2
JB
51642009-10-16 Juanma Barranquero <lekktu@gmail.com>
5165
5166 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5167
a0cd8f6b
AR
51682009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5169
5170 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5171 still needed under Tiger.
5172
5173 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5174
5175 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5176 __Apple__.
5177
5178 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5179
01a8d3fa
KH
51802009-10-15 Kenichi Handa <handa@m17n.org>
5181
5182 * print.c (print_object): Escape a symbol like "2E10" too.
5183
bf6c75c9 51842009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5185
5186 Cleanups and changes for 64-bit compile under Snow Leopard.
5187 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5188
5189 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5190
c5959062 5191 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5192 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5193 cast argument.
5194 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5195 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5196
5197 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5198
5199 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5200 where appropriate.
5201
5202 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5203 where appropriate.
6e4780c5
JB
5204 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5205 Use stringWithUTF8String.
bf6c75c9
AR
5206 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5207
6e4780c5
JB
5208 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5209 Add formal protocol mention to inheritance.
bf6c75c9
AR
5210 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5211
6e4780c5
JB
5212 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5213 Fix printf format.
bf6c75c9
AR
5214 (ns_query_color): Use CGFloat where appropriate.
5215 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5216 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5217 argument.
5218
3d87f118
AR
5219 * config.in (NS_HAVE_NSINTEGER): Drop.
5220
a95c8102
AR
5221 * dbusbind.c (dbus-method-return-internal)
5222 (dbus-method-error-internal): Use long format in printf, and cast
5223 argument.
5224
5225 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5226 in printf, and cast argument.
5227
6873acca 5228 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5229 cast argument.
5230
9ec6f100
GM
52312009-10-11 Glenn Morris <rgm@gnu.org>
5232
5233 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5234
5be883cd
JD
52352009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5236
5237 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5238 menu bar with a small width so it doesn't enlarge the frame.
5239
d7a39b51
JB
52402009-10-08 Juanma Barranquero <lekktu@gmail.com>
5241
5242 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5243
0c2b6f8e
GM
52442009-10-06 Glenn Morris <rgm@gnu.org>
5245
5246 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5247 SOME_MACHINE_LISP (this enters indirectly via DOC).
5248
e02131a2
EZ
52492009-10-05 Eli Zaretskii <eliz@gnu.org>
5250
5251 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5252
b4744254
EZ
52532009-10-04 Eli Zaretskii <eliz@gnu.org>
5254
5255 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5256 Doc fix.
5257
dbf64827
JB
52582009-10-03 Martin Rudalics <rudalics@gmx.at>
5259
5260 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5261
e9a0aef8
MA
52622009-10-02 Michael Albinus <michael.albinus@gmx.de>
5263
d528b1ce 5264 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5265 used anymore outside fileio.c.
5266
5267 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5268
64eb2b56
JB
52692009-10-01 Juanma Barranquero <lekktu@gmail.com>
5270
5271 * lisp.h (Qdelete_directory_internal):
5272 Declare, instead of Qdelete_directory.
5273
5274 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5275
9d28c33e
SM
52762009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5277
5278 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5279
9d8f3bd9
MA
52802009-10-01 Michael Albinus <michael.albinus@gmx.de>
5281
9d28c33e 5282 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5283 Fdelete_directory. It is not a command anymore. It has no file
5284 name handler.
5285
9694740b
SM
52862009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5287
5288 * xdisp.c (get_next_display_element): Use an enum in last change.
5289
748e162f
KH
52902009-09-28 Kenichi Handa <handa@m17n.org>
5291
9694740b 5292 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5293 unibyte_display_via_language_environment in handling
5294 Vnobreak_char_display.
5295
17efd58d
AR
52962009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5297
5298 * nsterm.h (ns_app_name): New extern variable.
5299
5300 * nsterm.m (ns_app_name): New variable.
5301 (ns_term_init): Set and use it.
5302 (ns_term_shutdown): Use it.
5303
5304 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5305 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5306
5307 * nsfns.m (ns_set_name_iconic, ns_set_name)
5308 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5309 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5310
9694740b
SM
5311 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5312 Remove double-casting in client_data comparison.
31c2d412 5313
3208cb35
YM
53142009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5315
5316 * keyboard.c (make_lispy_event): Remember last wheel direction.
5317 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5318
b7d552d6
GM
53192009-09-26 Glenn Morris <rgm@gnu.org>
5320
5321 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5322 internal.elc. Add term/pc-win.elc.
5323 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5324 term/x-win.elc.
5325 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5326 term/w32-win.elc.
5327 (NS_SUPPORT): New.
5328 (lisp): Add NS_SUPPORT.
5329 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5330
4ff670a8
DR
53312009-09-25 David Reitter <david.reitter@gmail.com>
5332
5333 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5334 on Mac OS X 10.6+ (bug#4513).
5335
feabfb6c
JB
53362009-09-24 Juanma Barranquero <lekktu@gmail.com>
5337
5338 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5339 some parts of Emacs code (like font selection) don't grok them.
5340 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5341
de59072a
AS
53422009-09-24 Andreas Schwab <schwab@redhat.com>
5343
5344 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5345
a489517b
JB
53462009-09-24 Juanma Barranquero <lekktu@gmail.com>
5347
5348 * dired.c (Fdirectory_files): Fix typo in docstring.
5349
0592970c
AR
53502009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5351
5352 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5353 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5354 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5355 under GNUstep.
5356 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5357
5358 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5359 glyph advancement.
5360
48e8a88b
AR
53612009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5362
5363 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5364 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5365
5366 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5367 deleted (bug #4492).
5368
e14f0a78
AR
5369 * nsfont.m (Vns_reg_to_script): New lisp variable.
5370 (syms_of_nsfont): Declare it.
5371 (ns_registry_to_script): New function.
5372 (ns_get_req_script): Call it.
5373 (ns_findfonts): Don't give up on non-unicode registry.
5374
5375 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5376
5b650faa
SM
53772009-09-20 Tom Tromey <tromey@redhat.com>
5378
5379 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5380 batch mode (bug#4228).
5381
a489517b 53822009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5383
5384 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5385 carefully. (Bug #4339)
0bae4e09 5386
fcfe06f3
CY
53872009-09-18 Chong Yidong <cyd@stupidchicken.com>
5388
d798ba87 5389 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5390
31642728
AR
53912009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5392
5393 * emacs.c (inhibit_x_resources): Update doc string for NS.
5394 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5395 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5396
5397 * nsterm.h (ns_no_defaults): Remove.
5398
5399 * nsterm.m (ns_no_defaults): Remove.
5400 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5401 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5402 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5403 don't update the NSWindow itself.
5404 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5405 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5406
5407 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5408 ns_use_qd_smoothing.
5409
5410 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5411 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5412 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5413 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5414
8686ac71
JB
54152009-09-17 Juanma Barranquero <lekktu@gmail.com>
5416
5417 * emacs.c (inhibit_x_resources): New variable.
5418 (main) [HAVE_NS]: Don't process --quick command line option.
5419 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5420
5421 * lisp.h (inhibit_x_resources): Declare it extern.
5422
5423 * w32reg.c (x_get_string_resource):
5424 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5425
e227ba05
EZ
54262009-09-17 Eli Zaretskii <eliz@gnu.org>
5427
362654a6
JB
5428 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5429 Add lisp/term/internal.elc.
e227ba05 5430
742d40e8
SM
54312009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5432
5433 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5434 (bug#4461).
5435
005bd5a2
DN
54362009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5437
5438 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5439
5440 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5441 (OBJECTS_MACHINE): Remove, unused.
5442
f9af9719
SM
54432009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5444
5445 * frame.c (x_get_resource_string): Remove unused.
5446
0307c7d2
JD
54472009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5448
5449 * xterm.c (x_new_font): Call change_frame_size before calling
5450 x_set_window_size, in case frame size won't change.
5451
5452 * frame.c (x_set_font): Remove dead code.
5453
428b13d6
SM
54542009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5455
5456 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5457
5766c380
SM
54582009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5459
5460 * lread.c (Fload): Don't output a message after loading an obsolete
5461 package any more (done in Lisp now).
5462
2fd0161b
CY
54632009-09-12 Chong Yidong <cyd@stupidchicken.com>
5464
5465 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5466
bc5e75b6
SM
54672009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5468
5469 * keymap.c (Fwhere_is_internal): Use nconc2.
5470
c31c985e
AM
54712009-09-11 Alan Mackenzie <acm@muc.de>
5472
5473 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5474 batch mode.
5475
78012bd2
AS
54762009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5477
5478 * xdisp.c (display_mode_element): Detect cycles.
5479
9d889332
SM
54802009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5481
5482 * keymap.c (where_is_internal): Don't erroneously return nil right after
5483 filling the cache.
5484 (where_is_internal_1): Fix up typo.
5485
7ab5d780
GM
54862009-09-11 Glenn Morris <rgm@gnu.org>
5487
5488 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5489 share a common doc-string.
5490
5238a749
SM
54912009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5492
66d77eda
SM
5493 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5494 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5495
5238a749
SM
5496 * keymap.c (QCadvertised_binding): New constant.
5497 (syms_of_keymap): Initialize it.
5498 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5499 if applicable.
5500
19f48442
SM
55012009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5502
50d4ba39
SM
5503 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5504 (parse_menu_item): Streamline since bindings are recomputed all the
5505 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5506 more and don't support lmenu's menu-alias any more either.
5507
a88a5372
SM
5508 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5509 (where_is_internal): Strip it down to only traverse the keymaps.
5510 Move the cache handling from Fwhere_is_internal to here.
5511 (Fwhere_is_internal): Move the handling of remapping and the choice of
5512 the best binding from where_is_internal to here.
5513 Unify the cached/noncached paths, so remapping is also handled
5514 correctly when the cache is used, and so the cache can be used to
5515 speed up remap-handling when applicable.
5516 Give preference to non-remapped bindings.
5517 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5518 non-remapped bindings.
5519 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5520 command remapping.
5521
19f48442
SM
5522 * xdisp.c (display_mode_element): Move list length limit from 50 to
5523 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5524
599498c3 55252009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5526
5527 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5528
f9b7b5ac
SM
55292009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5530
a53af587
JB
5531 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5532 (Bug#4334)
5533
f9b7b5ac
SM
5534 * keymap.c (where_is_internal): Filter out shadowed remappings.
5535 Assume that where_is_internal returns unshadowed bindings to simplify
5536 the code and get rid of the gotos. Use ASIZE.
5537
04f4b72d
JD
55382009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5539
4da146f2
JD
5540 * xterm.c (x_focus_changed): If we get a focusout and pointer
5541 is invisible, make it visible.
5542
04f4b72d
JD
5543 * xterm.h: Remove condition for declaration of
5544 x_*_window_to_frame.
5545
7cef7ce3
SM
55462009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5547
5548 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5549 initial terminal as well.
5550
a54fa5b7
JD
55512009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5552
5553 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5554 x_menubar_window_to_frame.
a54fa5b7 5555
50426a04 5556 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5557 (XTmouse_position): Do not return valid positions
5558 for clicks in the menubar and the toolbar for Gtk+.
5559
5560 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5561 if the widget for the event has the same top level as a frame,
5562 return the frame.
5563 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5564 internal windows, bug #4122.
5565 (x_non_menubar_window_to_frame): Remove.
5566
5a021dd0
GM
55672009-09-02 Glenn Morris <rgm@gnu.org>
5568
5569 * buffer.c (default-major-mode): Move most of the doc from here...
5570 (major-mode): ... to here.
5571
548fe2f3
NR
55722009-08-30 Nick Roberts <nickrob@snap.net.nz>
5573
5574 * process.c (wait_reading_process_output): Keep the descriptor
5575 when pty is used by a non-child process, e.g., in I/O buffer of
5576 GDB this allows inferior to be restarted.
5577
e0840eef
EZ
55782009-08-29 Eli Zaretskii <eliz@gnu.org>
5579
5580 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5581 both branches into one.
5582
82e98df4
SM
55832009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5584
5585 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5586 (main): Use enable-multibyte-characters rather than
5587 default-enable-multibyte-characters. Output a warning message when
5588 running a unibyte session.
5589
890617cb
YM
55902009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5591
5592 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5593 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5594 (copy_data_segment): Also copy __program_vars section.
5595 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5596 (dump_it) [LC_DYLD_INFO]: Use it.
5597
5598 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5599
e7adeadc
EZ
56002009-08-28 Eli Zaretskii <eliz@gnu.org>
5601
5602 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5603 $(SRC)/buildobj.h.
5604 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5605 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5606 $(SRC)/buildobj.h.
5607 (clean): Add buildobj.h.
5608
3ed8bbdc
TZ
56092009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5610
5611 * print.c (print_object): Set escapeflag to 1 when printing
5612 hashtable keys and values.
5613
155a6764
SM
56142009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5615
5616 * lread.c (read_integer): Use doubles (and potentially return a float
5617 number) as we do in string-to-number.
5618 (read1): Use strtol to read integers, signal errors on strtol's
5619 overflow and use floats if strtol's output is too large for
5620 Elisp integers.
5621
877610de
EZ
56222009-08-27 Eli Zaretskii <eliz@gnu.org>
5623
5624 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5625 (make-buildobj-SH): Fix last change.
5626 (SRC): Move to before where it's first used.
5627
ef73e7be
KH
56282009-08-27 Kenichi Handa <handa@m17n.org>
5629
550c8289
KH
5630 * process.c (send_process): Use encode_coding_object instead of
5631 encode_coding_string to perform eol-conversion even if the string
5632 is unibyte.
5633
60afa08d
KH
5634 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5635 character.
5636
ef73e7be 5637 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5638 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5639
7b3a82d7
DN
56402009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5641
5654bf63
DN
5642 * callproc.c (Fcall_process): Remove always true #if.
5643
7b3a82d7
DN
5644 * lisp.h: Replace #if 0 code for checking with text pointing to
5645 the --enable-checking configure flag.
5646
5647 * emacs.c (main): Mention the --enable-profiling configure flag
5648 instead of using CFLAGS.
5649
878bde49
KR
56502009-08-26 Ken Raeburn <raeburn@raeburn.org>
5651
5652 * Makefile.in (buildobj.h): New target.
5653 (doc.o): Depend on it.
5654 (temacs${EXEEXT}): Don't generate buildobj.lst.
5655 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5656 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5657 ($(BLD)/doc.$(O)): Depend on it.
5658 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5659 provided by Eli Zaretskii.)
5660 ($(TEMACS)): Don't generate buildobj.lst.
5661 * doc.c: Include buildobj.h.
5662 (buildobj): New static variable.
5663 (Fsnarf_documentation): Use it, instead of opening and reading
5664 buildobj.lst.
5665
1574224c
MA
56662009-08-25 Michael Albinus <michael.albinus@gmx.de>
5667
5668 * dbusbind.c (Fdbus_call_method)
5669 (Fdbus_call_method_asynchronously): Use English numeric format for
5670 timeout values in doc string.
5671
d9da2f45
KH
56722009-08-25 Kenichi Handa <handa@m17n.org>
5673
ef73e7be
KH
5674 * alloc.c (mark_char_table): New function.
5675 (mark_object): Use mark_char_table for a char-table.
5676
d9da2f45
KH
5677 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5678 (CHAR_TABLE_REF): Use it.
5679
c8edcc01
KR
56802009-08-23 Ken Raeburn <raeburn@raeburn.org>
5681
5682 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5683 before invoking the newly build emacs to check for load-path
5684 shadowing.
5685
7763401b
GM
56862009-08-22 Glenn Morris <rgm@gnu.org>
5687
5688 * Makefile.in (bootstrap_exe): New variable.
5689 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5690 Use ${bootstrap_exe}.
5691
729eadda
EZ
56922009-08-22 Eli Zaretskii <eliz@gnu.org>
5693
5694 * coding.h (encode_coding_string): Don't encode unibyte strings.
5695 (Bug#4047)
5696
eb4c6ace
MA
56972009-08-22 Michael Albinus <michael.albinus@gmx.de>
5698
5699 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5700
5701 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5702 intended as hotfix only.
5703 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5704
36e34d1b
AR
57052009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5706
5707 * nsterm.m (ns_get_color): Update documentation properly for last
5708 change, and clean up loose ends in the code left by it. Fix
5709 longstanding bug with 16-bit hex parsing, and add support for
5710 yet another X11 format (rgb:r/g/b) for compatibility.
5711 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5712 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5713
f983eb8a
SM
57142009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5715
5716 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5717
3f56d3c6
MA
57182009-08-20 Michael Albinus <michael.albinus@gmx.de>
5719
5720 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5721 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5722 (xd_initialize, xd_pending_messages): Check, whether
5723 $DBUS_SESSION_BUS_ADDRESS is set.
5724
fb641d68
YM
57252009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5726
5727 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5728
5729 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5730
cf59a374
GM
57312009-08-20 Glenn Morris <rgm@gnu.org>
5732
5733 * emacs.c (system-type): Doc fix.
5734
1373f3be
SM
57352009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5736
5737 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5738 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5739
058ed861
MA
57402009-08-18 Michael Albinus <michael.albinus@gmx.de>
5741
1373f3be
SM
5742 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5743 New functions.
058ed861
MA
5744 (xd_initialize): Revert change from 2009-08-16.
5745
563a866e 57462009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5747
5748 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5749 font-group vector, return nil.
5fc05db0 5750
e42bdf01
CY
57512009-08-17 Chong Yidong <cyd@stupidchicken.com>
5752
5753 * process.c (status_notify): Don't perform redisplay.
5754 (Fdelete_process, list_processes_1, process_send_signal):
5755 Expliticly perform redisplay.
5756 (wait_reading_process_output): Always check process status, but
5757 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5758
4230ab74
KR
57592009-08-17 Ken Raeburn <raeburn@raeburn.org>
5760
1373f3be 5761 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5762 (XFLOAT_INIT): New macro for storing a float value.
5763 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5764 * fns.c (sxhash): Copy out the value of a float in order to
5765 examine its bytes.
5766 * dbusbind.c (xd_append_arg): Likewise.
5767
4230ab74
KR
5768 * emacs.c (main): Don't call syms_of_data twice.
5769
a0645cdd
MA
57702009-08-16 Michael Albinus <michael.albinus@gmx.de>
5771
5772 * dbusbind.c (xd_initialize): Add connection file descriptor to
5773 input_wait_mask, in order to let select() detect, whether a new
5774 message has been arrived.
ca4f31ea 5775 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5776
485db0ba
MA
57772009-08-15 Michael Albinus <michael.albinus@gmx.de>
5778
1373f3be
SM
5779 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5780 New functions.
485db0ba
MA
5781
5782 * lisp.h (xd_pending_messages): Declare.
5783
5784 * keyboard.c (readable_events): Call xd_pending_messages.
5785
b5b98ff4
CY
57862009-08-15 Chong Yidong <cyd@stupidchicken.com>
5787
1373f3be 5788 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5789
f8354c6e
CY
5790 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5791
b5b98ff4
CY
5792 * buffer.c (set_buffer_internal_1)
5793 (swap_out_buffer_local_variables): Check for unbound local
5794 variables (Bug#4138).
5795
8b9fc636
EZ
57962009-08-14 Eli Zaretskii <eliz@gnu.org>
5797
5798 * process.c (create_pty): Fix last change.
5799
ce959360
CY
58002009-08-13 Chong Yidong <cyd@stupidchicken.com>
5801
5802 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5803 (xbm_load_image): Caller changed.
64b807c9 5804 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5805
c7baf7e9
NR
58062009-08-13 Nick Roberts <nickrob@snap.net.nz>
5807
5808 * process.c (create_pty): New function.
5809 (Fstart_process): Use it to allow Emacs to just associate a pty
5810 with the buffer. See associated change in gdb-mi.el.
5811 (list_processes_1): Deal with no program name.
5812 (start_process_unwind): Use pid == -2 to mean no process.
5813
1ac9108a
SM
58142009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5815
5816 * cmds.c (nonundocount): New global variable.
5817 (keys_of_cmds): Initialize it.
5818 (Fself_insert_command): Use it to combine upto 20 sequential chars
5819 into a single undo entry, just like the Qself_insert_command code in
5820 keyboard.c does.
5821 Call frame_make_pointer_invisible, also like the Qself_insert_command
5822 code in keyboard.c does.
5823 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5824 than its own local replacement for it.
5825
e267324c
KR
58262009-08-10 Ken Raeburn <raeburn@raeburn.org>
5827
1ac9108a 5828 * fns.c (concat): Don't re-set string length to its current value.
77437343 5829
1ac9108a
SM
5830 * coding.h (decode_coding_string, encode_coding_string):
5831 Use SBYTES macro.
f0bed503 5832
1ac9108a 5833 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5834 (doprnt): Merge with doprnt1, discarding lispstrings code.
5835 * lisp.h (doprnt_lisp): Don't declare.
5836
416e006d
JL
58372009-08-07 Juri Linkov <juri@jurta.org>
5838
5839 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5840
6f7d5780
DN
58412009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5842
5843 * print.c (syms_of_print): Undo previous change.
5844
f19a0f5b
TZ
58452009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5846
5847 * lread.c (read1, syms_of_lread): Read hashtables back from the
5848 readable format.
5849
5850 * print.c (print_preprocess, print_object): Print hashtables fully
5851 and readably.
5852 (syms_of_print): Provide 'hashtable-print-readable.
5853
b9173dc2
AR
58542009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5855
5856 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5857 no family set.
5858 (nsfont_open): Handle case when entity has no family.
5859
1586503c
AR
58602009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5861
5862 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5863 element, not a list, for match case.
5864
087048cd
KH
58652009-07-28 Kenichi Handa <handa@m17n.org>
5866
5867 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5868 rigidly.
5869
5870 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5871 font_parse_xlfd. Check font properties more rigidly.
5872
780c2506
DN
58732009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5874
31fd7c5c
JB
5875 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5876 bsd-common.h.
780c2506 5877
a8c0cc18
KH
58782009-07-27 Kenichi Handa <handa@m17n.org>
5879
5880 * xfaces.c (face_with_height): Call font_clear_prop.
5881
4fbe2306
CY
58822009-07-26 Chong Yidong <cyd@stupidchicken.com>
5883
111d9af3
CY
5884 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5885
5886 * xterm.c (x_term_init): Use Qx.
5887
4fbe2306
CY
5888 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5889
1ac9108a 5890 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5891 (ns_get_color): Revert 2009-07-16 change.
5892
beb0b7f9
EZ
58932009-07-25 Eli Zaretskii <eliz@gnu.org>
5894
5895 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5896 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5897
2baf5e76
KR
58982009-07-25 Ken Raeburn <raeburn@raeburn.org>
5899
1ac9108a
SM
5900 * coding.h (decode_coding_string, encode_coding_string):
5901 Use SCHARS macro.
8890e5f5 5902
2baf5e76 5903 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5904 (load_depth): Delete.
2baf5e76
KR
5905 (Qload_in_progress): New variable.
5906 (load_unwind): Don't reference load_depth or load_in_progress.
5907 (Fload): Likewise; specbind Qload_in_progress instead.
5908 (init_lread): Don't initialize load_depth.
5909 (syms_of_lread): Initialize and protect Qload_in_progress.
5910
1395c6f5
AR
59112009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5912
5913 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5914
4e2f36cf
AR
59152009-07-23 Yavor Doganov <yavor@gnu.org>
5916
5917 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5918
5dd9a6f7
AR
59192009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5920
5921 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5922 Bugs 3792, 3720, 2402.
5923 (ns_lookup_indexed_color): Check for bad index.
5924 (ns_index_color): Init unused slot to 0.
5925 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5926 Bug 3714, possibly 3082.
5dd9a6f7 5927
c902b920
JR
59282009-07-22 Jason Rumney <jasonr@gnu.org>
5929
1ac9108a
SM
5930 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5931 Position IME window at cursor (Bug#2570).
c902b920
JR
5932 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5933 (globals_of_w32fns): Dynamically load functions required above.
5934
5935 * w32term.c (w32_draw_window_cursor): Send message to reposition
5936 any IME window.
5937
090101cf
CY
59382009-07-21 Chong Yidong <cyd@stupidchicken.com>
5939
5940 * fileio.c: Revert 2009-07-16 changes.
5941 (Vauto_save_include_big_deletions): New variable.
5942 (Fdo_auto_save): Disable auto-save only if
5943 auto-save-include-big-deletions is nil.
5944
e6583e3d
CY
59452009-07-21 Chong Yidong <cyd@stupidchicken.com>
5946
5947 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5948 the overflowed pixels into account (Bug#3879).
5949
ece435a5
KR
59502009-07-21 Ken Raeburn <raeburn@raeburn.org>
5951
5952 * lread.c (load_depth): New variable.
5953 (Fload, load_unwind, init_lread): Set it to the load recursion
5954 depth; set load_in_progress as a simple boolean based on the
5955 current load_depth. (Bug#3892)
5956
40b2d973
AR
59572009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5958
5959 * nsfont.m (ns_has_attribute): Remove.
5960 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5961
10be7e0d
JL
59622009-07-18 Juri Linkov <juri@jurta.org>
5963
5964 * process.c (Fset_process_query_on_exit_flag): Mention killing
5965 a buffer in docstring.
5966
fa055055
KH
59672009-07-17 Kenichi Handa <handa@m17n.org>
5968
5969 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5970
042f7b69
YM
59712009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5972
5973 * nsfns.m (Fns_set_alpha): Remove function.
5974 (syms_of_nsfns): Don't defsubr it.
5975
5976 * nsterm.m (ns_get_color): Remove incompatible color formats.
5977 (ns_color_to_lisp): Generate #rrggbb color format string.
5978
4be941e3
RS
59792009-07-16 Richard Stallman <rms@gnu.org>
5980
5981 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5982 (Fset_buffer_auto_saved): Handle save_length = -2.
5983
4e6b227d
CY
59842009-07-16 Chong Yidong <cyd@stupidchicken.com>
5985
5986 * xterm.c (Qx_gtk_map_stock): New var.
5987
5988 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5989 of calling intern each time.
5990
a1856973
YM
59912009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5992
5993 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5994 does tiling.
5995
5996 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5997
497e54d8
KH
59982009-07-14 Kenichi Handa <handa@m17n.org>
5999
72d36834
KH
6000 * font.c (font_vconcat_entity_vectors): New function.
6001 (struct font_sort_data): New member font_driver_preference.
6002 (font_compare): Check font_driver_preference.
6003 (font_sort_entities): The format of the first argument changed.
6004 (font_delete_unmatched): Likewise.
6005 (font_list_entities): The return type changed.
6006 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6007 (font_find_for_lface): Adjuste for the above changes.
6008 Don't suppress the checking of C even if the repertory supports it.
6009 (Flist_fonts): Adjust for the above changes.
72d36834 6010
1ac9108a
SM
6011 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6012 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6013 Reject a font who has adstyle property that is different from a
6014 langname derived from registry property.
1ac9108a 6015 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6016
b6046155
EZ
60172009-07-13 Eli Zaretskii <eliz@gnu.org>
6018
6019 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6020 local copy of dirfilename.
6021
fb6b6049
KH
60222009-07-13 Kenichi Handa <handa@m17n.org>
6023
e2402a5e
KH
6024 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6025 against max_char.
6026
fb6b6049
KH
6027 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6028 calling XSYMBOL (sym).
6029
65156807
EZ
60302009-07-11 Eli Zaretskii <eliz@gnu.org>
6031
1ac9108a
SM
6032 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6033 New function.
6034 (directory_files_internal) [WINDOWSNT]:
6035 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6036 the filesystem of the directory is fast or slow.
6037
6038 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6039 file name.
6040 (is_slow_fs): New function.
6041 (stat): Use it to determine whether to issue more system calls to
6042 get accurate file attributes, when w32-get-true-file-attributes is
6043 `local'.
6044
e0ab5fcf
JD
60452009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6046
6047 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6048 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6049 parameter font-parameter as default to the font dialog.
6050
784ceded
KH
60512009-07-10 Kenichi Handa <handa@m17n.org>
6052
6053 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6054
fb8edc0b
EZ
60552009-07-09 Eli Zaretskii <eliz@gnu.org>
6056
1ac9108a 6057 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6058
fb8edc0b
EZ
6059 * w32.c (stat): Treat UNC file names as residing on remote
6060 drives. (Bug#3542)
6061
635c75b1
KH
60622009-07-09 Kenichi Handa <handa@m17n.org>
6063
6064 * fontset.c (fontset_find_font): Fix previous change.
6065
c1d5ce94
MA
60662009-07-08 Michael Albinus <michael.albinus@gmx.de>
6067
6068 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6069 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6070 error flag.
6071
edb61b39
KH
60722009-07-08 Kenichi Handa <handa@m17n.org>
6073
374bf7e4
KH
6074 * fontset.c (fontset_find_font): Fix the logic of handling
6075 charset_matched.
6076 (font_for_char): Delete unused var.
6077 (generate_ascii_font_name): Delete it.
6078
edb61b39
KH
6079 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6080
6081 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6082 (encode_coding_sjis): Fix the code range check.
6083
0f3f018c
CY
60842009-07-07 Chong Yidong <cyd@stupidchicken.com>
6085
6086 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6087 (Fexpand_file_name): Copy string data properly (Bug#3772).
6088
fcaf6f3a
JD
60892009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6090
6091 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6092 first MapNotify.
6093
6809ca75
KH
60942009-07-07 Kenichi Handa <handa@m17n.org>
6095
6096 * character.h (unibyte_has_multibyte_table): Delete extern.
6097 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6098
6099 * charset.c (Fset_charset_priority): Update charset_unibyte.
6100 (syms_of_charset): Initialize charset_unibyte.
6101
6102 * character.c (unibyte_has_multibyte_table): Delete it.
6103 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6104 charset_unibyte.
6105 (multibyte_char_to_unibyte_safe): Likewise.
6106 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6107
1ac9108a 6108 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6109 (x_produce_glyphs): Likewise.
6110
6111 * .gdbinit (xcharset): Fix the treating $arg0.
6112
ad9e2d54
EZ
61132009-07-04 Eli Zaretskii <eliz@gnu.org>
6114
6115 Emulation of `getloadavg' on MS-Windows.
50426a04 6116 * w32.c: Include float.h.
ad9e2d54
EZ
6117 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6118 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6119 (get_native_system_info, get_system_times): New functions.
6120 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6121 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6122 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6123 g_b_init_get_system_times, and num_of_processors.
6124
0a3472c7
JR
61252009-07-03 Jason Rumney <jasonr@gnu.org>
6126
6127 * w32term.c (w32_initialize): Use standard types.
6128
80904120
EZ
61292009-07-03 Eli Zaretskii <eliz@gnu.org>
6130
6131 * dired.c (Ffile_attributes): Decode user and group names by the
6132 locale's encoding. (Bug#3443)
6133
6978862d
DN
61342009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6135
f8d23104
DN
6136 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6137 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6138
6139 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6140
6141 * term.c (init_tty): Remove spurious #ifdef.
6142
6978862d
DN
6143 * m/mips.h: Mention this file is also used for netbsd.
6144 * m/pmax.h: Remove file.
6145
e044e4fc
JD
61462009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6147
6148 * xterm.h (struct x_display_info): Add invisible_cursor.
6149 (struct x_output): Add current_cursor.
6150
6151 * xterm.c (XTtoggle_invisible_pointer): New function.
6152 (x_define_frame_cursor): Don't define cursor if invisible or the
6153 same as before. Set current_cursor.
6154 (x_create_terminal): Set toggle_invisible_pointer_hook.
6155
6156 * xfns.c (make_invisible_cursor): New function.
6157 (x_set_mouse_color): Call make_invisible_cursor.
6158 Set current_cursor.
6159 (x_window): Set current_cursor.
6160
6161 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6162
6163 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6164 inserting a character.
6165 (read_avail_input): Call frame_make_pointer_visible.
6166
6167 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6168 (frame_make_pointer_invisible, frame_make_pointer_visible):
6169 New functions.
e044e4fc
JD
6170 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6171
6172 * frame.h: Declare frame_make_pointer_invisible and
6173 frame_make_pointer_visible.
6174 (struct frame): Add pointer_invisible.
6175
574c8efa
JD
61762009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6177
7b507248
JD
6178 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6179 frame isn't visible.
6180 (xg_frame_resized): If width/height is -1, get size of window
6181 from X server.
6182
6183 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6184 for MapNotify.
6185
835bdaa7 6186 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6187 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6188 (flush_and_sync): Reintroduce.
574c8efa 6189
3f1c6666 61902009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6191
31fd7c5c 6192 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6193
6194 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6195 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6196
6197 * frame.h: Declare Qsticky.
6198
cad9ef74
JD
6199 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6200
6201 * nsfns.m (ns_frame_parm_handlers): Ditto.
6202
6203 * frame.c: Declare Qsticky.
6204 (frame_parms): Add sticky.
6205
6206 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6207
6208 * xterm.h: Declare x_set_sticky.
6209
6210 * xterm.c (x_set_sticky): New function.
6211
69b16610
JD
6212 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6213 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6214 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6215
6216 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6217
6218 * frame.c: Qmaximized is new.
6219 (x_set_frame_parameters): Do not handle fullscreen specially.
6220 Only set width and height if explicitly set.
6221 (x_set_fullscreen): Handle Qmaximized.
6222 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6223 (syms_of_frame): Initialize Qmaximized.
6224
1ac9108a
SM
6225 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6226 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6227
6228 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6229 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6230 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6231 set gravity to NorthWestGravity when USE_GTK.
6232 (set_wm_state): New function.
31fd7c5c 6233 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6234 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6235 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6236 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6237 to x_real_positions and x_fullscreen_adjust.
6238
6239 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6240 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6241 flush_and_sync.
6242 (xg_height_changed): New function.
6243 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6244 and gtk_window_set_policy. Set frame gravity after parsing the
6245 geometry string.
3f1c6666
JD
6246 (xg_update_frame_menubar, free_frame_menubar)
6247 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6248 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6249 Remove calls to xg_frame_set_char_size.
6250
fd503d99
KH
62512009-07-01 Kenichi Handa <handa@m17n.org>
6252
6253 * keyboard.c (decode_keyboard_code): New function.
6254 (tty_read_avail_input): Decode the input bytes if necessary.
6255
1ac9108a
SM
6256 * coding.c (setup_coding_system):
6257 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6258 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6259 use Qno_conversion.
6260
24ed93fb
YM
62612009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6262
6263 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6264
99061dfc
CY
62652009-06-30 Chong Yidong <cyd@stupidchicken.com>
6266
1ac9108a 6267 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6268
ff90fbde
JR
62692009-06-30 Jason Rumney <jasonr@gnu.org>
6270
6271 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6272 is already loaded.
6273 Set user model ID if supported (bug#1849).
6274
5f445726
JM
62752009-06-29 Jim Meyering <meyering@redhat.com>
6276
6277 Remove useless if-before-xfree test.
6278 * nsfont.m (nsfont_close): Remove useless test.
6279 * term.c (delete_tty): Likewise.
6280 * w32.c (system_process_attributes): Likewise.
6281 * w32font.c (w32font_close): Likewise.
6282 * xfaces.c (x_free_gc): Likewise.
6283 * xselect.c (buffer): Likewise.
6284
b9607587
AS
62852009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6286
6287 * process.c (send_process): Keep decoded string in a local
6288 variable and protect it from GC. (Bug#3521)
6289
89ba96f4
EZ
62902009-06-28 Eli Zaretskii <eliz@gnu.org>
6291
6292 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6293 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6294
098a1589
CY
62952009-06-28 Chong Yidong <cyd@stupidchicken.com>
6296
485422be
CY
6297 * xdisp.c (start_display, handle_face_prop)
6298 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6299 (redisplay_window, try_window_id, produce_image_glyph):
6300 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6301
098a1589
CY
6302 * xterm.c (x_update_window_begin, x_new_focus_frame)
6303 (x_scroll_bar_handle_click, handle_one_xevent)
6304 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6305 (x_make_frame_visible, x_make_frame_invisible)
6306 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6307 code chunks that are now obsolete.
6308
78c38319
MA
63092009-06-28 Michael Albinus <michael.albinus@gmx.de>
6310
6311 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6312 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6313 for hours, when optimzation is enabled.
6314 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6315 (xd_read_message): Make them static.
6316
4189ed40
CY
63172009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6318
6319 * term.c (turn_on_face): Allow simultaneously bold and dim
6320 terminal faces (Bug#3530).
6321
cd9b5e16
CY
63222009-06-27 Chong Yidong <cyd@stupidchicken.com>
6323
4e23bedb
CY
6324 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6325
cd9b5e16
CY
6326 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6327 truncation glyphs (Bug#3686).
6328
07cc3c35
GM
63292009-06-27 Glenn Morris <rgm@gnu.org>
6330
6331 * m/pmax.h: Restore file, with only netbsd portions.
6332
31fd7c5c 63332009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6334
cd9b5e16 6335 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6336
42d4a64f
KH
63372009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6338
6339 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6340 the arg FORCE_SYMBOL.
6341
930fe55b 63422009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6343
6344 * fontset.c (fontset_find_font): When a usable rfont_def is found
6345 in a fallback font-group, make it the first element of the group.
6346
57ebc3fd
CY
63472009-06-24 Chong Yidong <cyd@stupidchicken.com>
6348
6349 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6350
f084f942
KH
63512009-06-24 Kenichi Handa <handa@m17n.org>
6352
6353 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6354 set for C.
6355 (fontset_font): Record the availability of a font for C both in
6356 the realized fontsets of the current one and the default one.
6357
2f686c87
DN
63582009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6359
6360 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6361 conditional, it is always defined on AIX.
6362
666e158e
MB
63632009-06-23 Miles Bader <miles@gnu.org>
6364
6365 * window.c (Vrecenter_redisplay): New variable.
6366 (syms_of_window): Initialize it.
6367 (Qtty): New extern declaration.
6368 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6369
c6da7cd2
JM
63702009-06-23 Jim Meyering <meyering@redhat.com>
6371
1ac9108a
SM
6372 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6373 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6374 pointer dereferences are guaranteed to be valid.
c6da7cd2 6375
678dca3d
KH
63762009-06-23 Kenichi Handa <handa@m17n.org>
6377
74d75424
KH
6378 * emacs.c (main): Call init_font ().
6379
6380 * font.h (Vfont_log): Extern it.
6381 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6382
6383 * font.c (font_sort_entities, font_list_entities)
6384 (font_matching_entity, font_open_entity)
6385 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6386 (Vfont_log): Delete static.
6387 (font_log_env_checked): Delete this variable.
6388 (font_add_log): Don't check font_log_env_checked.
6389 (font_deferred_log): Check Vfont_log.
6390 (init_font): New function.
6391
678dca3d
KH
6392 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6393
6394 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6395
6396 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6397
6398 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6399
6400 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6401 (face_for_char): Don't call font_deferred_log here.
6402 (font_for_char): Likewise.
6403
8a668709
CY
64042009-06-22 Chong Yidong <cyd@stupidchicken.com>
6405
9a01ee33
CY
6406 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6407 rather than its background_width for drawing the overline and
6408 underline (Bug#489).
6409
6410 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6411 rather than its background_width for drawing the overline and
6412 underline (Bug#489).
ec7c9926
CY
6413 (xg_default_icon_file): New variable.
6414 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6415 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6416
8a668709
CY
6417 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6418 (load_overlay_strings): Remove externs.
6419 (fast_find_position): Function deleted.
6420 (mouse_face_from_buffer_pos): New function, based on
6421 fast_find_position. Correctly handle before-strings,
6422 display-strings, and after-strings (Bug#1220).
6423 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6424
4d4c02d8
CY
64252009-06-21 Chong Yidong <cyd@stupidchicken.com>
6426
1ac9108a 6427 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6428 (move_it_in_display_line_to, move_it_in_display_line_to)
6429 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6430
70243478
CY
64312009-06-21 Chong Yidong <cyd@stupidchicken.com>
6432
6433 * Branch for 23.1.
6434
13087e59
JR
64352009-06-21 Jason Rumney <jasonr@gnu.org>
6436
6437 * w32term.c (keyboard_codepage): New static variable.
6438 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6439 (w32_read_socket) [WM_CHAR]: Use it to decode character
6440 input (bug#3237).
6441 (w32_initialize): Initialize it.
6442 (codepage_for_locale): New function.
6443
4735b74e
KR
64442009-06-20 Ken Raeburn <raeburn@raeburn.org>
6445
6446 * process.c (status_message): Pass Faset index argument as a lisp
6447 object, so as to work with USE_LISP_UNION_TYPE.
6448
0e727afa
YM
64492009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6450
6451 * coding.c (Ffind_coding_systems_region_internal):
6452 Cache checked characters.
6453
cf299835
KH
64542009-06-18 Kenichi Handa <handa@m17n.org>
6455
1ac9108a 6456 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6457
90f20d94
AS
64582009-06-18 Andreas Schwab <aschwab@redhat.com>
6459
6460 * xdisp.c (redisplay_internal): Check that the frame is still
6461 live after redisplay of its windows.
6462 (redisplay_windows): Check that the window is still live.
6463
7f1faf1c
KH
64642009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6465
6466 * coding.c (detect_coding_utf_16): Fix previous change.
6467
cc13543e
KH
64682009-06-16 Kenichi Handa <handa@m17n.org>
6469
6470 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6471 UTF-16 by checking the dispersion of Eth and Oth bytes.
6472
977b85f4
AS
64732009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6474
6475 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6476
66bd43d1
KH
64772009-06-15 Kenichi Handa <handa@m17n.org>
6478
6479 * process.c (status_message): Fix previous change. Be sure to
6480 decode a localized string.
6481
cb5ca9c5
YM
64822009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6483
6484 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6485 add comment explaining why.
6486
ec7709ba 64872009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6488
ec7709ba 6489 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6490
4b7f335c
AR
64912009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6492
6493 * nsfont.m (ns_attribute_value): Remove.
6494 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6495 (ns_has_attribute): Shrink the normal range.
6496 (ns_findfonts): Don't worry about requested spec in determining
6497 need for synthItal.
e41820ee 6498 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6499
73b26103
SZ
65002009-06-14 Seiji Zenitani <zenitani@mac.com>
6501
6502 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6503
5753e4da
KH
65042009-06-11 Kenichi Handa <handa@m17n.org>
6505
6506 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6507 overhang for the static composition case.
6508
3561b671
KH
65092009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6510
5753e4da
KH
6511 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6512 overhang for the automatic composition case.
6513
3561b671
KH
6514 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6515 composition case.
6516
852bbd41
CY
65172009-06-10 Chong Yidong <cyd@stupidchicken.com>
6518
6519 * xdisp.c (get_next_display_element): When handling wrap-prefix
6520 and line-prefix, treat \n as a control character (bug#3502).
6521
9903d1e6
KH
65222009-06-10 Kenichi Handa <handa@m17n.org>
6523
6524 * font.c (font_parse_family_registry): Fix for one-char foundry.
6525 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6526
0bcbaaaa
CY
65272009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6528
6529 * process.c (status_message): Fix handling of multibyte signal
6530 string (Bug#3499).
6531
40aa3f13
JM
65322009-06-09 Jim Meyering <meyering@redhat.com>
6533
1f80c7e2
CY
6534 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6535 color name is missing.
40aa3f13 6536
72d51285
KH
65372009-06-09 Kenichi Handa <handa@m17n.org>
6538
6539 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6540 FROM-CODE and TO-CODE are codepoints of CHARSET.
6541
c1d04d84
AR
65422009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6543
6544 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6545
65462009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6547
6548 Changes to support :script/:lang/:otf in NS font driver.
6549 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6550 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6551 indicate not part of font driver interface, and change callers.
6552 (ns_get_family): Remove pointless null check.
6553 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6554 ns_spec_to_descriptor, ns_descriptor_to_entity.
6555 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6556 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6557 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6558 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6559 (ns_get_req_script, ns_accumulate_script_ranges)
6560 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6561 New functions.
6562 (nsfont_list, nsfont_match): Use ns_findfonts.
6563 (nsfont_open): Use font descriptor instead of traits.
6564 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6565 (dump_glyphstring): Rename to ns_dump_glyphstring.
6566
c7eb9816
AR
6567 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6568
c1d04d84
AR
6569 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6570
6571 * fontset.c (fontset_from_font): Remove NS-specific code.
6572
ec7709ba 65732009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6574
6575 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6576 nonactive windows.
6577
31fd7c5c 65782009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6579
1ac9108a 6580 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6581
68852c13 65822009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6583
6584 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6585
6756cd1d
CY
65862009-06-07 Chong Yidong <cyd@stupidchicken.com>
6587
6588 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6589 account for the overflowing of newlines into the last glyph on the
6590 display line (Bug#3482).
6591
28bf482a
DR
65922009-06-05 David Reitter <david.reitter@gmail.com>
6593
ec7709ba
JB
6594 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6595 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6596 Fns_selection_exists_p, Fns_selection_owner_p.
6597
fdb55376
JR
65982009-06-03 Jason Rumney <jasonr@gnu.org>
6599
6600 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6601 available. (Bug#3379)
6602
05129fbe
KH
66032009-05-29 Kenichi Handa <handa@m17n.org>
6604
1ac9108a
SM
6605 * coding.c (get_translation_table):
6606 Check Venable_character_translation.
05129fbe 6607
ec7709ba 66082009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6609
ec7709ba
JB
6610 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6611 (x_make_frame_visible): Move frame to front rather than calling
15891144 6612 ns_raise_frame().
ec7709ba 6613 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6614 isn't key window.
ec7709ba 6615 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6616 drawRect may be called by NSView even if the frame is hidden.
6617
ec7709ba
JB
6618 * nsfns.m (Fx_create_frame): Follow other ports in
6619 determining visibility; default to t. Ensure async_visible is set.
15891144 6620
21f73755
EZ
66212009-05-23 Eli Zaretskii <eliz@gnu.org>
6622
6623 * dired.c (Ffile_attributes): Doc fix.
6624
34001e41
CY
66252009-05-22 Chong Yidong <cyd@stupidchicken.com>
6626
6627 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6628
46306a17
SM
66292009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6630
6631 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6632 and xfont_scratch_props.
6633 (syms_of_xfont): Do it here instead.
6634 (xfont_find_ccl_program): Delete, unused.
6635 (xfont_open): Delete unused var `i'.
6636
ef6e0694
KH
66372009-05-21 Kenichi Handa <handa@m17n.org>
6638
6639 * fontset.c (Qlatin): Don't make it static.
6640
46306a17
SM
6641 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6642 New functions.
ef6e0694
KH
6643 (xfont_scripts_cache, xfont_scratch_props): New variables.
6644 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6645 (xfont_list_pattern): Argument changed. Callers changed.
6646 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6647 (xfont_list): Don't reject a font spec with :script property.
6648 (xfont_has_char): Fix setting of encoding.
6649 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6650 xfont_scratch_props.
6651
66522009-05-19 Kenichi Handa <handa@m17n.org>
6653
46306a17 6654 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6655 Callers changed.
6656
66572009-05-18 Kenichi Handa <handa@m17n.org>
6658
6659 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6660
ac71ced7
SM
66612009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6662
6663 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6664 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6665
1c6d1051
YM
66662009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6667
6668 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6669 (x_delete_terminal): Dissociate resource database from display and
6670 then call XrmDestroyDatabase before closing display.
6671
9b9b779c
AR
66722009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6673
6674 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6675 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6676 whether selected frame is viable before raising it (based on patch
6677 by David Reitter), and improve commentary.
6678 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6679
cccd42d5
KH
66802009-05-15 Kenichi Handa <handa@m17n.org>
6681
6682 * font.c (Ffont_spec): Check arguments.
6683
337fbd17
CY
66842009-05-14 Chong Yidong <cyd@stupidchicken.com>
6685
6686 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6687 weight when testing attributes (Bug#3282).
6688
47a6002f
JD
66892009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6690
6691 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6692 what we expect to get in the next ConfigureNotify event.
6693
9cb363db
YM
6694 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6695 before Xft one (Bug#1696).
6696
b9126609
CY
66972009-05-07 David Reitter <david.reitter@gmail.com>
6698
6699 * nsfns.m (Fx_display_planes): Compute bitplanes using
6700 NSBitsPerPixelFromDepth (Bug#3207).
6701
27a69fd9
CY
67022009-05-10 Chong Yidong <cyd@stupidchicken.com>
6703
6704 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6705
00f37552
TTN
67062009-05-10 Ulrich Mueller <ulm@gentoo.org>
6707
6708 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6709
2d82a920
DR
67102009-05-07 David Reitter <david.reitter@gmail.com>
6711
ec7709ba
JB
6712 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6713 Respect mouse face background.
2d82a920 6714
46b0d52d
DR
67152009-05-07 David Reitter <david.reitter@gmail.com>
6716
ec7709ba
JB
6717 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6718 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6719 in ns_update_begin and ns_update_end.
6720
ce1b23bb
SM
67212009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6722
5996e1b7
SM
6723 * nsfns.m (ns_get_screen): Rewrite.
6724 Don't presume selected-frame is of type `ns'.
6725
ba98e3a0
SM
6726 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6727 all drivers.
6728
ce1b23bb
SM
6729 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6730
bcda200f
YM
67312009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6732
6733 * keyboard.h (add_user_signal): Fix typo in extern.
6734
6735 * lisp.h (add_user_signal): Remove extern.
6736
6737 * unexelf.c (unexec): Consider a section to precede the .bss section
6738 if its addresses overlap that of .bss.
6739 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6740 instead of dumping process.
6741
864660a2
SM
67422009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6743
6744 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6745
50da4e56
SM
67462009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6747
6748 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6749
51520a1a
DN
67502009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6751
6752 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6753 any statements.
6754
409ea3a1
AS
67552009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6756
59c4c60f
AS
6757 * process.c (read_process_output): Make sure the current buffer is
6758 always restored.
6759
409ea3a1
AS
6760 * coding.c (record_conversion_result): Don't modify
6761 Vlast_code_conversion_error for successful result.
6762 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6763
56f00ed2
KH
67642009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6765
6766 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6767 (load_charset_map): Remove unnecessary code.
56f00ed2 6768
4491c9d2
DR
67692009-04-30 David Reitter <david.reitter@gmail.com>
6770
35f5b128 6771 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6772 through f24.
6773
6970f632
CY
67742009-04-30 Chong Yidong <cyd@stupidchicken.com>
6775
6776 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6777
6778 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6779 face_at_buffer_position.
6780 (face_before_or_after_it_pos, get_next_display_element)
6781 (note_mouse_highlight): Update face_at_buffer_position call.
6782
6783 * term.c (term_mouse_highlight):
6784 * msdos.c (IT_note_mouse_highlight):
6785 * fontset.c (Finternal_char_font):
35f5b128 6786 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6787
6788 * dispextern.h (face_at_buffer_position): Update prototype.
6789
0c616f63
KH
67902009-04-30 Kenichi Handa <handa@m17n.org>
6791
35f5b128 6792 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6793
ad3aaf33
AS
67942009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6795
6796 * callproc.c (Fcall_process): Fix GC protection. Make sure
6797 current buffer is always restored.
6798
c3c963a0
YM
67992009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6800
6801 * atimer.c (init_atimer): Also clear stopped_atimers.
6802
6803 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6804
7e3386cb
YM
6805 * process.c (create_process): Clean up merger residues of
6806 2008-07-17 change.
6807
91f68422
CY
68082009-04-29 Ulrich Mueller <ulm@gentoo.org>
6809
6810 * lread.c (Vread_circle): New variable.
6811 (read1): Disable recursive read if Vread_circle is nil.
6812
24b34550
KH
68132009-04-29 Kenichi Handa <handa@m17n.org>
6814
6815 * fontset.h (set_default_ascii_font): Delete extern.
6816
6817 * fontset.c (set_default_ascii_font): Delete this unused function.
6818
6819 * frame.c (x_set_font): When ARG is a font-object, check if the
6820 font-object matches with the ASCII font-spec of the frame's
9c358bda 6821 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6822
77bf07e1
AS
68232009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6824
6825 * fns.c (Flocale_info): Protect vector from GC during decoding.
6826
6827 * process.c (Fstart_process): Protect argv strings from GC during
6828 encoding.
6829
2c55aacf
AS
68302009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6831
6832 * sysdep.c: Include <ctype.h>.
6833
b892d3c9
DR
68342009-04-27 David Reitter <david.reitter@gmail.com>
6835
35f5b128 6836 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6837 Remove commented-out code.
6838
9d0644c4
JB
68392009-04-26 Johan Bockgård <bojohan@gnu.org>
6840
6841 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6842
b7053016
JR
68432009-04-25 Jason Rumney <jasonr@gnu.org>
6844
6845 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6846
4e8231f3
YM
68472009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6848
6849 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6850 Swap bytes in short integer if fringe bitmap width > 8.
6851
493dcf2c
KH
68522009-04-23 Kenichi Handa <handa@m17n.org>
6853
6854 * xfaces.c (Fx_list_fonts): If a font size is specified in
6855 PATTERN, set it in returned scalable fonts.
6856
401e9e57
CY
68572009-04-22 Chong Yidong <cyd@stupidchicken.com>
6858
708e05dc
CY
6859 * keyboard.c (Fset_input_meta_mode): Doc fix.
6860
6861 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6862
1ac9108a 6863 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6864
6865 * coding.c (Fterminal_coding_system): Doc fix.
6866
6867 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6868 (Fx_display_pixel_height, Fx_display_planes)
6869 (Fx_display_color_cells, Fx_server_max_request_size)
6870 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6871 (Fx_display_mm_height, Fx_display_mm_width)
6872 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6873 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6874 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6875 (check_x_display_info): Handle terminal objects instead of
6876 terminal ids.
6877
401e9e57
CY
6878 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6879 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6880 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6881 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6882
df80c7f0
KH
68832009-04-21 Kenichi Handa <handa@m17n.org>
6884
5a8f12af 6885 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6886 (font_score): Check AVGWIDTH too.
908567ef 6887
df80c7f0
KH
6888 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6889 worst case.
1ac9108a
SM
6890 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6891 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6892
705af33f
JR
68932009-04-19 Jason Rumney <jasonr@gnu.org>
6894
6895 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6896 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6897
6898 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6899 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6900 get_phys_cursor_geometry.
6901
b71ac3dd 6902 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6903 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6904 using get_phys_cursor_geometry.
6905
6906 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6907 correctly calculated.
6908
dc2933eb
JD
69092009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6910
1ac9108a
SM
6911 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6912 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6913 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6914 is deprecated.
6915
973e7849
AS
69162009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6917
6918 * font.c (font_put_frame_data): Use xfree instead of free.
6919
314d66f4
JB
69202009-04-17 Juanma Barranquero <lekktu@gmail.com>
6921
6922 * w32font.c (Qja, Qko): Remove declarations.
6923 (syms_of_w32font): Don't DEFSYM them.
6924
cf702558
CY
69252009-04-17 Chong Yidong <cyd@stupidchicken.com>
6926
6927 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6928
6929 * font.h (Qja, Qko): Extern them.
6930
6931 * ftfont.c (Qja, Qko): Remove declarations.
6932
6933 * xfont.c (Qja, Qko): Remove declarations.
6934
b50504f5
KH
69352009-04-17 Kenichi Handa <handa@m17n.org>
6936
bde25748
KH
6937 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6938 string from a vector to handle Latin-1 characters correctly.
6939
b50504f5
KH
6940 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6941 entity even if the cache hits.
6942
f4646fff
AS
69432009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6944
6945 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6946 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6947
e7deaab0
AS
6948 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6949 * lisp.h: Adjust prototypes.
6950
0a0e7d49
CY
69512009-04-16 Chong Yidong <cyd@stupidchicken.com>
6952
6953 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6954 change (Bug#3003).
6955
3c908a57
KH
69562009-04-16 Kenichi Handa <handa@m17n.org>
6957
1ac9108a 6958 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6959
6960 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6961 adstyle.
6962
6963 * ftfont.c (Qja, Qko): Don't make them static.
6964 (enum ftfont_cache_for): New enum.
6965 (fc_charset_table): Undo the previous change.
6966 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6967 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6968 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6969 non-scarable font, try to get AVERAGE_WIDTH.
6970 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6971 Change ft_face_cache from a list of a hash-table. Don't check
6972 `ja' and `ko' adstyle here.
6973 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6974 FTFONT_CACHE_FOR_CHARET.
6975 (ftfont_get_charset): Undo the previous change.
1ac9108a 6976 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6977 (ftfont_close): Likewise.
6978 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6979
6980 * font.c (font_sort_entites): Change the meaning of the arg
6981 BEST-ONLY. Don't optimize for VEC of lenght 1.
6982 (font_select_entity): Just return the value of font_sort_entites.
6983
6984 * xfaces.c (merge_face_vectors): Reflect font properties in
6985 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6986 font_clear_prop if a face attribute doesn't change.
6987
3c908a57
KH
6988 * charset.h (charset_ksc5601): Extern it.
6989
6990 * charset.c (charset_ksc5601): New variable.
6991 (Fdefine_charset_internal): Set charset_ksc5601.
6992 (init_charset_once): Initialize charset_ksc5601 to -1.
6993
d65859c3
DN
69942009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6995
6996 * fileio.c (history_delete_duplicates): Remove unused declaration.
6997
6998 * callint.c (history_delete_duplicates): New declaration.
6999 (Fcall_interactively): Remove command history duplicates when
7000 history_delete_duplicates is true.
7001
3ba010e5
EZ
70022009-04-14 Eli Zaretskii <eliz@gnu.org>
7003
7004 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7005
06f19b91
KH
70062009-04-14 Kenichi Handa <handa@m17n.org>
7007
7008 * font.c (Ffont_info): Fix docstring. Fix the second element of
7009 the returned value (bug#2949).
7010
2cce8bfc
CY
70112009-04-14 Chong Yidong <cyd@stupidchicken.com>
7012
7013 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7014
d156542d
KH
70152009-04-14 Kenichi Handa <handa@m17n.org>
7016
7017 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7018 encoding charset is ascii_compatible.
7019
7020 * charset.c (Fdefine_charset_internal): Make charset
7021 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7022 code_offset is 0, and covers all ASCII characters.
7023
86fa089e
SM
70242009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7025
7026 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7027 (ns_string_to_pasteboard_internal):
7028 * nsmenu.m (process_dialog):
7029 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7030 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7031 * lisp.h (Fx_load_color_file): Declare.
7032
a8a3728b
KH
70332009-04-13 Kenichi Handa <handa@m17n.org>
7034
1ac9108a 7035 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7036 (font_select_entity): Suppress the code to optimize for the same
7037 kind of fonts.
7038 (font_load_for_lface): Get a font that supports at least ASCII
7039 characters.
7040
7041 * ftfont.c (Qja, Qko): New variables.
7042 (fc_charset_table): Delete uniquifier data for iso8859-1.
7043 (ftfont_get_latin1_charset): New function.
7044 (get_adstyle_property): New function.
7045 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7046 bitmap fonts.
7047 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7048 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7049 `ko' or `ja'.
7050 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7051 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7052 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7053 property.
7054 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7055 (syms_of_ftfont): DEFSYM Qja and Qko.
7056
483670b5
KH
70572009-04-09 Kenichi Handa <handa@m17n.org>
7058
12b55765
KH
7059 * charset.c (map_charset_chars): For a charset of `superset'
7060 method, fix calculation of code range.
7061
483670b5
KH
7062 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7063 from the list of extra properties.
7064 (font_clear_prop): Be sure to delete `:name' font property.
7065
57d3b93b
KH
70662009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7067
b4b2c2ca
YM
7068 * dispnew.c (redraw_overlapping_rows): Fix detection of
7069 overlapping for topmost and bottommost rows.
7070
1ac9108a 7071 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7072
472c3609
JR
70732009-04-06 Jason Rumney <jasonr@gnu.org>
7074
7075 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7076
ab193662
KH
70772009-04-06 Kenichi Handa <handa@m17n.org>
7078
7079 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7080
7081 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7082
0c26f026
KH
70832009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7084
7085 * ftfont.c (ftfont_open): Fix checking of the return value of
7086 FT_Load_Char. Fix setting font->underline_thickness.
7087
e173bbce
CY
70882009-04-04 Chong Yidong <cyd@stupidchicken.com>
7089
7090 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7091 (Fterminal_parameters, Fterminal_parameter)
7092 (Fset_terminal_parameter): In doc string, refer to terminal
7093 objects rather than terminal ids.
7094
693a2698
EZ
70952009-04-04 Eli Zaretskii <eliz@gnu.org>
7096
7097 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7098 ret_lim_data. (Bug#2867)
7099
d5221487
CY
71002009-04-03 Chong Yidong <cyd@stupidchicken.com>
7101
7102 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7103 so they don't get wider than the window, matching 2006-01-23
7104 change to the partner function in xdisp.c (Bug#2800).
7105
223509a3
KH
71062009-04-03 Kenichi Handa <handa@m17n.org>
7107
7108 * print.c (print_object): Make each lowest sub_char_table start a
7109 new line (Bug#2866).
7110
74fcd0b1
KH
71112009-04-02 Kenichi Handa <handa@m17n.org>
7112
7113 * fontset.c (fontset_font): Record no-font when a fontset
7114 explicitly tells not to try another font-specs.
7115
c542407d
SM
71162009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7117
7118 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7119
e3869731
KH
71202009-03-30 Kenichi Handa <handa@m17n.org>
7121
d8d2f142
KH
7122 * fontset.c (fontset_from_font): Specify only registry in a
7123 font-spec for all characters supported by that registry.
7124
e3869731
KH
7125 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7126 even if HAVE_M17N_FLT is not defined.
7127
5da5f805
CY
71282009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7129
7130 * ftfont.c: Conditionalize prototyping and use of
7131 ftfont_variation_glyphs.
7132
ab226c50
SM
71332009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7134
9628fed7
SM
7135 * frame.c (delete_frame): Work around compiler bug.
7136
7137 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7138 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7139 Some more EMACS_INT.
7140 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7141
7142 * xdisp.c (dump_glyph): Fix typo.
7143
ae19ba7c
SM
7144 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7145 (adjust_markers_gap_motion, adjust_markers_for_delete)
7146 (adjust_markers_for_insert, adjust_point)
7147 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7148 (make_gap, copy_text, count_size_as_multibyte, insert)
7149 (insert_and_inherit, insert_before_markers)
7150 (insert_before_markers_and_inherit, insert_1)
7151 (count_combining_before, count_combining_after, insert_1_both)
7152 (insert_from_string, insert_from_string_before_markers)
7153 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7154 (insert_from_buffer_1, adjust_after_replace)
7155 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7156 (replace_range_2, del_range, del_range_1, del_range_byte)
7157 (del_range_both, del_range_2, modify_region)
7158 (prepare_to_modify_buffer, signal_before_change)
7159 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7160 for buffer positions and sizes.
7161 * lisp.h: Adjust prototypes accordingly.
7162
7163 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7164 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7165 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7166
ab226c50
SM
7167 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7168
46dfb8fb
JD
71692009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7170
7171 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7172 lines and columns so we keep the same pixel height and width.
7173
7174 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7175 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7176 (x_handle_net_wm_state): New function to update frame parameter
7177 fullscreen.
7178 (x_term_init): Initialize atoms for _NET_WM_STATE.
7179
7180 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7181
d347e494
SM
71822009-03-27 Kevin Ryde <user42@zip.com.au>
7183
7184 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7185 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7186 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7187 (Fgpm_mouse_stop): Pass that new parameter.
7188 * termhooks.h (close_gpm): Adjust prototype.
7189
84db11d6
SM
71902009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7191
c95a5008
SM
7192 * lisp.h (Fx_focus_frame): Declare.
7193
84db11d6
SM
7194 * callint.c (Fcall_interactively): For '^' just delegate the work to
7195 handle-shift-selection.
7196 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7197
0a1958d6
CY
71982009-03-24 Chong Yidong <cyd@stupidchicken.com>
7199
0bfdff23
CY
7200 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7201
0a1958d6
CY
7202 * data.c (Qinteractive_form): New variable.
7203 (Finteractive_form): Use it.
7204
7205 * eval.c (Fcommandp): Use Qinteractive_form.
7206
58aec0d6
JR
72072009-03-24 Jason Rumney <jasonr@gnu.org>
7208
7209 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7210 Calculate total size precisely. Decode environment variables
7211 before substituting. (Bug#38)
7212
553dd618
KH
72132009-03-24 Kenichi Handa <handa@m17n.org>
7214
7215 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7216 encoding (Bug#2722).
553dd618 7217
c39ea606
JD
72182009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7219
7220 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7221 that gdpy is set.
7222
bc9b2b5e
AM
72232009-03-22 Alan Mackenzie <acm@muc.de>
7224
7225 * callint.c (Finteractive): Clarify the doc string - even
7226 promptless elements need \n separators.
7227
9f995a76
JR
72282009-03-22 Jason Rumney <jasonr@gnu.org>
7229
7230 * w32term.c (syms_of_w32term): Doc fix for
7231 x-use-underline-position-properties.
7232
22749e9a
EZ
72332009-03-21 Eli Zaretskii <eliz@gnu.org>
7234
7235 * w32.c (getpwuid): Change argument type to unsigned.
7236 (struct w32_id): Change type of `rid' member to unsigned.
7237 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7238 argument ID to unsigned. All callers changed.
7239 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7240
e00553bf
EZ
72412009-03-20 Eli Zaretskii <eliz@gnu.org>
7242
7243 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7244 negative, produce a float value.
7245
7246 * dired.c (make_uid, make_gid): New functions.
7247 (Ffile_attributes): Use them to avoid negative UID and GID.
7248
f761d6b6
JB
72492009-03-20 Juanma Barranquero <lekktu@gmail.com>
7250
7251 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7252 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7253 Fix typos in docstrings.
7254
d507f8d7
KH
72552009-03-19 Kenichi Handa <handa@m17n.org>
7256
7257 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7258 changed, use font_load_for_lface to get a new font object.
7259 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7260
7261 * frame.c (x_set_font): Handle the case that ARG is a cons.
7262
c68845e0
GM
72632009-03-19 Glenn Morris <rgm@gnu.org>
7264
7265 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7266
bfa49dd1
CY
72672009-03-19 Chong Yidong <cyd@stupidchicken.com>
7268
7269 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7270
8458d4c1
KH
72712009-03-19 Kenichi Handa <handa@m17n.org>
7272
7273 * charset.c (load_charset_map_from_file): When a mapfile can't be
7274 loaded, signal an error.
7275
78e7d1fe
EZ
72762009-03-18 Eli Zaretskii <eliz@gnu.org>
7277
7278 * dired.c (Ffile_attributes): Make sure UID and GID are always
7279 positive, even if the value is too large for a positive EMACS_INT.
7280 Doc fix.
7281
7282 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7283
5da9fdfa
YM
72842009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7285
7286 * xmenu.c (xdialog_show): Move Fredisplay call ...
7287 (Fx_popup_dialog): ... here.
7288
7519c40d
SM
72892009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7290
7291 * dired.c (file_name_completion): Disable the first optimization just
7292 installed, since it is not implemented correctly.
7293
2cd298e2
SM
72942009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7295
7296 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7297 only if the entry can affect bestmatch.
2cd298e2
SM
7298 Stop the search early, as Ftry_completion already does.
7299
48d37adf
CY
73002009-03-17 Chong Yidong <cyd@stupidchicken.com>
7301
e10c9c93 7302 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7303
9286b16a
CY
73042009-03-15 Chong Yidong <cyd@stupidchicken.com>
7305
7306 * keyboard.c (parse_menu_item): Don't display remappings as menu
7307 equivalent bindings (Bug#788).
7308
f7b146dc
JR
73092009-03-15 Jason Rumney <jasonr@gnu.org>
7310
7311 * w32term.h (WM_EMACS_PAINT): New message.
7312 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7313 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7314 before passing to lisp thread. (Bug#950)
7315
f761d6b6 73162009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7317
d93f9575
CY
7318 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7319 variable as it was never reset.
7320 (ns_term_init): Remove initialization of Lisp-settable defaults
7321 and ns_expand_space.
7322 (-setPanelFromDefaultValues): Remove ns_expand_space.
7323 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7324 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7325 i.e. no additional spacing, similar to Carbon port.
7326
d93f9575
CY
7327 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7328 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7329
305018ec
JD
73302009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7331
7332 * sound.c (alsa_configure): Remove call to deprecated
7333 snd_pcm_sw_params_set_xfer_align.
7334
f761d6b6 73352009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7336
7337 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7338 after clicking in a detached tool bar.
7339 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7340
46e722a9
SM
73412009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7342
348db3dd
SM
7343 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7344 int/Lisp_Object mixup).
46e722a9 7345
a3d16f39
KH
73462009-03-13 Kenichi Handa <handa@m17n.org>
7347
7348 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7349 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7350 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7351 (set_fontset_font): Change ARG to a vector. Handle range_list in
7352 ARG correctly.
7353 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7354 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7355 the above change.
7356 (fontset_from_font): Fix previous change.
fe24f56a 7357 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7358 entry. If FONTSET is the default fontset, don't set the extra
7359 slot of the returning char-table.
7360
b066e6b6
JB
73612009-03-12 Juanma Barranquero <lekktu@gmail.com>
7362
7363 * nsfns.m (Fx_close_connection): Doc fix.
7364 (Fns_do_applescript): Reflow docstring.
7365 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7366 (Fx_display_pixel_width, Fx_display_pixel_height)
7367 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7368 Fix typos in docstrings.
7369 (Fns_set_alpha): Fix typos in error messages.
7370
d472514e 73712009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7372
d472514e 7373 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7374 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7375 were used for such events.
7376
d472514e
JB
7377 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7378 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7379
d472514e 7380 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7381 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7382
fb930676
KH
73832009-03-11 Kenichi Handa <handa@m17n.org>
7384
ff85581a
KH
7385 * font.h (font_open_by_spec): Extern it.
7386
c50b7e98
KH
7387 * font.c (font_open_by_spec): New function.
7388 (font_open_by_name): Use font_open_by_spec.
7389
fb930676
KH
7390 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7391 fontset of the frame.
7392
7393 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7394 modify the default font of frames that use this fontset.
7395 (num_auto_fontsets): New variable.
7396 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7397 name. Be sure to set FONTSET_ASCII to the correct font name.
7398 (update_auto_fontset_alist): New function.
7399
df4e8455
JB
74002009-03-11 Juanma Barranquero <lekktu@gmail.com>
7401
7402 * makefile.w32-in: Update dependencies.
7403
0a375797
AR
74042009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7405
7406 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7407
61313fa3
SM
74082009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7409
7410 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7411
b55103fb
CY
74122009-03-10 Chong Yidong <cyd@stupidchicken.com>
7413
7414 * lread.c (Feval_buffer): Doc fix.
7415
dde2559c
KH
74162009-03-09 Kenichi Handa <handa@m17n.org>
7417
7418 * charset.c (Qfile_name_handler_alist): Extern it.
7419 (load_charset_map_from_file): Temporarily bind
7420 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7421
df4e8455 74222009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7423
47f588bb
GM
7424 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7425 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7426
4ddf94bd
AR
74272009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7428
4c9bdfc2
AR
7429 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7430 (x_set_window_size): Change back to calculated method of setting
7431 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7432 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7433 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7434
fe41ae9e
AR
7435 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7436
4c9bdfc2
AR
7437 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7438 accelerator in parens under GNUstep.
7439
825d0875
KH
74402009-03-06 Kenichi Handa <handa@m17n.org>
7441
7442 These changes are to detect incorrect composition sequence without
f3b3be74 7443 looking ahead the source. (Bug#2370)
825d0875
KH
7444
7445 * coding.h: Include "composite.h".
7446 (enum compisition_state): New enum.
7447 (struct compisition_status): New struct.
7448 (struct iso_2022_spec): New member cmp_status.
7449 (struct emacs_mule_spec): New struct.
7450 (struct coding_system): New members ctext_extended_segment_len and
7451 embedded_utf_8. Change the union member
7452 spec.emacs_mule_full_support to spec.emacs_mule.
7453
7454 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7455 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7456 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7457 (ADD_COMPOSITION_DATA): New arg nbytes.
7458 (emacs_mule_char): New arg cmp_status.
7459 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7460 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7461 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7462 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7463 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7464 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7465 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7466 (EMACS_MULE_COMPOSITION_END): New macro.
7467 (emacs_mule_finish_composition): New function.
7468 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7469 (decode_coding_emacs_mule): Avoid long looking ahead while
7470 handling composition.
7471 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7472 (ENCODE_COMPOSITION_RULE): New macro.
7473 (finish_composition): New function.
7474 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7475 (DECODE_COMPOSITION_START): New implementation.
7476 (DECODE_COMPOSITION_END): Likewise.
7477 (STORE_COMPOSITION_RULE): New macro.
7478 (decode_coding_iso_2022): Avoid long looking ahead while handling
7479 composition, CTEXT extended segment, and embedded UTF-8.
7480 (setup_coding_system): For a coding of type iso-2022, reset
7481 CODING_ISO_EXTSEGMENT_LEN (coding) and
7482 CODING_ISO_EMBEDDED_UTF_8 (coding).
7483 (get_translation): Delete arguments last_block, from_nchars,
7484 to_nchars. Callers changed.
7485 (produce_chars): Don't modify charbuf. Adjusted for the change of
7486 get_translation.
98a326f7 7487 (produce_composition): Adjust for the new annotation sequence.
825d0875 7488 (handle_composition_annotation): Likewise.
98a326f7 7489 (consume_chars): Adjust for the change of get_translation.
825d0875 7490
ccbc4452
AR
74912009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7492
4ddf94bd 7493 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7494
988a7ddb
KH
74952009-03-05 Kenichi Handa <handa@m17n.org>
7496
7497 * font.c (font_select_entity): New function.
7498 (font_find_for_lface): Use font_select_entity to select a font.
7499
7500 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7501 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7502 font with C restriction.
7503
98a326f7 75042009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7505
be1bce46 7506 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7507
10ea2b82
JR
75082009-03-04 Jason Rumney <jasonr@gnu.org>
7509
2c93b248 7510 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7511 characters that have already been read. (Bug#2569)
2c93b248 7512
10ea2b82
JR
7513 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7514 Log an error message if check_image_size failed.
7515 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7516 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7517
71a0c011
EZ
75182009-03-02 Eli Zaretskii <eliz@gnu.org>
7519
7520 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7521 when decoding process output.
7522
2f63bba8
RS
75232009-03-01 Richard M Stallman <rms@gnu.org>
7524
7525 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7526
7527 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7528
0a9564cb
EZ
75292009-02-28 Eli Zaretskii <eliz@gnu.org>
7530
7531 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7532 (decode_coding_emacs_mule, decode_coding_iso_2022)
7533 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7534 (decode_coding_raw_text, decode_coding_charset)
7535 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7536 Honor inhibit-eol-conversion. (Bug #2186)
7537
449148b3
JR
75382009-02-28 Jason Rumney <jasonr@gnu.org>
7539
7540 * coding.c (detect_coding_charset): If not checking latin extra,
7541 fail on characters between 0x80 and 0xA0. (Bug#2354)
7542
a4aee864
EZ
75432009-02-28 Eli Zaretskii <eliz@gnu.org>
7544
7545 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7546 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7547
d88bee5a
GM
75482009-02-27 Glenn Morris <rgm@gnu.org>
7549
7550 * callint.c (Finteractive): Doc fix.
7551
a808f22d
KH
75522009-02-27 Kenichi Handa <handa@m17n.org>
7553
7554 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7555
caf8d60c
CY
75562009-02-27 Chong Yidong <cyd@stupidchicken.com>
7557
7558 * font.c (font_style_to_value): Set value for unknown symbols to
7559 100 instead of 255.
b61137ea
CY
7560 (weight_table, slant_table, width_table): Treat "unspecified" as
7561 the default value.
caf8d60c 7562
1a0de25c
JB
75632009-02-26 Juanma Barranquero <lekktu@gmail.com>
7564
7565 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7566
8fc45744
JB
75672009-02-25 Juanma Barranquero <lekktu@gmail.com>
7568
107bd7d1
JB
7569 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7570 error as soon as a recursive load is detected.
8fc45744 7571
f097e223
AR
75722009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7573
7574 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7575 before caching.
7576
8810a12f
KH
75772009-02-24 Kenichi Handa <handa@m17n.org>
7578
7579 * fontset.c (fontset_find_font): Fix the condition for checking
7580 unavailable font.
7581
2c7d1565
GM
75822009-02-24 Glenn Morris <rgm@gnu.org>
7583
7584 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7585 whitespace that confuses documentation.
7586
a20878b6
MB
75872009-02-23 Miles Bader <miles@gnu.org>
7588
7589 * process.c (Flist_system_processes, Fprocess_attributes)
7590 (syms_of_process): Rename `system-process-attributes' to
7591 `process-attributes'.
7592
b3b58c01
AS
75932009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7594
1b3b981b
AS
7595 * coding.h (struct coding_system): Make safe_charsets a pointer to
7596 unsigned char.
7597 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7598 being 255.
7599 (SAFE_CHARSET_P): Likewise.
7600 (setup_iso_safe_charsets): Properly setup safe_charsets.
7601 (Fdefine_coding_system_internal): Likewise.
7602 (setup_coding_system): Likewise. Remove unneeded casts.
7603 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7604 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7605 unneeded casts.
7606
b3b58c01
AS
7607 * insdel.c (del_range_2): Don't modify gap contents when called
7608 from decode_coding_object. (Bug#1809)
7609
0b6f228c
CY
76102009-02-21 Chong Yidong <cyd@stupidchicken.com>
7611
7612 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7613 Qfont_object.
7614 (Ftype_of): Recognize font objects.
7615
7616 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7617
7618 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7619 moved to data.c.
7620
52f8870b
AR
76212009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7622
7623 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7624 async_iconified. Based on a patch by Christian Lynbech
7625 <christian.lynbech@tieto.com>.
7626 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7627
7087d5e9
GM
76282009-02-20 Glenn Morris <rgm@gnu.org>
7629
7630 * syntax.c (Fskip_chars_forward): Fix doc typo.
7631
41d2ceef
CY
76322009-02-20 Chong Yidong <cyd@stupidchicken.com>
7633
7634 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7635
1a3b7ca6
CY
76362009-02-19 Chong Yidong <cyd@stupidchicken.com>
7637
7638 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7639
73cce38d
KH
76402009-02-19 Kenichi Handa <handa@m17n.org>
7641
7642 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7643 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7644
a51092ee
DN
76452009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7646
7647 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7648
c423ecca
KH
76492009-02-18 Kenichi Handa <handa@m17n.org>
7650
7651 * font.c (font_check_otf_features): Fix handling of `nil' element.
7652 (Ffont_spec): Describe :lang and :otf in the docstring.
7653
4c1958f4
AS
76542009-02-16 Andreas Schwab <schwab@suse.de>
7655
7656 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7657 string.
7658
5704f39a
KH
76592009-02-16 Kenichi Handa <handa@m17n.org>
7660
7661 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7662 (Bug#1723)
5704f39a 7663
8f0085aa
CY
76642009-02-14 Chong Yidong <cyd@stupidchicken.com>
7665
a057d86a 7666 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7667
7668 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7669 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7670
aff01dd9
EZ
76712009-02-14 Eli Zaretskii <eliz@gnu.org>
7672
7673 * msdos.c (MAX_SCREEN_BUF): New macro.
7674 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7675 Encode the entire run of glyphs sharing the same face, instead of
7676 doing that one glyph at a time (fixes a bug with displaying
7677 double-size characters).
7678
ba301db3
AR
76792009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7680
7681 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7682
7683 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7684 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7685 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7686
7687 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7688 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7689
51d861de
SM
76902009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7691
ac146f82 7692 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7693 invisible areas.
7694
7fed8996
JR
76952009-02-12 Jason Rumney <jasonr@gnu.org>
7696
631ea4fb
JR
7697 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7698 (add_font_entity_to_list): Call check_face_name even when family
7699 is unspecified.
7700
cb4a3e42
JR
7701 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7702 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7703 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7704
7fed8996 7705 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7706 raster fonts. (Bug#2219)
7fed8996 7707
895416e3
KH
77082009-02-12 Kenichi Handa <handa@m17n.org>
7709
7710 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7711 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7712 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7713 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7714 (find_automatic_composition): While looking forward and backward,
7715 check static composition. Fix where to stop looking forward.
7716 (composition_adjust_point): Fix checking of static composition.
7717 (Fcomposition_get_gstring): Pay attention to
1dacf998 7718 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7719
7720 * lisp.h (fast_looking_at): Extern it.
7721
7722 * search.c (fast_looking_at): New function.
7723
51d861de 7724 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7725 <struct glyph>.u.cmp.to.
7726 (append_composite_glyph): Likewise.
7727
51d861de 7728 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7729 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7730 composition.
51d861de 7731 (append_composite_glyph): Adjust for the change of
895416e3
KH
7732 <strcut glyph>.u.cmp.to.
7733
8510724d
JB
77342009-02-11 Juanma Barranquero <lekktu@gmail.com>
7735
7736 * casetab.c (init_casetab_once):
7737 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7738 * font.c (font_update_lface):
7739 * fontset.c (Fnew_fontset):
7740 * ftfont.c (ftfont_drive_otf):
7741 * xfont.c (xfont_open):
7742 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7743
294fa707
SM
77442009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7745
7746 * fileio.c (Fwrite_region): !NILP -> CONSP.
7747
b5bfebec
AS
77482009-02-10 Andreas Schwab <schwab@suse.de>
7749
7750 * process.c (send_process): Properly relocate pointer into data
adab88bd 7751 when using encoded data. (Bug#2272)
b5bfebec 7752
cb84a2be
KH
77532009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7754
7755 * coding.c (detect_coding_charset): Fix previous change.
7756
89e09428
JR
77572009-02-08 Jason Rumney <jasonr@gnu.org>
7758
7759 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7760 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7761
4470a277
AS
77622009-02-07 Andreas Schwab <schwab@suse.de>
7763
7764 * unexelf.c (unexec): Fix error message.
7765
3175b12a
AR
77662009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7767
7768 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7769 when modal window is active. (Bug #2152)
3175b12a
AR
7770 (applicationShouldTerminate:): Remove now-unneeded while loop
7771 around NSRunAlertPanel.
7772
7773 * nsmenu.m (popupSession): New file-global variable.
7774 (pop_down_menu): End the popupSession before closing dialog.
7775 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7776 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7777 don't query NSApp for events (just sleep instead).
7778
8434d0b8
EZ
77792009-02-07 Eli Zaretskii <eliz@gnu.org>
7780
51d861de
SM
7781 * coding.c (syms_of_coding) <translation-table-for-input>:
7782 Modify doc string to discourage use for character code unification.
8434d0b8 7783
aa82edfd
CY
77842009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7785
7786 * atimer.c (run_timers): Update pending_atimers.
7787
2d283c7c
CY
77882009-02-06 Chong Yidong <cyd@stupidchicken.com>
7789
eb306cab
CY
7790 * image.c (svg_load_image): Fix last change.
7791
2d283c7c
CY
7792 * xfns.c (Fx_create_frame): Signal an error if no font is
7793 found (Bug#2147).
7794
4d8e170e
JB
77952009-02-05 Juanma Barranquero <lekktu@gmail.com>
7796
7797 * character.c (syms_of_character) <script-representative-chars>:
7798 Fix typo in docstring.
7799
c96169a0
AR
78002009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7801
7802 * nsmenu.m (pop_down_menu): New function.
7803 (ns_popup_dialog): Call it on unwind.
7804 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7805 call timer_check() (Bug#2154).
7806 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7807 handling_signal is set.
7808 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7809
31fd7c5c 7810 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7811
7812 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7813
7814 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7815
51d861de
SM
7816 * keyboard.c (poll_for_input_1, handle_async_input):
7817 Set handling_signal under HAVE_NS.
c96169a0 7818
aacd8ba1
GM
78192009-02-04 Glenn Morris <rgm@gnu.org>
7820
7821 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7822
4cb75c4b
KH
78232009-02-04 Kenichi Handa <handa@m17n.org>
7824
7825 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7826
7827 * charset.c (Fchar_charset): New optional arg restriction.
7828
7829 * coding.h (coding_system_charset_list): Extern it.
7830
7831 * coding.c (coding_system_charset_list): New function.
7832
7833 * composite.c: Include coding.h and termhooks.h.
7834 (composition_gstring_p): Fix for the terminal case.
7835 (composition_gstring_width): Likewise.
7836 (fill_gstring_body): Likewise.
7837 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7838 the frame.
7839 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7840 is within a composition.
867d4bb3 7841 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7842
7843 * term.c (encode_terminal_code): Fix handling of composition.
7844 (produce_composite_glyph): For static composition, get pixel_width
7845 from struct composition.
7846
826ba17e
AS
78472009-02-02 Andreas Schwab <schwab@suse.de>
7848
7849 * unexelf.c (unexec): Handle unaligned bss offset.
7850
8ad093db
AR
78512009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7852
7853 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7854 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7855
8ad093db
AR
7856 * keyboard.c (handle_interrupt): Don't call
7857 quit_throw_to_read_char() under NS.
d0a76a6e 7858
8ad093db
AR
7859 * blockinput.h: Remove NS-specific code.
7860
4d18a7a2
DN
78612009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7862
db878925
DN
7863 * dispnew.c (window_change_signal): Don't try to get the size of a
7864 suspended tty frame.
7865 * term.c (Fresume_tty): Resize if the size has changed while the
7866 tty was suspended.
7867
4d18a7a2
DN
7868 * alloc.c (mark_stack): Properly conditionalize previous change.
7869
8984df7c
JB
78702009-01-30 Juanma Barranquero <lekktu@gmail.com>
7871
7872 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7873 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7874 Remove; this code is not used on Windows.
7875
75f4f1ac
EZ
78762009-01-30 Eli Zaretskii <eliz@gnu.org>
7877
7878 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7879 EOLs that also has stray ^M characters.
7880
07a1e794
JB
78812009-01-30 Juanma Barranquero <lekktu@gmail.com>
7882
7883 * atimer.c (run_timers, alarm_signal_handler):
7884 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7885 * w32inevt.c (w32_console_read_socket):
7886 * w32term.c (w32_read_socket):
7887 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7888
a8b11cc9
CY
78892009-01-30 Chong Yidong <cyd@stupidchicken.com>
7890
7891 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7892 Initialize it as a relative filename pattern.
7893 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7894 (Fcall_process_region): Simplify temp file creation using
7895 temporary-file-directory.
7896
c279587b
EZ
78972009-01-29 Eli Zaretskii <eliz@gnu.org>
7898
7899 * msdos.c: Rename pending_signals to msdos_pending_signals.
7900 (sig_suspender, sigprocmask): Adjust.
7901
a8fe3242
CY
79022009-01-29 Chong Yidong <cyd@stupidchicken.com>
7903
7904 * keyboard.c (pending_signals): New var.
7905 (poll_for_input, input_available_signal, init_keyboard): Set it.
7906 (process_pending_signals): New function.
7907
7908 * lisp.h (QUIT): Check pending_signals instead of
7909 interrupt_input_pending. Use process_pending_signals.
7910
51d861de 7911 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7912
51d861de 7913 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7914
7915 * sysdep.c (emacs_write): Use process_pending_signals.
7916
7917 * xterm.c (XTread_socket): Update pending_signals.
7918
7919 * w32term.c (w32_read_socket): Update pending_signals.
7920
7921 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7922
6570a1c4
KH
79232009-01-29 Kenichi Handa <handa@m17n.org>
7924
7925 * xftfont.c (xftfont_has_char): New function.
7926 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7927
d72a4afa
AR
79282009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7929
7930 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7931 under GNUstep.
7932 (ns_query_color): New declaration.
7933
7934 * nsterm.m (ns_confirm_quit): New variable.
7935 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7936 (EmacsApp-applicationShouldTerminate:): Use it.
7937 (EmacsPrefsController): Let user set it.
7938 (ns_query_color): New function.
7939 (ns_defined_color): Use it.
7940 (ns_initialize): Drop.
7941 (ns_term_init): Add two lines from ns_initialize(), and set
7942 input_interrupt_mode to nil.
7943
7944 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7945 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7946
9fe78804
KH
79472009-01-28 Kenichi Handa <handa@m17n.org>
7948
7949 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7950 (fontset_get_font_group): Remember that no font-group is specified
7951 for C.
9fe78804 7952
fa57de36
CY
79532009-01-27 Chong Yidong <cyd@stupidchicken.com>
7954
930600e9
CY
7955 * fns.c (concat): Check for string overflow (bug#1787).
7956
fa57de36
CY
7957 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7958 Quadruple undo limits (bug#1501).
7959
7179ce7b
KH
79602009-01-27 Kenichi Handa <handa@m17n.org>
7961
7962 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7963 directly use GT_Get_Char_index.
7964
7965 * xftfont.c (struct xftfont_info): New member `index'.
7966
7967 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7968 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7969
5be8fcc0
CY
79702009-01-26 Kenichi Handa <handa@m17n.org>
7971
7972 * fontset.c (fontset_find_font): Fix handling of non-cons return
7973 value of fontset_get_font_group.
7974 (fontset_font): Revert last change.
7975
19ae3e61
JR
79762009-01-26 Jason Rumney <jasonr@gnu.org>
7977
7978 * w32font.c (w32font_list_internal): Return quickly if registry is
7979 unknown. Simplify final return.
7980 (add_font_entity_to_list): Break complex logic down into more
7981 manageable chunks. Move unknown registry check to
7982 w32font_list_internal.
7983
8612b71a
AR
79842009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7985
7986 Changes to remove Feval calls from GUI under NS.
7987
d8038940
JB
7988 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7989 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7990 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7991
7992 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7993 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7994 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7995 instead of NON_ASCII_KEYSTROKE_EVENT.
7996 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7997 (EmacsApp-applicationShouldTerminate:): Query user.
7998 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7999 instead of Feval.
8000
8001 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8002
8003 * keyboard.c (kbd_buffer_get_event): Check for it.
8004 (keys_of_keyboard): Define lispy keys for
8005 ns-put/unput-working-text.
8006
8007 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8008 versions.
8009 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8010
6288ae55
CY
80112009-01-25 Chong Yidong <cyd@stupidchicken.com>
8012
8013 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8014 setting current_buffer directly. (Bug#2044)
6288ae55 8015
289e7f8f
CY
80162009-01-24 Chong Yidong <cyd@stupidchicken.com>
8017
5ce87308 8018 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8019 any work. (Bug#1952, bug#1990).
5ce87308 8020
64cc3cf6 8021 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8022
b3243e6f
AR
80232009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8024
8025 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8026 (ns_no_defaults): New declaration.
8027 (main): Use it.
e0d2e69a 8028
d900b2af 8029 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8030
d900b2af 8031 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8032
d900b2af
AR
8033 * nsterm.m (ns_no_defaults): New variable.
8034 (ns_initialize): Don't read defaults when ns_no_defaults.
8035 (EmacsView-readSelectionFromPasteboard:)
8036 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8037 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8038 (ns_dumpglyphs_stretch): New function.
8039 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8040 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8041
e0d2e69a
AR
8042 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8043
3ac71f5d
CY
80442009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8045
8046 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8047 call for Sparc64.
8048
3fe53a83
AR
80492009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8050
8051 * nsfns.m:
8052 * nsgui.h:
8053 * nsmenu.m:
8054 * nsselect.m:
8055 * nsterm.h:
8056 * nsterm.m: Remove '23' comments that indicated code added during
8057 update from emacs-20 -> emacs-23.
8058
10f87c6f 80592009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8060
8061 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8062 ns_alternate_modifier. (Bug#1217)
a3b53a85 8063
c7cef62d
AR
8064 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8065 Display all shortcuts, including those w/o super modifier.
8066
575fb8bd
AR
8067 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8068
918b848b
CY
80692009-01-22 Chong Yidong <cyd@stupidchicken.com>
8070
8071 * fileio.c (Vwrite_region_post_annotation_function)
8072 (Vwrite_region_annotation_buffers): New vars.
8073 (build_annotations_unwind): Just reset
8074 Vwrite_region_annotation_buffers.
8075 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8076 Call write-region-post-annotation-function.
8077 (build_annotations): Add to Vwrite_region_annotation_buffers if
8078 buffer changes.
8079
a39e2539
AR
80802009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8081
8082 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8083 Tiger.
51d861de
SM
8084 * nsfns.m (ns_do_applescript):
8085 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8086
35ed44db
AR
80872009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8088
8089 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8090
cbe0b5bf
AR
80912009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8092
8093 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8094
6049d3a0
AR
8095 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8096
8097 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8098 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8099 handle Ctrl-tab. (Bug#1841)
8100 (ns_get_color): Use unsigned long long for scanned hex string value.
8101 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8102 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8103 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8104 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8105 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8106 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8107 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8108
d3810c21 8109 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8110 DPI. (Bug#1316)
d3810c21
AR
8111 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8112 values in onTiger section.
4c7077c3 8113
e301e634
CY
81142009-01-19 Chong Yidong <cyd@stupidchicken.com>
8115
7f82490b
CY
8116 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8117 Check return value of font_spec_from_name.
64cc3cf6 8118 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8119
8120 * font.c (font_spec_from_name): Return Qnil if font name could not
8121 be parsed.
8122 (font_parse_name): Treat a `?' character as part of an XLFD.
8123
e301e634
CY
8124 * fns.c (Fsubstring): Doc fix.
8125
1c0db158
KH
81262009-01-19 Kenichi Handa <handa@m17n.org>
8127
51d861de 8128 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8129 (ftfont_list): Likewise.
8130
acf20901
JB
81312009-01-18 Juanma Barranquero <lekktu@gmail.com>
8132
fff4e459
JB
8133 * dbusbind.c (Fdbus_register_signal):
8134 * process.c (conv_sockaddr_to_lisp):
8135 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8136
acf20901
JB
8137 * callproc.c (Fgetenv_internal): Doc fix.
8138
e7abcdfb
CY
81392009-01-16 Chong Yidong <cyd@stupidchicken.com>
8140
8141 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8142 it is not even used.
8143
b60861e6
GM
81442009-01-16 Glenn Morris <rgm@gnu.org>
8145
8146 * font.c (Ffont_variation_glyphs): Silence compiler.
8147
8db52afe
JB
81482009-01-15 Juanma Barranquero <lekktu@gmail.com>
8149
8150 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8151 Reported by David Robinow <drobinow@gmail.com>.
8152
4cddb209
KH
81532009-01-15 Kenichi Handa <handa@m17n.org>
8154
51d861de 8155 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8156
f247f67b
JR
81572009-01-14 Jason Rumney <jasonr@gnu.org>
8158
8159 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8160 never a fontset. (Bug#1562)
f247f67b 8161
f56a4450
KH
81622009-01-14 Kenichi Handa <handa@m17n.org>
8163
8164 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8165 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8166
4e99855e
CY
81672009-01-13 Chong Yidong <cyd@stupidchicken.com>
8168
8169 * font.c (font_clear_prop): If clearing the family, clear the font
8170 width index too.
8171
fff4e459 8172 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8173
24f01470
JB
81742009-01-12 Juanma Barranquero <lekktu@gmail.com>
8175
8176 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8177 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8178 functions, use sizeof.
8179
a41240a3
MR
81802009-01-12 Martin Rudalics <rudalics@gmx.at>
8181
8182 * keyboard.c (read_char): Fix case where last_nonmenu_event
8183 returned a bad value with submenus. (Bug#447)
8184
944636b8
CY
81852009-01-12 Chong Yidong <cyd@stupidchicken.com>
8186
8187 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8188 family, clear the font width index too.
8189
0dad7c6f
JR
81902009-01-11 Jason Rumney <jasonr@gnu.org>
8191
8192 * keyboard.c (cmd_error_internal): Exit when errors occur before
8193 frame creation and not in daemon mode. (Bug#1836)
8194
7c2363af
CY
81952009-01-10 Chong Yidong <cyd@stupidchicken.com>
8196
8197 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8198 of a display vector, backtrack.
8199 (try_window_reusing_current_matrix): Check glyph type before
8200 referencing charpos member.
8201
97b1b294
EZ
82022009-01-10 Eli Zaretskii <eliz@gnu.org>
8203
8204 Fix Bug #876:
8205
8206 * coding.c (inhibit_null_byte_detection): New variable.
8207 (detect_coding, detect_coding_system): Don't pay attention to null
8208 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8209 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8210 <inhibit-iso-escape-detection>: Doc fix.
8211
4624b6e3
JR
82122009-01-09 Jason Rumney <jasonr@gnu.org>
8213
8214 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8215 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8216 Only report Unicode Plane 2 fonts as unicode-sip.
8217
323b840c
CY
82182009-01-09 Chong Yidong <cyd@stupidchicken.com>
8219
51d861de
SM
8220 * xfaces.c (Fx_font_family_list): Delete function.
8221 Move compatibility version to faces.el.
323b840c 8222
51d861de 8223 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8224
eba7400d
MR
82252009-01-09 Martin Rudalics <rudalics@gmx.at>
8226
8227 * frame.c (x_set_frame_parameters): Remember requested value for
8228 fullscreen before it's reset by the parameter handler.
8229
4b09796d
GM
82302009-01-09 Glenn Morris <rgm@gnu.org>
8231
8232 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8233 (last_command_event): ... and update all users.
4b09796d
GM
8234 (last_input_char): For clarity, rename to...
8235 (last_input_event): ... and update all users.
8236 (last-command-char, last-input-char): Move to subr.el as aliases.
8237 * cmds.c, commands.h: Update for last_command_char rename.
8238
14ccea62
CY
82392009-01-08 Chong Yidong <cyd@stupidchicken.com>
8240
51d861de 8241 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8242
5f004711
JR
82432009-01-08 Jason Rumney <jasonr@gnu.org>
8244
8245 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8246 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8247 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8248 Don't declare.
fff4e459 8249 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8250 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8251
b71f6f73
KH
82522009-01-07 Kenichi Handa <handa@m17n.org>
8253
50b06221 8254 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8255 remember the coding system used for decoding in
50b06221
KH
8256 coding_system (Bug#1039).
8257
b71f6f73 8258 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8259 breaking the loop. (Bug#870)
b71f6f73
KH
8260 (decode_coding_utf_16, decode_coding_emacs_mule)
8261 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8262 (decode_coding_charset): Likewise.
8263
56f668f7
MR
82642009-01-05 Martin Rudalics <rudalics@gmx.at>
8265
8266 * frame.c (x_set_frame_parameters): Make sure height (width) get
8267 applied when fullwidth (fullheight) is set. (Bug#1522)
8268
5da9424d
JB
82692009-01-04 Juanma Barranquero <lekktu@gmail.com>
8270
8271 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8272 (utc_base): Declare as ULONGLONG, not long double.
8273 (convert_time_raw): Delete.
8274 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8275 (initialize_utc_base): New function.
8276 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8277 (convert_from_time_t): Use initialize_utc_base; compute result with
8278 64-bit arithmetic.
8279 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8280
c4605e09
EZ
82812009-01-03 Eli Zaretskii <eliz@gnu.org>
8282
9acef61c 8283 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8284 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8285 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8286 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8287 [!subprocesses]: Define.
8288 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8289 (Flist_system_processes, Fsystem_process_attributes)
8290 [!subprocesses]: Call list_system_processes and
8291 system_process_attributes instead of returning Qnil.
8292
9acef61c
JB
8293 * dosfns.c (system_process_attributes, list_system_processes):
8294 New functions.
c4605e09
EZ
8295
8296 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8297
8298 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8299 Don't use the default (no-op) implementation.
8300
8b7d0a16
JR
83012009-01-03 Jason Rumney <jasonr@gnu.org>
8302
a6d46bc1
JR
8303 * keyboard.c (parse_modifiers_uncached): Wheel events are
8304 clicks (bug#687).
8305
8b7d0a16
JR
8306 * w32term.c (x_query_colors, x_query_color): New functions.
8307
8308 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8309 (svg_load_image): Cast returned pointers from dynamically loaded
8310 functions. Eliminate W32 specific code.
8311
bfe11752
DN
83122009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8313
89e2438a
DN
8314 * nsfns.m (x_set_foreground_color, x_set_background_color)
8315 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8316 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8317 x_ prefix instead of ns_. Update references.
8318 (syms_of_nsfns): Add a FIXME comment.
8319
8320 * nsterm.m (x_set_cursor_type): New prototype.
8321 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8322
bfe11752
DN
8323 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8324 for Solaris instead of incorrectly providing Qutime and Qcutime.
8325
031da700
EZ
83262009-01-02 Eli Zaretskii <eliz@gnu.org>
8327
8328 * w32.c (process_times): Compute sum of utime and stime.
8329 (system_process_attributes): Add Qtime to the alist.
8330
8331 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8332 and add them to the alist.
8333
8334 * process.c (top level) <Qtime, Qctime>: New variables.
8335 (syms_of_process): staticpro them.
8336 (Fsystem_process_attributes): Add their documentation to the doc
8337 string.
8338
8339 * process.h: Declare Qtime and Qctime.
8340
df23bf08
JR
83412009-01-02 Jason Rumney <jasonr@gnu.org>
8342
9acef61c 8343 * image.c (Qgobject): New symbol.
df23bf08
JR
8344 (syms_of_image): Initialize it.
8345 (init_svg_functions): Load some functions from gobject library.
8346
5bbdf7aa
DN
83472009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8348
8349 * frame.c (make_terminal_frame): Remove redundant code and useless
8350 block.
8351
63136da6
AS
83522009-01-01 Andreas Schwab <schwab@suse.de>
8353
8354 * process.c (conv_sockaddr_to_lisp): Add workaround for
8355 getsockname bug on BSD.
8356
9ef69046
CY
83572009-01-01 Chong Yidong <cyd@stupidchicken.com>
8358
d6fafbe0
CY
8359 * xfns.c (x_create_tip_frame): Set border width of the X window.
8360
51d861de 8361 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8362
f9c34147
JR
83632009-01-01 Jason Rumney <jasonr@gnu.org>
8364
9acef61c 8365 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8366 Don't block input, as per earlier xterm.c changes.
8367
f5497e45
AR
83682008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8369
8370 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8371 (ns_appkit_version_int): New function.
8372 (x-server-version): Use ns_appkit_version_int and follow 21+
8373 convention of returning 3 integers.
8374
c19cab20
KH
83752008-12-30 Kenichi Handa <handa@m17n.org>
8376
8377 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8378 (CHAR_SURROGATE_PAIR_P): New macro.
8379
8380 * font.h (struct font_driver): New member get_variation_glyphs.
8381
9acef61c 8382 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8383 (Ffont_variation_glyphs): New function.
8384 (syms_of_font): Defsubr it.
8385
8386 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8387 ftfont_variation_glyphs.
8388 (setup_otf_gstring): New function.
8389 (ftfont_drive_otf): Use it.
8390 (ftfont_shape_by_flt): Handle variation selector.
8391 (ftfont_variation_glyphs): New function.
8392
28cd591f
MR
83932008-12-30 Martin Rudalics <rudalics@gmx.at>
8394
8395 * frame.c (Vemacs_iconified): Remove.
8396
7f714baf
JR
83972008-12-30 Jason Rumney <jasonr@gnu.org>
8398
8399 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8400 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8401
9d2d22ab
CY
84022008-12-30 Chong Yidong <cyd@stupidchicken.com>
8403
8404 * indent.c (Fvertical_motion): Don't advance iterator if we have
8405 reseated to the desired position.
8406
8407 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8408 checking for pos match.
8409
545312c2
KH
84102008-12-30 Kenichi Handa <handa@m17n.org>
8411
1ede3eb6
KH
8412 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8413 just get the low 8-bit of the code.
8414
545312c2
KH
8415 * font.c (font_intern_prop): Validate str as multibyte.
8416
bd7bbf29
DN
84172008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8418
31e0750e
DN
8419 * dispextern.h (struct face): Move lface and hash from the middle
8420 of bitfields.
8421
bd7bbf29
DN
8422 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8423
b5672e7c
DN
84242008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8425
8426 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8427 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8428 instead of intervals.h.
8429
d704470f
AS
84302008-12-26 Andreas Schwab <schwab@suse.de>
8431
8432 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8433 cons.
8434
54b33868
MR
84352008-12-26 Martin Rudalics <rudalics@gmx.at>
8436
8437 * textprop.c (Qminibuffer_prompt): New variable.
8438 (syms_of_textprop): Initialize it.
8439 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8440 in minibuffer-prompt face. (Bug#1662)
8441
40b615d6
JR
84422008-12-25 Jason Rumney <jasonr@gnu.org>
8443
8444 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8445
baae5c2d
JR
84462008-12-24 Jason Rumney <jasonr@gnu.org>
8447
8448 * ralloc.c (r_alloc_reset_variable): New function.
8449
8450 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8451 record of what points where. (Bug#716)
baae5c2d 8452
a9051c88
DN
84532008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8454
8455 * minibuf.c (read_minibuf): Follow the non-interactive case when
8456 running as a daemon, before detaching.
8457
8b146312
AS
84582008-12-22 Andreas Schwab <schwab@suse.de>
8459
8460 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8461 * gtkutil.c (free_widget_value): Use xfree instead of free.
8462
56f2de10
MR
84632008-12-22 Martin Rudalics <rudalics@gmx.at>
8464
8465 * frame.c (delete_frame): New function derived from
8466 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8467 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8468 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8469 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8470 * frame.h: Extern delete_frame.
8471 * window.c (window_loop):
8472 * terminal.c (delete_terminal):
8473 * xterm.c (x_connection_closed):
8474 * xfns.c (Fx_hide_tip):
9acef61c 8475 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8476
1fc200d6
JR
84772008-12-21 Jason Rumney <jasonr@gnu.org>
8478
8479 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8480 when character maps to .notdef character.
8481
5e252df2
SM
84822008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8483
8484 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8485
99b72cc4
JR
84862008-12-20 Jason Rumney <jasonr@gnu.org>
8487
8488 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8489 a graphical frame on Windows. (Bug#1325)
99b72cc4 8490
acc49a52
JD
84912008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8492
8493 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8494
6ea15123
CY
84952008-12-20 Chong Yidong <cyd@stupidchicken.com>
8496
8497 * minibuf.c (Fread_buffer): Doc fix.
8498
b2dab6c8
JR
84992008-12-20 Jason Rumney <jasonr@gnu.org>
8500
54ea0c87 8501 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8502 server name in UNC paths. (Bug#719)
54ea0c87 8503
b2dab6c8 8504 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8505 charbuf. (Bug#1035)
b2dab6c8 8506
6d1921be
DN
85072008-12-19 Daniel Engeler <engeler@gmail.com>
8508
8509 * sysdep.c (serial_configure): Fix typo.
8510
53934c98
DN
85112008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8512
8513 * sysdep.c: Include alloca.h.
f4f634e8
DN
8514 (system_process_attributes): Add implementation for Solaris.
8515
8516 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8517
06e111a6
DN
85182008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8519
8520 Reorganize implementation of Flist_system_processes and
8521 Fsystem_process_attributes. No functional changes.
8522 * process.c: Don't #include pwd.h, grp.h and limits.h.
8523 (Flist_system_processes): Just call list_system_processes.
8524 (Fsystem_process_attributes): Just call system_process_attributes.
8525 (procfs_list_system_processes, time_from_jiffies)
8526 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8527 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8528
8529 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8530 (list_system_processes): Rename from
8531 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8532 Provide a do nothing implementation.
8533 (system_process_attributes): Rename from
8534 procfs_list_system_processes.
8535 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8536 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8537
8538 * w32.c (list_system_processes): Rename from
8539 w32_list_system_processes.
8540 (system_process_attributes): Rename from
8541 w32_system_process_attributes.
8542
8543 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8544
8545 * process.h (w32_list_system_processes)
8546 (w32_system_process_attributes): Remove.
362654a6
JB
8547 (list_system_processes, system_process_attributes):
8548 New prototypes.
06e111a6 8549
6a705b23
KH
85502008-12-19 Kenichi Handa <handa@m17n.org>
8551
8552 * xfont.c (xfont_decode_coding_xlfd): New function.
8553 (xfont_encode_coding_xlfd): New function.
8554 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8555 (xfont_list): Decode and encode XLFD by iso-8859-1.
8556 (xfont_match): Likewise.
8557 (xfont_list_family): Likewise.
8558 (xfont_open): Likewise.
8559
d66c0241 8560 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8561 names are utf-8.
8562
d66c0241 8563 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8564 names are utf-8.
8565
5a130941
JD
85662008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8567
8568 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8569 changed.
bfd20325
JD
8570 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8571 clicked on a detached tool bar button.
5a130941 8572
fd95644b
DN
85732008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8574
8575 * emacs.c (main): Print and error and exit when no data is read
8576 from the pipe.
8577
e6eee6ae
JR
85782008-12-17 Jason Rumney <jasonr@gnu.org>
8579
8580 * w32font.c (w32font_has_char): Always return -1.
8581
a35dd56b
KH
85822008-12-16 Kenichi Handa <handa@m17n.org>
8583
8584 * font.c (font_open_entity): Fix previous change.
8585
0e3635c2
DN
85862008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8587
8588 * process.c: Include <limits.h>.
8589
d4835507 85902008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8591
8592 * font.c (font_update_drivers): Fix mistake in reconstructing the
8593 driver list.
8594
85952008-12-16 Chong Yidong <cyd@stupidchicken.com>
8596
8597 * font.c (font_clear_cache): Fix format of font cache data.
8598
e2cbc401
CY
85992008-12-15 Chong Yidong <cyd@stupidchicken.com>
8600
8601 * xftfont.c (xftfont_open): Free Xft font pattern if
8602 XftFontOpenPattern fails.
8603
8604 * xterm.c (x_free_frame_resources): Remove extraneous call to
8605 free_frame_faces.
8606
b131d535
CY
86072008-12-13 Chong Yidong <cyd@stupidchicken.com>
8608
8609 * xterm.c (x_delete_display): Move xim_close_dpy call to
8610 x_delete_terminal.
8611 (x_delete_terminal): Call xim_close_dpy.
8612
e6df5336
JR
86132008-12-13 Jason Rumney <jasonr@gnu.org>
8614
8615 * w32font.c (intern_font_name): New function.
8616 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8617 (w32font_open_internal, Fx_select_font): Decode font name.
8618 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8619
8620 * w32font.h (intern_font_name): Declare new function.
8621
8622 * w32uniscribe.c (add_opentype_font_name_to_list):
8623 Use intern_font_name.
8624
20d68145
CY
86252008-12-13 Chong Yidong <cyd@stupidchicken.com>
8626
9f2554de
CY
8627 * frame.c (Fdelete_frame): Call free_font_driver_list.
8628
3d9bec9a
CY
8629 * font.c (free_font_driver_list): Implement missing function.
8630
20d68145
CY
8631 * w32term.c (w32_term_init): Don't initialize the image cache
8632 here; it will be done in init_frame_faces.
8633
8634 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8635 (struct x_display_info): Remove unused member null_pixel. New
8636 member xim_callback_data.
8637
8638 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8639 (xim_initialize): Save pointer to callback function data.
8640 (xim_close_dpy): Free callback function data. Call XCloseIM,
8641 reverting 2008-11-04 change by David Smith.
8642 (x_term_init): Don't initialize the image cache here; it will be
8643 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8644 (x_delete_display): Free x_dnd_atoms member.
8645
96f9306b
KH
86462008-12-13 Kenichi Handa <handa@m17n.org>
8647
6dec9044
JB
8648 * font.c (font_rescale_ratio): Moved from xfaces.c.
8649 Argument type changed. Handle a font-spec too.
96f9306b 8650 (font_score): Check Vface_font_rescale_alist.
6dec9044 8651 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8652
8653 * xfaces.c (font_rescale_ratio): Moved to font.c.
8654
8d5b4964
CY
86552008-12-13 Chong Yidong <cyd@stupidchicken.com>
8656
8657 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8658
e6df5336
JR
86592008-12-12 Jason Rumney <jasonr@gnu.org>
8660
8661 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8662 Vwindow_system_version to the real w32 major version.
8663
97c6058a
DN
86642008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8665
8666 * term.c (init_tty): Move setting the terminal name before the
8667 potential user: maybe_fatal.
8668
ec4e88d7
CY
86692008-12-11 Chong Yidong <cyd@stupidchicken.com>
8670
d4835507
JB
8671 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8672 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8673
b4233ec9
JR
86742008-12-11 Jason Rumney <jasonr@gnu.org>
8675
8ec71e23 8676 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8677 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8678
b4233ec9 8679 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8680 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8681
011a0143
JB
86822008-12-11 Juanma Barranquero <lekktu@gmail.com>
8683
8684 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8685
3c309f34
JB
86862008-12-11 Juanma Barranquero <lekktu@gmail.com>
8687
8688 * process.c (Fsystem_process_attributes, syms_of_process):
8689 Fix typo in name of Ssystem_process_attributes.
8690 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8691
fedc6ab5
JB
86922008-12-11 Juanma Barranquero <lekktu@gmail.com>
8693
8694 * syntax.c (Fmodify_syntax_entry): Doc fix.
8695
ba3de0e8
JB
86962008-12-10 Juanma Barranquero <lekktu@gmail.com>
8697
8698 * font.c (Ffont_spec): Move usage to end of docstring.
8699
174f1c74
JR
87002008-12-10 Jason Rumney <jasonr@gnu.org>
8701
8702 * w32font.c (Qcham): New symbol.
8703 (font_supported_scripts): Add cham, and comments for other new
8704 scripts in bitfield from OpenType spec.
9d32f818
JR
8705 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8706 contain characters beyond the bmp.
174f1c74 8707
7b649478
KH
87082008-12-10 Kenichi Handa <handa@m17n.org>
8709
8710 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8711 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8712 Qunicode_sip.
8713
2133e2d1
JB
87142008-12-10 Juanma Barranquero <lekktu@gmail.com>
8715
8716 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8717 (Fcoding_system_put): Use QCdefault_char.
8718 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8719
9af886ee
CY
87202008-12-09 Chong Yidong <cyd@stupidchicken.com>
8721
74d819eb
CY
8722 * xftfont.c (syms_of_xftfont): Fix typo.
8723
4ccfa1c0 8724 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8725
7c19d3ae
DN
87262008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8727
8728 * emacs.c (main): Close daemon_pipe on exec.
8729
567826bb
CY
87302008-12-08 Chong Yidong <cyd@stupidchicken.com>
8731
8732 * termchar.h (struct tty): New members termcap_term_buffer and
8733 termcap_strings_buffer.
8734
8735 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8736 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8737 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8738 All callers changed.
8739 (init_tty): Store termcap data and string buffers in new struct
8740 tty members termcap_term_buffer and termcap_strings_buffer.
8741 (delete_tty): Free them.
4ccfa1c0 8742 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8743
aa96c42b
SZ
87442008-12-07 Seiji Zenitani <zenitani@mac.com>
8745
8746 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8747 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8748
b7e1d896
CY
87492008-12-06 Chong Yidong <cyd@stupidchicken.com>
8750
8751 * coding.c (make_conversion_work_buffer): Disable buffer
8752 modification hooks in the work buffer.
8753
b5ec91a5
EZ
87542008-12-05 Eli Zaretskii <eliz@gnu.org>
8755
8756 * process.c (procfs_system_process_attributes): If `nread' has a
8757 negative value, assign zero to it.
8758
a5d2a52b
CY
87592008-12-05 Chong Yidong <cyd@stupidchicken.com>
8760
68c5540b 8761 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8762
7bf1bb21
KH
87632008-12-05 Kenichi Handa <handa@m17n.org>
8764
8765 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8766 second character is a combining character.
8767
2fdc7d00
EZ
87682008-12-05 Eli Zaretskii <eliz@gnu.org>
8769
8770 * process.c (procfs_system_process_attributes): Don't use cmd,
8771 cmdsize, and q without initializing them first.
8772
bf6bfba8
JR
87732008-12-04 Jason Rumney <jasonr@gnu.org>
8774
8775 * w32font.c (w32font_draw): Initialize orig_clip before getting
8776 it, and delete it when finished.
8777
a3b1a468
DN
87782008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8779
8780 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8781 case when running as a daemon before detaching.
8782
8b8be8eb
JB
87832008-12-03 Juanma Barranquero <lekktu@gmail.com>
8784
805f2638 8785 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8786
b1bde622
KH
87872008-12-03 Kenichi Handa <handa@m17n.org>
8788
e500c47d
KH
8789 * font.c (font_at): Set `multibyte' at first.
8790
ca516334
KH
8791 * coding.c (decode_coding_charset): Check type of an element of
8792 vector VALIDS.
7bf1bb21 8793 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8794
4ccfa1c0 8795 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8796 (font_for_char): Likewise.
8797
1e5ecd37
CY
87982008-12-03 Chong Yidong <cyd@stupidchicken.com>
8799
d5b01609 8800 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8801 (font_update_lface): Handle fonts with corrupted size specs,
8802 i.e. non-int and non-float.
d5b01609 8803
11e3a6e4 8804 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8805 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8806 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8807
ab06788b
CY
8808 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8809
1e5ecd37 8810 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8811 underline_minimum_offset for underline position.
1e5ecd37 8812
63c125ab
DN
88132008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8814
8815 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8816
8817 * character.c (c_string_width): Specify the type for LEN.
8818
3a8406e1
KH
88192008-12-03 Kenichi Handa <handa@m17n.org>
8820
4ccfa1c0 8821 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8822 (decode_coding_utf_8): Likewise.
4ccfa1c0 8823 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8824 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8825
651df7d9
CY
88262008-12-02 Chong Yidong <cyd@stupidchicken.com>
8827
8828 * keyboard.c (make_lispy_position): Only use PT if the selected
8829 window is current.
8830
1f625c6c
AS
88312008-12-02 Andreas Schwab <schwab@suse.de>
8832
f7741ce9
AS
8833 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8834
1f625c6c
AS
8835 * doprnt.c (doprnt1): Fix size of charbuf.
8836
92bc2678
CY
88372008-12-02 Chong Yidong <cyd@stupidchicken.com>
8838
8839 * keyboard.c (timer_check): Revert last change.
8840
93b9e8cc
JB
88412008-12-02 Juanma Barranquero <lekktu@gmail.com>
8842
8843 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8844
fd7a37d5
JB
88452008-12-01 Juanma Barranquero <lekktu@gmail.com>
8846
8847 * makefile.w32-in: Update dependencies.
8848 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8849
c115043b
AS
88502008-12-01 Andreas Schwab <schwab@suse.de>
8851
8852 * font.c (register_font_driver): Use xmalloc.
8853 (font_put_frame_data): Likewise.
8854
f5668d2a
CY
88552008-12-01 Chong Yidong <cyd@stupidchicken.com>
8856
860d96be
CY
8857 * xfaces.c (realize_x_face): Make abort condition clearer.
8858
f5668d2a
CY
8859 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8860
379c17e7
CY
88612008-11-30 Chong Yidong <cyd@stupidchicken.com>
8862
8863 * keyboard.c (timer_check): After a timer runs, ensure that the
8864 selected window's buffer is current.
8865
35f36d65
JB
88662008-11-30 Juanma Barranquero <lekktu@gmail.com>
8867
f952c61c
JB
8868 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8869 It was accidentally restored by the Unicode merge.
8870
35f36d65
JB
8871 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8872
b23077df
JB
88732008-11-29 Juanma Barranquero <lekktu@gmail.com>
8874
8875 * w32proc.c: Include "coding.h".
8876 (Fw32_short_file_name): Encode filename passed to Windows API.
8877 (Fw32_long_file_name): Encode filename passed to Windows API and
8878 decode back the result. (Bug#1433)
8879
b8ebe9dd
KH
88802008-11-29 Kenichi Handa <handa@m17n.org>
8881
8cc53f96
KH
8882 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8883 not before accessing it.
8884
b8ebe9dd
KH
8885 * charset.c (Fdefine_charset_internal): After calculating
8886 min_char, max_char, and fastmap, copy the charset structure again.
8887 (encode_char): Fix the previous change.
8888
59bc82c0
SZ
88892008-11-28 Seiji Zenitani <zenitani@mac.com>
8890
8891 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8892
8893 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8894
8895 * nsterm.m (x_set_frame_alpha): New function.
8896
32247e3d
EZ
88972008-11-27 Eli Zaretskii <eliz@gnu.org>
8898
8899 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8900
b003e5ff
JB
89012008-11-27 Juanma Barranquero <lekktu@gmail.com>
8902
8903 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8904 pointer to check_face_name.
8905
708550f5
KH
89062008-11-27 Kenichi Handa <handa@m17n.org>
8907
8908 * category.h (SET_CATEGORY_SET): Call set_category_set.
8909 (set_category_set): Extern it.
8910
8911 * category.c (hash_get_category_set): New function.
8912 (Fmodify_category_entry): Adjusted for the change of
8913 char_table_ref_and_range. Call hash_get_category_set to get a
8914 category set to store in the table.
8915
8916 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8917 Funify_charset.
8918
2ae37cf0 8919 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8920 (DECODE_CHAR): Check if the decoder vector is ready.
8921 (ENCODE_CHAR): Check if the encoder char-table is ready.
8922 (maybe_unify_char): Extern it.
8923
8924 * charset.c (Vchar_unified_charset_table): Delete it.
8925 (inhibit_load_charset_map): New variable.
8926 (temp_charset_work): New variable.
8927 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8928 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8929 New macros.
8930 (load_charset_map): Meaning of control_flag changed. If
8931 inhibit_load_charset_map is nonzero, setup a table in
8932 temp_charset_work.
8933 (load_charset): New argument control_flag.
8934 (map_charset_for_dump): New function.
8935 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8936 map_charset_for_dump.
8937 (Fdefine_charset_internal): If the charset method is MAP, load
8938 mapping tables by calling load_charset.
8939 (Funify_charset): Don't load a mapping table but directly set
8940 Vchar_unify_table.
8941 (maybe_unify_char): New function.
8942 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8943 Handle the case of inhibit_load_charset_map being nonzero.
8944 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8945 Handle the case of inhibit_load_charset_map being nonzero.
8946 (Fclear_charset_maps): Just free temp_charset_work.
8947 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8948 variable.
8949
8950 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8951 change of char_table_ref_and_range.
8952 (char_table_ref_and_range): Change the meaning of argument FROM
8953 and TO. Now the caller must provide initial values for *FROM
8954 and *TO.
8955
8956 * fontset.c (fontset_add): Adjusted for the change of
8957 char_table_ref_and_range.
8958 (fontset_get_font_group): Likewise.
8959 (Ffontset_info): Likewise.
8960
8961 * keymap.c (describe_vector): Adjusted for the change of
8962 char_table_ref_and_range. For char-table, put boundary between
8963 non-ASCII and 8-bit characters.
8964
8965 * print.c (print_object): For bool-vector, delete unnecessary
8966 check of ASCII_BYTE_P.
8967
9196133b
JR
89682008-11-26 Jason Rumney <jasonr@gnu.org>
8969
8970 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8971 leading in font height. (Bug#879)
9196133b 8972
9f688acf
GM
89732008-11-26 Glenn Morris <rgm@gnu.org>
8974
8975 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8976 redefinition with ifdef. (Bug#1383)
8977
90d19aff
AR
89782008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8979
8980 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8981
4ccfa1c0 89822008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8983
8984 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8985 New EmacsView methods.
8986 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8987 Fixes bug #1048,1357,1414.
8988
89892008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8990
8991 Fix bug #1362.
8992 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8993 is not an indexed color.
8994 * nsterm.m (free_indexed_color): Add argument checking.
8995 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8996
e7d5ecb3
CY
89972008-11-24 Chong Yidong <cyd@stupidchicken.com>
8998
8999 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9000 Document confirm-after-completion value for
9001 minibuffer-completion-confirm.
9002
c285743c
JR
90032008-11-24 Jason Rumney <jasonr@gnu.org>
9004
9005 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9006 warning.
9007
b0857706
JR
90082008-11-23 Jason Rumney <jasonr@gnu.org>
9009
9010 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9011 restored before returning.
9012
9013 * w32font.c (check_face_name): New function.
9014 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9015 fonts. (Bug#642)
b0857706 9016
ee50ff07
MR
90172008-11-22 Martin Rudalics <rudalics@gmx.at>
9018
9019 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9020 confirm-nonexistent-file-or-buffer in doc-string.
9021
b8ff72fa
SM
90222008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9023
9024 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9025 Fix copy/paste typo. Add checks.
9026
cee53ed4
KH
90272008-11-21 Kenichi Handa <handa@m17n.org>
9028
9029 * coding.c (detect_coding_iso_2022): Reject invalid composition
9030 sequence.
9031 (DECODE_COMPOSITION_START): If the current source is the last
9032 block, and the current composition doesn't end, regard this
9033 sequence as invalid.
9034 (decode_coding_iso_2022): Handle invalid composition sequence.
9035
f6ef1e65
MR
90362008-11-20 Martin Rudalics <rudalics@gmx.at>
9037
9038 * window.c (coordinates_in_window): Don't return
9039 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9040 line when the window is not the rightmost one. (Bug#1372)
9041
e08b1705
MR
90422008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9043
9044 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9045
ad98e89f
EZ
90462008-11-15 Eli Zaretskii <eliz@gnu.org>
9047
9048 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9049 and bright_bg if noninteractive is non-zero.
9050
fb098a4b
CY
90512008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9052
9053 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9054 x_draw_glyph_string_background.
9055
9056 * w32term.c (x_draw_glyph_string): Likewise.
9057
ce952b6e
CY
90582008-11-15 Chong Yidong <cyd@stupidchicken.com>
9059
9060 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9061 the next glyph string once past the overhang width.
9062
9063 * nsterm.m (ns_draw_glyph_string): Likewise.
9064
9065 * w32term.c (x_draw_glyph_string): Likewise.
9066
26ea7079
CY
90672008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9068
9069 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9070 double file close.
9071
1c33c906
MR
90722008-11-14 Martin Rudalics <rudalics@gmx.at>
9073
9074 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9075 dedicated status of window before attempting to display another
9076 buffer in it.
9077
8fc29035
JB
90782008-11-14 Juanma Barranquero <lekktu@gmail.com>
9079
9080 * msdos.c (Fmsdos_long_file_names):
9081 (syms_of_msdos) <dos-unsupported-char-glyph>:
9082 * dosfns.c (Fint86): Fix typos in docstrings.
9083
55fb4286
EZ
90842008-11-14 Eli Zaretskii <eliz@gnu.org>
9085
9086 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9087
3fda0315
KY
90882008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9089
9090 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9091
7e849c17
CY
90922008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9093
9094 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9095
9096 * frame.h: Negative alpha means "don't touch".
9097
9098 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9099
9100 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9101
b9fd67bd
DN
91022008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9103
9104 * hftctl.c:
9105 * chpdef.h:
9106 * acldef.h: Remove files used only for systems no longer supported.
9107
9108 * Makefile.in: Fix .o alphabetical ordering.
9109 (hftctl.o): Remove dependency, file removed.
9110 (keymap.o, print.o): Depend on charset.h.
9111
d5998e03
KH
91122008-11-10 Kenichi Handa <handa@m17n.org>
9113
2ae37cf0 9114 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9115
be70e183
CY
91162008-11-08 Chong Yidong <cyd@stupidchicken.com>
9117
9118 * dired.c (file_name_completion): If completion_ignore_case is
9119 enabled, ignore case when checking completion-regexp-list.
9120
7cf94eac
EZ
91212008-11-08 Eli Zaretskii <eliz@gnu.org>
9122
9123 * vm-limit.c (get_lim_data): Fix last change.
9124
ee107a89
KH
91252008-11-08 Kenichi Handa <handa@m17n.org>
9126
9127 * character.c (Fget_byte): New function.
9128 (syms_of_character): Defsubr Fget_byte.
9129
5fd15622
CY
91302008-11-07 Chong Yidong <cyd@stupidchicken.com>
9131
9132 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9133 cursor position is valid after scrolling.
9134
13d62fad
JB
91352008-11-06 Juanma Barranquero <lekktu@gmail.com>
9136
9137 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9138
a1dd2936
GM
91392008-11-06 Glenn Morris <rgm@gnu.org>
9140
9141 * xterm.c (handle_one_xevent): Don't let popup menus cause
9142 mouse-autoselect-window related window switching. (Bug#1261)
9143
860cd236
CY
91442008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9145
9146 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9147
653a3150
AS
91482008-11-04 Andreas Schwab <schwab@suse.de>
9149
9150 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9151
870f5cac
CY
91522008-11-03 Chong Yidong <cyd@stupidchicken.com>
9153
9154 * xfns.c (Fx_wm_set_size_hint): New function.
9155
1e02f3cb
MR
91562008-11-03 Martin Rudalics <rudalics@gmx.at>
9157
9158 * textprop.c (Fprevious_single_char_property_change): Return 0
9159 when there's no change in a string. (Bug#1301)
9160
e630dfc6
MR
91612008-11-02 Martin Rudalics <rudalics@gmx.at>
9162
9163 * frame.c (do_switch_frame): New argument NORECORD passed to
9164 Fselect_window.
9165 (Fselect_frame): New argument NORECORD passed to
9166 do_switch_frame.
9167 (Fset_frame_selected_window): New argument NORECORD passed to
9168 Fselect_frame.
9169 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9170 in call of do_switch_frame.
9171 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9172 Handle NORECORD argument in call of Fselect_frame.
9173 * lisp.h (do_switch_frame, Fselect_frame)
9174 (Fset_frame_selected_window): Adjust declarations.
9175 * window.c (select_frame_norecord): New function.
9176 (run_window_configuration_change_hook): Use it and call
9177 Fselect_frame with NORECORD set.
9178 (Fselect_window): Pass NORECORD to Fselect_frame.
9179 (Fset_window_configuration): Handle NORECORD argument in call of
9180 do_switch_frame.
9181 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9182 Fset_frame_selected_window.
9183 * keyboard.c (command_loop_1): Handle NORECORD in call of
9184 Fselect_frame (currently ifdefd).
9185
9020b223
GM
91862008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9187
9188 * emacs.c (USAGE2): Untabify.
9189
793ffee8
SM
91902008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9191
9192 * composite.c (fill_gstring_header): Fix copy/paste typo.
9193
ab6d1131
MR
91942008-10-31 Martin Rudalics <rudalics@gmx.at>
9195
9196 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9197 (Fother_window): Rename argument and rewrite doc-string.
9198 (select_window_norecord): Fix return value. (Bug#1276)
9199
601a9cf1
JB
92002008-10-30 Juanma Barranquero <lekktu@gmail.com>
9201
9202 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9203 new frames overriding foreground for tooltips. Based on similar patch
9204 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9205
813b0652
CY
92062008-10-29 Chong Yidong <cyd@stupidchicken.com>
9207
9208 * emacs.c (Fdaemon_initialized): Initialize nfd.
9209
4414f58f
MR
92102008-10-29 Martin Rudalics <rudalics@gmx.at>
9211
9212 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9213 (Fwindow_text_height): Clarify doc-strings.
9214 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9215 doc-string of window-scroll-functions.
9216
ecdcaa09
RS
92172008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9218
9219 * category.c (syms_of_category): Fix typo in docstring.
9220
23fe745a
JB
92212008-10-28 Juanma Barranquero <lekktu@gmail.com>
9222
9223 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9224 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9225 Fix typos in docstrings.
9226
ff808935
DN
92272008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9228
9229 * emacs.c (daemon_pipe): Make non-static.
9230 (IS_DAEMON): Move definition ...
9231 * lisp.h (IS_DAEMON): ... here.
9232 (daemon_pipe): Declare.
9233 (is_daemon): Remove.
9234 * dispnew.c (init_display): Use IS_DAEMON.
9235
fc012771
SM
92362008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9237
9238 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9239 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9240
9241 * emacs.c (is_daemon): Remove.
9242 (main): Don't set is_daemon.
9243 (IS_DAEMON): New macro.
9244 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9245 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9246 parent exits.
9247 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9248
d8bdbe6f
CY
92492008-10-27 Chong Yidong <cyd@stupidchicken.com>
9250
d1a072bf
CY
9251 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9252 over-sized glyph, draw it with the default glyph width.
9253
e2e325aa
CY
9254 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9255 glyph, draw it with the default glyph width.
9256
9257 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9258 glyph, draw it with the default glyph width.
9259
d8bdbe6f
CY
9260 * xdisp.c (try_scrolling): When computing the distance from the
9261 scroll margin to PT, try moving some distance past the window
9262 bottom before giving up.
9263
7bfac547
MR
92642008-10-27 Martin Rudalics <rudalics@gmx.at>
9265
9266 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9267 (Fset_window_buffer): Explain in doc-string that a window can be
9268 "strongly" dedicated to its buffer.
9269
4ff029f6
DN
92702008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9271
9272 * emacs.c (daemon_name): New variable.
9273 (main): Deal with --daemon=SERVER_NAME.
9274 (Fdaemonp): Return a name if one was passed to --daemon.
9275
5790ef40
DN
92762008-10-26 Romain Francoise <romain@orebokech.com>
9277
f9bd0df9 9278 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9279 (main): Create a pipe before forking, make the parent exit only after
9280 the child has closed its end of the pipe. Move closing the
9281 descriptors ...
9282 (Fdaemon_initialized): ... here. New function.
9283
f5385255
SM
92842008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9285
4d632321
SM
9286 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9287 the previous unoptimized table.
9288
f5385255
SM
9289 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9290 the distinction between non-nil and non-t value of `dedicated'.
9291
6c56a0f3
CY
92922008-10-25 Chong Yidong <cyd@stupidchicken.com>
9293
9294 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9295 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9296
fec89261
MR
92972008-10-25 Martin Rudalics <rudalics@gmx.at>
9298
9299 * window.c (Fget_buffer_window, Fdelete_windows_on)
9300 (Freplace_buffer_in_windows): Make buffer argument optional and
9301 rename to buffer_or_name.
9302
34fcddd0
CY
93032008-10-24 Chong Yidong <cyd@stupidchicken.com>
9304
f5385255
SM
9305 * xdisp.c (handle_single_display_spec, handle_display_prop):
9306 Undo 2005-05-16 change.
34fcddd0
CY
9307 (handle_stop): Pop iterator if it's loaded with an empty string.
9308 (get_overlay_strings_1): Don't save iterator if it's loaded with
9309 an empty string (bug#1201).
9310
064766f2
KH
93112008-10-24 Kenichi Handa <handa@m17n.org>
9312
9313 * ftfont.c (ftfont_otf_features): Fix previous change.
9314 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9315 calling ftfont_otf_features.
9316
f9bd0df9 93172008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9318
9319 * font.c (font_match_p): Fix for the case that a vector of
9320 characters is in script-representative-chars.
9321
1dae9197
MA
93222008-10-24 Michael Albinus <michael.albinus@gmx.de>
9323
9324 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9325 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9326 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9327 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9328 macro. (Bug#1186)
1dae9197 9329
f9bd0df9 93302008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9331
9332 * s/sol2-10.h: New file.
9333
878a4584
JB
93342008-10-23 Juanma Barranquero <lekktu@gmail.com>
9335
9336 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9337 poor beast has survived 9+ years and the jump from xterm.c!).
9338
cd265ca6
MR
93392008-10-23 Martin Rudalics <rudalics@gmx.at>
9340
9341 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9342 Reword doc-string.
f5385255 9343 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9344
472a4dc9
JB
93452008-10-23 Juanma Barranquero <lekktu@gmail.com>
9346
9347 * character.c (syms_of_character) <script-representative-chars>:
9348 <unicode-category-table>: Doc fixes.
9349
159bd5a2
NF
93502008-10-23 Noah Friedman <friedman@splode.com>
9351
9352 * coding.c (make_conversion_work_buffer): Check that
9353 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9354 Fget_buffer_create.
9355
49f9c344
KH
93562008-10-23 Kenichi Handa <handa@m17n.org>
9357
9358 * font.c (font_add_log): Check the values of extra properties.
9359
12bb3111
MR
93602008-10-22 Martin Rudalics <rudalics@gmx.at>
9361
9362 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9363 Reword doc-string.
9364 (Fset_window_parameter): Use NILP.
9365 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9366 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9367
bbeb4e99
JB
93682008-10-22 Juanma Barranquero <lekktu@gmail.com>
9369
9370 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9371
93722008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9373
9374 * nsfns.m (ns_appkit_version): New function.
9375 (x-server-version): Use it.
9376 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9377 (x-server-vendor): Don't check_ns().
9378
9379 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9380
a9b555d3
JB
93812008-10-22 Juanma Barranquero <lekktu@gmail.com>
9382
9383 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9384 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9385
4626499f
KH
93862008-10-22 Kenichi Handa <handa@m17n.org>
9387
e3681952
KH
9388 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9389 scripts.
9390
4626499f
KH
9391 * category.c (word_boundary_p): Check scripts instead of charset.
9392 Handle nil value in word-separating-categories and
9393 word-combining-categories.
9394 (syms_of_category): Fix docstrings of word-separating-categories
9395 and word-combining-categories.
9396
1560f91a
EZ
93972008-10-21 Eli Zaretskii <eliz@gnu.org>
9398
9399 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9400 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9401
f4668441
MR
94022008-10-21 Martin Rudalics <rudalics@gmx.at>
9403
9404 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9405 Rename arg "buffer" to "buffer_or_name".
9406 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9407 it optional.
9408 (no_switch_window): Remove since the return value is not used.
a9b555d3 9409 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9410 Consider window as dedicated when Fwindow_dedicated_p returns a
9411 non-nil value.
9412 * lisp.h: Remove prototype for no_switch_window.
9413
fd75ddb2
JD
94142008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9415
9416 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9417 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9418
07295713
KH
94192008-10-21 Kenichi Handa <handa@m17n.org>
9420
9421 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9422 check Vlatin_extra_code_table.
9423
712adc82
EZ
94242008-10-20 Eli Zaretskii <eliz@gnu.org>
9425
9426 * fileio.c (Fset_file_modes): Doc fix.
9427
f549eb0b
MA
94282008-10-19 Michael Albinus <michael.albinus@gmx.de>
9429
9430 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9431 in arrays.
9432
aac0c6e3
MR
94332008-10-19 Martin Rudalics <rudalics@gmx.at>
9434
9435 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9436 Mention kill-buffer in doc-string.
9437 (Fset_window_buffer): Reinsert tem check removed in last commit.
9438 (Fenlarge_window, Fshrink_window): Have argument names and
9439 doc-string follow Elisp manual more closely.
9440
94412008-10-18 Eli Zaretskii <eliz@gnu.org>
9442
9443 * fileio.c (Fset_file_modes): Doc fix.
9444
94452008-10-18 Martin Rudalics <rudalics@gmx.at>
9446
9447 * window.c (Fwindow_width, Fset_window_start)
9448 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9449 (Fdelete_windows_on, Freplace_buffer_in_windows):
9450 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9451 (Fwindow_dedicated_p): Make window argument optional.
9452 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9453 (Fset_window_buffer): Respect any non-nil dedicated value for
9454 window. Rename "buffer" argument to "buffer_or_name".
9455
94562008-10-18 Ulrich Mueller <ulm@gentoo.org>
9457
9458 * m/sh3.h: New file, machine description for SuperH.
9459
94602008-10-17 Martin Rudalics <rudalics@gmx.at>
9461
9462 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9463
94642008-10-17 Kenichi Handa <handa@m17n.org>
9465
9466 * ftfont.c (ftfont_otf_features): Fix indexing
9467 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9468
94692008-10-16 Magnus Henoch <mange@freemail.hu>
9470
9471 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9472 (Fdbus_call_method_asynchronously): Ditto.
9473 This change makes C-h f display the argument list.
9474
94752008-10-16 Chong Yidong <cyd@stupidchicken.com>
9476
9477 * fileio.c (Fexpand_file_name): Doc fix.
9478
9479 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9480 of :foreground and :background equivalent to unspecified (20.x
9481 compatibility).
9482
94832008-10-15 Eli Zaretskii <eliz@gnu.org>
9484
9485 * buffer.c (syms_of_buffer): Doc fix.
9486
94872008-10-14 Kenichi Handa <handa@m17n.org>
9488
9489 * font.c (font_clear_prop): When clearing font width, clear the
9490 average width field too.
9491
94922008-10-12 Andreas Schwab <schwab@suse.de>
9493
9494 * ftfont.c (ftfont_shape_by_flt): Make static.
9495 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9496
9497 * font.c: Don't include <m17n-flt.h>.
9498
94992008-10-10 Eli Zaretskii <eliz@gnu.org>
9500
9501 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9502
95032008-10-09 Eli Zaretskii <eliz@gnu.org>
9504
9505 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9506 away code.
9507
95082008-10-09 Chong Yidong <cyd@stupidchicken.com>
9509
9510 * dispnew.c (update_text_area): Avoid looping due to large glyph
9511 overhangs (bug#1070).
9512
95132008-10-09 Kenichi Handa <handa@m17n.org>
9514
9515 * fontset.c (face_for_char): If face->fontset is negative, just
9516 return ascii_face.
9517
f5385255
SM
9518 * font.c (font_delete_unmatched): Fix previous change.
9519 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9520
95212008-10-09 Martin Rudalics <rudalics@gmx.at>
9522
9523 * frame.c (Fraise_frame): On text-only terminals select frame in
9524 order to make it visible. (Bug#1061)
9525
95262008-10-08 Chong Yidong <cyd@stupidchicken.com>
9527
9528 * fontset.c (fontset_find_font): Check frame validity.
9529
95302008-10-07 Chong Yidong <cyd@stupidchicken.com>
9531
a9b555d3 9532 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9533 (xg_display_close): Allow Emacs to close all displays (bug#985).
9534
95352008-10-06 Andreas Schwab <schwab@suse.de>
9536
f5385255 9537 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9538
95392008-10-06 Chong Yidong <cyd@stupidchicken.com>
9540
f5385255 9541 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9542
a9b555d3 9543 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9544
9545 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9546 during initialization.
9547
95482008-10-04 Eli Zaretskii <eliz@gnu.org>
9549
9550 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9551 whole thing on MSDOS frames as well as on a TTY.
9552
9553 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9554 well as for TTY.
9555 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9556 well as on a TTY.
9557
9558 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9559 as well as for TTY.
9560
9561 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9562
9563 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9564 MSDOS frames as well.
9565
95662008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9567
9568 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9569 correct arguments.
b71ac3dd 9570 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9571
95722008-10-03 Glenn Morris <rgm@gnu.org>
9573
9574 * emacs.c (USAGE1): Add --daemon.
9575
95762008-10-02 Eli Zaretskii <eliz@gnu.org>
9577
9578 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9579 100, so it's in percents as advertised.
9580
95812008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9582
9583 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9584 (ns_output.current_cursor, ns_output.desired_cursor)
9585 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9586 (FRAME_NEW_CURSOR_COLOR): Remove.
9587
9588 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9589 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9590 enumeration (HOLLOW_BOX_CURSOR, etc.).
9591
9592 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9593 (draw_window_cursor): Simplify code.
f5385255
SM
9594 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9595 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9596 updates manually.
a9b555d3
JB
9597 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9598 Use core Emacs cursor types.
aac0c6e3 9599
b8ff72fa 9600 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9601
96022008-10-02 Martin Rudalics <rudalics@gmx.at>
9603
9604 * process.c (Faccept_process_output): Fix doc-string.
9605
96062008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9607
9608 * gmalloc.c (__sbrk): Also define for uClibc.
9609
9610 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9611 for uClibc.
9612
96132008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9614
9615 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9616 styles.
9617 (nsfont_open): Reenable the cache.
9618
96192008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9620
9621 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9622 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9623
96242008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9625
9626 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9627 a suspended terminal.
9628
96292008-09-30 Michael Albinus <michael.albinus@gmx.de>
9630
9631 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9632
96332008-09-30 Eli Zaretskii <eliz@gnu.org>
9634
9635 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9636
96372008-09-30 Chong Yidong <cyd@stupidchicken.com>
9638
9639 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9640 in a continued line coincides with a line beginning.
9641
96422008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9643
9644 * nsfont.m (nsfont_trait_distance): Fix bug.
9645 (nsfont_list): Return a list rather than a vector (syncs with Handa
9646 changes of 2008-05-14).
9647 (nsfont_open): Improve logging.
9648
96492008-09-29 Andreas Schwab <schwab@suse.de>
9650
9651 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9652
96532008-09-28 Martin Rudalics <rudalics@gmx.at>
9654
9655 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9656 name as char-resolve-modifiers.
9657 Reported by: Markus Triska <markus.triska@gmx.at>
9658
96592008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9660
9661 * dispnew.c (init_display): Return earlier when running as a daemon.
9662
96632008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9664
9665 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9666
96672008-09-27 Eli Zaretskii <eliz@gnu.org>
9668
9669 * composite.c (Fcomposition_get_gstring)
9670 (Fcompose_region_internal, Fcompose_string_internal)
9671 (Ffind_composition_internal): Doc fix.
9672 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9673 (syms_of_composite) <auto-composition-function>: Doc fix.
9674 (syms_of_composite) <composition-function-table>: Doc fix.
9675
96762008-09-25 Chong Yidong <cyd@stupidchicken.com>
9677
9678 * search.c (wordify): New argument for lax word-ends.
9679 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9680
96812008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9682
9683 * lisp.h (is_daemon): Declare.
9684 * dispnew.c (init_display): Do not try to initialize the terminal
9685 when running as a daemon.
9686
96872008-09-22 Chong Yidong <cyd@stupidchicken.com>
9688
9689 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9690 x_display_pixel_height.
9691
96922008-09-22 Martin Rudalics <rudalics@gmx.at>
9693
9694 * undo.c (record_point): Don't call Fundo_boundary for first
9695 change. (Bug#731)
9696
96972008-09-22 Juanma Barranquero <lekktu@gmail.com>
9698
9699 * emacs.c (Fdaemonp): Doc fix.
9700
97012008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9702
9703 * emacs.c (main): Place #ifdef in the proper place.
9704
97052008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9706
9707 * emacs.c (standard_args): Add --daemon.
9708 (main): Disconnect from the terminal when --daemon is passed.
9709 (is_daemon): New variable.
9710 (Fdaemonp): New function.
9711 (syms_of_emacs): Defsubr it.
9712
97132008-09-20 Chong Yidong <cyd@stupidchicken.com>
9714
9715 * xdisp.c (get_next_display_element): Handle string display
9716 correctly when checking for the end of a box run.
9717
97182008-09-20 Glenn Morris <rgm@gnu.org>
9719
9720 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9721 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9722 (Frename_file): Avoid copying to trash if a rename involves
9723 a delete. (Bug#964).
9724
97252008-09-20 Eli Zaretskii <eliz@gnu.org>
9726
9727 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9728 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9729 frames as well as termcap frames.
9730 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9731 get_named_tty.
9732
97332008-09-19 Eli Zaretskii <eliz@gnu.org>
9734
9735 * process.c (procfs_system_process_attributes): Fix cmdline in
9736 case /proc/PID/cmdline is empty.
9737
9738 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9739 x_display_pixel_height.
9740
97412008-09-19 Juanma Barranquero <lekktu@gmail.com>
9742
9743 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9744
9745 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9746 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9747
97482008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9749
9750 * dispextern.h (struct it): Move line_wrap away from the middle of
9751 bitfields. Move voffset in struct iterator_stack_entry after the
9752 bitfields. Move tab_width near after another short.
9753
97542008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9755
9756 * frame.h (struct frame): Move alpha from the middle of bitfields.
9757
9758 * window.h (struct window): Move frozen_window_start_p after the
9759 rest of the bitfields to reduce padding.
9760
97612008-09-18 Chong Yidong <cyd@stupidchicken.com>
9762
9763 * xterm.h (x_display_info): Remove `height' and `width' members.
9764
9765 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9766
9767 * w32term.h (w32_display_info): Remove `height', `width',
9768 `height_in', and `width_in' members.
9769
b8ff72fa
SM
9770 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9771 New functions.
aac0c6e3
MR
9772 (x_calc_absolute_position): Use them.
9773 (x_term_init): Omit removed `height' and `width' members.
9774
b8ff72fa
SM
9775 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9776 New functions.
aac0c6e3
MR
9777 (w32_read_socket, x_calc_absolute_position): Use them.
9778 (w32_initialize_display_info, w32_term_init): Omit removed members
9779 of w32_display_info.
9780
b8ff72fa
SM
9781 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9782 New functions.
9783 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9784
b8ff72fa
SM
9785 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9786 New functions.
aac0c6e3
MR
9787 (x_calc_absolute_position): Use them.
9788 (x_term_init): Omit removed `height' and `width' members.
9789
9790 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9791 (compute_tip_xy):
9792 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9793 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9794 x_display_pixel_width.
9795
97962008-09-18 Kenichi Handa <handa@m17n.org>
9797
9798 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9799 (composition_compute_stop_pos): Fix handling of static composition.
9800 (Fcomposition_get_gstring): Check FROM and TO at first.
9801
98022008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9803
46e722a9 9804 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9805 mixup (YAILOM).
9806
98072008-09-17 Chong Yidong <cyd@stupidchicken.com>
9808
9809 * indent.c (Fvertical_motion): Use position reported by iterator
9810 instead of PT for determining screen motion (bug#943).
9811
98122008-09-17 Romain Francoise <romain@orebokech.com>
9813
9814 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9815
98162008-09-17 Kenichi Handa <handa@m17n.org>
9817
9818 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9819
9820 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9821 if necessary.
9822
98232008-09-16 Kenichi Handa <handa@m17n.org>
9824
9825 * coding.c (make_conversion_work_buffer): Avoid calling
9826 Fget_buffer_create if it is not necessary.
9827
98282008-09-15 Martin Rudalics <rudalics@gmx.at>
9829
9830 * window.c (Fselect_window): Don't update window_select_count and
9831 use_time when norecord is not nil.
9832
98332008-09-14 Kenichi Handa <handa@m17n.org>
9834
9835 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9836 specpdl_ptr.
9837
98382008-09-12 Kenichi Handa <handa@m17n.org>
9839
9840 * indent.c (scan_for_column): Don't handle automatic composition
9841 if the current buffer is not associated with a window.
9842
9843 * composite.c (composition_reseat_it): If the current buffer is
9844 not associated with a window, ignore the automatic composition.
9845 (find_automatic_composition): Likewise.
9846
98472008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9848
9849 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9850 (Fgpm_mouse_stop): Use it.
9851 * termhooks.h (close_gpm): Declare.
9852 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9853 connection if Gpm_GetEvent fails.
9854
9855 * window.c (set_window_buffer): Always preserve current-buffer.
9856
98572008-09-12 Glenn Morris <rgm@gnu.org>
9858
9859 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9860
98612008-09-11 Glenn Morris <rgm@gnu.org>
9862
9863 * charset.c (charset-map-path): Doc fix.
9864
98652008-09-10 Kenichi Handa <handa@m17n.org>
9866
9867 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9868
9869 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9870 compose a grapheme cluster with the preceding base glyph.
9871
9872 * composite.c (composition_compute_stop_pos): Fix previous change.
9873 Reset cmp_it->id to -1 at first.
9874
98752008-09-10 Glenn Morris <rgm@gnu.org>
9876
9877 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9878
98792008-09-09 Chong Yidong <cyd@stupidchicken.com>
9880
9881 * keyboard.c (read_key_sequence): Reapply translation maps when
9882 switching keyboards.
9883
98842008-09-09 Kenichi Handa <handa@m17n.org>
9885
9886 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9887 characters.
9888
9889 * composite.c (FORWARD_CHAR): Fix calculation
9890 of (POSITION).pos_byte.
9891 (composition_compute_stop_pos): Limit the search of composition to
9892 at most 500 characters ahead. If we reach the limit or find a
9893 newline, set cmp_it->ch to -2 and return 0.
9894 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9895
98962008-09-08 Kenichi Handa <handa@m17n.org>
9897
9898 * indent.c (Fvertical_motion): Be sure to set
9899 it_overshoot_expected if it.cmp_it.id is non-negative.
9900
99012008-09-07 Andreas Schwab <schwab@suse.de>
9902
9903 * callproc.c (Fcall_process): Don't hold references to string data
9904 across garbage collection. Move initialisation of new_argv down
9905 to avoid compiler bug.
9906
99072008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9908
9909 * process.c (Fsystem_process_attributes): Doc fix.
9910
99112008-09-07 Chong Yidong <cyd@stupidchicken.com>
9912
9913 * callproc.c (Fcall_process): Canonicalize current directory name.
9914
9915 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9916 iterator advances to the next line if the current line ends in a
9917 continued tab.
9918
99192008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9920
9921 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9922 member to point to cmp_from.
9923
9924 * xdisp.c: Doc fix for references to gidx data member.
9925
99262008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9927
9928 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9929
99302008-09-07 Kenichi Handa <handa@m17n.org>
9931
9932 * composite.c (FORWARD_CHAR): Check STOP after
9933 incrementing (POSITION).pos.
9934
99352008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9936
9937 * process.c (Fsystem_process_attributes): Doc fix.
9938
99392008-09-06 Chong Yidong <cyd@stupidchicken.com>
9940
9941 * keyboard.c (Ftop_level): Doc fix.
9942
99432008-09-06 Eli Zaretskii <eliz@gnu.org>
9944
9945 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9946 minibuffer, don't let lower part of menu invade the echo area.
9947
9948 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9949 "char *q" to access menu text and advance through it. Revert the
9950 change that displayed ">" instead of ASCII character 0x10.
9951
99522008-09-05 Eli Zaretskii <eliz@gnu.org>
9953
9954 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9955 toggle boxes and radio buttons on MS-DOS as well.
9956
99572008-09-05 Kenichi Handa <handa@m17n.org>
9958
9959 * composite.c (autocmp_chars): Check lookback count.
9960 (composition_compute_stop_pos): Set cmp_it->lookback.
9961 (composition_reseat_it): Check lookback count.
9962 (struct position_record): New struct.
9963 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9964 (find_automatic_composition): New function.
9965 (composition_adjust_point): Use find_automatic_composition.
9966
9967 * dispextern.h (struct composition_it): New member lookback.
9968
99692008-09-02 Chong Yidong <cyd@stupidchicken.com>
9970
9971 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9972 if moving by a single line.
9973
99742008-09-02 Andreas Schwab <schwab@suse.de>
9975
9976 * xterm.c (x_delete_display): Fix merge error.
9977
9978 * fileio.c (Fexpand_file_name): Remove unused variables.
9979
99802008-09-02 Eli Zaretskii <eliz@gnu.org>
9981
9982 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9983 storage on all platforms, not just on DOS_NT.
9984
99852008-09-02 Jason Rumney <jasonr@gnu.org>
9986
b8ff72fa
SM
9987 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9988 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9989
99902008-09-01 Chong Yidong <cyd@stupidchicken.com>
9991
9992 * xfaces.c (Finternal_set_alternative_font_family_alist)
9993 (Finternal_set_alternative_font_registry_alist): Properly copy
9994 entire alist structure.
9995
99962008-09-01 Kenichi Handa <handa@m17n.org>
9997
d66c0241 9998 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9999 representative chars of the script is a vector.
d66c0241
JB
10000 (ftfont_list): Handle the case where the representative chars of
10001 the script is a vector.
aac0c6e3
MR
10002
10003 * character.c (syms_of_character): Docstring of
10004 script-representative-chars fixed.
10005
100062008-08-31 Eli Zaretskii <eliz@gnu.org>
10007
10008 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10009 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10010 the menu. Allocate larger buffer for `text', to account for
10011 possible ^C characters.
10012
100132008-08-31 Martin Rudalics <rudalics@gmx.at>
10014
10015 * xdisp.c (prepare_menu_bars): Don't call
10016 Vwindow_size_change_functions with arg Qt.
10017
100182008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10019
10020 * font.h (font_range):
10021 * fileio.c (report_file_error):
46e722a9
SM
10022 * composite.c (composition_update_it): Yet another int/Lisp_Object
10023 mixup (YAILOM).
aac0c6e3
MR
10024
100252008-08-30 Glenn Morris <rgm@gnu.org>
10026
10027 * data.c (Fmake_variable_frame_local): Doc fix.
10028
10029 * frame.c (Fmodify_frame_parameters): Doc fix.
10030
100312008-08-30 Eli Zaretskii <eliz@gnu.org>
10032
10033 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10034 needed by GetTokenInformation.
10035 (w32_system_process_attributes): Check return values of all system
10036 APIs.
10037
10038 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10039 only when the state changes.
10040 (IT_update_begin, IT_update_end): Add termscript trace.
10041
10042 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10043 clipboard is unavailable. Set dst to NULL if it doesn't point to
10044 malloc'ed data.
10045 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10046 passing random values to xfree.
10047
10048 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10049 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10050
100512008-08-29 Jason Rumney <jasonr@gnu.org>
10052
10053 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10054
100552008-08-29 Eli Zaretskii <eliz@gnu.org>
10056
10057 * composite.c (fill_gstring_body): Avoid compiler warnings.
10058
10059 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10060 LGLYPH_SET_CODE to avoid compiler warnings.
10061
2ae37cf0 10062 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10063
10064 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10065
10066 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10067 LGLYPH_SET_CODE.
10068
100692008-08-29 Kenichi Handa <handa@m17n.org>
10070
10071 * fileio.c (report_file_error): Don't downcase the first character
10072 of errstring if it is still unibyte.
10073
100742008-08-29 Kenichi Handa <handa@m17n.org>
10075
10076 These changes are to re-implement the automatic composition so
10077 that it doesn't use text properties.
10078
10079 * Makefile.in (ftfont.o): Depend on composite.h.
10080 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10081
10082 * character.h (Vunicode_category_table): Extern it.
10083
10084 * character.c (Vunicode_category_table): New variable.
10085 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10086
10087 * chartab.c (optimize_sub_char_table): Perform more greedy
10088 optimization.
10089
b8ff72fa
SM
10090 * composite.h (enum composition_method):
10091 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10092 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10093 (Vcomposition_function_table): Extern it.
10094 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10095 (composition_gstring_put_cache, composition_gstring_from_id)
10096 (composition_gstring_p, composition_gstring_width)
10097 (composition_compute_stop_pos, composition_reseat_it)
10098 (composition_update_it, composition_adjust_point): Extern them.
10099 (Fcomposition_get_gstring): EXFUN it.
10100
d66c0241 10101 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10102 (Vcomposition_function_table)
10103 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10104 (gstring_hash_table, gstring_work, gstring_work_headers):
10105 New variables.
aac0c6e3
MR
10106 (gstring_lookup_cache, composition_gstring_put_cache)
10107 (composition_gstring_from_id, composition_gstring_p)
10108 (composition_gstring_width, fill_gstring_header)
10109 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10110 (composition_reseat_it, composition_update_it)
b8ff72fa 10111 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10112 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10113 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10114 Defsubr composition_get_gstring.
aac0c6e3
MR
10115
10116 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10117 cmp_id.
10118 (struct glyph_string): Delete the member gidx. New members
10119 cmp_id, cmp_from, and cmp_to.
10120 (enum it_method): Delete GET_FROM_COMPOSITION.
10121 (struct composition_it): New struct.
10122 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10123 Delete c, len, cmp_id, cmp_len in u.comp.
10124
10125 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10126 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10127 (enum lglyph_indices): Likewise.
b8ff72fa 10128 (font_range): Adjust extern.
aac0c6e3
MR
10129 (font_fill_lglyph_metrics): Extern it.
10130
10131 * font.c (QCf): New variable.
10132 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10133 (font_prepare_composition): Delete this function.
10134 (font_range): Type and arguments changed.
10135 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10136 (font_fill_lglyph_metrics): New function.
b8ff72fa 10137 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10138 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10139 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10140 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10141
10142 * fontset.h (font_for_char): Extern it.
10143
10144 * fontset.c (font_for_char): New function.
10145
10146 * ftfont.c: Include composite.h.
10147 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10148 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10149
10150 * indent.c: Include composite.h and dispextern.h.
10151 (check_composition): Delete this function.
10152 (scan_for_column): Handle composition by
10153 composition_compute_stop_pos, composition_reseat_it, and
10154 composition_update_it.
10155 (compute_motion): Likewise.
10156 (Fvertical_motion): Fix checking of composition.
10157
10158 * keyboard.c (adjust_point_for_property): Check composition by
10159 composition_adjust_point.
10160
b8ff72fa 10161 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10162 struct glyph_string.
10163
b8ff72fa
SM
10164 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10165 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10166 struct glyph.
10167 (produce_composite_glyph): Likewise.
10168
b8ff72fa
SM
10169 * w32term.c (x_draw_composite_glyph_string_foreground):
10170 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10171 (x_draw_glyph_string): Likewise.
10172
10173 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10174 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10175
10176 * xdisp.c: Include font.h.
10177 (it_props): Delete the entry for Qauto_composed.
10178 (init_iterator): Initialize it->cmp_it.id to -1.
10179 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10180 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10181 (handle_auto_composed_prop): Delete it.
10182 (handle_composition_prop): Handle only static composition.
10183 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10184 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10185 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10186 (pop_it): Likewise.
10187 (get_next_element): Delete next_element_from_composition.
10188 (CHAR_COMPOSED_P): New macro.
10189 (get_next_display_element): For automatic composition, get a face
10190 from the font in the glyph-string.
10191 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10192 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10193 (next_element_from_string): Check if the character at the current
10194 position is composed by CHAR_COMPOSED_P.
10195 (next_element_from_buffer): Likewise.
d66c0241
JB
10196 (next_element_from_composition): Adjust for the change of struct it.
10197 Update it->cmp_it.
b8ff72fa
SM
10198 (dump_glyph): Adjust for the change of struct glyph.
10199 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10200 it and struct glyph. Don't handle automatic composition here.
10201 (fill_gstring_glyph_string): New function.
10202 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10203 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10204 (BUILD_GSTRING_GLYPH_STRING): New macro.
10205 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10206 automatic composition.
b8ff72fa 10207 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10208 struct glyph.
b8ff72fa 10209 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10210
b8ff72fa 10211 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10212 the change of struct glyph_string.
10213 (x_draw_glyph_string): Likewise.
10214
102152008-08-29 Glenn Morris <rgm@gnu.org>
10216
10217 * buffer.c (word-wrap): Doc fix.
10218 * xdisp.c (truncate-partial-width-windows): Doc fix.
10219 Increase default to 50.
10220
102212008-08-29 Chong Yidong <cyd@stupidchicken.com>
10222
10223 * xdisp.c (update_tool_bar_unwind): New function.
10224 (update_tool_bar): Temporarily set selected frame before building
10225 tool-bar items.
10226
102272008-08-28 Michael Albinus <michael.albinus@gmx.de>
10228
10229 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10230 snprintf, respectively.
10231 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10232
102332008-08-28 Chong Yidong <cyd@stupidchicken.com>
10234
10235 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10236 LDFLAGS to GNUstep CC invocation.
10237
102382008-08-27 Chong Yidong <cyd@stupidchicken.com>
10239
10240 * indent.c (Fvertical_motion): Revert last change. Handle the
10241 general case where we are moving forward, and PT spans multiple
10242 screen lines.
10243
10244 * eval.c (find_handler_clause): Temporarily increase
10245 max-lisp-eval-depth while printing the backtrace buffer, to
10246 guarantee that help-mode code can run.
10247
102482008-08-27 Eli Zaretskii <eliz@gnu.org>
10249
10250 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10251 colors under -rv.
10252 (IT_set_frame_parameters): Don't swap foreground and background
10253 colors if `(reverse . t)' is present in the frame properties.
10254 (internal_terminal_init): Call init_frame_faces only for the
10255 initial frame.
10256
102572008-08-27 Andreas Schwab <schwab@suse.de>
10258
10259 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10260
102612008-08-27 Andreas Schwab <schwab@suse.de>
10262
10263 * search.c (search_buffer): Set char_base to zero only at the end.
10264
102652008-08-27 Kenichi Handa <handa@m17n.org>
10266
b8ff72fa 10267 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10268
102692008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10270
10271 * xterm.c (x_term_init): Temporarily hide the partially
10272 initialized terminal while calling vendor-specific-keysyms.
10273
102742008-08-26 Eli Zaretskii <eliz@gnu.org>
10275
10276 * msdos.c (internal_terminal_init): Most initializations done only
10277 once, especially initial_screen_colors[] and termscript open.
10278
102792008-08-26 Chong Yidong <cyd@stupidchicken.com>
10280
10281 * eval.c (Fcondition_case): Doc fix.
10282
10283 * widgetprv.h (EmacsFramePart): Change font member to the new font
10284 struct.
10285
10286 * widget.c: Include character.h and font.h for XSETFONT.
10287 (setup_frame_gcs): Compute X font id from font struct, just once.
10288
102892008-08-26 Eli Zaretskii <eliz@gnu.org>
10290
10291 * term.c (get_named_tty): Fix last change.
10292
102932008-08-26 Chong Yidong <cyd@stupidchicken.com>
10294
10295 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10296 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10297
102982008-08-25 Eli Zaretskii <eliz@gnu.org>
10299
10300 * frame.c (do_switch_frame): Mark previously displayed frame as
10301 obscured for FRAME_MSDOS_P frames as well.
10302
103032008-08-24 Eli Zaretskii <eliz@gnu.org>
10304
10305 * frame.c (make_terminal_frame): Initialize f->terminal,
10306 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10307 Set the top frame to newly created frame.
10308 (Fmake_terminal_frame): Reuse the_only_display_info.
10309
10310 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10311 estimating available memory.
10312
b97439ce 103132008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10314
10315 * nsterm.m (ns_draw_window_cursor): Don't call
10316 NSDisableScreenUpdates and NSEnableScreenUpdates on
10317 non-NS_IMPL_COCOA systems.
10318
103192008-08-23 Andreas Schwab <schwab@suse.de>
10320
10321 * process.c (procfs_system_process_attributes): Fix use of
10322 uninitialized variables.
10323
103242008-08-23 Eli Zaretskii <eliz@gnu.org>
10325
10326 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10327
10328 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10329 calling tty-set-up-initial-frame-faces.
10330
b8ff72fa
SM
10331 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10332 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10333
10334 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10335 addition to output_termcap.
10336
10337 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10338
10339 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10340 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10341 highlight.
10342
10343 * process.c [!subprocesses]: Define QCname.
10344 (syms_of_process): Intern and staticpro it.
10345
10346 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10347 Adjust for changes in encoding/decoding routines.
10348 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10349 encode_coding and decode_coding.
10350
b8ff72fa 10351 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10352
10353 * dosfns.c: Include frame.h before termhooks.h.
10354 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10355 variable termscript.
10356
10357 * s/msdos.h (USER_FULL_NAME): Define.
10358 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10359
10360 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10361 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10362 pw->pw_gecos.
10363
10364 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10365 SELECTED_FRAME as additional (1st) argument.
10366 (tty_read_avail_input): Handle output_msdos_raw in
10367 addition to output_termcap.
10368
10369 * msdos.c: Include frame.h before termhooks.h.
10370 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10371 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10372 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10373 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10374 (IT_set_terminal_modes, IT_reset_terminal_modes)
10375 (IT_set_frame_parameters): Use tty->termscript instead of a global
10376 variable termscript.
10377 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10378 global variable terminal_coding. Don't refer to
10379 Vnonascii_translation_table.
10380 (internal_terminal_init): Set Vwindow_system in current_kboard.
10381 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10382 Announce date and time of session start, if termscript is open.
10383 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10384 term.c:init_tty). Open termscript only of not already open.
10385 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10386 here instead of dos_ttraw. Don't initialize display if this is an
10387 initial tty. Don't set FRAME_FONT.
10388 (Vwindow_system_version): Bump to 23.
10389 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10390 is available, set up mouse_position_hook.
10391 (dos_ttraw, IT_set_terminal_modes): If called with initial
10392 terminal, do nothing.
10393 (IT_set_frame_parameters): Handle the Qtty_type frame
10394 parameter by calling internal_terminal_init.
10395 (dos_set_window_size, show_mouse_face)
10396 (clear_mouse_face, IT_note_mode_line_highlight)
10397 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10398 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10399 (initialize_msdos_display): New function.
10400 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10401 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10402 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10403 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10404 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10405 (request_sigio, unrequest_sigio): Don't define, now defined on
10406 sysdep.c.
10407 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10408
10409 * term.c [MSDOS]: Include msdos.h.
10410 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10411 conditional to DOS_NT. Allow only one call to this function in a
10412 session. Don't allocate a new struct tty_display_info; instead,
10413 reuse the_only_display_info. Call get_tty_size to get screen
10414 dimensions. Call init_baud_rate to set bad_rate.
10415 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10416 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10417 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10418 (get_tty_terminal, get_named_tty, Ftty_type)
10419 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10420 output_termcap.
b8ff72fa
SM
10421 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10422 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10423 only when subprocesses are supported.
aac0c6e3
MR
10424
10425 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10426 f->output_data.x.
10427 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10428 terminal devices.
10429
5582fbc7 10430 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10431 x_output.
10432 (FRAME_FONT): Use output_data.tty.
10433 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10434 (struct x_display_info): Rename from display_info. Update all users in
10435 msdos.c.
aac0c6e3 10436 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10437 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10438 (dos_ttraw): Update prototype.
10439
10440 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10441 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10442
104432008-08-23 Jason Rumney <jasonr@gnu.org>
10444
10445 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10446 (fn_TIFFSetDirectory): New library function used.
10447 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10448 (tiff_load): Use :index to select among multiple images. Set count
10449 property when multiple images exist.
10450 (gif_format): Use :index, not :image.
10451
104522008-08-23 Chong Yidong <cyd@stupidchicken.com>
10453
10454 * xdisp.c (try_scrolling): Check INT_MAX instead of
10455 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10456 to obtain INT_MAX.
10457
104582008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10459
10460 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10461
104622008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10463
10464 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10465 GNUstep library location.
10466
104672008-08-21 Chong Yidong <cyd@stupidchicken.com>
10468
10469 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10470 before using it.
10471
10472 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10473
104742008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10475
10476 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10477 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10478 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10479 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10480 (EmacsApp-cursor_blink_handler): Remove declaration.
10481 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10482 match 01 Feb 2008 changes in xterm.c.
10483 (ns_read_socket): Add cast to avoid warning.
10484 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10485 GNUstep.
10486
104872008-08-20 Chong Yidong <cyd@stupidchicken.com>
10488
10489 * xselect.c (x_get_foreign_selection): Return nil if desired
10490 selection could not be obtained, instead of signalling an error.
10491
104922008-08-20 David Reitter <david.reitter@gmail.com>
10493
10494 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10495 * nsterm.m: Remove ns-specific code for cursor blinking.
10496 (ns_draw_window_cursor): Clear cursor properly rather than
10497 redrawing the area. Respect width of bar cursors.
10498 These changes enable the use of generic blink-cursor-mode and
10499 generic cursor types in NS and support smooth cursor movements (do
10500 not blink off after command).
10501 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10502 Nextstep, too.
10503
105042008-08-19 Kenichi Handa <handa@m17n.org>
10505
10506 * font.c (Vfont_log_deferred): New variable.
10507 (font_add_log): Check Vfont_log_deferred.
10508 (font_deferred_log): New function.
10509
10510 * font.h (font_deferred_log): Extern it.
10511
10512 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10513 for sorting.
10514 (face_for_char): Use deferred log.
10515
105162008-08-18 Kenichi Handa <handa@m17n.org>
10517
10518 * fontset.c (face_for_char): Add font log.
10519
10520 * font.c (font_add_log): Add the font properties :script, :lang,
10521 and :otf in the log.
10522
105232008-08-17 Chong Yidong <cyd@stupidchicken.com>
10524
10525 * xdisp.c: Remove dead code.
10526 (handle_invisible_prop, next_overlay_string): Defer call to
10527 setup_for_ellipsis.
10528 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10529
105302008-08-15 Chong Yidong <cyd@stupidchicken.com>
10531
10532 * xfaces.c (lookup_derived_face): Properly handle possible zero
10533 return value of get_lface_attributes.
10534 (merge_faces): Don't tell lookup_derived_face to signal an error
10535 if face is not found.
10536
10537 * dired.c (Fdirectory_files): Doc fix.
10538
10539 * process.c (make_process): Initialize kill_without_query struct
10540 member.
10541
105422008-08-15 Eli Zaretskii <eliz@gnu.org>
10543
10544 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10545 Alternative calculation of totphys for Visual Studio 6.
10546
10547 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10548
10549 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10550 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10551 All users changed.
10552 (stat): Only root directory passed to GetDriveType. Allow RAM
10553 disk as well as local fixed disk when w32-get-true-file-attributes
10554 is set to `local'.
10555 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10556 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10557 (w32_cached_id, w32_add_to_cache): New functions.
10558 (get_name_and_id): Look account names in the cache before calling
10559 lookup_account_sid.
10560 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10561 New initialization flags.
10562 (globals_of_w32): Initialize them to zero.
10563 (w32_system_process_attributes): Use w32_cached_id and
10564 w32_add_to_cache.
10565
105662008-08-14 Lawrence Mitchell <wence@gmx.li>
10567
10568 * lread.c (Fread_char, Fread_char_exclusive): If no character
10569 event is read before timeout is reached, return nil, rather than
10570 converting to a number.
10571
105722008-08-14 Chong Yidong <cyd@stupidchicken.com>
10573
10574 * fns.c (use_dialog_box): Doc fix.
10575
10576 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10577 on OS X.
10578
105792008-08-13 Chong Yidong <cyd@stupidchicken.com>
10580
10581 * frame.c (Qns_parse_geometry): New var.
10582 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10583
105842008-08-11 Chong Yidong <cyd@stupidchicken.com>
10585
10586 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10587 space character in calculating tabs.
10588
105892008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10590
10591 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10592
105932008-08-10 Glenn Morris <rgm@gnu.org>
10594
10595 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10596 silence gcc "limited range of data type" warnings in some
10597 make_fixnum_or_float calls.
10598
105992008-08-09 Eli Zaretskii <eliz@gnu.org>
10600
10601 * w32.c (w32_system_process_attributes): If the process does not
10602 exist, return nil.
10603
10604 * w32.c: Include thelp32.h, psapi.h and coding.h.
10605 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10606 declarations.
10607 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10608 (Process32Next_Proc): New typedefs.
10609 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10610 (g_b_init_process32_next, g_b_init_open_thread_token)
10611 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10612 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10613 (g_b_init_get_process_working_set_size)
10614 (g_b_init_global_memory_status_ex): New static variables.
10615 (globals_of_w32): Initialize them.
10616 (create_toolhelp32_snapshot, process32_first, process32_next)
10617 (open_thread_token, impersonate_self, revert_to_self)
10618 (get_process_memory_info, get_process_working_set_size)
10619 (global_memory_status, global_memory_status_ex): New wrapper
10620 functions.
10621 (w32_list_system_processes, w32_system_process_attributes)
10622 (enable_privilege, restore_privilege, ltime, process_times):
10623 New functions.
10624 (convert_time_raw): New function.
10625 (convert_time): Remove conversion of FILETIME into time in 100
10626 nsec units, call convert_time_raw instead.
10627
10628 * process.h (w32_list_system_processes, w32_system_process_attributes):
10629 Add prototypes.
10630 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10631 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10632 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10633 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10634
10635 * process.c (Fsystem_process_attributes): Doc fix.
10636
106372008-08-08 Chong Yidong <cyd@stupidchicken.com>
10638
10639 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10640 a continued multi-char glyph; if so, advance to the actual glyph.
10641
106422008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10643
10644 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10645
10646 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10647 (.m.o): Use it.
10648 * config.in: Regenerate.
10649
106502008-08-07 Chong Yidong <cyd@stupidchicken.com>
10651
10652 * xdisp.c (redisplay_window): Revert last change.
10653 (try_window): Check bottom scroll margin too.
10654
106552008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10656
10657 * config.in: Regenerate.
10658
10659 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10660 -list-load-path-shadows'.
10661 (nsgui.h): Reduce number of things depending on it.
10662
106632008-08-06 Chong Yidong <cyd@stupidchicken.com>
10664
10665 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10666 instead of window-end which does the wrong thing at eob.
10667 (try_cursor_movement): Minor optimization.
10668 (redisplay_window): If scroll margin is defined, don't assume
10669 window doesn't need scrolling.
10670
106712008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10672
10673 * config.in: Regenerate.
10674
10675 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10676 (mostlyclean): Don't delete *.d under NS.
10677
10678 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10679
106802008-08-06 Kenichi Handa <handa@m17n.org>
10681
10682 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10683
106842008-08-06 Andreas Schwab <schwab@suse.de>
10685
10686 * config.in: Regenerate.
10687
106882008-08-05 Chong Yidong <cyd@stupidchicken.com>
10689
10690 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10691 forcing a window start.
10692
10693 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10694 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10695
106962008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10697
10698 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10699 argument.
10700
107012008-08-05 Juanma Barranquero <lekktu@gmail.com>
10702
10703 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10704 <scroll-down-aggressively, before-change-functions>:
10705 <after-change-functions>: Reflow docstrings.
10706
107072008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10708 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10709
10710 Dock menu customization, based on a patch by Ken Raeburn, plus some
10711 other fixes.
10712 * nsmenu.m (dockMenu): New variable.
10713 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10714
10715 * nsterm.h (dockMenu): Declare.
10716
10717 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10718 (ns_term_init): Initialize dockMenu.
10719 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10720 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10721 left.
10722
10723 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10724
107252008-08-04 Chong Yidong <cyd@stupidchicken.com>
10726
10727 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10728
10729 * config.in: Regenerate.
10730
107312008-08-04 Seiji Zenitani <zenitani@mac.com>
10732
10733 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10734
107352008-08-04 Chong Yidong <cyd@stupidchicken.com>
10736
10737 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10738
107392008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10740
10741 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10742
10743 * keyboard.h: Comment an #endif.
10744
10745 * lisp.h (have_menus_p): Adjust comment.
10746
10747 * menu.c (find_and_return_menu_selection): Fix comparison with
10748 client_data.
10749
10750 * nsmenu.m (popup_activated_flag): New variable.
10751 (popup_activated): New function.
10752 (menu-or-popup-active-p): New exported lisp definition.
10753 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10754 when popup done.
10755 (ns_popup_dialog): Set popup_activated_flag.
10756
10757 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10758 version for GNUstep (handled by conditional typedef in nsterm.m).
10759 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10760 in rgb.txt).
10761
10762 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10763
10764 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10765
10766 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10767
10768 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10769 shortcircuit if popup_activated like GTK and X toolkit.
10770
10771 * m/inter386.h: Change DARWIN to DARWIN_OS.
10772
10773 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10774 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10775 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10776 comment on NO_SOCK_SIGIO.
10777
107782008-08-03 Chong Yidong <cyd@stupidchicken.com>
10779
10780 * nsterm.m (windowDidResize): Remove stopModal call.
10781
107822008-08-03 Andreas Schwab <schwab@suse.de>
10783
10784 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10785 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10786
107872008-08-02 Chong Yidong <cyd@stupidchicken.com>
10788
10789 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10790 Don't use uninitialized pointer variable when using getrlimit.
10791
107922008-08-02 Jason Rumney <jasonr@gnu.org>
10793
10794 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10795
107962008-08-02 Eli Zaretskii <eliz@gnu.org>
10797
10798 * alloc.c (NSTATICS): Bump to 0x640.
10799
10800 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10801
10802 * lisp.h: Add prototype for directory_files_internal.
10803
10804 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10805 New functions.
10806 (syms_of_process): Defsubr them. Add initializations for various
10807 Q* symbols used in procfs_system_process_attributes.
10808 (procfs_list_system_processes, procfs_system_process_attributes)
10809 [HAVE_PROCFS]: New functions.
10810 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10811 (procfs_get_total_memory): New functions.
10812
108132008-08-01 Juanma Barranquero <lekktu@gmail.com>
10814
10815 * xfaces.c (Fx_load_color_file): Fix previous change;
10816 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10817
108182008-08-01 Michael Albinus <michael.albinus@gmx.de>
10819
10820 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10821
108222008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10823
10824 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10825
108262008-08-01 Chong Yidong <cyd@stupidchicken.com>
10827
10828 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10829
10830 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10831 define NSApplicationDelegateReplySuccess.
10832 (EmacsView -converstationIdentifier): Use long instead of
10833 NSInteger for GNUstep, since it doesn't have NSInteger.
10834
10835 * xmenu.c: Revert last change.
10836
10837 * keyboard.h: Fix last change.
10838
108392008-08-01 Juanma Barranquero <lekktu@gmail.com>
10840
10841 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10842 on Windows.
10843
108442008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10845
10846 Warning clearing and clean-up in NS port.
10847 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10848 Add prototypes.
10849 * nsgui.h (FACE_DEFAULT): Remove, unused.
10850 (XGCValues): Change colors to unsigned long.
10851 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10852 nsterm.m.
10853 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10854 (ns_list_fonts): Remove, unused.
10855 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10856 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10857 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10858 (nsfont_draw): Compare face colors to 0, not nil.
10859 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10860 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10861 (-addSubmenuWithTitle:): Use NSMenuItem class.
10862 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10863 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10864 (ns_clip_to_row): Make gc arg a BOOL.
10865 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10866 ns_clip_to_row() call.
10867 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10868 used). Cast FRAME_FONT assignments.
10869 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10870 (ns_string_to_lispmod): Change arg to const char.
10871 (ns_term_init): Use NSMenuItem class.
10872 (EmacsApp -openFile:): Move to different section of file.
10873 (EmacsApp -application:openFiles:): Don't return a value, call
10874 -replyToOpenOrPrint:.
10875 (EmacsView -keyDown:): Fix up cast.
10876 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10877 (EmacsView -menuDown:): Cast tag in call to
10878 find_and_call_menu_selection().
10879 (ns_list_fonts): Remove, unused.
10880 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10881 (ns_fontname_to_xlfd): Make static.
10882 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10883 Remove prototypes (now in keyboard.h).
10884 (next_menubar_widget_id): Remove, unused.
10885 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10886 Remove prototypes (now in keyboard.h).
10887 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10888
108892008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10890
10891 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10892 (floatfns.o): Depend on syssignal.h.
10893 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10894
10895 * systty.h: Fix previous change that removed BSD_TERMIOS.
10896 Add comments to #ifdefs.
10897
108982008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10899
10900 * w32fns.c (w32-load-color-file): Remove.
10901 (x-open-connection): Use renamed Fx_load_color_file.
10902 * xfaces.c (x-load-color-file): Add.
10903 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10904 Emacs.clr.
10905 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10906
109072008-07-31 Michael Albinus <michael.albinus@gmx.de>
10908
10909 * dbusbind.c (Fdbus_call_method_asynchronously)
10910 (Fdbus_method_error_internal): New defuns.
10911 (xd_read_message): Handle also reply messages.
10912 (Vdbus_registered_functions_table): Extend docstring.
10913
109142008-07-31 Juanma Barranquero <lekktu@gmail.com>
10915
10916 * keyboard.c (gobble_input): Fix previous change.
10917
109182008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10919
10920 * bitmaps/README:
10921 * xfns.c:
10922 * termcap.c:
10923 * term.c:
10924 * syswait.h:
10925 * systty.h:
10926 * systime.h:
10927 * syssignal.h:
10928 * sysdep.c:
10929 * process.h:
10930 * process.c:
10931 * print.c:
10932 * ndir.h:
10933 * lread.c:
10934 * keyboard.c:
10935 * getpagesize.h:
10936 * floatfns.c:
10937 * fileio.c:
10938 * emacs.c:
10939 * doc.c:
10940 * dispnew.c:
10941 * dired.c:
10942 * data.c:
10943 * callproc.c:
10944 * buffer.c:
10945 * README:
10946 * Makefile.in:
10947 * s/template.h:
10948 * s/msdos.h:
10949 * m/vax.h: Remove VMS support.
10950 * s/vms.h:
10951 * vlimit.h:
10952 * uaf.h:
10953 * temacs.opt:
10954 * param.h:
10955 * ioctl.h: Remove file.
10956
109572008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10958
10959 * s/ms-w32.h (MULTI_KBOARD): Remove.
10960 * xterm.c:
10961 * xselect.c:
10962 * xfns.c:
10963 * window.c:
10964 * w32term.c:
10965 * w32fns.c:
10966 * terminal.c:
10967 * termhooks.h:
10968 * term.c:
10969 * sysdep.c:
10970 * keyboard.h:
10971 * keyboard.c:
10972 * frame.h:
10973 * frame.c:
10974 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10975 * config.in: Regenerate.
10976
109772008-07-30 Jason Rumney <jasonr@gnu.org>
10978
10979 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10980
10981 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10982 (w32font_open_internal): Get unicode version of textmetrics.
10983 Don't enable or disable glyph indices here.
10984 (w32font_open): Disable use of glyph indices.
10985
10986 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10987
109882008-07-30 Chong Yidong <cyd@stupidchicken.com>
10989
10990 * minibuf.c (Vread_buffer_function): Doc fix.
10991
109922008-07-30 John Paul Wallington <jpw@pobox.com>
10993
10994 * minibuf.c (read_buffer_completion_ignore_case): New var.
10995 (Fread_buffer): Use it.
10996
109972008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10998
10999 * systty.h (sensemode): Remove empty #if. Remove reference to
11000 BSD_TERMIOS, unused.
11001
11002 * sysdep.c: Remove reference to DGUX.
11003 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11004
11005 * config.in: Regenerate.
11006
110072008-07-30 Jason Rumney <jasonr@gnu.org>
11008
11009 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11010
110112008-07-29 Jason Rumney <jasonr@gnu.org>
11012
11013 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11014 is populated.
11015 (uniscribe_encode_char): Always use uniscribe.
11016 Avoid using context if cache is populated.
11017
110182008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11019
11020 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11021 open menu.
11022
11023 * gtkutil.c (menu_nav_ended): Remove.
11024 (create_menus): Remove signal connect for menu_nav_ended.
11025
110262008-07-28 Chong Yidong <cyd@stupidchicken.com>
11027
11028 * xdisp.c (redisplay_window): Check return value of
11029 compute_window_start_on_continuation_line before forcing a window
11030 start.
11031
110322008-07-28 Jason Rumney <jasonr@gnu.org>
11033
11034 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11035
11036 * w32term.c (w32_enable_unicode_output, cleartype_active):
11037 Remove obsolete display options.
11038 (x_draw_glyph_string_background): Don't use old cleartype_active
11039 workaround.
11040 (w32_initialize): Remove cleartype_active initialization.
11041 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11042
110432008-07-28 Andreas Schwab <schwab@suse.de>
11044
11045 * lisp.h (init_weak_hash_tables, syms_of_font)
11046 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11047 (remove_hash_entry): Don't declare.
11048 * eval.c (maybe_call_debugger): Make static and move before use.
11049 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11050 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11051 * xterm.h (x_set_frame_alpha): Declare.
11052
110532008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11054
11055 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11056 (create_menus): Connect selection-done to menu_nav_ended.
11057
110582008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11059
11060 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11061 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11062 parameter with read of 'alpha' one.
11063 (Qns_frame_parameter): Remove.
5582fbc7 11064 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11065 (next-selection-coding-system, Vselection_coding_system)
11066 (Vnext_selection_coding_system): Drop.
11067
110682008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11069
11070 * nsfns.m (do-applescript, do_applescript): Rename to
11071 ns-do-applescript, ns_do_applescript, and move within file.
11072
110732008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11074
11075 Remove support for Mac Carbon.
11076 * mactoolbox.c:
11077 * macterm.h:
11078 * macterm.c:
11079 * macselect.c:
11080 * macmenu.c:
11081 * macgui.h:
11082 * macfns.c:
11083 * mac.c: Remove file.
11084 * s/darwin.h:
11085 * m/intel386.h:
11086 * xfaces.c:
11087 * xdisp.c:
11088 * window.c:
11089 * tparam.c:
11090 * termhooks.h:
11091 * termcap.c:
11092 * term.c:
11093 * syssignal.h:
11094 * sysselect.h:
11095 * sysdep.c:
11096 * process.c:
11097 * lread.c:
11098 * lisp.h:
11099 * keyboard.c:
11100 * image.c:
11101 * fringe.c:
11102 * frame.h:
11103 * frame.c:
11104 * fontset.c:
11105 * font.h:
11106 * font.c:
11107 * fns.c:
11108 * fileio.c:
11109 * emacs.c:
11110 * dispnew.c:
11111 * dispextern.h:
11112 * config.in:
11113 * atimer.c:
2ae37cf0 11114 * Makefile.in: Remove code for Carbon.
aac0c6e3 11115
f0131492 111162008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11117
11118 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11119
111202008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11121
11122 * macterm.h (kCGBitmapByteOrder32Host): New define for
11123 non-universal SDKs.
11124
11125 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11126 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11127
11128 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11129 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11130
111312008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11132
11133 * w32inevt.c: Include dispextern.h.
11134
111352008-07-26 Andreas Schwab <schwab@suse.de>
11136
11137 * print.c (print_object): Fix off-by-one in last change.
11138
111392008-07-25 Juanma Barranquero <lekktu@gmail.com>
11140
11141 * term.c (syms_of_term): Don't initialize default_orig_pair,
11142 default_set_foreground and default_set_background on Windows.
11143
111442008-07-25 Jason Rumney <jasonr@gnu.org>
11145
11146 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11147 ScriptItemize. Clean up return value checking. Remove unused
11148 variables.
11149 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11150 shaping engine.
11151
11152 * w32font.c (w32font_has_char): Handle the case where we can't
11153 determine the script for a character.
11154
111552008-07-25 Chong Yidong <cyd@stupidchicken.com>
11156
11157 * term.c (syms_of_term): Initialize default_orig_pair,
11158 default_set_foreground, and default_set_background.
11159
11160 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11161 clash (bug#86).
11162 (getloadavg): Callers changed.
11163
11164 * image.c (svg_load_image): Fix last change.
11165 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11166 image size is valid. Use g_object_unref instead of deprecated
11167 rsvg_handle_free to free rsvg handle.
11168 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11169
111702008-07-25 Jason Rumney <jasonr@gnu.org>
11171
11172 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11173 surrogates before looking up glyph index.
11174 (w32font_text_extents): Encode as surrogates if falling back to
11175 functions that need UTF-16 wide chars.
11176
11177 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11178 BMP as surrogates before looking up glyph index.
11179
111802008-07-25 Chong Yidong <cyd@stupidchicken.com>
11181
11182 * image.c (svg_load_image): Check for failure in return value of
11183 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11184
111852008-07-25 Jason Rumney <jasonr@gnu.org>
11186
11187 * w32font.c (Fx_select_font): Reverse sense of second arg.
11188
111892008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11190
11191 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11192 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11193
11194 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11195 (PURESIZE): Use it.
11196
111972008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11198
11199 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11200 * m/alpha.h (TEXT_END):
11201 * m/ibmrs6000.h (TEXT_END):
11202 * m/macppc.h (TEXT_END):
11203 * s/darwin.h (TEXT_END):
11204 * s/msdos.h (TEXT_END): Remove, unused.
11205 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11206 * s/cygwin.h: Remove comment.
11207
11208 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11209 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11210 * m/intel386.h (DOT_GLOBAL_START):
11211 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11212 (USG): Remove, file not used on USG platforms.
11213
11214 * Makefile.in (HAVE_X11): Remove empty #else.
11215
112162008-07-24 Andreas Schwab <schwab@suse.de>
11217
11218 * fileio.c (Finsert_file_contents): Properly adjust undo list
11219 after format conversion.
11220
112212008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11222
11223 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11224 (menu_nav_ended): Remove.
11225 (create_menus): Remove signal connect for menu_nav_ended.
11226 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11227 create_menus.
11228 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11229
112302008-07-23 Jason Rumney <jasonr@gnu.org>
11231
11232 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11233 with opened font.
11234 (w32font_open): Set font type to gdi.
11235
11236 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11237
112382008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11239
11240 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11241 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11242 defines it.
11243 * unexec.c (ADDR_CORRECT): Define unconditionally.
11244
11245 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11246
11247 * unexec.c: Remove code depending on !COFF and USG, the file is
11248 not used for such systems.
11249
11250 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11251 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11252 (LD_SWITCH_SYSTEM_1): Remove, update users.
11253
11254 * s/darwin.h (DATA_END):
11255 * m/intel386.h (DATA_END):
11256 * m/ibmrs6000.h (DATA_END):
11257 * m/alpha.h (DATA_END): Remove, unused.
11258
11259 * config.in: Regenerate.
11260 * s/ms-w32.h (subprocesses): Define unconditionally.
11261 * s/template.h (subprocesses): Update comment.
11262 * s/vms.h (subprocesses):
11263 * s/usg5-4.h (subprocesses):
11264 * s/hpux10-20.h (subprocesses):
11265 * s/gnu-linux.h (subprocesses):
11266 * s/cygwin.h (subprocesses):
11267 * s/bsd-common.h (subprocesses):
11268 * s/aix4-2.h (subprocesses):
11269 * s/darwin.h (subprocesses): Do not define, defined by default now.
11270
11271 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11272 Remove all references.
11273 (temacs): Add GNUstep specific ld flags.
11274
11275 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11276 similarly to what X does.
11277
112782008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11279
11280 * nsfns.m (x-list-fonts): Remove.
11281 (syms_of_nsfns): Drop the x-list-fonts declaration.
11282 * nsterm.m: Get rid of remaining "//" comments.
11283
112842008-07-22 Chong Yidong <cyd@stupidchicken.com>
11285
11286 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11287
11288 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11289 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11290 (Fns_own_selection_internal, Fx_disown_selection_internal)
11291 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11292
11293 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11294 ... */' style of docstrings. Doc fixes.
11295
112962008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11297
11298 * terminfo.c (UP, BC, PC): Undo previous change.
11299
11300 * nsfns.m: Rename ns prefixed functions/variables to the
11301 corresponding x versions. Update references.
11302
113032008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11304
11305 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11306
113072008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11308
11309 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11310 Remove forwarding functions.
11311 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11312 non-static.
11313 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11314 non-static.
11315 (ns_frame_parm_handlers): Use the new names.
11316 (syms_of_nsfns): Move to the end of file.
11317
11318 * nsterm.m (syms_of_nsterm): Move to the end of file.
11319
11320 * dispnew.c (init_display): Remove code for X10.
11321
113222008-07-22 Jason Rumney <jasonr@gnu.org>
11323
11324 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11325 bare drive.
11326
113272008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11328
11329 * nsterm.m (syms_of_nsterm): Remove debugging println.
11330
113312008-07-22 David Reitter <david.reitter@gmail.com>
11332
11333 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11334 Carbon implementation of the same functionality: execute arbitrary
11335 AppleScript code.
11336
113372008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11338
11339 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11340 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11341 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11342 (Fx_display_mm_height, Fx_display_mm_width)
11343 (Fx_display_backing_store, Fx_display_visual_class)
11344 (Fx_display_save_under, Fx_open_connection)
11345 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11346 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11347 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11348 (Fx_display_pixel_width, Fx_display_pixel_height)
11349 (Fx_display_usable_bounds, Fx_display_planes)
11350 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11351 ... */' style of docstrings.
11352
113532008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11354
11355 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11356 on this platform.
11357 (mips):
11358 * m/iris4d.h (mips): Do not define.
11359 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11360
11361 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11362
11363 * image.c:
11364 * nsfns.m:
11365 * nsselect.m:
11366 * nsterm.h:
11367 * nsterm.m: Rename ns prefixed functions/variables to the
11368 corresponding x versions. Update references.
11369
11370 * m/ibms390x.h (NO_REMAP): Do not undefine.
11371
11372 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11373
113742008-07-21 Chong Yidong <cyd@stupidchicken.com>
11375
11376 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11377 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11378 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11379 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11380 (Fns_display_mm_height, Fns_display_mm_width)
11381 (Fns_display_backing_store, Fns_display_visual_class)
11382 (Fns_display_save_under, Fns_open_connection)
11383 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11384 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11385 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11386 (Fns_display_pixel_width, Fns_display_pixel_height)
11387 (Fns_display_usable_bounds, Fx_display_planes)
11388 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11389
113902008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11391
11392 * print.c (print_object): Check print_depth before searching for
11393 circularities.
11394
113952008-07-21 Michael Albinus <michael.albinus@gmx.de>
11396
11397 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11398 only sprintf.
11399
114002008-07-21 Kenichi Handa <handa@m17n.org>
11401
11402 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11403
114042008-07-20 Andreas Schwab <schwab@suse.de>
11405
11406 * syntax.c (find_start_pos, find_start_value)
11407 (find_start_value_byte, find_start_begv, find_defun_start)
11408 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11409
114102008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11411
11412 * s/sol2-3.h: Insert contents of s/sol2.h.
11413 (LD_SWITCH_SYSTEM): Remove redundant definition.
11414 * s/sol2.h: Remove, unused.
11415
114162008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11417
11418 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11419
114202008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11421
11422 * Makefile.in (ns_appdir): Fix typo in find command.
11423
114242008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11425
11426 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11427
11428 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11429 added not supported anymore.
11430
11431 * s/usg5-4-2.h (LIBS_SYSTEM):
11432 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11433
11434 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11435 * s/lynxos.h (GETPGRP_NO_ARG):
11436 * s/hpux10-20.h (NO_SIOCTL_H):
11437 * s/gnu.h (GETPGRP_NO_ARG):
11438 * s/gnu-linux.h (NO_SIOCTL_H):
11439 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11440 * s/cygwin.h (GETPGRP_NO_ARG):
11441 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11442 (C_DEBUG_SWITCH): Remove duplicate definition.
11443
11444 * m/ibms390.h: Remove boilerplate comments.
11445
11446 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11447
11448 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11449 (wait_reading_process_output): Remove code for SunOS, platform not
11450 supported anymore. Use SOLARIS2 instead of sun.
11451
114522008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11453
11454 * font.c (font_open_by_name): Under NS, default lface height to zero.
11455 (font_open_for_lface): Under NS, set size based on frame fontsize.
11456 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11457 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11458
114592008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11460
11461 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11462 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11463 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11464 YES/NO.
11465 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11466 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11467 * Makefile.in (clean): Clear out build destination dir.
11468
114692008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11470
11471 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11472 xterm, xselect.
11473 * lisp.h: Remove declaration of hash_remove.
11474 * nsgui.h: Remove redefinitions of hash_remove.
11475 * fns.c (hash_remove): Rename to hash_remove_from_table.
11476
114772008-07-19 Seiji Zenitani <zenitani@mac.com>
11478
11479 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11480 strdup() the family UTF8String before modifying it.
11481
114822008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11483
11484 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11485 NS_FACE_BACKGROUND with 0 instead of nil.
11486 * nsfont.m (nsfont_draw): Same.
11487
114882008-07-19 Chong Yidong <cyd@stupidchicken.com>
11489
11490 * nsfns.m (ns_set_background_color): Fix crash.
11491
114922008-07-18 Chong Yidong <cyd@stupidchicken.com>
11493
11494 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11495
114962008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11497
11498 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11499
115002008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11501
11502 * gtkutil.c: Include <config.h> instead of "config.h".
11503
11504 * lisp.h (Foverlay_buffer): Add EXFUN.
11505
11506 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11507 child process to complete child_setup. Undo 2005-09-21 change.
11508
11509 * s/darwin.h: Mention setsid after vfork.
11510
115112008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11512
11513 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11514 Depend on macgui.h.
11515
11516 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11517 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11518
11519 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11520 and f19.
11521 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11522
11523 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11524 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11525 Remove enumerators.
11526
11527 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11528 Check if FACE_FROM_ID returns NULL.
11529
115302008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11531
11532 * w32inevt.c (change_frame_size): Remove extern declaration.
11533 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11534 change_frame_size.
11535
115362008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11537
11538 * getloadavg.c: Revert last change (2008-07-15).
11539
115402008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11541
11542 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11543 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11544 from configure.
11545
115462008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11547
11548 * s/sol2.h:
11549 * s/sol2-4.h: Reorganize conditionals.
11550
11551 * ecrt0.c: Remove code depending on m68000, not used anymore.
11552
11553 * fns.c (hash_remove): Make static.
11554 * lisp.h (hash_remove): Don't prototype.
11555
11556 * m/ibmrs6000.h:
11557 * m/ibms390x.h:
11558 * m/macppc.h: Remove boilerplate comments.
11559
11560 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11561 Solaris, which does not need them.
11562
11563 * m/vax.h: Remove comments about unsupported systems.
11564
11565 * s/darwin.h: Reorganize ifdefs.
11566
115672008-07-17 Andreas Schwab <schwab@suse.de>
11568
11569 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11570
115712008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11572
11573 Use SDATA. Follow coding convention of placing operators at
11574 beginning of next line rather than end of previous line, and placing
11575 spaces around infix operators.
11576
11577 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11578 in case it was defined already.
11579 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11580 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11581 ns_default.
11582 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11583 Lisp_Objects.
11584 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11585 (ns_defined_color, ns_color_to_lisp): Declare.
11586 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11587 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11588 it's accepted even with USE_LISP_UNION_TYPE.
11589 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11590 (update_frame_tool_bar): Remove apparently obsolete tests for
11591 non-integerness of f->tool_bar_lines.
11592 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11593 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11594 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11595 (nsfont_open): Don't confuse NULL for Qnil.
11596 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11597 * menu.h (find_and_call_menu_selection):
11598 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11599 (find_and_return_menu_selection): Always return something.
11600 * frame.h: Include dispextern.h for Display_Info.
11601 (display_x_get_resource): Declare.
11602
116032008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11604
11605 * syntax.c: Remove stdio.h include accidentally introduced in
11606 Emacs.app commit.
11607 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11608 NS_IMPL_COCOA.
11609 * keyboard.c (handle_async_input, input_available_signal): Remove
11610 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11611
116122008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11613
11614 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11615 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11616 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11617 Use SDATA.
11618
11619 * keymap.c: Remove all NS-specific code.
11620 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11621 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11622 where_is_preferred_modifier, return a different value depending on how
11623 preferred is the binding.
11624 (where_is_internal): Adjust accordingly.
11625 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11626 Adjust to new preferred_sequence_p.
11627 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11628 * keyboard.c (parse_solitary_modifier): Not static any more.
11629 * keyboard.h (parse_solitary_modifier): Declare.
11630
116312008-07-16 Andreas Schwab <schwab@suse.de>
11632
11633 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11634 of easymenu.
11635
116362008-07-16 Chong Yidong <cyd@stupidchicken.com>
11637
11638 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11639 that we don't move off the line.
11640
116412008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11642
11643 * keyboard.c (Qsuper): Remove.
11644 (parse_menu_item): Don't call where_is_internal specially for NS.
11645
116462008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11647
11648 * s/gnu-linux.h: Remove boilerplate comments.
11649
11650 * m/alpha.h (__ELF__): Consolidate conditions.
11651
11652 * m/m68k.h (linux): Use GNU_LINUX instead.
11653 Remove boilerplate comments.
11654
11655 * m/intel386.h: Undo refactoring from previous change.
11656 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11657 too, remove dead code.
11658 (linux): Use GNU_LINUX instead.
11659
116602008-07-16 Jason Rumney <jasonr@gnu.org>
11661
11662 * w32gui.h: Repeat 26 June changes lost by last change.
11663
116642008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11665
11666 * systty.h: Remove code for Aix on 386, unsupported platform.
11667
11668 * s/ms-w32.h: Remove boilerplate comments.
11669 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11670
11671 * s/gnu-linux.h (TERM): Remove support.
11672 (HAVE_SYSVIPC): Remove, unused.
11673 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11674 for this system.
11675
11676 * process.c: Remove support for IRIS, unused.
11677 Remove support for TERM, not relevant anymore.
11678
11679 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11680 used with the definition.
11681
11682 * s/aix4-2.h (static): Do not undef.
11683
11684 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11685 only used on Aix.
11686 (HAVE_SYSVIPC): Remove, unused.
11687
11688 * m/hp800.h (CANNOT_DUMP): Do not undef.
11689
11690 * m/alpha.h: Fix comment.
11691
11692 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11693 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11694 used by this configuration.
11695 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11696 * unexec.c: Remove code depending on HPUX and
11697 USG_SHARED_LIBRARIES, not used with this file. Remove code
11698 depending on IRIS, unused. Remove if 0-ed code.
11699
11700 * s/template.h: Remove comments about static.
11701
11702 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11703 Remove if 0-ed code.
11704 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11705 were the same as the default.
11706 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11707 Remove boilerplate comments.
11708 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11709 (HAVE_SYSVIPC): Remove, unused.
11710 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11711
11712 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11713 Remove boilerplate comments.
11714 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11715 Remove boilerplate comments.
11716 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11717 Remove boilerplate comments.
11718 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11719
11720 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11721 USG systems which do not use DATA_SEG_BITS.
11722 Refactor code. Remove boilerplate comments.
11723
11724 * m/ibms390.h:
11725 * m/m68k.h:
11726 * s/bsd-common.h:
11727 * s/cygwin.h:
11728 * s/darwin.h:
11729 * s/freebsd.h:
11730 * s/gnu.h:
11731 * s/msdos.h: Remove boilerplate comments.
11732
11733 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11734 do not use this file.
aac0c6e3
MR
11735 (IRIS_4D): Remove, unused.
11736
11737 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11738 do not use this file.
aac0c6e3
MR
11739 (SIGN_EXTEND_CHAR):
11740 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11741 * unexmips.c: Remove file, unused.
11742
11743 * editfns.c (Fuser_full_name): Replace the only use of
11744 USER_FULL_NAME with its value.
11745 * config.in: Regenerate.
11746
117472008-07-16 David Reitter <david.reitter@gmail.com>
11748
11749 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11750 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11751
117522008-07-16 Glenn Morris <rgm@gnu.org>
11753
11754 * emacs.c (system-type): Doc fix.
11755
117562008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11757
11758 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11759 If the cache doesn't work, let's fix it, rather than work around it.
11760
117612008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11762
11763 * Makefile.in: Correct additions for nsfont.o in last commit.
11764 * nsfont.m: New file (forgot last commit).
11765
117662008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11767
11768 * callproc.c (set_initial_environment): Initialize
11769 Vprocess_environment under CANNOT_DUMP (fixes crash when
11770 batch-compiling for bootstrap).
11771
117722008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11773 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11774
11775 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11776 fix crash due to different init order.
11777
117782008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11779
11780 Changes and additions for NeXTstep windowing system (Cocoa and
11781 GNUstep) support.
11782
11783 * Makefile.in:
11784 * config.in: Support defines and build commands for NS port.
11785 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11786 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11787 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11788 windowing.
11789 (struct face): Add synth_ital field.
11790 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11791 (init_display): Initialize Vinitial_window_system to "ns" when so
11792 compiled.
11793 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11794 (display_arg): Use under NS.
11795 (main): Under NS, allocate autorelease pool and handle command line
11796 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11797 (standard_args): Add NS-specific args.
11798 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11799 * font.c (DEFAULT_ENCODING): New variable.
11800 (font_find_for_lface): Use it.
11801 (syms_of_font): Load syms_of_nsfont under NS.
11802 * font.h: Declare nsfont_driver when compiled under NS.
11803 * fontset.c: When compiling under NS, include nsterm.h.
11804 (fontset_from_font): Autoconstruct fontset under NS.
11805 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11806 symbol, document and use it.
11807 (do_switch_frame): When for_deletion under Cocoa, add
11808 Fraise_frame(Qnil).
11809 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11810 (x_get_arg): Allow "yes" and "no" as boolean values.
11811 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11812 Qright under Cocoa.
11813 (focus-follows-mouse): Default to 0 under NS.
11814 * frame.h (enum output_method): Add output_ns.
11815 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11816 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11817 (FRAME_WINDOW_P): NS-specific definition.
11818 * fringe.c (max_used_fringe_bitmap): Make public.
11819 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11820 (getloadavg): Use NeXT code under descendant OS's.
11821 * image.c (includes and header section, x_create_bitmap_from_data)
11822 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11823 (image_background_transparent, x_clear_image_1)
11824 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11825 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11826 (x_to_xcolors, x_from_xcolors, x_disable_image)
11827 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11828 other GUIs, including XPM support using code originally written for
11829 Carbon GUI.
11830 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11831 using NS API.
11832 (image_ascent): Use font metrics macros instead of direct struct field
11833 access.
11834 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11835 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11836 Also, handle NS as GTK for menu bar purposes.
11837 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11838 toolkit where they differ.
11839 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11840 use cachelist, still needed under NS.
11841 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11842 (struct widget_value): Define it here for menu.c.
11843 * keymap.c (includes): Include modifier internals.
11844 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11845 NS.
11846 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11847 support for preferring sequences using certain modifiers, specified by
11848 the FIRSTONLY argument.
11849 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11850 under NS GNUstep implementation.
11851 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11852 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11853 * menu.c: Include nsterm.h under NS.
11854 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11855 (free_menubar_widget_tree_value, update_submenu_strings)
11856 (find_and_call_menu_selection): Treat NS as X and NT.
11857 (find_and_return_menu_selection): New function, used for popup menus.
11858 * nsgui.h:
11859 * nsterm.h:
11860 * nsfns.m:
11861 * nsimage.m:
11862 * nsmenu.m:
11863 * nsselect.m:
11864 * nsterm.m: New files.
11865 * process.c (wait_reading_process_output): Under NS, call ns_select()
11866 instead of plain select().
11867 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11868 beginning of buffer.
11869 * sysselect.h (init_process): Rename when compiling under Cocoa to
11870 avoid name conflict.
11871 * termhooks.h (display_info): Add ns_display_info to union.
11872 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11873 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11874 COCOA environment.
11875 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11876 unexec() signature. (Note, this will dump, but the resulting file
11877 crashes; unexosx is used instead; keeping around for reference and
11878 possible aid in getting dump working under GNUstep.)
11879 * w32gui.h (button_type, widget_value): Remove definitions (now in
11880 keyboard.h).
11881 * window.c: Include nsterm.h when compiling under NS.
11882 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11883 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11884 other GUI windowing systems.
11885 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11886 GTK.
11887 (x_consider_frame_title): Under NS, set icon type and frame
11888 modified-state indicator; use ns_set_name_as_filename() when using
11889 formatted title.
11890 (update_window_cursor): Make public when compiling under NS.
11891 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11892 (hourglass_atimer, Vhourglass_delay
11893 * xfaces.c (header section, init_frame_faces, clear_font_table)
11894 (defined_color, unload_color, x_face_list_fonts)
11895 (prepare_face_for_display): Add NS support parallel to other GUIs.
11896 Emulate GCs like other non-X GUIs.
11897 (split_font_name): Don't lowercase font name under NS.
11898 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11899 under NS.
11900 * s/darwin.h: Add support for compilation under NS.
11901
119022008-07-15 Jason Rumney <jasonr@gnu.org>
11903
11904 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11905 (w32_show_hourglass): Rename from show_hourglass.
11906 (w32_hide_hourglass): Rename from hide_hourglass.
11907 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11908 (Vhourglass_delay): Declare extern.
11909 (hourglass_started): Remove.
11910
11911 * xdisp.c (Vhourglass_delay): Remove static.
11912 (hourglass_started, start_hourglass, cancel_hourglass):
11913 Don't include these versions on WINDOWSNT.
11914
119152008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11916
11917 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11918 variables (formerly in xfns.c).
11919 (show_hourglass, hide_hourglass): New prototypes (same).
11920 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11921 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11922 in xfns.c).
11923 (syms_of_xdisp): Declare/initialize display-hourglass,
11924 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11925 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11926 formerly in xfns.c.
11927 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11928 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11929 (start_hourglass, cancel_hourglass): Remove.
11930 (show_hourglass, hide_hourglass): Remove prototypes and static
11931 modifiers.
11932 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11933 hourglass_atimer, hourglass_shown_p declaration/initialization.
11934 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11935 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11936 (start_hourglass, cancel_hourglass): Remove.
11937 (show_hourglass, hide_hourglass): Remove prototypes and static
11938 modifiers.
11939 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11940 hourglass_atimer, hourglass_shown_p declaration/initialization.
11941 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11942 (DEFAULT_HOURGLASS_DELAY): Remove.
11943 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11944 hourglass_shown_p declaration/initialization.
11945
119462008-07-14 Jason Rumney <jasonr@gnu.org>
11947
11948 * w32fns.c (w32_get_arg): Remove wrapper function.
11949 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11950 directly.
11951 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11952
119532008-07-14 Kenichi Handa <handa@m17n.org>
11954
11955 * xfont.c (xfont_open): Add workaround for X's bug.
11956
119572008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11958
11959 * fontset.c: Include <stdio.h> unconditionally.
11960
119612008-07-13 Michael Albinus <michael.albinus@gmx.de>
11962
11963 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11964 for filtering.
11965
119662008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11967
11968 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11969
11970 * m/macppc.h:
11971 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11972
11973 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11974 (SPECIAL_EMACS_INT):
11975 * m/ia64.h (SPECIAL_EMACS_INT):
11976 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11977 * s/gnu.h (NLIST_STRUCT):
11978 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11979 * s/gnu-linux.h (LINUX):
11980 * s/msdos.h (HAVE_FACES):
11981 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11982
11983 * systty.h:
11984 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11985 anymore.
11986
119872008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11988
11989 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11990 always defined as int.
11991
11992 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11993 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11994 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11995 * s/freebsd.h (HAVE_WAIT_HEADER):
11996 * s/bsd-common.h (HAVE_UNION_WAIT):
11997 * s/aix4-2.h (HAVE_WAIT_HEADER):
11998 * m/mips.h (HAVE_UNION_WAIT):
11999 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12000 (COFF, static): Do not define, they are undefined later in the file.
12001
12002 * process.c (update_status): Don't use a union.
12003 (status_convert):
12004 (sigchld_handler): Use int instead of WAITTYPE.
12005
120062008-07-12 Chong Yidong <cyd@stupidchicken.com>
12007
12008 * indent.c (Fvertical_motion): Restore hscroll before moving to
12009 goal column.
12010
120112008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12012
12013 * lisp.h: Remove left over code.
12014
120152008-07-11 Andreas Schwab <schwab@suse.de>
12016
12017 * lisp.h: Fix logic in last change.
12018
12019 * menu.h: New file.
12020 * menu.c: Include it.
12021 * xmenu.c: Likewise.
12022 * Makefile.in: Update dependencies.
12023
120242008-07-11 Kenichi Handa <handa@m17n.org>
12025
12026 * fontset.c (fontset_from_font): Cancel the previous change.
12027
120282008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12029
12030 * lisp.h:
12031 * w32heap.c:
12032 * emacs.c:
12033 * alloc.c: Replace all references of NO_UNION_TYPE with
12034 USE_LISP_UNION_TYPE.
12035
12036 * m/xtensa.h (NO_UNION_TYPE):
12037 * m/vax.h (NO_UNION_TYPE):
12038 * m/template.h (NO_UNION_TYPE):
12039 * m/sparc.h (NO_UNION_TYPE):
12040 * m/mips.h (NO_UNION_TYPE):
12041 * m/macppc.h (NO_UNION_TYPE):
12042 * m/m68k.h (NO_UNION_TYPE):
12043 * m/iris4d.h (NO_UNION_TYPE):
12044 * m/intel386.h (NO_UNION_TYPE):
12045 * m/ibms390x.h (NO_UNION_TYPE):
12046 * m/ibms390.h (NO_UNION_TYPE):
12047 * m/ibmrs6000.h (NO_UNION_TYPE):
12048 * m/ia64.h (NO_UNION_TYPE):
12049 * m/hp800.h (NO_UNION_TYPE):
12050 * m/arm.h (NO_UNION_TYPE):
12051 * m/amdx86-64.h (NO_UNION_TYPE):
12052 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12053 defining it the same.
12054
120552008-07-10 Chong Yidong <cyd@stupidchicken.com>
12056
12057 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12058
120592008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12060
12061 * fileio.c:
50426a04 12062 * sysdep.c:
aac0c6e3
MR
12063 * systty.h:
12064 * m/ibmrs6000.h:
12065 * m/iris4d.h:
12066 * s/aix4-2.h:
12067 * s/freebsd.h:
12068 * s/gnu-linux.h:
12069 * s/hpux10-20.h:
12070 * s/hpux11.h:
12071 * s/netbsd.h:
12072 * s/sol2-3.h:
12073 * s/sol2-4.h:
12074 * s/sol2.h:
12075 * s/usg5-4.h:
12076 * s/vms.h: Remove references to unused variables.
12077
120782008-07-10 Andreas Schwab <schwab@suse.de>
12079
12080 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12081 pattern before matching the generic family.
12082
120832008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12084
12085 * unexec.c:
12086 * s/vms.h:
12087 * s/usg5-4-2.h:
12088 * s/sol2-5.h:
12089 * s/freebsd.h:
12090 * s/darwin.h: Remove dead code.
12091
12092 * m/template.h:
12093 * m/sparc.h:
12094 * m/mips.h:
12095 * m/m68k.h:
12096 * m/iris4d.h:
12097 * m/intel386.h:
12098 * m/ibms390x.h:
12099 * m/ibms390.h:
12100 * m/ia64.h:
12101 * m/hp800.h:
12102 * m/arm.h:
12103 * m/amdx86-64.h: Remove dead code and references to unused
12104 and compiler defined symbols.
12105
12106 * unexmips.c:
12107 * unexelf.c: Remove references to desupported systems.
12108
12109 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12110
12111 * m/powermac.h: Remove boilerplate comments.
12112 (NO_REMAP): Remove unused definition.
12113
12114 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12115 define them.
12116
121172008-07-10 Kenichi Handa <handa@m17n.org>
12118
12119 * xfont.c (xfont_open): Log the reason of failure.
12120
121212008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12122
12123 * fontset.c (fontset_get_font_group):
12124 * font.c (font_check_otf): Specify argument types.
12125
121262008-07-09 Kenichi Handa <handa@m17n.org>
12127
12128 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12129 non-ASCII char is found.
12130
12131 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12132 (reorder_font_vector): Change the arg preferred_family to font.
12133 Prefer the spec matching with font.
12134 (fontset_get_font_group): New function.
12135 (fontset_find_font): Change the format of an element of a realized
12136 fontset. Use fontset_get_font_group.
12137 (fontset_font): Try the current fontset, the default fontset, the
12138 fallbacks of the current fontset, and the fallbacks of the default
12139 fontset in this order.
12140 (face_for_char): Delete the shortcut to use the current font.
12141 (fontset_from_font): Don't set fonts for Latin in the fontset.
12142
12143 * font.h (font_make_object, font_match_p): Adjust prototypes.
12144
12145 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12146
12147 * font.c (font_make_object): New arg entity and pixelsize.
12148 (font_check_otf_features, font_check_otf): New functions.
12149 (font_match_p): Check :lang, :script, and :otf properties.
12150
12151 * xfont.c (xfont_open): Adjust it for the change of
12152 font_make_object.
12153 (xfont_text_extents): Fix initial setting of metrics.
12154
12155 * ftfont.c (struct ftfont_info): New member index, delete member
12156 fc_charset_idx. Make the member order compatible with struct
12157 xftfont_info.
12158 (fc_charset_table): Change charset names to registry names.
12159 (ftfont_pattern_entity): Delete the args registry and
12160 fc_charset_idx. Change the value of :font-entity property
12161 to (FONTNAME . INDEX). Always set :registry property to
12162 `iso10646-1'.
12163 (struct ftfont_cache_data): New struct.
12164 (ftfont_lookup_cache): New arg for_face.
12165 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12166 (ftfont_driver): Set the member otf_capability.
12167 (ftfont_get_charset): Adjust it for the change of
12168 fc_charset_table.
12169 (OTF_TAG_SYM): New macro.
12170 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12171 for the change of fc_charset_table.
12172 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12173 ftfont_pattern_entity. Add FC_INDEX to objset.
12174 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12175 and ftfont_pattern_entity.
12176 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12177 font_make_object, struct ftfont_info.
12178 (ftfont_has_char): Use ftfont_get_fc_charset.
12179 (ftfont_otf_features, ftfont_otf_capability): New functions.
12180 (ftfont_shape): Use ftfont_get_otf.
12181 (ftfont_text_extents): Fix initial setting of metrics.
12182
12183 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12184 member order compatible with struct ftfont_info.
12185 (xftfont_open): Add FC_CHARSET to the pattern. Set
12186 xftfont_info->ft_size. Don't unlock the face. Check BDF
12187 properties if appropriate.
12188 (xftfont_close): Unlock the face.
12189 (xftfont_anchor_point, xftfont_shape): Deleted.
12190 (syms_of_xftfont): Don't set members anchor_point and shape of
12191 xftfont_driver.
12192
12193 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12194 font_make_object.
12195
12196 * w32font.c (w32font_open): Adjust it for the change of
12197 font_make_object.
12198 (w32font_open_internal): Don't set properties of font_object here.
12199
122002008-07-08 Chong Yidong <cyd@stupidchicken.com>
12201
12202 * macfns.c (x_create_tip_frame):
12203 * w32fns.c (x_create_tip_frame):
12204 * xfns.c (x_create_tip_frame): Pass parameter argument to
12205 face-set-after-frame-default.
12206
12207 * xfaces.c (Finternal_merge_in_global_face): Save merged
12208 attributes for the default face back into the face vector.
12209
122102008-07-08 Andreas Schwab <schwab@suse.de>
12211
12212 * fontset.h: Declare fontset_from_font. Don't declare
12213 new_fontset_from_font and fontset_from_font_name.
12214 * xterm.c: Include "fontset.h".
12215 * Makefile.in (xterm.o): Update dependencies.
12216
122172008-07-08 Glenn Morris <rgm@gnu.org>
12218
12219 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12220 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12221
122222008-07-07 Chong Yidong <cyd@stupidchicken.com>
12223
12224 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12225 (x_set_frame_parameters): Don't bind it.
12226
122272008-07-07 Juanma Barranquero <lekktu@gmail.com>
12228
12229 * w32fns.c (map_w32_filename): Declare extern.
12230
122312008-07-07 Jason Rumney <jasonr@gnu.org>
12232
12233 * w32term.c (WS_EX_LAYERED): Define if not already.
12234
122352008-07-06 Chong Yidong <cyd@stupidchicken.com>
12236
12237 * xfaces.c (set_font_frame_param): Don't try to set the font
12238 parameter if it is still unspecified in the lface.
12239
122402008-07-05 Chong Yidong <cyd@stupidchicken.com>
12241
12242 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12243 face if it didn't already exist.
12244
12245 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12246
122472008-07-05 Andreas Schwab <schwab@suse.de>
12248
12249 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12250
122512008-07-05 Chong Yidong <cyd@stupidchicken.com>
12252
12253 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12254 word-wrapping.
12255 (IT_DISPLAYING_WHITESPACE): New macro.
12256 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12257 when word-wrapping. Simplify word-wrapping logic. Use correct
12258 pixel positions when saving copies of the iterator.
12259 (display_line): Use proper wrap point if the last character on a
12260 line was preceded by whitespace.
12261
122622008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12263
12264 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12265
122662008-07-04 Kenichi Handa <handa@m17n.org>
12267
12268 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12269
12270 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12271
122722008-07-02 Jason Rumney <jasonr@gnu.org>
12273
12274 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12275 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12276
12277 * xdisp.c (next_element_from_display_vector): Move assignment out
12278 of if statement.
12279
122802008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12281
12282 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12283
12284 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12285 (syms_of_fileio): Initialize and export them.
12286 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12287
12288 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12289 (Fsystem_move_file_to_trash): New function.
12290 (syms_of_w32fns): Export it to lisp.
12291
122922008-07-01 Jason Rumney <jasonr@gnu.org>
12293
12294 * w32font.c (w32font_text_extents): Don't count overhang as part
12295 of width.
12296
122972008-06-30 Miles Bader <miles@gnu.org>
12298
12299 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12300 Add `avoid_cursor_p' field.
12301
12302 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12303 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12304 (append_glyph, append_composite_glyph, produce_image_glyph)
12305 (append_stretch_glyph): Initialize avoid_cursor_p.
12306 (get_it_property): Rename from `get_line_height_property'.
12307 (x_produce_glyphs): Use get_it_property.
12308 (handle_line_prefix, push_display_prop): New functions.
12309 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12310 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12311 New variables.
12312 (syms_of_xdisp): Initialize them.
12313
123142008-06-30 Kenichi Handa <handa@m17n.org>
12315
12316 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12317 XftDefaultSubstitute (they are called in XftFontMatch).
12318 (xftfont_open): Fix args to ftfont_font_format.
12319
12320 * ftfont.c (fc_charset_table): New member lang.
12321 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12322 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12323 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12324 (ftfont_open): Fix args to ftfont_font_format.
12325 (ftfont_font_format): New arg filename.
12326
123272008-06-30 Chong Yidong <cyd@stupidchicken.com>
12328
12329 * xfaces.c (Finternal_merge_in_global_face): If default face was
12330 modified, realize it again. Update the font face attribute.
12331
123322008-06-29 Jason Rumney <jasonr@gnu.org>
12333
12334 * w32term.c (x_set_frame_alpha): Fix logic.
12335
123362008-06-29 Kenichi Handa <handa@m17n.org>
12337
12338 * fontset.c (Finternal_char_font): Return font-object instead of
12339 font-name.
12340
12341 * composite.c (get_composition_id): Fix the width calculation for TAB.
12342
123432008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12344
12345 * indent.c (Fvertical_motion): Properly handle float column arg.
12346
123472008-06-28 Jason Rumney <jasonr@gnu.org>
12348
12349 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12350 (pfnSetLayeredWindowAttributes): New function pointer.
12351 (w32_initialize): Initialize it when supported.
12352 (x_set_frame_alpha): New function.
12353
12354 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12355 (w32_frame_parm_handlers): Set alpha handler.
12356
12357 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12358
123592008-06-27 Jason Rumney <jasonr@gnu.org>
12360
12361 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12362 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12363 (w32_to_x_charset, x_to_w32_charset)
12364 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12365 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12366 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12367 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12368 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12369 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12370 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12371 (Qw32_charset_unicode): Remove.
12372 (syms_of_w32fns): Update for above changes.
12373
12374 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12375 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12376 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12377 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12378 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12379 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12380 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12381 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12382 (syms_of_w32font): Update for above changes.
12383
123842008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12385
12386 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12387 removed #if.
12388 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12389
123902008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12391 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12392
12393 * makefile.w32-in (LOCAL_FLAGS):
12394 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12395
12396 * sysdep.c (_spawnlp, _getpid):
12397 Declare with explicit _cdecl instead of _CRTAPI1.
12398
12399 * editfns.c (Fget_internal_run_time):
12400 Check for WINDOWSNT with #ifdef, not #if.
12401
124022008-06-26 Jason Rumney <jasonr@gnu.org>
12403
12404 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12405
12406 * w32term.c (x_draw_glyph_string_foreground)
12407 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12408 Use FONT_HANDLE macro.
12409 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12410
12411 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12412 (uniscribe_encode_char): Use FONT_HANDLE macro.
12413
12414 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12415 (w32font_text_extents): Use precast w32_font.
12416 (w32font_close): Free cached metrics.
12417 (w32font_open_internal): Allocate space for name on stack.
12418
124192008-06-26 Chong Yidong <cyd@stupidchicken.com>
12420
12421 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12422
124232008-06-26 Jason Rumney <jasonr@gnu.org>
12424
12425 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12426 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12427
124282008-06-26 Juanma Barranquero <lekktu@gmail.com>
12429
12430 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12431
124322008-06-26 Jason Rumney <jasonr@gnu.org>
12433
12434 * w32bdf.c, w32bdf.h: Remove obsolete files.
12435
12436 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12437
12438 * w32gui.h: Don't include w32bdf.h.
12439 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12440 Remove obsolete font support.
12441
12442 * w32font.h (struct w32font_info): Remove compat_w32_font.
12443 Add hfont member.
12444 (FONT_COMPAT): Remove obsolete macro.
12445
12446 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12447 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12448 (w32font_open_internal): Remove compat code. Set new hfont member.
12449 (Fx_select_font): Use new hfont member.
12450
12451 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12452 (uniscribe_encode_char): Use new hfont member.
12453
12454 * w32term.c (x_draw_glyph_string_foreground)
12455 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12456 (x_draw_glyph_string): Use metrics in w32font_info.
12457
124582008-06-26 Kenichi Handa <handa@m17n.org>
12459
12460 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12461
124622008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12463
12464 * unexnext.c:
12465 * m/ews4800.h:
12466 * m/hp9000s300.h:
12467 * m/ibm370aix.h:
12468 * m/mips-siemens.h:
12469 * m/ncr386.h:
12470 * m/next.h:
12471 * m/pmax.h:
12472 * m/powerpcle.h:
12473 * m/tandem-s2.h:
12474 * s/386bsd.h:
12475 * s/bsd386.h:
12476 * s/bsd4-1.h:
12477 * s/bsd4-2.h:
12478 * s/bsdos2-1.h:
12479 * s/bsdos2.h:
12480 * s/bsdos3.h:
12481 * s/bsdos4.h:
12482 * s/nextstep.h:
12483 * s/ultrix4-3.h:
12484 * s/usg5-0.h:
12485 * s/usg5-2-2.h:
12486 * s/usg5-2.h:
12487 * s/usg5-4-3.h:
12488 * s/ux4800.h:
12489 * s/uxpds.h:
12490 * s/uxpv.h: Remove support for obsolete systems.
12491 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12492 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12493 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12494 Remove, insert contents in s/aix4-2.h.
12495 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12496 * s/bsd4-3.h: Rename to ...
12497 * s/bsd-common.h: ... this.
12498 * data.c:
12499 * doc.c:
12500 * ecrt0.c:
12501 * emacs.c:
12502 * fileio.c:
12503 * floatfns.c:
12504 * keyboard.c:
12505 * mem-limits.h:
12506 * print.c:
12507 * process.c:
12508 * sysdep.c:
12509 * syssignal.h:
12510 * systty.h:
12511 * syswait.h:
12512 * term.c:
12513 * unexec.c:
12514 * unexelf.c:
12515 * unexhp9k800.c:
12516 * m/hp800.h:
12517 * m/ibmrs6000.h:
12518 * m/mips.h:
12519 * m/vax.h:
12520 * s/darwin.h:
12521 * s/freebsd.h:
12522 * s/gnu.h:
12523 * s/ms-w32.h:
12524 * s/msdos.h:
12525 * s/netbsd.h:
12526 * s/template.h: Remove references to obsolete variables.
12527
12528 * Makefile.in: Add dependencies for all unexec files.
12529 (admindir): Remove unused variable.
12530 (UNEXEC_SRC): Remove references.
12531
125322008-06-25 Chong Yidong <cyd@stupidchicken.com>
12533
12534 * xfns.c (x_default_font_parameter): If Xft is available, first
12535 try Monospace-12 for the default font.
12536
125372008-06-25 Jason Rumney <jasonr@gnu.org>
12538
12539 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12540
125412008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12542
12543 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12544
12545 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12546
125472008-06-25 Juanma Barranquero <lekktu@gmail.com>
12548
12549 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12550 <scroll-conservatively>: Fix typo in docstring.
12551
12552 * xselect.c (Fx_send_client_event): Doc fix.
12553
125542008-06-25 Kenichi Handa <handa@m17n.org>
12555
12556 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12557
12558 * font.c (font_parse_fcname): Remove unused variables.
12559 (font_sort_entites): Delete the arg SPEC. Caller changed.
12560 Fix for the case of ! best_only.
12561 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12562
12563 * lisp.h (Fstring_to_unibyte): EXFUN it.
12564
12565 * character.h (str_to_unibyte): Extern it.
12566
12567 * character.c (str_to_unibyte): New function.
12568
12569 * fns.c (Fstring_to_unibyte): New function.
12570 (syms_of_fns): Defsubr it.
12571
125722008-06-24 Kenichi Handa <handa@m17n.org>
12573
12574 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12575 DPI too.
12576 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12577
125782008-06-24 Andreas Schwab <schwab@suse.de>
12579
12580 * Makefile.in (${lispsource}loaddefs.el): Rename from
12581 ../lisp/loaddefs.el.
12582 (bootstrap-clean): Do what distclean does but don't remove
12583 Makefile.
12584 (distclean): Depend on bootstrap-clean and remove Makefile.
12585
125862008-06-24 Chong Yidong <cyd@stupidchicken.com>
12587
12588 * buffer.h (struct buffer): New member word_wrap.
12589
12590 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12591 word-wrap.
12592 (init_buffer_once): Initialize them.
12593
12594 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12595 line_wrap enum possessing three possible values.
12596
12597 * termopts.h: Replace truncate_partial_width_windows with
12598 Vtruncate_partial_width_windows.
12599
12600 * dispnew.c (direct_output_for_insert): Avoid direct output when
12601 inserting a space with word wrap on.
12602
12603 * indent.c (compute_motion): Obey integer values of
12604 truncate-partial-width-windows.
12605
12606 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12607 replacing truncate_partial_width_windows.
12608 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12609 truncate only if the window width is below that integer.
12610 (start_display, resize_mini_window, produce_stretch_glyph)
12611 (display_string, move_it_in_display_line_to): Use line_wrap.
12612 (back_to_previous_visible_line_start, reseat_1): Reset
12613 string_from_display_prop_p.
12614 (display_line): Extend default face to end of line when wrapping.
12615
126162008-06-24 Kim F. Storm <storm@cua.dk>
12617
12618 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12619 to wrap continued lines at word boundaries.
12620
126212008-06-24 Jason Rumney <jasonr@gnu.org>
12622
12623 * font.c (Ffont_face_attributes): Multiply pixel size before point
12624 conversion to avoid multiplying rounding error.
12625
126262008-06-23 Jason Rumney <jasonr@gnu.org>
12627
12628 * w32term.c (x_draw_glyph_string_background)
12629 (x_draw_glyph_string): Remove old bdf font code.
12630
12631 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12632
126332008-06-22 Kenichi Handa <handa@m17n.org>
12634
12635 * font.c (font_find_for_lface): Try the adstyle specified in
12636 the property of LFACE_FONT of LFACE (if any).
12637
126382008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12639 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12640
12641 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12642
126432008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12644
12645 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12646 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12647 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12648 (witness-emacs): Remove.
12649 (lisp, shortlisp): Move loaddefs.el earlier.
12650 (mostlyclean): Forget about witness-emacs.
12651
126522008-06-22 Glenn Morris <rgm@gnu.org>
12653
12654 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12655 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12656
126572008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12658
12659 * Makefile.in (PRECOMP): Remove.
12660 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12661 (witness-emacs): Run `compile-first'.
12662 (.el.elc): Use the new compile-onefile target.
12663
126642008-06-21 Kenichi Handa <handa@m17n.org>
12665
12666 * xftfont.c (xftfont_open): Handle QCembolden only when
12667 FC_EMBOLDEN is defined.
12668
126692008-06-21 Andreas Schwab <schwab@suse.de>
12670
12671 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12672 (.el.elc): Likewise.
12673
126742008-06-21 Miles Bader <miles@gnu.org>
12675
12676 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12677 build dir, not the lisp source dir.
12678
126792008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12680
12681 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12682 (bootstrapclean): Remove.
12683 (.el.elc): New rule.
12684 (PRECOMP): New var.
12685 (../lisp/subdirs.el): Remove.
12686 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12687 (witness-emacs): New target.
12688 (mostlyclean): Remove witness-emacs as well.
12689 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12690 Add witness-emacs dependency.
12691
126922008-06-20 Chong Yidong <cyd@stupidchicken.com>
12693
12694 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12695 defined by the font.
12696
126972008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12698
12699 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12700 (bootstrap-clean): New target that keeps TAGS around.
12701 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12702 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12703
127042008-06-20 Jason Rumney <jasonr@gnu.org>
12705
12706 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12707 Remove obsolete font code.
12708
12709 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12710 to determine language support.
12711
127122008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12713
12714 * sysdep.c (cfsetspeed): New fun extracted from the code.
12715 (cfmakeraw): Move before first use.
12716
127172008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12718
12719 * sysdep.c (cfmakeraw): Provide fallback implementation.
12720 (serial_configure): Provide fallback implementation of cfsetspeed.
12721
127222008-06-20 Kenichi Handa <handa@m17n.org>
12723
12724 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12725 the pattern.
12726
12727 * fontset.c (fontset_from_font): Copy font_spec before changing
12728 the elements.
12729
12730 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12731
127322008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12733
12734 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12735 for explicit `font' parameters.
12736
12737 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12738
127392008-06-19 Kenichi Handa <handa@m17n.org>
12740
12741 * frame.c: Include <ctype.h>.
12742 (x_set_font_backend): Allow spacing characters in the X resource
12743 for FontBackend.
12744
127452008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12746
12747 * w32fns.c, xfns.c (Qfont_param): New var.
12748 (syms_of_w32fns): Initialize it.
12749 (x_default_font_parameter): Record explicit `font' into
12750 `font-parameter'.
12751
127522008-06-18 Kenichi Handa <handa@m17n.org>
12753
12754 * font.c (font_parse_xlfd): Fix previous change.
12755 (font_parse_fcname): Don't use :fc-unknown-spec.
12756 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12757 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12758 (font_add_log): Prepend the driver name to the resulting fonts.
12759
12760 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12761 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12762 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12763
12764 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12765 (QCembolden): New variables.
12766 (syms_of_xftfont): DEFSYM them.
12767 (xftfont_open): Call XftFontMatch. Don't trust the result of
12768 XftTextExtents8 if the pixel_size is less than 5.
12769
127702008-06-18 Andreas Schwab <schwab@suse.de>
12771
12772 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12773 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12774
127752008-06-18 Jason Rumney <jasonr@gnu.org>
12776
12777 * w32font.c (w32font_list, w32font_match): Add logging.
12778
12779 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12780
127812008-06-17 Chong Yidong <cyd@stupidchicken.com>
12782
12783 * font.c (font_parse_fcname): Store divider characters for
12784 unknown-spec list. For known key symbols, intern using correct
12785 symbol name.
12786
127872008-06-17 Kenichi Handa <handa@m17n.org>
12788
12789 * xfaces.c (realize_default_face): If the frame is not on window
12790 system, set the fontset of face to nil.
12791
127922008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12793
12794 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12795
127962008-06-16 Juanma Barranquero <lekktu@gmail.com>
12797
12798 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12799 (build_font_name_from_vector): Delete externs.
12800
12801 * xfaces.c (struct font_name): Don't declare.
12802
128032008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12804
12805 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12806
128072008-06-16 Chong Yidong <cyd@stupidchicken.com>
12808
12809 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12810
128112008-06-16 Juanma Barranquero <lekktu@gmail.com>
12812
12813 * font.c (Ffont_spec): Fix usage in docstring.
12814 (Ffont_face_attributes): Doc fix.
12815
128162008-06-16 Andreas Schwab <schwab@suse.de>
12817
12818 * font.c (Ffont_face_attributes): Fix definition.
12819
128202008-06-16 Jason Rumney <jasonr@gnu.org>
12821
12822 * font.h (font_style_symbolic_from_value): Remove.
12823
12824 * font.c (font_style_symbolic_from_value): Remove.
12825 (font_style_symbolic): Revert to pre 2008-06-13 version.
12826
12827 * w32font.c (w32_to_fc_weight): New function.
12828 (w32font_full_name, logfont_to_fcname): Use it.
12829
128302008-06-16 Kenichi Handa <handa@m17n.org>
12831
12832 * font.c (font_check_object): Delete it.
12833 (font_clear_cache): Check if a font-object is alive.
12834 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12835 font-object to nil.
12836 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12837 (font_at): Don't call font_check_object.
12838 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12839
128402008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12841
12842 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12843
128442008-06-16 Chong Yidong <cyd@stupidchicken.com>
12845
12846 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12847
128482008-06-15 Chong Yidong <cyd@stupidchicken.com>
12849
12850 * font.c (font_parse_fcname): Only one decimal point.
12851 (font_unparse_fcname): Handle data in family and foundry indices
12852 as symbols, not strings.
12853 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12854
12855 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12856
12857 * font.h (font_unparse_gtkname): Add prototype.
12858
128592008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12860
12861 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12862
128632008-06-15 Andreas Schwab <schwab@suse.de>
12864
12865 * font.c (font_update_drivers): Fix crash when no drivers match.
12866
128672008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12868
12869 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12870 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12871
128722008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12873
12874 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12875
128762008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12877
12878 * process.c (Fserial_process_configure, Fprocess_send_eof):
12879 Use EQ to compare Lisp_Objects.
12880
128812008-06-13 Jason Rumney <jasonr@gnu.org>
12882
12883 * w32fns.c (Fw32_select_font): Remove old font API function.
12884
12885 * w32font.c (logfont_to_fcname): New function.
12886 (Fx_select_font): New font dialog function compatible with
12887 GTK/fontconfig version.
12888
12889 * font.c (font_style_symbolic_from_value): New function.
12890 (font_style_symbolic): Use it.
12891
12892 * font.h (font_style_symbolic_from_value): Declare new function.
12893
128942008-06-13 Juanma Barranquero <lekktu@gmail.com>
12895
12896 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12897 <font-width-table>: Fix typos in docstrings.
12898
128992008-06-13 Daniel Engeler <engeler@gmail.com>
12900
12901 These changes add serial port access.
12902 * process.c: Add HAVE_SERIAL.
12903 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12904 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12905 (list_processes_1, select_wrapper, Fstop_process)
12906 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12907 (status_notify): Modify to handle serial processes.
12908 [HAVE_SERIAL] (Fserial_process_configure)
12909 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12910 New functions.
12911 * process.h (struct Lisp_Process): Add `type'.
12912 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12913 New functions.
12914 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12915 serial ports.
b71ac3dd 12916 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12917 * w32.h: Add FILE_SERIAL.
12918 (struct _child_process): Add ovl_read, ovl_write.
12919
129202008-06-13 Kenichi Handa <handa@m17n.org>
12921
12922 * dispextern.h (enum lface_attribute_index): New member
12923 LFACE_FOUNDRY_INDEX.
12924
12925 * font.c (font_score): Delete arg alternate_families. Check only
12926 weight, slant, width, and size. Ignore the difference of alias
12927 style symbols.
12928 (font_sort_entites): Adjust for the above change. Reflect the
12929 order of font-driver to scores.
12930 (font_list_entities): Don't check alternate_familes here.
12931 (font_clear_prop): Handle foundry.
12932 (font_update_lface): Don't parse "foundry-family" form here.
12933 Handle FONT_FOUNDRY_INDEX.
12934 (font_find_for_lface): Likewise. Handle alternate families here.
12935 If registry is nil, try iso8859-1 and ascii-0.
12936 (font_open_for_lface): Pay attention to size in ENTITY.
12937 (font_open_by_name): Simplify by calling font_load_for_lface.
12938 (free_font_driver_list): Delete it.
12939 (font_update_drivers): Preserve the order of backends.
12940 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12941 of font_score and font_sort_entites.
12942 (font_update_sort_order): Likewise.
12943
12944 * xfaces.c (LFACE_FOUNDRY): New macro.
12945 (check_lface_attrs): Check foundry.
12946 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12947 (merge_face_vectors): Check foundry.
12948 (merge_face_ref): Likewise.
12949 (Finternal_set_lisp_face_attribute): Likewise.
12950 (x_update_menu_appearance): Likewise.
12951 (Finternal_get_lisp_face_attribute): Likewise.
12952 (lface_hash): Likewise.
12953 (lface_same_font_attributes_p): Likewise.
12954 (x_supports_face_attributes_p): Likewise.
12955 (tty_supports_face_attributes_p): Likewise.
12956 (Finternal_set_alternative_font_family_alist): Intern strings.
12957 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12958 (realize_default_face): Set LFACE_FOUNDRY (lface).
12959
12960 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12961 font-driver at first.
12962
12963 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12964
129652008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12966
12967 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12968
129692008-06-12 Jim Meyering <meyering@redhat.com>
12970
12971 Make unexec_free handle NULL the same way free does.
12972 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12973
129742008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12975
12976 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12977 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12978 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12979 (WEAK_ALIAS): Simplify.
12980 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12981 when searching a unibyte buffer.
12982
129832008-06-12 Chong Yidong <cyd@stupidchicken.com>
12984
12985 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12986
129872008-06-12 Juanma Barranquero <lekktu@gmail.com>
12988
12989 * w32font.c: Include ctype.h.
12990
129912008-06-11 Jason Rumney <jasonr@gnu.org>
12992
12993 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12994 misreported as space.
12995 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12996 as aliases for registry iso10646-1.
12997
129982008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12999
13000 * buffer.c (clone_per_buffer_values): Skip `name'.
13001
130022008-06-11 Chong Yidong <cyd@stupidchicken.com>
13003
13004 * font.c (font_parse_fcname): Fix last change; accept decimal
13005 points in font size.
13006
130072008-06-10 Jason Rumney <jasonr@gnu.org>
13008
13009 * w32uniscribe.c (add_opentype_font_name_to_list):
13010 Skip non unicode fonts.
13011
130122008-06-10 Chong Yidong <cyd@stupidchicken.com>
13013
13014 * xfns.c (Fx_font_dialog): New function.
13015
13016 * gtkutil.c (xg_dialog_response_cb): Rename from
13017 xg_file_response_callback.
13018 (pop_down_dialog): Rename from pop_down_file_dialog.
13019 (xg_get_file_name): Callers changed.
13020 (xg_get_font_name): New function.
13021
13022 * gtkutil.h (xg_get_font_name): Insert prototype.
13023
130242008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13025
13026 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13027 x_underline_minimum_display_offset.
13028 (syms_of_xdisp): Declare it here rather than in xterm.c.
13029 * dispextern.h (underline_minimum_offset): Declare it.
13030 * w32term.c (x_draw_glyph_string): Use it.
13031 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13032 (syms_of_xterm): Don't declare it any more.
13033 (x_draw_glyph_string): Adjust to the new name.
13034
8719abec 130352008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13036
13037 * xterm.c (x_underline_minimum_display_offset): New var.
13038 (x_draw_glyph_string): Use it.
13039 (syms_of_xterm): Declare it.
13040
130412008-06-10 Chong Yidong <cyd@stupidchicken.com>
13042
13043 * font.c (font_parse_fcname): Accept GTK-style font names too.
13044
130452008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13046
13047 * dired.c (file_name_completion): Don't return t if the match is exact
13048 but with different capitalization.
13049 * minibuf.c (Ftry_completion): Simplify.
13050
13051 * window.c (Vwindow_point_insertion_type): New var.
13052 (set_window_buffer): Use it.
13053 (syms_of_window): Init and export it to Lisp.
13054
130552008-06-10 Kenichi Handa <handa@m17n.org>
13056
13057 * font.h (font_intern_prop): Prototype adjusted.
13058
13059 * font.c (font_intern_prop): New arg force_symbol.
13060 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13061 Adjust for the change of font_intern_prop.
13062
13063 * ftfont.c (ftfont_pattern_entity):
13064 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13065 (w32_registry):
13066 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13067 the change of font_intern_prop.
13068
130692008-06-09 Juanma Barranquero <lekktu@gmail.com>
13070
13071 * w32menu.c (digest_single_submenu): Declare extern.
13072
130732008-06-09 Jason Rumney <jasonr@gnu.org>
13074
13075 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13076
13077 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13078 (parse_single_submenu): Remove.
13079 (digest_single_submenu): Remove.
13080 (syms_of_w32menu): Don't initialise variables that have moved
13081 to menu.c.
13082 (set_frame_menubar): Sync with version in xmenu.c.
13083 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13084
13085 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13086 Make static again.
13087
130882008-06-09 Jason Rumney <jasonr@gnu.org>
13089
13090 Changes to w32 files related to the move of common menu code
13091 to menu.c on 2008-06-08 by Chong Yidong.
13092
13093 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13094 defs to w32gui.h.
13095 (single_keymap_panes, push_menu_item, push_menu_pane):
13096 Make globally visible.
13097
13098 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13099 (local_free, malloc_widget_value, free_widget_value)
13100 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13101 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13102 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13103 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13104 (menu_items, menu_items_allocated, menu_items_used)
13105 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13106 (init_menu_items, finish_menu_items, discard_menu_items)
13107 (grow_menu_items, push_submenu_start, push_submenu_end)
13108 (push_left_right_boundary, push_menu_pane, push_menu_item)
13109 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13110 (free_menubar_widget_tree_value, parse_single_submenu)
13111 (update_submenu_strings): Remove functions.
13112 (xmalloc_widget_value): Remove and declare extern.
13113
13114 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13115 (OBJ1): Build it.
13116
13117 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13118 (local_heap, local_alloc, local_free, malloc_widget_value)
13119 (free_widget_value): Define here.
13120
131212008-06-09 Kenichi Handa <handa@m17n.org>
13122
13123 * font.h (Qascii_0): Extern it.
13124
13125 * font.c (Qascii_0): New variable.
13126 (syms_of_font): DEFSYM it.
13127 (font_open_by_name): If the registry "iso8859-1" fails, try also
13128 "ascii-0".
13129
13130 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13131
131322008-06-08 Kenichi Handa <handa@m17n.org>
13133
13134 * .gdbinit (xfont): New command.
13135
131362008-06-08 Andreas Schwab <schwab@suse.de>
13137
13138 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13139 * Makefile.in (menu.o): Update dependencies.
13140
13141 * Makefile.in (obj): Always add menu.o.
13142 * emacs.c (main): Always call syms_of_menu.
13143 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13144
131452008-06-08 Chong Yidong <cyd@stupidchicken.com>
13146
13147 * Makefile.in: Compile menu.c.
13148
13149 * lisp.h: Declare syms_of_menu.
13150
13151 * emacs.c (main): Call syms_of_menu.
13152
13153 * keyboard.h: Relocate platform-independent menu definitions from
13154 xmenu.c.
13155
13156 * menu.c: New file. Relocate platform-independent menu
13157 definitions from xmenu.c. Suggested by Adrian Robert.
13158
13159 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13160 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13161 (menu_items_used, menu_items_n_panes)
13162 (menu_items_submenu_depth): Move to keyboard.h.
13163 (init_menu_items, finish_menu_items, unuse_menu_items)
13164 (discard_menu_items, restore_menu_items, save_menu_items)
13165 (grow_menu_items, push_submenu_start, push_submenu_end)
13166 (push_left_right_boundary, push_menu_pane, push_menu_item)
13167 (keymap_panes, single_keymap_panes, single_menu_item)
13168 (list_of_panes, list_of_items, find_and_call_menu_selection)
13169 (xmalloc_widget_value, free_menubar_widget_value_tree)
13170 (parse_single_submenu, digest_single_submenu)
13171 (update_submenu_strings): Move to menu.c.
13172
131732008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13174
13175 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13176
131772008-06-06 Miles Bader <miles@gnu.org>
13178
13179 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13180 face, not frame default.
13181
131822008-06-05 Martin Rudalics <rudalics@gmx.at>
13183
13184 * window.c (pop_up_windows, pop_up_frames)
13185 (display_buffer_reuse_frames, Vpop_up_frame_function)
13186 (Vdisplay_buffer_function, Veven_window_heights)
13187 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13188 (Vspecial_display_function, Vsame_window_buffer_names)
13189 (Vsame_window_regexps, split_height_threshold)
13190 (Vsplit_window_preferred_function): Move those vars to window.el.
13191 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13192 (Fdisplay_buffer): Move those functions to window.el.
13193 (syms_of_window): Remove corresponding declarations.
13194 (display_buffer): New function.
13195 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13196 * dispnew.c (Flast_nonminibuf_frame): New function.
13197 * buffer.c (Fpop_to_buffer): Move to window.el.
13198
131992008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13200
13201 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13202
132032008-06-05 Kenichi Handa <handa@m17n.org>
13204
13205 * coding.c (detect_coding): Fix previous change.
13206 (detect_coding_system): Likewise.
13207
132082008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13209
13210 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13211
13212 * keymap.c (Vminibuffer_local_filename_must_match_map):
13213 Rename from Vminibuffer_local_must_match_filename_map.
13214 (syms_of_keymap):
13215 * minibuf.c (Fcompleting_read): Adjust accordingly.
13216 * commands.h: Rename declaration as well.
13217
132182008-06-05 Kenichi Handa <handa@m17n.org>
13219
13220 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13221 family name.
13222 (Ffont_put): Likewise.
13223
13224 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13225 current font-spec.
13226
13227 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13228 is unspecified.
13229
13230 * xfaces.c (realize_x_face): If the font-related face attributes
13231 are the same as those of default face, realize a new fontset from
13232 default->fontset.
13233 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13234
132352008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13236
13237 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13238 (move_it_in_display_line): New wrapper.
13239
13240 * window.c (window_scroll_pixel_based_preserve_x)
13241 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13242 (window_scroll_pixel_based, window_scroll_line_based):
13243 Use them to preserve column positions.
13244 (syms_of_window): Initialize them.
13245
13246 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13247 (HPOS . VPOS) pair.
13248
13249 * dispextern.h (move_it_in_display_line): Declare.
13250
132512008-06-05 Juanma Barranquero <lekktu@gmail.com>
13252
13253 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13254 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13255 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13256
132572008-06-04 Juanma Barranquero <lekktu@gmail.com>
13258
13259 * window.c (Fset_window_parameter): Doc fix.
13260 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13261
132622008-06-04 Joakim Verona <joakim@verona.se>
13263
13264 * window.h (struct window): Add new member window_parameters.
13265
13266 * window.c (Fwindow_parameters, Fwindow_parameter)
13267 (Fset_window_parameter): New defuns.
13268 (syms_of_window): Defsubr the new defuns.
13269 (make_window): Initialize window_parameters to nil.
13270
132712008-06-04 John Paul Wallington <jpw@pobox.com>
13272
13273 * eval.c (Fdefmacro): Doc fix.
13274
132752008-06-04 Kenichi Handa <handa@m17n.org>
13276
13277 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13278 Be sure to call setup_coding_system when we find a proper coding system.
13279 (detect_coding_system): Fix handling of coding->head_ascii.
13280
132812008-06-03 Andreas Schwab <schwab@suse.de>
13282
13283 * font.c (font_prop_validate_spacing): Fix last change.
13284
132852008-06-03 Kenichi Handa <handa@m17n.org>
13286
13287 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13288 (font_parse_fcname): Fix handling of unknown key.
13289
13290 * xfont.c (xfont_list): Try an alias.
13291
13292 * charset.c (char_charset): Return NULL if the arg charset_list is
13293 specified and C doesn't belong to any of them.
13294
132952008-06-02 Chip Coldwell <coldwell@redhat.com>
13296
13297 * font.c (font_pixel_size): Don't take cdr of an integer.
13298
132992008-06-02 Jim Meyering <meyering@redhat.com>
13300
13301 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13302 * alloc.c (xfree): Return right away for a NULL arg.
13303 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13304 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13305 * mac.c (create_apple_event_from_event_ref): Likewise.
13306 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13307 Likewise.
13308 * doprnt.c (doprnt1): Likewise.
13309 * frame.c (frame): Likewise.
13310 * keyboard.c (wipe_kboard): Likewise.
13311 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13312 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13313 * term.c (tty_default_color_capabilities, maybe_fatal)
13314 (delete_tty): Likewise.
13315 * w16select.c (string): Likewise.
13316 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13317 * w32bdf.c (w32_free_bdf_font): Likewise.
13318 * w32fns.c (w32_unload_font): Likewise.
13319 * w32font.c (w32font_close): Likewise.
13320 * window.c (size_window): Likewise.
13321 * xselect.c (receive_incremental_selection): Likewise.
13322 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13323 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13324 * w32.c (stat): Likewise.
13325
13326 Remove useless if-before-free tests.
13327 * editfns.c (Fset_time_zone_rule): Likewise.
13328 * lread.c (nosuffix): Likewise.
13329 * ralloc.c (get_bloc): Likewise.
13330 * regex.c (reg_free): Likewise.
13331 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13332 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13333 * xsmfns.c (smc_save_yourself_CB): Likewise.
13334
133352008-06-02 Kenichi Handa <handa@m17n.org>
13336
13337 * font.c (font_find_for_lface): Handle float font size.
13338 (font_open_for_lface): Likewise.
13339
13340 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13341 comparing the properties.
13342
133432008-06-01 Jason Rumney <jasonr@gnu.org>
13344
13345 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13346 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13347 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13348 Don't add empty script list.
13349 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13350
133512008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13352
13353 * Makefile.in (dot, dotdot): Remove, update users.
13354 ".." has been used elsewhere in the file for a long time.
13355 (LIBXT_STATIC): Remove conditional based on unused variable.
13356
133572008-06-01 Miles Bader <miles@gnu.org>
13358
13359 * xfaces.c (Vface_remapping_alist): New variable.
13360 (syms_of_xfaces): Initialize it.
13361 (enum named_merge_point_kind): New type.
13362 (struct named_merge_point): Add `named_merge_point_kind' field.
13363 (push_named_merge_point): Make cycle detection respect different
13364 named-merge-point kinds.
13365 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13366 Remove face-name alias resolution.
13367 (lface_from_face_name): New definition using
13368 `lface_from_face_name_no_resolve'.
13369 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13370 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13371 (get_lface_attributes): New definition that layers face-remapping on
13372 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13373 (lookup_basic_face): New function.
13374 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13375 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13376 `get_lface_attributes'.
13377 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13378 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13379 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13380
13381 * xdisp.c (init_iterator): Pass base_face_id through
13382 `lookup_basic_face' when we actually use it as a face-id.
13383 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13384 DEFAULT_FACE_ID.
13385
13386 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13387 lookup the initial face-id.
13388
13389 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13390
133912008-06-01 Juanma Barranquero <lekktu@gmail.com>
13392
13393 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13394 (Fremove_text_properties): Fix typos in docstrings.
13395
133962008-05-31 Kenichi Handa <handa@m17n.org>
13397
13398 * font.c (font_list_entities): Fix the car part of data to be
13399 stored in the cache.
13400
13401 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13402
134032008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13404
13405 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13406 Add a `test' argument so another predicate than `equal' can be used.
13407 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13408 (map_char_table): Remove unused vars `c' and `i'.
13409 * lisp.h (Foptimize_char_table): Adjust declaration.
13410 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13411
134122008-05-30 Kenichi Handa <handa@m17n.org>
13413
13414 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13415 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13416 defined.
13417
134182008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13419
13420 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13421 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13422 frame-local settings for the same variable.
13423
134242008-05-30 Kenichi Handa <handa@m17n.org>
13425
13426 * fontset.c (Ffont_info): Move to font.c.
13427 (syms_of_fontset): Delete defsubr of Sfont_info.
13428
13429 * font.c (font_style_to_value, font_score): Delete casting of the
13430 args to xstcasecmp.
13431 (register_font_driver): Increment num_font_drivers only when
13432 registering the driver globally.
13433 (Ffont_info): Move from fontset.c. Handle a font object too.
13434 (syms_of_font): Defsubr Sfont_info.
13435
134362008-05-29 Kenichi Handa <handa@m17n.org>
13437
13438 * coding.h (enum define_coding_utf8_arg_index): New enum.
13439 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13440 coding_attr_utf_bom.
13441 (enum utf_bom_type): Rename from utf_16_bom_type.
13442 (struct utf_16_spec): Adjust for the above change.
13443 (struct coding_system): Add utf_8_bom in `spec' union.
13444
13445 * coding.c (CODING_UTF_8_BOM): New macro.
13446 (enum coding_category): Delete coding_category_utf_8, add
13447 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13448 coding_category_utf_8_sig.
13449 (CATEGORY_MASK_UTF_8): Delete it.
13450 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13451 (CATEGORY_MASK_UTF_8_SIG): New macros.
13452 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13453 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13454 CATEGORY_MASK_UTF_8_SIG.
13455 (CATEGORY_MASK_UTF_8): New macro.
13456 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13457 (detect_coding_utf_8): Check BOM.
13458 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13459 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13460 (encode_coding_utf_16): Likewise.
13461 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13462 (detect_coding, detect_coding_system): Handle utf-8-auto.
13463 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13464 (syms_of_coding): Fix setting up of Vcoding_category_table.
13465
134662008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13467
13468 * process.c (Faccept_process_output): If `millisec' is non-nil,
13469 `seconds' default to 0.
13470 (wait_reading_process_output): Also return non-nil if we read output
13471 from a non-running process.
13472
134732008-05-29 Jason Rumney <jasonr@gnu.org>
13474
13475 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13476 `raster' specified.
13477 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13478 in the uniscribe backend, but disallow any font that has no
13479 unicode subrange support.
13480
134812008-05-29 Juanma Barranquero <lekktu@gmail.com>
13482
13483 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13484 Fix typos in docstrings.
13485
134862008-05-29 Kenichi Handa <handa@m17n.org>
13487
13488 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13489 (Fx_family_fonts): Set frame correctly.
13490
134912008-05-28 Jason Rumney <jasonr@gnu.org>
13492
13493 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13494
134952008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13496
13497 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13498 calling build_annotations.
13499
135002008-05-28 Juanma Barranquero <lekktu@gmail.com>
13501
13502 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13503 (Fencode_coding_string):
13504 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13505 <latin-extra-code-table>: Fix typos in docstrings.
13506 (syms_of_coding) <coding-system-alist>: Doc fix.
13507 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13508
135092008-05-28 Kenichi Handa <handa@m17n.org>
13510
13511 * fontset.c (Ffont_info): Don't call font_close_object.
13512
13513 * font.c (font_parse_family_registry): Use Ffont_put to validate
13514 foundry and family.
13515 (font_delete_unmatched): Don't check spacing.
13516 (font_list_entities): Add spacing to the spec to list fonts.
13517
13518 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13519 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13520
13521 * coding.c (encode_coding_raw_text): Fix previous change.
13522 (encode_coding_object): When the dst_object is a buffer and is
13523 different from src_object, move gap to PT.
13524
135252008-05-27 Chong Yidong <cyd@stupidchicken.com>
13526
13527 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13528
135292008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13530
13531 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13532 all branches. Compute it differently.
13533
13534 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13535
135362008-05-27 Juanma Barranquero <lekktu@gmail.com>
13537
13538 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13539 into "else if () ... else ...".
13540
135412008-05-27 Jason Rumney <jasonr@gnu.org>
13542
13543 * w32font.c (w32font_open_internal): Determine if glyph indices
13544 are likely to work here.
13545
135462008-05-27 Chong Yidong <cyd@stupidchicken.com>
13547
13548 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13549 draw overlap glyphs with appropriate highlighting.
13550
135512008-05-27 Kenichi Handa <handa@m17n.org>
13552
13553 * xfont.c (xfont_open): Fix calculation of font->average_width.
13554
135552008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13556
13557 * casefiddle.c (casify_object): Try to guess better whether the
13558 argument is a byte or a char.
13559
135602008-05-26 Andreas Schwab <schwab@suse.de>
13561
13562 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13563 Always send multiples of format size.
13564
13565 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13566
135672008-05-26 Jason Rumney <jasonr@gnu.org>
13568
13569 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13570 (compute_metrics): Don't set failure if we just cleared the cache.
13571 (w32_weight_table): Remove unused variable.
13572 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13573 backwards compatibility.
13574
135752008-05-25 Kenichi Handa <handa@m17n.org>
13576
13577 * w32term.c (x_draw_glyph_string):
13578 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13579
13580 * xfaces.c: Delete unused function prototypes.
13581 (xstrlwr, font_frame): Delete them.
13582 (clear_face_cache): Delete unused variable.
13583
13584 * xftfont.c (xftfont_open): Delete unused variable.
13585 If underline_thickness is not 1, adjust underline_position.
13586
13587 * ftxfont.c (ftxfont_open): Delete unused variable.
13588
13589 * fontset.c (face_for_char): Optimize for the case of no charset
13590 property.
13591
13592 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13593 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13594 (otf_open, font_otf_capability, generate_otf_features)
13595 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13596 Comment out by surrounding "#if 0" and "#endif" for the moment.
13597 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13598 (syms_of_font): Codes for accessing above commented out.
13599
136002008-05-24 Eli Zaretskii <eliz@gnu.org>
13601
13602 * w32proc.c: Include dispextern.h.
13603
13604 * w32.c: Include dispextern.h.
13605
136062008-05-23 Juanma Barranquero <lekktu@gmail.com>
13607
13608 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13609 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13610 Fix typos in docstrings.
13611
136122008-05-23 Jason Rumney <jasonr@gnu.org>
13613
13614 * xsmfns.c: Remove includes that are already included by config.h.
13615
136162008-05-23 Kenichi Handa <handa@m17n.org>
13617
13618 * charset.c (Qemacs, charset_emacs): New variables.
13619 (char_charset): Fix for non-Unicode characters.
13620 (syms_of_charset): Define charset_emacs.
13621
13622 * w32term.c (x_draw_glyph_string): Be sure to update
13623 s->underline_thickness and s->underline_position. Be sure to draw
13624 underline within the current line area.
13625
13626 * xterm.c (x_draw_glyph_string): Be sure to update
13627 s->underline_thickness and s->underline_position. Be sure to draw
13628 underline within the current line area.
13629
13630 * fontset.c: Delete unused variables and add casting for char *
13631 throughout the file.
13632 (fontset_font): Try the fallback fonts of the current fontset
13633 before consulting the default fontset.
13634
13635 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13636
13637 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13638
136392008-05-22 Jason Rumney <jasonr@gnu.org>
13640
13641 * font.c: Don't include strings.h.
13642
13643 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13644
13645 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13646 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13647 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13648 to call xstrcasecmp.
13649
13650 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13651
13652 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13653
13654 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13655
13656 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13657
136582008-05-22 Kenichi Handa <handa@m17n.org>
13659
13660 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13661
13662 * font.c (font_prop_validate_style): Adjust for the format
13663 change of font_style_table.
13664
13665 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13666 two args.
13667
13668 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13669 two args.
13670
136712008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13672
13673 * minibuf.c (keys_of_minibuf): Delete.
13674 * lisp.h (keys_of_minibuf): Delete.
13675 * emacs.c (main): Don't call keys_of_minibuf.
13676
136772008-05-22 Kenichi Handa <handa@m17n.org>
13678
13679 * ftfont.c (ftfont_resolve_generic_family): Rename from
13680 ftfont_list_generic_family. Return a single family for each
13681 generic family.
13682 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13683 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13684 Call font_add_log.
13685 (ftfont_match): Call font_add_log.
13686
13687 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13688 (FONT_DEBUG): Define it.
13689 (font_add_log): Extern it.
13690 (font_assert): Rename from xassert.
13691
13692 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13693 (xfont_list_family): Call font_add_log.
13694 (xfont_match): Likewise.
13695 (memq_no_quit): Delete.
13696
13697 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13698 call of Ffont_xlfd_name.
13699
13700 * xfaces.c (struct table_entry, slant_table, weight_table)
13701 (swidth_table): Move to font.c.
13702
13703 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13704 xassert are changed to font_assert. Delete many unused variables.
13705 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13706 New variables.
13707 (struct table_entry): Move from xfaces.c and modified.
13708 (weight_table, slant_table, width_table): Move from xfaces.c and
13709 contents adjusted for the change of struct table_entry.
13710 (font_style_to_value, font_style_symbolic): Adjust for the
13711 format change of font_style_table.
13712 (font_parse_family_registry): Don't overwrite existing foundry and
13713 family of font_spec.
13714 (font_score): Fix calculation of diff for sizes.
13715 (font_sort_entites): Call font_add_log.
13716 (font_delete_unmatched): Return a newly created list.
13717 (font_list_entities): Fix previous change. Call font_add_log.
13718 (font_matching_entity, font_open_entity, font_close_entity):
13719 Call font_add_log.
13720 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13721 (Finternal_set_font_style_table): Delete.
13722 (BUILD_STYLE_TABLE): New macro.
13723 (build_style_table): New function.
13724 (Vfont_log, font_log_env_checked): New variables.
13725 (font_add_log): New function.
13726 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13727 Declare Lisp variables "font-weight-table", "font-slant-table",
13728 "font-width-table", and "font-log". Initialize font_style_table.
13729
137302008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13731
13732 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13733
137342008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13735 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13736
13737 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13738 (Vframe_alpha_lower_limit): New variable.
13739 (x_set_alpha): New function.
13740
13741 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13742
13743 * xfns.c (x-create-frame, Qalpha):
13744 Initialize the frame parameter `alpha'.
13745 * xterm.c (OPAQUE, OPACITY): New.
13746 (x_set_frame_alpha): New function.
13747 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13748
13749 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13750 * w32fns.c (w32_frame_parm_handlers): Likewise.
13751
137522008-05-20 Jason Rumney <jasonr@gnu.org>
13753
13754 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13755 truetype fonts to opentype list.
13756
137572008-05-20 Juanma Barranquero <lekktu@gmail.com>
13758
13759 * fontset.c (Ffontset_info): Doc fix.
13760 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13761 <ignore-relative-composition>: Fix typos in docstrings.
13762
13763 * font.c (syms-of-font) <font-encoding-alist>:
13764 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13765 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13766 (Ffont_otf_alternates): Doc fixes.
13767
137682008-05-20 Kenichi Handa <handa@m17n.org>
13769
13770 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13771 font.h through out the file.
13772 (FONT_DRIVERS): Rename from FONTOBJ.
13773 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13774 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13775
13776 * emacs.c (main): Call syms_of_font unconditionally.
13777
13778 * font.h (find_font_encoding): Extern it.
13779
13780 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13781 fontset.c.
194d44e7 13782 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13783 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13784 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13785 only when HAVE_WINDOW_SYSTEM is defined.
13786 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13787 when HAVE_WINDOW_SYSTEM is defined.
13788
13789 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13790 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13791
13792 * xfaces.c: Include font.h unconditionally.
13793 (merge_face_ref, merge_face_vectors)
13794 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13795
137962008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13797
13798 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13799 indirect_variable.
13800 * eval.c (lisp_indirect_variable): New fun.
13801 (Fuser_variable_p): Use it.
13802
138032008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13804
13805 * lisp.h (indirect_variable):
13806 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13807 Use Lisp_Symbol pointers rather than Lisp_Object.
13808 Adjust callers.
13809 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13810 To this end, change calling-convention.
13811
13812 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13813 if some non-hidden buffers are selected by string&pred.
13814
138152008-05-19 Chong Yidong <cyd@stupidchicken.com>
13816
13817 * process.c (wait_reading_process_output): Always check status
13818 when in batch mode.
13819
138202008-05-19 Kenichi Handa <handa@m17n.org>
13821
13822 * font.c (font_list_entities): Fix handling of cache.
13823 (font_matching_entity): Likewise.
13824
13825 * ftfont.c (cs_iso8859_1): Delete.
13826 (ft_face_cache): New variable.
13827 (struct ftfont_info): New member fc_charset_idx.
13828 (ftfont_build_basic_charsets): Delete.
13829 (fc_charset_table): New variable.
13830 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13831 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13832 Callers changed.
13833 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13834 (ftfont_spec_pattern): New argument fc_charset_idx.
13835 Check registry more rigidly. Change callers.
13836 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13837 change of :font-entity property of the font.
13838
13839 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13840 property of the font.
13841
138422008-05-18 Juanma Barranquero <lekktu@gmail.com>
13843
13844 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13845 (Funencodable_char_position, Fcheck_coding_systems_region)
13846 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13847 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13848 (Ffind_operation_coding_system, Fset_coding_system_priority)
13849 (Fcoding_system_eol_type): Doc fixes.
13850
138512008-05-17 Glenn Morris <rgm@gnu.org>
13852
13853 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13854
138552008-05-16 Eli Zaretskii <eliz@gnu.org>
13856
13857 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13858 and st_gid.
13859
13860 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13861 HAVE_WINDOW_SYSTEM is not defined.
13862
13863 * xfaces.c (merge_face_ref, merge_face_vectors)
13864 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13865 HAVE_WINDOW_SYSTEM is defined.
13866 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13867
138682008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13869
13870 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13871
138722008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13873
13874 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13875
138762008-05-15 Kenichi Handa <handa@m17n.org>
13877
13878 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13879 preference.
13880
138812008-05-15 Glenn Morris <rgm@gnu.org>
13882
13883 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13884
138852008-05-15 Chong Yidong <cyd@stupidchicken.com>
13886
13887 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13888 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13889
13890 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13891
138922008-05-15 Kenichi Handa <handa@m17n.org>
13893
13894 * ftfont.c (ftfont_list): Downcase family name to check generic
13895 families.
13896
13897 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13898 font-spec for QCfont value.
13899
13900 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13901 buffer. Check the return value of it.
13902
139032008-05-14 Jason Rumney <jasonr@gnu.org>
13904
13905 * w32term.c (w32_get_glyph_overhangs): Remove.
13906 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13907
139082008-05-14 Kenichi Handa <handa@m17n.org>
13909
13910 * font.c (font_prop_validate): Make nil a valid value.
13911 (font_clear_cache): Check if the cached vector of entities is nil
13912 or not.
13913
139142008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13915
13916 * emacs.c (main_thread): Conditionalize on
13917 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13918 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13919
13920 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13921 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13922 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13923
139242008-05-14 Kenichi Handa <handa@m17n.org>
13925
13926 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13927 has no corresponding coding system.
13928
139292008-05-14 Jason Rumney <jasonr@gnu.org>
13930
13931 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13932
13933 * w32font.h (w32font_open_internal): Update declaration.
13934
13935 * w32font.c (w32font_open_internal): Change last argument from
13936 w32font_info struct to font object. Fill in font object from
13937 font_entity. Get Outline metrics if possible. Use them to
13938 calculate underline position and thickness. Use xlfd name as name
13939 property. Don't set codepage.
13940 (w32font_open): Pass font_object to w32font_open_internal. Don't
13941 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13942 (w32font_draw): Use s->font.
13943 (clear_cached_metrics): Don't clear non-existent blocks.
13944
13945 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13946 font was not found.
13947 (x_draw_glyph_string): Use underline position and thickness from font.
13948
13949 * w32uniscribe.c (uniscribe_open): Pass font_object to
13950 w32font_open_internal.
13951
139522008-05-14 Kenichi Handa <handa@m17n.org>
13953
13954 These changes are to delete all legacy font-handling codes, and
13955 make Emacs use only font-backends.
13956
13957 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13958 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13959
13960 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13961
13962 * charset.h (Vcharset_non_preferred_head)
13963 (Vcurrent_iso639_language): Extern them.
13964
13965 * charset.c (Vcharset_non_preferred_head): New variable.
13966 (Vcurrent_iso639_language): New variable.
13967 (syms_of_charset): Declare it as a Lisp variable.
13968 (char_charset): Don't check non preferred charsets. As a last
13969 resort, return charset_unicode.
13970 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13971
13972 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13973 conditionals. Don't check enable_font_backend. Delete all codes
13974 used only when USE_FONT_BACKEND is not defined.
13975
13976 * dispextern.h (struct glyph_string): Change type of `font' to
13977 `struct font *'.
13978 (struct glyph_string): New member underline_position and
13979 underline_thickness.
13980 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13981 (struct face): Change type of `font' to `struct font *'. Remove
13982 members `font_name', `font_info_id'.
13983 (per_char_metric, encode_char): Delete externs.
13984 (calc_pixel_width_or_height): Adjust the prototype.
13985
13986 * emacs.c (enable_font_backend): Delete extern.
13987 (main): Don't set enable_font_backend. Don't check the command
13988 line argument "-disable-font-backend".
13989
13990 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13991 (enum font_property_index): New members FONT_DPI_INDEX,
13992 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13993 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13994 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13995 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13996 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13997 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13998 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13999 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14000 (struct font_spec, struct font_entity): New structs.
14001 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14002 (struct font): Many members from old "struct font_info" moved to
14003 here. Members font and entity deleted.
14004 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14005 the new font-related objects.
14006 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14007 (CHECK_FONT_GET_OBJECT): Likewise.
14008 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14009 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14010 (struct font_driver): New members case_sensitive anc check. Type
14011 of the member list and open changed.
14012 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14013 (font_symbolic_width, font_find_object, font_get_spec)
14014 (font_set_lface_from_name): Delete extern.
14015 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14016
14017 * font.c: Include <strings.h>.
14018 (enable_font_backend): Delete it.
14019 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14020 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14021 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14022 (null_string): Delete it.
14023 (null_vector): Make it static.
14024 (font_family_alist): Delete it.
14025 (Qnormal): Extern it.
14026 (QCextra, QClanguage): Delete it.
14027 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14028 (font_make_spec, font_make_entity, font_make_object)
14029 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14030 the string. Callers changed.
14031 (font_pixel_size): Adjusted for the format change of font-related
14032 objects.
14033 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14034 (font_style_to_value, font_style_symbolic): New function.
14035 (build_font_family_alist): Delete it.
14036 (font_registry_charsets): Use Fassoc_string instead of
14037 assq_no_quit.
14038 (font_prop_validate_symbol): Don't return null_string.
14039 (font_prop_validate_style): Adjusted for the change of
14040 style-related values in a font vector.
14041 (font_property_table): Delete entries for QClanguage and
14042 QCantialias, add entries for QCavgwidth.
14043 (get_font_prop_index): Delete the 2nd argument FROM.
14044 (font_prop_validate): Arguments changed.
14045 (font_put_extra): Adjusted for the change of font-related objects.
14046 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14047 (font_parse_fcname, font_unparse_fcname)
14048 (font_prepare_composition): Likewise.
14049 (font_parse_family_registry): Renamed from font_merge_old_spec.
14050 (otf_open): Delete the 1st arg entity.
14051 (font_otf_capability): Adjusted for the above change.
14052 (font_score): New arg alternate_families. Adjusted for the change
14053 of font-related objects.
14054 (font_sort_entites): New arg best_only.
14055 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14056 Delete them.
14057 (font_match_p): Check alternate families.
14058 (font_find_object): Delete it.
14059 (font_check_object): New function.
14060 (font_clear_cache): Adjusted for the change of font-related objects.
14061 (font_delete_unmatched): New arg.
14062 (font_list_entities): Call font_driver->list with a spec that
14063 doesn't specify style-related properties.
14064 (font_matching_entity): Arguments changed. Caller changed.
14065 (font_open_entity): Adjusted for the change of font-related objects.
14066 (font_close_object, font_has_char, font_encode_char)
14067 (font_get_name, font_get_spec): Likewise.
14068 (font_spec_from_name, font_clear_prop, font_update_lface):
14069 New functions.
14070 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14071 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14072 (font_at): Adjusted for the change of font-related objects.
14073 (font_range): New function.
14074 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14075 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14076 (Fcopy_font_spec, Fmerge_font_spec): New function.
14077 (Ffont_family_list): Renamed from list-families.
14078 (Finternal_set_font_style_table): Arguments changed.
14079 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14080 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14081 change of font-related objects.
14082 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14083
14084 * fontset.h (struct font_info): Delete it. Most members go to
14085 struct font.
14086 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14087 (enum FONT_SPEC_INDEX): Delete it.
14088 (font_info, list_fonts_func, load_font_func, query_font_func)
14089 (set_frame_fontset_func, find_ccl_program_func)
14090 (get_font_repertory_func, new_fontset_from_font_name): Delete
14091 externs.
14092 (fontset_from_font_name): Extern it.
14093 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14094 (FONT_INFO_FROM_FACE): Deleted.
14095 (face_for_font): Adjust prototype.
14096
14097 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14098 conditionals. Don't check enable_font_backend. Delete all codes
14099 used only when USE_FONT_BACKEND is not defined.
14100 (get_font_info_func, list_font_func, load_font_func)
14101 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14102 (get_font_repertory_func): Delete them.
14103 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14104 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14105 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14106 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14107 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14108 (fontset_compare_rfontdef): New function.
14109 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14110 rfont-defs by qsort. Adjusted for the change of font-group vector.
14111 (load_font_get_repertory): Deleted.
14112 (fontset_find_font): Use new macros to ref/set elements of
14113 font-def and rfont-def.
14114 (fontset_font): Fix the timing of remembering that no font for C.
14115 (free_face_fontset): Do nothing if the face has no fontset.
14116 (face_suitable_for_char_p): Use new macros to ref/set elements of
14117 rfont-def.
14118 (face_for_char): Likewise. Call face_for_char with font_object.
14119 (fs_load_font): Delete. Delete #pragma surrounding it.
14120 (fs_query_fontset): Use strcasecmp instead of strcmp.
14121 (generate_ascii_font_name): Adjusted for the format change of
14122 font-spec.
14123 (Fset_fontset_font): Likewise. Use new macros to set elements of
14124 font-def.
14125 (Fnew_fontset): Use font_unparse_xlfd to generate
14126 FONTSET_ASCII (fontset).
14127 (new_fontset_from_font_name): Deleted.
14128 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14129 a fontset is already created for the font. FIx updating of
14130 Vfontset_alias_alist.
14131 (fontset_ascii_font): Deleted.
14132 (Ffont_info): Adjusted for the format change of font-spec.
14133 (Finternal_char_font): Likewise.
14134 (Ffontset_info): Likewise.
14135 (syms_of_fontset): Don't check load_font_func.
14136
14137 * fns.c (internal_equal): Handle PREV_FONT.
14138
14139 * frame.h: Delete USE_FONT_BACKEND conditional.
14140
14141 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14142 conditionals. Don't check enable_font_backend. Delete all codes
14143 used only when USE_FONT_BACKEND is not defined.
14144 (x_set_font): Call x_new_font, not x_new_fontset2.
14145 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14146 already set for the frame.
14147
14148 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14149 a font-entity by font_make_entity. Use font_intern_prop instead
14150 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14151 font property. If a font is scalable, set avgwidth property to 0.
14152 Set font-entity property by font_put_extra.
14153 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14154 (ffont_driver): Adjusted for the change of struct font_driver.
14155 (ftfont_spec_pattern): New function.
14156 (ftfont_list): Return a list, not vector.
14157 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14158 (ftfont_list_family): Don't downcase names.
14159 (ftfont_free_entity): Deleted.
14160 (ftfont_open): Return a font-object. Adjusted for the change of
14161 struct font. Get underline_thickness and underline_position from
14162 font property. Don't update dpyinfo->smallest_font_height and
14163 dpyinfo->smallest_char_width.
14164 (ftfont_close): Don't free `struct font'.
14165 (ftfont_has_char): Adjusted for the format change of font-entity.
14166 (ftfont_encode_char, ftfont_text_extents): Likewise.
14167
14168 * ftxfont.c (ftxfont_list): Return a list, not vector.
14169 (ftxfont_open): Return a font-object. Adjusted for the change of
14170 struct font. Get underline_thickness and underline_position from
14171 font property. Don't update dpyinfo->smallest_font_height and
14172 dpyinfo->smallest_char_width.
14173 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14174 (ftxfont_draw): Adjusted for the change of struct font.
14175
14176 * image.c (image_ascent): Don't include "charset.h". Include
14177 "character.h" and "font.h".
14178
14179 * lisp.h (enum pvec_type): New member PREV_FONT.
14180 (Fassoc_string): EXFUN it.
14181
14182 * print.c: Include font.h.
14183 (print_object): Handle font-related objects.
14184
14185 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14186 conditionals. Don't check enable_font_backend. Delete all codes
14187 used only when USE_FONT_BACKEND is not defined.
14188 (handle_auto_composed_prop): Do nothing if it->f is not on a
14189 window system. Check how many following characters can be
14190 displayed by the same font.
14191 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14192 'struct font *'.
14193 (get_char_face_and_encoding): Assign the whole encoding task to
14194 the `encode-char' method of a font driver.
14195 (fill_composite_glyph_string): Adjusted for the change of `struct
14196 face' and `struct glyph_string'.
14197 (fill_glyph_string): Likewise.
14198 (get_per_char_metric): Arguments changed.
14199 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14200 and `struct glyph_string'.
14201 (produce_stretch_glyph, calc_line_height_property)
14202 (x_produce_glyphs): Likewise.
14203
14204 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14205 conditionals. Don't check enable_font_backend. Delete all codes
14206 used only when USE_FONT_BACKEND is not defined. Use
14207 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14208 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14209 (Qp): Extern them.
14210 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14211 Deleted.
14212 (struct font_name): Deleted.
14213 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14214 (compare_fonts_by_sort_order): New function.
14215 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14216 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14217 Deleted.
14218 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14219 compare_fonts_by_sort_order.
14220 (Fx_font_family_list): Call Ffont_family_list.
14221 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14222 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14223 (face_symbolic_slant, face_symbolic_swidth)
14224 (split_font_name_into_vector, build_font_name_from_vector)
14225 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14226 (font_rescale_ratio, split_font_name, build_font_name)
14227 (free_font_names, sort_fonts, x_face_list_fonts)
14228 (face_font_available_p, sorted_font_list, cmp_font_names)
14229 (font_list_1, concat_font_list, font_list, remove_duplicates):
14230 Deleted.
14231 (Fx_list_fonts): Use Ffont_list.
14232 (LFACE_AVGWIDTH): Deleted.
14233 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14234 by FONTP.
14235 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14236 (set_lface_from_font_name): Delete it.
14237 (set_lface_from_font): Renamed from
14238 set_lface_from_font_and_fontset. Caller changed. Don't set
14239 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14240 for face.
14241 (merge_face_vectors): Copy font-spec if necessary.
14242 Clear properties of the font-spec if necessary.
14243 (merge_face_ref): Clear properties of the font-spec if necessary.
14244 (Finternal_set_lisp_face_attribute): Likewise.
14245 (set_font_frame_param): Use font_load_for_lface to load a
14246 font-object, and call Fmodify_frame_parameters with it.
14247 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14248 font name by Ffont_xlfd_name.
14249 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14250 QCslant, and QCwidth.
14251 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14252 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14253 Compare fonts by EQ.
14254 (lookup_non_ascii_face): Deleted.
14255 (face_for_font): The 2nd argument changed.
14256 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14257 Check atomic font properties by case insensitive.
14258 (realize_non_ascii_face): Set face->overstrike correctly.
14259 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14260 (dump_realized_face): Get font name from
14261 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14262
14263 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14264 conditionals. Don't check enable_font_backend. Delete all codes
14265 used only when USE_FONT_BACKEND is not defined.
14266 (xic_create_xfontset): Original code deleted and renamed from
14267 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14268 (x_make_gc): Don't set GCFont in GCs.
14269 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14270 opened by "fixed".
14271 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14272 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14273 get_font_repertory_func.
14274
14275 * xfont.c: Include <stdlib.h> and "ccl.h".
14276 (struct xfont_info): New structure.
14277 (xfont_query_font): Deleted.
14278 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14279 moved from xterm.c.
14280 (xfont_driver): Adjusted for the change of struct font_driver.
14281 (compare_font_names): New function.
14282 (xfont_list_pattern): Sort font names case insensitively. Make
14283 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14284 (xfont_list): Return a list, not vector.
14285 (xfont_match): If the font doesn't have QCname property, generate
14286 a name from the other font properties.
14287 (xfont_open): Return a font-object. Adjusted for the change of
14288 struct font. Get underline_thickness and underline_position from
14289 font property. Don't update dpyinfo->smallest_font_height and
14290 dpyinfo->smallest_char_width.
14291 (xfont_close): Don't free struct font.
14292 (xfont_prepare_face): Adjusted for the change of struct font.
14293 (xfont_done_face): Deleted.
14294 (xfont_has_char): Adjusted for the change of struct font.
14295 (xfont_encode_char, xfont_draw): Likewise.
14296 (xfont_check): New function.
14297
14298 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14299 callback function.
14300 (xftfont_match): Adjusted for the format change of font-entity.
14301 (xftfont_open): Adjusted for the format change of font-entity and
14302 font-object. Adjusted for the change of struct font. Return a
14303 font-object. Don't update dpyinfo->smallest_font_height and
14304 dpyinfo->smallest_char_width.
14305 (xftfont_close): Block input while calling XftFontClose.
14306 (xftfont_prepare_face): Don't block input while calling
14307 xftfont_get_colors. Adjusted for the change of struct font.
14308 (xftfont_shape): Return value of error case fixed.
14309
14310 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14311
14312 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14313 conditionals.
14314 (FONT_WIDTH): Return (f)->max_width.
14315 (struct x_display_info): Delete member `font'.
14316 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14317 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14318 (struct x_output): Change type of `font' to `struct font *'.
14319
14320 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14321 conditionals. Don't check enable_font_backend. Delete all codes
14322 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14323 (x_per_char_metric, x_encode_char): Deleted.
14324 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14325 (x_compute_glyph_string_overhangs): Adjusted for the change of
14326 `struct face'.
14327 (x_draw_glyph_string_foreground)
14328 (x_draw_composite_glyph_string_foreground): Likewise.
14329 (x_draw_glyph_string): Likewise. Use font->underline_position and
14330 font->underline_thickness.
14331 (x_new_font): Renamed from x_new_fontset2.
14332 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14333 (x_check_font): Call `check' method of a font driver.
14334 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14335 (x_query_font, x_get_font_repertory): Deleted.
14336 (x_find_ccl_program): Renamed and moved to xfont.c.
14337 (x_redisplay_interface): Adjusted for the change of `struct
14338 redisplay_interface'.
14339
14340 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14341 conditionals. Don't check enable_font_backend. Delete all codes
14342 used only when USE_FONT_BACKEND is not defined. Surround non-used
14343 code by "#ifdef OLD_FONT" and "endif".
14344 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14345
14346 * w32font.h (struct w32font_info): New member.
14347 (FONT_COMPAT): New macro.
14348 (w32font_open_internal): Prototype adjusted.
14349
14350 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14351 OLD_FONT" and "endif".
14352
14353 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14354 conditionals. Don't check enable_font_backend. Delete all codes
14355 used only when USE_FONT_BACKEND is not defined.
14356 (w32font_open): Return a font-object. Make a font-object by
14357 font_make_object. Adjusted for the change of struct w32font_info.
14358 (w32font_close): Don't free struct font. Adjusted for the change
14359 of struct w32font_info.
14360 (w32font_encode_char, w32font_text_extents, w32font_draw):
14361 Adjusted for the change of struct w32font_info.
14362 (w32font_draw): Likewise.
14363 (w32font_list_internal): Return a list, not vector.
14364 (w32font_open_internal): Change the 4th arg to font-object.
14365 Adjusted for the change of struct w32font_info and font-object format.
14366 (add_font_name_to_list): Don't downcase names.
14367 (w32_enumfont_pattern_entity): Make a font-entity by
14368 font_make_entity. Adjusted for the format change of font-entity.
14369 Use FONT_SET_STYLE to set a style-related font property. If a
14370 font is scalable, set avgwidth property to 0. Set font-entity
14371 property by font_put_extra.
14372 (font_matches_spec): Adjusted for the format change of font-entity.
14373 (w32_weight_table, w32_decode_weight): New variables.
14374 (w32_encode_weight): New function.
14375 (fill_in_logfont): Adjusted for the format change of font-spec.
14376 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14377 weight value.
14378 (w32font_driver): Adjusted for the change of struct font_driver.
14379
14380 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14381 conditionals. Don't check enable_font_backend. Surround non-used
14382 code by "#ifdef OLD_FONT" and "endif".
14383 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14384 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14385
14386 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14387 conditionals. Don't check enable_font_backend. Delete all codes
14388 used only when USE_FONT_BACKEND is not defined. Surround non-used
14389 code by "#ifdef OLD_FONT" and "endif".
14390
14391 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14392 (uniscribe_open): Return value changed to font-object.
14393 Adjusted for the format change of font-object.
14394 (uniscribe_otf_capability): Adjusted for the change of struct font.
14395 (add_opentype_font_name_to_list): Don't downcase names.
14396 (uniscribe_font_driver): Adjusted for the change of struct
14397 font_driver.
14398
143992008-05-13 Chong Yidong <cyd@stupidchicken.com>
14400
14401 * dispnew.c (update_frame_1): Check if tty output is still valid
14402 before flushing it.
14403
144042008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14405
14406 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14407 to Gtk+ menus.
14408
144092008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14410
14411 * dired.c (file_name_completion): Tweak the code so as to always do it
14412 in a single pass. Tighten the scope of some variables.
14413
14414 * dired.c (Qdefault_directory): New var.
14415 (file_name_completion): Use it instead of Fexpand_file_name.
14416 (syms_of_dired): Initialize it.
14417
144182008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14419
14420 * fileio.c (double_dollars): Remove dead code.
14421
144222008-05-10 Eli Zaretskii <eliz@gnu.org>
14423
14424 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14425 Mention w32-get-true-file-attributes in doc string.
14426
14427 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14428
144292008-05-09 Glenn Morris <rgm@gnu.org>
14430
14431 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14432 2008-04-23.
14433
144342008-05-09 Eli Zaretskii <eliz@gnu.org>
14435
14436 Support for reporting owner and group of each file on MS-Windows:
14437 * dired.c (stat_uname, stat_gname): New functions, with special
14438 implementation for w32.
14439 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14440
14441 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14442 (dflt_group_name): New static variable.
14443 (dflt_group): Rename from the_group.
14444 (init_user_info): Init dflt_group fields. Get user's group name
14445 from LookupAccountSid.
14446 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14447 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14448 New initialization states.
14449 (globals_of_w32): Initialize them to zero. Initialize the default
14450 group name to "None".
14451 (GetFileSecurity_Name): New global var, the name of the function
14452 to call for GetFileSecurity.
14453 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14454 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14455 (get_file_security, get_security_descriptor_owner)
14456 (get_security_descriptor_group, is_valid_sid)
14457 (get_file_security_desc, get_rid, get_name_and_id)
14458 (get_file_owner_and_group): New functions.
14459 (stat): Use get_file_security_desc and get_file_owner_and_group to
14460 report the owner and primary group of each file. Don't ignore the
14461 high 32 bits of file's size, now that st_size is 64-bit wide.
14462 Fix test when to get true file attributes.
14463 (init_user_info): Use get_rid instead of equivalent inline code.
14464 (fstat): Don't ignore the high 32 bits of file's size.
14465
144662008-05-09 Chong Yidong <cyd@stupidchicken.com>
14467
14468 * image.c (png_load): Use correct bit-depth for setting background
14469 color.
14470
144712008-05-08 Eli Zaretskii <eliz@gnu.org>
14472
14473 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14474 epa-hook.elc.
14475
144762008-05-08 Juanma Barranquero <lekktu@gmail.com>
14477
14478 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14479
144802008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14481
14482 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14483 because the original parameters are in pure storage now.
14484 (mac_window): Remove unused params. Update callers.
14485
144862008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14487
14488 * lread.c (substitute_object_recurse): Use lower-level primitives.
14489 Don't signal errors when traversing sub-char-tables.
14490 Don't loop over all the possible characters when traversing char-tables.
14491
14492 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14493 just like we do in print.c.
14494
144952008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14496
14497 * minibuf.c (Ftry_completion): Remove code left over from when we used
14498 scmp instead of Fcompare_strings.
14499
145002008-05-04 Juanma Barranquero <lekktu@gmail.com>
14501
14502 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14503
145042008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14505
14506 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14507 Create bitmap context in native byte order.
14508
14509 * macterm.c (XDrawLine)
14510 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14511 context in native byte order.
14512
145132008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14514
14515 * config.in: Regenerate.
14516
14517 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14518 New definitions for Image I/O support.
14519 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14520 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14521 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14522 (mac_data_provider_release_data, image_load_image_io)
14523 [USE_MAC_IMAGE_IO]: New functions.
14524 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14525 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14526 (init_image_func_pointer) [MAC_OSX]: Remove function.
14527 (image_load_quartz2d) [MAC_OSX]: Check availability of
14528 CGImageCreateWithPNGDataProvider at compile time.
14529 Use lowercase `false' for boolean constant.
14530 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14531 Use image_load_image_io.
14532 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14533 Don't check MyCGImageCreateWithPNGDataProvider.
14534 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14535 Don't call init_image_func_pointer.
14536
14537 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14538
14539 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14540 Make variable non-static.
14541 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14542 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14543
14544 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14545 (RED_FROM_ULONG): Mask off higher bits.
14546 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14547
14548 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14549 Include AvailabilityMacros.h.
14550 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14551 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14552
145532008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14554
14555 * chartab.c (Fset_char_table_range): If range is t, really set all
14556 chars to that value.
14557
145582008-05-03 Eli Zaretskii <eliz@gnu.org>
14559
14560 * dired.c (Ffile_attributes): Don't allow the device number become
14561 negative.
14562
145632008-05-02 Daiki Ueno <ueno@unixuser.org>
14564
14565 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14566
145672008-05-02 Juri Linkov <juri@jurta.org>
14568
14569 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14570 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14571 DEFAULT argument as a list of default values in docstrings.
14572
145732008-05-01 Chong Yidong <cyd@stupidchicken.com>
14574
14575 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14576
145772008-05-01 Martin Rudalics <rudalics@gmx.at>
14578
14579 * dispnew.c (change_frame_size_1): Preserve small windows when
14580 shrinking frames by calling set_window_height|width with third
14581 arg 2.
14582
14583 * window.h (struct window): Replace field too_small_ok by field
14584 resize_proportionally.
14585
14586 * window.c (make_window): Initialize resize_proportionally.
14587 (enlarge_window): Temporarily set resize_proportionally to make
14588 sure that shrink_windows does scale the window proportionally.
14589 (shrink_windows): When window has resize_proportionally set try
14590 to shrink it proportionally by stealing from other windows.
14591 (struct saved_window, Fset_window_configuration)
14592 (compare_window_configurations): Handle resize_proportionally.
14593 (WINDOW_TOTAL_SIZE): New macro.
14594 (window_min_size, shrink_windows, size_window): Use it.
14595 (check_min_window_sizes): Remove. Invalid values of
14596 window-min-height|width are handled by window_min_size_2 now.
14597 (size_window, Fsplit_window, enlarge_window)
14598 (adjust_window_trailing_edge, grow_mini_window): Don't call
14599 check_min_window_sizes.
14600 (window_min_size_2, window_min_size_1, window_min_size):
14601 New argument safe_p for retrieving "safe" minimum sizes.
14602 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14603 (adjust_window_trailing_edge, grow_mini_window):
14604 Adjust arguments of window_min_size... functions.
14605 (shrink_windows): Argument min_size removed. New argument
14606 safe_p allows shrinking windows to their safe minimum sizes.
14607 Calculate minimum size and decide whether a window shall be
14608 deleted for each window individually.
14609 (size_window): When nodelete_p equals 2, tell shrink_windows to
14610 delete windows only if their new minimum size is no more safe.
14611 (shrink_window_lowest_first): Call window_min_size_1 to make
14612 sure to preserve modeline of bottom-most window when resizing
14613 the minibuffer.
14614 (Fset_window_configuration, Fcurrent_window_configuration)
14615 (compare_window_configurations): Do not handle
14616 window-min-height|width any more.
14617 (syms_of_window): Clarify window-min-height|width doc-strings.
14618
146192008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14620
14621 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14622 some more. Copy some of the code from Ftry_completions.
14623 Remove special case code that dates back to initial revision when the
14624 slash was only added when necessary and that can't trigger nowadays.
14625
146262008-04-27 Kenichi Handa <handa@m17n.org>
14627
14628 * font.c (font_prop_validate): Signal `error' instead of `font'.
14629
146302008-04-29 Jason Rumney <jasonr@gnu.org>
14631
14632 * w32fns.c (Fw32_battery_status): New defun.
14633 (syms_of_w32fns): Defsubr it.
14634
146352008-04-28 Andreas Schwab <schwab@suse.de>
14636
14637 * dired.c (file_name_completion): Fix another mixing of encoded
14638 and decoded names.
14639
146402008-04-28 Juanma Barranquero <lekktu@gmail.com>
14641
14642 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14643
146442008-04-27 Juanma Barranquero <lekktu@gmail.com>
14645
14646 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14647
146482008-04-27 Andreas Schwab <schwab@suse.de>
14649
14650 * dired.c (file_name_completion): Fix inappropriate mixing of
14651 encoded and decoded names.
14652
14653 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14654
14655 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14656
146572008-04-26 Eli Zaretskii <eliz@gnu.org>
14658
14659 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14660 2008-03-31, it's not needed anymore with `struct stat' definition
14661 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14662 for the same reasons.
14663
146642008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14665
14666 * m/sparc.h: Additional redefinitions for GNU/Linux.
14667
146682008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14669
14670 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14671 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14672 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14673 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14674 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14675 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14676 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14677 Likewise.
14678
14679 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14680 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14681 (mac_ax_number_of_characters): Add externs.
14682 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14683 [USE_MAC_TSM]: Likewise.
14684 (mac_handle_text_input_event) [MAC_OSX]:
14685 Handle kEventTextInputOffsetToPos for no active input area case.
14686 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14687 (mac_handle_document_access_event)
14688 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14689 (install_application_handler) [MAC_OSX]: Register handlers for
14690 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14691 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14692 Register mac_handle_document_access_event.
14693
14694 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14695 Make functions non-static.
14696
146972008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14698
14699 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14700 (read_file_name_completion_ignore_case, insert_default_directory)
14701 (Qdefault_directory): Move to minibuffer.el.
14702 (Fread_file_name): Call the new `read-file-name' instead.
14703
147042008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14705
14706 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14707 Make function non-static.
14708 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14709 Remove function.
14710 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14711 Move to mactoolbox.c.
14712 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14713
14714 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14715 (mac_rect_make): New macro.
14716
14717 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14718 instead of float.
14719 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14720 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14721 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14722 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14723 CGRectMake.
14724 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14725 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14726 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14727 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14728 instead of WindowRef in argument type.
14729 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14730 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14731 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14732 instead of DISPLAY. All uses changed.
14733 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14734 (x_calc_absolute_position): Simplify so as not to use
14735 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14736
14737 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14738 instead of WindowRef in argument type.
14739 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14740 [TARGET_API_MAC_CARBON]: Remove externs.
14741 (create_apple_event, mac_event_parameters_to_lisp)
14742 [TARGET_API_MAC_CARBON]: Add externs.
14743
14744 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14745 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14746 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14747 is clicked.
14748 (x_activate_menubar): Remove extern for saved_menu_event_location.
14749 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14750 Move from mac.c.
14751
147522008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14753
14754 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14755 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14756
147572008-04-23 Jason Rumney <jasonr@gnu.org>
14758
14759 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14760 attributes only for local files.
14761
14762 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14763 default to Qlocal.
14764
147652008-04-22 Juri Linkov <juri@jurta.org>
14766
14767 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14768 read-buffer-to-switch instead of using the letter "B".
14769
147702008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14771
14772 * fileio.c (Qdefault_directory): New variable.
14773 (Fread_file_name): Use it to pass `dir' to the completion functions.
14774
147752008-04-20 Chong Yidong <cyd@stupidchicken.com>
14776
14777 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14778
147792008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14780
14781 * keyboard.c (Vpre_help_message): Remove.
14782 (show_help_echo): Remove default C code.
14783
14784 * dired.c (directory_files_internal, file_name_completion):
14785 Only call ENCODE_FILE if the string is indeed decoded.
14786
147872008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14788
14789 * Makefile.in (TOOLKIT_DEFINES): Remove.
14790 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14791
147922008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14793
14794 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14795 (mactoolbox.o): New target.
14796
14797 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14798 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14799
14800 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14801 Use mac_set_frame_window_background instead of XSetWindowBackground.
14802 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14803 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14804 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14805 instead of SetWindowTitleWithCFString.
14806 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14807 Move function to mactoolbox.c.
14808 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14809 Use mac_set_window_modified instead of SetWindowModified.
14810 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14811 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14812 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14813 FrontNonFloatingWindow. Use mac_activate_window instead of
14814 ActivateWindow. Use mac_active_non_floating_window instead of
14815 ActiveNonFloatingWindow.
14816 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14817 Use mac_show_hourglass and mac_hide_hourglass.
14818 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14819 instead of GetGlobalMouse.
14820 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14821 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14822 Use mac_bring_window_to_front instead of BringToFront.
14823 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14824 mactoolbox.c.
14825 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14826 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14827 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14828 mactoolbox.c.
14829
14830 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14831 (XtPointer): Move typedef from macmenu.c.
14832 (enum button_type): Move enum from macmenu.c.
14833 (widget_value): Move typedef from macmenu.c.
14834 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14835 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14836 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14837 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14838 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14839 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14840 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14841 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14842 (Selection): Move typedef from macselect.c.
14843 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14844 macterm.c.
14845 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14846 (mac_is_window_collapsed, mac_bring_window_to_front)
14847 (mac_send_window_behind, mac_hide_window, mac_show_window)
14848 (mac_collapse_window, mac_front_non_floating_window)
14849 (mac_active_non_floating_window, mac_activate_window)
14850 (mac_move_window_structure, mac_move_window, mac_size_window)
14851 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14852
14853 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14854 (enum mac_menu_kind): Move enum to mactoolbox.c.
14855 (min_menu_id): Move variable to mactoolbox.c.
14856 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14857 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14858 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14859 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14860 [TARGET_API_MAC_CARBON]: Likewise.
14861 (XtPointer): Move typedef to macgui.h.
14862 (enum button_type): Move enum to macgui.h.
14863 (widget_value): Move typedef to macgui.h.
14864 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14865 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14866 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14867 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14868 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14869 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14870 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14871 (popup_activated_flag): Make variable non-static.
14872 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14873 (add_menu_item, fill_menu, dispose_menus):
14874 Move functions to mactoolbox.c.
14875 (restore_show_help_function, menu_target_item_handler)
14876 (install_menu_target_item_handler, mac_handle_dialog_event)
14877 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14878 [TARGET_API_MAC_CARBON]: Likewise.
14879 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14880 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14881 (find_and_call_menu_selection, name_is_separator): Make function
14882 non-static.
14883 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14884 to mactoolbox.c.
14885 (set_frame_menubar): Don't call install_menu_quit_handler.
14886 (menu_item_selection): New variable.
14887 (mac_menu_show): Use create_and_show_popup_menu.
14888 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14889 selection but set variable menu_item_selection. All uses changed.
14890 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14891 Call install_menu_quit_handler. Move to mactoolbox.c.
14892
14893 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14894 (Selection): Move typedef to macgui.h.
14895 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14896 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14897 Make variables non-static.
14898 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14899 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14900 Make functions non-static.
14901 (Vmac_service_selection) [MAC_OSX]: Likewise.
14902 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14903 (mac_valid_selection_target_p, mac_clear_selection)
14904 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14905 (mac_put_selection_value, mac_selection_has_target_p)
14906 (mac_get_selection_value, mac_get_selection_target_list)
14907 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14908 Move functions to mactoolbox.c.
14909 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14910 Likewise.
14911 (copy_scrap_flavor_data, mac_handle_service_event)
14912 (install_service_handler) [MAC_OSX]: Likewise.
14913 (syms_of_macselect) <Vmac_dnd_known_types>:
14914 Use mac_dnd_default_known_types.
14915
14916 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14917 Move to mactoolbox.c.
14918 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14919 (Fx_selection_owner_p): Add EXFUN.
14920 (install_window_handler, remove_window_handler, XSetWindowBackground):
14921 Remove externs.
14922 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14923 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14924 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14925 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14926 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14927 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14928 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14929 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14930 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14931 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14932 (mac_valid_selection_target_p, mac_clear_selection)
14933 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14934 (mac_put_selection_value, mac_selection_has_target_p)
14935 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14936 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14937 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14938 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14939 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14940 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14941 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14942 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14943 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14944
14945 * mactoolbox.c: New file.
14946
149472008-04-18 Jason Rumney <jasonr@gnu.org>
14948
14949 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14950
149512008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14952
14953 * character.c (Fmultibyte_char_to_unibyte):
14954 Return latin1 chars unchanged.
14955
14956 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14957 relocated if it points to `name'.
14958
149592008-04-17 Kenichi Handa <handa@m17n.org>
14960
14961 * data.c (Faset): Allow setting a multibyte character in an
14962 ASCII-only unibyte string.
14963
14964 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14965
149662008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14967
14968 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14969 done in config.h.
14970
149712008-04-16 Juanma Barranquero <lekktu@gmail.com>
14972
14973 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14974 (Fchar_direction): Add usage in the docstring.
14975
149762008-04-15 Chong Yidong <cyd@stupidchicken.com>
14977
14978 * keyboard.c (read_key_sequence): Remove always-true checks.
14979
149802008-04-14 Jason Rumney <jasonr@gnu.org>
14981
14982 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14983 compatibility struct, for better underline positioning.
14984
149852008-04-13 David Hansen <david.hansen@gmx.net>
14986
14987 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14988 string.
14989
149902008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14991
14992 * m/hp800.h (XUINT, XSET): Remove.
14993
149942008-04-12 Juanma Barranquero <lekktu@gmail.com>
14995
14996 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14997 previous change.
14998
149992008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15000
15001 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15002 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15003
150042008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15005
15006 * keymap.h (map_keymap_canonical): Declare.
15007 * xmenu.c (single_keymap_panes): Use it.
15008
150092008-04-11 Glenn Morris <rgm@gnu.org>
15010
15011 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15012 set the target's value to that of the alias.
15013
150142008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15015
15016 * term.c (set_tty_color_mode): Left over typo.
15017
150182008-04-10 Michael Albinus <michael.albinus@gmx.de>
15019
15020 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15021 only after check for file name handler functions. Signal, when
15022 native functionality is not supported.
15023 (syms_of_fileio): Declare it unconditionally.
15024
150252008-04-10 Jason Rumney <jasonr@gnu.org>
15026
15027 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15028 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15029
15030 * w32.c (logon_network_drive): Also logon to remote drives that
15031 are mapped to drive letters.
15032
150332008-04-10 Glenn Morris <rgm@gnu.org>
15034
15035 * xdisp.c (truncate-partial-width-windows): Doc fix.
15036
150372008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15038
15039 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15040 Move functions to minibuffer.el.
15041 (syms_of_fileio): Don't declare them.
15042
150432008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15044
15045 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15046 (syms_of_minibuf): Remove its initialization.
15047
15048 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15049
150502008-04-09 Juanma Barranquero <lekktu@gmail.com>
15051
15052 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15053
150542008-04-09 Jason Rumney <jasonr@gnu.org>
15055
15056 * makefile.w32-in (distclean): Delete makefile too.
15057 (maintainer-clean): New target.
15058
15059 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15060
15061 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15062 for new font backend and composite cases.
15063
150642008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15065
15066 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15067 Most of the code moved to run_timers.
15068 (do_pending_atimers): Call run_timers.
15069 (run_timers): New function.
15070
15071 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15072 run atimers.
15073
15074 * process.c (wait_reading_process_output): The same as above.
15075
150762008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15077
15078 * minibuf.c (last_exact_completion): Remove variable.
15079 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15080 (complete_and_exit_1, complete_and_exit_2)
15081 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15082 (Fdisplay_completion_list, display_completion_list_1)
15083 (Fminibuffer_completion_help, Fself_insert_and_exit)
15084 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15085 minibuffer.el.
15086 (syms_of_minibuf): Remove corresponding initializations.
15087
15088 * keyboard.c (Qdeactivate_mark): New var.
15089 (command_loop_1): Use it to call `deactivate-mark'.
15090 (syms_of_keyboard): Initialize it.
15091
15092 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15093 to another frame.
15094 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15095 Don't call set_tty_color_mode.
15096 (store_frame_param): Reset previous_frame rather than call
15097 set_tty_color_mode.
15098 * term.c (set_tty_color_mode): Rewrite.
15099 * dispextern.h (set_tty_color_mode): New type.
15100 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15101
151022008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15103
15104 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15105 for generic chars, which do not exist any more in emacs-unicode.
15106
151072008-04-08 Michael Albinus <michael.albinus@gmx.de>
15108
15109 * coding.c (detect_coding_emacs_mule)
15110 (Ffind_operation_coding_system): Fix typo.
15111
151122008-04-08 Jason Rumney <jasonr@gnu.org>
15113
15114 * w32uniscribe.c (SNAME): Extract only symbol name.
15115
15116 * w32font.h (struct w32_metric_cache): New struct.
15117 (w32font_info): Use it.
15118 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15119 (CACHE_BLOCKSIZE): New constants.
15120
15121 * w32font.c (Qja, Qko, Qzh): New symbols.
15122 (syms_of_w32font): Initialise them.
15123 (font_matches_spec): Use them to filter by language.
15124 (recompute_cached_metrics): Remove function.
15125 (compute_metrics, clear_cached_metrics): New functions.
15126 (w32font_encode_char): Use them to manage metric cache.
15127 (w32font_text_extents): Cache metrics for all glyphs on demand.
15128 Delay converting glyph indices to WORD until needed.
15129 (w32font_open_internal): Initialize metric cache to empty.
15130 (registry_to_w32_charset): Charset should always be a symbol.
15131 (fill_in_logfont, list_all_matching_fonts): Family should
15132 always be a symbol.
15133
151342008-04-06 Jason Rumney <jasonr@gnu.org>
15135
15136 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15137 Give up if glyph indices not supported. Use uniscribe obtained
15138 ABC widths for individual metrics. Map glyph clusters back to
15139 characters using fClusterStart flag. Return number of glyphs
15140 produced, not chars processed.
15141 (uniscribe_shape): Map char at FROM to current glyph.
15142
151432008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15144
15145 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15146 Use SetMenuItemHierarchicalMenu.
15147
151482008-04-05 Jason Rumney <jasonr@gnu.org>
15149
15150 * image.c (pbm_load): Allow color values up to 65535.
15151 Throw an error if max_color_idx is outside the supported range.
15152 Report an error when image size is invalid.
15153 Read two bytes at a time when raw images have max_color_idx above 255.
15154
aac0c6e3
MR
151552008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15156
15157 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15158 append "CCL: Quitted" when the CCL program is quitted.
15159 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15160
15161 * ccl.h (struct ccl_program): New member quit_silently.
15162
151632008-04-05 Chong Yidong <cyd@stupidchicken.com>
15164
15165 * search.c (compile_pattern_1): Treat non-nil and non-string of
15166 search-spaces-regexp as nil.
15167
15168 * minibuf.c (Fassoc_string): Tweak docstring.
15169
151702008-04-05 Eli Zaretskii <eliz@gnu.org>
15171
15172 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15173 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15174 2008-03-14 to force inode be positive.
15175
15176 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15177 _S_* ones, since we now use our own sys/stat.h.
15178 (stat, fstat): Don't mangle the inode number.
15179 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15180
151812008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15182
15183 * frame.h (struct frame): Give one more bit to `visible' since we use
15184 values larger than 1 to indicate obscured frames on ttys.
15185
15186 * keymap.c (Qkeymap_canonicalize): New var.
15187 (Fmap_keymap_internal): New fun.
15188 (describe_map): Use keymap-canonicalize.
15189
15190 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15191 (Fundo_boundary): Set them.
15192 (syms_of_undo): Initialize them.
15193 (record_point): Use them instead of last_point_position*.
15194 (last_undo_buffer): Change type.
15195
151962008-04-04 Jason Rumney <jasonr@gnu.org>
15197
15198 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15199 (recompute_cached_metrics): Don't set ascent and descent per char.
15200
15201 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15202 (uniscribe_check_otf): Add GC protection before consing.
15203 Rearrange loop for counting features.
15204
152052008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15206
15207 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15208 buffer with byte-size of source buffer.
15209
152102008-04-03 Chong Yidong <cyd@stupidchicken.com>
15211
15212 * callint.c (Fcall_interactively): Handle temporary region even
15213 when shift-select-mode is off.
15214
152152008-04-03 Jason Rumney <jasonr@gnu.org>
15216
15217 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15218
152192008-04-03 Kenichi Handa <handa@m17n.org>
15220
15221 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15222 (CATEGORY_MASK_UTF_16): Likewise.
15223 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15224 binary file.
15225 (detect_coding): Add null-byte detection for a binary file.
15226 (detect_coding_system): Likewise.
15227
152282008-04-03 Jason Rumney <jasonr@gnu.org>
15229
15230 * w32uniscribe.c: New file.
15231
15232 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15233
15234 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15235
15236 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15237 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15238 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15239 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15240 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15241 (Qphonetic): New symbols.
15242 (syms_of_w32font): Initialize them.
15243 (font_supported_scripts): Use them.
15244 (w32font_list_family): List all charsets.
15245 (w32font_text_extents, recompute_cached_metrics): Fix metric
15246 calculations.
15247 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15248 Give opentype fonts their own format.
15249 (font_matches_spec): New arguments backend and logfont.
15250 Handle :otf spec for uniscribe backend.
15251 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15252 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15253
15254 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15255 font backend.
15256 (globals_of_w32fns): Initialize uniscribe font backend.
15257
15258 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15259 dependencies.
15260 (w32uniscribe.$(O)): New file to build.
15261 (FONT_OBJ): Include w32uniscribe.$(O).
15262 (LIBS): Add uniscribe libraries.
15263
15264 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15265
152662008-04-02 Chong Yidong <cyd@stupidchicken.com>
15267
15268 * callint.c (Vshift_select_mode): New var.
15269 (Finteractive): Document new ^ spec.
15270 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15271 is present.
15272
15273 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15274 (command_loop_1): Avoid running the direct display versions of
15275 forward-char and backward-char if shift-selection may occur.
15276 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15277 shift-translation takes place.
15278
15279 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15280 avoid clobbering by define-minor-mode.
15281
15282 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15283 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15284
15285 * syntax.c (Fforward_word): Add ^ interactive spec.
15286
15287 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15288 (Fscroll_right): Add ^ interactive spec.
15289
152902008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15291
15292 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15293
15294 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15295
15296 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15297
152982008-03-31 Juri Linkov <juri@jurta.org>
15299
15300 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15301
153022008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15303
15304 * gtkutil.c (xg_set_geometry): Fix indentation.
15305 (xg_resize_outer_widget): Remove.
15306 (x_wm_size_hint_off): Fix indentation.
15307 (xg_frame_set_char_size): Call flush_and_sync after
15308 gtk_window_resize.
15309 (x_wm_set_size_hint): Pass NULL as geometry window to
15310 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15311 Add menu bar and tool bar height to base height.
15312 (xg_update_frame_menubar, free_frame_menubar)
15313 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15314 (update_frame_tool_bar, free_frame_tool_bar):
15315 Change xg_resize_outer_widget to xg_frame_set_char_size.
15316
153172008-03-30 Michael Albinus <michael.albinus@gmx.de>
15318
15319 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15320 (Fdbus_call_method): New parameter TIMEOUT.
15321 (dbus-send-signal): Optimize UNGCPRO call.
15322
153232008-03-29 Juri Linkov <juri@jurta.org>
15324
15325 * window.c (Fdisplay_buffer): Move call to
15326 Vsplit_window_preferred_function out of conditions that check
15327 if window is eligible for vertical splitting.
15328 When Vsplit_window_preferred_function is non-nil, call it and use
15329 its non-nil return value as window. Otherwise, continue doing
15330 vertical splitting using Fsplit_window with arg horflag=nil.
15331 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15332 default value from `split-window' to nil.
15333
153342008-03-29 Juri Linkov <juri@jurta.org>
15335
15336 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15337 for interactive code letters 'b' and 'B'.
15338
153392008-03-29 Eli Zaretskii <eliz@gnu.org>
15340
15341 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15342 multibyte string.
15343
153442008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15345
15346 * keyboard.c (pending_funcalls): New var.
15347 (timer_check): Run it.
15348 (syms_of_keyboard): Initialize it.
15349 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15350 (Vdelete_terminal_functions): New vars.
15351 (syms_of_terminal): Initialize them.
15352 (Fdelete_terminal): Run delete-terminal-functions.
15353 * xdisp.c (safe_eval): Rewrite.
15354 (safe_call2): New fun.
15355 * frame.c (Qdelete_frame_functions): New var.
15356 (syms_of_frame): Initialize it.
15357 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15358 * lisp.h (safe_call2, pending_funcalls): Declare.
15359
153602008-03-28 Andreas Schwab <schwab@suse.de>
15361
15362 * indent.c (Fmove_to_column): Move declaration before statements.
15363
153642008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15365
15366 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15367 (struct frame): Use bit fields for boolean vars.
15368
15369 * process.c (server_accept_connection): Simplify naming.
15370 (emacs_get_tty_pgrp): Use SDATA.
15371
15372 * coding.c (decode_coding_object): Fix last change.
15373
153742008-03-27 Jason Rumney <jasonr@gnu.org>
15375
15376 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15377
153782008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15379
15380 * charset.c (Fdefine_charset_internal): Change the way of
15381 registering charsets in Vcharset_order_list.
15382 (syms_of_charset): Make the charset `eight-bit' supplementary.
15383
153842008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15385
15386 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15387 operations, to avoid having the difference between pointers
15388 overflow.
15389
153902008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15391
15392 * indent.c (check_display_width): New fun.
15393 (scan_for_column): Use it.
15394
15395 * data.c (syms_of_data): Mark most-positive-fixnum and
15396 most-negative-fixnum as constants.
15397
15398 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15399
15400 * indent.c (scan_for_column): Extract from current_column_1.
15401 Merge with the same code from Fmove_to_column.
15402 (current_column_1, Fmove_to_column): Use it.
15403
154042008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15405
15406 * keymap.c (map_keymap_internal): New fun.
15407 (map_keymap): Use it.
15408 (Fmap_keymap_internal): New fun.
15409 (Fmap_keymap): Remove left-out test from before make_save_value.
15410
15411 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15412
15413 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15414 Use XCAR/XCDR.
15415
15416 * process.h (struct Lisp_Process): Remove filter_multibyte.
15417 * process.c (QCfilter_multibyte): Remove.
15418 (setup_process_coding_systems): Don't use filter_multibyte.
15419 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15420 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15421 (Fset_process_filter_multibyte): Change the coding-system to
15422 approximate the previous behavior.
15423 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15424 coding-system.
15425
15426 * coding.c (decode_coding_object): When not decoding into a buffer,
15427 obey the coding system's preference of (uni|multi)byte.
15428
154292008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15430
15431 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15432 every char is changed and has a different byte-length.
15433 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15434 Fix int -> EMACS_INT.
15435
154362008-03-23 David Hansen <david.hansen@gmx.net>
15437
15438 * dbusbind.c (xd_read_message): Remove extra copying of message
15439 strings. Check for NULL `interface' or `member'.
15440
154412008-03-22 Eli Zaretskii <eliz@gnu.org>
15442
15443 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15444 cFileName a file name that includes `?' characters, use the 8+3
15445 alias in cAlternateFileName instead.
15446
154472008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15448
15449 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15450
154512008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15452
15453 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15454 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15455 work on current_buffer only instead (that was already the case
15456 for some of the code anyway).
15457 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15458 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15459 (SET_PT, SET_PT_BOTH): Adjust.
15460 * intervals.h (set_point, temp_set_point, set_point_both)
15461 (temp_set_point_both): Remove redundant declarations.
15462
154632008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15464
15465 * fileio.c (Finsert_file_contents):
15466 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15467 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15468 when buffer != current_buffer anyway.
15469
154702008-03-20 Andreas Schwab <schwab@suse.de>
15471
15472 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15473 as default.
15474
154752008-03-19 Jason Rumney <jasonr@gnu.org>
15476
15477 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15478 (syms_of_w32fns): Initialize them.
15479 (HOURGLASS_ID): New constant.
15480 (x_window_to_frame): Don't check hourglass_window.
15481 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15482 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15483 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15484 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15485 Only change the cursor if hourglass is not active.
15486 (Fx_create_frame): Initialize frame's current_cursor.
15487 (hourglass_atimer): Remove.
15488 (hourglass_started): New function.
15489 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15490 (show_hourglass): Adapt to w32, changing argument to frame.
15491
15492 * w32term.h (struct w32_output): Remove hourglass_window.
15493 Add current_cursor.
15494
15495 * eval.c (call_debugger, Fsignal):
15496 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15497 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15498 (Fexecute_extended_command, cancel_hourglass_unwind):
15499 * minibuf.c (read_minibuf):
15500 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15501
155022008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15503
15504 * window.c (run_funs): New fun.
15505 (run_window_configuration_change_hook): Use it to run the buffer-local
15506 and the global part of the hook.
15507
15508 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15509 (unwind_format_mode_line): Restore selected window.
15510 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15511
155122008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15513
15514 * editfns.c (Fchar_equal): Check they are valid characters.
15515
15516 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15517
155182008-03-17 Andreas Schwab <schwab@suse.de>
15519
15520 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15521 against a charset.
15522
15523 * lisp.h (Fbuffer_list): Declare.
15524
155252008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15526
aac0c6e3
MR
15527 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15528 handlebox_widget is != 0.
15529
155302008-03-16 Juri Linkov <juri@jurta.org>
15531
15532 * callint.c (Fcall_interactively): For interactive code letters
15533 'b' and 'B' put the buffer list into the list of default "future"
15534 values of the minibuffer.
15535
155362008-03-16 Andreas Schwab <schwab@suse.de>
15537
15538 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15539 modifiers.
15540
15541 * regex.c (re_match_2_internal): Correct matching of a charset
15542 against latin-1 characters.
15543
155442008-03-16 Kenichi Handa <handa@m17n.org>
15545
15546 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15547 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15548 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15549 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15550 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15551 CHAR_STRING_ADVANCE.
15552 (produce_chars): Fix for the case that the source and the
15553 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15554 instead of CHAR_STRING_ADVANCE.
15555 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15556 STRING_CHAR_ADVANCE.
15557
155582008-03-15 Andreas Schwab <schwab@suse.de>
15559
15560 * regex.c (re_match_2_internal): Correct matching of eight bit
15561 characters in unibyte strings.
15562
155632008-03-15 Martin Rudalics <rudalics@gmx.at>
15564
15565 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15566 at end of range when it coincides with the end of the buffer.
15567
155682008-03-14 Eli Zaretskii <eliz@gnu.org>
15569
15570 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15571
15572 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15573
155742008-03-14 Jason Rumney <jasonr@gnu.org>
15575
15576 * editfns.c (initial_tz): New variable.
15577 (syms_of_editfns): Initialize it.
15578 (Fset_time_zone_rule): Set it when first called.
15579 Use it when TZSTRING is nil.
15580
15581 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15582 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15583 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15584 (globals_of_w32fns): Initialize them.
15585 (compute_tip_xy): Use them to position tooltips.
15586
155872008-03-14 Glenn Morris <rgm@gnu.org>
15588
15589 * emacs.c (main): Revert previous change.
15590 (standard_args): Revert -internal-script back to -scriptload,
15591 and remove the long-option form.
15592
155932008-03-13 Glenn Morris <rgm@gnu.org>
15594
15595 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15596 Remove option -enable-font-backend.
15597
155982008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15599
15600 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15601
156022008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15603
15604 * xterm.c (x_connection_closed): For GTK: If this is the last
15605 terminal just exit without closing the display.
15606
156072008-03-11 Jason Rumney <jasonr@gnu.org>
15608
15609 * w32font.c (w32font_full_name): Use floor to round.
15610
f0131492 156112008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15612
15613 * sound.c (alsa_configure): Declare vol at beginning of block.
15614
15615 * fontset.c (Ffontset_info): Remove extra semicolon.
15616
156172008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15618
15619 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15620 size of resulting string.
15621
156222008-03-10 Jason Rumney <jasonr@gnu.org>
15623
15624 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15625
156262008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15627
15628 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15629 Don't pretend as if characters with display property haven't been
15630 consumed for string-replacing-string case.
15631
156322008-03-08 Kim F. Storm <storm@cua.dk>
15633
15634 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15635 (get_next_display_element, next_element_from_string)
15636 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15637
156382008-03-08 Andreas Schwab <schwab@suse.de>
15639
15640 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15641
156422008-03-06 Jason Rumney <jasonr@gnu.org>
15643
15644 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15645 when charset not specified. Only translate ANSI to unicode when
15646 font_type is truetype.
15647 (w32font_coverage_ok): New function.
15648 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15649
156502008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15651
15652 * lread.c (Fread_char): Resolve modifiers.
15653 (Fread_char_exclusive): Likewise.
15654
15655 * character.c (char_resolve_modifier_mask): New function.
15656 (char_string): Use char_resolve_modifier_mask.
15657 (Fchar_resolve_modifiers): New function.
15658 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15659 function.
15660
156612008-03-04 Jason Rumney <jasonr@gnu.org>
15662
15663 * makefile.w32-in: Always include w32font.c in the build.
15664 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15665
156662008-03-04 Andreas Schwab <schwab@suse.de>
15667
15668 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15669 (versionclean): Likewise.
15670
156712008-03-04 Juanma Barranquero <lekktu@gmail.com>
15672
15673 * .cvsignore: Add oo.
15674
156752008-03-03 Andreas Schwab <schwab@suse.de>
15676
15677 * coding.c (decode_coding_object): Inhibit gap shrinking while
15678 decoding in place.
15679
156802008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15681
15682 * w32term.c: Remove unused include "gnu.h".
15683 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15684
15685 * gnu.h: Rename to ...
15686 * emacs-icon.h: ... this.
15687 * xterm.c: Use emacs-icon.h instead of gnu.h.
15688 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15689
156902008-03-03 Juanma Barranquero <lekktu@gmail.com>
15691
15692 * w32font.c: Include math.h.
15693
156942008-03-03 Jason Rumney <jasonr@gnu.org>
15695
15696 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15697 Compute options separately.
15698 (w32font_open_internal): Set glyph_idx before caching metrics.
15699
15700 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15701 Define if system headers don't.
15702 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15703 (w32font_encode_char): Don't declare here.
15704
15705 * w32font.c (Quniscribe, QCformat): New symbols.
15706 (syms_of_w32font): Define them.
15707 (w32font_has_char): Indicate uncertainty.
15708 (w32font_encode_char): Encode as glyph point. Make static.
15709 (recompute_cached_metrics): New function.
15710 (w32font_open_internal): Use it. Set font to use glyph points
15711 initially. Set format based on type of font.
15712 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15713 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15714 on it. Set format based on information available here.
15715 (add_font_entity_to_list): Identify backend based on opentype_only.
15716
157172008-03-02 Andreas Schwab <schwab@suse.de>
15718
15719 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15720
15721 * coding.c (decode_coding_big5, produce_chars):
15722 Fix typos in last change.
15723
157242008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15725
15726 * gnu.h: New icon.
15727
157282008-03-02 Kenichi Handa <handa@m17n.org>
15729
15730 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15731 `dos', don't decode '\r' if that is the last in the source.
15732 (decode_coding_utf_16, decode_coding_emacs_mule)
15733 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15734 (decode_coding_raw_text, decode_coding_charset): Likewise.
15735 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15736
157372008-03-01 Jason Rumney <jasonr@gnu.org>
15738
15739 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15740
157412008-03-01 Kim F. Storm <storm@cua.dk>
15742
15743 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15744
157452008-03-01 Jason Rumney <jasonr@gnu.org>
15746
15747 * w32font.c (w32font_full_name): New function.
15748 (w32font_open_internal): Use it.
15749
157502008-03-01 Kim F. Storm <storm@cua.dk>
15751
15752 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15753
157542008-03-01 Jason Rumney <jasonr@gnu.org>
15755
15756 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15757
157582008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15759
15760 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15761 xg_frame_resized when the event is for the edit widget.
15762
15763 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15764
15765 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15766 set_char_size.
15767 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15768 operations on widgets here. Just set frame size if needed.
15769 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15770 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15771 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15772 the whole frame.
15773 (xg_create_tool_bar): Move attachment of the tool bar to
15774 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15775 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15776
157772008-03-01 Jason Rumney <jasonr@gnu.org>
15778
15779 * w32fns.c (w32_msg_pump): Disable debug code.
15780
157812008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15782
15783 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15784
157852008-02-29 Chong Yidong <cyd@stupidchicken.com>
15786
15787 * xdisp.c (next_overlay_string): Don't set
15788 overlay_strings_at_end_processed_p if we're currently reading from
15789 a display string.
15790
157912008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15792
15793 * xdisp.c (get_overlay_strings_1): Fix typo.
15794
157952008-02-29 Chong Yidong <cyd@stupidchicken.com>
15796
15797 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15798
157992008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15800
15801 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15802
15803 * xdisp.c (display_mode_element): Cancel the previous change.
15804 (decode_mode_spec): Likewise.
15805 (handle_auto_composed_prop): Don't make composition if it->string
15806 is a string.
15807
158082008-02-27 Kim F. Storm <storm@cua.dk>
15809
15810 * lisp.h (GLYPH): Change type from int to struct with separate char
15811 and face_id members.
15812 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15813 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15814 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15815 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15816 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15817 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15818 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15819 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15820 handle new Lisp glyph code encoding, either an integer or a cons.
15821
15822 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15823 (GLYPH_ALIAS): Delete.
15824 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15825 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15826 (GLYPH_FROM_CHAR): Replace macro by ...
15827 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15828
15829 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15830 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15831 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15832 (GLYPH_INVALID_P): New macro.
15833 (spec_glyph_lookup_face): Update prototype.
15834
15835 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15836 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15837 new glyph code encoding.
15838 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15839 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15840
15841 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15842 Adapt to new glyph type and new glyph code encoding.
15843
15844 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15845
15846 * indent.c (current_column, current_column_1, Fmove_to_column)
15847 (compute_motion): Adapt to new glyph code encoding.
15848
15849 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15850
158512008-02-27 Chong Yidong <cyd@stupidchicken.com>
15852
15853 * process.c (wait_reading_process_output): Check for window
15854 changes caused by timers.
15855 Suggested by Johan Bockgård.
15856
158572008-02-27 Glenn Morris <rgm@gnu.org>
15858
15859 * emacs.c (USAGE1): Add `--disable-font-backend'.
15860
158612008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15862
15863 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15864 is made to the buffer.
15865
158662008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15867
15868 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15869 (face_at_string_position):
15870 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15871 (face_at_string_position):
15872 * xdisp.c (display_string, next_overlay_change):
15873 * buffer.h (overlays_at):
15874 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15875 Update callers.
15876
158772008-02-26 Chong Yidong <cyd@stupidchicken.com>
15878
15879 * editfns.c (Fformat): Doc fix.
15880
158812008-02-26 Juanma Barranquero <lekktu@gmail.com>
15882
15883 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15884 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15885 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15886
158872008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15888
15889 * buffer.c (Fbuffer_swap_text): New function.
15890 (syms_of_buffer): Defsubr it.
15891
158922008-02-25 Chong Yidong <cyd@stupidchicken.com>
15893
15894 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15895
158962008-02-25 Jason Rumney <jasonr@gnu.org>
15897
15898 * w32font.c (w32font_draw): Draw one character at a time when padding.
15899
159002008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15901
15902 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15903 Handle a nil arg. Use run_window_configuration_change_hook.
15904 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15905 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15906 Use run_window_configuration_change_hook.
15907
159082008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15909
15910 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15911 1-pixel width.
15912
159132008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15914
15915 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15916 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15917 if the glyph in the font is zero pixel with.
15918
15919 * dispextern.h (struct glyph_string): New member padding_p.
15920
15921 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15922
15923 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15924
15925 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15926
15927 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15928
15929 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15930
159312008-02-25 Jason Rumney <jasonr@gnu.org>
15932
15933 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15934
159352008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15936
15937 Allow fine-grained image-cache flushing.
15938 * dispextern.h (struct image): Add `dependencies' field.
15939 (clear_image_caches): Change arg to Lisp_Object.
15940 * image.c (make_image): Initialize `dependencies' field.
15941 (clear_image_cache): Change arg to allow fine-grained flushing.
15942 Perform the flush even if image-cache-eviction-delay is nil.
15943 (clear_image_caches): Change arg to Lisp_Object.
15944 (Fclear_image_cache): Expand meaning of the argument.
15945 (mark_image): Mark `dependencies' field.
15946 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15947 (lface_hash): Use XHASH rather than XFASTINT.
15948 (face_at_buffer_position): Fix int -> EMACS_INT position.
15949 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15950 (select_frame_for_redisplay): Remove code duplication.
15951 (redisplay_internal): Adapt arg to call to clear_image_caches.
15952
159532008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15954
15955 * s/vms4-0.h:
15956 * s/vms4-2.h:
15957 * s/vms4-4.h:
15958 * s/vms5-5.h: Remove, unused.
15959
15960 * s/irix5-2.h:
15961 * s/irix6-0.h:
15962 * s/riscos5.h:
15963 * s/mach-bsd4-3.h:
15964 * m/mips4.h: Remove files for obsolete systems.
15965
15966 * Makefile.in:
15967 * filelock.c:
15968 * unexmips.c:
15969 * m/hp9000s300.h:
15970 * m/iris4d.h:
15971 * s/aix3-1.h:
15972 * s/hpux.h:
15973 * s/msdos.h:
15974 * s/usg5-0.h:
15975 * s/usg5-2-2.h:
15976 * s/usg5-2.h:
15977 * s/usg5-3.h: Remove references to obsolete variables.
15978
15979 * s/irix5-0.h: Remove, move all the contents ...
15980 * s/irix6-5.h: ... here. Simplify.
15981 * config.in: Regenerate.
15982
159832008-02-24 Jason Rumney <jasonr@gnu.org>
15984
15985 * w32term.c (x_draw_glyph_string_background): Clear the background
15986 manually when cleartype is in use.
15987 (x_draw_glyph_string_foreground): Draw text transparently when
15988 cleartype is in use.
15989
15990 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15991 a font into it unless we have to.
15992
159932008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15994
15995 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15996 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15997
aac0c6e3
MR
159982008-02-18 Jason Rumney <jasonr@gnu.org>
15999
16000 * w32fns.c (Fw32_shell_execute): Encode parameters.
16001
160022008-02-09 Eli Zaretskii <eliz@gnu.org>
16003
16004 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16005
160062008-02-05 Juanma Barranquero <lekktu@gmail.com>
16007
16008 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16009
160102008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16011
16012 * xterm.c (x_set_offset): Don't change the gravity if
16013 CHANGE_GRAVITY is -1.
16014
160152008-02-23 Chong Yidong <cyd@stupidchicken.com>
16016
16017 * fileio.c (auto_save_error_occurred): New var.
16018 (auto_save_error): Set it.
16019 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16020 error occurred.
16021
160222008-02-23 Eli Zaretskii <eliz@gnu.org>
16023
16024 * w32.c (globals_of_w32): Add initializations for
16025 g_b_init_get_sid_sub_authority and
16026 g_b_init_get_sid_sub_authority_count.
16027
160282008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16029
16030 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16031 (font_parse_xlfd): Use them for sanity check.
16032 (Finternal_set_font_style_table): Make sure the table is bijective.
16033
16034 Consolidate the image_cache to the terminal struct.
16035 * termhooks.h (P_): Remove redundant def.
16036 (struct terminal): New field `image_cache'.
16037 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16038 of FRAME_X_IMAGE_CACHE.
16039 * xterm.h (struct x_display_info): Remove image_cache field.
16040 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16041 * w32term.h (struct w32_display_info): Remove image_cache field.
16042 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16043 * macterm.h (struct mac_display_info): Remove image_cache field.
16044 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16045 * xterm.c (x_term_init):
16046 * w32term.c (w32_term_init):
16047 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16048 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16049 Remove declarations.
16050 (clear_image_caches, mark_image_cache): New declarations.
16051 * xfaces.c (clear_face_cache):
16052 * xdisp.c (redisplay_internal): Use clear_image_caches.
16053 * image.c (clear_image_cache): Don't check that a frame is on
16054 a window-system before checking if it shares the same cache.
16055 (clear_image_caches): New function.
16056 (Fclear_image_cache): Use it.
16057 (mark_image): Move from allo.c.
16058 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16059 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16060 (mark_object): Don't call mark_image_cache for frames.
16061 (mark_terminals): Call mark_image_cache.
16062
16063 * lisp.h (Fdelete_terminal): Declare.
16064
16065 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16066 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16067 wrong_type_argument.
16068
160692008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16070
16071 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16072 malayalam.el, and tamil.el. Add sinhala.el.
16073
160742008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16075
16076 * xterm.c (x_connection_closed): Consolidate identical tests.
16077 (x_delete_terminal): Don't crash if called via x_connection_closed.
16078
160792008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16080
16081 * xdisp.c (decode_mode_spec): New arg string.
16082 (display_mode_element): Adjust for the above change.
16083
160842008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16085
16086 * callint.c (Fcall_interactively): Use AREF.
16087
160882008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16089
16090 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16091
160922008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16093
16094 * xfns.c (Fx_show_tip): Set string to " " if empty.
16095
160962008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16097
16098 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16099 with Qt.
16100
161012008-02-17 Kenichi Handa <handa@m17n.org>
16102
16103 * ftfont.c (ftfont_shape): Return Lispy number.
16104
16105 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16106 for GCs.
16107 (Finternal_set_font_selection_order): Call font_update_sort_order
16108 only when enable_font_backend is set.
16109 (realize_x_face): Set face->font_info to that of default face only
16110 when enable_font_backend is set.
16111
16112 * xdisp.c (handle_composition_prop): Set it->c to the fist
16113 character of the composed region.
16114 (fill_composite_glyph_string): Set base_face->font_info to
16115 s->font_info. Get a face for ascii from base_face->ascii_face.
16116 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16117 with a face already decided.
16118 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16119 non-negative.
16120 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16121 call font_prepare_composition unconditionally.
16122
16123 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16124
16125 * xterm.h (struct x_display_info): New member font.
16126
16127 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16128 (x_set_mouse_face_gc, x_new_font): Likewise.
16129 (x_term_init): Setup display_info->font.
16130 (x_delete_terminal): Free display_info->font.
16131
16132 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16133
16134 * ftxfont.c (ftxfont_default_fid): Delete it.
16135 (ftxfont_open): Set xfont->fid to 0.
16136 (ftxfont_end_for_frame): Clear data specific to the frame and the
16137 font-driver.
16138
16139 * xftfont.c (xftfont_default_fid): Delete it.
16140 (xftfont_open): Set xfont->fid to 0.
16141
16142 * fontset.c (FONTSET_OBJLIST): New macro.
16143 (fontset_find_font): Update font-object list of the fontset.
16144 (free_realized_fontset): New function.
16145 (free_face_fontset): Call free_realized_fontset.
16146 (Ffont_info): Call font_close_object only when enable_font_backend
16147 is set.
16148
16149 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16150 [HAVE_NTGUI]: Include w32term.h.
16151 [MAC_OS]: Include macterm.ch.
16152 (font_otf_ValueRecord): Use make_number.
16153 (font_finish_cache): Fix handling of reference count.
16154 (font_clear_cache): Update num_fonts.
16155 (font_open_entity): Update smallest_char_width and
16156 smallest_font_height of the frame.
16157 (font_close_object): Update num_fonts.
16158 (Fclear_font_cache): Fix finding the target cache data.
16159
161602008-02-16 Glenn Morris <rgm@gnu.org>
16161
16162 * fontset.c (Finternal_char_font): Fix compilation warning.
16163
161642008-02-16 Eli Zaretskii <eliz@gnu.org>
16165
16166 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16167 instead of char arrays. Enlarge the size of array passed to
16168 get_token_information.
16169
16170 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16171 warnings.
16172
161732008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16174
16175 * .gdbinit: Don't set `args', it breaks gdb --args.
16176
161772008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16178
16179 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16180 within a narrowed buffer.
16181
161822008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16183
16184 * coding.c (decode_coding_object, encode_coding_object):
16185 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16186
161872008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16188
16189 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16190 hardcoding 1.
16191 (detect_coding_system):
16192 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16193 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16194 * insdel.c (insert_from_gap):
16195 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16196 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16197 (string_to_multibyte):
16198 * character.c (chars_in_text, multibyte_chars_in_text):
16199 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16200
16201 * character.h (FETCH_STRING_CHAR_ADVANCE)
16202 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16203 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16204 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16205
16206 * casefiddle.c (casify_region): Only call after-change and composition
16207 functions on the part of the region that was changed.
16208
16209 * keyboard.c (read_avail_input):
16210 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16211
162122008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16213
16214 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16215 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16216
162172008-02-11 Juanma Barranquero <lekktu@gmail.com>
16218
16219 * w32menu.c (push_submenu_start, push_submenu_end)
16220 (push_left_right_boundary, push_menu_pane, push_menu_item):
16221 * keyboard.c (read_key_sequence): Don't pass args with side effects
16222 to AREF, it fails when compiling with -DENABLE_CHECKING.
16223
162242008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16225
16226 * Makefile.in (${lispsource}international/charprop.el):
16227 Delete this target.
16228
16229 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16230 emacs-unicode-2.
16231
162322008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16233
16234 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16235
162362008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16237
16238 * frame.c (Qnoelisp): New symbol.
16239 (syms_of_frame): Initialize it.
16240 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16241 harmless Elisp code, from a strong `force' from x_connection_closed.
16242 * frame.h (Qnoelisp): Declare.
16243 * xterm.c (x_connection_closed): Pass `noelisp'.
16244
16245 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16246 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16247 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16248 rather than `int' for the type of `type'.
16249
162502008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16251
16252 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16253
16254 * Makefile.in (GNUC): Remove support for gcc-1.x.
16255
162562008-02-10 Richard Stallman <rms@gnu.org>
16257
16258 * lisp.h (ASET): Use AREF, not ASLOT.
16259
162602008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16261
16262 * lisp.h (ASET): Check bounds.
16263
162642008-02-10 Glenn Morris <rgm@gnu.org>
16265
16266 * buffer.c (mode-name): Doc fix.
16267
162682008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16269
16270 * Makefile.in:
16271 * emacs.c:
16272 * gmalloc.c:
16273 * keyboard.c:
16274 * lisp.h:
16275 * m/ibm370aix.h:
16276 * process.c:
16277 * regex.c:
16278 * s/hpux.h:
16279 * sysdep.c:
16280 * sysselect.h:
16281 * systty.h:
16282 * unexec.c:
16283 * w32term.c:
16284 * xsmfns.c:
16285 * xterm.c: Remove code that deals with obsolete variables.
16286
16287 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16288
16289 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16290 nothing else needs it anymore.
16291
162922008-02-09 Eli Zaretskii <eliz@gnu.org>
16293
16294 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16295 instead of unibyte_char_to_multibyte.
16296
162972008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16298
16299 * s/gnu-linux.h: Remove commented out code.
16300
16301 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16302
16303 * Makefile.in: Update what RMS says about using autoconf.
16304 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16305 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16306 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16307 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16308
163092008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16310
16311 * keymap.c (Fkey_description): Move side effect outside of macro call.
16312
16313 * xfaces.c (Finternal_make_lisp_face):
16314 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16315
16316 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16317 (syms_of_fontset): Use ASET.
16318
16319 * fns.c (concat): Move side effect outside of macro call.
16320 (hash_clear): Use ASET.
16321
163222008-02-08 Richard Stallman <rms@gnu.org>
16323
16324 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16325 If FORCE, and frame has a surrogate minibuffer for another frame,
16326 delete the other frame first.
16327
163282008-02-07 Timo Savola <timo.savola@iki.fi>
16329
16330 * xterm.c (x_detect_focus_change): Handle embed client message.
16331 (handle_one_xevent): Ditto.
16332 (handle_one_xevent): If embedded and we get a button press/release,
16333 request focus.
16334 (xembed_set_info, xembed_send_message): New functions.
16335 (x_make_frame_visible): Call xembed_set_info if embedded.
16336 (x_make_frame_invisible): Call xembed_set_info if embedded.
16337 (x_term_init): Initialize Xatom_XEMBED.
16338 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16339 (x_iconify_frame): Ditto.
16340
16341 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16342 (enum xembed_info, enum xembed_message, enum xembed_focus)
16343 (enum xembed_modifier, enum xembed_accelerator): New.
16344 (xembed_set_info, xembed_send_message): Declare.
16345 (FRAME_X_EMBEDDED_P): New.
16346
16347 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16348 gtk_plug_new.
16349
16350 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16351 window ID of a frame.
16352 (x_window): Reparent frame if embedded.
16353 (Fx_create_frame): Don't set border width if embedded.
16354
16355 * emacs.c (USAGE3): Add --parent-id.
16356 (standard_args): Ditto.
16357
163582008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16359
16360 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16361
163622008-02-07 Jim Meyering <meyering@redhat.com>
16363
16364 Use "do...while (0)", not "if (1)...else" in macro definitions.
16365 The latter provokes a warning from gcc about the empty else, when
16366 followed by ";". Also, without that trailing semicolon, it would
16367 silently swallow up any following statement.
16368 * syntax.h (SETUP_SYNTAX_TABLE)
16369 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16370 * buffer.h (DECODE_POSITION): Likewise.
16371 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16372 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16373 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16374 (FETCH_CHAR_ADVANCE): Likewise.
16375 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16376
163772008-02-07 Jim Meyering <meyering@redhat.com>
16378
16379 * lread.c [lint]: Don't include <sys/inode.h>.
16380
163812008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16382
16383 * xselect.c (x_handle_dnd_message):
16384 * xmenu.c (digest_single_submenu, xmenu_show):
16385 * xdisp.c (with_echo_area_buffer_unwind_data)
16386 (format_mode_line_unwind_data, unwind_format_mode_line)
16387 (display_menu_bar):
16388 * eval.c (Ffetch_bytecode):
16389 * doc.c (store_function_docstring):
16390 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16391 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16392 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16393
163942008-02-07 Kenichi Handa <handa@m17n.org>
16395
16396 * ftxfont.c (ftxfont_open): Don't set
16397 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16398
16399 * ftfont.c (ftfont_open): Fix previous change.
16400
164012008-02-06 Jason Rumney <jasonr@gnu.org>
16402
16403 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16404 Use cached metrics for ASCII characters.
16405 (w32font_open_internal): Don't set font's owning_frame.
16406 Cache metrics for ASCII characters.
16407
16408 * w32font.h (struct w32font_info): Add ascii_metrics.
16409 Remove owning_frame.
16410
164112008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16412
16413 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16414 to negative value.
16415
16416 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16417
16418 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16419
16420 * charset.c (syms_of_charset): Set QCtest and Qeq.
16421
164222008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16423
16424 * process.c (Fstart_process):
16425 * callproc.c (Fcall_process): Handle the case where
16426 Funhandled_file_name_directory returns nil.
16427
16428 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16429 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16430 * font.c (check_gstring): Use them and AREF to access the vector before
16431 we know it's really a gstring.
16432 (Ffont_shape_text): Fix typo.
46e722a9 16433 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16434
16435 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16436 Declare.
16437
16438 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16439
164402008-02-05 Jason Rumney <jasonr@gnu.org>
16441
16442 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16443 Set smallest_font_height and smallest_char_width in display info.
16444
164452008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16446
16447 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16448
164492008-02-05 Miles Bader <miles@gnu.org>
16450
16451 * xfaces.c (get_lface_attributes, merge_named_face)
16452 (lookup_named_face, lookup_derived_face, realize_named_face):
16453 Revert 2008-02-01 change by cyd@stupidchicken.com.
16454
164552008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16456
16457 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16458 fallback fonts.
16459 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16460
164612008-02-04 Jason Rumney <jasonr@gnu.org>
16462
16463 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16464 set full_name.
16465 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16466
164672008-02-03 Jason Rumney <jasonr@gnu.org>
16468
16469 * makefile.w32-in (OBJ1): Include font.o here.
16470 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16471
164722008-02-02 Jason Rumney <jasonr@gnu.org>
16473
16474 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16475
164762008-02-01 Jason Rumney <jasonr@gnu.org>
16477
16478 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16479
16480 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16481
164822008-02-01 Andreas Schwab <schwab@suse.de>
16483
16484 * Makefile.in (shortlisp, lisp): Update for rename of
16485 ../lisp/language/myanmar.el.
16486
164872008-02-01 Chong Yidong <cyd@stupidchicken.com>
16488
16489 * xfaces.c (get_lface_attributes): Delete function.
16490 (merge_named_face, lookup_named_face, lookup_derived_face)
16491 (realize_named_face): Call lface_from_face_name directly, and use
16492 the fact that merge_face_vectors does not alter its FROM argument.
16493
164942008-02-01 Jason Rumney <jasonr@gnu.org>
16495
16496 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16497 input in the default locale. Handle non-Unicode multibyte input.
16498
164992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16500
16501 * fontset.c (reorder_font_vector): Exclude nil elements from the
16502 font group. Don't try multiple fonts.
16503 (fontset_font): Adjust for the above change.
16504 (Finternal_char_font): Return nil if the found font doesn't
16505 contain the character ch.
16506
16507 * Makefile.in (lisp, shortlisp): Add cham.el.
16508
165092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16510
16511 * font.h (FONTP): Make it return 1 also for a font-object.
16512
16513 * .gdbinit (xfontset): New function.
16514
16515 * font.c (font_find_for_lface): Check if the character C is
16516 supported or not only for the first font.
16517
16518 * fontset.c (reorder_font_vector): Fix typo.
16519 (fontset_find_font): Don't add a font-spec specifying a script.
16520 Use 0 (not Qt) for the indication of empty font-group. Change the
16521 format of RFONT-DEF. Return Qt if no font in the font-group
16522 support the character.
16523 (fontset_font): Adjust for the above change. If no font was
16524 found the character, remember that.
16525 (face_for_char): Adjust for the change of RFONT-DEF.
16526 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16527 no font for the target.
16528 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16529
165302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16531
16532 * font.c (font_load_for_face): Handle the case that the font in
16533 face->lface is a string.
16534
165352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16536
16537 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16538
165392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16540
16541 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16542 Fix previous change. If the frame is not on a window system,
16543 signal an error.
16544
165452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16546
16547 * coding.c (decode_coding_object, encode_coding_object): Adjust
16548 marker positions after conversion.
16549
16550 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16551
165522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16553
16554 * font.c (font_find_for_lface): Fix the handling of the return
16555 value of font_has_char.
16556 (Ffont_shape_text): Fix previous change.
16557
16558 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16559 (fontset_ref_and_range): Delete it.
16560 (fontset_find_font): Call char_table_ref_and_range instead of
16561 FONTSET_REF_AND_RANGE.
16562 (make_fontset): Don't setup font groups of Latin here.
16563 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16564 (new_fontset_from_font): Make the specified font the default for
16565 all Latin characters.
16566
165672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16568
16569 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16570 is on a window system before accessing the fontset of the frame.
16571
165722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16573
16574 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16575
16576 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16577 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16578
16579 * font.c (Ffont_shape_text): If the font driver doesn't have a
16580 shaper function, make zero-width glyphs to have at least one-pixel
16581 width. Fix setting of `to' field of glyphs.
16582
165832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16584
16585 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16586 glyphs.
16587
16588 * font.h (struct font_driver): Improve docstring of member `shape'.
16589
165902008-02-01 Kenichi Handa <handa@m17n.org>
16591
16592 * composite.c (syms_of_composite): Fix docstring of
16593 auto-composition-function.
16594
16595 * font.h (LGLYPH_SIZE): New macro.
16596
16597 * font.c (Ffont_fill_gstring): Stop filling when a character not
16598 supported by the font is found.
16599 (Ffont_shape_text): When a shape callback function returns nil,
16600 try at most two more times with larger gstring.
16601 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16602
16603 * xdisp.c (handle_auto_composed_prop): Change the argument to
16604 auto-composition-function.
16605
16606 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16607 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16608 Lispy glyph and store it in the lgstring.
16609
16610 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16611
16612 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16613
166142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16615
16616 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16617
16618 * fontset.c (Vfont_encoding_charset_alist): New variable.
16619 (syms_of_fontset): DEFVAR it.
16620 (reorder_font_vector, fontset_find_font): Optimize for the case of
16621 no need of reordering.
16622 (face_for_char): Map the charset property by
16623 Vfont_encoding_charset_alist.
16624
166252008-02-01 Jason Rumney <jasonr@gnu.org>
16626
16627 * w32font.c (logfonts_match): Don't check adstyle here.
16628 (font_matches_spec): Check here against physical font instead.
16629 (add_font_entity_to_list): Avoid some substitutions.
16630
16631 * font.c (font_parse_fcname): Default weight and slant to normal.
16632 (font_score): Prefer normal fonts if weight or slant unspecified.
16633 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16634 match freetype scores.
16635
166362008-02-01 Jason Rumney <jasonr@gnu.org>
16637
16638 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16639 font, as it may have been deleted.
16640 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16641 most common hyphenless variation.
16642 (logfonts_match): Check generic family.
16643 (font_matches_spec): Don't check generic family here.
16644 (fill_in_logfont): Set generic family based on adstyle.
16645
16646 * w32font.h (w32font_get_cache): Update declaration.
16647
166482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16649
16650 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16651
16652 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16653 If none of the new drivers are available, call font_update_drivers
16654 with the old drivers.
16655
16656 * w32font.c (w32font_get_cache): Adjust the argument type.
16657
16658 * xfont.c (xfont_get_cache): Adjust the argument type.
16659
16660 * font.h (struct font_driver): Change argument type of get_cache.
16661
16662 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16663
16664 * font.c (Ffont_get): Fix arguments to Fassoc.
16665 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16666 (font_clear_cache): New function.
16667 (font_list_entities, font_matching_entity): Use font_get_cache.
16668 (font_update_drivers): Call font_clear_cache when finishing a driver.
16669
16670 * fontset.c (fontset_find_font): Fix previous change.
16671
166722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16673
16674 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16675 dpyinfo->font_table.
16676 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16677 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16678
16679 * font.c (font_at): Handle the case that the arg C is negative.
16680 Handle the unibyte case.
16681 (Ffont_at): Call font_at with the arg C -1.
16682
16683 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16684 the position here, and call font_at with the arg C -1.
16685 Don't check the range of the existing composition at the point.
16686
166872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16688
16689 * fontset.c (fontset_add): New args charset_id and family.
16690 Change caller.
16691 (load_font_get_repertory, fontset_find_font): Assume that
16692 font_spec is always a font-spec object.
16693 (Fset_fontset_font): Always store a font-spec object in a fontset.
16694
16695 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16696 instead of get_property_and_range.
16697
166982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16699
16700 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16701 (xftfont_open): Don't keep locking face.
16702 (xftfont_close): Don't unlock face.
16703 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16704
16705 * fontset.c (fontset_find_font): Don't prefer a font of
16706 supplementary charset.
16707
167082008-02-01 Kenichi Handa <handa@m17n.org>
16709
16710 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16711 script, langsys_tag to langsys, new member script.
16712 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16713 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16714 listing to the script specified in that property. Fix arg to
16715 OTF_check_features.
16716
167172008-02-01 Jason Rumney <jasonr@gnu.org>
16718
16719 * w32font.h: New file.
16720
16721 * w32font.c: Include it.
16722 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16723 (w32font_open): Set owning_frame.
16724 (w32font_text_extents): Use owning_frame.
16725 (struct font_callback_data): Add opentype_only field.
16726 (add_font_entity_to_list): Use it to filter fonts.
16727 Don't check against full name.
16728 (w32font_list_internal): New function.
16729 (w32font_list): Use it.
16730 (w32font_match_internal): New function.
16731 (w32font_match): Use it.
16732 (w32font_open_internal): New function.
16733 (w32font_open): Use it.
16734 (w32font_get_cache, w32font_close, w32font_has_char)
16735 (w32font_encode_char, w32font_text_extents, w32font_draw):
16736 Make non-static.
16737
16738 * makefile.w32-in (w32font.o): Depend on w32font.h.
16739
167402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16741
16742 * charset.c (Fdefine_charset_internal): Record a supplementary
16743 charset at the tail of Vcharset_order_list.
16744
16745 * font.c (Ffont_shape_text): Fix the return value.
16746
16747 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16748
16749 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16750
167512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16752
16753 * ftfont.c (struct OpenTypeSpec): New struct.
16754 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16755 (ftfont_get_open_type_spec): New function.
16756 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16757
16758 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16759
167602008-02-01 Jason Rumney <jasonr@gnu.org>
16761
16762 * w32font.c (add_font_entity_to_list): Compare only the beginning
16763 of full name.
16764
167652008-02-01 Kenichi Handa <handa@m17n.org>
16766
16767 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16768 Never return HANDLED_RECOMPUTE_PROPS.
16769
167702008-02-01 Kenichi Handa <handa@m17n.org>
16771
16772 * font.c (font_gstring_produce): Delete it.
16773
16774 * composite.h (COMPOSITION_METHOD):
16775 Handle COMPOSITION_WITH_GLYPH_STRING.
16776
167772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16778
16779 * xfont.c (Qx): Delete.
16780 (syms_of_xfont): Don't initialize Qx.
16781
16782 * composite.h (enum composition_method):
16783 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16784
167852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16786
16787 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16788 (choose_face_font): Accept new form of font-spec.
16789
16790 * frame.h (font_driver_list): Declare it unconditionally.
16791 (struct frame): Define members font_driver_list and font_data_list
16792 unconditionally.
16793
16794 * fontset.c: Include "font.h" unconditionally.
16795 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16796 (Fset_fontset_font): Accept a font-spec object.
16797
16798 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16799 PIXEL_SIZE part a wild card.
16800
16801 * dispextern.h (struct glyph_string): Define members clip and
16802 num_clips unconditionally.
16803 (struct face): Define members font_info and extra unconditionally.
16804
16805 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16806 ftfont_info only when HAVE_LIBOTF is defined.
16807
168082008-02-01 Andreas Schwab <schwab@suse.de>
16809
16810 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16811 and end.
16812
168132008-02-01 Jason Rumney <jasonr@gnu.org>
16814
16815 * w32font.c (w32font_driver): Add new fields.
16816
168172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16818
16819 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16820 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16821 (LIBES): Add @M17N_FLT_CFLAGS@.
16822
16823 * composite.c (compose_text): Don't treat the new style
16824 composition specially.
16825
16826 * emacs.c (main): Call syms_of_font unconditionally.
16827
16828 * font.h (FONT_ENTITY_NOT_LOADABLE)
16829 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16830 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16831 (struct font_driver): New member shape.
16832 (font_registry_charsets): Extern it.
16833 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16834 (font_otf_capability, font_drive_otf): Delete their externs.
16835
16836 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16837 (font_charset_alist, font_registry_charsets): Move from xfont.c
16838 and rename.
16839 (font_prop_validate_otf): New function.
16840 (font_property_table): Register it for QCotf.
16841 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16842 (font_drive_otf): Delete.
16843 (font_prepare_composition): New arg F. Adjust for the change of
16844 lispy gstring.
16845 (font_find_for_lface): New arg C.
16846 (font_load_for_face): Adjust for the change of font_find_for_lface.
16847 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16848 lispy gstring.
16849 (Ffont_shape_text): New function.
16850 (Fopen_font): If the font size is not given, use 12-pixel.
16851 (Ffont_at): New arg STRING.
16852 (syms_of_font): Initalize font_charset_alist.
16853 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16854 conditionally.
16855
16856 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16857 fonts of the same font-spec. Change the format of RFONT-DEF.
16858 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16859 Adjust for the change of RFONT-DEF.
16860 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16861
16862 * ftfont.h: New file.
16863
16864 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16865 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16866 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16867 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16868 font_otf_capability and font_drive_otf, set ftfont_shape.
16869 (ftfont_list): Adjust for the change of :otf property value.
16870 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16871 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16872 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16873 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16874 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16875 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16876
16877 * w32term.c (x_draw_composite_glyph_string_foreground):
16878 Adjust for the change of lispy gstring.
16879
16880 * xdisp.c (handle_composition_prop): Adjust for the change of
16881 lispy gstring. Call a function for auto-composition with the
16882 third arg it->window.
16883 (fill_composite_glyph_string): Adjust for the change of lispy string.
16884 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16885
16886 * xfaces.c (set_font_frame_param): Adjust for the change of
16887 font_find_for_lface.
16888
16889 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16890 (xfont_registry_charsets): Likewise. Change caller.
16891 (syms_of_xfont): Don't handle x_font_charset_alist.
16892
16893 * xftfont.c: Include "ftfont.h".
16894 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16895 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16896 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16897 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16898 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16899 Set xftfont_driver.shape to xftfont_shape.
16900
16901 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16902 the change of lispy gstring.
16903
169042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16905
16906 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16907
169082008-02-01 Jason Rumney <jasonr@gnu.org>
16909
16910 * w32font.c (w32font_draw): Fill background manually.
16911
169122008-02-01 Jason Rumney <jasonr@gnu.org>
16913
16914 * font.c (Qfontp): Remove unused symbol.
16915 (QCantialias): New symbol.
16916 (syms_of_font): Define it.
16917 (font_property_table): Set a validator for QCantialias.
16918
16919 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16920 Define if not already.
16921 (QCfamily): Share with xfaces.c.
16922 (Qstandard, Qsubpixel, Qnatural): New symbols.
16923 (syms_of_w32font): Define them. Don't define QCfamily here.
16924 (w32_antialias_type, lispy_antialias_type): New functions.
16925 (w32_enumfont_pattern_entity): New arg requested_font.
16926 Set antialias parameter if non-default was requested.
16927 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16928
169292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16930
16931 * lread.c (read1): Undo the previous change.
16932
169332008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16934
16935 * frame.c (Fdelete_frame): Call font_update_drivers only when
16936 USE_FONT_BACKEND is defined.
16937
169382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16939
16940 * font.h (struct font_bitmap): New member bits_per_pixel.
16941 (struct font_driver): New members start_for_frame and end_for_frame.
16942 (struct font_data_list): New struct.
16943 (font_put_frame_data, font_get_frame_data): Extern them.
16944
16945 * frame.h (struct frame): New member font_data_list.
16946
16947 * font.c (font_update_drivers): Call driver->start_for_frame and
16948 driver->end_for_frame at proper timings.
16949 (font_put_frame_data, font_get_frame_data): New functions.
16950 (Ffont_spec): Add usage in the docstring.
16951
16952 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16953 (Fdelete_frame): Call font_update_drivers.
16954
16955 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16956 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16957 (xftfont_get_xft_draw): New function.
16958 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16959 (xftfont_end_for_frame): New function.
16960 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16961
16962 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16963 Change argument. Cache GCs in the per-frame data.
16964 (struct ftxfont_frame_data): New struct.
16965 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16966 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16967 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16968 (ftxfont_end_for_frame): New function.
16969 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16970
16971 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16972
169732008-02-01 Kenichi Handa <handa@m17n.org>
16974
16975 * xselect.c (Vselection_coding_system)
16976 (Vnext_selection_coding_system): Delete them.
16977 (syms_of_xselect): Don't declare selection-coding-system and
16978 next-selection-coding-system. They are declared in select.el.
16979
169802008-02-01 Jason Rumney <jasonr@gnu.org>
16981
16982 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16983
16984 * w32fns.c: Include imm.h.
16985 (get_composition_string_fn, get_ime_context_fn): New optional
16986 system functions.
16987 (globals_of_w32fns): Load them from imm32.dll.
16988 (ignore_ime_char): New flag.
16989 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16990 WM_IME_ENDCOMPOSITION messages.
16991
16992 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16993 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16994
169952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16996
16997 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16998 (READCHAR_REPORT_MULTIBYTE): New macro.
16999 (readchar): New 2nd arg MULTIBYTE.
17000 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17001 Make symbol's name multibyte according to the multibyteness of the
17002 source.
17003
170042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17005
17006 * xfaces.c (face_for_overlay_string): Call lookup_face with
17007 correct arguments (fix of synching with the trunk).
17008
170092008-02-01 Kenichi Handa <handa@m17n.org>
17010
17011 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17012 (font_prop_validate_non_neg, font_prop_validate_spacing):
17013 Delete argument prop_index.
17014 (font_property_table): Change arguments to validater. Change Callers.
17015 (font_lispy_object): Delete.
17016 (font_at): Use font_find_object instead fo font_lispy_object.
17017
170182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17019
17020 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17021 and file names.
17022
170232008-02-01 Jason Rumney <jasonr@gnu.org>
17024
17025 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17026 (font_matches_spec): Remove debug output.
17027 (add_font_entity_to_list): Avoid using substituted fonts.
17028
170292008-02-01 Jason Rumney <jasonr@gnu.org>
17030
17031 * doc.c (Fsnarf_documentation):
17032 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17033
170342008-02-01 Miles Bader <miles@gnu.org>
17035
17036 * dispextern.h (struct glyph_row): Only define "clip" field if
17037 HAVE_WINDOW_SYSTEM is defined.
17038
170392008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17040
17041 Fix up multi-tty merge.
17042
17043 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17044 and indentation.
17045
17046 * xfaces.c (free_realized_face, clear_face_gcs):
17047 Include font_done_for_face in the input_blocked section, just in case.
17048
17049 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17050 (get_char_face_and_encoding): Undo last change and remove the *other*
17051 duplicate definition (i.e. keep the one that's better scoped and that
17052 includes code for the font-backend).
17053
17054 * terminal.c (create_terminal): Default keyboard_coding to
17055 `no-conversion' and terminal_coding to `undecided'.
17056
17057 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17058
17059 * fontset.c (free_realized_fontsets): Check that the table entry does
17060 contain a fontset before trying to compare it to `base'.
17061
17062 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17063 syms_of_charset, and syms_of_coding earlier because init_window_once
17064 now needs Vcoding_system_hash_table to be setup.
17065
17066 * coding.h (default_buffer_file_coding): Remove.
17067
17068 * coding.c (default_buffer_file_coding): Remove.
17069 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17070 than ->symbol, and use the terminal-local coding system.
17071 (syms_of_coding): Don't setup the coding-systems that are not
17072 terminal-local.
17073 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17074
17075 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17076 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17077
17078 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17079 in chartab.c and were re-added here by mistake.
17080 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17081
17082 * doc.c (Fsnarf_documentation):
17083 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17084 src to etc.
17085
17086 * ChangeLog.10: Add mistakenly removed entry.
17087
170882008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17089
17090 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17091
170922008-02-01 Miles Bader <miles@gnu.org>
17093
17094 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17095 Add extra args to FACE_FOR_CHAR.
17096
170972008-02-01 Kenichi Handa <handa@m17n.org>
17098
17099 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17100 in sequence.
17101
17102 * chartab.c (map_sub_char_table, map_char_table): If the range
17103 contains just one character, call the function with that character
17104 even if the depth is not 3.
17105
171062008-02-01 Jason Rumney <jasonr@gnu.org>
17107
17108 * w32font.c (w32font_text_extents): Calculate metrics for the
17109 whole string.
17110
171112008-02-01 Jason Rumney <jasonr@gnu.org>
17112
17113 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17114
171152008-02-01 Jason Rumney <jasonr@gnu.org>
17116
17117 * w32term.c (x_set_glyph_string_clipping): Use
17118 get_glyph_string_clip_rects.
17119 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17120 Adjust for the change of struct glyph_string.
17121
17122 * w32font.c (w32font_draw): Do clipping here.
17123
171242008-02-01 Kenichi Handa <handa@m17n.org>
17125
17126 * xftfont.c (xftfont_draw): Adjust for the change of struct
17127 glyph_string.
17128
17129 * xterm.c (x_set_glyph_string_clipping): Use
17130 get_glyph_string_clip_rects.
17131 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17132 Adjust for the change of struct glyph_string.
17133
17134 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17135 the resulting clip(s}.
17136 (expose_overlaps): Add arg r. Change callers. Set it to
17137 row->clip temporarily.
17138 (expose_window): Redraw rows overlapping the exposed area.
17139
17140 * dispextern.h (struct glyph_row): New member clip.
17141 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17142 clip_height, new member clip, and num_clips.
17143
171442008-02-01 Kenichi Handa <handa@m17n.org>
17145
17146 * data.c (Fchar_or_string_p): Fix docstring.
17147
171482008-02-01 Kenichi Handa <handa@m17n.org>
17149
17150 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17151 create a temporary XftDraw object.
17152
171532008-02-01 Kenichi Handa <handa@m17n.org>
17154
17155 * font.c (Ffontp): Fix docstring.
17156
17157 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17158 strong evidence of ISO-2022.
17159
171602008-02-01 Kenichi Handa <handa@m17n.org>
17161
17162 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17163 SYNTAX_ENTRY_FOLLOW_PARENT.
17164
171652008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17166
17167 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17168 its type.
17169 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17170 Update to the new type of weak_hash_tables and next_weak.
17171
17172 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17173 a plain C pointer to Lisp_Hash_Table.
17174
17175 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17176 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17177 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17178 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17179 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17180 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17181 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17182 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17183 (GC_EQ): Remove since they've been identical to their non-GC_
17184 alter-egos ever since the markbit was eradicated.
17185
17186 * alloc.c:
17187 * buffer.c:
17188 * buffer.h:
17189 * data.c:
17190 * fileio.c:
17191 * filelock.c:
17192 * fns.c:
17193 * frame.h:
17194 * lisp.h:
17195 * macterm.c:
17196 * print.c:
17197 * process.c:
17198 * w32fns.c:
17199 * w32menu.c:
17200 * w32term.c:
17201 * xfns.c:
17202 * xmenu.c:
17203 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17204
172052008-02-01 Kenichi Handa <handa@m17n.org>
17206
17207 * chartab.c (map_sub_char_table): Make it work for the top-level
17208 char-table. Fix handling of parent char-table.
17209 (map_char_table): Adjust for the above change.
17210
172112008-02-01 Jason Rumney <jasonr@gnu.org>
17212
17213 * w32font.c (Qgdi): Rename from Qw32.
17214
172152008-02-01 Jason Rumney <jasonr@gnu.org>
17216
17217 * w32bdf.c (get_quoted_string): Make function static.
17218
172192008-02-01 Kenichi Handa <handa@m17n.org>
17220
17221 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17222 bigger ascent and descent than those of the font, use them as
17223 font's ascent and descent.
17224
172252008-02-01 Kenichi Handa <handa@m17n.org>
17226
17227 * Makefile.in (${lispsource}international/charprop.el): Move this
17228 target within "#ifdef HAVE_UNIDATA" and "#endif".
17229
172302008-02-01 Kenichi Handa <handa@m17n.org>
17231
17232 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17233 (shortlisp): Add ../lisp/language/tai-viet.el.
17234
172352008-02-01 Ulrich Mueller <ulm@gentoo.org>
17236
17237 * Makefile.in (${lispsource}international/charprop.el): Depend on
17238 temacs${EXEEXT}.
17239
172402008-02-01 Jason Rumney <jasonr@gnu.org>
17241
17242 * w32font.c (w32font_close): Delete the GDI font object.
17243
17244 * w32menu.c: Include character.h.
17245
17246 * w32proc.c: Likewise.
17247
17248 * w32select.c: Likewise.
17249
17250 * makefile.w32-in (w32proc.o): Depend on character.h.
17251
172522008-02-01 Jason Rumney <jasonr@gnu.org>
17253
17254 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17255
17256 * w32menu.c (syms_of_w32menu): Likewise.
17257
17258 * w32proc.c (syms_of_ntproc): Likewise.
17259
17260 * w32select.c (syms_of_w32select): Likewise.
17261
17262 * w32term.c (syms_of_w32term): Likewise.
17263
172642008-02-01 Jason Rumney <jasonr@gnu.org>
17265
17266 * w32font.c (w32font_draw): Delete brush after using it.
17267
172682008-02-01 Jason Rumney <jasonr@gnu.org>
17269
17270 * w32font.c (w32font_open): Don't set font_idx.
17271 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17272 to font settings.
17273 (w32font_draw): Fill background explicitly.
17274
172752008-02-01 Jason Rumney <jasonr@gnu.org>
17276
17277 * w32term.c (w32_initialize): Don't call w32font_initialize.
17278
17279 * w32font.c (w32font_info): Remove subranges.
17280 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17281 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17282 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17283 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17284 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17285 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17286 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17287 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17288 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17289 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17290 New symbols.
17291 (font_callback_data): New struct.
17292 (w32font_list, w32font_match): Use it.
17293 (w32font_open): Don't populate subranges.
17294 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17295 (w32font_encode_char): Always return unicode code-point as-is.
17296 (w32font_text_extents): Supply a transformation matrix to
17297 GetGlyphOutline. Never look up by glyph index. Avoid looping
17298 twice. Use unicode version of GetTexExtentPoint32 instead of
17299 glyph index version.
17300 (set_fonts_frame): Remove.
17301 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17302 set frame parameter. Use backward compatible fake foundries.
17303 Save generic family in extra slot under QCfamily. Make width slot
17304 constant. Save QCspacing value. Save list of scripts instead of
17305 binary subranges.
17306 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17307 (add_font_entity_to_list): Use font_callback_data struct. Filter
17308 unwanted fonts.
17309 (add_one_font_entity_to_list): Use font_callback_data struct.
17310 (w32_registry): Default to iso10646_1.
17311 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17312 string font registries. Don't fill in font name if it is a generic
17313 family name, fill family instead. Use spacing, family and script
17314 extra info to fill pitch, family and charset fields.
17315 (list_all_matching_fonts): Use font_callback_data struct.
17316 (unicode_range_for_char): Remove.
17317 (font_supported_scripts): New function.
17318 (w32font_initialize): Remove.
17319 (syms_of_w32font): Update which symbols are defined.
17320
173212008-02-01 Jason Rumney <jasonr@gnu.org>
17322
17323 * font.c (font_pixel_size): Reverse assq_no_quit args.
17324
17325 * w32term.h (FONT_WIDTH): Report max width, not average.
17326 (FONT_MAX_WIDTH): Remove.
17327 (FONT_AVG_WIDTH): New macro.
17328
17329 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17330 redefinition of FONT_WIDTH.
17331
17332 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17333 (w32_cache_char_metrics): Use FONT_WIDTH.
17334
17335 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17336
173372008-02-01 Jason Rumney <jasonr@gnu.org>
17338
17339 * w32font.c (w32font_open): Make lfHeight negative.
17340
17341 * w32fns.c (x_default_font_parameter): Use new style font name.
17342 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17343
173442008-02-01 Jason Rumney <jasonr@gnu.org>
17345
17346 * w32font.c (QCsubranges): New symbol.
17347 (w32font_open, w32font_has_char): Get subranges from subproperty
17348 of extra.
17349 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17350 (syms_of_w32font): Define :subranges symbol.
17351
17352 * font.c (font_put_extra): Expose externally.
17353
17354 * font.h (font_put_extra): Move declaration from font.c.
17355
17356 * font.c (Ffont_get): Use font driver to determine otf capability.
17357 (adjust_anchor): Check if driver defines anchor_point before using.
17358
17359 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17360 (w32font_draw): Use options.
17361 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17362 Fix detection of truetype fonts.
17363 (registry_to_w32_charset): Handle charsets other than iso8859-1
17364 expressed as lisp symbols.
17365 (w32_registry): Express charset as lisp symbol.
17366 (fill_in_logfont): Reverse pixel and point height logic.
17367 Don't set width here. Set quality to default.
17368
17369 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17370 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17371
17372 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17373 Remove redundant loop and allocation.
17374
17375 * makefile.w32-in (font.o, w32font.o): New objects.
17376 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17377 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17378
17379 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17380 STORE_XCHARB a valid l-value.
17381
17382 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17383 calculations for non-Truetype fonts.
17384 (x_draw_glyph_string): Sync with xterm.c.
17385 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17386 Remove redundant code.
17387 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17388
17389 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17390 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17391
17392 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17393 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17394
17395 * w32font.c: New file for w32 font backend.
17396
173972008-02-01 Kenichi Handa <handa@m17n.org>
17398
17399 * term.c: Don't include "buffer.h" twice.
17400
174012008-02-01 Kenichi Handa <handa@m17n.org>
17402
17403 * character.c (Funibyte_string): New function.
17404 (syms_of_character): Defsubr it.
17405
174062008-02-01 Jason Rumney <jasonr@gnu.org>
17407
17408 * w32term.c [USE_FONT_BACKEND]:
17409 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17410 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17411 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17412 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17413 (x_free_frame_resources): Sync with xterm.c.
17414
174152008-02-01 Andreas Schwab <schwab@suse.de>
17416
17417 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17418 char-table size.
17419
174202008-02-01 Kenichi Handa <handa@m17n.org>
17421
17422 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17423
174242008-02-01 Kenichi Handa <handa@m17n.org>
17425
17426 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17427 font_otf_gpos, add font_drive_otf.
17428
17429 * fontset.c (fontset_find_font): Pay attention to font size
17430 specified for a font.
17431 (reorder_font_vector): Check contents of font_def.
17432
17433 * font.c (struct otf_list): Delete it.
17434 (otf_list): Make it a lisp variable.
17435 (otf_open): Use lispy otf_list.
17436 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17437 (check_otf_features): New function.
17438 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17439 New functions.
17440 (font_drive_otf): New function merging font_otf_gsub and
17441 font_otf_gpos.
17442 (font_open_for_lface): New arg spec. Change argument order.
17443 (font_load_for_face): Adjust for the change of font_open_for_lface.
17444 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17445 Ffont_otf_gpos.
17446 (syms_of_font): Staticpro otf_list. Delete defsubr of
17447 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17448
17449 * xfaces.c (set_font_frame_param): Adjust for the change of
17450 font_open_for_lface.
17451
17452 * font.h (font_open_for_lface): Adjust prototype.
17453 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17454 member otf_drive.
17455 (font_otf_gsub, font_otf_gpos): Delete externs.
17456 (font_drive_otf): Extern it.
17457
174582008-02-01 Kenichi Handa <handa@m17n.org>
17459
17460 * font.c (font_at): If the window W is not on a window system,
17461 return Qnil.
17462
17463 * coding.c (produce_chars, encode_coding): Don't call
17464 insert_from_gap if no characters to produce.
17465
174662008-02-01 Kenichi Handa <handa@m17n.org>
17467
17468 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17469 Fclear_face_cache.
17470
17471 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17472
174732008-02-01 Miles Bader <miles@gnu.org>
17474
17475 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17476 Parse "--disable-font-backend" option.
17477 (standard_args): Add "--disable-font-backend" option.
17478
174792008-02-01 Kenichi Handa <handa@m17n.org>
17480
17481 * fontset.c (fontset_find_font): New function.
17482 (fontset_font): Use fontset_find_font.
17483 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17484 Register the specified font for all Latin characters.
17485 (new_fontset_from_font): Register the specified font for all Latin
17486 characters.
17487 (dump_fontset): For a realized fontset, include the base fontset
17488 name in the returned vector.
17489
174902008-02-01 Kenichi Handa <handa@m17n.org>
17491
17492 * character.h (CHAR_STRING): Cast C to unsigned on calling
17493 char_string.
17494
17495 * character.c (char_string): Type of arg C changed to unsigned.
17496 Signal an error if C is an invalid character code.
17497
17498 * editfns.c (general_insert_function, Fchar_to_string):
17499 Use CHARACTERP, not INTEGERP.
17500
175012008-02-01 Kenichi Handa <handa@m17n.org>
17502
17503 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17504 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17505
17506 * regex.c (analyse_first): Fix for multibyte characters in "case
17507 charset:" and "case categoryspec:".
17508
175092008-02-01 Andreas Schwab <schwab@suse.de>
17510
17511 * Makefile.in (LIBES): Move standard libraries to the end.
17512
175132008-02-01 Kenichi Handa <handa@m17n.org>
17514
17515 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17516 nonzero, don't shrink the buffer nextb.
17517
17518 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17519
17520 * coding.c (coding_alloc_by_making_gap): New arg offset.
17521 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17522 offset.
17523 (decode_coding_iso_2022): Update coding->safe_charsets.
17524 (decode_coding_gap): Temporarily set
17525 current_buffer->text->inhibit_shrinking to 1.
17526
175272008-02-01 Kenichi Handa <handa@m17n.org>
17528
17529 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17530 indexing into elements of s->cmp and s->char2b.
17531
175322008-02-01 Juanma Barranquero <lekktu@gmail.com>
17533
17534 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17535
175362008-02-01 Kenichi Handa <handa@m17n.org>
17537
17538 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17539 target_multibyte instead of multibyte.
17540 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17541 (bcmp_translate): Change the argument name from multibyte to
17542 target_multibyte.
17543
175442008-02-01 Kenichi Handa <handa@m17n.org>
17545
17546 These changes are to compile a regexp into a pattern that can be
17547 used both for multibyte and unibyte targets.
17548
17549 * Makefile.in (search.o): Depend on charset.h.
17550
17551 * character.c (multibyte_char_to_unibyte_safe): New function.
17552
17553 * search.c: Include "charset.h".
17554 (compile_pattern_1): Delete argument multibyte. Don't set
17555 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17556 (compile_pattern): Don't compare cp->buf.target_multibyte.
17557 Compare cp->buf.charset_unibyte.
17558 (compile_pattern): Set cp->buf.target_multibyte.
17559
17560 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17561
17562 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17563
17564 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17565 multibyte. Change callers.
17566 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17567 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17568 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17569 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17570 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17571 (regex_compile): Make the compiled pattern usable both for
17572 multibyte and unibyte targets.
17573 (analyse_first): Make the fastmap usable both for multibyte and
17574 unibyte targets.
17575 (TRANSLATE_VIA_MULTIBYTE): Delete.
17576 (re_match_2_internal): Pay attention to the case that the
17577 multibyteness of bufp and target may be different.
17578
175792008-02-01 Kenichi Handa <handa@m17n.org>
17580
17581 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17582 empty box occupy at least one column width.
17583
175842008-02-01 Miles Bader <miles@gnu.org>
17585
17586 * Makefile.in: Remove redundant HAVE_XFT clause.
17587
175882008-02-01 Kenichi Handa <handa@m17n.org>
17589
17590 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17591
175922008-02-01 Kenichi Handa <handa@m17n.org>
17593
17594 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17595 being nil.
17596
175972008-02-01 Kenichi Handa <handa@m17n.org>
17598
17599 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17600
176012008-02-01 Kenichi Handa <handa@m17n.org>
17602
17603 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17604
176052008-02-01 Kenichi Handa <handa@m17n.org>
17606
17607 * search.c (simple_search): Fix previous change.
17608
176092008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 * xftfont.c (ftfont_font_format): Extern declaration.
17612
17613 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17614
17615 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17616 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17617
17618 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17619 (ftfont_font_format): Fix previous change.
17620
17621 * font.h (Ffont_xlfd_name): EXFUN it.
17622
17623 * font.c (font_parse_xlfd): Fix the array size of `f'.
17624 (register_font_driver): Use EQ to compare driver->type.
17625
17626 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17627 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17628 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17629
176302008-02-01 Kenichi Handa <handa@m17n.org>
17631
17632 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17633 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17634
176352008-02-01 Kenichi Handa <handa@m17n.org>
17636
17637 * xfont.c (xfont_open): Set font->format.
17638
17639 * xftfont.c (xftfont_open): Set font->format.
17640
17641 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17642 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17643 (ftfont_open): Set font->format.
17644 (ftfont_font_format): New function.
17645
17646 * font.h (struct font): New member format.
17647
17648 * font.c (Qopentype): New variable.
17649 (syms_of_font): Defsym it.
17650 (Fquery_font): Change the format of the last element of the return
17651 value.
17652
176532008-02-01 Kenichi Handa <handa@m17n.org>
17654
17655 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17656 last resort.
17657
176582008-02-01 Kenichi Handa <handa@m17n.org>
17659
17660 * coding.c (detect_coding_charset): Fix detection of multi-byte
17661 charset.
17662
176632008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17664
17665 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17666
176672008-02-01 Kenichi Handa <handa@m17n.org>
17668
17669 * xdisp.c (get_next_display_element): Set it->face_id for the
17670 first component of a composition.
17671 (x_produce_glyphs): Check if the font is changed or not for composition.
17672
176732008-02-01 Kenichi Handa <handa@m17n.org>
17674
17675 * fontset.c (Qlatin): New variable.
17676 (syms_of_fontset): Define it as a lisp symbol.
17677 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17678
176792008-02-01 Kenichi Handa <handa@m17n.org>
17680
17681 * font.c (font_unparse_fcname): Pay attention to the case that
17682 some of font property is a null string.
17683
176842008-02-01 Kenichi Handa <handa@m17n.org>
17685
17686 * term.c: Include "composite.h".
17687 (encode_terminal_code): Output all components of composition.
17688 Check the size of encode_terminal_src.
17689 (produce_glyphs): For composition, call produce_composite_glyph.
17690 (append_composite_glyph, produce_composite_glyph): New functions.
17691
17692 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17693 is not found, get font_info from the current ascii face.
17694
176952008-02-01 Kenichi Handa <handa@m17n.org>
17696
17697 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17698 buffer-file-name to Qnil before calling insert_from_buffer.
17699
17700 * font.c (font_unparse_fcname): Pay attention to the case that
17701 foundry is a null string.
17702
177032008-02-01 Kenichi Handa <handa@m17n.org>
17704
17705 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17706
17707 * font.c (Qunicode_sip): New variable.
17708 (syms_of_font): Declare it as a Lisp symbol.
17709
17710 * font.h (Qunicode_sip): Extern it.
17711
177122008-02-01 Kenichi Handa <handa@m17n.org>
17713
17714 * composite.c (get_composition_id): Pay attention to TAB component.
17715
17716 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17717 TAB. Adjust for the change of s->char2b which always points to
17718 the first element of allocated memory.
17719
17720 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17721
17722 * xdisp.c (handle_composition_prop): Set it->c to the first
17723 non-TAB component.
17724 (fill_composite_glyph_string): Change argument.
17725 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17726 (x_produce_glyphs): Fix handling of left/right padding.
17727
177282008-02-01 Kenichi Handa <handa@m17n.org>
17729
17730 * coding.c (detect_coding_system): Fix for handling off
17731 inhibit_iso_escape_detection. Fix for the case that no coding
17732 system is defined for a specific coding category.
17733
177342008-02-01 Kenichi Handa <handa@m17n.org>
17735
17736 * font.c (font_matching_entity): Delete unused local var.
17737
17738 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17739 opening a font.
17740
17741 * fileio.c (Finsert_file_contents): On recovering a file, assume
17742 Unix-like eol.
17743 (choose_write_coding_system): On auto-saving a file, force
17744 Unix-like eol.
17745
17746 * coding.c (setup_coding_system): Fix setting of
17747 coding->common_flags based on eol_type.
17748 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17749 inherit from it.
17750
177512008-02-01 Kenichi Handa <handa@m17n.org>
17752
17753 * alloc.c (NSTATICS): Increas to 0x600.
17754
177552008-02-01 Kenichi Handa <handa@m17n.org>
17756
17757 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17758 (ftfont_list): Don't check :name property.
17759 (ftfont_match): New function.
17760 (ftfont_pattern_entity): If the pattern doesn't contain
17761 FC_SPACING, don't assume FC_MONO.
17762
17763 * font.h (struct font_driver): New member `match'.
17764 (font_update_drivers): Adjust prototype.
17765
17766 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17767 property of FONT.
17768 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17769 them unconditionally.
17770 (font_matching_entity): New function.
17771 (font_open_by_name): Try font_matching_entity if exact match is
17772 not found.
17773 (font_update_drivers): Delete the arg FONT. Return a list of
17774 actually used backends. Don't free faces, font caches here.
17775 Don't store data in frame parameters. Don't call x_set_font.
17776 (Ffont_spec): Store :name property as is.
17777 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17778 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17779 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17780 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17781 Call font->driver->otf_gsub instead of font_otf_gsub.
17782
17783 * frame.c (x_set_font_backend): Do more works that were done in
17784 font_update_drivers before.
17785
17786 * xfont.c (xfont_match): New function.
17787 (xfont_driver): Set xfont_driver.match to xfont_match.
17788 (xfont_draw): Set font in GC if necessary.
17789
17790 * ftxfont.c (ftxfont_match): New function.
17791 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17792
17793 * xftfont.c (xftfont_match): New function.
17794 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17795
177962008-02-01 Kenichi Handa <handa@m17n.org>
17797
17798 * font.h (struct font): New member scalable.
17799 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17800 (font_otf_gsub): Adjust prototype.
17801
17802 * font.c (font_otf_capability): Fix handling of the default langsys.
17803 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17804 Check the contents of SPEC.
17805 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17806 (check_gstring): New function.
17807 (REPLACEMENT_CHARACTER): New macro.
17808 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17809 glyph codes of GSTRING.
17810 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17811 (font_prepare_composition): Set cmp->glyph_len.
17812 (font_open_entity): Set font->scalable.
17813 (Ffont_get): Handle :otf property.
17814 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17815 functions.
17816 (Fquery_font): Use font->font.full_name.
17817 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17818 Sfont_otf_alternates.
17819
17820 * ftfont.c (ftfont_open): Set font->font.full_name and
17821 font->font.name properly. Fix calculation of font->font.height
17822 and font->min_width.
17823
17824 * ftxfont.c (ftxfont_create_gcs): New function.
17825 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17826 (ftxfont_draw_backgrond): Fix filling region.
17827 (ftxfont_default_fid): New function.
17828 (ftxfont_open): Set xfont->fid to the return value of
17829 ftxfont_default_fid.
17830 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17831 (ftxfont_done_face): Free only GCs that are created by
17832 ftxfont_create_gcs.
17833 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17834
17835 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17836 Clip to src->width, etc (not src->clip_XXX).
17837
17838 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17839 FontBackend frame parameter.
17840
178412008-02-01 Kenichi Handa <handa@m17n.org>
17842
17843 * font.h (struct font_driver_list): New member `on'.
17844 (Fclear_font_cache): EXFUN it.
17845 (font_update_drivers): Extern it.
17846
17847 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17848 (font_list_entities): Check driver_list->on.
17849 (register_font_driver): Initalize `on' member to 0.
17850 (font_update_drivers): New function.
17851 (Fclear_font_cache): Check driver_list->on.
17852
17853 * frame.h (Qfont_backend): Extern it.
17854 (x_set_font_backend): Extern it.
17855
17856 * frame.c (Qfont_backend): New variable.
17857 (frame_parms): New element for font-backend.
17858 (x_set_font_backend): New function.
17859
17860 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17861 FontBackend frame parameter.
17862 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17863 x_set_font_backend.
17864
17865 * xfont.c (xfont_list): Don't try listing by :name property if the
17866 name is not for XLFD.
17867
178682008-02-01 Kenichi Handa <handa@m17n.org>
17869
17870 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17871 (LGLYPH_SET_TO): New macros.
17872 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17873 element of G is vector or not.
17874 (font_at): Extern it.
17875
17876 * font.c: Include window.h.
17877 (font_lispy_object): New function.
17878 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17879 end of valid glyph.
17880 (font_close_object): Fix getting (struct font *).
17881 (font_at): New function.
17882 (Ffont_get): If FONT is a font-object, get entity from it.
17883 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17884 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17885 range check.
17886 (Ffont_at): New function.
17887 (syms_of_font): Defsubr Sfont_at.
17888
17889 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17890 before the entry for Qcomposition.
17891 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17892 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17893 the font in gstring.
17894 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17895 LGLYPH_FORM (g) to detect the end of valid glyph.
17896 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17897 we are composing with gstring.
17898
17899 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17900 Check if adjustment is vector or not.
17901
17902 * Makefile.in (font.o): Make it depends on window.h.
17903
179042008-02-01 Kenichi Handa <handa@m17n.org>
17905
17906 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17907 adjustment is vector or not.
17908
179092008-02-01 Miles Bader <miles@gnu.org>
17910
17911 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17912
179132008-02-01 Kenichi Handa <handa@m17n.org>
17914
17915 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17916 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17917 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17918
17919 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17920 (DEVICE_DELTA): Fix typo.
17921 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17922 LGLYPH format.
17923
17924 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17925 the change of LGLYPH format.
17926
179272008-02-01 Kenichi Handa <handa@m17n.org>
17928
17929 * ftfont.c (ftfont_list): Fix typo.
17930 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17931
179322008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17933
17934 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17935
17936 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17937 xftface_info is non-NULL.
17938
179392008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17940
17941 * ftfont.c (ftfont_list): Move misplaced #endif.
17942
179432008-02-01 Kenichi Handa <handa@m17n.org>
17944
17945 * ftfont.c (ftfont_list): Pay attention to the case that
17946 FC_CAPABILITY is not defined.
17947
179482008-02-01 Kenichi Handa <handa@m17n.org>
17949
17950 * xftfont.c (xftfont_open): Set charset related members to -1.
17951
17952 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17953 QCname.
17954 (ftfont_open): Set charset related members to -1.
17955
17956 * fontset.c (Votf_script_alist): New variable.
17957 (syms_of_fontset): Initialize it.
17958 (fontset_font): Delete unused variable.
17959
17960 * fontset.h (Votf_script_alist): Extern it.
17961
17962 * font.c (font_find_for_lface): Optimize code.
17963
17964 * font.h (font_close_object, font_merge_old_spec): Extern them.
17965
179662008-02-01 Kenichi Handa <handa@m17n.org>
17967
17968 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17969 (syms_of_font): Initialize them.
17970 (font_pixel_size): Allow float value in dpi.
17971 (font_prop_validate_type): Delete.
17972 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17973 Change caller.
17974 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17975 (font_prop_validate_extra): Delete.
17976 (font_prop_validate_spacing): New function.
17977 (font_property_table): Add elements for all known properties.
17978 (get_font_prop_index): Rename from check_font_prop_name. New
17979 argument FROM. Change caller.
17980 (font_prop_validate): Validate all known properties.
17981 (font_put_extra): Delete argument force. Change caller.
17982 (font_expand_wildcards): Make it static. Fix the way of shrinking
17983 the possible range.
17984 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17985 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17986 Change caller.
17987 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17988 (font_parse_fcname): Delete argument merge. Fix parsing of point
17989 size. Don't validate properties values here. Change caller.
17990 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17991 (font_open_by_name): Delete unused variable.
17992 (Ffont_spec): Likewise. Validate property values.
17993 (Ffont_match_p): New function.
17994
17995 * font.h (QCscalable): Extern it.
17996 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17997
17998 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17999
18000 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18001 (xfont_list_pattern): New function.
18002 (xfont_list): Use xfont_list_pattern.
18003
180042008-02-01 Kenichi Handa <handa@m17n.org>
18005
18006 * font.h (Flist_fonts): EXFUN it.
18007
180082008-02-01 Jason Rumney <jasonr@gnu.org>
18009
18010 * w32term.c (w32_initialize): Add back smoothing_type and
18011 smoothing_enabled definitions.
18012
180132008-02-01 Kenichi Handa <handa@m17n.org>
18014
18015 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18016 s->face->font on determining underline position.
18017
180182008-02-01 Kenichi Handa <handa@m17n.org>
18019
18020 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18021 (font_has_char): Accept font-object too.
18022 (font_find_for_lface): Try at first with a size specified in face.
18023
180242008-02-01 Kenichi Handa <handa@m17n.org>
18025
18026 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18027 font_open_by_name.
18028
180292008-02-01 Kenichi Handa <handa@m17n.org>
18030
18031 * font.h (QCspacing, QCdpi): Extern them.
18032 (enum font_spacing): New enum.
18033 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18034
18035 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18036 (QCspacing, QCdpi): New variables.
18037 (syms_of_font): Initialize them.
18038 (font_pixel_size): New function.
18039 (font_put_extra): New function.
18040 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18041 in FONT_EXTRA.
18042 (font_parse_fcname): Handle enumerated values (e.g. bold).
18043 Fix handling font size. Add QCname property that contains only
18044 unknown properties.
18045 (font_score): Change argument. Change caller. Pay attention to
18046 FONT_PIXEL_SIZE_QUANTUM.
18047 (font_sort_entites, font_list_entities, font_find_for_lface)
18048 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18049 (Ffont_spec): Add QCname property that contains only unknown properties.
18050
18051 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18052 include weight in listing pattern, instead check weight of each
18053 listed font. Don't include scalable in pattern. Pay attention to
18054 FONT_PIXEL_SIZE_QUANTUM.
18055
180562008-02-01 Kenichi Handa <handa@m17n.org>
18057
18058 * font.c (font_parse_fcname): Fix parsing of point-size.
18059 (font_unparse_fcname): Produce symbolic names for style properties.
18060 (font_list_entities): Handle float size correctly.
18061 (font_open_by_name): Prefer `normal' property values if the name
18062 doesn't specify them.
18063
18064 * fontset.c (Finternal_char_font): Use font_get_name, not
18065 Ffont_xlfd_name.
18066
18067 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18068 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18069 pattern. Don't force scalable.
18070
18071 * xftfont.c (xftfont_open): For generating a name, start from
18072 96-byte buffer.
18073
180742008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18075
18076 * frame.h (x_new_fontset2): Fix prototype.
18077
180782008-02-01 Kenichi Handa <handa@m17n.org>
18079
18080 * font.h (struct font_driver): Delete member parse_name.
18081 (font_match_p, font_get_spec, font_parse_fcname)
18082 (font_unparse_fcname): Extern them.
18083 (font_get_name): Adjust prototype.
18084
18085 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18086 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18087 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18088 unnecessary checks for weight, slant, and swidth.
18089 (font_parse_fcname): New function.
18090 (font_unparse_fcname): New function.
18091 (font_parse_name): New function.
18092 (font_match_p): New function.
18093 (font_get_name): Change return value to Lisp string.
18094 (font_get_spec): New function.
18095 (Qunspecified, Qignore_defface): Don't extern them.
18096 (font_find_for_lface): Assume that LFACE is fully specified.
18097 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18098 object, use it for FACE.
18099 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18100 driver->parse_name.
18101 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18102
18103 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18104 prototype.
18105
18106 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18107 argument F. Don't call Fnew_fontset. Instead, directly call
18108 make_fontset.
18109
18110 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18111
18112 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18113 of x_new_fontset2.
18114
18115 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18116 (Qsans__serif): New variables.
18117 (ftfont_generic_family_list): New variable.
18118 (syms_of_ftfont): Initialize the above variables.
18119 (ftfont_pattern_entity): Delete argument NAME.
18120 (ftfont_list_generic_family): New function.
18121 (ftfont_parse_name): Delete this function.
18122 (ftfont_list): Try generic family only when FcFontList found no font.
18123 (ftfont_list_family): Fix args to FcObjectSetBuild.
18124
18125 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18126 object in attrs[LFACE_FONT_INDEX].
18127 (set_lface_from_font_name): Cancel all changes for font-backend.
18128 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18129 function.
18130 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18131 font object in QCfont attribute.
18132 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18133 (realize_default_face) [USE_FONT_BACKEND]: Call
18134 set_lface_from_font_and_fontset.
18135
18136 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18137 "fixed", and signal error here if no suitable font was found.
18138
18139 * xfont.c (xfont_parse_name): Delete this function.
18140
18141 * xftfont.c (xftfont_open): Change coding style of error
18142 handling. Generate fontconfig's fontname pattern.
18143
18144 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18145 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18146
18147 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18148 Both args FONTSET and FONT_OBJECT must be existing ones.
18149
181502008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18151
18152 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18153
181542008-02-01 Kenichi Handa <handa@m17n.org>
18155
18156 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18157
18158 * font.h (struct font): Fix typo.
18159
18160 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18161 XLFD_XXX_INDEX.
18162 (enum xlfd_field_mask): New enum.
18163 (intern_font_field): Changed argument. Change caller. If digits
18164 are followed by non-digits, return a symbol.
18165 (font_expand_wildcards): New function.
18166 (font_parse_xlfd): Fix wildcard handling.
18167 (Ffont_spec): If :name is specified, reflect the info in the other
18168 properties.
18169
18170 * ftfont.c (ftfont_pattern_entity): Fix typo.
18171 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18172 locale.
18173
181742008-02-01 Kenichi Handa <handa@m17n.org>
18175
18176 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18177
18178 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18179 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18180 registry doesn't specify encoding part.
18181 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18182 (font_open_by_name): At first try parsing the name.
18183 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18184 as Lisp symbols.
18185
18186 * fontset.c (reorder_font_vector): Pay attention to the case that
18187 the 3rd element of font_def is nil.
18188 (fontset_font): For the default fontset, append one more fontset
18189 elements for a script-based font specification. Don't add script
18190 attribute on finding a font.
18191 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18192 font name.
18193 (fontset_ascii_font): If a font can't be opened, return nil.
18194
18195 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18196 (ftfont_pattern_entity): New function.
18197 (ftfont_get_cache): Assume that freetype_font_cache is already
18198 initialized.
18199 (ftfont_list): Handle the case that a file is specified in font
18200 name. Use ftfont_pattern_entity to generate entities.
18201 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18202 (syms_of_ftfont): Initialize freetype_font_cache.
18203
18204 * xftfont.c (xftfont_open): Make the font name fontconfig's
18205 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18206 (xftfont_close): Free font->font.name if not NULL.
18207
18208 * xfont.c (xfont_list): If script is specified for a font, return
18209 null_vector.
18210 (xfont_list_family): Declare argument type.
18211
18212 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18213 name, set LFACE_FONT (lface) to nil.
18214
18215 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18216 return Qnil.
18217
182182008-02-01 Kenichi Handa <handa@m17n.org>
18219
18220 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18221 (standard_args): Add "-enable-font-backend".
18222
182232008-02-01 Kenichi Handa <handa@m17n.org>
18224
18225 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18226 (struct xftdraw_list, xftdraw_list): Delete them.
18227 (register_xftdraw, check_xftdraw): Delete them.
18228 (xftfont_prepare_face): Don't call register_xftdraw.
18229 (xftfont_done_face): Don't call check_xftdraw.
18230 (xftfont_draw): Get background color only when with_background is
18231 nonzero.
18232
18233 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18234
182352008-02-01 Kenichi Handa <handa@m17n.org>
18236
18237 These changes are for the new font handling codes.
18238
18239 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18240 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18241 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18242 (FONTSRC, FONTOBJ): New variables.
18243 (obj): Add $(FONTOBJ).
18244 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18245 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18246 @LIBOTF_LIBS@.
18247 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18248 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18249
18250 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18251
18252 * character.h (Vscript_representative_chars): Extern it.
18253
18254 * character.c (Vscript_representative_chars): New variable.
18255 (syms_of_character): Declare it as a Lisp variable.
18256
18257 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18258 enable_font_backend is nonzero, accept the composition method
18259 COMPOSITION_WITH_GLYPH_STRING.
18260
18261 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18262 enumeration COMPOSITION_WITH_GLYPH_STRING.
18263
18264 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18265 members clip_x, clip_y, clip_width, and clip_height.
18266 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18267
18268 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18269 --enable-font-backend. Call syms_of_font.
18270
18271 * fns.c (assoc_no_quit): New function.
18272
18273 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18274 (face_for_font, new_fontset_from_font)
18275 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18276
18277 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18278 (fontset_font, fontset_ascii, face_for_char)
18279 (make_fontset_for_ascii_face, Ffont_info)
18280 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18281 is nonzero, use font-backend mechanism.
18282 (find_font_encoding): Make it non-static.
18283 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18284 New functions.
18285
18286 * frame.h (struct frame): New members resx and resy.
18287 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18288 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18289
18290 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18291 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18292
18293 * lisp.h (assoc_no_quit): Extern it.
18294
18295 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18296 Through out the file, use FONT_INFO_FROM_FACE instead of
18297 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18298 rif->per_char_metric.
18299 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18300 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18301 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18302 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18303 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18304 nonzero, use font-backend mechanism.
18305 (get_per_char_metric): New function.
18306
18307 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18308 (set_lface_from_font_name)
18309 (set_font_frame_param, free_realized_face)
18310 (prepare_face_for_display, clear_face_gcs)
18311 (Finternal_set_font_selection_order, realize_x_face)
18312 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18313 font-backend mechanism.
18314 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18315 (load_face_font) [USE_FONT_BACKEND]: Abort.
18316 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18317 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18318
18319 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18320 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18321 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18322 nonzero, register all available font drivers. Call
18323 x_default_font_parameter for deciding a font.
18324 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18325
18326 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18327 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18328 (x_set_glyph_string_clipping_exactly)
18329 (x_compute_glyph_string_overhangs)
18330 (x_draw_glyph_string_foreground)
18331 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18332 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18333 enable_font_backend is nonzero, use font-backend mechanism.
18334 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18335
183362008-02-01 Kenichi Handa <handa@m17n.org>
18337
18338 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18339 system_eol_type.
18340 (syms_of_coding): Initialize system_eol_type.
18341
18342 * process.c (Fset_process_coding_system): Inherit system's eol
18343 format if necessary.
18344
183452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18346
18347 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18348
183492008-02-01 Kenichi Handa <handa@m17n.org>
18350
18351 * coding.c (decode_eol): Pay attention to buffer relocation in
18352 del_range_2.
18353 (decode_coding): Call decode_eol before restoring undo_list.
18354
183552008-02-01 Kenichi Handa <handa@m17n.org>
18356
18357 * charset.c (Fdefine_charset_internal): Fix setting of
18358 emacs_mule_bytes.
18359
183602008-02-01 Kenichi Handa <handa@m17n.org>
18361
18362 * keyboard.c (read_char): Check if C is a character or not before
18363 looking up Vkeyboard_translate_table.
18364
183652008-02-01 Kenichi Handa <handa@m17n.org>
18366
18367 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18368 condition to terminate the loop.
18369
183702008-02-01 Kenichi Handa <handa@m17n.org>
18371
18372 * coding.c (produce_composition): Compare charbuf[i] instead of
18373 args[i] against 0.
18374 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18375
183762008-02-01 Kenichi Handa <handa@m17n.org>
18377
18378 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18379 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18380 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18381 detect_coding.
18382 (emacs_mule_char): Handle old style (Emacs 20) component character
18383 of a composition.
18384 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18385 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18386 composition rule.
18387 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18388
183892008-02-01 Kenichi Handa <handa@m17n.org>
18390
18391 * coding.c (encode_coding_ccl): Allocate destination dynamically
18392 when necessary.
18393
183942008-02-01 Kenichi Handa <handa@m17n.org>
18395
18396 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18397 the loop. When quitted, show a proper error message.
18398
183992008-02-01 Kenichi Handa <handa@m17n.org>
18400
18401 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18402 src->clip_head and src->clip_tail temporarily instead of src->hl.
18403
18404 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18405 character sequence.
18406 (Fccl_execute_on_string): Use ASET, not XSET.
18407
184082008-02-01 Kenichi Handa <handa@m17n.org>
18409
18410 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18411
184122008-02-01 Kenichi Handa <handa@m17n.org>
18413
18414 * coding.c (decode_coding): Fix the condition of terminating the
18415 decoding loop.
18416
184172008-02-01 Kenichi Handa <handa@m17n.org>
18418
18419 * data.c (Faset): On setting a character bigger than 255 in a
18420 unibyte string, signal an error instead of make the string multibyte.
18421
184222008-02-01 Kenichi Handa <handa@m17n.org>
18423
18424 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18425 made by a mapping table.
18426
184272008-02-01 Kenichi Handa <handa@m17n.org>
18428
18429 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18430 not.
18431 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18432 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18433
18434 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18435 s->face is NULL or not.
18436
184372008-02-01 Kenichi Handa <handa@m17n.org>
18438
18439 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18440 (x_draw_glyph_string): Fix drawing of right_overhang and
18441 left_overhang around/on cursor.
18442
18443 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18444
184452008-02-01 Kenichi Handa <handa@m17n.org>
18446
18447 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18448
184492008-02-01 Kenichi Handa <handa@m17n.org>
18450
18451 * coding.c (Fdefine_coding_system_internal)
18452 (Fdefine_coding_system_alias): Avoid a duplicated element in
18453 Vcoding_system_alist.
18454
184552008-02-01 Kenichi Handa <handa@m17n.org>
18456
18457 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18458
18459 * coding.c (Qcoding_system_define_form): New variable.
18460 (syms_of_coding): Intern and staticpro it.
18461 (Fcoding_system_p): Check Qcoding_system_define_form.
18462 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18463
18464 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18465 Fcoding_system_p.
18466 (CHECK_CODING_SYSTEM): If ID is not available, call
18467 Fcheck_coding_system.
18468 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18469 Try also Fcheck_coding_system.
18470
184712008-02-01 Kenichi Handa <handa@m17n.org>
18472
18473 * coding.c (code_conversion_restore): GCPRO arg.
18474
184752008-02-01 Kenichi Handa <handa@m17n.org>
18476
18477 * character.c (lisp_string_width): Check multibyteness of STRING.
18478
184792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18480
18481 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18482 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18483 (decode_mac_font_name): Use decode_coding_c_string instead of
18484 decode_coding.
18485 (x_load_font): Initialize fontp->fontset to -1. Set
18486 fontp->encoding_type.
18487
184882008-02-01 Kenichi Handa <handa@m17n.org>
18489
18490 * search.c (search_buffer): Give up BM search on case-fold-search
18491 if one of a target character has a case-equivalence of different
18492 byte length even if that target charcter is an ASCII.
18493 (simple_search): Fix calculation of byte length of matched text.
18494 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18495
184962008-02-01 Kenichi Handa <handa@m17n.org>
18497
18498 * coding.c (decode_coding): Fix handling of invalid bytes.
18499
185002008-02-01 Kenichi Handa <handa@m17n.org>
18501
18502 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18503 Unicode characters.
18504
185052008-02-01 Kenichi Handa <handa@m17n.org>
18506
18507 * coding.c (encode_coding_object): If a pre-write-conversion
18508 function makes a new buffer, kill it.
18509
185102008-02-01 Kenichi Handa <handa@m17n.org>
18511
18512 * coding.c (QCascii_compatible_p): New variable.
18513 (syms_of_coding): Initialize it.
18514 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18515 calling string_char.
18516 (record_conversion_result): Add `default:' case.
18517 (coding_charset_list): Delete unused variable `coding_type'.
18518 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18519 property in the plist of the coding system.
18520 (Fcoding_system_put): Check QCascii_compatible_p.
18521
185222008-02-01 Miles Bader <miles@gnu.org>
18523
18524 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18525 removed calculation of frame `f', as it's now used.
18526
185272008-02-01 Kenichi Handa <handa@m17n.org>
18528
18529 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18530 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18531 (UNIDATA): New variable.
18532 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18533 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18534 $(RUN_TEMACS) unconditionally.
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18539 (admindir): New variable.
18540 ($(lispsource)international/charprop.el): New target.
18541
185422008-02-01 Miles Bader <miles@gnu.org>
18543
18544 * character.c (chars-in-region): Remove obsolete function.
18545 (syms_of_character): Remove its initialization.
18546
185472008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18548
18549 * w32select.c (validate_coding_system)
18550 (setup_windows_coding_system): New functions.
18551 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18552 setup_windows_coding_system.
18553 (setup_config, Fw32_get_clipboard_data): Use
18554 validate_coding_system.
18555 (Fx_selection_exists): Move call to setup_config to a place
18556 where signals are allowed.
18557
18558 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18559 (Fcheck_coding_system): Add declarations.
18560
185612008-02-01 Kenichi Handa <handa@m17n.org>
18562
18563 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18564
185652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18566
18567 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18568 string as the second argument for x_new_fontset.
18569
185702008-02-01 Kenichi Handa <handa@m17n.org>
18571
18572 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18573 (encode_coding_object): Use safe_call instead of call2.
18574
185752008-02-01 Kenichi Handa <handa@m17n.org>
18576
18577 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18578
18579 * Makefile.in (lisp): Include charprop.el.
18580
185812008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18582
18583 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18584 Not sure if it's unnecessary.
18585
185862008-02-01 Steven Tamm <steventamm@mac.com>
18587
18588 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18589 some possibly unnecessary fontset checking code that crashed
18590 when creating a new frame.
18591
185922008-02-01 Kenichi Handa <handa@m17n.org>
18593
18594 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18595 lookup_face.
18596
18597 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18598
18599 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18600
186012008-02-01 Kenichi Handa <handa@m17n.org>
18602
18603 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18604 (coding_charset_list): New function.
18605
18606 * coding.h (coding_charset_list): Extern it.
18607
186082008-02-01 Kenichi Handa <handa@m17n.org>
18609
18610 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18611 concatenation of family and registry.
18612
186132008-02-01 Kenichi Handa <handa@m17n.org>
18614
18615 * character.h (BYTE8_STRING): Fix typo.
18616
18617 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18618 string to multibyte (sync to HEAD).
18619
18620 * casefiddle.c (casify_region): Handle changes in byte-length
18621 using replace_range_2 (sync to HEAD).
18622
186232008-02-01 Andreas Schwab <schwab@suse.de>
18624
18625 * chartab.c (map_char_table): GCPRO table and arg.
18626
186272008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18630 already at limit.
18631
186322008-02-01 Kenichi Handa <handa@m17n.org>
18633
18634 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18635 instead of fast_c_string_match_ignore_case.
18636 (find_font_encoding): Change argument to Lisp_Object. Use
18637 fast_string_match_ignore_case instead of
18638 fast_c_string_match_ignore_case. Change caller.
18639
186402008-02-01 Kenichi Handa <handa@m17n.org>
18641
18642 * xdisp.c (get_next_display_element): In unibyte case, decide to
18643 display in octal form by checking a character by
18644 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18645
18646 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18647
18648 * character.c (unibyte_has_multibyte_table): New variable.
18649
18650 * character.h (unibyte_has_multibyte_table): Extern it.
18651 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18652
186532008-02-01 Kenichi Handa <handa@m17n.org>
18654
18655 * coding.c (encode_coding_iso_2022): Fix handling of charset
18656 annotation.
18657
186582008-02-01 Kenichi Handa <handa@m17n.org>
18659
18660 * coding.c (setup_coding_system): If coding_system is nil, use
18661 Qundecided.
18662 (Fterminal_coding_system): Return nil if terminal coding system is
18663 `undecided'.
18664 (syms_of_coding): Define coding-system `undecided' here. Setup
18665 terminal_coding as `undecided'.
18666
186672008-02-01 Kenichi Handa <handa@m17n.org>
18668
18669 * xdisp.c (message_dolog, set_message_1): Call
18670 unibyte_char_to_multibyte with arg type int.
18671
18672 * lread.c (read1): Fix reading of a char-table.
18673
18674 * print.c (print_object): Include sub char-table in circularities
18675 detection.
18676
186772008-02-01 Kenichi Handa <handa@m17n.org>
18678
18679 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18680 Append the found sequences in car of ARGS instead of prepending.
18681
186822008-02-01 Kenichi Handa <handa@m17n.org>
18683
18684 * fileio.c (report_file_error): Make a unibyte string from
18685 strerror (errorno).
18686 (Fsubstitute_in_file_name): Fix the arg to
18687 unibyte_char_to_multibyte. It is evaluated twice.
18688
186892008-02-01 Kenichi Handa <handa@m17n.org>
18690
18691 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18692
186932008-02-01 Kenichi Handa <handa@m17n.org>
18694
18695 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18696 BOM is not found.
18697 (detect_coding, detect_coding_system): Optimization for ISO-2022
18698 when no 8-bit data is found.
18699
187002008-02-01 Jason Rumney <jasonr@gnu.org>
18701
18702 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18703
187042008-02-01 Kenichi Handa <handa@m17n.org>
18705
18706 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18707 CHARS.
18708
187092008-02-01 Steven Tamm <steventamm@mac.com>
18710
18711 * macterm.c (mac_encode_char): Add charset argument and update
18712 to use encoding_type.
18713 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18714 switch to pure fontset.
18715 (decode_mac_font_name): Temporarily remove decoding.
18716 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18717 (x_load_font): Temporarily remove encoding.
18718
187192008-02-01 Kenichi Handa <handa@m17n.org>
18720
18721 * xfaces.c (Fface_font): If frame is not on a window system,
18722 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18723 refer to face->font.
18724 (split_font_name_into_vector, build_font_name_from_vector)
18725 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18726 when HAVE_WINDOW_SYSTEM is defined.
18727
187282008-02-01 Kenichi Handa <handa@m17n.org>
18729
18730 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18731 (x_produce_glyphs): Fix setting of members of cmp in case
18732 cmp->glyph_len is zero.
18733
18734 * fontset.c (Fset_fontset_font): Fix docstring.
18735 (Ffontset_info): Make it backward compatible. New arg ALL.
18736
187372008-02-01 Kim F. Storm <storm@cua.dk>
18738
18739 * process.c (read_process_output): Grow decoding_buf when needed;
18740 this could cause a crash in allocate_string and compact_small_strings.
18741
187422008-02-01 Kenichi Handa <handa@m17n.org>
18743
18744 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18745
187462008-02-01 Kenichi Handa <handa@m17n.org>
18747
18748 * coding.c (setup_coding_system): Set coding->common_flags
18749 correctly for raw-text.
18750 (consume_chars): On encoding unibyte text by raw-text, don't check
18751 multibyte form.
18752 (encode_coding): On encoding by raw-text, never use translation tables.
18753
18754 * fileio.c (e_write): Short cut for the case of no encoding.
18755
187562008-02-01 Kenichi Handa <handa@m17n.org>
18757
18758 * coding.c (detect_coding, detect_coding_system): Delete unused
18759 variables.
18760
187612008-02-01 Kenichi Handa <handa@m17n.org>
18762
18763 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18764 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18765
187662008-02-01 Kenichi Handa <handa@m17n.org>
18767
18768 * coding.c (Ffind_coding_systems_region_internal): Include
18769 raw-text and no-conversion in the result.
18770
187712008-02-01 Kenichi Handa <handa@m17n.org>
18772
18773 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18774 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18775 FONT_DEF.
18776 (font_def_arg, add_arg, from_arg, to_arg): New args.
18777 (set_fontset_font): Change argument.
18778 (Fset_fontset_font): Fix for the case that TARGET is a script
18779 name and charset name.
18780 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18781
187822008-02-01 Kenichi Handa <handa@m17n.org>
18783
18784 * fontset.c (fontset_font): Rename from fontset_face. Change return
18785 value.
18786 (face_suitable_for_char_p, face_for_char): Adjust for the change
18787 of fontset_font.
18788 (make_fontset_for_ascii_face): Fix setting of the fontset element
18789 for ASCII.
18790 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18791 to get a font name.
18792 (Ffontset_info): Adjust for the change of fontset_font.
18793
18794 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18795
18796 * character.h (LEADING_CODE_LATIN_1_MIN)
18797 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18798
187992008-02-01 Kenichi Handa <handa@m17n.org>
18800
18801 * editfns.c (check_translation): New function.
18802 (Ftranslate_region_internal): Handle M:N mapping.
18803
188042008-02-01 Kenichi Handa <handa@m17n.org>
18805
18806 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18807
188082008-02-01 Kenichi Handa <handa@m17n.org>
18809
18810 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18811 goto invalid_code.
18812 (decode_coding_iso_2022): Fix handling of invalid designation.
18813
18814 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18815 after calling code_conversion_save.
18816
188172008-02-01 Kenichi Handa <handa@m17n.org>
18818
18819 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18820
18821 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18822
18823 * fontset.c: Include "intervals.h".
18824 (fontset_face): Fix comparing of Lisp_Objects.
18825 (free_face_fontset, new_fontset_from_font_name): Fix
18826 Lisp_Object/int mixup.
18827
18828 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18829
18830 * coding.c: Add many prototypes for static functions.
18831 (get_translation_table): Allow max_lookup to be NULL.
18832 (decode_coding, Ffind_coding_systems_region_internal)
18833 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18834 get_translation_table with max_lookup NULL.
18835
188362008-02-01 Kenichi Handa <handa@m17n.org>
18837
18838 * coding.c (get_translation_table): Declare it as Lisp_Object.
18839 (LOOKUP_TRANSLATION_TABLE): New macro.
18840 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18841 instead of CHAR_TABLE_REF.
18842
188432008-02-01 Kenichi Handa <handa@m17n.org>
18844
18845 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18846 annotation data format.
18847 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18848 Change arguments FROM and TO to single argument NCHARS. Change caller.
18849 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18850 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18851 (decode_coding_ccl, decode_coding_charset): Pay attention to
18852 coding->charbuf_used.
18853 (get_translation): New function.
18854 (produce_chars): New arguments translation_table and last_block.
18855 Translate characters here. Return number of carryover chars.
18856 Change caller.
18857 (produce_composition): New argument pos. Change caller.
18858 Adjust for the change of annotation data format.
18859 (produce_charset, produce_annotation): Likewise.
18860 (decode_coding, encode_coding): Don't call translate_chars.
18861 (consume_chars): New arg translation_table. Change caller.
18862 (translate_chars): Delete.
18863 (syms_of_coding): Make translation-table's number of extra slots 2.
18864
188652008-02-01 Kenichi Handa <handa@m17n.org>
18866
18867 * search.c (simple_search): Fix setting this_pos_byte in backward
18868 search.
18869
18870 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18871 byte sequence.
18872 (detect_coding_ccl): Fix setting of the variable valids.
18873
188742008-02-01 Kenichi Handa <handa@m17n.org>
18875
18876 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18877
18878 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18879
18880 * editfns.c (Ftranslate_region_internal): Rename from
18881 Ftranslate_region. Accept a char-table in TABLE.
18882 (syms_of_editfns): Defsubr Stranslate_region_internal.
18883
18884 * xfaces.c (set_lface_from_font_name): If a font is specified for
18885 a frame, generate a fontset from the font.
18886 (build_scalable_font_name): If the scalable font is requested for
18887 a specific size, don't change that size.
18888 (try_font_list): Try a scalable font also in the case that a
18889 pattern string is specified.
18890
188912008-02-01 Kenichi Handa <handa@m17n.org>
18892
18893 * xfaces.c (Fface_font): New optional arg CHARACTER.
18894
188952008-02-01 Kenichi Handa <handa@m17n.org>
18896
18897 * charset.h (CHARSET_OFFSET): New macro.
18898
188992008-02-01 Kenichi Handa <handa@m17n.org>
18900
18901 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18902
18903 * fontset.c (fontset_face): Handle the case that repertory is a
18904 char-table.
18905 (find_font_encoding): Return nil for unknown encoding.
18906 (Fset_fontset_font): Ignore a font of unknown encoding.
18907
189082008-02-01 Kenichi Handa <handa@m17n.org>
18909
18910 * keymap.c (describe_vector): Handle default value of a char table.
18911
18912 * fontset.c (fontset_face): Handle fallback fonts correctly.
18913 (Ffontset_info): Return infomation about fallback fonts.
18914
189152008-02-01 Kenichi Handa <handa@m17n.org>
18916
18917 * fontset.c (FONTSET_DEFAULT): New macro.
18918 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18919 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18920 the case that it is nil.
18921 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18922 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18923
18924 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18925 subset or superset.
18926
189272008-02-01 Kenichi Handa <handa@m17n.org>
18928
18929 * emacs.c (main): Call init_charset after syms_of_XXX.
18930
18931 * charset.c (Vcharset_map_directory): Delete.
18932 (Vcharset_map_path): New variable.
18933 (load_charset_map_from_file): Use Vcharset_map_path instead.
18934 (init_charset): Initialize Vcharset_map_path.
18935 (syms_of_charset): Delete declaration of "charset-map-directory",
18936 add declaration of "charset-map-path".
18937
189382008-02-01 Kenichi Handa <handa@m17n.org>
18939
18940 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18941 ASCII only string.
18942
18943 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18944
18945 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18946 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18947
189482008-02-01 Kenichi Handa <handa@m17n.org>
18949
18950 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18951
18952 * coding.c (QCmnemonic, QCdefalut_char)
18953 (QCdecode_translation_table, QCencode_translation_table)
18954 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18955 (get_translation_table): Return a list of translation tables if
18956 necessary.
18957 (decode_coding): Call get_translation_table with ENCODEP 0.
18958 (char_encodable_p): If translation_table is non-nil, always call
18959 translate_char.
18960 (Fdefine_coding_system_internal): Accept list of translation
18961 tables as :encode-translation-table and :decode-translation-table.
18962 (Fcoding_system_put): New function.
18963 (syms_of_coding): Declare new symbols. Defsubr
18964 Scoding_system_put.
18965 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18966 typically JISX0212.
18967
18968 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18969 when the charset is superset type.
18970
18971 * character.c (translate_char): Accept list of translation tables.
18972
189732008-02-01 Kenichi Handa <handa@m17n.org>
18974
18975 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18976 (CODING_ATTR_TRANS_TBL): New macro.
18977
18978 * coding.c (get_translation_table): New function.
18979 (translate_chars): Fix the bug of skipping annotation data.
18980 (decode_coding, encode_coding): Utilize get_translation_table.
18981 (char_encodable_p, Funencodable_char_position): Translate char if
18982 necessary.
18983 (Ffind_coding_systems_region_internal)
18984 (Fcheck_coding_systems_region): Setup translation table for encode
18985 in a coding system attribute vector in advance.
18986 (Fdefine_coding_system_internal): Allow a symbol as translation
18987 table. For shift-jis type coding system, allow 4th charset.
18988
189892008-02-01 Kenichi Handa <handa@m17n.org>
18990
18991 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18992
18993 * xdisp.c (get_next_display_element): Pass -1 as POS to
18994 FACE_FOR_CHAR if displaying a C-string.
18995
189962008-02-01 Kenichi Handa <handa@m17n.org>
18997
18998 * composite.c (get_composition_id): Handle xoff and yoff in a
18999 composition rule.
19000
19001 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19002 (struct composition): New member lbearing and rbearing.
19003
19004 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19005 (x_get_glyph_overhangs): Handle a composition glyph.
19006 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19007
19008 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19009 composition glyph.
19010
190112008-02-01 Kenichi Handa <handa@m17n.org>
19012
19013 * print.c: Include charset.h.
19014 (Vprint_charset_text_property): New variable.
19015 (Qdefault): Extern it.
19016 (PRINT_STRING_NON_CHARSET_FOUND)
19017 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19018 (print_check_string_result): New variable.
19019 (print_check_string_charset_prop): New function.
19020 (print_prune_charset_plist): New variable.
19021 (print_prune_string_charset): New function.
19022 (print_object): Call print_prune_string_charset if
19023 Vprint_charset_text_property is not t.
19024 (print_interval): Print nothing if interval->plist is nil.
19025 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19026 variable. Init and staticpro print_prune_charset_plist.
19027
190282008-02-01 Kenichi Handa <handa@m17n.org>
19029
19030 * fontset.c (new_fontset_from_font_name): Use the specified font
19031 for all characters in the new fontset.
19032
19033 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19034 OBJECT args.
19035
19036 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19037 OBJECT args for composition too.
19038
19039 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19040 OBJECT args.
19041
190422008-02-01 Kenichi Handa <handa@m17n.org>
19043
19044 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19045
19046 * fontset.c (reorder_font_vector): Adjust for the change of
19047 FONT_DEF format.
19048 (fontset_face): New arg id. Change caller.
19049 (face_for_char): New args pos and object.
19050 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19051 (fs_query_fontset): Check NAME by Fassoc too.
19052 (Fset_fontset_font): Allow non-XLFD font name.
19053 (Ffontset_info): Adjust for the change of FONT_DEF format.
19054
19055 * fontset.h (face_for_char): Adjust prototype.
19056
19057 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19058 (append_space, extend_face_to_end_of_line)
19059 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19060 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19061
19062 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19063 POS and OBJECT args.
19064
19065 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19066 POS and OBJECT args.
19067
190682008-02-01 Jason Rumney <jasonr@gnu.org>
19069
19070 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19071 of GlobalAlloc'ed memory.
19072
190732008-02-01 Kenichi Handa <handa@m17n.org>
19074
19075 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19076
19077 * charset.h (charset_table_used): Delete extern.
19078
19079 * charset.c (charset_table_used): Make it static.
19080 (map_charset_chars): Fix args to c_function with.
19081
19082 * chartab.c (map_sub_char_table_for_charset): Fix args to
19083 c_function with.
19084
19085 * coding.h (enum coding_result_code): Delete
19086 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19087
19088 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19089 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19090 (Vlast_code_conversion_error): New variables.
19091 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19092 (ONE_MORE_BYTE): Record error if any instead of signaling an
19093 error. If non-ASCII multibyte char is found, return the negative
19094 value of the code. All callers changed to check it.
19095 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19096 (record_conversion_result): New function. Change all codes setting
19097 coding->result to call this function.
19098 (detect_coding_utf_8, decode_coding_utf_8)
19099 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19100 Don't use the local variable incomplete.
19101 (emacs_mule_char): Change the second arg to `const'.
19102 (decode_coding): Fix of flushing out unprocessed data.
19103 (make_conversion_work_buffer): Fix making of a work buffer.
19104 (decode_coding_object): Return coding->dst_object.
19105
19106 * fontset.c (set_fontset_font): Fix args.
19107
19108 * lisp.h (CHARACTERBITS): Define as 22.
19109
19110 * process.c (send_process): Be sure to set coding->src_multibyte.
19111
19112 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19113
191142008-02-01 Kenichi Handa <handa@m17n.org>
19115
19116 * xdisp.c (handle_auto_composed_prop): Give limit to
19117 Fnext_single_char_property_change.
19118
191192008-02-01 Kenichi Handa <handa@m17n.org>
19120
19121 * composite.c (syms_of_composite): Don't make the composition hash
19122 table weak.
19123
19124 * fontset.c (Fset_fontset_font): Fix docstring.
19125
19126 * lisp.h (detect_coding_system): Adjust prototype.
19127
19128 * fileio.c (kill_workbuf_unwind): Delete this function.
19129 (Finsert_file_contents): Adjust the call of detect_coding_system.
19130 Get conversion_buffer by code_conversion_save. Use the macro
19131 CODING_MAY_REQUIRE_DECODING. After decoding, update
19132 coding_system.
19133
19134 * coding.h (make_conversion_work_buffer): Delete extern.
19135 (code_conversion_save): Extern it.
19136
19137 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19138 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19139 (decode_coding_utf_8): Don't do eol converion.
19140 (detect_coding_utf_16): Check coding->src_chars, not
19141 coding->src_bytes. Add heuristics for those that have no signature.
19142 (decode_coding_emacs_mule, decode_coding_iso_2022)
19143 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19144 Don't do eol converion.
19145 (adjust_coding_eol_type): Return a new coding system.
19146 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19147 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19148 each change.
19149 (decode_coding): Pay attention to undo_list. Do eol conversion for
19150 all types of coding-systems (if necessary).
19151 (Vcode_conversion_work_buf_list): Delete it.
19152 (Vcode_conversion_reused_workbuf): Rename from
19153 Vcode_conversion_reused_work_buf.
19154 (Vcode_conversion_workbuf_name): New variable.
19155 (reused_workbuf_in_use): New variable.
19156 (make_conversion_work_buffer): Delete the arg DEPTH.
19157 (code_conversion_restore): Change argument to cons.
19158 (code_conversion_save): Delete the argument BUFFER. Change callers.
19159 (detect_coding_system): New argument src_chars. Change callers.
19160 Fix for utf-16 detection.
19161 (init_coding_once): Don't use ISO_carriage_return.
19162 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19163 reused_workbuf_in_use.
19164
191652008-02-01 Kenichi Handa <handa@m17n.org>
19166
19167 * keymap.c (store_in_keymap): Pay attention to the case that idx
19168 is a cons specifying a character range.
19169
191702008-02-01 Kenichi Handa <handa@m17n.org>
19171
19172 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19173 HANDLED_RECOMPUTE_PROPS.
19174
19175 * coding.c (Fdefine_coding_system_internal): Fix checking of
19176 ascii compatibility.
19177
191782008-02-01 Kenichi Handa <handa@m17n.org>
19179
19180 * charset.c (find_charsets_in_text): Delete unused locale variable.
19181 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19182
19183 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19184 Resync charset_list to Vemacs_mule_charset_list.
19185
19186 * keymap.c (store_in_keymap): Pay attention to the case that idx
19187 is a cons specifying a character range.
19188
191892008-02-01 Kenichi Handa <handa@m17n.org>
19190
19191 * composite.c (update_compositions): Bind inhibit-read-only, etc
19192 to t before calling remove-list-of-text-properties.
19193
19194 * print.c (print_object): Always print ASCII chars as is.
19195
191962008-02-01 Kenichi Handa <handa@m17n.org>
19197
19198 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19199
19200 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19201 is a char table.
19202
192032008-02-01 Kenichi Handa <handa@m17n.org>
19204
19205 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19206
192072008-02-01 Kenichi Handa <handa@m17n.org>
19208
19209 * xfaces.c (set_lface_from_font_name): Fix for the case that
19210 FONTNAME is not fontset name.
19211
192122008-02-01 Kenichi Handa <handa@m17n.org>
19213
19214 * fns.c (base64_encode_1): Fix previous change.
19215
192162008-02-01 Kenichi Handa <handa@m17n.org>
19217
19218 * fontset.c (set_fontset_font): New function.
19219 (Fset_fontset_font): If a font is specified for a charset, use
19220 map_charset_chars to store the font spec in a fontset.
19221
192222008-02-01 Kenichi Handa <handa@m17n.org>
19223
19224 * fontset.c (fontset_face): Create a fallback fontset on demand.
19225 (make_fontset): Don't create a fallback fontset here.
19226 (free_face_fontset): Free a fallback fontset (if any) too.
19227 (n_auto_fontsets): Delete this variable.
19228 (auto_fontset_alist): New variable.
19229 (new_fontset_from_font_name): Check auto_fontset_alist.
19230 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19231 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19232 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19233 Defsubr Sfontset_list_all.
19234
192352008-02-01 Kenichi Handa <handa@m17n.org>
19236
19237 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19238
192392008-02-01 Kenichi Handa <handa@m17n.org>
19240
19241 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19242
192432008-02-01 Kenichi Handa <handa@m17n.org>
19244
19245 * editfns.c (Fgoto_char): Fix docstring.
19246
192472008-02-01 Kenichi Handa <handa@m17n.org>
19248
19249 * insdel.c (insert_from_gap): Adjust intervals correctly.
19250
192512008-02-01 Jason Rumney <jasonr@gnu.org>
19252
19253 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19254 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19255 (w32_initialize): Try to load it.
19256 (x_get_font_repertory): Use it if available.
19257 (w32_encode_char): Add shortcut for unicode output.
19258
19259 * w32fns.c (w32_load_system_font): Default charset to -1.
19260 (x_to_w32_charset): Match all fonts for unicode.
19261 (w32_to_x_charset): New parameter matching. Don't return partial
19262 or wildcard charsets.
19263 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19264 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19265 (w32_to_x_font): Match charset to real charset.
19266 (enum_font_cb2): Always list unicode versions.
19267
19268 * makefile.w32-in (temacs): Increase EMHEAP.
19269
192702008-02-01 Jason Rumney <jasonr@gnu.org>
19271
19272 * w32term.c (w32_encode_char): New charset parameter.
19273 font_info.encoding becomes encoding_type.
19274 (x_get_font_repertory): New function. Warning: stub only!
19275 (x_new_font): Return quickly if font already set.
19276 (x_new_fontset): fontsetname parameter is Lisp_Object.
19277 Use new fs_query_fontset. Try new_fontset_from_font_name.
19278 Use fontset_name for return value.
19279
19280 * w32term.h: Declare x_get_font_repertory.
19281
19282 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19283 place of find_charset_in_text. Use encode_coding_object in place
19284 of encode_coding.
19285 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19286 decode_coding.
19287
19288 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19289 of x_new_fontset.
19290 (w32_load_system_font): Initialize charset as unicode.
19291 font_info.encoding becomes encoding_type.
19292 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19293 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19294 (syms_of_w32fns): Set get_font_repertory_func.
19295
19296 * w32console.c: Include character.h. Use terminal_encode_buffer
19297 from term.c.
19298 (write_glyphs): Use new version of encode_terminal_code. Use
19299 encode_coding_object in place of encode_coding.
19300
19301 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19302 encoding becomes encoding_type.
19303
19304 * term.c (terminal_encode_buffer): Make externally visible.
19305
19306 * makefile.w32-in: Add character.h dependancies.
19307 (character.o, chartab.o): New targets.
19308
193092008-02-01 Kenichi Handa <handa@m17n.org>
19310
19311 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19312 CODING_ID_EOL_TYPE.
19313
193142008-02-01 Andreas Schwab <schwab@suse.de>
19315
19316 * coding.c (produce_chars): Revert last change.
19317
193182008-02-01 Kenichi Handa <handa@m17n.org>
19319
19320 * charset.h (charset_unicode): Extern it.
19321
19322 * charset.c (string_xstring_p): Check by (C >= 0x100).
19323 (find_charsets_in_text): Change format of the arc CHARSETS. New
19324 arg MULTIBYTE.
19325 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19326 change of find_charsets_in_text.
19327 (Fsplit_char): Fix doc. Never return unknown.
19328
19329 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19330
19331 * coding.c (Fdefine_coding_system_alias): Update
19332 Vcoding_system_list.
19333
19334 * fontset.c (load_font_get_repertory): Pay attention to the case
19335 that ENCODING of a font is specified by a char-table.
19336
19337 * xterm.c (x_get_font_repertory): Handle the case that the
19338 encoding of font is other than Unicode.
19339
193402008-02-01 Kenichi Handa <handa@m17n.org>
19341
19342 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19343 if a character is encodable by the terminal coding system. If
19344 not, produces proper number of `?'s. Update
19345 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19346 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19347
193482008-02-01 Kenichi Handa <handa@m17n.org>
19349
19350 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19351 variables.
19352 (encode_terminal_code): Change argument. Encode multiple
19353 characters at once. Store the result of encoding in
19354 terminal_encode_buffer.
19355 (write_glyphs, insert_glyphs): Adjust for the change of
19356 encode_terminal_code.
19357 (term_init): Initialize terminal_encode_buffer and
19358 terminal_encode_buf_size.
19359
19360 * coding.c (consume_chars): If coding->src_object is nil, don't
19361 check annotation.
19362
193632008-02-01 Kenichi Handa <handa@m17n.org>
19364
19365 * character.c (char_string): Use ASCII_CHAR_P instead of
19366 SINGLE_BYTE_CHAR_P.
19367
193682008-02-01 Kenichi Handa <handa@m17n.org>
19369
19370 * xdisp.c (handle_auto_composed_prop): Check if the last
19371 characters of auto-composed region is newly composed with the
19372 following characters.
19373 (handle_composition_prop): Fix checking of point being inside
19374 composition.
19375
193762008-02-01 Kenichi Handa <handa@m17n.org>
19377
19378 * fns.c (concat): Don't change multibyteness of the result by
19379 concatenating an 8-bit character.
19380
19381 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19382 multibyteness of the result when newelt is an 8-bit character.
19383
193842008-02-01 Dave Love <fx@gnu.org>
19385
19386 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19387 EMACS_INT.
19388
19389 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19390
19391 * xfaces.c (face_numeric_value): Declare dim size_t.
19392 (Finternal_lisp_face_equal_p): Remove unused f.
19393
19394 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19395 (MATRIX_ROW): Remove unused vars.
19396 (draw_glyphs, x_insert_glyphs, fast_find_position)
19397 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19398 byte/char counts.
19399
19400 * regex.c (regex_compile): Remove unused var.
19401
19402 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19403
19404 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19405 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19406
19407 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19408
19409 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19410
19411 * fileio.c (Fwrite_region): Remove unused var.
19412
19413 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19414 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19415
19416 * composite.c (Fremove_list_of_text_properties): Declare.
19417
19418 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19419 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19420 (coding_inherit_eol_type): Remove unused attrs.
19421 (detect_coding): Cast arg of detect_eol.
19422
19423 * charset.c (syms_of_charset): Remove unused var p.
19424 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19425 byte/char counts.
19426
19427 * casetab.c (set_case_table): Remove unused var.
19428
19429 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19430 unused vars.
19431
194322008-02-01 Dave Love <fx@gnu.org>
19433
19434 * xterm.c (x_bitmap_mask): Declare.
19435
194362008-02-01 Dave Love <fx@gnu.org>
19437
19438 * xterm.c (x_term_init): Fix type error.
19439
19440 * lisp.h: Add Funibyte_char_to_multibyte.
19441
19442 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19443 (Fset_coding_system_priority): Doc fix.
19444
19445 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19446
19447 * indent.c (check_composition): Make start and end EMACS_INT.
19448
19449 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19450
19451 * xdisp.c (handle_composition_prop, check_point_in_composition):
19452 Make buffer positions EMACS_INT.
19453
19454 * composite.c (find_composition, run_composition_function)
19455 (update_compositions, Ffind_composition_internal): Make buffer
19456 positions EMACS_INT.
19457
19458 * composite.h (find_composition, update_compositions): Make
19459 position args EMACS_INT.
19460
19461 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19462
19463 * intervals.c (get_property_and_range):
19464 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19465
19466 * unexalpha.c: Don't include varargs.h.
19467
194682008-02-01 Dave Love <fx@gnu.org>
19469
19470 * coding.h (ENCODE_UTF_8): New.
19471
19472 * Makefile.in (gtkutil.o): Depend on coding.h.
19473
19474 * coding.c (Fset_coding_system_priority): Doc fix.
19475
194762008-02-01 Kenichi Handa <handa@m17n.org>
19477
19478 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19479 the case of auto saving.
19480
194812008-02-01 Andreas Schwab <schwab@suse.de>
19482
19483 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19484 `range' from GC.
19485
194862008-02-01 Kenichi Handa <handa@m17n.org>
19487
19488 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 * fileio.c (choose_write_coding_system): Return a decided coding system.
19493 (Fwrite_region): Set Vlast_coding_system_used to the return value
19494 of choose_write_coding_system.
19495
194962008-02-01 Kenichi Handa <handa@m17n.org>
19497
19498 * charset.c (Fset_charset_priority): Pay attention to duplicated
19499 arguments.
19500
19501 * coding.c (QCcategory): New variable.
19502 (syms_of_coding): Defsym it. Set all elements of
19503 Vcoding_category_table and their symbol values.
19504 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19505 coding-category-XXX, and coding-category-list.
19506 (Fdefine_coding_system_internal): Add category in the plist.
19507
195082008-02-01 Kenichi Handa <handa@m17n.org>
19509
19510 * callproc.c (Fcall_process): Handle carryover correctly.
19511
19512 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19513 (raw_text_coding_system): Check NILP (coding_system).
19514 (coding_inherit_eol_type): Check NILP (coding_system) and
19515 NILP (parent).
19516 (consume_chars): Fix for the case of raw-text.
19517
19518 * process.c (read_process_output): Handle carryover correctly.
19519
195202008-02-01 Dave Love <fx@gnu.org>
19521
19522 * regex.c (re_search_2): Fix last change.
19523
195242008-02-01 Kenichi Handa <handa@m17n.org>
19525
19526 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19527 target_multibyte. Even in a unibyte case, return a converted
19528 multibyte char.
19529 (GET_CHAR_AFTER): New macro.
19530 (PATFETCH): Translate via multibyte char.
19531 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19532 (SETUP_MULTIBYTE_RANGE): New macro.
19533 (regex_compile): Setup compiled code so that its multibyteness
19534 matches that of a target. Fix the handling of "[X-YZ]" using
19535 SETUP_MULTIBYTE_RANGE.
19536 (analyse_first) <charset>: For filling fastmap for all multibyte
19537 characters, don't check by BASE_LEADING_CODE_P.
19538 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19539 the same as RE_MULTIBYTE_P (bufp) now.
19540 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19541 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19542 (TRANSLATE_VIA_MULTIBYTE): New macro.
19543 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19544 It is the same as RE_MULTIBYTE_P (bufp) now.
19545 <exactn>: Translate via multibyte.
19546 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19547 translate it.
19548 <charset, charset_not>: Fetch a character by
19549 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19550 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19551 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19552 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19553 by GET_CHAR_AFTER.
19554 (bcmp_translate): Likewise.
19555
19556 * search.c (compile_pattern): Check the member target_multibyte,
19557 not the member multibyte of buf.
19558
19559 * lread.c (read1): While reading a string, set force_singlebyte
19560 and force_multibyte correctly.
19561
19562 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19563 up of unibyte_to_multibyte_table.
19564
195652008-02-01 Kenichi Handa <handa@m17n.org>
19566
19567 * coding.c (setup_coding_system): If coding has
19568 post-read-conversion or pre-write-conversion, set
19569 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19570 respectively.
19571 (decode_coding_gap): Run post-read-conversion if any.
19572
19573 * fileio.c (Finsert_file_contents): Even if we read into a
19574 unibyte buffer, check if we must decode the result or not.
19575
195762008-02-01 Kenichi Handa <handa@m17n.org>
19577
19578 * coding.c (make_conversion_work_buffer): Change the work buffer
19579 name to the same one as that of Emacs 21.
19580
195812008-02-01 Kenichi Handa <handa@m17n.org>
19582
19583 * coding.h (make_conversion_work_buffer): Adjust prototype.
19584 (code_conversion_restore): Don't extern it.
19585
19586 * coding.c (detected_mask): Delete unused variable.
19587 (decode_coding_iso_2022): Pay attention to the byte sequence of
19588 CTEXT extended segment, and retain those bytes as is.
19589 (decode_coding_ccl): Delete unused variable `valids'.
19590 (setup_coding_system): Delete unused variable `category'.
19591 (consume_chars): Delete unused variable `category'. Make it work
19592 for non-multibyte case.
19593 (make_conversion_work_buffer): Change argument.
19594 (saved_coding): Delete unused variable.
19595 (code_conversion_restore): Don't check saved_coding->destination.
19596 (code_conversion_save): New function.
19597 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19598 instead of record_unwind_protect.
19599 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19600 (detect_coding_system): Delete unused variable `mask'.
19601 (Fdefine_coding_system_internal): Delete unused variable id.
19602
19603 * fileio.c (kill_workbuf_unwind): New function.
19604 (Finsert_file_contents): On replacing, call
19605 make_conversion_work_buffer with correct args, and call
19606 record_unwind_protect with the first arg kill_workbuf_unwind.
19607
19608 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19609
196102008-02-01 Kenichi Handa <handa@m17n.org>
19611
19612 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19613 (fontset_add): Fix for the case that TO is less than TO1.
19614 (Ffontset_info): Don't use fallback fontset on checking the
19615 default fontset.
19616 (dump_fontset): New function for debugging.
19617
19618 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19619 coding_type is Qcharset.
19620
196212008-02-01 Kenichi Handa <handa@m17n.org>
19622
19623 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19624 (map_char_table): Don't inherit the value from the parent on
19625 initializing VAL. Adjust for the above change.
19626
196272008-02-01 Kenichi Handa <handa@m17n.org>
19628
19629 * coding.c (Qsignature, Qendian): Delete these variables.
19630 (syms_of_coding): Don't initialize them.
19631 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19632 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19633 detect_info->found.
19634 (decode_coding_utf_16): Don't detect BOM here.
19635 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19636 is NOT utf_16_without_bom.
19637 (setup_coding_system): For a coding system of type utf-16, check
19638 if the attribute :endian is Qbig or not (not nil or not), and set
19639 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19640 (detect_coding): If coding type is utf-16 and BOM detection is
19641 required, detect it.
19642 (Fdefine_coding_system_internal): For a coding system of type
19643 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19644
196452008-02-01 Kenichi Handa <handa@m17n.org>
19646
19647 * coding.c (coding_set_source): Fix for the case that the current
19648 buffer is different from coding->src_object.
19649 (decode_coding_object): Don't use the conversion work buffer if
19650 DST_OBJECT is a buffer.
19651
196522008-02-01 Dave Love <fx@gnu.org>
19653
19654 * lread.c (read_emacs_mule_char) [len==2]: Index
19655 emacs_mule_charset correctly.
19656
196572008-02-01 Dave Love <fx@gnu.org>
19658
19659 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19660 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19661 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19662 treated specially.)
19663 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19664 (detected_mask): Remove Big5 bits.
19665
196662008-02-01 Kenichi Handa <handa@m17n.org>
19667
19668 The following changes are to make the font rescaling facility
19669 compatible with Emacs 21.
19670
19671 * xfaces.c (Vface_font_rescale_alist): Rename from
19672 Vface_resizing_fonts.
19673 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19674 (font_rescale_ratio): Rename from font_resizing_ratio.
19675 (split_font_name): Set font->rescale_ratio.
19676 (better_font_p): Pay attention to font->rescale_ratio.
19677 (build_scalable_font_name): Likewise. Change RESX, and RESY
19678 fields.
19679 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19680
196812008-02-01 Kenichi Handa <handa@m17n.org>
19682
19683 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19684 (Qutf_16_le): Remove these variables.
19685 (syms_of_coding): Don't DEFSYM them.
19686 (decode_coding_utf_16): Fix handling of BOM.
19687 (encode_coding_utf_16): Fix handling of BOM.
19688
196892008-02-01 Kenichi Handa <handa@m17n.org>
19690
19691 * fileio.c (Finsert_file_contents): On replacing, before decoding
19692 the file into the work buffer, set point of the work buffer to the end.
19693
196942008-02-01 Dave Love <fx@gnu.org>
19695
19696 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19697
196982008-02-01 Dave Love <fx@gnu.org>
19699
19700 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19701 and fix C types.
19702
197032008-02-01 Kenichi Handa <handa@m17n.org>
19704
19705 * xdisp.c (SKIP_GLYPHS): New macro.
19706 (set_cursor_from_row): Pay attention to string display properties.
19707
19708 * category.c (copy_category_entry): Fix for the case that RANGE
19709 is an integer.
19710
19711 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19712
19713 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19714
197152008-02-01 Kenichi Handa <handa@m17n.org>
19716
19717 * charset.c (Fcharset_id_internal): New function.
19718 (syms_of_charset): Defsubr it.
19719
19720 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19721 with the last arg charset_list acquired from coding.
19722 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19723 the attribute coding_attr_ccl_valids.
19724
19725 * coding.h (enum define_coding_ccl_arg_index): Set the first
19726 member coding_arg_ccl_decoder to coding_arg_max.
19727
19728 * ccl.h (ccl_driver): Adjust prototype.
19729
19730 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19731 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19732 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19733 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19734 last arg Qnil.
19735
197362008-02-01 Kenichi Handa <handa@m17n.org>
19737
19738 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19739 call encode_char.
19740
19741 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19742
197432008-02-01 Dave Love <fx@gnu.org>
19744
19745 * composite.c (syms_of_composite): Make composition_hash_table weak.
19746
197472008-02-01 Kenichi Handa <handa@m17n.org>
19748
19749 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19750 (font_name_registry): Don't extern them.
19751 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19752
19753 * fontset.h (Qfontset): Don't extern it.
19754 (new_fontset_from_font_name): Extern it.
19755
19756 * fontset.c: Give 8 extra slots to fontset objects.
19757 (Qfontset_info): New variable.
19758 (syms_of_fontset): Defsym it.
19759 (FONTSET_FALLBACK): New macro.
19760 (fontset_face): Try also the default fontset.
19761 (make_fontset): Realize a fallback fontset from the default fontset.
19762 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19763 using split_font_name_into_vector and build_font_name_from_vector.
19764 (Fset_fontset_font): Access the elements of font_spec by enum
19765 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19766 name by using split_font_name_into_vector.
19767 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19768 generate a proper font name from the fontset name. Update
19769 Vfontset_alias_alist.
19770 (n_auto_fontsets): New variable.
19771 (new_fontset_from_font_name): New function.
19772 (Ffont_info): Store the information about fonts generated from the
19773 default fontset in the first extra slot of the returned char-table.
19774
19775 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19776 (font_name_registry): Delete function.
19777 (split_font_name_into_vector): New function.
19778 (build_font_name_from_vector): New function.
19779 (font_list): The argument REGISTRY is now a list of registry names.
19780 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19781 specifies an explicit font name, return the name as is. Make a
19782 list of registy names.
19783
19784 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19785 of x_new_fontset.
19786 (Fx_create_frame): Don't call x_new_fontset here. Just use
19787 x_list_fonts to check the existence of fonts.
19788
19789 * xterm.h (x_new_fontset): Adjust prototype.
19790
19791 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19792 string. Use new_fontset_from_font_name to create a fontset from a
19793 font name.
19794
197952008-02-01 Kenichi Handa <handa@m17n.org>
19796
19797 * syntax.c (Vfind_word_boundary_function_table): New name for
19798 Vnext_word_boundary_function_table.
19799 (find-word-boundary-function-table): New name for
19800 next-word-boundary-function-table.
19801
198022008-02-01 Dave Love <fx@gnu.org>
19803
19804 * Makefile.in: Fix some dependencies.
19805
19806 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19807 set it to nil before returning.
19808
19809 * composite.c (update_compositions): Fix type error.
19810
19811 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19812
198132008-02-01 Kenichi Handa <handa@m17n.org>
19814
19815 * xterm.c (x_new_font): Optimize for the case that the font is
19816 already set for the frame.
19817
198182008-02-01 Kenichi Handa <handa@m17n.org>
19819
19820 * chartab.c (char_table_ascii): Check if the char table contents
19821 is sub-char-table or not.
19822 (char_table_set, char_table_set_range): Fix argument to
19823 char_table_ascii.
19824
19825 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19826 (detect_coding_utf_8, detect_coding_utf_16)
19827 (detect_coding_emacs_mule, detect_coding_iso_2022)
19828 (detect_coding_sjis, detect_coding_big5)
19829 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19830 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19831 sequence is valid in this coding system. Change callers.
19832 (MAX_ANNOTATION_LENGTH): New macro.
19833 (ADD_ANNOTATION_DATA): New macro.
19834 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19835 ADD_ANNOTATION_DATA. Change the format of annotation data.
19836 (ADD_CHARSET_DATA): New macro.
19837 (emacs_mule_char): New argument ID. Change callers.
19838 (decode_coding_emacs_mule, decode_coding_iso_2022)
19839 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19840 Produce charset annotation data in coding->charbuf.
19841 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19842 to charset annotation data in coding->charbuf.
19843 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19844 coding->common_flags if the coding system is iso-2022 based and
19845 uses designation.
19846 (produce_composition): Adjust for the new annotation data format.
19847 (produce_charset): New function.
19848 (produce_annotation): Handle charset annotation.
19849 (handle_composition_annotation, handle_charset_annotation): New
19850 functions.
19851 (consume_chars): Handle charset annotation. Utilize the above two
19852 functions.
19853 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19854 buffer, get the deleted text as a string and set
19855 coding->src_object to that string.
19856 (detect_coding, detect_coding_system): Use the new struct
19857 coding_detection_info.
19858
19859 * coding.h (struct coding_detection_info): New structure.
19860 (struct coding_system): Adjust prototype of the member `detector'.
19861 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19862
198632008-02-01 Kenichi Handa <handa@m17n.org>
19864
19865 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19866
198672008-02-01 Dave Love <fx@gnu.org>
19868
19869 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19870 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19871 to new local and nullify apropos_accumulate before returning.
19872 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19873
198742008-02-01 Kenichi Handa <handa@m17n.org>
19875
19876 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19877 correctly.
e3eea1fc 19878
aac0c6e3
MR
198792008-02-01 Dave Love <fx@gnu.org>
19880
19881 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19882
198832008-02-01 Kenichi Handa <handa@m17n.org>
19884
19885 The following changes are to make character composition happen
19886 automatically on displaying.
19887
19888 * Makefile.in (lisp, shortlisp): Add composite.elc.
19889
19890 * composite.h (Qauto_composed, Vauto_composition_function)
19891 (Qauto_composition_function): Extern them.
19892
19893 * composite.c (Vcomposition_function_table)
19894 (Qcomposition_function_table): Delete variables.
19895 (Qauto_composed, Vauto_composition_function)
19896 (Qauto_composition_function): New variables.
19897 (run_composition_function): Don't call
19898 compose-chars-after-function.
19899 (update_compositions): Clear `auto-composed' text property.
19900 (compose_chars_in_text): Delete this function.
19901 (syms_of_composite): Staticpro Qauto_composed and
19902 Qauto_composition_function. Declare Vauto_composition_function as
19903 a Lisp variable.
19904
19905 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19906
19907 * xdisp.c (it_props): Add an entry for Qauto_composed.
19908 (handle_auto_composed_prop): New function.
19909
19910 * xselect.c (selection_data_to_lisp_data): Don't call
19911 compose_chars_in_text.
19912
199132008-02-01 Dave Love <fx@gnu.org>
19914
19915 * keyboard.c (read_char): Modify checking around use of
19916 Vkeyboard_translate_table.
19917
19918 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19919 and fix C types.
19920
199212008-02-01 Kenichi Handa <handa@m17n.org>
19922
19923 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19924 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19925 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19926 the case that the last byte is '\r' correctly.
19927 (decode_coding): Flush out the unprocessed data correctly.
19928 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19929
199302008-02-01 Dave Love <fx@gnu.org>
19931
19932 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19933 Add XK_ISO... case.
19934 (xaw_scroll_callback): Revert last change.
19935
199362008-02-01 Kenichi Handa <handa@m17n.org>
19937
19938 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19939
199402008-02-01 Kenichi Handa <handa@m17n.org>
19941
19942 * xfaces.c (Vface_resizing_fonts): New variable.
19943 (struct font_name): New member `resizing_ratio'.
19944 (font_resizing_ratio): New function.
19945 (split_font_name): Set font->resizing_ratio.
19946 (better_font_p): Pay attention to font->resizing_ratio.
19947 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19948 RESX, and RESY fields.
19949 (try_alternative_families): Try scalable fonts if
19950 Vscalable_fonts_allowed is not Qt.
19951 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19952
199532008-02-01 Dave Love <fx@gnu.org>
19954
19955 * xterm.c (xaw_scroll_callback): Cast correctly.
19956
199572008-02-01 Dave Love <fx@gnu.org>
19958
19959 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19960 (lispy_kana_keys): Comment out.
19961 (make_lispy_event) [XK_kana_A]: Comment out.
19962
19963 * xterm.c (xaw_scroll_callback): Cast call_data.
19964 (XTread_socket): Deal with ASCII keysyms.
19965 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19966
199672008-02-01 Dave Love <fx@gnu.org>
19968
19969 * xterm.c (Vx_keysym_table): New.
19970 (syms_of_xterm): Initialize it.
19971 (XTread_socket): Use it.
19972 From head: Eliminate incorrect optimization that tried to avoid
19973 decoding the output of X*LookupString.
19974 (x_get_font_repertory): Delete charset declaration.
19975
199762008-02-01 Kenichi Handa <handa@m17n.org>
19977
19978 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19979 return 0.
19980 (Fdefine_coding_system_internal): Setup
19981 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19982
199832008-02-01 Dave Love <fx@gnu.org>
19984
19985 * coding.c (Fcheck_coding_system): Doc fix.
19986
19987 * editfns.c (Finsert_byte): Return a proper value.
19988
199892008-02-01 Kenichi Handa <handa@m17n.org>
19990
19991 * coding.c (decode_coding): Fix args to translate_chars. Pay
19992 attention to Vstandard_translation_table_for_decode.
19993 (encode_coding): Fix args to translate_chars. Pay attention to
19994 Vstandard_translation_table_for_encode.
19995
19996 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19997 SINGLE_BYTE_CHAR_P.
19998
19999 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20000 not by SINGLE_BYTE_CHAR_P.
20001
20002 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20003 SINGLE_BYTE_CHAR_P.
20004
20005 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20006 SINGLE_BYTE_CHAR_P.
20007
20008 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20009 by SINGLE_BYTE_CHAR_P.
20010
20011 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20012 SINGLE_BYTE_CHAR_P.
20013
200142008-02-01 Dave Love <fx@gnu.org>
20015
20016 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20017
200182008-02-01 Dave Love <fx@gnu.org>
20019
20020 * fns.c (Flanginfo): Fix typo.
20021
20022 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20023
200242008-02-01 Kenichi Handa <handa@m17n.org>
20025
20026 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20027 (detect_coding_emacs_mule, detect_coding_iso_2022)
20028 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20029 incomplete byte sequence. Don't update *mask when correctly detected.
20030 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20031 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20032 (detect_coding, detect_coding_system): Adjust for the changes above.
20033
200342008-02-01 Kenichi Handa <handa@m17n.org>
20035
20036 * character.c (char_string): Rename from
20037 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20038 (string_char): Rename from string_char.
20039
20040 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20041 if C is greater than MAX_3_BYTE_CHAR.
20042 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20043 string_char instead of string_char_with_unification.
20044
200452008-02-01 Dave Love <fx@gnu.org>
20046
20047 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20048
200492008-02-01 Kenichi Handa <handa@m17n.org>
20050
20051 * keymap.c (push_key_description): Pay attention to force_multibyte.
20052
20053 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20054
200552008-02-01 Dave Love <fx@gnu.org>
20056
20057 * charset.c (define_charset_internal): Rename `supprementary'.
20058
20059 * Makefile.in (lisp, shortlisp): Remove latin-N.
20060
200612008-02-01 Dave Love <fx@gnu.org>
20062
20063 * xfns.c (x_window, x_window): Use use_xim.
20064
20065 * xterm.c (use_xim): Initialize.
20066 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20067 (x_term_init): Maybe set use_xim.
20068
20069 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20070
200712008-02-01 Kenichi Handa <handa@m17n.org>
20072
20073 * search.c (search_buffer): Fix case-fold-search of multibyte
20074 characters.
20075 (boyer_moore): Rename the last argument to char_high_bits.
20076
200772008-02-01 Kenichi Handa <handa@m17n.org>
20078
20079 * xdisp.c (display_string): Fix for the case of zero width glyph.
20080
20081 * xfns.c (x_set_font): Change the error message of the case that
20082 x_new_fontset returns Qt.
20083
20084 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20085 (Finternal_set_lisp_face_attribute): Use signal_error for the
20086 error of invalid fontset.
20087
20088 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20089 fontset, return Qt.
20090
200912008-02-01 Dave Love <fx@gnu.org>
20092
20093 * unexelf.c (unexec): Make .got handling not SGI-specific.
20094
20095 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20096
20097 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20098
20099 * keyboard.c (read_key_sequence): Fix type error.
20100
20101 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20102 type error.
20103
20104 * fontset.c (fontset_add): Return Lisp_Object.
20105
201062008-02-01 Dave Love <fx@gnu.org>
20107
20108 * charset.h (charset_ordered_list_tick): Declare extern.
20109
201102008-02-01 Kenichi Handa <handa@m17n.org>
20111
20112 The following changes (and some of 2008-02-01 changes of mine) are
20113 for handling syntax, category, and case conversion for unibyte
20114 characters by converting them to multibyte on the fly. With these
20115 changes, we don't have to setup syntax and case tables for unibyte
20116 characters in each language environment.
20117
20118 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20119 multibyte if necessary.
20120
20121 * bytecode.c (Fbyte_code): Likewise.
20122
20123 * character.h (LEADING_CODE_LATIN_1_MIN)
20124 (LEADING_CODE_LATIN_1_MAX): New macros.
20125 (unibyte_to_multibyte_table): Extern it.
20126 (unibyte_char_to_multibyte): New macro.
20127 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20128 (CHAR_LEADING_CODE): New macro.
20129 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20130
20131 * character.c (unibyte_to_multibyte_table): New variable.
20132 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20133 (multibyte_char_to_unibyte): If C is an eight-bit character,
20134 convert it to the corresponding byte value.
20135
20136 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20137 not 1, signals an error. Update the elements of
20138 unibyte_to_multibyte_table.
20139 (init_charset_once): Initialize unibyte_to_multibyte_table.
20140 (syms_of_charset): Define the charset `iso-8859-1'.
20141
20142 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20143 as is without converting it to unibyte. In a unibyte buffer,
20144 convert C to multibyte before checking the syntax.
20145
20146 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20147
20148 * minibuf.c (Fminibuffer_complete_word): Use the macro
20149 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20150
20151 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20152
20153 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20154 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20155 that is zero, convert an eight-bit char to multibyte.
20156 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20157 non-emacs case.
20158 (PATFETCH): Convert an eight-bit char to multibyte.
20159 (HANDLE_UNIBYTE_RANGE): New macro.
20160 (regex_compile): Setup the compiled pattern for multibyte chars
20161 even if the given regex string is unibyte. Use PATFETCH_RAW
20162 instead of PATFETCH in many places. To handle `charset'
20163 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20164 only for ASCII chars.
20165 (analyse_first) <exactn>: Simplify because the compiled pattern
20166 is multibyte.
20167 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20168 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20169 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20170 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20171 multibyte always 1.
20172 (re_search_2): In emacs, set the locale variable multibyte to 1,
20173 otherwise to 0. New local variable target_multibyte. Check it
20174 to decide the multibyteness of STR1 and STR2. If
20175 target_multibyte is zero, convert unibyte chars to multibyte
20176 before translating and checking fastmap.
20177 (TARGET_CHAR_AND_LENGTH): New macro.
20178 (re_match_2_internal): In emacs, set the locale variable multibyte
20179 to 1, otherwise to 0. New local variable target_multibyte. Check
20180 it to decide the multibyteness of STR1 and STR2. Use
20181 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20182 <charset, charset_not>: If multibyte is nonzero, check fastmap
20183 only for ASCII chars. Call bcmp_translate with
20184 target_multibyte, not with multibyte.
20185 <begline>: Declare the local variable C as `unsigned'.
20186 (bcmp_translate): Change the last arg name to target_multibyte.
20187
20188 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20189 the regexp pattern and the matching target. Set cp->buf.multibyte
20190 to the multibyteness of the regexp pattern. Set
20191 cp->but.target_multibyte to the multibyteness of the matching target.
20192 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20193 FETCH_STRING_CHAR_ADVANCE.
20194 (Freplace_match): Convert unibyte chars to multibyte.
20195
20196 * syntax.c (char_quoted, back_comment, scan_words)
20197 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20198 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20199 unibyte chars to multibyte.
20200 (skip_chars): Delete the arg syntaxp, and move the code for
20201 handling syntaxes to skip_syntaxes. Change callers.
20202 Fix the case that the multibyteness of STRING and the current
20203 buffer doesn't match.
20204 (skip_syntaxes): New function.
20205 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20206 SINGLE_BYTE_CHAR_P.
20207
202082008-02-01 Kenichi Handa <handa@m17n.org>
20209
20210 * xfaces.c (QCfontset): New variable.
20211 (LFACE_FONTSET): New macro.
20212 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20213 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20214 (Finternal_set_lisp_face_attribute)
20215 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20216 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20217 check also LFACE_FONTSET_INDEX.
20218 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20219 attrs[LFACE_FONT_INDEX].
20220 (syms_of_xfaces): Intern and staticpro QCfontset.
20221
20222 * dispextern.h (enum lface_attribute_index): New member
20223 LFACE_FONTSET_INDEX.
20224
20225 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20226
202272008-02-01 Kenichi Handa <handa@m17n.org>
20228
20229 * coding.c (coding_set_destination): Fix coding->destination for
20230 the case converting a region.
20231 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20232 (encode_coding_object): Fix coding->dst_pos and
20233 coding->dst_pos_byte for the case converting a region.
20234
20235 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20236
20237 * character.h (BYTE8_STRING): New macro.
20238
20239 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20240
202412008-02-01 Kenichi Handa <handa@m17n.org>
20242
20243 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20244 characters by octal form.
20245
20246 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20247
20248 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20249 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20250 _fetch_multibyte_char_len.
20251 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20252
20253 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20254
20255 * casefiddle.c (casify_object): Simplify. Handle the case that
20256 the case conversion change the byte length.
20257 (casify_region): Likewise.
20258
20259 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20260
20261 * character.c (_fetch_multibyte_char_len): Delete this variable.
20262 (syms_of_character): Setup Vprintable_chars.
20263
20264 * editfns.c (Fchar_equal): Fix for the unibyte case.
20265 (Finsert_byte): New function.
20266 (syms_of_editfns): Defsubr it.
20267
20268 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20269 of direct code 0x3ffff.
20270
20271 * search.c (Freplace_match): Fix for the unibyte case.
20272
202732008-02-01 Kenichi Handa <handa@m17n.org>
20274
20275 * lread.c (safe_to_load_p): Fix the logic.
20276
20277 * syntax.c (scan_words): Don't treat characters belonging to
20278 different scripts as constituting a word.
20279
20280 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20281
20282 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20283
20284 * emacs.c (main): In the case of --unibyte, instead of aborting on
20285 finding non-empty buffer, make it unibyte.
20286
202872008-02-01 Kenichi Handa <handa@m17n.org>
20288
20289 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20290 to create a fontset.
20291
202922008-02-01 Dave Love <fx@gnu.org>
20293
20294 * character.c (Funibyte_char_to_multibyte): Doc fix.
20295
20296 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20297
202982008-02-01 Kenichi Handa <handa@m17n.org>
20299
20300 * fontset.c (fontset_add): Make the type `int'.
20301 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20302
20303 * character.c (unibyte_char_to_multibyte)
20304 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20305 charset_unibyte, not charset_primary.
20306
20307 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20308
20309 * charset.c (charset_unibyte): Rename from charset_primary.
20310 (Funibyte_charset): Rename from Fprimary_charset.
20311 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20312 (syms_of_charset): Adjust for the above changes.
20313
20314 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20315 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20316 it->multibyte_p is zero.
20317
20318 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20319 Delete extern.
20320
203212008-02-01 Kenichi Handa <handa@m17n.org>
20322
20323 * coding.c (Fdefine_coding_system_internal): Fix category setting
20324 for a coding system of type iso-2022.
20325
203262008-02-01 Kenichi Handa <handa@m17n.org>
20327
20328 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20329
203302008-02-01 Kenichi Handa <handa@m17n.org>
20331
20332 * syntax.c (Vnext_word_boundary_function_table): New variable.
20333 (next-word-boundary-function-table): Declare it as a Lisp variable
20334 in syms_of_syntax.
20335 (scan_words): Call functions in Vnext_word_boundary_function_table
20336 if any.
20337
20338 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20339
20340 * fontset.c (fs_load_font): If fontp->charset is not negative,
20341 return fontp without setting its members.
20342
203432008-02-01 Dave Love <fx@gnu.org>
20344
20345 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20346
20347 * m/sparc.h (HAVE_ALLOCA): Delete.
20348
20349 * s/irix6-5.h: Don't include strings.h.
20350 (bcopy, bzero, bcmp): Don't undef.
20351
20352 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20353
20354 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20355 (TIOCSIGSEND): Don't test IRIX6.
20356 (bcopy, bzero, bcmp): Define conditionally.
20357
203582008-02-01 Kenichi Handa <handa@m17n.org>
20359
20360 * buffer.c (Qas, Qmake, Qto): New variables.
20361 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20362 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20363
20364 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20365 we are inserting a process output into a multibyte buffer.
20366
20367 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20368 multibyte_char_to_unibyte.
20369
20370 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20371 by the primary charset, make it eight-bit char.
20372 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20373
20374 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20375 (charset_8_bit__control, charset_8_bit_graphic)
20376 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20377 (define_charset_internal): New function.
20378 (syms_of_charset): Call define_charset_internal for pre-defined
20379 charsets.
20380
20381 * charset.h (charset_8_bit): Extern it.
20382
20383 * coding.c (make_conversion_work_buffer): Adjust for the change
20384 of Fset_buffer_multibyte.
20385 (encode_coding_raw_text): Increment p0 in the loop.
20386
20387 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20388
20389 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20390 for the change of Fset_buffer_multibyte.
20391
20392 * fns.c (Fstring_to_multibyte): New function.
20393 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20394
203952008-02-01 Dave Love <fx@gnu.org>
20396
20397 * xfns.c (x_put_x_image): Declare args.
20398
20399 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20400 (try_font_list): Declare an arg.
20401
20402 * xdisp.c (message2_nolog, set_message): Declare an arg.
20403
20404 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20405
20406 * syntax.c (scan_sexps_forward): Declare an arg.
20407
20408 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20409 Declare an arg.
20410
20411 * lisp.h (Fnew_fontset): Declare.
20412
20413 * keymap.c (push_key_description): Call CHARACTERP correctly.
20414
20415 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20416 (face_for_char): Delete unused vars.
20417 (Fset_fontset_font): Doc fix. Delete unused vars.
20418
20419 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20420
20421 * composite.c (update_compositions): Declare arg.
20422
20423 * cm.c (calccost, cmgoto): Declare args.
20424
20425 * charset.c: Remove `emacs' conditional. Doc fixes.
20426 (map_char_table_for_charset): Declare.
20427
20428 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20429
20430 * ccl.c: Remove `emacs' conditional.
20431
204322008-02-01 Kenichi Handa <handa@m17n.org>
20433
20434 The following changes are to allow specifying multiple font
20435 patterns for a character range (specified by script or charset).
20436
20437 * Makefile.in (abbrev.o): Depend on syntax.h.
20438 (xfaces.o): Depend on charset.h.
20439
20440 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20441 SINGLE_BYTE_CHAR_P.
20442
20443 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20444
20445 * character.h (Vchar_script_table): Extern it.
20446
20447 * character.c (Vscript_alist): Delete.
20448 (Vchar_script_table, Qchar_script_table): New variable.
20449 (syms_of_character): Declare Vchar_script_table as a lisp variable
20450 and initialize it.
20451
20452 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20453 have property char-table-extra-slots, make no extra slot.
20454
20455 * dispextern.h (struct face): Delete member `charset'.
20456 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20457 SINGLE_BYTE_CHAR_P.
20458 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20459 Add prototypes.
20460 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20461 (generate_ascii_font_name): Rename from generate_ascii_font.
20462
20463 * fontset.h (get_font_repertory_func): New prototype.
20464 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20465 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20466
20467 * fontset.c (Qprepend, Qappend): New variables.
20468 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20469 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20470 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20471 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20472 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20473 (load_font_get_repertory): New functions.
20474 (fontset_set): Delete.
20475 (fontset_face): New arg FACE. Return face ID, not face.
20476 Complete re-write to handle new fontset structure. Change caller.
20477 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20478 (face_for_char): Don't call lookup_face.
20479 (make_fontset_for_ascii_face): New arg FACE.
20480 (fs_load_font): New arg CHARSET_ID. Don't check
20481 Vfont_encoding_alist here.
20482 (find_font_encoding): New function.
20483 (list_fontsets): Use STRINGP, not ! NILP.
20484 (accumulate_script_ranges): New function.
20485 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20486 re-written to handle new fontset structure.
20487 (Ffontset_font): Return a copy of element.
20488 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20489 docstring of font-encoding-alist.
20490
20491 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20492 (Fset_fotset_font): Fix arguments to 5.
20493
20494 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20495
20496 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20497 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20498 (highlight_trailing_whitespace): Adjust for the change of
20499 lookup_named_face.
20500
20501 * xfaces.c: Include charset.h.
20502 (load_face_font): Delete argument C. Change caller.
20503 (generate_ascii_font_name): Rename from generate_ascii_font.
20504 (font_name_registry): New function.
20505 (cache_face): Store ascii faces before non-ascii faces in buckets.
20506 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20507 Lookup only ascii faces.
20508 (lookup_non_ascii_face): New function.
20509 (lookup_named_face): Delete argument C. Change caller.
20510 (lookup_derived_face): Delete argument C. Change caller.
20511 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20512 a string, just call font_list with it.
20513 (choose_face_font): Delete arguments FACE and C. New arg
20514 FONT_SPEC. Change caller.
20515 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20516 Change caller.
20517 (realize_non_ascii_face): New function.
20518 (realize_x_face): Call load_face_font here.
20519 (realize_tty_face): Delete argument C. Change caller.
20520 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20521 get a face ID.
20522 (dump_realized_face): Don't print charset of FACE.
20523
20524 * xfns.c (x_set_font): Always call x_new_fontset and
20525 store_frame_parameter.
20526 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20527 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20528
20529 * xterm.h (x_get_font_repertory): Extern it.
20530
20531 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20532 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20533 it->multibyte_p is zero.
20534 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20535 (x_new_fontset): If FONTSETNAME doesn't match any existing
20536 fontsets, create a new one.
20537 (x_get_font_repertory): New function.
20538
205392008-02-01 Kenichi Handa <handa@m17n.org>
20540
20541 * coding.c (Ffind_coding_systems_region_internal): Detect an
20542 ASCII only string correctly.
20543
20544 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20545 version is 0.
20546
205472008-02-01 Kenichi Handa <handa@m17n.org>
20548
20549 * lread.c: Include "coding.h".
20550 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20551 (load_each_byte, unread_char): New variables.
20552 (readchar_backlog): Delete.
20553 (readchar): Return a character unless load_each_byte is nonzero.
20554 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20555 cons. If unread_char is not -1, simply return it.
20556 (unreadchar): Handle the case that readcharfun is
20557 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20558 (read_multibyte): Delete.
20559 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20560 (read_emacs_mule_char): New functions.
20561 (Fload): Even if the file doesn't have the extension ".elc", if
20562 safe_to_load_p returns a positive version number, assume that the
20563 file contains bytecompiled code. If the version is less than 22,
20564 load the file while decoding multibyte sequences by emacs-mule.
20565 (readevalloop): Don't use readchar_backlog.
20566 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20567 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20568 (read_escape): Delete the arg BYTEREP.
20569 (read1): Set load_each_byte to 1 temporarily while handling
20570 #@NUMBER. Don't call read_multibyte.
20571 (read_vector): Call Fread with a cons. If readcharfun is
20572 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20573 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20574 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20575 and Qload_force_doc_strings.
20576
205772008-02-01 Kenichi Handa <handa@m17n.org>
20578
20579 * xdisp.c (face_before_or_after_it_pos): Call
20580 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20581
205822008-02-01 Kenichi Handa <handa@m17n.org>
20583
20584 * character.h (TRAILING_CODE_P): New macro.
20585 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20586 (string_char_with_unification): Fix prototype.
20587 (Vscript_alist): Extern it.
20588
20589 * character.c (Vscript_alist): New variable.
20590 (string_char_with_unification, str_as_unibyte)
20591 (string_escape_byte8): Add `const' to local variables.
20592 (syms_of_character): Declare script-alist as a Lisp variable.
20593
20594 * charset.h (Vcharset_ordered_list): Extern it.
20595 (charset_ordered_list_tick): Extern it.
20596 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20597 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20598 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20599 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20600 (Funify_charset): Adjust for the change of Funify_charset.
20601
20602 * charset.c (charset_ordered_list_tick): New variable.
20603 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20604 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20605 deunify intead of unify a charset.
20606 (string_xstring_p): Add `const' to local variables.
20607 (find_charsets_in_text): Add `const' to arguments and local variables.
20608 (encode_char): Adjust for the change of Funify_charset. Fix
20609 detecting of invalid code.
20610 (Fset_charset_priority): Increment charset_ordered_list_tick.
20611 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20612 and TO_CODE.
20613
20614 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20615 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20616 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20617 (decode_coding_ccl, consume_chars)
20618 (Ffind_coding_systems_region_internal)
20619 (Fcheck_coding_systems_region): Add `const' to local variables.
20620
20621 * print.c (print_object): Use octal form for printing the
20622 contents of a bool vector.
20623
206242008-02-01 Dave Love <fx@gnu.org>
20625
20626 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20627 <version == 20>: Refuse to load.
20628
206292008-02-01 Dave Love <fx@gnu.org>
20630
20631 * fns.c: Move coding.h.
20632 (Qcodeset, Qdays, Qmonths): New.
20633 (concat): Use CHARACTERP instead of INTEGERP.
20634 (Flocale_codeset): Delete.
20635 (Flanginfo): New function.
20636 (syms_of_fns): Change accordingly.
20637
20638 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20639
206402008-02-01 Dave Love <fx@gnu.org>
20641
20642 * casetab.c (init_casetab_once, init_casetab_once): Fix
20643 CHAR_TABLE_SET call.
20644
20645 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20646
20647 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20648
20649 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20650 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20651 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20652
20653 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20654
20655 * coding.c (ENCODE_DESIGNATION, decode_eol)
20656 (make_conversion_work_buffer, code_conversion_restore)
20657 (Fdefine_coding_system_internal): Convert Lisp types.
20658 (code_conversion_restore): Use EQ, not ==.
20659 (Fencode_coding_string): Fix code_convert_string call.
20660
20661 * coding.h (code_convert_region): Fix prototype.
20662
20663 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20664
20665 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20666 (Ffontset_info): Convert Lisp types.
20667
20668 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20669
20670 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20671
20672 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20673
20674 * chartab.c: Include "...h", not <...h> in some cases.
20675
20676 * callproc.c (Fcall_process): Remove unused variables.
20677
206782008-02-01 Dave Love <fx@gnu.org>
20679
20680 * coding.c (Fset_coding_system_priority): Allow null arg list.
20681
206822008-02-01 Dave Love <fx@gnu.org>
20683
20684 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20685 (Fself_insert_and_exit): Use CHARACTERP.
20686
20687 * callproc.c (Fcall_process): Remove unused vars.
20688
20689 * xterm.c (XTread_socket): Add extra dead keysyms.
20690
20691 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20692
20693 * dispextern.h: Remove prototypes for redraw_frame,
20694 redraw_garbaged_frames.
20695
20696 * cmds.c (Fself_insert_command): Use CHARACTERP.
20697
20698 * chartab.c (make_sub_char_table): Remove unused var.
20699 (Fset_char_table_default, Fmap_char_table): Doc fix.
20700
20701 * keymap.c (access_keymap): Remove generic char code.
20702 (push_key_description): Use CHARACTERP.
20703
207042008-02-01 Dave Love <fx@gnu.org>
20705
20706 * charset.c: Doc fixes.
20707 (Funify_charset): Extra checking.
20708
207092008-02-01 Dave Love <fx@gnu.org>
20710
20711 * lread.c: Remove some unused variables.
20712 (safe_to_load_p): If safe, return the magic number version byte.
20713 (Fload): Maybe use load-with-code-conversion.
20714
207152008-02-01 Kenichi Handa <handa@m17n.org>
20716
20717 * category.c (Fmodify_category_entry): Don't modify the contents
20718 of category_set for characters out of the range. Avoid
20719 unnecessary modification.
20720
20721 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20722 Vchar_unify_table. The default value of the table is now nil.
20723
20724 * character.c (syms_of_character): Setup Vchar_width_table for
20725 eight-bit-control and raw-byte chars.
20726
20727 * charset.h (enum define_charset_arg_index): Delete
20728 charset_arg_parents and add charset_arg_subset and
20729 charset_arg_superset.
20730 (enum charset_attr_index): Delete charset_parents and add
20731 charset_subset and charset_superset.
20732 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20733 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20734 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20735 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20736 (CHARSET_SUPERSET): New macros.
20737 (charset_work): Extern it.
20738 (ENCODE_CHAR): Use charset_work.
20739 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20740 (map_charset_chars): Extern it.
20741
20742 * charset.c (load_charset_map): Set the default value of encoder
20743 and deunifier char-tables to nil.
20744 (map_charset_chars): Change argument. Change callers. Use
20745 map_char_table_for_charset instead of map_char_table.
20746 (Fmap_charset_chars): New optional args from_code and to_code.
20747 (Fdefine_charset_internal): Adjust for the change of
20748 `define-charset' (:parents -> :subset or :superset).
20749 (charset_work): New variable.
20750 (encode_char, syms_of_charset): Adjust for the change of
20751 Fdefine_charset_internal.
20752 (Ffind_charset_string): Setup the vector `charsets' correctly.
20753
20754 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20755 the previous change.
20756 (char_table_ref_and_range): Adjust for the above change.
20757 (map_sub_char_table_for_charset): New function.
20758 (map_char_table_for_charset): New function.
20759
20760 * keymap.c (describe_vector): Handle a char-table directly here.
20761 (describe_char_table): Delete.
20762
20763 * lisp.h (map_charset_chars): Delete.
20764
207652008-02-01 Dave Love <fx@gnu.org>
20766
20767 * fns.c (count_combining): Comment out (unused).
20768 (Flocale_codeset): New.
20769 (syms_of_fns): Defsubr it.
20770
20771 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20772 (size_t): Remove.
20773
207742008-02-01 Dave Love <fx@gnu.org>
20775
20776 * Makefile.in (chartab.o): Depend on charset.h.
20777
207782008-02-01 Kenichi Handa <handa@m17n.org>
20779
20780 * character.c (syms_of_character): Set the default value of
20781 Vprintable_chars to Qnil.
20782
207832008-02-01 Dave Love <fx@gnu.org>
20784
20785 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20786
207872008-02-01 Kenichi Handa <handa@m17n.org>
20788
20789 * charset.c (load_charset_map): Handle the case that from < to
20790 correctly.
20791
20792 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20793 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20794 Pay attention to raw-8-bit chars.
20795
207962008-02-01 Kenichi Handa <handa@m17n.org>
20797
20798 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20799 It is not bytecompiled now.
20800
20801 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20802 (charset_jisx0208): New variables.
20803 (Fdefine_charset_internal): Setup them if appropriate.
20804 (init_charset_once): Initialize them to -1.
20805
20806 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20807 (charset_jisx0208): Extern them.
20808
20809 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20810 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20811 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20812 (setup_iso_safe_charsets): Fix arguments to Fassq.
20813 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20814 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20815 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20816 (encode_coding_iso_2022): Change the 1st arg to
20817 ENCODE_ISO_CHARACTER to a variable.
20818
208192008-02-01 Kenichi Handa <handa@m17n.org>
20820
20821 * charset.h (enum define_charset_arg_index): New enums
20822 charset_arg_min_code and charset_arg_max_code.
20823 (struct charset): New member char_index_offset.
20824
20825 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20826 Take charset->char_index_offset into account.
20827 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20828 args[charset_arg_max_code]. Setup charset.char_index_offset.
20829 (syms_of_charset): Fix args to Fdefine_charset_internal.
20830
208312008-02-01 Dave Love <fx@gnu.org>
20832
20833 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20834
208352008-02-01 Dave Love <fx@gnu.org>
20836
20837 * coding.c: Doc fixes.
20838 (Fcoding_system_aliases): Fix return value.
20839 (Qmac): Remove (duplicated) definition.
20840
208412008-02-01 Dave Love <fx@gnu.org>
20842
362654a6
JB
20843 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20844 New functions.
aac0c6e3
MR
20845
20846 * character.c (Fstring): Doc fix.
20847
20848 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20849
362654a6 20850 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20851 (font-encoding-alist): Doc fix.
20852
208532008-02-01 Dave Love <fx@gnu.org>
20854
20855 * term.c (costs_set): Declare static, non-initialized for pcc.
20856 (encode_terminal_code): Remove unused var.
20857
20858 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20859 for K&R.
20860
20861 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20862
20863 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20864 (suffixes): Move out of make_subsidiaries for K&R.
20865
20866 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20867
20868 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20869
208702008-02-01 Dave Love <fx@gnu.org>
20871
20872 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20873
20874 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20875
208762008-02-01 Yong Lu <lyongu@asia-infonet.com>
20877
20878 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20879
20880 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20881
208822008-02-01 Kenichi Handa <handa@m17n.org>
20883
20884 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20885 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20886
208872008-02-01 Kenichi Handa <handa@m17n.org>
20888
20889 * coding.c (decode_coding_charset): Adjust for the change of
20890 Fdefine_coding_system_internal.
20891 (Fdefine_coding_system_internal): For a coding system of
20892 `charset' type, store a list of charset IDs in
20893 `charset_attr_charset_valids' element of coding attributes.
20894
208952008-02-01 Kenichi Handa <handa@m17n.org>
20896
20897 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20898 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20899 caller. Handle 2-byte and 3-byte charsets correctly.
20900 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20901 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20902 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20903 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20904 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20905 sequence.
20906 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20907 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20908 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20909 and alt&rule composition.
20910 (decode_coding_iso_2022): Handle composition correctly.
20911 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20912
20913 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20914 re-defining a charset. If the charset has :emacs-mule-id, setup
20915 emacs_mule_bytes.
20916 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20917
209182008-02-01 Kenichi Handa <handa@m17n.org>
20919
20920 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20921 (encode_coding_big5, encode_coding_charset): If coding requires safe
20922 encoding, produce a character specified by
20923 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20924
209252008-02-01 Dave Love <fx@gnu.org>
20926
20927 * xterm.c (XSetIMValues): Declare.
20928
20929 * process.c: Conditionally include sys/wait.h, pty.h.
20930
20931 * print.c (print_object): Fix print format for 64-bit systems.
20932
20933 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20934
20935 * buffer.c (emacs_strerror): Declare.
20936
20937 * fontset.c (Fclear_face_cache): Declare.
20938 (accumulate_font_info): Comment-out (unused).
20939 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20940 variables.
20941
20942 * character.h (string_escape_byte8): Declare.
20943
20944 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20945 unused vars.
20946 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20947 (Fmap_charset_chars): Doc fix.
20948
20949 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20950 (Fset_coding_system_priority, Fset_coding_system_priority)
20951 (Fdefine_coding_system_internal): Doc fix.
20952
209532008-02-01 Dave Love <fx@gnu.org>
20954
20955 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20956
209572008-02-01 Kenichi Handa <handa@m17n.org>
20958
20959 * character.c (string_escape_byte8): Make multibyte string with
20960 correct size.
20961
20962 * charset.c (Fmake_char): Delete unnecessary code.
20963
209642008-02-01 Kenichi Handa <handa@m17n.org>
20965
20966 * xfns.c (x_encode_text): Allocate coding.destination here, and
20967 call encode_coding_object with dst_object Qnil.
20968
20969 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20970 multibyte form correctly.
20971
20972 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20973 against Vfont_encoding_alist.
20974
20975 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20976 handling of charset list.
20977 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20978 (decode_coding_object): Move point to coding->dst_pos before
20979 calling post-read-conversion function.
20980 (encode_coding_object): Give correct arguments to
20981 pre-write-conversion. Ignore the return value of
20982 pre-write-conversion function. Pay attention to the case that
20983 pre-write-conversion changes the current buffer. If dst_object is
20984 Qt, even if coding->src_bytes is zero, allocate at least one byte
20985 to coding->destination.
20986
20987 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20988
20989 * charset.c (Fmake_char): Make it more backward compatible.
20990 (Fmap_charset_chars): Fix docstring.
20991
209922008-02-01 Dave Love <fx@gnu.org>
20993
20994 * coding.c: Doc fixes.
20995 (Fdefine_coding_system_alias): Use names, not symbols, in
20996 coding-system-alist.
20997
209982008-02-01 Kenichi Handa <handa@m17n.org>
20999
21000 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21001 of calling free_realized_face.
21002
210032008-02-01 Yong Lu <lyongu@asia-infonet.com>
21004
21005 * charset.c (read_hex): Don't treat SPC as a comment starter.
21006 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21007 (Fdecode_char): Fix typo.
21008
210092008-02-01 Kenichi Handa <handa@m17n.org>
21010
21011 * charset.h (struct charset): New member `code_space_mask'.
21012
21013 * coding.c (coding_set_source): Delete the local variable beg_byte.
21014 (encode_coding_charset, Fdefine_coding_system_internal):
21015 Delete the local variable charset.
21016 (Fdefine_coding_system_internal): Setup
21017 attrs[coding_attr_charset_valids] correctly.
21018
21019 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21020 member to check if CODE is valid or not.
21021 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21022 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21023 is within the range of charset->min_code and carset->max_code.
21024
210252008-02-01 Dave Love <fx@gnu.org>
21026
21027 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21028
21029 * dispextern.h (generate_ascii_font): Fix return type.
21030
21031 * xfaces.c (generate_ascii_font): Fix arg declaration.
21032
21033 * coding.c (coding_inherit_eol_type)
21034 (Fset_terminal_coding_system_internal)
21035 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21036
210372008-02-01 Kenichi Handa <handa@m17n.org>
21038
21039 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21040 multiple charsets correctly.
21041
210422008-02-01 Kenichi Handa <handa@m17n.org>
21043
21044 * search.c (boyer_moore): Fix handling of multibyte character
21045 translation.
21046
21047 * xdisp.c (display_mode_element): When the variable `elt' is
21048 changed, update `this' and `lisp_string'.
21049
210502008-02-01 Kenichi Handa <handa@m17n.org>
21051
21052 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21053
21054 * callproc.c (Fcall_process): Be sure to give the current buffer
21055 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21056
21057 * charset.c (struct charset_map_entries): New struct.
21058 (load_charset_map): Rename from parse_charset_map. New args
21059 entries and n_entries. Change caller.
21060 (load_charset_map_from_file): Rename from load_charset_map.
21061 Change caller. New arg control_flag. Call load_charset_map at
21062 the tail.
21063 (load_charset_map_from_vector): New function.
21064 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21065 (encode_char): If the charset is compact, change a character index
21066 to a code point.
21067
21068 * coding.c (coding_alloc_by_making_gap): Check the case that the
21069 source and destination are the same correctly.
21070 (decode_coding_raw_text): Set coding->consumed_char and
21071 coding->consumed to 0.
21072 (produce_chars): If coding->chars_at_source is nonzero, update
21073 coding->consumed_char and coding->consumed before calling
21074 alloc_destination.
21075 (Fdefine_coding_system_alias): Register ALIAS in
21076 Vcoding_system_alist.
21077 (syms_of_coding): Define `no-conversion' coding system at the tail.
21078
21079 * fileio.c (Finsert_file_contents): Set coding_system instead of
21080 val. If the current buffer is multibyte, always call
21081 decode_coding_gap.
21082
21083 * xfaces.c (try_font_list): Give higher priority to fontset's
21084 family than face's family.
21085
210862008-02-01 Kenichi Handa <handa@m17n.org>
21087
21088 * callproc.c (Fcall_process): Be sure to give the current buffer
21089 to decode_coding_c_string.
21090
21091 * xfaces.c (try_font_list): Give a family specified in a fontset
21092 higher priority than a family specified in a face.
21093
210942008-02-01 Kenichi Handa <handa@m17n.org>
21095
21096 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21097 Fix arguments to insert_from_buffer.
21098
21099 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21100
211012008-02-01 Kenichi Handa <handa@m17n.org>
21102
21103 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21104 (decode_coding_gap): Set coding->dst_multibyte correctly.
21105
211062008-02-01 Kenichi Handa <handa@m17n.org>
21107
21108 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21109 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21110 (encode_coding_utf_16): Substitute coding->default_char for
21111 non-Unicode characters.
21112 (decode_coding): Don't call record_insert here.
21113 (setup_coding_system): Initialize `surrogate' of
21114 coding->spec.utf_16 to 0.
21115 (EMIT_ONE_BYTE): Fix for multibyte case.
21116
21117 * insdel.c (insert_from_gap): Call record_insert.
21118
211192008-02-01 Kenichi Handa <handa@m17n.org>
21120
21121 * casefiddle.c (casify_region): Fix multibyte case.
21122
21123 * character.c (c_string_width): Add return type `int'.
21124 (char_string_with_unification): Delete arg ADVANCED.
21125
21126 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21127 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21128 (CHAR_STRING_ADVANCE): Make it do-while statement.
21129
21130 * chartab.c (sub_char_table_set_range): Optimize for the case
21131 DEPTH == 3. Add workaround code for a GCC optimization bug.
21132
21133 * charset.c (parse_charset_map): Remove an unused variable.
21134
21135 * coding.c: Delete unused variables.
21136
21137 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21138 earlier. If inserted is zero and the coding system doesn't
21139 require flushing, don't call decode_coding_gap.
21140
21141 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21142
211432008-02-01 Kenichi Handa <handa@m17n.org>
21144
21145 The following changes are for using Unicode as an internal
21146 character model, and use UTF-8 format for buffer/string
21147 representation.
21148
21149 * .gdbinit (xchartable): Adjust for the change of char table structure.
21150 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21151
21152 * Makefile.in (obj): Add character.o and chartab.o.
21153 (lisp, shortlisp): Remove utf-8.elc.
21154 (*.o): For many files, change dependency on charset.h to
21155 character.h, and add dependency on character.h.
21156 (character.o, chartab.o): New targets.
21157
21158 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21159 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21160 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21161 of "charset.h".
21162
21163 * dired.c, filelock.c: Include "character.h".
21164
21165 * alloc.c: Include "character.h" instead of "charset.h".
21166 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21167 (syms_of_alloc): Remove defsubr for Smake_char_table.
21168
21169 * buffer.c: Include "character.h" instead of "charset.h", don't
21170 include "coding.h".
21171 (Fset_buffer_multibyte): Adjust for UTF-8.
21172
21173 * buffer.h: EXFUN Fbuffer_live_p.
21174
21175 * callproc.c: Include "character.h" instead of "charset.h".
21176 (Fcall_process): Big change for the new code-conversion APIs.
21177
21178 * casetab.c: Include "character.h" instead of "charset.h".
21179 (set_canon, set_identity, shuffle): Adjust for the new
21180 map_char_table spec.
21181 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21182 accessing the char table structure.
21183
21184 * chartab.c: New file that implements char table.
21185
21186 * category.c: Include "character.h".
21187 (copy_category_entry): New function.
21188 (copy_category_table): Call map_char_table and copy_category_entry.
21189 (Fmake_category_table): Initialize all top-level slots.
21190 (char_category_set): New function.
21191 (modify_lower_category_set): Delete.
21192 (Fmodify_category_entry): Call char_table_ref_and_range.
21193
21194 * category.h (CATEGORY_SET): Just call char_category_set.
21195
21196 * ccl.c: Include "character.h".
21197 (Qccl, Qcclp): New variables.
21198 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21199 it's less than 256.
21200 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21201 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21202 and DST type.
21203 (ccl_driver): Change types of argument, adjust code accordingly.
21204 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21205 ccl_driver.
21206 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21207
21208 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21209 New members src_multibyte, dst_multibyte, consumed, and produced.
21210 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21211 (CODING_SPEC_CCL_PROGRAM): New macro.
21212 (ccl_driver): Update prototype.
21213 (Qccl, Qcclp, Fccl_program_p): Extern them.
21214 (CHECK_CCL_PROGRAM): New macro.
21215
21216 * character.c, character.h, chartab.c: New files.
21217
21218 * charset.c: Mostly re-written. Move character and multibyte sequence
21219 handling codes to character.c.
21220
21221 * charset.h: Mostly re-written. Move character and multibyte sequence
21222 handling codes to character.h.
21223
21224 * coding.c, coding.h: Mostly re-written.
21225
21226 * composite.c: Include "character.h" instead of "charset.h".
21227 (CHAR_WIDTH): Move to character.h.
21228 (HASH_KEY, HASH_VALUE): Delete.
21229
21230 * composite.h (enum composition_method): Change order of enumeration
21231 symbols.
21232
21233 * data.c: Include "character.h" instead of "charset.h".
21234 (Faref): Call CHAR_TABLE_REF for a char table.
21235 (Faset): Call CHAR_TABLE_SET for a char table.
21236
21237 * dispextern.h (free_realized_face, check_face_attribytes)
21238 (generate_ascii_font): Extern them.
21239 (free_realized_multibyte_face): Delete extern.
21240
21241 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21242 table structure.
21243
21244 * editfns.c: Include "character.h" instead of "charset.h".
21245 (Fchar_to_string): Always call CHAR_STRING.
21246
21247 * emacs.c (main): Call init_charset_once, init_charset,
21248 syms_of_chartab, and syms_of_character.
21249
21250 * fileio.c: Include "character.h" instead of "charset.h".
21251 (Finsert_file_contents): Big change for the new code-conversion API.
21252 (choose_write_coding_system, Fwrite_region): Likewise.
21253 (build_annotations_2): Delete.
21254 (e_write): Big change for the new code-conversion API.
21255
21256 * fns.c: Include "character.h" instead of "charset.h".
21257 (copy_sub_char_table): Move to chartab.c.
21258 (Fcopy_sequence): Call copy_char_table for a char table.
21259 (concat): Delete codes calling count_multibyte.
21260 (string_char_to_byte, string_byte_to_char): Adjust for the new
21261 multibyte form.
21262 (internal_equal): Adjust for the change of char table structure.
21263 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21264 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21265 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21266 (char_table_translate, optimize_sub_char_table)
21267 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21268 chartab.c.
21269 (char_table_ref_and_index): Delete.
21270 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21271 (Fmd5): Call preferred_coding_system instead of accessing
21272 Vcoding_category_list. Adjust for the new code-conversion API.
21273 (syms_of_fns): Move defsubr for char table related functions to
21274 chartab.c.
21275
21276 * fontset.c: Mostly re-written.
21277
21278 * fontset.h (struct font_info): Change type of the member encoding_type.
21279 (enum FONT_SPEC_INDEX): New enum.
21280 (fontset_font_pattern, fs_load_font): Update prototype.
21281 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21282
21283 * indent.c: Include "character.h" instead of "charset.h".
21284 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21285
21286 * insdel.c: Include "character.h" instead of "charset.h".
21287 (copy_text): Don't refer to Vnonascii_translation_table.
21288 (insert_from_gap): New function.
21289
21290 * keyboard.c: Include "character.h" instead of "charset.h".
21291 (command_loop_1): Never call direct_output_forward_char before
21292 a non-ASCII character.
21293 (read_char): If Vkeyboard_translate_table is a char table, always
21294 translate a character.
21295
21296 * keymap.c: Include "character.h".
21297 (store_in_keymap): Handle the case that IDX is a cons.
21298 (Fdefine_key): Handle the case that KEY is a cons and the car part
21299 is also a cons (range).
21300 (push_key_description): Adjust for the new character code.
21301 (describe_vector): Call describe_char_table for a char table.
21302 (describe_char_table): New function.
21303
21304 * keymap.h (describe_char_table): Extern it.
21305
21306 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21307 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21308 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21309 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21310 Delete.
21311 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21312 structure.
21313 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21314 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21315 (CHARTAB_SIZE_BITS_3): New macros.
21316 (chartab_size): Extern it.
21317 (struct Lisp_Char_Table): Re-design.
21318 (struct Lisp_Sub_Char_Table): New structure.
21319 (HASH_KEY, HASH_VALUE): Move from fns.c.
21320 (CHARACTERBITS): Define as 22.
21321 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21322 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21323 (GC_SUB_CHAR_TABLE_P): New macro.
21324 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21325 (code_convert_string_norecord): Deleted extern.
21326 (init_character_once, syms_of_character, init_charset)
21327 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21328
21329 * lread.c: Include "character.h".
21330 (read_multibyte): New arg NBYTES.
21331 (read_escape): Change the meaning of returned *BYTEREP.
21332 (to_multibyte): Delete.
21333 (read1): Adjust the handling of char table and string.
21334
21335 * print.c: Include "character.h" instead of "charset.h".
21336 (print_string): Convert 8-bit raw bytes to octal form by
21337 string_escape_byte8.
21338 (print_object): Adjust for the new multibyte form. Print 8-bit
21339 raw bytes always in octal form. Handle sub char table correctly.
21340
21341 * process.c: Include "character.h" instead of "charset.h".
21342 (read_process_output, send_process): Adjust for the new
21343 code-conversion API.
21344
21345 * puresize.h (BASE_PURESIZE): Increase.
21346
21347 * regex.c: Include "character.h" instead of "charset.h".
21348 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21349 (regex_compile): Accept a range whose starting and ending
21350 character have different leading bytes.
21351 (analyse_first): Adjust for the above change.
21352
21353 * search.c: Include "character.h" instead of "charset.h".
21354 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21355 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21356
21357 * syntax.c: Include "character.h" instead of "charset.h".
21358 (syntax_parent_lookup): Delete.
21359 (Fmodify_syntax_entry): Accept a cons as CHAR.
21360 (skip_chars): Adjust for the new multibyte form.
21361 (init_syntax_once): Call char_table_set_range instead of directly
21362 accessing the structure of a char table.
21363
21364 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21365 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21366 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21367 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21368
21369 * term.c: Include "buffer.h" and "character.h".
21370 (encode_terminal_code, write_glyphs): Adjust for the new
21371 code-conversion API.
21372 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21373
21374 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21375
21376 * xdisp.c: Include "character.h".
21377 (get_next_display_element): Adjust for the new multibyte form.
21378 (disp_char_vector): Adjust for the new char table structure.
21379 (decode_mode_spec_coding): Adjust for the new structure of
21380 coding system.
21381 (decode_mode_spec): Adjust for the new code-conversion API.
21382
21383 * xfaces.c: Include "character.h" instead of "charset.h".
21384 (load_face_font): Adjust for the change of choose_face_font and
21385 FS_LOAD_FONT.
21386 (generate_ascii_font): New function.
21387 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21388 (set_font_frame_param): Adjust for the change of choose_face_font.
21389 (free_realized_face): Make it public.
21390 (free_realized_faces_for_fontset): Rename from
21391 free_realized_multibyte_face. Free also faces realized for ASCII.
21392 (choose_face_font): Change arguments. Adjust for the change of
21393 fontset_font_pattern and FS_LOAD_FONT.
21394
21395 * xfns.c: Include "character.h".
21396 (x_encode_text): Adjust for the new code-conversion API.
21397
21398 * xselect.c: Don't include "charset.h".
21399 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21400
21401 * xterm.c: Include "character.h".
21402 (x_encode_char): New argument CHARSET. Change caller.
21403 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21404 Call ENCODE_CHAR instead of SPLIT_CHAR.
21405 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21406 CHAR_WIDTH instead of CHARSET_WIDTH.
21407 (XTread_socket): Adjust for the new code-conversion API.
21408 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21409 (x_load_font): Adjust for the change of struct font.
21410
214112008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21412
21413 * xfaces.c (face_at_buffer_position): Remove unused vars.
21414
214152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21416
21417 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21418 Fix overflow checking.
21419
214202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21421
21422 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21423 Cancel previous change.
21424
214252008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21426
21427 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21428 ccl->eight_bit_control. Fix check for buffer overflow.
21429 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21430 (ccl_driver): Initialize extra_bytes to 0.
21431
214322008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21433
21434 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21435 return it ORed with ctrl_modifier.
21436
214372008-01-29 Miles Bader <miles@gnu.org>
21438
21439 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21440
214412008-01-28 Jason Rumney <jasonr@gnu.org>
21442
21443 * w32.c (stat): Don't double check for networked drive.
21444
214452008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21446
21447 * window.c (run_window_configuration_change_hook): New function.
21448 Code extracted from set_window_buffer. Set the selected frame.
21449 (set_window_buffer): Use it.
21450 * window.h (run_window_configuration_change_hook): Declare.
21451 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21452
21453 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21454
214552008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21456
21457 * Makefile.in: Remove references to unused macros.
21458
214592008-01-26 Eli Zaretskii <eliz@gnu.org>
21460
21461 * w32.c (g_b_init_get_sid_sub_authority)
21462 (g_b_init_get_sid_sub_authority_count): New static variables.
21463 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21464 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21465 (init_user_info): Use them to retrieve uid and gid.
21466 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21467 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21468 st_uid and st_gid of the file.
21469
214702008-01-26 Jason Rumney <jasonr@gnu.org>
21471
21472 * w32.c (logon_network_drive): New function.
21473 (stat): Use it.
21474
214752008-01-26 Chong Yidong <cyd@stupidchicken.com>
21476
21477 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21478 invisible text covered with an ellipsis.
21479
214802008-01-25 Richard Stallman <rms@gnu.org>
21481
21482 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21483 jump back to beginning. Move some other initializations after that.
21484 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21485 New variables.
21486 (syms_of_xdisp): Init them.
21487
21488 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21489
21490 * buffer.c (reset_buffer_local_variables):
21491 Implement `permanent-local-hook'.
21492 (Qpermanent_local_hook): New variable.
21493 (syms_of_buffer): Init and staticpro it.
21494
214952008-01-25 Michael Albinus <michael.albinus@gmx.de>
21496
21497 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21498
214992008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21500
21501 * fns.c (Fclrhash): Return TABLE.
21502
215032008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21504
21505 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21506 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21507 is set even without positional changes.
21508 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21509
21510 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21511
215122008-01-23 Jason Rumney <jasonr@gnu.org>
21513
21514 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21515
21516 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21517 the unicode range available in MULE by locale-coding-system.
21518 Improve dbcs lead byte detection. Set event timestamp and modifiers
21519 earlier.
21520
215212008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21522
21523 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21524 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21525 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21526 when used on child processes.
21527
215282008-01-21 Michael Albinus <michael.albinus@gmx.de>
21529
21530 * dbusbind.c (Fdbus_method_return_internal): Rename from
21531 Fdbus_method_return.
21532 (Fdbus_unregister_object): Move to dbus.el.
21533 (Fdbus_call_method, Fdbus_method_return_internal)
21534 (Fdbus_send_signal): Improve debug messages.
21535
215362008-01-20 Martin Rudalics <rudalics@gmx.at>
21537
21538 * undo.c (undo_inhibit_record_point): New variable.
21539 (syms_of_undo): Initialize it.
21540 (record_point): Don't record point when undo_inhibit_record_point
21541 is set.
21542
215432008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21544
21545 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21546
21547 * xdisp.c (Qauto_hscroll_mode): New var.
21548 (syms_of_xdisp): Initialize it.
21549 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21550 window's buffer.
21551 (hscroll_windows): Don't check automatic_hscrolling_p here.
21552
21553 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21554 vscroll if we're setting window-buffer to the value it already has.
21555
215562008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21557
21558 * m/intel386.h: Remove references to XENIX.
21559
215602008-01-17 Andreas Schwab <schwab@suse.de>
21561
21562 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21563 instead of HAVE_X86_64_LIB64_DIR.
21564 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21565
215662008-01-17 Glenn Morris <rgm@gnu.org>
21567
21568 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21569 to HAVE_X86_64_LIB64_DIR.
21570
215712008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21572
21573 * s/irix3-3.h:
21574 * s/irix4-0.h:
21575 * s/386-ix.h:
21576 * s/domain.h:
21577 * s/hpux9-x11r4.h:
21578 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21579
21580 * sysdep.c: Remove code containing references to symbols defined
21581 by unsupported systems.
21582
215832008-01-16 Glenn Morris <rgm@gnu.org>
21584
21585 * coding.c (select-safe-coding-system-function): Doc fix.
21586
215872008-01-15 Glenn Morris <rgm@gnu.org>
21588
21589 * config.in: Revert 2008-01-13 change: this is a generated file.
21590
215912008-01-13 Tom Tromey <tromey@redhat.com>
21592
21593 * lisp.h: Fix typo.
21594
215952008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21596
21597 * m/sequent-ptx.h:
21598 * m/sequent.h:
21599 * s/ptx.h:
21600 * s/ptx4-2.h:
21601 * s/ptx4.h: Remove files for systems no longer supported.
21602
21603 * callproc.c (Fcall_process): Fix previous change.
21604
216052008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21606
21607 * unexsunos4.c: Remove file, system not supported anymore.
21608
21609 * m/mips.h:
21610 * m/intel386.h:
21611 * callproc.c:
21612 * config.in:
21613 * ecrt0.c:
21614 * emacs.c:
21615 * fileio.c:
21616 * frame.c:
21617 * getpagesize.h:
21618 * keyboard.c:
21619 * lread.c:
21620 * process.c:
21621 * puresize.h:
21622 * sysdep.c:
21623 * systty.h:
21624 * syswait.h:
21625 * unexec.c:
21626 * xdisp.c:
21627 * alloc.c: Remove code containing references to symbols defined by
21628 unsupported systems.
21629
216302008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21631
21632 * coding.c (detect_coding_mask): Fix previous change.
21633
216342008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21635
21636 * coding.c (detect_coding_iso2022): New arg
21637 latin_extra_code_state. Allow Latin extra codes only
21638 when *latin_extra_code_state is nonzero.
21639 (detect_coding_mask): If there is a NULL byte, detect the encoding
21640 as UTF-16 or binary. If Latin extra codes exist, detect the
21641 encoding as ISO-2022 only when there's no other proper encoding is
21642 found.
21643
216442008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21645
21646 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21647 #ifdef MAC_OS.
21648
216492008-01-08 Richard Stallman <rms@gnu.org>
21650
21651 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21652
216532008-01-06 Nick Roberts <nickrob@snap.net.nz>
21654
21655 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21656 menu bar in parentheses.
21657
216582008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21659
21660 * m/7300.h:
21661 * m/acorn.h:
21662 * m/alliant-2800.h:
21663 * m/alliant.h:
21664 * m/alliant1.h:
21665 * m/alliant4.h:
21666 * m/altos.h:
21667 * m/amdahl.h:
21668 * m/apollo.h:
21669 * m/att3b.h:
21670 * m/aviion-intel.h:
21671 * m/aviion.h:
21672 * m/celerity.h:
21673 * m/clipper.h:
21674 * m/cnvrgnt.h:
21675 * m/convex.h:
21676 * m/cydra5.h:
21677 * m/delta88k.h:
21678 * m/dpx2.h:
21679 * m/dual.h:
21680 * m/elxsi.h:
21681 * m/f301.h:
21682 * m/gould-np1.h:
21683 * m/gould.h:
21684 * m/i860.h:
21685 * m/ibmps2-aix.h:
21686 * m/ibmrt-aix.h:
21687 * m/ibmrt.h:
21688 * m/irist.h:
21689 * m/is386.h:
21690 * m/isi-ov.h:
21691 * m/mega68.h:
21692 * m/mg1.h:
21693 * m/news-r6.h:
21694 * m/news-risc.h:
21695 * m/news.h:
21696 * m/nh3000.h:
21697 * m/nh4000.h:
21698 * m/ns16000.h:
21699 * m/ns32000.h:
21700 * m/nu.h:
21701 * m/orion.h:
21702 * m/orion105.h:
21703 * m/paragon.h:
21704 * m/pfa50.h:
21705 * m/plexus.h:
21706 * m/pyramid.h:
21707 * m/pyrmips.h:
21708 * m/sh3el.h:
21709 * m/sps7.h:
21710 * m/sr2k.h:
21711 * m/stride.h:
21712 * m/sun1.h:
21713 * m/sun2.h:
21714 * m/sun3-68881.h:
21715 * m/sun3-fpa.h:
21716 * m/sun3-soft.h:
21717 * m/sun3.h:
21718 * m/sun386.h:
21719 * m/symmetry.h:
21720 * m/tad68k.h:
21721 * m/tahoe.h:
21722 * m/targon31.h:
21723 * m/tek4300.h:
21724 * m/tekxd88.h:
21725 * m/tower32.h:
21726 * m/tower32v3.h:
21727 * m/ustation.h:
21728 * m/wicat.h:
21729 * m/xps100.h:
21730 * s/cxux.h:
21731 * s/cxux7.h:
21732 * s/dgux.h:
21733 * s/dgux4.h:
21734 * s/dgux5-4-3.h:
21735 * s/dgux5-4r2.h:
21736 * s/esix.h:
21737 * s/esix5r4.h:
21738 * s/hiuxmpp.h:
21739 * s/hiuxwe2.h:
21740 * s/iris3-5.h:
21741 * s/iris3-6.h:
21742 * s/isc2-2.h:
21743 * s/isc3-0.h:
21744 * s/isc4-0.h:
21745 * s/isc4-1.h:
21746 * s/newsos5.h:
21747 * s/newsos6.h:
21748 * s/osf1.h:
21749 * s/osf5-0.h:
21750 * s/riscix1-1.h:
21751 * s/riscix12.h:
21752 * s/sco4.h:
21753 * s/sco5.h:
21754 * s/sunos4-0.h:
21755 * s/sunos4-1.h:
21756 * s/sunos413.h:
21757 * s/sunos4shr.h:
21758 * s/umax.h:
21759 * s/unipl5-2.h:
21760 * s/xenix.h:
21761 * cxux-crt0.s:
21762 * unexapollo.c:
21763 * unexconvex.c:
21764 * unexenix.c:
21765 * unexsni.c: Remove files for systems no longer supported.
21766
21767 * m/intel386.h: Remove references to unsupported systems.
21768
21769 * w32.c (get_emacs_configuration): Remove reference to i860.
21770
21771 * sysdep.c: Remove dead code.
21772
217732008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21774
21775 * s/rtu.h:
21776 * m/masscomp.h: Remove files. Platform is obsolete.
21777
217782008-01-04 Michael Albinus <michael.albinus@gmx.de>
21779
21780 * dbusbind.c (Fdbus_method_return): New function.
21781 (xd_read_message): Add the serial number to the event.
21782 (Fdbus_register_method): Activate the function.
21783
217842008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21785
21786 * keyboard.c (read_key_sequence): Fix typo.
21787
217882008-01-03 Michael Albinus <michael.albinus@gmx.de>
21789
21790 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21791 (xd_signature, xd_append_arg): Handle element type detection for
21792 empty arrays.
21793 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21794 SDATA () calls; this must be solved more general.
21795 (Fdbus_register_signal): Use SBYTES instead of strlen.
21796
217972008-01-03 Magnus Henoch <magnus@zemdatav>
21798
21799 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21800 unsigned int for byte values (necessary for big-endian platform).
21801 (Fdbus_call_method): Handle the case of no returned arguments.
21802
218032007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21804
21805 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21806
218072007-12-31 Magnus Henoch <mange@freemail.hu>
21808
21809 * dbusbind.c (xd_signature): Signature of variant is just "v".
21810
218112007-12-30 Michael Albinus <michael.albinus@gmx.de>
21812
21813 * dbusbind.c: Fix several errors and compiler warnings.
21814 Reported by Tom Tromey <tromey@redhat.com>.
21815 (XD_ERROR, XD_DEBUG_MESSAGE)
21816 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21817 (xd_append_arg): Part for basic D-Bus types rewritten.
21818 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21819 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21820 appropriate.
21821 (xd_read_message): Return Qnil. Don't signal an error; it is not
21822 useful during event reading.
21823 (Fdbus_register_signal): Signal an error if the check for
21824 FUNCTIONP fails.
21825 (Fdbus_register_method): New function. The implementation is not
21826 complete, the call of the function signals an error therefore.
21827 (Fdbus_unregister_object): New function, renamed from
21828 Fdbus_unregister_signal. The initial check signals an error, if
21829 the object is not well formed.
21830
218312007-12-30 Richard Stallman <rms@gnu.org>
21832
21833 * textprop.c (get_char_property_and_overlay):
21834 Signal error if POSITION is out of range in a buffer.
21835
218362007-12-29 Martin Rudalics <rudalics@gmx.at>
21837
21838 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21839 because the original parameters are in pure storage now.
21840
218412007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21842
21843 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21844
218452007-12-22 Eli Zaretskii <eliz@gnu.org>
21846
21847 * callint.c (syms_of_callint) <command-history>: Add reference to
21848 history-length in the doc string.
21849
218502007-12-17 Jason Rumney <jasonr@gnu.org>
21851
21852 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21853 before passing as wParam.
21854
218552007-12-22 Michael Albinus <michael.albinus@gmx.de>
21856
21857 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21858 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21859 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21860 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21861 as number.
21862 (Fdbus_call_method): Fix docstring.
21863
218642007-12-21 Michael Albinus <michael.albinus@gmx.de>
21865
21866 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21867 New macros.
21868 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21869 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21870 Simplify.
21871 (xd_signature): New function.
21872 (xd_append_arg): Compute also signatures. Major rewrite.
21873 (xd_retrieve_arg): Make debug messages friendly.
21874 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21875 Check for signatures of arguments.
21876
218772007-12-19 Michael Albinus <michael.albinus@gmx.de>
21878
21879 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21880 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21881 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21882 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21883 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21884 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21885 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21886 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21887 (xd_retrieve_value): Remove. Functionality included in ...
21888 (xd_append_arg): New function.
21889 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21890
218912007-12-16 Michael Albinus <michael.albinus@gmx.de>
21892
21893 * dbusbind.c (top): Include <stdio.h>.
21894 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21895 dbus_message_new_method_call and dbus_message_new_signal.
21896 (Fdbus_register_signal): Rename unique_name to uname.
21897 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21898 non-existing unique name. Fix typos in matching rule. Return an
21899 object which is useful in Fdbus_unregister_signal.
21900 (Fdbus_unregister_signal): Reimplementation, in order to remove
21901 only the corresponding entry.
21902 (Vdbus_registered_functions_table): Change the order of entries.
21903 Apply these changes in xd_read_message and Fdbus_register_signal.
21904
219052007-12-16 Andreas Schwab <schwab@suse.de>
21906
21907 * fileio.c (Finsert_file_contents): Fix overflow check to not
21908 depend on undefined integer overflow.
21909
219102007-12-14 Jason Rumney <jasonr@gnu.org>
21911
21912 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21913 for characters above 127.
21914
219152007-12-13 Jason Rumney <jasonr@gnu.org>
21916
21917 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21918 before dereferencing array.
21919 (lookup_vk_code): Remove zero comparison.
21920
219212007-12-14 Michael Albinus <michael.albinus@gmx.de>
21922
21923 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21924 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21925 Use `unsigned int' instead of `uint'.
21926 (xd_read_message, Fdbus_register_signal): Split expressions into
21927 multiple lines before operators "&&" and "||", according to the
21928 GNU Coding Standards.
21929
219302007-12-14 Eli Zaretskii <eliz@gnu.org>
21931
21932 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21933
219342007-12-12 Juri Linkov <juri@jurta.org>
21935
21936 * buffer.c (Frename_buffer): In interactive spec replace
21937 `read-buffer' with `read-string' that uses `buffer-name-history'
21938 as history, and the current buffer's name as default.
21939
219402007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21941
21942 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21943 manipulating the backtrace manually.
21944 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21945 (struct backtrace, backtrace_list): Remove.
21946 (command_loop_1): Remove dead var `no_direct'.
21947
21948 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21949 preserve non-built-in buffer-local variables.
21950 (Fkill_all_local_variables): Don't re-create&re-set permanent
21951 buffer-local variables.
21952
219532007-12-09 Juri Linkov <juri@jurta.org>
21954
21955 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21956 Lisp code that uses `read-buffer' with current buffer as default.
21957
219582007-12-08 Michael Albinus <michael.albinus@gmx.de>
21959
21960 * dbusbind.c (xd_read_message): Generate an event for every
21961 registered handler. There might be several handlers registered
21962 for the same signal.
21963 (Fdbus_register_signal): Don't overwrite a registration for the
21964 same signal. Add a new registration if handlers are different.
21965 (Vdbus_registered_functions_table): Rework doc string.
21966
219672007-12-07 Michael Albinus <michael.albinus@gmx.de>
21968
21969 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21970 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21971 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21972 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21973 Unify argument lists.
21974 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21975 arguments and hash table keys. Use unique name for service.
21976 (Fdbus_unregister_signal): Remove checks.
21977 (Vdbus_registered_functions_table): Fix doc string.
21978
219792007-12-05 Magnus Henoch <mange@freemail.hu>
21980
21981 * process.c (make_process): Initialize pty_flag to 0.
21982
219832007-12-05 Jason Rumney <jasonr@gnu.org>
21984
21985 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21986 specified XBMs.
21987
219882007-12-05 Richard Stallman <rms@gnu.org>
21989
21990 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21991
219922007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21993
21994 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21995 New variable.
21996 (mac_try_close_socket) [MAC_OSX]: New function.
21997 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21998 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21999
22000 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22001 Use mac_try_close_socket.
22002
220032007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22004
22005 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22006 reloc_base.
22007 (copy_dysymtab): Compute relocation base here.
22008 (rebase_reloc_address) [__ppc64__]: New function.
22009 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22010 changed.
22011
220122007-12-05 Jason Rumney <jasonr@gnu.org>
22013
22014 * w32proc.c (sys_spawnve): Quote args with wildcards.
22015
220162007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22017
22018 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22019 __objc_* sections.
22020 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22021
220222007-12-05 Michael Albinus <michael.albinus@gmx.de>
22023
22024 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22025 Move check for Vdbus_registered_functions_table to
22026 xd_read_queued_messages.
22027 (xd_read_queued_messages): Protect xd_read_message calls by
22028 internal_condition_case_1.
22029
220302007-12-04 Michael Albinus <michael.albinus@gmx.de>
22031
22032 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22033 Qdbus_system_bus and Qdbus_session_bus, respectively.
22034 (Vdbus_intern_symbols): Remove.
22035 (Vdbus_registered_functions_table): New hash table.
22036 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22037 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22038 Rewrite in order to manage registered functions by hash table
22039 Vdbus_registered_functions_table.
22040
220412007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22042
22043 * xterm.c: Update URL to Window Manager Specification in comment.
22044
220452007-12-02 Michael Albinus <michael.albinus@gmx.de>
22046
22047 * config.in (HAVE_DBUS): Add.
22048
22049 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22050 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22051 (obj): Add $(DBUS_OBJ).
22052 (LIBES): Add $(DBUS_LIBS).
22053 (dbusbind.o): New target.
22054
22055 * dbusbind.c: New file.
22056
22057 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22058
22059 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22060 (Qdbus_event): New Lisp symbol.
22061 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22062 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22063 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22064
22065 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22066
220672007-12-01 Richard Stallman <rms@gnu.org>
22068
22069 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22070
220712007-11-30 Jason Rumney <jasonr@gnu.org>
22072
22073 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22074 (w32con_reset_terminal_modes): Clear screen buffer.
22075 (w32_face_attributes): Don't use color indexes that are out of range.
22076 Only reverse the default colors.
22077
22078 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22079 WINDOWSNT.
22080
22081 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22082
220832007-11-29 Jason Rumney <jasonr@gnu.org>
22084
22085 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22086 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22087 if the terminal colors are initialized.
22088 (unspecified_fg, unspecified_bg): Remove unused declarations.
22089
220902007-11-29 Andreas Schwab <schwab@suse.de>
22091
22092 * keyboard.c (apply_modifiers): Fix typo.
22093
220942007-11-29 Richard Stallman <rms@gnu.org>
22095
22096 * keymap.c (Fcurrent_local_map): Doc fix.
22097
220982007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22099
22100 * s/gnu-kfreebsd.h: New file.
22101
221022007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22103
22104 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22105 Don't cast redundantly.
22106
22107 * keyboard.c (KEY_TO_CHAR): New macro.
22108 (parse_modifiers, apply_modifiers): Accept integer arguments.
22109 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22110 for chars and symbol keys.
22111 After doing such remapping, apply function-key-map again.
22112
221132007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22114
22115 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22116 compiled anymore.
22117
221182007-11-26 Andreas Schwab <schwab@suse.de>
22119
22120 * process.c (list_processes_1): Fix indentation level of the
22121 command column.
22122
221232007-11-23 Andreas Schwab <schwab@suse.de>
22124
22125 * editfns.c (Fformat): Handle %c specially since it requires the
22126 argument to be of type int.
22127
221282007-11-23 Markus Triska <markus.triska@gmx.at>
22129
22130 * emacs.c (main): Call init_editfns before init_process, since
22131 init_process sets Vprocess_connection_type depending on OS release.
22132
221332007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22134
22135 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22136 (find_symbol_value): Use do_symval_forwarding.
22137
22138 * data.c (set_internal): Set the value in the `cons-cell' (for
22139 Buffer_Local_values) not only for frame-local variables.
22140
221412007-11-22 Andreas Schwab <schwab@suse.de>
22142
22143 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22144 values to sprintf.
22145 * keymap.c (Fsingle_key_description): Likewise.
22146 * print.c (print_object): Likewise.
22147
221482007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22149
22150 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22151 file for image is nil.
22152
221532007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22154
22155 * term.c: Include stdarg.h.
22156 (fatal): Implement using varargs.
22157 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22158
221592007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22160
22161 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22162 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22163 Update call to buffer_slot_type_mismatch.
22164 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22165 (buffer_slot_type_mismatch): Update.
22166 * buffer.c (buffer_local_types): Remove.
22167 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22168 (defvar_per_buffer): Set the type in the buffer_objfwd.
22169
221702007-11-21 Jason Rumney <jasonr@gnu.org>
22171
22172 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22173 CreateFileMapping returns NULL on failure.
22174
221752007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22176
22177 * search.c (Fset_match_data): Remove the `evaporate' feature.
22178 (unwind_set_match_data): Don't use the `evaporate' feature.
22179
221802007-11-21 Jason Rumney <jasonr@gnu.org>
22181
22182 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22183
22184 * w32console.c (w32con_write_glyphs): Remove unused variables.
22185
221862007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22187
22188 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22189
22190 * s/darwin.h (MULTI_KBOARD): Remove.
22191
22192 * macfns.c (x_create_tip_frame, Fx_create_frame)
22193 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22194
221952007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22196
22197 * buffer.c (Fbuffer_local_value): Remove redundant test.
22198 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22199 than in `current-buffer' to match the comment.
22200 Do the swap using swap_in_global_binding.
22201
22202 * data.c (store_symval_forwarding, set_internal):
22203 * eval.c (specbind): Remove dead code.
22204
22205 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22206 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22207 Since we do not want to see internal Lisp_*fwd objects here.
22208
222092007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22210
22211 * sysdep.c (init_system_name): Use getaddrinfo if available.
22212
22213 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22214 (x_scroll_bar_note_movement): start, end, with, height in struct
22215 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22216
222172007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22218
22219 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22220
222212007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22222
22223 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22224 This undoes Richard's change of 14-Oct-2002.
22225
22226 * alloc.c (allocate_other_vector):
22227 * lisp.h (allocate_other_vector): Remove.
22228
22229 * window.c (struct save_window_data): Move non-lisp data to the end
22230 and make it `int' rather than Lisp_Object.
22231 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22232 Done wrap/unwrap integer values.
22233 (Fset_window_configuration, compare_window_configurations):
22234 Update use of fields to their new types.
22235
22236 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22237 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22238 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22239 (SET_SCROLL_BAR_X_WINDOW): Remove.
22240 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22241 Access the new x_window field directly.
22242 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22243 Don't wrap/unwrap integers into Lisp_Objects.
22244 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22245 (x_scroll_bar_report_motion):
22246 Don't wrap/unwrap integers into Lisp_Objects.
22247 (x_term_init): Use SDATA.
22248 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22249 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22250 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22251 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22252 * xfns.c (x_set_background_color):
22253 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22254 Access the new x_window field directly.
22255
22256 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22257 (allocate_pseudovector): Make non-static.
22258
22259 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22260 (allocate_pseudovector): Declare.
22261 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22262
222632007-11-15 Andreas Schwab <schwab@suse.de>
22264
22265 * editfns.c (Fformat): Correctly format EMACS_INT values.
22266 Also take precision into account when formatting an integer.
22267
22268 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22269
222702007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22271
22272 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22273 (syms_of_keyboard): Defsubr it.
22274
22275 * data.c (swap_in_global_binding): Fix longstanding bug where
22276 store_symval_forwarding was not called with the right second argument,
22277 thus causing objfwd-ing from being dropped.
22278
222792007-11-14 Juanma Barranquero <lekktu@gmail.com>
22280
22281 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22282 (Fx_display_pixel_height, Fx_display_planes)
22283 (Fx_display_color_cells, Fx_server_max_request_size)
22284 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22285 (Fx_display_visual_class, Fx_display_save_under):
22286 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22287 (Fx_display_pixel_height, Fx_display_planes)
22288 (Fx_display_color_cells, Fx_server_max_request_size)
22289 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22290 (Fx_display_mm_height, Fx_display_mm_width)
22291 (Fx_display_backing_store, Fx_display_visual_class)
22292 (Fw32_select_font, Fx_display_save_under):
22293 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22294 (Fx_display_pixel_height, Fx_display_planes)
22295 (Fx_display_color_cells, Fx_server_max_request_size)
22296 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22297 (Fx_display_save_under): Fix typos in docstrings.
22298
222992007-11-14 Juanma Barranquero <lekktu@gmail.com>
22300
22301 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22302 corresponding to deleted entries; they are an implementation detail.
22303 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22304 Remove variables.
22305 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22306 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22307 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22308 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22309 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22310 (Fw32_define_rgb_color, Fw32_load_color_file)
22311 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22312 Fix typos in docstrings.
22313 (Fx_server_version): Reflow docstring.
22314 (Fw32_shell_execute): Doc fixes.
22315
223162007-11-13 Juanma Barranquero <lekktu@gmail.com>
22317
22318 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22319 if w32_parse_hot_key returned nil.
22320
223212007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22322
22323 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22324
223252007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22326
aac0c6e3
MR
22327 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22328
22329 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22330
22331 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22332 Remove W32_SCROLL_BAR_CLICK_EVENT.
22333
22334 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22335 Add MULTIMEDIA_KEY_EVENT.
22336
22337 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22338 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22339 (make_lispy_event) [WINDOWSNT]: Use it to translate
22340 MULTIMEDIA_KEY_EVENT.
22341
22342 * w32term.h (WM_APPCOMMAND): Define if not already.
22343 (GET_APPCOMMAND_LPARAM): Likewise.
22344
22345 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22346 WM_APPCOMMAND.
22347
22348 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22349 (syms_of_w32fns): Export and initialize it.
22350 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22351
223522007-11-09 Chong Yidong <cyd@stupidchicken.com>
22353
22354 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22355 twice.
22356
22357 * xdisp.c (handle_face_prop): Fix last change.
22358
223592007-11-09 Richard Stallman <rms@gnu.org>
22360
22361 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22362 not just for after-strings and before-strings.
22363 Call face_for_overlay_string and pass the overlay to it.
22364 (handle_display_prop): Determine whether property came from an overlay.
22365 Pass OVERLAY arg to handle_single_display_spec.
22366 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22367 (load_overlay_strings): Fill in it->string_overlays.
22368 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22369
22370 * xfaces.c (face_for_overlay_string): Function renamed from
22371 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22372
22373 * dispextern.h (struct it): New elt string_overlays.
22374 New elt from_overlay, also in stack.
22375 Rearrange a few elements.
22376 (face_for_overlay_string): Decl renamed from
22377 face_at_buffer_position_no_overlays, and add argument.
22378
223792007-11-09 Richard Stallman <rms@gnu.org>
22380
22381 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22382 to get the base face for an overlay string.
22383
22384 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22385
22386 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22387
22388 * xdisp.c (handle_stop): Move some code out of loop.
22389
223902007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22391
22392 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22393 Fix conversion from Lisp object to ATSUFontID.
22394
223952007-11-09 Jason Rumney <jasonr@gnu.org>
22396
22397 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22398
223992007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22400
22401 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22402 Don't assume regions are aligned to page boundary.
22403 (print_load_command_name): Add LC_UUID if defined.
22404
224052007-11-09 Richard Stallman <rms@gnu.org>
22406
22407 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22408
224092007-11-07 Jason Rumney <jasonr@gnu.org>
22410
22411 * s/windows95.h: Remove.
22412
224132007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22414
22415 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22416 abort with a message on unhandled store_type values.
22417
224182007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22419
22420 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22421 Remove HAVE_X11R5 and HAVE_X11R4.
22422
224232007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22424
22425 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22426
224272007-11-01 Johan Bockgård <bojohan@gnu.org>
22428
22429 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22430 Don't set s->stippled_p here, since it has already been set by
22431 x_set_glyph_string_gc from x_draw_glyph_string.
22432
224332007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22434
22435 * sunfns.c: Remove file.
22436
22437 * m/sun386.h:
22438 * m/sun2.h:
22439 * m/sparc.h: Remove Sun windows code.
22440
224412007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22442
22443 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22444 (init_keyboard): Set current_kboard's window-system to nil.
22445 (tty_read_avail_input): Typo.
22446 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22447
224482007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22449
22450 * s/usg5-4.h:
22451 * s/usg5-3.h:
22452 * s/ptx.h:
22453 * m/is386.h:
22454 * m/ibmps2-aix.h:
22455 * Makefile.in: Remove all mentions of X10.
22456
22457 * dispnew.c (syms_of_display): Don't mention version 10.
22458
224592007-10-28 Juanma Barranquero <lekktu@gmail.com>
22460
22461 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22462 ($(BLD)/abbrev.$(O)): Remove.
22463
224642007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22465
22466 Rewrite abbrev.c in Elisp.
22467 * image.c (Qcount): Don't declare as extern.
22468 (syms_of_image): Initialize and staticpro `Qcount'.
22469 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22470 * emacs.c (main): Don't call syms_of_abbrev.
22471 * Makefile.in (obj): Remove abbrev.o.
22472 (abbrev.o): Remove.
22473 * abbrev.c: Remove.
22474
224752007-10-26 Martin Rudalics <rudalics@gmx.at>
22476
22477 * window.c (window_min_size_2): Don't count header-line.
22478
224792007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22480
22481 * frame.h (struct frame): Move all bit fields after the first bit
22482 field to take advantage of the available space. Group all the
22483 chars together to reduce wasted space due to padding.
22484
224852007-10-26 Juanma Barranquero <lekktu@gmail.com>
22486
22487 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22488
22489 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22490 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22491 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22492 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22493 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22494 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22495 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22496 (last_marked, mark_object_loop_halt): Make static.
22497
22498 * frame.c (syms_of_frame) <delete-frame-functions>:
22499 Fix typo in docstring.
22500
225012007-10-25 Juanma Barranquero <lekktu@gmail.com>
22502
22503 * w32.c (init_environment): Fix tiny memory leak.
22504 (w32_get_resource): Remove unused variable `ok'.
22505
225062007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22507
22508 Make `window-system' into a keyboard-local variable (rather than
22509 frame-local as done originally by multi-tty).
22510
22511 * keyboard.h (struct kboard): Add Vwindow_system.
22512 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22513 (mark_kboards): Mark Vwindow_system.
22514
22515 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22516 (init_display): Don't set the obsolete `window-system' frame-param.
22517
22518 * xterm.c (x_term_init):
22519 * w32term.c (w32_create_terminal):
22520 * term.c (init_tty): Set Vwindow_system.
22521 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22522 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22523
22524 * xfns.c (Fx_create_frame, x_create_tip_frame):
22525 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22526 * macfns.c (Fx_create_frame):
22527 Don't set the obsolete `window-system' frame-param.
22528
22529 * frame.h (Qwindow_system): Remove.
22530 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22531 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22532
225332007-10-24 Richard Stallman <rms@gnu.org>
22534
22535 * frame.c (x_figure_window_size): For fullscreen case,
22536 set USPosition | PPosition without clobbering rest of window_prompting.
22537
22538 * keyboard.c (Fcurrent_idle_time): Doc fix.
22539
22540 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22541
225422007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22543
22544 * process.c (unwind_request_sigio): Only define if __ultrix__.
22545
22546 * callproc.c (child_setup): Remove spurious *.
22547
22548 * lisp.h (Fget_text_property): Declare.
22549 (have_menus_p): Declare it here rather than in sys-dep header files.
22550 * macterm.h (have_menus_p):
22551 * msdos.h (have_menus_p):
22552 * xterm.h (have_menus_p): Remove.
22553
22554 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22555 (Fmake_variable_frame_local): Just check the variable's const-ness
22556 rather than checking nil or t.
22557
225582007-10-22 Jason Rumney <jasonr@gnu.org>
22559
22560 * w32fns.c: Include math.h.
22561 (w32_abort): Declaration moved to nt/config.nt.
22562
22563 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22564 (abort): Redefinition moved to nt/config.nt.
22565
22566 * m/windowsnt.h: Remove.
22567
225682007-10-22 Juanma Barranquero <lekktu@gmail.com>
22569
22570 * emacs.c (Fdump_emacs): Fix typo in message.
22571 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22572 <installation-directory>: Reflow docstring.
22573
225742007-10-22 Juri Linkov <juri@jurta.org>
22575
22576 * minibuf.c: Allow minibuffer default to be a list of default values.
22577 With empty input use the first element of this list as returned default.
22578 (string_to_object)
22579 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22580 (read_minibuf): If defalt is cons, set histstring to its car.
22581 (Fread_string): If default_value is cons, set val to its car.
22582 (Fread_buffer): If def is cons, use its car.
22583 (Fcompleting_read): If defalt is cons, set val to its car.
22584
225852007-10-21 Michael Albinus <michael.albinus@gmx.de>
22586
22587 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22588
225892007-10-20 Juanma Barranquero <lekktu@gmail.com>
22590
22591 * doc.c (Fdocumentation): Check for advice in all cases.
22592
225932007-10-19 Chong Yidong <cyd@stupidchicken.com>
22594
22595 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22596
225972007-10-19 Richard Stallman <rms@gnu.org>
22598
22599 * doc.c (Fdocumentation): Check for and handle an advised function.
22600
226012007-10-19 Juanma Barranquero <lekktu@gmail.com>
22602
22603 * process.c (Fset_process_filter): Doc fix.
22604
226052007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22606
22607 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22608 which caused key-translation-map to applied repeatedly (thus breaking
22609 double-mode).
22610
226112007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22612
22613 * xselect.c (x_own_selection, x_handle_selection_clear)
22614 (x_clear_frame_selections):
22615 * w32menu.c (list_of_panes, list_of_items):
22616 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22617 * textprop.c (validate_plist, interval_has_all_properties)
22618 (interval_has_some_properties, interval_has_some_properties_list)
22619 (add_properties, text_property_list):
22620 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22621 * minibuf.c (Fassoc_string):
22622 * macselect.c (x_own_selection, x_clear_frame_selections)
22623 (Fx_disown_selection_internal):
22624 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22625 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22626
226272007-10-17 Chong Yidong <cyd@stupidchicken.com>
22628
22629 * process.c: Link to libs for calling res_init() if available.
22630 (Fmake_network_process): Call res_init() before getaddrinfo or
22631 gethostbyname, if possible.
22632
226332007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22634
22635 * lread.c (read1): Set pvectype for char_tables.
22636
22637 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22638 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22639 Add type checks.
22640 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22641
22642 * alloc.c (free_misc): Use XMISCTYPE.
22643 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22644
226452007-10-17 Glenn Morris <rgm@gnu.org>
22646
22647 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22648 (syms_of_minibuf): Add Qcompletion_ignore_case.
22649 * dired.c (Qcompletion_ignore_case): Change to external.
22650 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22651 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22652 (Fread_file_name): Use it rather than intern'ing.
22653
22654 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22655 (Fread_coding_system): Ignore case of user input.
22656
226572007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22658
22659 * xdisp.c (handle_display_prop): Ignore display specs after
22660 replacing one when string text is being replaced.
22661 (handle_single_display_spec): Pretend as if characters with display
22662 property haven't been consumed only when buffer text is being replaced.
22663
226642007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22665
22666 * xfns.c (Fx_create_frame, Fx_display_list):
22667 * window.c (window_fixed_size_p, enlarge_window)
22668 (shrink_window_lowest_first):
22669 * macterm.c (init_font_name_table):
22670 * macfns.c (Fx_create_frame, Fx_display_list):
22671 * lread.c (close_load_descs):
22672 * keyboard.c (read_char_x_menu_prompt):
22673 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22674 * coding.c (code_convert_region_unwind): Test the type of an object
22675 rather than just !NILP before extracting data from it.
22676
22677 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22678
22679 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22680 (XMISCANY): New macro.
22681 (XMISCTYPE): Use it.
22682 (struct Lisp_Misc_Any): New type.
22683 (union Lisp_Misc): Use it.
22684 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22685 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22686 (find_symbol_value, set_internal, default_value, Fset_default)
22687 (Fmake_variable_buffer_local, Fmake_local_variable)
22688 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22689 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22690 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22691 * alloc.c (allocate_buffer): Set the size and tag.
22692 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22693 Use XMISCANY.
22694 (die): Follow the GNU convention for error messages.
22695 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22696 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22697 tag any more.
22698 (set_buffer_internal_1):
22699 * frame.c (store_frame_param):
22700 * eval.c (specbind):
22701 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22702
22703 * doc.c (Fsnarf_documentation): Simplify.
22704
227052007-10-14 Juanma Barranquero <lekktu@gmail.com>
22706
22707 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22708 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22709
227102007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22711
22712 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22713
227142007-10-14 Juanma Barranquero <lekktu@gmail.com>
22715
22716 * eval.c (do_autoload): Don't save autoloads.
22717
22718 * data.c (Ffset): Save autoload of the function being set.
22719
227202007-10-07 John Paul Wallington <jpw@pobox.com>
22721
22722 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22723 parameter before setting up faces.
22724
227252007-10-13 Eli Zaretskii <eliz@gnu.org>
22726
22727 * ccl.c (Fregister_code_conversion_map):
22728 * keyboard.c (append_tool_bar_item): Reformat last change.
22729
22730 * lisp.h (eabs): Rename from `abs'. All callers changed.
22731
227322007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22733
22734 * buffer.c (add_overlay_mod_hooklist):
22735 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22736 * fontset.c (make_fontset):
22737 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22738 (append_tool_bar_item):
22739 * macmenu.c (grow_menu_items):
22740 * w32menu.c (grow_menu_items):
22741 * xmenu.c (grow_menu_items): Use larger_vector.
22742
227432007-10-13 Eli Zaretskii <eliz@gnu.org>
22744
22745 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22746 selected frame'' on MSDOS).
22747
227482007-10-12 Martin Rudalics <rudalics@gmx.at>
22749
22750 * frame.c (Qexplicit_name): New variable.
22751 (x_report_frame_params): Report it in parameter alist.
22752 (syms_of_frame): Intern and staticpro it.
22753
227542007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22755
22756 * macfns.c (x_create_tip_frame): Set terminal for frame.
22757
227582007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22759
22760 * frame.c (Qenvironment): Remove.
22761 (syms_of_frame) <Qenvironment>: Don't initialize.
22762 (Fdelete_frame): Don't treat the `environment' param specially.
22763 * frame.h (Qenvironment): Don't declare.
22764 * callproc.c (set_initial_environment): Don't set unused frame param.
22765
22766 * frame.c (Fframe_with_environment): Remove.
22767 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22768
22769 * lisp.h (Fframe_with_environment): Don't declare.
22770
227712007-10-10 Juanma Barranquero <lekktu@gmail.com>
22772
22773 * indent.c (indent_tabs_mode, last_known_column)
22774 (last_known_column_modified): Make static.
22775 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22776
227772007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22778
22779 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22780
227812007-10-09 Jason Rumney <jasonr@gnu.org>
22782
22783 * w32term.c (x_set_window_size): Disable code that attempts to tell
22784 Lisp code about a size change before it actually happens.
22785
227862007-10-09 Richard Stallman <rms@gnu.org>
22787
22788 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22789 return HANDLED_RETURN.
22790
227912007-10-08 Martin Rudalics <rudalics@gmx.at>
22792
22793 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22794 when there's an unread command event.
22795
22796 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22797 window autoselection act appropriately when leaving selected frame.
22798 (syms_of_frame): Initialize focus_follows_mouse.
22799 * frame.h (focus_follows_mouse): Extern it.
22800 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22801 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22802 * msdos.c (dos_rawgetc): Likewise.
22803 * w32term.c (w32_read_socket): Likewise.
22804 * xterm.c (handle_one_xevent): Likewise.
22805 * xdisp.c (syms_of_xdisp): In doc-string of
22806 mouse-autoselect-window mention focus-follows-mouse.
22807
228082007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22809
22810 * macterm.c (mac_load_query_font): Fix missing return value.
22811 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22812 Add BLOCK_INPUT.
22813
228142007-10-08 Richard Stallman <rms@gnu.org>
22815
22816 * xdisp.c (get_window_cursor_type): Implement documented behavior
22817 for cursor-in-non-selected-windows = t.
22818
228192007-10-08 Jason Rumney <jasonr@gnu.org>
22820
22821 * w32.c (w32_get_resource): Always close registry keys.
22822
228232007-10-08 Jason Rumney <jasonr@gnu.org>
22824
22825 * makefile.w32-in (LIBS): Add COMCTL32.
22826
22827 * w32fns.c (globals_of_w32fns): Init common controls.
22828
228292007-10-08 Richard Stallman <rms@gnu.org>
22830
22831 * image.c (our_memory_buffer): Rename from omfib_buffer.
22832
228332007-10-08 Richard Stallman <rms@gnu.org>
22834
22835 * buffer.c (Foverlays_at): Doc fix.
22836
228372007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22838
22839 * fns.c (Fplist_put): Preserve uneven tail data.
22840
228412007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22842
22843 * termhooks.h (enum event_kind): Remove trailing comma.
22844
22845 * frame.h (enum): Remove trailing comma.
22846
228472007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22848
22849 * w32proc.c (delete_child): Don't terminate threads of zombies.
22850
228512007-10-08 Martin Rudalics <rudalics@gmx.at>
22852
22853 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22854
22855 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22856 last-repeatable-command.
22857 (init_kboard): Initialize Vlast_repeatable_command.
22858 (command_loop_1): Set it to real_this_command unless that was
22859 bound to an input event.
22860 (mark_kboards): Mark it.
22861
228622007-10-08 Richard Stallman <rms@gnu.org>
22863
22864 * eval.c (condition-case): Doc fix.
22865
228662007-10-08 Masatake YAMATO <jet@gyve.org>
22867
22868 * xfaces.c (tty_supports_face_attributes_p): Fix code
22869 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22870 was copied and not edited.
22871
228722007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22873
22874 Add new `input-decode-map' keymap and use it for terminal
22875 escape sequences.
22876 * keyboard.h (struct kboard): Add Vinput_decode_map.
22877 Remove Vlocal_key_translation_map.
22878 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22879 (init_kboard): Init input-decode-map.
22880 Replace local-key-translation-map back with key-translation-map.
22881 (syms_of_keyboard): Declare input-decode-map.
22882 Remove local-key-translation-map. Update docstrings.
22883 (mark_kboards): Mark Vinput_decode_map.
22884 Don't mark Vlocal_key_translation_map.
22885 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22886 Replace local-key-translation-map back with key-translation-map.
22887 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22888 Bind in input-decode-map rather than function-key-map.
22889
22890 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22891 This was made redundant by the previous introduction of XSETPVECTYPE.
22892
228932007-10-09 Richard Stallman <rms@gnu.org>
22894
22895 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22896
228972007-09-29 Richard Stallman <rms@gnu.org>
22898
22899 * eval.c (internal_condition_case_2, internal_condition_case_1)
22900 (internal_condition_case): Reenable abort if x_catching_errors ()
22901 to see if that really happens and why.
22902
229032007-10-06 Andreas Schwab <schwab@suse.de>
22904
22905 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22906
229072007-10-04 Juanma Barranquero <lekktu@gmail.com>
22908
22909 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22910
229112007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22912
22913 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22914
229152007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22916
22917 * window.h (struct window):
22918 * window.c (struct save_window_data, struct saved_window):
22919 * termhooks.h (struct terminal):
22920 * process.h (struct Lisp_Process):
22921 * frame.h (struct frame):
22922 * buffer.h (struct buffer):
22923 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22924 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22925 The size field of (pseudo)vectors is now unsigned.
22926 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22927
22928 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22929 Turn `count' into an integer.
22930
22931 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22932 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22933 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22934 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22935 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22936
22937 * alloc.c (allocate_pseudovector): New fun.
22938 (ALLOCATE_PSEUDOVECTOR): New macro.
22939 (allocate_window, allocate_terminal, allocate_frame)
22940 (allocate_process): Use it.
22941 (mark_vectorlike): New function.
22942 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22943 (mark_terminals): Use it.
22944 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22945 (Fmake_byte_code): Use XSETPVECTYPE.
22946
22947 * frame.c (Fframe_parameters): Minor simplification.
22948
22949 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22950
22951 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22952
22953 * buffer.c (Fget_buffer_create, init_buffer_once):
22954 * lread.c (defsubr):
22955 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22956
22957 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22958 defined differently in the m/*.h files.
22959 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22960 (XSETPVECTYPE): New macro.
22961 (XSETPSEUDOVECTOR): Use it.
22962
22963 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22964 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22965
22966 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22967 * lread.c (defvar_per_buffer):
22968 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22969
22970 * window.c (candidate_window_p): Only consider as visible frames that
22971 are on the same terminal.
22972
22973 * m/ibms390x.h (MARKBIT): Remove unused macro.
22974
229752007-10-01 Juanma Barranquero <lekktu@gmail.com>
22976
22977 * lread.c (Fload): Fix typo in docstring.
22978
229792007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22980
22981 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22982 of a non-zero value can't yield zero.
22983
229842007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22985
22986 * term.c (term_clear_mouse_face, term_mouse_highlight)
22987 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22988
22989 * print.c (safe_debug_print): Use XHASH.
22990
22991 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22992 Lisp elements such as tags.
22993 (XHASH): New macro.
22994 (EQ): Use it.
22995 (SREF, SSET, STRING_COPYIN): Use SDATA.
22996 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22997
22998 * alloc.c (mark_terminal): Remove left-over declaration.
22999 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23000 (allocate_vectorlike): Remove type argument. Adjust callers.
23001 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23002 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23003
23004 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23005 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23006 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23007 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23008 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23009 Use them.
23010
23011 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23012 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23013 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23014
230152007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23016
23017 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23018 loaded by default.
23019
230202007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23021
23022 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23023 on this tty.
23024 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23025
23026 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23027 Update all users.
23028 (handle_one_term_event): Use Gpm_DrawPointer.
23029 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23030 Signal errors instead of returning nil. Always return nil.
23031 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23032 Make it a noop if gpm-mouse was not activated.
23033 (syms_of_term): Update names.
23034
230352007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23036
23037 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23038 (init_sys_modes): Check that gpm_tty is the current tty.
23039
23040 * alloc.c (allocate_terminal): Set the vector size to only count the
23041 lisp fields. Initialize those to nil.
23042 (mark_object): Don't treat terminals specially.
23043 (mark_terminal): Remove.
23044 (mark_terminals): Use mark_object instead.
23045
23046 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23047 the GC to the beginning.
23048
23049 * indent.h:
23050 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23051
23052 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23053
230542007-09-25 Jason Rumney <jasonr@gnu.org>
23055
23056 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23057
23058 * w32console.c (create_w32cons_output): Remove.
23059
23060 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23061
23062 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23063 (reset_sys_modes): Use reset_terminal_modes_hook.
23064
230652007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23066
23067 * eval.c (do_autoload): Don't output any message.
23068
230692007-09-24 Juri Linkov <juri@jurta.org>
23070
23071 * emacs.c (standard_args): Change priority of "--no-splash"
23072 from 40 to 3. Add "--no-desktop" with the same priority.
23073
230742007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23075
23076 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23077 and optimize the case where they are all 1.
23078
230792007-09-23 Johannes Weiner <hannes@saeurebad.de>
23080
23081 * lisp.h (abs): Define if not defined.
23082 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23083 Don't define `abs', since it's defined in lisp.h.
23084
230852007-09-22 Eli Zaretskii <eliz@gnu.org>
23086
23087 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23088 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23089 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23090 (init_tty): Use DEV_TTY instead of "/dev/tty".
23091 [WINDOWSNT]: No need to protect from NAME arg being null.
23092
230932007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23094
23095 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23096 up the tty state.
23097
230982007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23099
23100 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23101 (gpm_tty): Change its type.
23102 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23103 (gpm_tty): Change its type and initialize it.
23104 (Fterm_open_connection): Check the frame is indeed a tty.
23105 Use the new gpm_tty.
23106 (Fterm_close_connection): Use the new gpm_tty.
23107 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23108 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23109
231102007-09-21 Juanma Barranquero <lekktu@gmail.com>
23111
23112 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23113 underline_color, to draw strike-through.
23114
231152007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23116
23117 * lisp.h (allocate_terminal): Declare.
23118
23119 * window.c (candidate_window_p): Consider frames that are being placed
23120 by the user as somewhere between visible and iconified.
23121 (window_loop): Prefer windows on the current frame.
23122 (Fselect_window): Move the use of select-frame to the beginning so we
23123 can just delegate all the work (it'll call us back anyway).
23124
23125 * frame.c (Qdisplay_environment_variable):
23126 * frame.h (Qdisplay_environment_variable): Delete.
23127
23128 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23129 of the first arg, since that value may be a union.
23130
23131 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23132 parameter rather than Qdisplay_environment_variable. If all else
23133 fails, look for DISPLAY in initial-environment.
23134
231352007-09-21 Glenn Morris <rgm@gnu.org>
23136
23137 * Makefile.in (emacstool): Remove target.
23138 (lisp, shortlisp): Remove termdev.elc.
23139
231402007-09-21 Markus Triska <markus.triska@gmx.at>
23141
23142 * xterm.c (x_delete_display): Compile session management conditionally.
23143
231442007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23145
23146 * callproc.c (getenv_internal_1): New function.
23147 (getenv_internal): Use it.
23148 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23149
23150 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23151 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23152 (Fset_terminal_parameter): Work with dead terminals as well.
23153 (Fmodify_terminal_parameters): Remove.
23154
23155 * terminal.c (get_terminal): Handle terminals.
23156 Make sure the terminal returned is live.
23157 (create_terminal): Use allocate_terminal.
23158 (mark_terminals): Move to alloc.c.
23159 (delete_terminal): Use terminal->name as liveness status.
23160 NULL out fields after freeing their contents.
23161 Don't deallocate the object.
23162 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23163 rather than an int.
23164 (Fterminal_live_p): Accept non-integer arguments.
23165 (Fterminal_list): Return terminal objects rather than an ints.
23166
23167 * alloc.c (enum mem_type): New member for `terminal' objects.
23168 (allocate_terminal): New function.
23169 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23170 Handle terminals.
23171 (mark_terminal): New fun.
23172 (mark_terminals): Move from terminal.c.
23173
23174 * term.c (get_tty_terminal): Don't treat output_initial specially.
23175 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23176 (delete_tty): Use terminal->name as liveness status.
23177
23178 * termhooks.h (struct terminal): Make it into a pseudovector.
23179 Remove `deleted' replaced by checking `name's nullness.
23180
23181 * print.c (print_object): Handle terminals.
23182
23183 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23184 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23185
23186 * frame.c (make_terminal_frame):
23187 * keyboard.c (tty_read_avail_input):
23188 * w32term.c (x_delete_terminal):
23189 * xfns.c (Fx_create_frame, x_create_tip_frame):
23190 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23191
231922007-09-20 Glenn Morris <rgm@gnu.org>
23193
23194 * process.c (Fmake_network_process): Doc fix.
23195
231962007-09-19 Jason Rumney <jasonr@gnu.org>
23197
23198 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23199
232002007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23201
23202 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23203 Fix a C warning regarding variable constness.
23204
23205 * xterm.c (handle_one_xevent): Fix a C warning.
23206
232072007-09-18 Jason Rumney <jasonr@gnu.org>
23208
23209 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23210
232112007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23212
23213 * gtkutil.c (gdpy_def): New variable.
23214 (xg_initialize): Initialize gdpy_def.
23215 (xg_display_close): If no other display exists, set gdpy_def to a
23216 new connection.
23217
232182007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23219
23220 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23221 when we have no file name for the icon.
23222 (xg_tool_bar_expose_callback): Remove.
23223 (xg_create_tool_bar): Don't connect expose signal to
23224 xg_tool_bar_expose_callback.
23225 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23226
232272007-09-16 Andreas Schwab <schwab@suse.de>
23228
23229 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23230 values instead of zapping them.
23231
232322007-09-14 Glenn Morris <rgm@gnu.org>
23233
23234 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23235 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23236 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23237 scope and rename to omfib_buffer for clarity.
23238 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23239
232402007-09-14 Kenichi Handa <handa@m17n.org>
23241
23242 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23243
232442007-09-13 Jason Rumney <jasonr@gnu.org>
23245
23246 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23247
23248 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23249
23250 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23251 (mac_term_init): Call here instead, passing rif.
23252
232532007-09-13 Glenn Morris <rgm@gnu.org>
23254
23255 * s/hpux.h: No longer define `static' as nothing.
23256
232572007-09-13 Johan Bockgård <bojohan@gnu.org>
23258
23259 * callint.c (Fcall_interactively): Remove unused var `fun'.
23260
232612007-09-12 Romain Francoise <romain@orebokech.com>
23262
23263 * window.c (prefer_window_split_horizontally, display_buffer):
23264 Revert 2007-09-08 change.
23265
232662007-09-12 Glenn Morris <rgm@gnu.org>
23267
23268 * alloca.c: Remove file.
23269 * Makefile.in (alloca): Do not undef.
23270 (allocaobj, alloca.o): Remove.
23271 (otherobj): Remove allocaobj.
23272 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23273 * regex.c (C_ALLOCA): Remove all references and code that was only
23274 used when this was defined.
23275 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23276 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23277 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23278
23279 * Makefile.in (SOURCES, unlock, relock): Delete.
23280
23281 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23282 (menu_grab_callback): All uses changed.
23283
23284 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23285 (x_reply_selection_request): All uses changed.
23286
232872007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23288
23289 * lread.c (load_warn_old_style_backquotes): Change message to look
23290 better when it appears in the middle of byte-compiler messages.
23291
232922007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23293
23294 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23295
23296 * xterm.c (x_create_terminal): Add comment.
23297
23298 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23299
233002007-09-10 Richard Stallman <rms@gnu.org>
23301
23302 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23303
233042007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23305
23306 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23307 (DEFUN): Document `intspec', use it instead of `prompt'.
23308
23309 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23310
23311 * data.c (Finteractive_form): If the interactive specification starts
23312 with a `(', use it as a Lisp form.
23313
23314 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23315 name and file modes.
23316
23317 * callint.c (Fcall_interactively): Comment fixes.
23318
233192007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23320
23321 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23322 and compiled functions.
23323
233242007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23325
23326 * window.c (prefer_window_split_horizontally): New variable.
23327 (display_buffer): Consider splitting window horizontally depending
23328 on prefer_window_split_horizontally.
23329
233302007-09-08 Eli Zaretskii <eliz@gnu.org>
23331
23332 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23333
233342007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23335
23336 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23337
23338 * frame.c (x_set_frame_parameters): Check number is positive before
23339 using XFASTINT.
23340
23341 * window.c (freeze_window_start): Don't presume selected_window holds
23342 a window object.
23343 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23344
233452007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23346
23347 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23348
233492007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23350
23351 * window.c (Vsplit_window_preferred_function): New var.
23352 (Fdisplay_buffer): Use it.
23353 (syms_of_window): Export, and initialize it.
23354
233552007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23356
23357 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23358
233592007-09-06 Glenn Morris <rgm@gnu.org>
23360
23361 * gtkutil.c (menu_grab_callback) <cnt>:
23362 * xselect.c (x_reply_selection_request) <cnt>: Move static
23363 variable to file scope.
23364
233652007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23366
23367 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23368 consistent values of selected_frame and selected_window.
23369
233702007-09-04 Jason Rumney <jasonr@gnu.org>
23371
23372 * w32console.c (initialize_w32_display): Zero unused hooks.
23373
233742007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23375
23376 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23377 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23378
233792007-09-04 Jason Rumney <jasonr@gnu.org>
23380
23381 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23382 in w32console.c. Set up input. Remove XXX comments that have been
23383 confirmed as correct.
23384
23385 * s/ms-w32.h (MULTI_KBOARD): Define.
23386
23387 * w32console.c (one_and_only_w32cons): Remove.
23388 (initialize_w32_display): Take terminal argument.
23389
23390 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23391 initialize_w32_display.
23392 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23393
23394 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23395
23396 * keyboard.c (discard_mouse_events): Discard it.
23397 (make_lispy_event): Translate it to a lisp event.
23398 (lispy_wheel_names): Add wheel-left and right events.
23399 (syms_of_keyboard): Enlarge wheel_syms.
23400
23401 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23402 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23403
23404 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23405
23406 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23407 from WM_MOUSEHWHEEL.
23408 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23409
23410 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23411 terminal.
23412
23413 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23414 keyboard for the terminal.
23415
234162007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23417
23418 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23419 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23420 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23421 and resume-tty-function to resume-tty-hook.
23422 (Fsuspend_tty, Fresume_tty): Use new names.
23423
234242007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23425
23426 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23427 if it starts with "n:".
23428
234292007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23430
23431 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23432
234332007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23434
23435 * frame.h:
23436 * frame.c (Qterm_environment_variable): Remove.
23437 (syms_of_frame): Don't init and staticpro it.
23438
23439 * callproc.c (getenv_internal): Remove special case for $TERM.
23440
23441 * callproc.c (Vinitial_environment): New variable.
23442 (set_initial_environment): Initialize it.
23443 (syms_of_callproc): Declare it.
23444 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23445 TERM under which a process runs is never related to the TERM in which
23446 Emacs is running.
23447
234482007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23449
23450 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23451 * s/darwin.h: ... do it here.
23452
234532007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23454
23455 * lisp.h (set_initial_environment): Rename from set_global_environment.
23456
23457 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23458 removed by mistake on the multi-tty branch.
23459
23460 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23461 (Fmodify_frame_parameters): Return a value.
23462
23463 * image.c (png_load): Comment-out var only used in commented-out code.
23464
23465 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23466 before passing it to mark_object.
23467
23468 * xfaces.c (internal_resolve_face_name): Return a value.
23469 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23470
23471 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23472 (x_icon): Comment-out var only used in commented-out code.
23473
234742007-08-29 Romain Francoise <romain@orebokech.com>
23475
23476 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23477 QUIT hasn't been provided.
23478
234792007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23480
23481 * callproc.c (child_setup, getenv_internal): Use the
23482 display-environment-variable and term-environment-variable frame params.
23483 (set_initial_environment): Initialise Vprocess_environment.
23484
23485 * config.in: Disable multi-keyboard support on a mac.
23486
23487 * frame.c (Qterm_environment_variable)
23488 (Qdisplay_environment_variable): New variables.
23489 (syms_of_frame): Intern and staticpro them.
23490 (Fmake_terminal_frame): Disable output method test.
23491
23492 * frame.h: Declare them here.
23493
23494 * macfns.c (x_set_mouse_color): Get rif from the frame.
23495 (x_set_tool_bar_lines): Don't use updating_frame.
23496 (mac_window): Add 2 new parameters for consistency with other systems.
23497 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23498 frame parameters following what is done in X11 and w32. Don't use
23499 FRAME_MAC_DISPLAY_INFO.
23500 (Fx_open_connection, start_hourglass): Remove window-system check.
23501 (x_create_tip_frame): Get the keyboard from the terminal.
23502
23503 * macmenu.c: Reorder includes.
23504 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23505
23506 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23507 terminal parameter.
23508 (x_clear_frame): Add a frame parameter.
23509 (note_mouse_movement): Get rif from the frame.
23510 (mac_term_init): Initialize the terminal.
23511 (mac_initialize): Make static and move terminal initialization ...
23512 (mac_create_terminal): ... to this new function.
23513
23514 * macterm.h (struct mac_display_info): Add terminal.
23515 (mac_initialize): Delete declaration.
23516
23517 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23518
23519 * sysdep.c: Comment out text after #endif.
23520
23521 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23522 is defined. Better initialize ttys in windows. Use terminal
23523 specific mouse_position_hook.
23524
23525 * termhooks.h (union display_info): Add mac_display_info.
23526
23527 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23528 Set the default minibuffer frame, window_system and the rest of the
23529 frame parameters following what is done in X11.
23530
23531 * w32term.c (w32_initialize): Make static.
23532
23533 * xselect.c (x_handle_selection_clear): Only access
23534 terminal->kboard when MULTI_KBOARD is defined.
23535
23536 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23537 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23538
235392007-08-29 Jason Rumney <jasonr@gnu.org>
23540
23541 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23542 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23543
23544 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23545 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23546
23547 * keyboard.c (restore_kboard_configuration): Only define when
23548 MULTI_KBOARD defined.
23549
23550 * makefile.w32-in: Update dependancies from Makefile.in.
23551 (OBJ1): Add terminal.$(O)
23552
23553 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23554 Don't define function body.
23555 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23556
23557 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23558
23559 * w32.c (request_sigio, unrequest_sigio): Remove.
23560
23561 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23562 (w32con_clear_frame, w32con_clear_end_of_line)
23563 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23564 (w32con_delete_glyphs, w32con_set_terminal_window)
23565 (scroll_line, w32_sys_ring_bell): Add frame arg.
23566 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23567 Add terminal arg.
23568 (PICK_FRAME): Remove.
23569 (w32con_write_glyphs): Use frame specific terminal coding.
23570 (one_and_only_w32cons): New global variable.
23571 (initialize_w32_display): Use it for storing hooks.
23572 (create_w32cons_output): New function.
23573
23574 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23575 arg a frame.
23576
23577 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23578 Set window_system.
23579 (x_set_tool_bar_lines): Don't use updating_frame.
23580 (Fx_create_frame): Set terminal and ref count.
23581 (Fx_open_connection): Remove window-system check.
23582
23583 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23584
23585 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23586 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23587 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23588 Add frame arg.
23589 (x_delete_terminal, w32_create_terminal): New functions.
23590 (w32_term_init): Create a terminal.
23591 (w32_initialize): Move terminal specific initialization to
23592 w32_create_terminal.
23593
23594 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23595 (w32_clear_rect, w32_clear_area): Use background from frame.
23596 (w32_display_info): Add terminal.
23597 (w32_sys_ring_bell, x_delete_display): Declare here.
23598
23599 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23600
23601 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23602
236032007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23604
23605 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23606 Fix get_named_tty calls for the controlling tty.
23607
236082007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23609
194d44e7 23610 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23611
236122007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23613
23614 * term.c (tty_insert_glyphs): Add missing first parameter.
23615
236162007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23617
23618 * buffer.c (Fbuffer_list, Fbury_buffer):
23619 Take frame->buried_buffer_list into account.
23620
23621 * cm.c (current_tty): New variable, for cmputc().
23622 (cmputc): Use it.
23623 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23624 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23625 (cmgoto): Add tty parameter. Pass it on to calccost().
23626 Use emacs_tputs() instead of tputs().
23627
23628 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23629 tputs().
23630 (current_tty): New variable, for cmputc().
23631 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23632
23633 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23634 (internal_condition_case, internal_condition_case_1)
23635 (internal_condition_case_2): Don't abort when x_catching_errors.
23636
23637 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23638 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23639 prevent crashes caused by bogus longjmps in read_char.
23640
23641 * keymap.h (Fset_keymap_parent): Add EXFUN.
23642
23643 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23644 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23645 Remove redundant definition.
23646
23647 * macfns.c (x_set_mouse_color, x_make_gc):
23648 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23649
23650 * w32term.c (x_free_frame_resources):
23651 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23652 (w32_initialize): Use the accessor macros for terminal characteristics.
23653
23654 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23655 Use the accessor macros for terminal characteristics.
23656 * msdos.c (internal_terminal_init): Use the accessor macros for
23657 terminal characteristics.
23658 (ScreenVisualBell, internal_terminal_init):
23659 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23660
23661 * termopts.h (no_redraw_on_reenter): Declare.
23662
23663 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23664 (mark_terminals, mark_ttys): Declare.
23665 (Fgarbage_collect): Call them.
23666 (mark_object): Mark buried_buffer_list.
23667
23668 * prefix-args.c: Include stdlib.h for exit.
23669
23670 * syssignal.h: Add comment.
23671
23672 * indent.c: Include stdio.h.
23673
23674 * window.h (Vinitial_window_system): Declare.
23675 (Vwindow_system): Delete declaration.
23676
23677 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23678
23679 * image.c (lookup_image): Don't initialize `c' until the xasserts
23680 have been run.
23681
23682 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23683 FRAME_FOREGROUND_PIXEL.
23684
23685 * print.c (print_preprocess): Don't lose print_depth levels while
23686 iterating.
23687
23688 * widget.c (update_from_various_frame_slots):
23689 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23690
23691 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23692 frames.
23693 (window_internal_height): Remove bogus make_number call.
23694 (init_window_once): Call make_terminal_frame with two zero parameters.
23695
23696 * fileio.c (Fread_file_name): Update comment.
23697
23698 * callint.c (Fcall_interactively):
23699 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23700 Make sure it is correctly unwound.
23701
23702 * xsmfns.c (x_session_close): New function.
23703
23704 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23705 Delete declarations.
23706
23707 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23708 (x_output): Remove background_pixel and foreground_pixel fields.
23709 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23710 (x_delete_device, x_session_close): Declare.
23711
23712 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23713 (read_filtered_event): Call `read_char' with a local
23714 `wrong_kboard_jmpbuf'.
23715
23716 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23717 Don't call single_kboard_state. Use FRAME_RIF.
23718
23719 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23720 systems.
23721
23722 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23723 (Fframe_with_environment, Fset_input_meta_mode)
23724 (Fset_quit_char): EXFUN.
23725 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23726 (init_sys_modes, reset_sys_modes): Update prototypes.
23727 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23728
23729 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23730 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23731 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23732 Delete declarations.
23733 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23734 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23735 New declarations.
23736
23737 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23738 already does that during init_display(). Call syms_of_keymap
23739 before syms_of_keyboard. Call `syms_of_terminal'.
23740 Call set_initial_environment, not set_process_environment.
23741 (shut_down_emacs): Call reset_all_sys_modes() instead of
23742 reset_sys_modes().
23743
23744 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23745 (internal_resolve_face_name, resolve_face_name_error): New functions.
23746 (resolve_face_name): Protect against loops and errors thrown by Fget.
23747 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23748 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23749
23750 * scroll.c: Replace CURTTY() with local variables throughout the
23751 file (where applicable).
23752 (calculate_scrolling, calculate_direct_scrolling)
23753 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23754 characteristics.
23755
23756 * keymap.c (Vfunction_key_map): Remove.
23757 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23758 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23759 (Vkey_translation_map): Remove.
23760 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23761 (Fdescribe_buffer_bindings)
23762 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23763 Update for terminal-local key-translation-map.
23764
23765 * Makefile.in (callproc.o): Update dependencies.
23766 (lisp, shortlisp): Add termdev.elc.
23767 (obj): Add terminal.o.
23768 (terminal.o): Add dependencies.
23769 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23770 (data.o, fns.o): Add termhooks.h dependency.
23771 (SOME_MACHINE_LISP): Add dnd.elc.
23772 (minibuf.o): Fix typo.
23773 Update dependencies.
23774
23775 * data.c (do_symval_forwarding, store_symval_forwarding)
23776 (find_symbol_value): Use the selected frame's keyboard, not
23777 current_kboard.
23778
23779 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23780 Vwindow_system.
23781
23782 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23783 Fmenu_bar_open.
23784 (syms_of_xmenu): Update defsubr.
23785 (mouse_position_for_popup, Fx_popup_menu)
23786 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23787 (set_frame_menubar, free_frame_menubar)
b97439ce 23788 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23789 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23790 an X frame.
23791
23792 * xselect.c (x_own_selection): Abort if not an X frame.
23793 (some_frame_on_display): Check if it is an X frame.
23794 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23795
23796 * coding.c: Include frame.h and termhooks.h.
23797 (terminal_coding, keyboard_coding): Delete.
23798 (Fset_terminal_coding_system_internal)
23799 (Fset_keyboard_coding_system_internal)
23800 (Fkeyboard_coding_system)
23801 (Fterminal_coding_system): Add a terminal parameter.
23802 Get terminal_coding from the terminal.
23803 (init_coding_once): Don't call setup_coding_system here.
23804
23805 * dispextern.h (set_scroll_region, turn_off_insert)
23806 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23807 (tty_clear_end_of_line, tty_setup_colors)
23808 (delete_tty, updating_frame)
23809 (produce_special_glyphs, produce_glyphs, write_glyphs)
23810 (insert_glyphs): Remove.
23811 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23812 (tty_turn_off_highlight, get_tty_size): Add declaration.
23813 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23814
23815 * frame.h (enum output_method): Add output_initial.
23816 (struct x_output): Delete.
23817 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23818 Access foreground_pixel and background_pixel directly from the frame.
23819 (tty_display): Delete.
23820 (struct frame): Add buried_buffer_list, foreground_pixel,
23821 background_pixel and terminal. Delete kboard.
23822 (union output_data): Add tty.
23823 (FRAME_KBOARD): Get the kboard from the terminal.
23824 (FRAME_INITIAL_P): New macro.
23825 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23826 (Qterm_environment_variable, Qdisplay_environment_variable)
23827 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23828 New declarations.
23829
23830 * termchar.h (tty_output, tty_display_info): New structures.
23831 (tty_list): Declare.
23832 (FRAME_TTY, CURTTY): New macros.
23833 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23834 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23835 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23836 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23837
23838 * callproc.c: Include frame.h and termhooks.h, for terminal
23839 parameters.
23840 (add_env): New function.
23841 (child_setup): Use it.
23842 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23843 (getenv_internal): Fix get_terminal_param call.
23844 (Fgetenv_internal, egetenv): Update doc.
23845 (syms_of_callproc): Initialize Vprocess_environment to nil.
23846 Register and initialize them. Remove obsolete defvars. Update doc
23847 strings.
23848 (child_setup): Handle Vlocal_environment_variables.
23849 (getenv_internal): Add terminal parameter.
23850 Handle Vlocal_environment_variables.
23851 (Fgetenv_internal): Add terminal parameter.
23852 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23853 environment in a frame (not terminal) parameter. Update doc strings.
23854 (set_initial_environment): Rename from set_global_environment.
23855 Store Emacs environment in initial frame parameter.
23856
23857 * xdisp.c (redisplay_internal): Update references to
23858 `previous_terminal_frame'.
23859 (display_mode_line, Fformat_mode_line): Replace calls to
23860 `push_frame_kboard' with `push_kboard'.
23861 (get_glyph_string_clip_rects): Add extra parentheses and
23862 braces to prevent compiler warnings.
23863 (calc_pixel_width_or_height): Add xassert to check that the
23864 frame is alive. Don't call `lookup_image' on a termcap frame.
23865 (message2_nolog, message3_nolog, redisplay_internal)
23866 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23867 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23868 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23869 (Fx_display_pixel_width, Fx_display_pixel_height)
23870 (Fx_display_planes, Fx_display_color_cells)
23871 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23872 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23873 (Fx_display_backing_store, Fx_display_visual_class)
23874 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23875 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23876
23877 * xfns.c (x_set_foreground_color x_set_background_color)
23878 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23879 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23880 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23881 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23882 terminal that is being deleted.
23883 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23884 frame parameter, and make sure it overrides any user-supplied setting.
23885 (Fx_close_connection, Fx_synchronize): Unify argument names with
23886 the rest of the DEFUNs.
23887
23888 * dispnew.c (Fsend_string_to_terminal): Update call to
23889 `get_tty_terminal'.
23890 (Fredraw_frame, Fsend_string_to_terminal)
23891 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23892 FRAME_TERMCAP_P and FRAME_TTY.
23893 (window_change_signal): Don't believe width/height values that are
23894 impossibly small.
23895 (Vinitial_window_system): Rename from Vwindow_system.
23896 (termscript, Wcm, rif): Delete.
23897
23898 * termhooks.h (struct terminal): New struct containing the
23899 previously global text display hooks and new members NAME,
23900 DELETED and PARAM_ALIST.
23901 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23902 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23903 (FRAME_RIF): New macros.
23904 (get_terminal_param, get_device): New declarations.
23905 (termscript): Delete declaration.
23906
23907 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23908 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23909 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23910 FRAME_FOREGROUND_PIXEL.
23911 (x_fully_uncatch_errors): Disable definition.
23912 (x_scroll_bar_expose): Fix reference to foreground pixel.
23913 (XTread_socket): Disable loop on all X displays.
23914 (x_delete_terminal): Don't set terminal->deleted and let
23915 delete_terminal delete the frames on the terminal.
23916 (x_delete_display): Doc update to reflect changes in
23917 delete_terminal.
23918 (x_display_info) <terminal>: Move member earlier in the struct.
23919 (deleting_tty): Remove old variable.
23920 (Fsuspend_tty): Call clear_tty_hooks.
23921 (Fresume_tty, init_tty): Call set_tty_hooks.
23922 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23923 errors on X frames.
23924 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23925 (handle_one_xevent): Initialize `f' to NULL.
23926 (x_delete_terminal, x_create_terminal): New functions.
23927 (XTset_terminal_modes, XTreset_terminal_modes)
23928 (XTread_socket, x_connection_closed, x_term_init)
23929 (x_term_init, x_delete_display): Add terminal parameter.
23930 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23931 X connections.
23932
23933 * frame.c: Include termchar.h.
23934 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23935 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23936 (Qdisplay_environment_variable): New vars.
23937 (Fframep): Deal with output_initial.
23938 (Fframe-live-p): Doc fix.
23939 (Fwindow-system): New function.
23940 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23941 (make_terminal_frame): Don't create frames on a terminal that is
23942 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23943 (store_frame_param): Check for found_for_frame before calling XFRAME.
23944 (Fmake_terminal_frame): Handle NULL tty names correctly.
23945 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23946 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23947 frames to refer to a deleted frame in their 'environment parameter.
23948 (Fframe_with_environment): New function.
23949 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23950 (get_future_frame_param): New function.
23951 (Fmake_terminal_frame): Use it.
23952 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23953
23954 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23955 * sysdep.c (reset_sys_modes): Update for renames.
23956
23957 * keyboard.c (tty_read_avail_input): New function.
23958 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23959 (syms_of_keyboard): Defsubr them.
23960 (Fset_input_meta_mode, Fset_quit_char): New functions.
23961 (Fset_input_mode): Split to above functions.
23962 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23963 parameter. Use it in call to `read_char'.
23964 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23965 Set wrong_kboard_jmpbuf correctly in recursive calls.
23966 Use current_kboard to access Vkeyboard_translate_table.
23967 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23968 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23969 Update longjmp invocations. Remember the original current_kboard,
23970 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23971 changes it. Comment out unnecessary calls to
23972 `record_single_kboard_state' and `any_kboard_state'.
23973 Update recursive calls.
23974 (wrong_kboard_jmpbuf): Remove global variable.
23975 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23976 Handle deleted interrupted_kboards correctly; that is a legal
23977 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23978 and read_char calls. Abort if interrupted_kboard died in read_char.
23979 (any_kboard_state, single_kboard_state)
23980 (push_frame_kboard): Remove function.
23981 (pop_kboard): Switch out of single_kboard mode if the kboard has
23982 been deleted. Remove unused variable. Help debugging by not
23983 changing current_kboard unnecessarily. Set current_kboard to the
23984 kboard of the selected frame when the stored kboard object has
23985 been deleted before pop_kboard.
23986 (temporarily_switch_to_single_kboard): Change first parameter to a
23987 frame pointer. Throw an error when caller wants to change kboards
23988 while in single_kboard mode. Don't push_kboard if we weren't in
23989 single kboard state. Don't pop_kboard if we popped into any
23990 kboard state.
23991 (restore_kboard_configuration): Abort if pop_kboard changed the
23992 kboard in single_kboard mode. Call pop_kboard only after setting
23993 up single_kboard mode.
23994 (Frecursive_edit): Switch to single_kboard mode only in nested
23995 command loops.
23996 (cmd_error, command_loop, command_loop_1, timer_check):
23997 Comment out unnecessary call to `any_kboard_state' and
23998 `record_single_kboard_state'.
23999 (delete_kboard): Exit single_kboard mode if we have just deleted
24000 that kboard. Use FRAME_KBOARD.
24001 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24002 `fatal_error_signal'.
24003 (record_single_kboard_state): Don't push_kboard if we weren't in
24004 single kboard state. Don't pop_kboard if we popped into any
24005 kboard state.
24006 (push_frame_kboard): Rename to push_kboard.
24007 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24008 (read_avail_input): Read input from all terminals.
24009 (mark_kboards): Also mark Vkeyboard_translate_table.
24010 (kbd_buffer_store_event_hold): Simplify condition.
24011 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24012 (Vkeyboard_translate_table): Move to struct kboard.
24013 (init_kboard): Initialize Vkeyboard_translate_table.
24014 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24015 Vkeyboard_translate_table. Update doc strings. Update docs of
24016 local-function-key-map and function-key-map.
24017
24018 * terminal.c: New file.
24019
24020 * term.c: Include errno.h.
24021 (Vring_bell_function, device_list, initial_device)
24022 (next_device_id, ring_bell, update_begin, update_end)
24023 (set_terminal_window, cursor_to, raw_cursor_to)
24024 (clear_to_end, clear_frame, clear_end_of_line)
24025 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24026 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24027 (syms_of_term): Move their initialization to terminal.c.
24028 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24029 (Ftty_display_color_cells)
24030 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24031 (clear_tty_hooks, set_tty_hooks)
24032 (init_tty, maybe_fatal): New functions.
24033 (Ftty_type): Return nil if terminal is not on a tty instead of
24034 throwing an error. Doc update.
24035 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24036 Doc update. Initialize new subrs and variables.
24037 (delete_tty): Use terminal->deleted.
24038 (tty_set_terminal_modes): Rename from set_terminal_modes.
24039 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24040 (set_scroll_region): Rename to `tty_set_scroll_region'.
24041 (turn_on_insert): Rename to `tty_turn_on_insert'.
24042 (turn_off_insert): Rename to `tty_turn_off_insert'.
24043 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24044 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24045 (toggle_highligh): Rename to `tty_toggle_highlight'.
24046 (background_highlight): Rename to `tty_background_highlight'.
24047 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24048 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24049 (tty_set_scroll_region, tty_background_highlight)
24050 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24051 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24052 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24053 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24054 Add static modifier.
24055 (tty_reset_terminal_modes, tty_set_terminal_window)
24056 (tty_set_scroll_region, tty_background_highlight)
24057 (tty_highlight_if_desired, tty_cursor_to)
24058 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24059 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24060 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24061 renames.
24062
240632007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24064
24065 * keyboard.c: Qrtl is new.
24066 (parse_tool_bar_item): Handle :rtl keyword.
24067 (syms_of_keyboard): Intern :rtl keyword.
24068
24069 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24070
24071 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24072 so no Lisp code is executed.
24073 (file_for_image, find_rtl_image): New functions.
24074 (xg_get_image_for_pixmap): Use file_for_image.
24075 (update_frame_tool_bar): If direction is RTL, use RTL image if
24076 defined. Use Gtk stock images if defined.
24077
240782007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24079
24080 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24081 for nonexistent or zero-width glyph in composition glyph.
24082
240832007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24084
24085 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24086
24087 * xdisp.c (Finvisible_p): New function.
24088 (syms_of_xdisp): defsubr it.
24089
240902007-08-24 Juanma Barranquero <lekktu@gmail.com>
24091
24092 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24093 Doc fixes.
24094
240952007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24096
24097 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24098
240992007-08-24 Martin Rudalics <rudalics@gmx.at>
24100
24101 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24102 whether decoding has modified buffer contents.
24103
241042007-08-24 Jason Rumney <jasonr@gnu.org>
24105
24106 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24107 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24108 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24109 (init_svg_functions) [HAVE_NTGUI]: New function.
24110 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24111 (svg_load_image): Use them.
24112 (svg_load_image) [HAVE_NTGUI]: Implement background.
24113
241142007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24115
24116 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24117 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24118 (LIBX): Remove @RSVG_LIBS@.
24119 (LIBES): Add $(RSVG_LIBS).
24120
24121 * image.c (svg_load_image): Blend with specified background if exists.
24122 Use IMAGE_BACKGROUND. Add Mac OS Support.
24123
24124 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24125 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24126 Remove macros.
24127 [MAC_OSX] (socket_callback): Do nothing.
24128 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24129 ReceiveNextEvent.
24130 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24131 socket_callback.
24132 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24133
241342007-08-22 Glenn Morris <rgm@gnu.org>
24135
24136 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24137
241382007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24139
24140 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24141
24142 * image.c: Add support for SVG images. Some additional comments
24143 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24144 (svg_image_p): New function to test for SVG image.
24145 (svg_load): New function to load SVG image.
24146 (svg_load_image): New function, helper for svg_load.
24147 (Qsvg): New Lisp_object.
24148 (svg_keyword_index): New enum.
24149 (svg_format): New static `image_keyword' struct.
24150 (svg_type): New static `image_type' struct.
24151 (librsvg/rsvg.h): Include it.
24152
241532007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24154
24155 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24156
241572007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24158
24159 * lread.c (Qold_style_backquotes): New var.
24160 (syms_of_lread): Init and staticpro it.
24161 (load_warn_old_style_backquotes): New fun.
24162 (Fload): Use them to warn about old style backquotes.
24163 (end_of_file_error, Fload): Remove unused vars.
24164
24165 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24166
24167 * lread.c (Vold_style_backquotes): New var.
24168 (syms_of_lread): Init and export it to Elisp.
24169 (read1): Set it when we find an old-style (back)quote.
24170
241712007-08-22 Jason Rumney <jasonr@gnu.org>
24172
24173 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24174
241752007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24176
24177 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24178
241792007-08-19 Richard Stallman <rms@gnu.org>
24180
24181 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24182
241832007-08-19 Andreas Schwab <schwab@suse.de>
24184
24185 * alloc.c (pure): Round PURESIZE up.
24186
241872007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24188
24189 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24190 active frame.
24191
241922007-08-16 Richard Stallman <rms@gnu.org>
24193
24194 * eval.c (Fcommandp): Add parens to clarify.
24195
24196 * minibuf.c (Fall_completions): Use enum for type of table.
24197
24198 * emacs.c (USAGE2): Improve text.
24199
242002007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24201
24202 * term.c (tty_default_color_capabilities): Declare static
24203 variables in file scope, to avoid HPUX compiler problem.
24204
242052007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24206
24207 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24208 to gtk_toolbar_insert.
24209
242102007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24211
24212 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24213
24214 * insdel.c (reset_var_on_error): New fun.
24215 (signal_before_change, signal_after_change):
24216 Use it to reset (after|before)-change-functions to nil in case of error.
24217 Bind inhibit-modification-hooks to t.
24218 Don't bind (after|before)-change-functions to nil while they run.
24219
242202007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24221
24222 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24223 filling pixmap with stippled background.
24224
242252007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24226
24227 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24228 Don't use invisible frame as parent window for repositioning.
24229
242302007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24231
24232 * print.c (new_backquote_output): Rename from old_backquote_output.
24233 (print): Inverse its logic (according to its name) so as to match the
24234 behavior of new_backquote_flag in lread.c.
24235
242362007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24237
24238 * gmalloc.c (posix_memalign): New function.
24239
24240 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24241 ActivateControl/DeactivateControl here.
24242 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24243 frame-notice-user-settings is non-nil.
24244 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24245 for kEventParamFMFontStyle.
24246 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24247 mac_pass_command_to_system and mac_pass_control_to_system here.
24248 (XTread_socket): Call ActivateControl/DeactivateControl here.
24249 (XTread_socket) [TARGET_API_MAC_CARBON]:
24250 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24251 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24252 for window repositioning.
24253
242542007-08-08 Glenn Morris <rgm@gnu.org>
24255
24256 * Replace `iff' in doc-strings and comments.
24257
242582007-08-07 Chong Yidong <cyd@stupidchicken.com>
24259
24260 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24261
242622007-08-07 Martin Rudalics <rudalics@gmx.at>
24263
24264 * fileio.c (Finsert_file_contents): Run format-decode and
24265 after_insert_file_functions on entire buffer when REPLACE is
24266 non-nil and inhibit modification_hooks and point_motion_hooks.
24267 For consistency, run after_insert_file_functions iff something
24268 got inserted. Move signal_after_change and update_compositions
24269 after code running after_insert_file_functions. Make sure that
24270 undo_list doesn't record intermediate steps of the decoding process.
24271
242722007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24273
24274 * emacs.c (main)
24275 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24276 Call malloc_enable_thread on interactive startup.
24277
24278 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24279 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24280 [USE_PTHREAD]: Conditionalize with it.
24281 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24282 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24283 New functions.
24284
242852007-08-06 Chong Yidong <cyd@stupidchicken.com>
24286
24287 * xdisp.c (redisplay_window): When restoring original buffer
24288 position, make sure it is still valid.
24289
24290 * image.c (png_load): Ignore png-supplied background color.
24291
242922007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24293
24294 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24295 Use kCFAbsoluteTimeIntervalSince1970.
24296
24297 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24298 New variable.
24299 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24300 event loop should be quit.
24301 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24302 Quit dialog event loop if quit_dialog_event_loop is set.
24303
24304 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24305 (Selection): New typedef. Use instead of ScrapRef.
24306 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24307 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24308 (mac_clear_selection): Rename from clear_scrap.
24309 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24310 scrap_has_target_type. All uses changed.
24311 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24312 (mac_selection_has_target_p): New functions.
24313 (mac_put_selection_value): Rename from put_scrap_string.
24314 (mac_get_selection_value): Rename from get_scrap_string.
24315 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24316 (put_scrap_private_timestamp, scrap_has_target_type)
24317 (get_scrap_private_timestamp): Remove functions.
24318 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24319 (x_own_selection, x_get_local_selection):
24320 Use mac_valid_selection_value_p.
24321 (x_own_selection): Don't use put_scrap_private_timestamp.
24322 Record OWNERSHIP-INFO into Vselection_alist instead.
24323 (x_get_local_selection): Don't check type if request is local.
24324 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24325 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24326
243272007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24328
24329 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24330 add comment explaining why.
24331
243322007-08-03 Richard Stallman <rms@gnu.org>
24333
24334 * fileio.c (Fvisited_file_modtime): Use make_time.
24335
243362007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24337
24338 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24339 build.
24340
243412007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24342
24343 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24344
243452007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24346
24347 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24348
243492007-07-30 Richard Stallman <rms@gnu.org>
24350
24351 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24352
243532007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24354
24355 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24356
243572007-07-28 Nick Roberts <nickrob@snap.net.nz>
24358
24359 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24360 remote default-directory.
24361
24362 * buffer.c (mode-line-format): Update doc string.
24363
243642007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24365
24366 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24367 scroll bar gap.
24368 (x_scroll_bar_create): Set bar->fringe_extended_p.
24369 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24370 on frame edge. Check fringe background extension. Don't clear
24371 extended fringe background area.
24372
24373 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24374 (w32_fill_area): Enclose multiple statements with do ... while (0).
24375
24376 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24377 Extend fringe background to scroll bar gap.
24378 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24379 Set bar->fringe_extended_p.
24380 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24381 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24382 background extension. Don't clear extended fringe background area.
24383
24384 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24385 New member fringe_extended_p.
24386
243872007-07-25 Glenn Morris <rgm@gnu.org>
24388
24389 * Relicense all FSF files to GPLv3 or later.
24390
24391 * COPYING: Switch to GPLv3.
24392
243932007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24394
24395 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24396
24397 * data.c (Finteractive_form): Check for the presence of an
24398 `interactive-form' symbol property more thoroughly.
24399
24400 * data.c (Finteractive_form): Use an `interactive-form' property if
24401 present, analogous to the function-documentation property.
24402
244032007-07-24 Jason Rumney <jasonr@gnu.org>
24404
24405 * w32fns.c (x_real_positions): Get real position from OS instead of
24406 calculating it.
24407
244082007-07-23 Jason Rumney <jasonr@gnu.org>
24409
24410 * filelock.c (current_lock_owner): Allow for @ sign in username.
24411
244122007-07-22 Nick Roberts <nickrob@snap.net.nz>
24413
24414 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24415 remote default-directory.
24416
24417 * buffer.c (mode-line-format): Describe above case in doc string.
24418
244192007-07-20 Eli Zaretskii <eliz@gnu.org>
24420
24421 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24422 Define if not defined.
24423
244242007-07-18 Jason Rumney <jasonr@gnu.org>
24425
24426 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24427
244282007-07-18 Richard Stallman <rms@gnu.org>
24429
24430 * data.c (Fsetq_default): Doc fix.
24431
24432 * eval.c (Fsetq): Doc fix.
24433
244342007-07-18 Juanma Barranquero <lekktu@gmail.com>
24435
24436 * coding.c (Ffind_operation_coding_system):
24437 * eval.c (For, Fand): Doc fixes.
24438 Reported by Johan Bockgård.
24439
244402007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24441
24442 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24443
24444 * xterm.h: Declare x_ewmh_activate_frame.
24445
24446 * xterm.c (x_ewmh_activate_frame): New function.
24447 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24448
244492007-07-17 Martin Rudalics <rudalics@gmx.at>
24450
24451 * window.c (Fdisplay_buffer): If largest or LRU window is the
24452 only window, split it even if it is not eligible for splitting.
24453 This restores the original behavior broken by the 2007-07-15
24454 change.
24455
244562007-07-17 Glenn Morris <rgm@gnu.org>
24457
24458 * abbrev.c (abbrev_check_chars): New function.
24459 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24460 Call abbrev_check_chars to check abbrev characters are word
24461 constituents. Doc fix.
24462
244632007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24464
24465 * process.c (Fstart_process, Fmake_network_process)
24466 (read_process_output): Fix up last changes.
24467
244682007-07-16 Eli Zaretskii <eliz@gnu.org>
24469
24470 * makefile.w32-in (clean): Don't delete *~.
24471
244722007-07-16 Andreas Schwab <schwab@suse.de>
24473
24474 * window.c (Fdisplay_buffer): Use NILP.
24475 (Fset_window_scroll_bars): Likewise.
24476
244772007-07-15 Martin Rudalics <rudalics@gmx.at>
24478
24479 * window.c (window_min_size_2): New function.
24480 (window_min_size_1, size_window, Fdisplay_buffer)
24481 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24482 windows without mode- or header-lines when window-min-height is
24483 too small.
24484 (size_window): Reset nodelete_p after testing it, following an
24485 earlier note by Kim F. Storm.
24486 (display_buffer): Do not set split_height_threshold to twice the
24487 value of window_min_height to avoid changing the value of a
24488 customizable variable. Rather explicitly check whether the
24489 height of the window that shall be splitted is at least as large
24490 as split_height_threshold.
24491 (Fwindow_full_width_p): New defun.
24492 (syms_of_window): Defsubr it.
24493
24494 * window.h: Add EXFUN for Fwindow_full_width_p.
24495
244962007-07-14 Jason Rumney <jasonr@gnu.org>
24497
24498 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24499
245002007-07-14 Richard Stallman <rms@gnu.org>
24501
24502 * eval.c (maybe_call_debugger): New function.
24503 (find_handler_clause): Use maybe_call_debugger.
24504 Call it when the handler says `debug'.
24505 Eliminate DEBUGGER_VALUE_PTR.
24506 (Fsignal): Eliminate debugger_value.
24507 (Qdebug): New variable.
24508 (syms_of_eval): Initialize it.
24509
245102007-07-14 Juanma Barranquero <lekktu@gmail.com>
24511
24512 * eval.c (Fprogn):
24513 * keyboard.c (Ftrack_mouse):
24514 * print.c (Fwith_output_to_temp_buffer):
24515 * window.c (Fsave_window_excursion): Doc fix.
24516
245172007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24518
24519 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24520
245212007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24522
24523 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24524 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24525 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24526 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24527 Remove unused encoding_carryover.
24528 * process.c: Adjust all functions accordingly.
24529
245302007-07-12 Richard Stallman <rms@gnu.org>
24531
24532 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24533
245342007-07-11 Jason Rumney <jasonr@gnu.org>
24535
24536 * makefile.w32-in (LIBS): Include OLE32.
24537
24538 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24539 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24540
245412007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24542
24543 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24544 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24545 from a Lisp_Object into a bare pointer.
24546 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24547 Adjust the code correspondingly.
24548
24549 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24550
24551 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24552 (term_show_mouse_face): Remove unused var `j'.
24553 (handle_one_term_event): Remove unused vars `i' and `j'.
24554 Don't cast return value of ttyname since it's not necessary.
24555
245562007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24557
24558 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24559 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24560
24561 * fns.c (map_char_table): Use an array of int for `indices' rather than
24562 an array of Lisp_Objects (which are only ever integers anyway).
24563 (Fmap_char_table): Update caller.
24564 * lisp.h: Update prototype.
24565 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24566 * fontset.c (Ffontset_info):
24567 * casetab.c (set_case_table): Update callers.
24568
24569 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24570
24571 * keymap.c (struct accessible_keymaps_data)
24572 (struct where_is_internal_data): New structures.
24573 (accessible_keymaps_1, where_is_internal_1): Use them to change
24574 interface to adhere to the one used by map_keymap.
24575 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24576 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24577
24578 * keymap.h (map_keymap_function_t): More informative prototype.
24579
245802007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24581
24582 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24583 (looking_at_1): Don't change search_regs and last_thing_searched
24584 if `inhibit-changing-match-data' is non-nil.
24585 (string_match_1, search_buffer, set_search_regs): Likewise.
24586 (syms_of_search): Add Lisp level definition for
24587 `inhibit-changing-match-data' and set it to nil.
24588 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24589 start and end of the match, instead of using values in search_regs.
24590
245912007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24592
24593 * minibuf.c (Fcompleting_read): New value `confirm-only'
24594 for `require-match'.
24595
245962007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24597
24598 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24599 part of the 2007-06-27 change to syms_of_fileio.
24600
246012007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24602
24603 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24604 Check WINDOWP before using XWINDOW. Consolidate return statements.
24605
246062007-06-27 Richard Stallman <rms@gnu.org>
24607
24608 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24609
246102007-06-27 Juanma Barranquero <lekktu@gmail.com>
24611
24612 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24613
246142007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24615
24616 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24617 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24618 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24619 (_free_internal, memalign): Use them.
24620 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24621 Initialize to PTHREAD_MUTEX_INITIALIZER.
24622 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24623 (morecore_nolock): Rename from morecore. All uses changed.
24624 Use only nolock versions of internal allocation functions.
24625 (_malloc_internal_nolock, _realloc_internal_nolock)
24626 (_free_internal_nolock): New functions created from
24627 _malloc_internal, _realloc_internal, and _free_internal.
24628 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24629 Copy hook value to automatic variable before its use.
24630 (memalign): Copy hook value to automatic variable before its use.
24631
246322007-06-26 Kenichi Handa <handa@m17n.org>
24633
24634 * coding.c (Ffind_operation_coding_system): Docstring improved.
24635 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24636
246372007-06-25 David Kastrup <dak@gnu.org>
24638
24639 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24640 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24641 cater for additional parameter.
24642
24643 * keymap.h: Adjust number of parameters to `current-active-maps'.
24644
24645 * doc.c (Fsubstitute_command_keys): Adjust call of
24646 `current-active-maps'.
24647
246482007-06-25 David Kastrup <dak@gnu.org>
24649
24650 * callint.c (Fcall_interactively): Make the parsing of interactive
24651 specs somewhat more readable.
24652
246532007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24654
24655 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24656 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24657 if extended background has already been filled.
24658
246592007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24660
24661 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24662 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24663
24664 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24665 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24666 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24667 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24668 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24669 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24670 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24671 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24672 Run timers during dialog popup.
24673 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24674
246752007-06-21 Jason Rumney <jasonr@gnu.org>
24676
24677 * image.c (convert_mono_to_color_image): Swap fore and background.
24678
246792007-06-20 Jason Rumney <jasonr@gnu.org>
24680
24681 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24682 (w32_free_bdf_font): Unmap memory not handle.
24683
246842007-06-20 Sam Steingold <sds@gnu.org>
24685
24686 * gmalloc.c (__morecore): Fix the declaration to comply with the
24687 definition.
24688
246892007-06-20 Juanma Barranquero <lekktu@gmail.com>
24690
24691 * w32term.c (w32_delete_display): Remove leftover declaration.
24692 (w32_define_cursor, w32_initialize): Make static.
24693
24694 * w32.c (_wsa_errlist): Fix typo in error message.
24695 (init_environment): Ignore any environment variable from the
24696 registry having a null value.
24697
246982007-06-20 Glenn Morris <rgm@gnu.org>
24699
24700 * Makefile.in (LIBGIF): Default to -lgif.
24701
247022007-06-17 Jason Rumney <jasonr@gnu.org>
24703
24704 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24705 unicode strings.
24706
247072007-06-16 Juanma Barranquero <lekktu@gmail.com>
24708
24709 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24710 Fix typo in docstring.
24711
247122007-06-16 Eli Zaretskii <eliz@gnu.org>
24713
24714 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24715 and their keybindings.
24716
247172007-06-15 Chong Yidong <cyd@stupidchicken.com>
24718
24719 * composite.c (update_compositions): Fix last fix.
24720
247212007-06-14 Jason Rumney <jasonr@gnu.org>
24722
24723 * w32.c (get_process_times_fn): New function pointer.
24724 (globals_of_w32): Intialize it if present in kernel32.dll.
24725 (w32_get_internal_run_time): New function.
24726
24727 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24728
247292007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24730
24731 * composite.c (update_compositions): Check the validness of
24732 compositions.
24733
247342007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24735
24736 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24737 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24738
24739 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24740 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24741
24742 * macgui.h (USE_MAC_TOOLBAR): New define.
24743
24744 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24745 Return immediately unless popup is activated.
24746
24747 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24748 background to scroll bar gap.
24749 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24750 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24751 scroll bars on frame edge. Check fringe background extension.
24752 Don't clear extended fringe background area.
24753 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24754 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24755 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24756 [USE_MAC_TOOLBAR]: New macros.
24757 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24758 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24759 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24760 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24761 [USE_MAC_TOOLBAR]: New functions.
24762 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24763 manually if previous repositioning has failed.
24764 (mac_handle_keyboard_event): Use precomputed event kind.
24765 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24766 as tool bar item click. Handle mouse movement over tool bar items.
24767
24768 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24769 toolbar_win_gravity.
24770 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24771 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24772 Add externs.
24773
24774 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24775 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24776
247772007-06-14 Chong Yidong <cyd@stupidchicken.com>
24778
24779 * image.c (search_image_cache): Remove unused variable.
24780
247812007-06-13 Chong Yidong <cyd@stupidchicken.com>
24782
24783 * xfns.c, xmenu.c: Link to xaw3d if available.
24784
247852007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24786
24787 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24788 frame_foreground and frame_background.
24789
24790 * image.c (lookup_image): Save frame foreground and background colors.
24791 (search_image_cache): Check if saved and current frame colors match.
24792
247932007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24794
24795 * regex.c (regex_compile): Remove the `regnum' counter.
24796 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24797
247982007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24799
24800 * term.c: Include intervals.h to declare Fget_text_property.
24801
248022007-06-10 Jason Rumney <jasonr@gnu.org>
24803
24804 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24805
248062007-06-08 Juanma Barranquero <lekktu@gmail.com>
24807
24808 * callint.c (Fcall_interactively):
24809 * editfns.c (Fdelete_and_extract_region):
24810 * fileio.c (Fread_file_name):
24811 * fns.c (Fmapconcat):
24812 * keyboard.c (cmd_error_internal):
24813 * keymap.c (Fkey_description):
24814 * lread.c (openp):
24815 * minibuf.c (read_minibuf):
24816 * search.c (wordify):
24817 * sunfns.c (sel_read):
24818 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24819 * xfns.c (x_default_scroll_bar_color_parameter):
24820 * xmenu.c (menu_help_callback):
24821 * xselect.c (Fx_get_atom_name):
24822 * xterm.c (x_term_init): Use empty_unibyte_string.
24823
248242007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24825
24826 * alloc.c (init_strings): Initialize canonical empty strings.
24827 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24828 canonical empty string when the requested size is 0.
24829
24830 * emacs.c (empty_unibyte_string): Rename from empty_string.
24831 (empty_multibyte_string): New canonical empty string.
24832 (syms_of_emacs): Don't initialize empty_string.
24833
24834 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24835 string, if appropriate.
24836 (empty_unibyte_string, empty_multibyte_string): New externs.
24837 (empty_string): Remove extern.
24838
24839 * lread.c (syms_of_lread): Use empty_unibyte_string.
24840
248412007-06-07 Jason Rumney <jasonr@gnu.org>
24842
24843 * s/ms-w32.h: Don't define HAVE_TZNAME.
24844
24845 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24846
248472007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24848
24849 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24850
24851 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24852 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24853
24854 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24855 Don't call next handler.
24856 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24857 Remove argument. Install handler to application.
24858 (set_frame_menubar): Don't change deep_p.
24859 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24860 FRAME_OUTER_TO_INNER_DIFF_Y.
24861 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24862 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24863 [HAVE_DIALOGS]: New macros.
24864 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24865 Use them.
24866 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24867
24868 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24869 init_service_handler. All callers changed. Return OSStatus value.
24870
24871 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24872 All callers changed so as not to call SetPortWindowPort.
24873 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24874 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24875 mac_draw_string_common.
24876 (mac_draw_image_string_qd): Likewise.
24877 (mac_draw_string_common): Use them. Add INLINE.
24878 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24879 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24880 GetGlobalMouse.
24881 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24882 and FRAME_OUTER_TO_INNER_DIFF_Y.
24883 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24884 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24885 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24886 repositioning window to mac_handle_window_event.
24887 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24888 saving window location to mac_handle_window_event
24889 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24890 (install_menu_target_item_handler): Remove argument in extern.
24891 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24892 Also accept command events.
24893 (do_keystroke): New function created from XTread_socket.
24894 (init_command_handler): Remove functions.
24895 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24896 and save window location by kEventWindowShowing and kEventWindowHiding
24897 handlers here. Don't call next handler for window state change and
24898 focus events.
24899 (mac_handle_application_event, mac_handle_keyboard_event)
24900 [TARGET_API_MAC_CARBON]: New functions.
24901 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24902 kEventWindowShowing and kEventWindowHiding events. Move installation
24903 of mouse, font, text input and menu target item handlers to
24904 install_application_handler.
24905 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24906 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24907 New function.
24908 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24909 Register it.
24910 (XTread_socket) [TARGET_API_MAC_CARBON]:
24911 Consolidate SendEventToEventTarget calls.
24912 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24913 Move application activation handler to mac_handle_application_event.
24914 Move keyboard handler to mac_handle_keyboard_event.
24915 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24916 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24917 init_command_handler. Call install_application_handler.
24918
24919 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24920 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24921
249222007-06-07 Glenn Morris <rgm@gnu.org>
24923
24924 * emacs.c (main): Use `emacs-copyright' in --version output.
24925
249262007-06-06 Chong Yidong <cyd@stupidchicken.com>
24927
24928 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24929
249302007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24931
24932 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24933
24934 * macgui.h: Replace WindowPtr with WindowRef.
24935
24936 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24937 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24938 Replace ControlHandle with ControlRef.
24939 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24940
24941 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24942 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24943 Replace ControlHandle with ControlRef.
24944 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24945 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24946
24947 * macterm.h (struct scroll_bar): Rename member control_handle_low
24948 and control_handle_high to control_ref_low and control_ref_high.
24949 All uses changed.
24950 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24951 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24952 respectively. All uses changed.
24953 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24954 (install_window_handler, remove_window_handler): Replace WindowPtr
24955 with WindowRef in externs.
24956
249572007-06-05 Juanma Barranquero <lekktu@gmail.com>
24958
24959 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24960
249612007-06-03 Nick Roberts <nickrob@snap.net.nz>
24962
24963 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24964
24965 * frame.c (Fmouse_position, Fmouse_pixel_position):
24966 Condition on HAVE_GPM too.
24967
24968 * term.c (term_mouse_highlight): Remove unused variables.
24969 (Fterm_open_connection): Set gpm_zerobased to 1.
24970 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24971 Use zero based co-ordinates.
24972 (handle_one_term_event): Report a drag as mouse movement too.
24973
24974 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24975
249762007-06-03 Chong Yidong <cyd@stupidchicken.com>
24977
24978 * image.c (search_image_cache): New function. Require background
24979 color match if background color is unspecified in the image spec.
24980 (uncache_image, lookup_image): Use it.
24981
249822007-06-01 Juanma Barranquero <lekktu@gmail.com>
24983
24984 * window.c (Fshrink_window): Reflow docstring.
24985
249862007-06-02 Chong Yidong <cyd@stupidchicken.com>
24987
24988 * Version 22.1 released.
24989
249902007-06-01 Richard Stallman <rms@gnu.org>
24991
24992 * xfns.c (x_encode_text): Add GCPRO.
24993
249942007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24995
24996 * xfns.c (x_set_name_internal): Save encoded name before
24997 x_encode_text in case string data is relocated.
24998
249992007-05-31 Richard Stallman <rms@gnu.org>
25000
25001 * buffer.c (syms_of_buffer): Doc fix.
25002
250032007-05-30 Nick Roberts <nickrob@snap.net.nz>
25004
25005 * sysdep.c (init_sys_modes): Add rather than replace with
25006 O_NONBLOCK.
25007
25008 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25009 term_mouse_moveto.
25010
25011 * termhooks.h (term_mouse_moveto): New extern.
25012
25013 * term.c (mouse_face_window): Rename...
25014 (Qmouse_face_window): ...to this.
25015 (term_show_mouse_face, term_clear_mouse_face)
25016 (term_mouse_highlight): Use Qmouse_face_window.
25017 (term_mouse_moveto): New function.
25018 (term_mouse_position): Make it work.
25019 (syms_of_term): Uncomment assignment to mouse_position_hook.
25020 Staticpro Qmouse_face_window.
25021
250222007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25023
25024 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25025 around current_column call.
25026
250272007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25028
25029 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25030 * xdisp.c (next_element_from_buffer):
25031 * window.c (delete_window):
25032 * term.c (term_mouse_highlight):
25033 * msdos.c (getdefdir):
25034 * macterm.c (mac_create_bitmap_from_bitmap_data)
25035 (init_font_name_table):
25036 * fns.c (Fsxhash):
25037 * data.c (Fmake_local_variable):
25038 * ccl.c (ccl_driver): Likewise.
25039
250402007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25041
25042 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25043 Call mac_wakeup_from_rne on window size change.
25044
250452007-05-25 Chong Yidong <cyd@stupidchicken.com>
25046
25047 * image.c (uncache_image): Fix typo.
25048
250492007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25050
25051 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25052
250532007-05-22 Richard Stallman <rms@gnu.org>
25054
25055 * xterm.c (x_connection_closed): Remove NO_RETURN.
25056
250572007-05-22 Martin Rudalics <rudalics@gmx.at>
25058
25059 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25060
250612007-05-21 Chong Yidong <cyd@stupidchicken.com>
25062
25063 * image.c (uncache_image): New function.
25064 (Fimage_refresh): New function.
25065
250662007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25067
25068 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25069
250702007-05-20 Nick Roberts <nickrob@snap.net.nz>
25071
25072 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25073 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25074
250752007-05-20 Nick Roberts <nickrob@snap.net.nz>
25076
25077 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25078 conditional on [HAVE_GPM_H].
25079
250802007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25081
25082 * syntax.c (skip_chars): Update syntax-table only after we checked that
25083 the new location is valid.
25084
250852007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25086
25087 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25088 mac_get_window_bounds.
25089
250902007-05-20 Nick Roberts <nickrob@snap.net.nz>
25091
25092 * Makefile.in (LIBGPM): Allow it to be set from configure.
25093 If set then link Emacs with it.
25094
25095 * config.in: Regenerate.
25096
25097 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25098 New externs.
25099
25100 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25101 Include gpm.h.
25102 (handle_one_term_event, term_gpm): New externs.
25103
25104 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25105 and allow it to be interrupted by SIGIO.
25106
25107 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25108 (wait_reading_process_output): Wait on gpm_fd too.
25109 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25110 (add_gpm_wait_descriptor_called_flag): New variable.
25111 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25112
25113 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25114 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25115 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25116 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25117 (make_lispy_event): Add case GPM_CLICK_EVENT.
25118 (read_avail_input): Handle mouse input.
25119
25120 * term.c (write_glyphs_with_face): New function.
25121 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25122 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25123 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25124 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25125 (last_mouse_x, last_mouse_y): New variables.
25126 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25127 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25128 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25129 (Fterm_close_connection): New functions.
25130 (term_init): Initialise mouse_face_window.
25131
251322007-05-19 Chong Yidong <cyd@stupidchicken.com>
25133
25134 * xdisp.c (redisplay_window): If first window line is a
25135 continuation line, recompute the new window start instead of
25136 recentering.
25137
251382007-05-18 Glenn Morris <rgm@gnu.org>
25139
25140 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25141 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25142
251432007-05-17 Glenn Morris <rgm@gnu.org>
25144
25145 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25146
251472007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25148
25149 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25150 dead key repeat and up events.
25151
251522007-05-14 Chong Yidong <cyd@stupidchicken.com>
25153
25154 * image.c (pbm_load): Check image size for monochrome pbm.
25155
251562007-05-13 Chong Yidong <cyd@stupidchicken.com>
25157
25158 * xterm.c (XTread_socket): Revert last change.
25159
251602007-05-12 Chong Yidong <cyd@stupidchicken.com>
25161
25162 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25163
25164 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25165
251662007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25167
25168 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25169 mixup (YAILOM).
25170
251712007-05-07 Andreas Schwab <schwab@suse.de>
25172
25173 * keymap.c (Flookup_key): Fix typo in last change.
25174
251752007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25176
25177 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25178 mapping for unibyte strings.
25179
251802007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25181
25182 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25183 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25184
251852007-04-29 Richard Stallman <rms@gnu.org>
25186
25187 * insdel.c (replace_range): For undo, record insertion first.
25188
251892007-04-29 Andreas Schwab <schwab@suse.de>
25190
25191 * lisp.h (VECSIZE): Use OFFSETOF.
25192
251932007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25194
25195 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25196 disabled lines.
25197
251982007-04-28 Richard Stallman <rms@gnu.org>
25199
25200 * lread.c (read_escape): In a string, \s is always space.
25201
252022007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25203
25204 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25205
25206 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25207 submenu for menu bar items.
25208
25209See ChangeLog.10 for earlier changes.
25210
25211;; Local Variables:
25212;; coding: utf-8
25213;; add-log-time-zone-rule: t
aac0c6e3
MR
25214;; End:
25215
e3eb1dae 25216 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25217
25218 This file is part of GNU Emacs.
25219
25220 GNU Emacs is free software: you can redistribute it and/or modify
25221 it under the terms of the GNU General Public License as published by
25222 the Free Software Foundation, either version 3 of the License, or
25223 (at your option) any later version.
25224
25225 GNU Emacs is distributed in the hope that it will be useful,
25226 but WITHOUT ANY WARRANTY; without even the implied warranty of
25227 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25228 GNU General Public License for more details.
25229
25230 You should have received a copy of the GNU General Public License
25231 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25232
25233;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40