Convert more function definitions to standard C.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6f704c76
DN
12010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Convert more function definitions to standard C.
4 * xdisp.c (window_box_edges, handle_single_display_spec)
5 (display_string): Convert definition to standard C.
6 * scroll.c (do_direct_scrolling, scrolling_1):
7 * dispnew.c (allocate_matrices_for_frame_redisplay)
8 (mirrored_line_dance):
9 * coding.c (code_convert_string):
10 * charset.c (map_charset_chars):
11 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
12 (Fregister_ccl_program, Fregister_code_conversion_map):
13 * keyboard.c (kbd_buffer_nr_stored): Likewise.
14 (head_table): Make static and const.
15
e6cfa7c3
AS
162010-07-12 Andreas Schwab <schwab@linux-m68k.org>
17
18 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
19 (PROFILING_LDFLAGS): Set from substitution.
20 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
21 CFLAGS last.
22
892dd565
KH
232010-07-12 Kenichi Handa <handa@m17n.org>
24
6f2cdcd1
KH
25 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
26 (shortlisp): Likewise.
27
892dd565
KH
28 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
29
30 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
31 of FONT_ENTITY_INDEX.
32 (Ffont_get): If KEY is :otf and the font-object doesn't have the
33 property, get the property value dynamically.
34 (Ffont_put): Accept font-entity and font-object too.
35 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
36 return value changed.
37 (syms_of_font): Adjusted for the above change.
38
ae96d47a
AS
392010-07-11 Andreas Schwab <schwab@linux-m68k.org>
40
c8fc18ee
AS
41 * blockinput.h: Remove obsolete comment.
42
89887d67
AS
43 * lisp.h: Include <stddef.h>.
44 (OFFSETOF): Don't define.
45 (VECSIZE): Use offsetof instead of OFFSETOF.
46 (PSEUDOVECSIZE): Likewise.
47 * process.c (conv_sockaddr_to_lisp): Likewise.
48 * alloc.c: Don't include <stddef.h>.
49 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
50
ae96d47a
AS
51 * process.c: Remove obsolete comment.
52
635c0aa1
CY
532010-07-11 Chong Yidong <cyd@stupidchicken.com>
54
55 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
56
a64df650
AS
572010-07-11 Andreas Schwab <schwab@linux-m68k.org>
58
8966b757
AS
59 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
60 index, rindex.
61 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
62 * editfns.c (Fuser_full_name, Fformat): Likewise.
63 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
64 * fileio.c (Ffile_symlink_p): Likewise.
65 * filelock.c (current_lock_owner): Likewise.
66 * font.c (font_parse_name, font_parse_family_registry): Likewise.
67 * fontset.c (fontset_pattern_regexp): Likewise.
68 * lread.c (read1): Likewise.
69 * sysdep.c (init_system_name): Likewise.
70 * xfns.c (select_visual): Likewise.
71 * s/hpux10-20.h (index, rindex): Don't define.
72 * s/ms-w32.h (index): Likewise.
73 * s/usg5-4.h: Likewise.
74
cf237e27
AS
75 * callproc.c (relocate_fd): Use F_DUPFD if defined.
76
a8fe7202
AS
77 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
78 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
79 (egetenv): Likewise.
80 * doprnt.c (doprnt): Likewise.
81 * editfns.c (set_time_zone_rule, format2): Likewise.
82 * emacs.c (decode_env_path): Likewise.
83 * eval.c (signal_error, error): Likewise.
84 * insdel.c (replace_range_2): Likewise.
85 * keyboard.c (cmd_error_internal): Likewise.
86 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
87 * print.c (write_string, write_string_1, print_error_message):
88 Likewise.
89 * vm-limit.c (warn_function, memory_warnings): Likewise.
90 * xdisp.c (message1, message1_nolog, message_with_string)
91 (vmessage, message, message_nolog): Likewise.
92 * emacs.c: Remove duplicate declaration.
93 * keyboard.h: Likewise.
94 * lisp.h: Update prototypes.
95
bb8e180f
AS
96 * eval.c: Fix indentation problem.
97
83380e65
AS
98 * keyboard.c: Include "process.h"
99
a64df650
AS
100 * eval.c: Remove obsolete noinline declaration.
101 * fns.c: Likewise.
102
6a8033e1
KR
1032010-07-11 Ken Raeburn <raeburn@raeburn.org>
104
105 * doprnt.c (doprnt): Take a va_list argument instead of count and
106 pointer.
107 * eval.c (error): Change to a standard-C variadic function.
108 * xdisp.c (vmessage): Renamed from message, made static, and
109 changed to take a va_list argument.
110 (message): New variadic wrapper.
111 (message_nolog): Now a variadic function, calling vmessage.
112 * lisp.h: Include stdarg.h for va_list.
113 (doprnt, error, message, message_nolog): Decls updated.
114
462aa963
EZ
1152010-07-11 Eli Zaretskii <eliz@gnu.org>
116
117 * process.c (syms_of_process) <delete-exited-processes>: Define
118 even if !subprocesses.
119 (delete_exited_processes): Ditto.
120
121 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
122 (delete_exited_processes): Don't define.
123
48104462
CY
1242010-07-10 Chong Yidong <cyd@stupidchicken.com>
125
126 * frame.c (make_frame): Initialize menu_bar_lines and
127 tool_bar_lines members.
128 (make_initial_frame, make_terminal_frame): Initialize
129 menu_bar_lines using value of menu-bar-mode.
130
131 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
132
f388c88a
EZ
1332010-07-10 Eli Zaretskii <eliz@gnu.org>
134
135 * process.c: Reshuffle #include's. Condition some of the global
136 and static variables on `subprocesses'.
137 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
138 Leave only one implementation.
139 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
140 (kill_buffer_processes, Flist_system_processes)
141 (Fprocess_attributes, init_process, syms_of_process): Unify the
142 implementations for with subprocesses and without them.
143
723f5a07
J
1442010-07-09 Jan Djärv <jan.h.d@swipnet.se>
145
146 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
147 correct size for Motif.
148 (free_frame_menubar): Call x_set_window_size to update frame size.
149
150 * xfns.c (x_window): Set borderWidth to 0 for pane and
151 EmacsFrame. Frame size calculation is wrong otherwise.
152
2536a4b7
MA
1532010-07-09 Michael Albinus <michael.albinus@gmx.de>
154
155 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
156 allows to suppress errors when polling in Emacs' main loop.
157 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
158 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
159 (Fdbus_method_error_internal, Fdbus_send_signal)
160 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
161 (Fdbus_register_method): Use it. (Bug#6579)
162
5842a27b
DN
1632010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
164
165 * alloc.c: Convert DEFUNs to standard C.
166 * buffer.c:
167 * bytecode.c:
168 * callint.c:
169 * callproc.c:
170 * casefiddle.c:
171 * casetab.c:
172 * category.c:
173 * character.c:
174 * charset.c:
175 * chartab.c:
176 * cmds.c:
177 * coding.c:
178 * composite.c:
179 * data.c:
180 * dbusbind.c:
181 * dired.c:
182 * dispnew.c:
183 * doc.c:
184 * dosfns.c:
185 * editfns.c:
186 * emacs.c:
187 * eval.c:
188 * fileio.c:
189 * filelock.c:
190 * floatfns.c:
191 * fns.c:
192 * font.c:
193 * fontset.c:
194 * frame.c:
195 * fringe.c:
196 * image.c:
197 * indent.c:
198 * insdel.c:
199 * keyboard.c:
200 * keymap.c:
201 * lread.c:
202 * macros.c:
203 * marker.c:
204 * menu.c:
205 * minibuf.c:
206 * msdos.c:
207 * nsfns.m:
208 * nsmenu.m:
209 * nsselect.m:
210 * print.c:
211 * process.c:
212 * search.c:
213 * sound.c:
214 * syntax.c:
215 * term.c:
216 * terminal.c:
217 * textprop.c:
218 * undo.c:
219 * w16select.c:
220 * w32console.c:
221 * w32fns.c:
222 * w32font.c:
223 * w32menu.c:
224 * w32proc.c:
225 * w32select.c:
226 * window.c:
227 * xdisp.c:
228 * xfaces.c:
229 * xfns.c:
230 * xmenu.c:
231 * xselect.c:
232 * xsettings.c:
233 * xsmfns.c: Likewise.
234
235
d568829b
EZ
2362010-07-08 Eli Zaretskii <eliz@gnu.org>
237
238 * process.c (kbd_is_on_hold, hold_keyboard_input)
239 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
240
52214050
J
2412010-07-08 Jan Djärv <jan.h.d@swipnet.se>
242
243 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
244 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
245 unless USE_LUCID.
246
313d9eb2
DN
2472010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
248
d8825aa3
DN
249 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
250
295d0d8f
DN
251 Clean up include guards.
252 * tparam.c: Remove include guards for config.h, string.h and code
253 that assumes #ifndef emacs.
254 * termcap.c:
255 * unexalpha.c:
256 * sysdep.c:
257 * filemode.c:
258 * filelock.c:
259 * bidi.c: Likewise.
260
49d9e6b0
DN
261 Remove prefix-args.c
262 * prefix-args.c: Remove file.
263 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
264 * Makefile.in (temacs${EXEEXT}): Remove references to
265 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
266 (mostlyclean): Remove reference to prefix-args.
267 (prefix-args): Remove.
268
313d9eb2
DN
269 Simplify cstart_of_data, start_of_code and related code.
270 * mem-limits.h: Remove !emacs and _LIBC conditional code.
271 (start_of_data): Merge into start_of_data function.
272 * sysdep.c (start_of_text): Remove. Move simplified versions of
273 it in the only users: unexaix.c and unexec.c.
274 (read_input_waiting): Remove local declaration of quit_char.
275 (start, etext): Remove declarations.
276 (start_of_data): Merge with the version in mem-limits.h and move
277 to vm-limits.c.
278 * vm-limit.c (start_of_data): Merged and simplified version of the
279 code formerly in mem-limits.h and sysdep.c.
280 * unexec.c (start): New declaration, moved from sysdep.c.
281 (start_of_text): Simplified version of the code formerly in sysdep.c.
282 * unexaix.c (start_of_text): Simplified version of the code
283 formerly in sysdep.c.
284 * m/alpha.h (HAVE_TEXT_START): Remove.
285 (TEXT_START): Move ...
286 * unexalpha.c (TEXT_START): ... here.
287 * s/hpux10-20.h (TEXT_START): Remove.
288 * s/darwin.h (TEXT_START):
289 * m/mips.h (TEXT_START):
290 * m/macppc.h (HAVE_TEXT_START):
291 * m/m68k.h (TEXT_START):
292 * m/iris4d.h (TEXT_START):
293 * m/intel386.h (TEXT_START):
294 * m/ibmrs6000.h (TEXT_START):
295 * m/ia64.h (HAVE_TEXT_START):
296 * s/msdos.h (TEXT_START): Likewise.
297
72af86bd
AS
2982010-07-07 Andreas Schwab <schwab@linux-m68k.org>
299
300 * alloc.c (overrun_check_malloc, overrun_check_realloc)
301 (overrun_check_free, xstrdup, allocate_string)
302 (allocate_string_data, compact_small_strings, Fmake_string)
303 (make_unibyte_string, make_multibyte_string)
304 (make_string_from_bytes, make_specified_string, make_float)
305 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
306 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
307 memcpy, memmove, memset, memcmp.
308 * atimer.c (start_atimer, set_alarm): Likewise.
309 * buffer.c (clone_per_buffer_values, report_overlay_modification)
310 (mmap_realloc, init_buffer_once): Likewise.
311 * callint.c (Fcall_interactively): Likewise.
312 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
313 (getenv_internal_1): Likewise.
314 * casefiddle.c (casify_object): Likewise.
315 * ccl.c (ccl_driver): Likewise.
316 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
317 * charset.c (load_charset_map_from_file)
318 (load_charset_map_from_file, load_charset_map_from_vector)
319 (Fdefine_charset_internal): Likewise.
320 * cm.c (Wcm_clear): Likewise.
321 * coding.c (decode_eol, decode_coding_object)
322 (Fset_coding_system_priority, make_subsidiaries): Likewise.
323 * data.c (Faset): Likewise.
324 * dired.c (directory_files_internal, file_name_completion_stat):
325 Likewise.
326 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
327 (clear_glyph_row, copy_row_except_pointers)
328 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
329 (save_current_matrix, restore_current_matrix)
330 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
331 (mirror_line_dance, scrolling_window): Likewise.
332 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
333 Likewise.
334 * doprnt.c (doprnt): Likewise.
335 * editfns.c (Fuser_full_name, make_buffer_string_both)
336 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
337 * emacs.c (sort_args): Likewise.
338 * eval.c (Fapply, Ffuncall): Likewise.
339 * fileio.c (Ffile_name_directory, make_temp_name)
340 (Fexpand_file_name, search_embedded_absfilename)
341 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
342 (auto_save_error): Likewise.
343 * fns.c (Fstring_equal, Fcopy_sequence, concat)
344 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
345 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
346 (Fmake_hash_table): Likewise.
347 * fringe.c (Fdefine_fringe_bitmap): Likewise.
348 * ftfont.c (ftfont_text_extents): Likewise.
349 * getloadavg.c (getloadavg): Likewise.
350 * image.c (define_image_type, make_image, make_image_cache)
351 (x_create_x_image_and_pixmap, xbm_image_p)
352 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
353 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
354 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
355 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
356 (tiff_image_p, tiff_read_from_memory, gif_image_p)
357 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
358 Likewise.
359 * indent.c (scan_for_column, compute_motion): Likewise.
360 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
361 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
362 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
363 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
364 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
365 (store_user_signal_events, menu_bar_items, tool_bar_items)
366 (process_tool_bar_item, append_tool_bar_item)
367 (read_char_minibuf_menu_prompt, read_key_sequence)
368 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
369 Likewise.
370 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
371 Likewise.
372 * lisp.h (STRING_COPYIN): Likewise.
373 * lread.c (Fload, read1, oblookup): Likewise.
374 * msdos.c (Frecent_doskeys): Likewise.
375 * nsfns.m (Fx_create_frame): Likewise.
376 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
377 Likewise.
378 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
379 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
380 Likewise.
381 * nsmenu.m (ns_update_menubar): Likewise.
382 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
383 * print.c (print_unwind, printchar, strout, print_string)
384 (print_error_message): Likewise.
385 * process.c (conv_lisp_to_sockaddr, set_socket_option)
386 (Fmake_network_process, Fnetwork_interface_list)
387 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
388 (init_process): Likewise.
389 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
390 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
391 Likewise.
392 * scroll.c (do_scrolling, do_direct_scrolling)
393 (scrolling_max_lines_saved): Likewise.
394 * search.c (search_buffer, wordify, Freplace_match): Likewise.
395 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
396 * syntax.c (skip_chars, skip_syntaxes): Likewise.
397 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
398 (emacs_set_tty): Likewise.
399 * term.c (encode_terminal_code, calculate_costs)
400 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
401 Likewise.
402 * termcap.c (tgetst1, gobble_line): Likewise.
403 * termhooks.h (EVENT_INIT): Likewise.
404 * tparam.c (tparam1): Likewise.
405 * unexalpha.c (unexec): Likewise.
406 * unexec.c (write_segment): Likewise.
407 * unexmacosx.c (unexec_write_zero): Likewise.
408 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
409 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
410 * w32font.c (w32font_list_family, w32font_text_extents)
411 (w32font_list_internal, w32font_match_internal)
412 (w32font_open_internal, compute_metrics, Fx_select_font):
413 Likewise.
414 * w32menu.c (set_frame_menubar, add_menu_item)
415 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
416 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
417 * w32uniscribe.c (uniscribe_list_family): Likewise.
418 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
419 * window.c (make_window, replace_window, set_window_buffer)
420 (Fsplit_window): Likewise.
421 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
422 (add_to_log, message3, x_consider_frame_title)
423 (append_space_for_newline, extend_face_to_end_of_line)
424 (decode_mode_spec_coding, init_glyph_string): Likewise.
425 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
426 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
427 (face_attr_equal_p, make_realized_face, make_face_cache)
428 (free_realized_faces, lookup_named_face, smaller_face)
429 (face_with_height, lookup_derived_face)
430 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
431 (Finternal_set_font_selection_order, realize_default_face)
432 (compute_char_face, face_at_buffer_position)
433 (face_for_overlay_string, face_at_string_position, merge_faces):
434 Likewise.
435 * xfns.c (xic_create_fontsetname, Fx_create_frame)
436 (Fx_window_property, x_create_tip_frame)
437 (Fx_backspace_delete_keys_p): Likewise.
438 * xfont.c (xfont_list, xfont_match, xfont_list_family)
439 (xfont_text_extents): Likewise.
440 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
441 * xrdb.c (magic_file_p, x_get_resource): Likewise.
442 * xselect.c (x_queue_event, x_get_window_property)
443 (receive_incremental_selection): Likewise.
444 * xsmfns.c (x_session_check_input): Likewise.
445 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
446 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
447 Likewise.
448 * character.h (BCOPY_SHORT): Removed.
449 * config.in: Regenerate.
450 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
451 * emacs.c (main) [PROFILING]: Don't declare
452 dump_opcode_frequencies.
453 * lisp.h (safe_bcopy): Remove declaration.
454 (memset) [!HAVE_MEMSET]: Declare.
455 (memcpy) [!HAVE_MEMCPY]: Likewise.
456 (memmove) [!HAVE_MEMMOVE]: Likewise.
457 (memcmp) [!HAVE_MEMCMP]: Likewise.
458 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
459 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
460 Don't define.
461 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
462 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
463 (BCOPY_DOWNWARD_SAFE): Don't define.
464 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
465 (memcpy) [!HAVE_MEMCPY]: Define.
466 (memmove) [!HAVE_MEMMOVE]: Define.
467 (memcmp) [!HAVE_MEMCMP]: Define.
468
cb768704
J
4692010-07-07 Jan Djärv <jan.h.d@swipnet.se>
470
471 * process.c (kbd_is_on_hold): New variable.
472 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
473 functions.
474 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
475 select on empty input mask.
476 (init_process): Initialize kbd_is_on_hold to 0.
477
478 * process.h (hold_keyboard_input, unhold_keyboard_input)
479 (kbd_on_hold_p): Declare.
480
481 * keyboard.c (input_available_signal): Declare.
482 (kbd_buffer_nr_stored): New function.
483 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
484 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
485 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
486 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
487 (tty_read_avail_input): If input is on hold, return.
488 Don't read more that free slots in kbd_buffer (Bug#6571).
489
3a8ce822
EZ
4902010-07-07 Eli Zaretskii <eliz@gnu.org>
491
492 * msdos.h:
493 * msdos.c:
494 * dosfns.c:
495 * w16select.c: Convert function definitions to ANSI C.
496
497 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
498 unused prototypes.
499
cf84bb53
JB
5002010-07-07 Juanma Barranquero <lekktu@gmail.com>
501
502 * coding.c, sysdep.c: Convert some more functions to standard C.
503
1a4990fb
JB
5042010-07-07 Juanma Barranquero <lekktu@gmail.com>
505
506 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
507 (encode_coding_object): Use SPECPDL_INDEX.
508 (syms_of_coding): Use DOS_NT.
509
c0f2f16b
DN
5102010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
511
48fb6855
DN
512 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
513
c0f2f16b
DN
514 Make the function member of Lisp_Subr use standard C prototypes.
515 * lisp.h (struct Lisp_Subr): Use a union for the function member.
516 (DECL_ALIGN): Add a cast for the function.
517 * eval.c (Feval, Ffuncall): Use the proper type for each type
518 function call.
519
67aecef9
CY
5202010-07-06 Chong Yidong <cyd@stupidchicken.com>
521
522 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
523 fringe face id, so face-remapping-alist works (Bug#6091).
524
b56ceb92
JB
5252010-07-06 Juanma Barranquero <lekktu@gmail.com>
526
527 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
528 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
529 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
530
7af07b96
AS
5312010-07-06 Andreas Schwab <schwab@linux-m68k.org>
532
533 * xterm.c (x_get_keysym_name): Change type of parameter to int.
534 * lisp.h: Declare x_get_keysym_name.
535 * keyboard.c (modify_event_symbol): Don't declare
536 x_get_keysym_name here.
537
69e24e34
DN
5382010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
539
540 * ecrt0.c: Revert conversion to standard C.
541
d3da34e0 5422010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
543
544 * vm-limit.c (memory_warnings):
545 * keyboard.c (modify_event_symbol):
546 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
547 (round2, emacs_rint):
548 * process.c (send_process, old_sigpipe): Convert function
549 definitions and declarations to standard C.
550
5512010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
552
553 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
554 * xdisp.c: Convert function definitions to standard C.
555
556 * cm.c (cmputc): Arg C is now int, not char.
557 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
558
00be444c
J
5592010-07-05 James Cloos <cloos@jhcloos.com>
560
561 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
562
563 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
564 _NET_WM_ICON_NAME atoms.
565
566 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
567 and _NET_WM_ICON_NAME properties, too, matching what is
568 done in the Gtk+ case.
569
e4c8d29a
J
5702010-07-05 Jan Djärv <jan.h.d@swipnet.se>
571
ff919460
J
572 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
573
e4c8d29a
J
574 * xsmfns.c (SSDATA): New macro.
575 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
576 passed to strlen/strcpy/strcat.
577 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
578 7:th arg to XChangeProperty to (unsigned char *)
579
580 * xsettings.c (something_changedCB, parse_settings)
581 (apply_xft_settings): Reformat prototype.
582 (something_changedCB, init_gconf): Remove unused variable i.
583 (read_settings): Remove unused variable long_len.
584
585 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
586 (xg_get_image_for_pixmap, create_dialog)
587 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
588 (menuitem_highlight_callback, make_menu_item)
589 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
590 (xg_create_scroll_bar, xg_update_scrollbar_pos)
591 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
592 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
593 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
594 (xg_tool_bar_item_expose_callback): Reformat prototype.
595 (xg_update_menubar): GList *group => GSList *group.
596 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
597 before use.
598 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
599 to GTK_IMAGE (wimage).
600
dd4c5104
DN
6012010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
602
898b4c5c
DN
603 * atimer.c: Use "" instead of <> for local includes for
604 consistency with the rest of the code.
605
dd4c5104
DN
606 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
607 * xrdb.c (get_system_name):
608 * window.c (shrink_windows):
609 * syntax.c (forw_comment):
610 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
611 (ins_del_costs):
612 * mem-limits.h (start_of_data):
613 * lread.c (readevalloop):
614 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
615 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
616 * frame.c (x_get_focus_frame):
617 * floatfns.c (fmod_float):
618 * fileio.c (choose_write_coding_system):
619 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
620 (malloc_initialize_hook, sort_args, synchronize_locale):
621 * doprnt.c (doprnt):
622 * dired.c (compile_pattern):
623 * data.c (fmod_float):
624 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
625 (map_char_table_for_charset):
626 * charset.c (define_charset_internal):
627 * alloc.c (Fgarbage_collect): Convert declarations or definitions
628 to standard C.
629
9a39b306 6302010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 631 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
632
633 * lread.c (read1): Fix up last change to not mess up `c'.
634
e6cb2cbb
JB
6352010-07-04 Juanma Barranquero <lekktu@gmail.com>
636
637 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
638
438105ed
JB
6392010-07-04 Juanma Barranquero <lekktu@gmail.com>
640
641 Fix prototypes.
642
e5447b22 643 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 644 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
645 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
646 arg, as required by internal_condition_case_1.
dcc7404b 647 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
648 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
649 (analyse_first): Fix "const const".
e5447b22 650 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 651 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 652 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 653
971de7fb
DN
6542010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
655
656 * alloc.c: Convert function definitions to standard C.
657 * atimer.c:
658 * bidi.c:
659 * bytecode.c:
660 * callint.c:
661 * callproc.c:
662 * casefiddle.c:
663 * casetab.c:
664 * category.c:
665 * ccl.c:
666 * character.c:
667 * charset.c:
668 * chartab.c:
669 * cmds.c:
670 * coding.c:
671 * composite.c:
672 * data.c:
673 * dbusbind.c:
674 * dired.c:
675 * dispnew.c:
676 * doc.c:
677 * doprnt.c:
678 * ecrt0.c:
679 * editfns.c:
680 * fileio.c:
681 * filelock.c:
682 * filemode.c:
683 * fns.c:
684 * font.c:
685 * fontset.c:
686 * frame.c:
687 * fringe.c:
688 * ftfont.c:
689 * ftxfont.c:
690 * gtkutil.c:
691 * indent.c:
692 * insdel.c:
693 * intervals.c:
694 * keymap.c:
695 * lread.c:
696 * macros.c:
697 * marker.c:
698 * md5.c:
699 * menu.c:
700 * minibuf.c:
701 * prefix-args.c:
702 * print.c:
703 * ralloc.c:
704 * regex.c:
705 * region-cache.c:
706 * scroll.c:
707 * search.c:
708 * sound.c:
709 * strftime.c:
710 * syntax.c:
711 * sysdep.c:
712 * termcap.c:
713 * terminal.c:
714 * terminfo.c:
715 * textprop.c:
716 * tparam.c:
717 * undo.c:
718 * unexelf.c:
719 * window.c:
720 * xfaces.c:
721 * xfns.c:
722 * xfont.c:
723 * xftfont.c:
724 * xgselect.c:
725 * xmenu.c:
726 * xrdb.c:
727 * xselect.c:
728 * xsettings.c:
729 * xsmfns.c:
730 * xterm.c: Likewise.
731
ae492bec
EZ
7322010-07-03 Eli Zaretskii <eliz@gnu.org>
733
76ea4cc9
EZ
734 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
735 frames other than the initial one. Fix reversal of colors when
736 `reverse' is specified in the frame parameters. Call
737 update_face_from_frame_parameter instead of
738 internal-set-lisp-face-attribute. Initialize screen colors from
739 initial_screen_colors[] when f->default_face_done_p is zero,
740 instead of depending on being called with default-frame-alist as
741 the alist argument.
742
743 * xfaces.c (update_face_from_frame_parameter): Move out of
744 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
745 with HAVE_WINDOW_SYSTEM.
746
1e6255ae
EZ
747 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
748 to menu-bar-mode, if not set in the frame parameters or in
749 default-frame-alist.
750
ae492bec
EZ
751 * w32console.c (sys_tputs): Adjust argument list to prototype in
752 term.c.
753
3a35a84c
JB
7542010-07-03 Juanma Barranquero <lekktu@gmail.com>
755
756 * lisp.h (memory_warnings): Fix prototype.
757
758 * cm.h (evalcost): Fix prototype.
759
760 * cm.c (evalcost): Fix arg type.
761
c532d349
DN
7622010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
763
764 * term.c (term_clear_mouse_face, Fidentity):
765 * syssignal.h (signal_handler_t):
766 * lisp.h (memory_warnings):
767 * coding.h (preferred_coding_system):
768 * cm.h (evalcost):
769 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
770
c0b36d46
EZ
7712010-07-02 Eli Zaretskii <eliz@gnu.org>
772
773 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
774 from prototypes.
775
776 * msdos.h (load_pixmap): Don't define away.
777
383e0970
J
7782010-07-02 Jan Djärv <jan.h.d@swipnet.se>
779
f57e2426
J
780 * lisp.h:
781 * atimer.h: Remove define for P_.
782
783 * alloc.c: Remove __P and P_ from .c and .m files.
784 * atimer.c:
785 * buffer.c:
786 * callint.c:
787 * category.c:
788 * charset.c:
789 * chartab.c:
790 * cm.c:
791 * coding.c:
792 * composite.c:
793 * data.c:
794 * dired.c:
795 * dispnew.c:
796 * doc.c:
797 * editfns.c:
798 * emacs.c:
799 * eval.c:
800 * fileio.c:
801 * filelock.c:
802 * fns.c:
803 * font.c:
804 * fontset.c:
805 * frame.c:
806 * ftfont.c:
807 * ftxfont.c:
808 * gmalloc.c:
809 * gtkutil.c:
810 * image.c:
811 * indent.c:
812 * intervals.c:
813 * keyboard.c:
814 * keymap.c:
815 * lread.c:
816 * marker.c:
817 * menu.c:
818 * minibuf.c:
819 * print.c:
820 * process.c:
821 * scroll.c:
822 * search.c:
823 * sound.c:
824 * strftime.c:
825 * syntax.c:
826 * sysdep.c:
827 * term.c:
828 * terminal.c:
829 * textprop.c:
830 * unexalpha.c:
831 * w32console.c:
832 * w32fns.c:
833 * w32font.c:
834 * w32menu.c:
835 * w32term.c:
836 * w32uniscribe.c:
837 * window.c:
838 * xdisp.c:
839 * xfaces.c:
840 * xfns.c:
841 * xfont.c:
842 * xftfont.c:
843 * xmenu.c:
844 * xselect.c:
845 * xterm.c: Likewise.
846
383e0970 847 Remove P_ and __P macros.
f57e2426
J
848 * atimer.h: Remove P_ and __P macros.
849 * buffer.h:
383e0970
J
850 * category.h:
851 * ccl.h:
852 * character.h:
853 * charset.h:
854 * cm.h:
855 * coding.h:
856 * composite.h:
857 * dispextern.h:
858 * disptab.h:
9e892c8d 859 * dosfns.h:
383e0970
J
860 * font.h:
861 * fontset.h:
862 * frame.h:
863 * gtkutil.h:
864 * indent.h:
865 * intervals.h:
866 * keyboard.h:
867 * keymap.h:
868 * lisp.h:
869 * macros.h:
870 * md5.h:
871 * menu.h:
872 * msdos.h:
873 * nsterm.h:
874 * puresize.h:
875 * region-cache.h:
876 * syntax.h:
877 * syssignal.h:
878 * systime.h:
879 * termhooks.h:
9e892c8d 880 * w32font.h:
383e0970
J
881 * w32term.h:
882 * widget.h:
883 * window.h:
884 * xgselect.h:
885 * xsettings.h:
886 * xterm.h: Likewise.
887
98601119
DN
8882010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
889
d9170db5
DN
890 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
891
98601119
DN
892 Cleanup old code.
893 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
894 * syssignal.h: Remove code for Lynx, not supported anymore.
895 * vm-limit.c: Remove unused code the depends on emacs not being
896 defined and NO_LIM_DATA being defined.
897 * mem-limits.h: Remove dead code.
898
1f984e12
J
8992010-07-01 Jan Djärv <jan.h.d@swipnet.se>
900
c49d071a
J
901 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
902
9d5405ec
J
903 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
904 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
905
7a18115b
J
906 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
907 parameters, they are already absolute.
908
581a8100
J
909 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
910 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
911
912 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
913
914 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
915 FRAME_TOOLBAR_HEIGHT.
916
1f984e12
J
917 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
918 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
919
c1ef4455
CY
9202010-06-30 Chong Yidong <cyd@stupidchicken.com>
921
922 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
923 check default-frame-alist.
924
ce8f5a9a
AS
9252010-06-30 Andreas Schwab <schwab@linux-m68k.org>
926
927 * process.c (create_process): Avoid using invalid file descriptors.
928
929 * callproc.c (child_setup): Avoid closing a file descriptor twice.
930
bf935339
J
9312010-06-30 Jan Djärv <jan.h.d@swipnet.se>
932
933 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
934 Improve documentation. Return font regardless of use_system_font.
935 (syms_of_xsettings): Improve documentation for font-use-system-font.
936
7c33a057
CY
9372010-07-10 Chong Yidong <cyd@stupidchicken.com>
938
2ec1b5ee
CY
939 * xfaces.c (realize_face): Garbage the frame if a face is removed
940 (Bug#6593).
941
9422010-07-05 Andreas Schwab <schwab@linux-m68k.org>
943
944 * keyboard.c: Remove duplicate <setjmp.h>.
945 (read_key_sequence): Remove volatile qualifiers.
946
9472010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
948
949 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
950 (struct glyph_row): New members left_fringe_offset and
951 right_fringe_offset.
952
953 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
954 specially.
955 * w32term.c (w32_draw_fringe_bitmap): Likewise.
956 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
957
958 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
959 Take account of bitmap offset.
960 (draw_window_fringes): Take account of window vscroll.
961 (update_window_fringes): Likewise. Extend top-aligned top indicator
962 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
963 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
964 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
965
9662010-07-04 Juanma Barranquero <lekktu@gmail.com>
967
968 * w32fns.c (Qtooltip): Declare.
969 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
970
9712010-07-03 Jan Djärv <jan.h.d@swipnet.se>
972
973 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
974 grab on just Press (Bug#6499).
975
9762010-07-02 Chong Yidong <cyd@stupidchicken.com>
977
978 * frame.c (Qtooltip): New var.
979 (delete_frame): Use it. Fix faulty if statement. Don't update
980 mode line for tooltip frames. Suggested by Martin Rudalics.
981
982 * xfns.c (x_create_tip_frame):
983 * w32fns.c (x_create_tip_frame): Use it.
984
9852010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
986
987 * xftfont.c (xftfont_open): Check font width one by one also when
988 spacing is dual.
989
990 * ftfont.c (ftfont_open): Ditto.
991
6259c2ec
GM
9922010-06-30 Glenn Morris <rgm@gnu.org>
993
a46007e9
GM
994 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
995
6259c2ec
GM
996 * Makefile.in (CANNOT_DUMP): Update for configure name change.
997
998 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
999 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1000 * s/darwin.h (SYSTEM_MALLOC):
1001 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1002
5d1d3d04
J
10032010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1004
1005 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1006 (ns_get_screen): Don't assign integer to f.
1007 (Fx_display_color_cells): Declarations before statements.
1008
e547b051
J
10092010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1010
5fc8e5bc
J
1011 * xfns.c (x_default_font_parameter): Remove got_from_system
1012 (Bug#6526).
1013
e547b051
J
1014 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1015 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1016 defines based on what configure finds.
1017
1018 * xterm.c (XTflash): Use gtk_widget_get_window.
1019 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1020 gtk_adjustment_get_page_size.
1021 (handle_one_xevent): Use gtk_widget_get_mapped.
1022 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1023 messages.
1024
1025 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1026
1027 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1028 HAVE_GTK_FILE_SELECTION_NEW.
1029
1030 * gtkutil.c (xg_display_open, xg_display_close): Remove
1031 HAVE_GTK_MULTIDISPLAY, it is always defined.
1032 (xg_display_open): Return type is void.
1033 (gtk_widget_set_has_window)
1034 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1035 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1036 (gtk_adjustment_set_page_increment)
1037 (gtk_adjustment_get_step_increment): #define these if not found
1038 by configure.
1039 (remove_submenu): New define based on Gtk+ version.
1040 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1041 gtk_widget_get_window.
1042 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1043 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1044 (create_dialog): Use gtk_dialog_get_action_area and
1045 gtk_dialog_get_content_area.
1046 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1047 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1048 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1049 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1050 g_object_ref and g_object_unref.
1051 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1052 gtk_widget_get_sensitive.
1053 (xg_update_submenu): Use remove_submenu.
1054 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1055 properties instead to get old x and y position.
1056 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1057 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1058 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1059 (xg_get_tool_bar_widgets): New function.
1060 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1061 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1062 (toolbar_set_orientation): New #define based on if configure
1063 finds gtk_orientable_set_orientation.
1064 (xg_create_tool_bar): Call toolbar_set_orientation.
1065 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1066 instead of gtk_box_pack_start_defaults.
1067
b9229673
CY
10682010-06-28 Chong Yidong <cyd@stupidchicken.com>
1069
1070 * cmds.c (Fdelete_backward_char): Move into Lisp.
1071
bbc803b0
DN
10722010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1073
1074 * s/freebsd.h (BSD4_2): Remove redundant definition.
1075 bsd-common.h defines it already.
1076
6431f2e6
CY
10772010-06-27 Chong Yidong <cyd@stupidchicken.com>
1078
1079 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1080 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1081 tool-bar-mode, which are now set using these X resources at
1082 startup, to determine the defaults (Bug#2249).
1083
1084 * w32fns.c (Fx_create_frame):
1085 * nsfns.m (Fx_create_frame): Likewise.
1086
1087 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1088
8c079ebb
JB
10892010-06-24 Juanma Barranquero <lekktu@gmail.com>
1090
1091 * gtkutil.c (xg_update_scrollbar_pos):
1092 Avoid C99 mid-block variable declaration.
1093
e9b7ab96
JD
10942010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1095
bc869eca
JD
1096 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1097
2b7e356a 1098 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1099
1100 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1101 if height is less than scroll bar min size.
1102 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1103
e9b7ab96
JD
1104 * xfns.c (x_default_font_parameter): Try to open font from system
1105 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1106
32a679fd
JD
11072010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
1108
1109 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1110
70c4cfbb
EZ
11112010-06-20 Eli Zaretskii <eliz@gnu.org>
1112
1113 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1114 most-positive-fixnum, be extra accurate when scrolling window
1115 start, to avoid missing the cursor line.
1116
ad5a12b5
EZ
11172010-06-19 Eli Zaretskii <eliz@gnu.org>
1118
1119 * xdisp.c (try_scrolling): Compute the limit for searching point
1120 in forward scroll from scroll_max, instead of an arbitrary limit
1121 of 10 screen lines. See
1122 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1123 and
1124 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1125 for details.
1126
2a64315a 11272010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1128
1129 * editfns.c (Fbyte_to_string): Pacify compiler.
1130
288cf4e9
SM
11312010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1132
1133 * lread.c (read1): Phase out old-style backquotes a bit more.
1134
6e6e5760
EZ
11352010-06-12 Eli Zaretskii <eliz@gnu.org>
1136
cbc4fd20
EZ
1137 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1138 bidimirror.h.
1139
1140 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1141
317fbf33
EZ
1142 * bidi.c (bidi_initialize): Remove explicit initialization of
1143 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1144 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1145 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1146
1147 * biditype.h: New file.
1148
cbc4fd20
EZ
1149 * bidimirror.h: New file.
1150
6e6e5760
EZ
1151 * window.c (syms_of_window): Doc fix (bug#6409).
1152
4176cba2
RF
11532010-06-12 Romain Francoise <romain@orebokech.com>
1154
1155 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1156 ediff-hook.
1157
cb4bfcb5
GM
11582010-06-10 Glenn Morris <rgm@gnu.org>
1159
64c60c2f
GM
1160 * editfns.c (Fbyte_to_string): Pacify compiler.
1161
cb4bfcb5
GM
1162 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1163
2ec1b5ee
CY
11642010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1165
1166 * alloc.c (Fmake_byte_code): Don't access undefined argument
1167 (Bug#6517).
1168
11692010-06-25 Chong Yidong <cyd@stupidchicken.com>
1170
1171 * xdisp.c (next_element_from_image): Ensure that after-strings are
1172 read the next time we hit handle_stop (Bug#1336).
1173
11742010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1175
1176 * lread.c (read1): Signal error if #s is not followed by paren.
1177
11782010-06-19 Chong Yidong <cyd@stupidchicken.com>
1179
1180 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1181
1182 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1183
11842010-06-15 Glenn Morris <rgm@gnu.org>
1185
1186 * editfns.c (Fbyte_to_string): Pacify compiler.
1187
e454a4a3
SM
11882010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1189
1190 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1191 Check `object's type before accessing its guts.
1192
c1b1acc2
DN
11932010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1194
1195 * s/usg5-4.h: Fix previous change.
1196 Suggested by Lawrence Mitchell <wence@gmx.li>
1197
657d4c0b
AS
11982010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1199
1200 * minibuf.c (Fall_completions): Add more checks.
1201
9b27fd9f
JB
12022010-06-08 Juanma Barranquero <lekktu@gmail.com>
1203
1204 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1205
a99ebb40
DN
12062010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1207
d7c5d87d
DN
1208 * lread.c (X_OK): Remove, unused.
1209
0263a941
DN
1210 * dispnew.c: Remove obsolete comment.
1211
a99ebb40
DN
1212 Remove INCLUDED_FCNTL.
1213 * xterm.c (INCLUDED_FCNTL):
1214 * callproc.c (INCLUDED_FCNTL):
1215 * alloc.c (INCLUDED_FCNTL):
1216 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1217 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1218
13b5221f
MR
12192010-06-07 Martin Rudalics <rudalics@gmx.at>
1220
1221 * window.c (Fselect_window): Move `record_buffer' up to the
1222 beginning of this function, so the buffer gets recorded
1223 even if the selected window does not change.
1224 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1225
5220357f
JB
12262010-06-07 Juanma Barranquero <lekktu@gmail.com>
1227
1228 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1229 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1230
3085237c
DN
12312010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1232
1233 Remove BSTRING related code, all platforms define it.
1234 * s/usg5-4.h (BSTRING): Remove definition.
1235 * s/template.h (BSTRING):
1236 * s/msdos.h (BSTRING):
1237 * s/ms-w32.h (BSTRING):
1238 * s/hpux10-20.h (BSTRING):
1239 * s/gnu-linux.h (BSTRING):
1240 * s/darwin.h (BSTRING):
1241 * s/cygwin.h (BSTRING):
1242 * s/bsd-common.h (BSTRING):
1243 * s/aix4-2.h (BSTRING): Likewise.
1244 * sysdep.c: Remove code depending on BSTRING not being defined.
1245
409f2919
JB
12462010-06-05 Juanma Barranquero <lekktu@gmail.com>
1247
1248 Remove obsolete macro BASE_LEADING_CODE_P.
1249 * character.h (BASE_LEADING_CODE_P): Remove.
1250 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1251 * buffer.c (Fset_buffer_multibyte):
1252 * indent.c (scan_for_column, compute_motion):
1253 * insdel.c (count_combining_before, count_combining_after):
1254 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1255
087fc47a
JB
12562010-06-04 Juanma Barranquero <lekktu@gmail.com>
1257
1258 Turn `directory-sep-char' into a noop.
1259
1260 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1261 (DIRECTORY_SEP): Define unconditionally.
1262
1263 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1264
1265 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1266 call dostounix_filename directly.
1267
1268 * fileio.c (CORRECT_DIR_SEPS): Remove.
1269 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1270 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1271 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1272 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1273
1274 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1275 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1276
0eb7675e
AS
12772010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1278
1279 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 1280 address. (Bug#6346)
0eb7675e 1281
78edd3b7
JB
12822010-06-03 Juanma Barranquero <lekktu@gmail.com>
1283
1284 * ccl.c (Fccl_program_p): Fix typo in docstring.
1285
eb697db5
DN
12862010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1287
1288 Move UNEXEC definition to autoconf.
1289 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1290 * s/sol2-10.h (UNEXEC):
1291 * s/irix6-5.h (UNEXEC):
1292 * s/hpux10-20.h (UNEXEC):
1293 * s/gnu-linux.h (UNEXEC):
1294 * s/darwin.h (UNEXEC):
1295 * s/cygwin.h (UNEXEC):
1296 * s/bsd-common.h (UNEXEC):
1297 * s/aix4-2.h (UNEXEC):
1298 * m/alpha.h (UNEXEC): Likewise.
1299 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1300
aa3830c4
JB
13012010-06-03 Juanma Barranquero <lekktu@gmail.com>
1302
1303 Remove obsolete pre-unicode2 macros.
1304 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1305 * composite.c (composition_reseat_it):
1306 * data.c (Faset):
1307 * fns.c (Ffillarray):
1308 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1309 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1310
d234d13e
JL
13112010-06-03 Juri Linkov <juri@jurta.org>
1312
1313 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1314 (Fswitch_to_buffer): Remove unused variable `err'.
1315
0d4bcf4d
GM
13162010-06-03 Glenn Morris <rgm@gnu.org>
1317
e23dc1e2
GM
1318 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1319
05b09564
GM
1320 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1321 now that AH_BOTTOM does it.
1322
824e2978
GM
1323 * m/hp800.h (HAVE_ALLOCA):
1324 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1325
0d4bcf4d
GM
1326 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1327 Remove NOT_C_CODE tests, it is always true now.
1328
c55d2abf
DN
13292010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1330
08a494a3
DN
1331 Fix config.h includes.
1332 * xsettings.c:
1333 * xgselect.c:
1334 * nsterm.m:
1335 * nsselect.m:
1336 * nsimage.m:
1337 * nsfont.m:
1338 * nsfns.m:
1339 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1340 other files do.
1341
75934b1d
DN
1342 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1343
9f32a766
DN
1344 * s/sol2-6.h: Remove obsolete comments.
1345
c55d2abf
DN
1346 Remove unnecessary alloca.h includes.
1347 * keymap.c: Do not include alloca.h, config.h does that.
1348 * sysdep.c: Likewise. Do not define fwrite, not used.
1349
06ac62b4
SM
13502010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1351
1352 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1353 the HAVE_TERMIO where it belongs (bug#6149).
1354
1ab8293c
SM
13552010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1356
1357 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1358 of bug#6305).
1359
6dcfd253
EZ
13602010-05-30 Eli Zaretskii <eliz@gnu.org>
1361
1362 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1363 state is always cached (bug#6306).
1364
6d26bbb2
EZ
13652010-05-29 Eli Zaretskii <eliz@gnu.org>
1366
06fa4a23
EZ
1367 Fix cursor motion in bidi-reordered continued lines.
1368 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1369 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1370 over continuation lines in bidi-reordered buffers. Return
1371 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1372 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1373
f5783df3
MA
13742010-05-28 Michael Albinus <michael.albinus@gmx.de>
1375
1376 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1377
7d56b2dd
KH
13782010-05-28 Kenichi Handa <handa@m17n.org>
1379
1380 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1381 Don't sheck SPEC if it is nil.
1382 (font_list_entities): Call font_delete_unmatched if
b925d231 1383 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1384
e58d4ff7
GM
13852010-05-28 Glenn Morris <rgm@gnu.org>
1386
1387 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1388
f1a5d776
CY
13892010-05-27 Chong Yidong <cyd@stupidchicken.com>
1390
1391 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1392 whether to trash.
1393 (internal_delete_file, Frename_file): Callers changed.
1394 (delete_by_moving_to_trash): Doc fix.
1395 (Fdelete_directory_internal): Don't move to trash.
1396
1397 * callproc.c (delete_temp_file):
1398 * buffer.c (Fkill_buffer): Callers changed.
1399
1400 * lisp.h: Update prototype.
1401
f44a59e6
CY
14022010-05-27 Chong Yidong <cyd@stupidchicken.com>
1403
1404 * xdisp.c (redisplay_window): After redisplay, check if point is
1405 still valid before setting it (Bug#6177).
1406
81ac4f35
GM
14072010-05-27 Glenn Morris <rgm@gnu.org>
1408
1409 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1410 Convert comments to Makefile format.
1411
1412 * Makefile.in (bootstrap-clean): No more Makefile.c.
1413
ccd89fb3
GM
14142010-05-26 Glenn Morris <rgm@gnu.org>
1415
90278cb6
GM
1416 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1417 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1418
ccd89fb3
GM
1419 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1420 Remove.
1421 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1422
b7050583
KH
14232010-05-26 Kenichi Handa <handa@m17n.org>
1424
1425 * composite.c (composition_compute_stop_pos): Fix condition for
1426 backward scanning.
1427
e5458003
GM
14282010-05-25 Glenn Morris <rgm@gnu.org>
1429
c345fe90
GM
1430 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1431 Move before TEMACS_LDFLAGS.
1432 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1433 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1434
2e0689ab
GM
1435 * Makefile.in (NOT_C_CODE): No longer define.
1436 (config.h): No longer include.
1437
8009a5e8
GM
1438 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1439 variables it may reference.
1440
e5458003
GM
1441 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1442 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1443
10f72a37
KH
14442010-05-25 Kenichi Handa <handa@m17n.org>
1445
1446 * dispextern.h (struct composition_it): New members rule_idx and
1447 charpos.
1448
1449 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1450 that the character positions of IT point the last character of the
1451 current grapheme cluster.
1452 (next_element_from_composition): Don't change character positions
1453 of IT.
1454 (append_composite_glyph): Set glyph->charpos to
1455 it->cmp_it.charpos.
1456
1457 * composite.c (autocmp_chars): Change the first argument to RULE,
1458 and try composition with RULE only.
1459 (composition_compute_stop_pos): Record the index number of the
1460 composition rule in CMP_IT->rule_idx.
1461 (composition_reseat_it): Call autocmp_chars repeatedly until the
1462 correct rule of the composition is found.
1463 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1464 is at the last character of the current grapheme cluster when
1465 CMP_IT->reversed_p is nonzero.
1466
171eda53 14672010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1468
171eda53
SM
1469 * editfns.c (Fbyte_to_string): New function.
1470
66a9f7f4
SM
14712010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1472
1473 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1474 Suggested by Masatake YAMATO <yamato@redhat.com>.
1475
d8c315d1
EZ
14762010-05-23 Eli Zaretskii <eliz@gnu.org>
1477
171eda53 1478 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1479
f5b416d2 14802010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1481
1482 * s/netbsd.h: If terminfo is found, use it in preference to
1483 termcap. (Bug#6190) [Backport from trunk]
1484
0416466c
EZ
14852010-05-19 Eli Zaretskii <eliz@gnu.org>
1486
11117830 1487 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1488
1489 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1490 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1491 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1492 and maxpos members instead of start.pos and end.pos, respectively.
1493
1494 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1495 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1496 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1497 (try_window_reusing_current_matrix, try_window_id):
1498 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1499 (init_from_display_pos, init_iterator): Use EMACS_INT for
1500 character and byte positions.
66a9f7f4 1501 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1502 arguments for minimum and maximum buffer positions seen by
1503 display_line for this row. Don't use iterator to find the
1504 position following the maximum one; instead, increment the
11117830
EZ
1505 position found by display_line directly. Fix logic; eol_pos
1506 should be tested before the rest. Handle the case of characters
1507 delivered from display vector (bug#6036). Fix tests related to
1508 it->method. Handle the truncated_on_right_p rows.
1509 (RECORD_MAX_MIN_POS): New macro.
1510 (display_line): Use it to record the minimum and maximum buffer
1511 positions for glyphs in the row being assembled. Record the
1512 position of the newline that terminates the line. If word wrap is
1513 in effect, restore minimum and maximum positions seen up to the
1514 wrap point, when iterator returns to it.
1515 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1516 row and cursor not already at point. Restore original pre-bidi
1517 code for unidirectional buffers.
d36fe237
EZ
1518
1519 * dispnew.c (increment_row_positions, check_matrix_invariants):
1520 Increment and check row->start.pos and row->end.pos, in addition
1521 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1522
11117830
EZ
1523 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1524 Display truncated_on_left_p and truncated_on_right_p flags.
1525 Formatting fixes.
1526 (pmtxrows): Display the ordinal number of each row. Don't display
1527 rows beyond the last one.
1528
1529 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1530 it is not copied by bidi_copy_it.
1531
6e83d800
EZ
15322010-05-22 Eli Zaretskii <eliz@gnu.org>
1533
1534 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1535 (Bug#6237)
1536
110683ad
CY
15372010-05-22 Chong Yidong <cyd@stupidchicken.com>
1538
1539 * image.c (Fimage_flush): Rename from image-refresh.
1540
98fe5161
CY
15412010-05-21 Chong Yidong <cyd@stupidchicken.com>
1542
1543 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1544 just one window.
1545
1546 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1547 (clear_image_cache): If the number of cached images is unusually
1548 large, decrease the cache eviction delay (Bug#6230).
1549
e8752c66
GM
15502010-05-21 Glenn Morris <rgm@gnu.org>
1551
66dbf213
GM
1552 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1553 Move these rules to ns.mk.
1554 * ns.mk: New file.
1555
04384b2d
GM
1556 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1557
e8752c66
GM
1558 * Makefile.in (CANNOT_DUMP): New, set by configure.
1559 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1560
2e2bbddb
JL
15612010-05-20 Juri Linkov <juri@jurta.org>
1562
1563 * fileio.c (Fdelete_file): Change interative spec to use
1564 `read-file-name' like in `find-file-read-args' where the default
1565 value is `default-directory' instead of `buffer-file-name'.
1566 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1567
31c4aaf6
KR
15682010-05-20 Kevin Ryde <user42@zip.com.au>
1569
1570 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1571 (Voverriding_terminal_local_map, Vsystem_key_alist)
1572 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1573
9d5cf9b6
GM
15742010-05-20 Glenn Morris <rgm@gnu.org>
1575
1576 * Makefile.in (DEPDIR): New constant.
1577 (DEPFLAGS): Set with configure, not cpp.
1578 (MKDEPDIR): New, set by configure.
1579 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1580 (clean): Use $DEPDIR.
1581 (deps_frag): Include from configure.
1582 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1583 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1584
ead6f8f5
EZ
1585 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1586 reallocation of the cache. (Bug#6210)
1587
7f34aec3
GM
15882010-05-19 Glenn Morris <rgm@gnu.org>
1589
d494e8f2
GM
1590 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1591
c1d0dcfd
GM
1592 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1593 (GNULIB_VAR): Remove.
1594 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1595
1596 * m/ibms390x.h (LINKER):
1597 * m/macppc.h (LINKER) [GNU_LINUX]:
1598 * s/aix4-2.h (ORDINARY_LINK):
1599 * s/cygwin.h (LINKER):
1600 * s/darwin.h (ORDINARY_LINK):
1601 * s/gnu.h (ORDINARY_LINK):
1602 * s/netbsd.h (LINKER):
1603 * s/usg5-4.h (ORDINARY_LINK):
1604 Move to configure.
1605
7f34aec3
GM
1606 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1607
754790b6
CY
16082010-05-18 Chong Yidong <cyd@stupidchicken.com>
1609
1610 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1611 prevent stack overflow if number of arguments is too large
1612 (Bug#6214).
1613
161e44d1
JB
16142010-05-18 Juanma Barranquero <lekktu@gmail.com>
1615
1616 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1617
be4ff9da
GM
16182010-05-18 Glenn Morris <rgm@gnu.org>
1619
9539dc5d
GM
1620 * s/gnu-linux.h: Combine two conditionals.
1621
1622 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1623 $(POST_ALLOC_OBJ).
1624
40dc6bf4
GM
1625 * Makefile.in (RALLOC_OBJ): New, set by configure.
1626 (rallocobj): Replace with the previous variable.
1627 (otherobj): Use $RALLOC_OBJ.
1628
1629 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1630 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1631
be4ff9da
GM
1632 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1633 (gmallocobj, vmlimitobj): Replace with previous two variables.
1634 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1635
16455a85
GM
16362010-05-17 Glenn Morris <rgm@gnu.org>
1637
1638 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1639 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1640
5fdb7468
GM
16412010-05-16 Glenn Morris <rgm@gnu.org>
1642
7ca1f3f9
GM
1643 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1644
7541dad5
GM
1645 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1646
da53fab9
GM
1647 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1648 trailing "/".
1649
b02a6645
GM
1650 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1651 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1652
8877ca0f
GM
1653 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1654 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1655 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1656 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1657 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1658
5fdb7468
GM
1659 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1660 Remove ${STARTFLAGS}, nothing ever sets it.
1661
95adb4b1
DN
16622010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1663
1664 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1665
676b6304
GM
16662010-05-16 Glenn Morris <rgm@gnu.org>
1667
9beab9ce
GM
1668 * Makefile.in (LIBX_BASE): Always define.
1669
8a95f0e7
GM
1670 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1671
676b6304
GM
1672 * Makefile.in (LIBXT): Always define.
1673
6e546d18
GM
16742010-05-15 Glenn Morris <rgm@gnu.org>
1675
4235ca47 1676 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1677
6e546d18
GM
1678 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1679 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1680
8c5ff6dd
KR
16812010-05-15 Ken Raeburn <raeburn@raeburn.org>
1682
560bb7ae 1683 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1684 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1685
8b4eb796
KR
1686 * emacs.c (main): Initialize initial-environment and
1687 process-environment before generating from env, not after.
1688
8c5ff6dd
KR
1689 Handle --version reasonably in CANNOT_DUMP configuration.
1690 * emacs.c (emacs_version, emacs_copyright): New string variables.
1691 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1692 (syms_of_emacs): Defvar them, and initialize them from the C
1693 string variables.
1694 (main): If initialization hasn't been done, print initial version
1695 info from the C strings, instead of starting an interactive session.
1696
dbd3f723
EZ
16972010-05-15 Eli Zaretskii <eliz@gnu.org>
1698
d20e1419
EZ
1699 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1700 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1701 (bidi_paragraph_init): Remove redundant assertion that we are at
1702 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1703
1704 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1705 (syms_of_xdisp): Defsubr it.
1706
d36fe237
EZ
1707 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1708
dbd3f723
EZ
1709 * Makefile.in: Fix MSDOS-related comments.
1710
02be533b
GM
17112010-05-15 Glenn Morris <rgm@gnu.org>
1712
1a82cca9
GM
1713 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1714 (really-lwlib, really-oldXMenu): Always define.
1715 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1716
3df7b338
GM
1717 * Makefile.in: Simplify cpp conditional.
1718
2b5f541b
GM
1719 * Makefile.in (${ns_appdir}): Simplify using umask.
1720
02be533b
GM
1721 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1722
4e2db1fe
SM
17232010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1724
1725 * eval.c (specbind): Remove left-over duplicate test.
1726 Disallow let-binding frame-local vars. Add comment.
1727
4b292a22
EZ
17282010-05-14 Eli Zaretskii <eliz@gnu.org>
1729
2fe72643 1730 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1731 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1732 (bidi_init_it): Call it.
1733 (bidi_cache_iterator_state): Enlarge the cache if needed.
1734
4e2db1fe 1735 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1736 bidi_get_next_char_visually. All callers changed.
1737
82ebc97b
KH
17382010-05-14 Kenichi Handa <handa@m17n.org>
1739
1740 * dispextern.h (struct composition_it): New member reversed_p.
1741
1742 * composite.c (composition_compute_stop_pos): Search backward if
1743 ENDPOS < CHARPOS.
1744 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1745 Set CMP_IT->reversed_p.
b4b6e17e 1746 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1747
4e2db1fe
SM
1748 * xdisp.c (set_iterator_to_next):
1749 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1750 scanning backward. Call composition_compute_stop_pos if scan
1751 direction is changed.
1752 (next_element_from_buffer): Call composition_compute_stop_pos with
1753 negative ENDPOS if we are scanning backward.
1754 (next_element_from_composition): Pay attention to
1755 IT->cmp_it.reversed_p.
1756
0e5d7800
KH
17572010-05-14 Kenichi Handa <handa@m17n.org>
1758
560bb7ae 1759 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1760
cb027b32
GM
17612010-05-14 Glenn Morris <rgm@gnu.org>
1762
177b0288
GM
1763 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1764
fbc00890
GM
1765 * Makefile.in (mktime, X11, register): Move undefs to configure.
1766
f14d1dfd
GM
1767 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1768 (MSDOS_X_OBJ): New variable.
1769 (MSDOS_SUPPORT_REAL): New constant.
1770 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1771 (obj): Use MSDOS_X_OBJ.
1772 (lisp): Use MSDOS_SUPPORT as a variable.
1773
11842bd8
GM
1774 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1775 (GPM_MOUSE_SUPPORT): Now it's a constant.
1776 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1777 not cpp.
1778
489d31a4 1779 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1780 (ns_appresdir): Remove, unused.
e20f1f07 1781
489d31a4
GM
1782 * Makefile.in (SHELL): Move outside cpp section.
1783
cb027b32
GM
1784 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1785
5a903aa9
GM
17862010-05-13 Glenn Morris <rgm@gnu.org>
1787
3369c79f
GM
1788 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1789 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1790
d5e982a6
GM
1791 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1792 HAVE_WINDOW_SYSTEM must be too.
1793
6192e163
GM
1794 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1795 (lisp): Remove WINNT_SUPPORT.
1796
472c5d6b
GM
1797 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1798 Let configure set these variables (to empty) in this case as well.
1799
0116466b
GM
1800 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1801 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1802
5a903aa9
GM
1803 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1804 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1805 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1806 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1807 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1808 the values output by configure.
5a903aa9
GM
1809 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1810
1a0d7c06
GM
18112010-05-12 Glenn Morris <rgm@gnu.org>
1812
b5457f14
GM
1813 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1814 (LINKER_WAS_SPECIFIED): Remove.
1815
1a0d7c06
GM
1816 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1817 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1818 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1819 * s/cygwin.h (LIB_GCC):
1820 * s/freebsd.h (LIB_GCC):
1821 * s/gnu-linux.h (LIB_GCC):
1822 * s/msdos.h (LIB_GCC):
1823 * s/netbsd.h (LIB_GCC):
1824 Move to configure.
1825
3ffd4615 18262010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1827
1828 * ftfont.c: Fix incorrect parentheses of #if condition for
1829 definining M17N_FLT_USE_NEW_FEATURE.
1830
acddf8ae
GM
18312010-05-11 Glenn Morris <rgm@gnu.org>
1832
1833 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1834 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1835
ae5e04fa
EZ
18362010-05-10 Eli Zaretskii <eliz@gnu.org>
1837
1838 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1839 unibyte buffers. See
1840 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1841
7490175b
GM
18422010-05-10 Glenn Morris <rgm@gnu.org>
1843
97efb629
GM
1844 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1845 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1846 (LIBES): Use LIBS_SYSTEM as a variable.
1847 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1848 * s/aix4-2.h (LIBS_SYSTEM):
1849 * s/freebsd.h (LIBS_SYSTEM):
1850 * s/hpux10-20.h (LIBS_SYSTEM):
1851 * s/sol2-6.h (LIBS_SYSTEM):
1852 * s/unixware.h (LIBS_SYSTEM):
1853 Move to configure.
1854
7490175b
GM
1855 * s/aix4-2.h (MAIL_USE_LOCKF):
1856 * s/bsd-common.h (MAIL_USE_FLOCK):
1857 * s/darwin.h (MAIL_USE_FLOCK):
1858 * s/gnu-linux.h (MAIL_USE_FLOCK):
1859 * s/irix6-5.h (MAIL_USE_FLOCK):
1860 * s/template.h (MAIL_USE_FLOCK):
1861 Move to configure.
1862
0235128c 18632010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1864
1865 * Version 23.2 released.
1866
0235128c 18672010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1868
1869 * composite.c (autocmp_chars): Save point as marker before calling
1870 auto-composition-function (Bug#5984).
1871
1872 * lisp.h (restore_point_unwind): Add prototype.
1873
1874 * fileio.c (restore_point_unwind): Remove static attribute.
1875
0235128c 18762010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1877
1878 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1879 new feature of libotf and m17n-flt.
0235128c
SM
1880 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1881 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1882 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1883 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1884 that OUT is NULL. Use OTF_drive_gsub_with_log and
1885 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1886 OTF_drive_gpos.
1887 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1888 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1889 Setup mflt_enable_new_feature and mflt_try_otf.
1890
4721152c
J
18912010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1892
1893 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1894
1895 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1896 box and toolbar (Bug #6139).
1897 (xg_create_tool_bar): Remove comment (Bug #6139).
1898 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1899 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1900
ee0a16cf
JB
19012010-05-08 Juanma Barranquero <lekktu@gmail.com>
1902
1903 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1904 Update dependencies.
1905
96d79611
EZ
19062010-05-08 Eli Zaretskii <eliz@gnu.org>
1907
1908 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1909 R2L lines.
1910
40c17879
GM
19112010-05-08 Glenn Morris <rgm@gnu.org>
1912
7b42b29f
GM
1913 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1914
40c17879
GM
1915 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1916 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1917 (termcapobj): Replace with TERMCAP_OBJ.
1918 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1919 (LIBES): Use LIBS_TERMCAP as a variable.
1920
1921 * s/freebsd.h (osreldate.h): No longer include, since this file
1922 does not use __FreeBSD_version any more.
1923
1924 * s/aix4-2.h (TERMINFO):
1925 * s/cygwin.h (TERMINFO):
1926 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1927 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1928 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1929 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1930 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1931 * s/irix6-5.h (TERMINFO):
1932 * s/netbsd.h (LIBS_TERMCAP):
1933 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1934 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1935 * s/usg5-4.h (TERMINFO):
1936 Move to configure.
1937
94b612ad
SM
19382010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1939
1940 * eval.c (unbind_to): Don't unbind a local binding into the global
1941 binding when the local binding disappeared. Inversely, don't unbind
1942 a global binding into a newly created local binding.
1943 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1944 can specify the frame to use, when applicable. Adjust callers.
1945
15e12598 19462010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1947 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1948
1949 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1950
f724825e
EZ
19512010-05-07 Eli Zaretskii <eliz@gnu.org>
1952
5cba3209
EZ
1953 * w32fns.c: Include w32.h.
1954 (Fw32_shell_execute): Decode the error message before passing it
1955 to `error'. (Bug#6126)
1956
d16bdfc3
EZ
1957 * msdos.c (dos_set_window_size):
1958 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1959 instead of `XSYMBOL (foo)->value'.
1960
59d93e87
EZ
19612010-05-07 Eli Zaretskii <eliz@gnu.org>
1962
9fdec8bc
EZ
1963 Fix the MS-DOS build, broken by autoconfiscation.
1964
1965 * Makefile.in: Don't use Make-style comments past the "start of
1966 cpp stuff" line.
1967 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1968
1969 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1970 edited directly by msdos/sed1v2.inp).
f724825e 1971
2f86b22b
GM
19722010-05-07 Glenn Morris <rgm@gnu.org>
1973
1974 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1975 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1976 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1977 move out of cpp section.
1978 * s/freebsd.h (LD_SWITCH_SYSTEM):
1979 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1980 * s/netbsd.h (LD_SWITCH_SYSTEM):
1981 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1982
49ebbd65
DN
19832010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1984
1985 Define LIB_STANDARD and START_FILES using autoconf.
1986 * s/usg5-4.h (LIB_STANDARD):
1987 * s/netbsd.h (START_FILES):
1988 * s/irix6-5.h (LIB_STANDARD):
1989 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1990 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1991 * s/freebsd.h (START_FILES):
1992 * s/darwin.h (START_FILES):
1993 * s/cygwin.h (START_FILES):
1994 * s/aix4-2.h (LIB_STANDARD):
1995 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1996 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1997 autoconf, not cpp.
1998
d43c06d6
DN
19992010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2000
28823648
DN
2001 Remove NEED_BSDTTY and NEED_UNISTD_H.
2002 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2003 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2004 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2005 <sys/ptyio.h> and <unistd.h>.
2006
aca00430
DN
2007 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2008
d43c06d6
DN
2009 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2010 * s/gnu.h (START_FILES): Remove empty definition.
2011
3e56b11d
JD
20122010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2013
2014 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2015
e3cf0cde
GM
20162010-05-06 Glenn Morris <rgm@gnu.org>
2017
2018 * Makefile.in (CPP, LN_S): Remove unused variables.
2019
774b9a60
SM
20202010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2021
2022 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2023
4ab92842
LM
20242010-05-05 Lawrence Mitchell <wence@gmx.li>
2025
2026 * m/sparc.h: Fix typo in earlier change.
2027
178f2507
SM
20282010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2029
2030 Misc tweaks.
2031 * eval.c (Fdefvaralias): Remove unintended nested if.
2032 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2033
80f00217 20342010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2035
2036 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2037
ef03a4e6
DN
20382010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2039
58eb6cf0
DN
2040 Remove BSD_PGRPS.
2041 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2042 * s/gnu-linux.h (BSD_PGRPS): Remove.
2043 * term.c (dissociate_if_controlling_tty):
2044 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2045 (init_sys_modes, reset_sys_modes):
2046 * emacs.c (main):
2047 * callproc.c (Fcall_process, child_setup): Remove code depending
2048 on BSD_PGRPS.
2049
ef03a4e6
DN
2050 Remove POSIX_SIGNALS.
2051 * s/usg5-4.h (POSIX_SIGNALS):
2052 * s/netbsd.h (POSIX_SIGNALS):
2053 * s/msdos.h (POSIX_SIGNALS):
2054 * s/ms-w32.h (POSIX_SIGNALS):
2055 * s/hpux11.h (POSIX_SIGNALS):
2056 * s/gnu.h (POSIX_SIGNALS):
2057 * s/gnu-linux.h (POSIX_SIGNALS):
2058 * s/freebsd.h (POSIX_SIGNALS):
2059 * s/darwin.h (POSIX_SIGNALS):
2060 * s/cygwin.h (POSIX_SIGNALS):
2061 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2062 * s/unixware.h:
2063 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2064 * process.c (create_process):
2065 * syssignal.h:
2066 * sysdep.c (wait_for_termination, init_signals):
2067 * process.c (create_process):
2068 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2069 remove all code that assumes the contrary.
2070
49628785
GM
20712010-05-04 Glenn Morris <rgm@gnu.org>
2072
27a2cdfc
GM
2073 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2074 variable.
2075 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2076 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2077 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2078 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2079 LD_SWITCH_SYSTEM_tmp.
2080 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2081 New variables, set by configure.
2082
eb21eab5
GM
2083 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2084 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2085 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2086 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2087 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2088
49628785
GM
2089 * s/aix4-2.h (C_SWITCH_SYSTEM):
2090 * m/alpha.h (C_SWITCH_MACHINE):
2091 Move to configure.in.
2092 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2093 New variables, set by configure.
2094 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2095 $c_switch_machine and $c_switch_system.
2096
7dff330b
DN
20972010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2098
2099 * s/hpux10-20.h (LIB_STANDARD): New definition.
2100 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2101 on it, not used anymore.
2102
53967e09
CY
21032010-05-03 Chong Yidong <cyd@stupidchicken.com>
2104
2105 * eval.c (internal_condition_case_n): Rename from
2106 internal_condition_case_2.
2107 (internal_condition_case_2): New function.
2108
2109 * xdisp.c (safe_call): Use internal_condition_case_n.
2110
2111 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2112 (internal_delete_file, Frename_file): Callers changed.
2113
2114 * buffer.c (Fkill_buffer):
2115 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2116
2117 * lisp.h: Update prototypes.
2118
3dee6fdb
GM
21192010-05-03 Glenn Morris <rgm@gnu.org>
2120
2121 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2122 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2123 (LIBXT): Set with configure, not cpp.
2124 (LIBX): Remove.
2125 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2126
a101e0fb
DN
21272010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2128
2129 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2130 The FreeBSD is not needed, the default works, Solaris version is
2131 not needed, and the remaining case is not supported by configure.
2132
f63d0028
JD
21332010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2134
2135 * xsmfns.c (CHDIR_OPT): New define.
2136 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2137 restarting emacs.
2138
2139 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2140 shut_down_emacs.
2141
2142 * emacs.c (USAGE1): Mention --chdir.
2143 (main): Handle --chdir.
2144 (standard_args): Add --chdir.
2145 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2146 #5552).
2147
e4814a9f
DN
21482010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2149
cd03c74a
DN
2150 Remove LD_SWITCH_MACHINE.
2151 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2152 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2153
c3a398a1
DN
2154 Clean up IRIX code.
2155 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2156 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2157
87e7285c
DN
2158 Clean up AIX code.
2159 * m/ibmrs6000.inp: Remove file, unused.
2160 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2161 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2162 definition ...
2163 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2164
80f00217
JB
2165 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2166 unused.
e4814a9f 2167
59ca28de
EZ
21682010-05-01 Eli Zaretskii <eliz@gnu.org>
2169
197daef4
EZ
2170 Emulate POSIX_SIGNALS on MS-Windows.
2171
2172 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2173 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2174
2175 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2176 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2177 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2178
80f00217
JB
2179 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2180 New stubs.
197daef4 2181
af7c7572
EZ
2182 Miscellaneous fixes of bidi display.
2183
59ca28de
EZ
2184 * xdisp.c (find_row_end): New function, refactored from display_line.
2185 (display_line): Use it.
017ea819
EZ
2186 (extend_face_to_end_of_line): In almost-filled rows, extend only
2187 if the row is R2L and not continued.
166e930d 2188 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2189 Preserve overlay and string info in row->end.
166e930d
EZ
2190 (insert_left_trunc_glyphs): Support addition of left truncation
2191 glyphs to R2L rows.
b47e0dcf 2192 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2193 glyph between adjacent windows. Fix a crash when a display string
2194 is continued to the next line. Don't return zero if cursor was
2195 found by `cursor' property of a display string.
b47e0dcf
EZ
2196 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2197 test for that explicitly.
59ca28de 2198
7acac9f4
GM
21992010-05-01 Glenn Morris <rgm@gnu.org>
2200
2201 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2202 for clarity.
2203 (OTHER_OBJ): Remove.
2204 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2205 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2206
45841e65
KK
22072010-05-01 Karel Klíč <kklic@redhat.com>
2208
2209 * fileio.c (Ffile_selinux_context): Context functions may return null.
2210
afc61943
DN
22112010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2212
80f00217 2213 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2214
5a1bb006
GM
22152010-04-30 Glenn Morris <rgm@gnu.org>
2216
2217 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2218 (OTHER_OBJ): Define as a separate variable, for clarity.
2219
210af043
J
22202010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2221
2222 * xsettings.c: include limits.h and update file comment.
2223
0a7df391
GM
22242010-04-30 Glenn Morris <rgm@gnu.org>
2225
d5096f16
GM
2226 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2227 Set with configure, not cpp.
2228 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2229
7eb1ac33
GM
2230 * Makefile.in (mallocobj): Remove.
2231 (otherobj): Simplify using @OTHER_OBJ@.
2232
517d086b
GM
2233 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2234 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2235 Don't bother making nsgui.h dependency platform-specific.
2236
0a7df391
GM
2237 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2238
d6d23852
SM
22392010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2240
d2630aef
SM
2241 * process.c (read_process_output, exec_sentinel): Don't burp if the
2242 sentinel/filter kills the current buffer (bug#6060).
2243
f9dddf52 2244 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2245 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2246 Remove unused var `args'.
2247 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2248 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2249 * doc.c (store_function_docstring): Use XSETCAR.
2250
f1e3642a
GM
22512010-04-28 Glenn Morris <rgm@gnu.org>
2252
faf535f8
GM
2253 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2254 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2255
c40f9449
GM
2256 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2257
658f86ca
GM
2258 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2259 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2260
bc0b5f61
GM
2261 * Makefile.in (FONT_OBJ): New, set by configure.
2262 (FONT_DRIVERS): Use $FONT_OBJ.
2263
294c50a0
GM
2264 * Makefile.in (LIBXMU): Set with configure, not cpp.
2265 * s/aix4-2.h (LIBXMU):
2266 * s/hpux10-20.h (LIBXMU):
2267 Remove definition, now set in configure.
2268
e6ec4e99
GM
2269 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2270
f1e3642a
GM
2271 * m/amdx86-64.h [i386]: Move this test to configure.in.
2272
c6ea2936
GM
22732010-04-27 Glenn Morris <rgm@gnu.org>
2274
8fdac2c3
GM
2275 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2276 * s/unixware.h (NEED_LIBW): Remove definition.
2277
986fb647
GM
2278 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2279 (TOOLKIT_LIBW): New, set by configure.
2280 (@X_TOOLKIT_TYPE@): No longer define it.
2281
c6ea2936
GM
2282 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2283 (MOTIF_LIBW): Set with configure, not cpp.
2284 * s/aix4-2.h (LIB_MOTIF):
2285 * s/gnu-linux.h (LIB_MOTIF):
2286 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2287
aaa36002
DN
22882010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2289
2290 Reduce CPP usage.
2291 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2292 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2293 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2294 definitions and undefs. Inline definitions in the only user.
2295 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2296
b678dd8b
GM
22972010-04-27 Glenn Morris <rgm@gnu.org>
2298
76cda504
GM
2299 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2300 since the defaults (set by the system file) are fine in most cases.
2301 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2302 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2303 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2304 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2305 Remove definitions, since they are set correctly in s/gnu-linux.h.
2306 * s/freebsd.h (START_FILES, LIB_STANDARD):
2307 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2308 * s/hpux10-20.h (START_FILES):
2309 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2310 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2311
b678dd8b
GM
2312 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2313 (MOTIF_LIBW): Use $LIBXP.
2314 (otherobj): Use $WIDGET_OBJ.
2315
9452ded1
DN
23162010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2317
7e10844c
DN
2318 * Makefile.in (LIBS_MACHINE): Remove, unused.
2319
9452ded1
DN
2320 Use autoconf instead of cpp for LIB_MATH.
2321 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2322 * s/cygwin.h (LIB_MATH): Likewise.
2323 * Makefile.in (LIB_MATH): Do not define with cpp.
2324 (LIBES): Use autoconf for LIB_MATH.
2325
fcebfc6a
KH
23262010-04-26 Kenichi Handa <handa@m17n.org>
2327
2328 * composite.c (Ffind_composition_internal): Fix the return value
2329 for an automatic composition.
2330
39e2ad1b
DN
23312010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2332
2333 Remove all NO_ARG_ARRAY uses.
2334 * fns.c (concat2, concat3, nconc2):
2335 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2336 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2337 * m/xtensa.h (NO_ARG_ARRAY):
2338 * m/template.h (NO_ARG_ARRAY):
2339 * m/sparc.h (NO_ARG_ARRAY):
2340 * m/sh3.h (NO_ARG_ARRAY):
2341 * m/mips.h (NO_ARG_ARRAY):
2342 * m/macppc.h (NO_ARG_ARRAY):
2343 * m/iris4d.h (NO_ARG_ARRAY):
2344 * m/intel386.h (NO_ARG_ARRAY):
2345 * m/ibms390x.h (NO_ARG_ARRAY):
2346 * m/ibms390.h (NO_ARG_ARRAY):
2347 * m/ibmrs6000.h (NO_ARG_ARRAY):
2348 * m/ia64.h (NO_ARG_ARRAY):
2349 * m/hp800.h (NO_ARG_ARRAY):
2350 * m/arm.h (NO_ARG_ARRAY):
2351 * m/amdx86-64.h (NO_ARG_ARRAY):
2352 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2353
adf4f59c
EZ
23542010-04-25 Eli Zaretskii <eliz@gnu.org>
2355
6bdf5d65
EZ
2356 * xdisp.c (display_line): Don't assume 2nd call to
2357 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2358 (iterate_out_of_display_property): New function, body from pop_it.
2359 (pop_it): Use it.
adf4f59c 2360
dfbbda83
GM
23612010-04-24 Glenn Morris <rgm@gnu.org>
2362
2363 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2364 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2365 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2366 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2367
2d4018aa
EZ
23682010-04-24 Eli Zaretskii <eliz@gnu.org>
2369
a49884a6
EZ
2370 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2371 use `get_next_display_element' and `set_iterator_to_next' to
2372 advance to the next character, when looking for the character that
2373 begins the next row.
2374
76db6fcc 2375 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2376 definition of "struct Lisp_Symbol".
2377
70eab5c1
GM
23782010-04-24 Glenn Morris <rgm@gnu.org>
2379
2380 * Makefile.in (CRT_DIR): New variable, set by configure.
2381 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2382 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2383
1ad4cc3d
DN
23842010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2385
e769f484
DN
2386 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2387
4196ff33
DN
2388 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2389
879b0ee4
DN
2390 Remove redundant flags.
2391 * s/freebsd.h (C_SWITCH_SYSTEM):
2392 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2393 * s/netbsd.h (C_SWITCH_SYSTEM):
2394 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2395 of these.
2396
03cbbcb8
DN
2397 Simplify m/intel386.h.
2398 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2399 user: ecrt0.c.
2400 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2401 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2402 the only user: s/unixware.h.
2403 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2404 from m/intel386.h.
2405 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2406 moved here from m/intel386.h.
2407
1ad4cc3d
DN
2408 * m/mips.h: Remove #if 0 code.
2409
8785b888
EZ
24102010-04-23 Eli Zaretskii <eliz@gnu.org>
2411
728588cc
EZ
2412 Fix display of composed characters from L2R scripts in bidi buffers.
2413 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2414 After advancing IT past the composition, resync the bidi iterator
2415 with IT's position. (Bug#5977)
2416
a63f80b4
DN
24172010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2418
2419 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2420 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2421
ff5dec5c
SM
24222010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2423
2424 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2425
8785b888
EZ
24262010-04-23 Eli Zaretskii <eliz@gnu.org>
2427
58ccf243 2428 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2429 * xdisp.c (pop_it): When the stack is popped after displaying
2430 from a string, bidi-iterate to exit from the text portion covered
2431 by the `display' property or overlay. (Bug#5988, bug#5920)
2432
feeb1604
DN
24332010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2434
8e324eb6
DN
2435 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2436 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2437
809fcaba
DN
2438 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2439 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2440
ed710380
DN
2441 Simplify STARTFILES definition.
2442 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2443 relying on Makefile.in to define it.
2444 * s/cygwin.h (START_FILES): Likewise.
2445 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2446
feeb1604
DN
2447 Clean up Solaris code.
2448 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2449 (LIB_MOTIF): Remove, configure takes care of this.
2450 (NOT_USING_MOTIF): Remove, unused.
2451 * xrdb.c: Remove #if 0-ed #include.
2452 (SYSV): Remove conditional for old SysV.
2453 * sysdep.c (closedir): Remove conditional code for Solaris,
2454 Solaris has closedir.
2455
a0d0b563
JD
24562010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2457
2458 * xsettings.c (read_and_apply_settings): Check if current_font is
2459 NULL before strcmp (Bug#6001).
2460
56bae7c7
DN
24612010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2462
2463 Clean up HP-UX files.
2464 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2465 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2466 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2467 * s/hpux10-20.h: ... to the only user, here.
2468
372b7a95
EZ
24692010-04-21 Eli Zaretskii <eliz@gnu.org>
2470
2471 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2472 use buffer-local values of paragraph-start and paragraph-separate.
2473 <paragraph_start_re, paragraph_separate_re>: Rename from
2474 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2475 (Bug#5992)
2476
f904c0f9
JD
24772010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2478
2479 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2480 current_tool_bar_style are new.
2481 (store_config_changed_event): Rename from store_font_changed_event.
2482 (XSETTINGS_TOOL_BAR_STYLE): New define.
2483 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2484 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2485 HAVE_XFT.
2486 (something_changedCB): store_font_changed_event is now
2487 store_config_changed_event
2488 (parse_settings): Rename from parse_xft_settings. Read
2489 non-xft xsettings outside #ifdef HAVE_XFT.
2490 (read_settings): Renamed from read_xft_settings.
2491 (apply_xft_settings): Take current settings as parameter. Do not
2492 call read_(xft)_settings.
2493 (read_and_apply_settings): New function.
2494 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2495 read_and_apply_settings if there are settings to be read.
2496 (init_xsettings): Renamed from init_xfd_settings.
2497 Call read_and_apply_settings unconditionally.
2498 (xsettings_initialize): Call init_xsettings.
2499 (Ftool_bar_get_system_style): New function.
2500 (syms_of_xsettings): Define Qmonospace_font_name and
2501 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2502 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2503 dynamic-setting.
31a01b90 2504 Move misplaced HAVE_GCONF
f904c0f9
JD
2505
2506 * xsettings.h (Ftool_bar_get_system_style): Declare.
2507
2508 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2509 Qtext, Qboth, Qboth_horiz are new.
2510 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2511 Vtool_bar_style, tool_bar_max_label_size.
2512
2513 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2514
2515 * keyboard.c: QClabel is new.
2516 (parse_tool_bar_item): Take out QClabel from tool bar items.
2517 Try to construct a label if ther is no QClabel.
2518 (syms_of_keyboard): Intern :label as QClabel.
2519
2520 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2521 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2522 New.
2523
2524 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2525 dynamic-setting.el.
2526
2527 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2528 (xg_make_tool_item, xg_show_toolbar_item): New function.
2529 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2530 Call xg_make_tool_item to make a tool bar item.
2531 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2532
2533 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2534 into account for toolbars.
2535
c632dfda
JD
25362010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2537
2538 * data.c (make_blv): Declarations before code (Bug#5993).
2539
10efe302
GM
25402010-04-21 Glenn Morris <rgm@gnu.org>
2541
2542 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2543 Define using autoconf, not cpp.
2544 (LIBXSM): New variable, set by autoconf.
2545 (LIBXT): Use $LIBXSM.
2546
4285ac5a
DN
25472010-04-21 Dan Nicolaescu <local_user@dannlt>
2548
3ec759e7
DN
2549 Remove NOMULTIPLEJOBS, unused.
2550 * s/template.h (NOMULTIPLEJOBS):
2551 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2552
4285ac5a
DN
2553 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2554 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2555 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2556 detects -znocombreloc and passes it to the linker
2557 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2558
2807228d
GM
25592010-04-21 Glenn Morris <rgm@gnu.org>
2560
2561 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2562
574c05e2
KK
25632010-04-21 Karel Klíč <kklic@redhat.com>
2564
2565 * Makefile.in (LIBSELINUX_LIBS): New.
2566 (LIBES): Add $LIBSELINUX_LIBS.
2567 * eval.c, lisp.h (call7): New function.
2568 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2569 (Ffile_selinux_context, Fset_file_selinux_context):
2570 New functions.
2571 (Fcopy_file): New parameter preserve-selinux-context.
2572 (Frename_file): Preserve selinux context when renaming by copy-file.
2573
91eac4bb 25742010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2575 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2576
50426a04
JB
2577 Don't depend on cm.c or termcap.c on Windows, use stubs.
2578 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2579 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2580 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2581 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2582 (sys_tputs, sys_tgetstr): New stubs.
2583 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2584 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2585
938efb77
JB
25862010-04-20 Juanma Barranquero <lekktu@gmail.com>
2587
2588 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2589
b4bf28b7
SM
25902010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2591
8b1e1112
SM
2592 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2593 Just signal a warning rather than an error when inside a let.
2594 (Fmake_variable_frame_local): Add the same test.
2595
933ac235
SM
2596 * font.c (syms_of_font): Make the style table vars read-only.
2597
b4bf28b7
SM
2598 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2599 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2600
2601 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2602
93d68d0c
EZ
26032010-04-20 Eli Zaretskii <eliz@gnu.org>
2604
2605 Fix R2L paragraph display on TTY.
2606
2607 * xdisp.c (unproduce_glyphs): New function.
2608 (display_line): Use it when produced glyphs are discarded from R2L
2609 glyph rows.
2610 (append_composite_glyph): In R2L rows, prepend the glyph rather
2611 than appending it.
2612
2613 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2614 rather than append it. Set up the resolved_level and bidi_type
2615 attributes of the appended glyph.
283ccc18
EZ
2616 (produce_special_glyphs): Mirror the backslash continuation
2617 character in R2L lines.
93d68d0c 2618
283ccc18 2619 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2620
283ccc18
EZ
2621 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2622 append_stretch_glyph.
2623 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2624 off-by-one error in computing x at end of text in the row.
2625 (append_stretch_glyph): In reversed row, prepend the glyph rather
2626 than append it. Set resolved_level and bidi_type of the glyph.
2627 (extend_face_to_end_of_line): If the row is reversed, prepend a
2628 stretch glyph whose width is such that the rightmost glyph will be
2629 drawn at the right margin of the window. Fix off-by-one error on
2630 TTY frames in testing whether a line needs face extension. Fix
2631 face extension at ZV. If this is the last glyph row, use
2632 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2633 region face.
2634 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2635 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2636 row->continuation_lines_width.
283ccc18
EZ
2637 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2638 are at ZV. Fixes a crash when reseated to ZV by
2639 try_window_reusing_current_matrix.
45903529
EZ
2640 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2641 which happens with R2L glyph rows. Fixes a crash when inserting a
2642 character at end of an R2L line.
283ccc18
EZ
2643 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2644 treat them as having zero-width characters. Improve comments.
2645 Don't reverse pos_before and pos_after for reversed glyph rows.
2646 Set cursor.x to negative value when the cursor might be on the
2647 left fringe.
2648 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2649 left fringe, not the right one.
f951a506
EZ
2650 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2651 (erase_phys_cursor): For reversed cursor_row, support cursor on
2652 the left fringe.
2653
283ccc18
EZ
2654 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2655 of continuation indicators on the fringes.
2656 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2657 left fringe.
2658
f951a506
EZ
2659 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2660 draw cursor on the left fringe.
2661
2662 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2663 cursor on the left fringe.
2664
f951a506
EZ
2665 * dispnew.c (update_text_area): Handle reversed desired rows when
2666 the cursor is on the left fringe.
2667 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2668 below, not by 0, for when the cursor is on the left fringe.
2669
3bb49aaf
JD
26702010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2671
2672 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2673 widget is a scrollbar.
2674
c0be27fd
KH
26752010-04-20 Kenichi Handa <handa@m17n.org>
2676
2677 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2678 only when the arg CHARSET_LIST is nil.
2679
ce5b453a
SM
26802010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2681
2682 Make variable forwarding explicit rather the using special values.
2683 Basically, this makes the structure of buffer-local values and object
2684 forwarding explicit in the type of Lisp_Symbols rather than use
2685 special Lisp_Objects for that. This tends to lead to slightly more
2686 verbose code, but is more C-like, simpler, and makes it easier to make
2687 sure we handled all cases, among other things by letting the compiler
2688 help us check it.
2689 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2690 Removing forwarding objects.
2691 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2692 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2693 explicit rather than hiding them inside Lisp_Object "values".
2694 (XFWDTYPE): New macro.
2695 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2696 (XBUFFER_LOCAL_VALUE): Remove.
2697 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2698 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2699 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2700 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2701 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2702 Remove the Lisp_Misc_* header.
2703 (struct Lisp_Buffer_Local_Value): Redefine.
2704 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2705 (struct Lisp_Misc_Any): Add filler to get the right size.
2706 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2707 Lisp_Intfwd.
2708 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2709 (DEFVAR_KBOARD): Allocate a forwarding object.
2710 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2711 (let_shadows_global_binding_p): New function.
2712 (union Lisp_Val_Fwd): New type.
2713 (make_blv): New function.
2714 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2715 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2716 (swap_in_symval_forwarding, find_symbol_value, Fset)
2717 (let_shadows_buffer_binding_p, set_internal, default_value)
2718 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2719 (Fkill_local_variable, Fmake_variable_frame_local)
2720 (Flocal_variable_p, Flocal_variable_if_set_p)
2721 (Fvariable_binding_locus):
2722 * xdisp.c (select_frame_for_redisplay):
2723 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2724 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2725 * frame.c (store_frame_param):
2726 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2727 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2728 value structure.
2729 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2730 (clone_per_buffer_values): Only adjust markers into the current buffer.
2731 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2732 (Fbuffer_local_value, set_buffer_internal_1)
2733 (swap_out_buffer_local_variables):
2734 Adapt to the new symbol value structure.
2735 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2736 (defvar_per_buffer): Take a new arg for the fwd object.
2737 (buffer_lisp_local_variables): Return a proper alist (different fix
2738 for bug#4138).
2739 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2740 (Fgarbage_collect): Don't handle buffer_defaults specially.
2741 (mark_object): Handle new symbol value structure rather than the old
2742 special Lisp_Misc_* objects.
2743 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2744 * term.c (set_tty_color_mode):
2745 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2746 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2747 a buffer_local_flags.
2748 * print.c (print_object): Get rid of impossible forwarding objects.
2749
fd3998ff
EZ
27502010-04-19 Eli Zaretskii <eliz@gnu.org>
2751
2752 * bidi.c (bidi_get_type, bidi_get_category)
2753 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2754 (bidi_type_of_next_char, bidi_level_of_next_char):
2755 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2756
e42cd1a7
JB
27572010-04-19 Juanma Barranquero <lekktu@gmail.com>
2758
2759 * dired.c (Ffile_attributes): Fix typo in docstring.
2760
6e104790 27612010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2762
2763 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2764 NSInteger (Bug#5811).
2765
6e104790 27662010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2767
2768 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2769 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2770
6e104790 27712010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2772
2773 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2774
6e104790
SM
27752010-04-19 Chong Yidong <cyd@stupidchicken.com>
2776
2777 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2778 terminal frames (Bug#5837).
2779
37dcfea0
EZ
27802010-04-19 Eli Zaretskii <eliz@gnu.org>
2781
d1da276f
EZ
2782 * .gdbinit (xsubchartable): New command.
2783
37dcfea0
EZ
27842010-04-19 Eli Zaretskii <eliz@gnu.org>
2785
2786 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2787 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2788 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2789 and
2790 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2791
e9515805
SM
27922010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2793
2794 * alloc.c (Fpurecopy): Hash-cons if requested.
2795 (syms_of_alloc): Update purify-flag docstring.
2796
22aa44a8
JD
27972010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2798
2799 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2800 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2801
ebb5722e
EZ
28022010-04-17 Eli Zaretskii <eliz@gnu.org>
2803
2804 Fix a crash when an NSM character is inserted at BEGV.
2805
2806 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2807 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2808 NEUTRAL_B or UNKNOWN_BT.
2809
0f4442ef
EZ
28102010-04-16 Eli Zaretskii <eliz@gnu.org>
2811
2812 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2813 other rows with cursor unless they are different from this row and
2814 this row is part of a continued line. (Bug#5943)
2815
7d4e45f8
DN
28162010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2817
2818 * s/freebsd.h: Restore osreldate.h include.
2819 Suggested by Naohiro Aota.
2820
5ba5ec85
J
28212010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2822
2823 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2824
20af301d
CY
28252010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2826
2827 * s/cygwin.h: Avoid linking against static libgcc.
2828
a4b000fb
JL
28292010-04-15 Juri Linkov <juri@jurta.org>
2830
2831 * window.c: Add Qscroll_command.
2832 Remove Vscroll_preserve_screen_position_commands.
2833 (window_scroll_pixel_based, window_scroll_line_based): Check the
2834 `scroll-command' property on the last command instead of searching
2835 the last command in Vscroll_preserve_screen_position_commands.
2836 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2837 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2838 (scroll-preserve-screen-position): Doc fix.
2839 (Vscroll_preserve_screen_position_commands): Remove variable.
2840
bc319ba4
DN
28412010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2842
6bb24457
DN
2843 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2844
19d4c244
DN
28452010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2846
2847 Reduce cpp use in Makefile.in.
2848 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2849 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2850 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2851 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2852 (CRT0_COMPILE): Remove, inline it in the only user.
2853
32129746
JL
28542010-04-14 Juri Linkov <juri@jurta.org>
2855
2856 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2857 `scroll-up-command' and `M-v' from `scroll-down' to
2858 `scroll-down-command'.
2859
9013a7f8
JL
28602010-04-14 Juri Linkov <juri@jurta.org>
2861
2862 * window.c (Vscroll_preserve_screen_position_commands): New variable
2863 with the default value as the list of Qscroll_down and Qscroll_up.
2864 (window_scroll_pixel_based, window_scroll_line_based): Search the
2865 last command in the list Vscroll_preserve_screen_position_commands
2866 instead of comparing with Qscroll_up and Qscroll_down.
2867
4bef8d26
JD
28682010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2869
92848133
JD
2870 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2871 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2872 does that.
2873
4bef8d26
JD
2874 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2875 to zero.
2876
58b963f7
SM
28772010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2878
84164a0d
SM
2879 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2880
2b0a91e7
SM
2881 Try to solve the problem of spurious EOF chars in long lines of text
2882 sent to interactive subprocesses.
2883 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2884 (system_process_attributes): Remove unused var `ttotal'.
2885 * process.c (send_process): Don't bother breaking long line with EOF
2886 chars when talking to ttys any more.
2887 (wait_reading_process_output): Output a warning when called in such
2888 a way that it could block without being interruptible.
2889
58b963f7
SM
2890 Try to detect file modification within the same second.
2891 * buffer.h (struct buffer): New field modtime_size.
2892 * buffer.c (reset_buffer): Initialize it.
2893 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2894 (Fverify_visited_file_modtime): Check it.
2895 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2896 (Fset_visited_file_modtime): Set (or clear) it.
2897
01f5787b
SM
28982010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2899
2900 * process.c (status_notify): Remove unused var `ro'.
2901
83725342
JD
29022010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2903
2904 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2905 more than one visual (Bug#5938).
2906
b9465836
DN
29072010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2908
50426a04
JB
2909 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2910 Undefine.
b9465836 2911
8d9c8ece
DN
29122010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2913
b1f52161
DN
2914 Remove C_SWITCH_SYSTEM_TEMACS.
2915 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2916 (malloc, realloc, free): Use emacs, not temacs for conditional
2917 definition.
2918
2919 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2920 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2921
8d9c8ece
DN
2922 Use autoconf, not cpp for some variables.
2923 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2924 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2925 (ALL_CFLAGS): Use them as make variables.
2926 (really-lwlib, really-oldXMenu): Do not pass them.
2927
1ecb2d3f
JD
29282010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2929
2930 * xmenu.c (apply_systemfont_to_dialog): New.
2931 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2932
3a4fa2f2
SM
29332010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2934
97e53006
SM
2935 * process.c (exec_sentinel): Preserve current-buffer.
2936
3a4fa2f2
SM
2937 * process.c (read_process_output): Move the save-current-buffer to
2938 apply to both the filter and the non-filter branches.
2939
88df7221
DN
29402010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2941
2942 * s/msdos.h (UNEXEC): New definition.
2943
5634ff85
YM
29442010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2945
6eff5c3d
YM
2946 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2947 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2948
2949 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2950 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2951 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2952 TRY_WINDOW_CHECK_MARGINS.
2953
2954 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2955 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2956 width only when it is for padding.
5634ff85 2957
b13aef54
J
29582010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2959
2960 * xfns.c (Fx_show_tip): Call try_window in a loop until
2961 fonts_changed_p is zero (Bug#2423).
2962
21d28484
EZ
29632010-04-08 Eli Zaretskii <eliz@gnu.org>
2964
2965 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2966 the end of TEXT_AREA. (Bug#5856)
2967
0269ef77
JD
29682010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2969
2970 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2971 HAVE_GCONF.
2972
5930fe97
EZ
29732010-04-08 Eli Zaretskii <eliz@gnu.org>
2974
2975 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2976 prev.orig_type, for resolving type of NSM. (Bug#5858)
2977
99852628
JD
29782010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2979
2980 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2981 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2982 in current_font.
2983 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2984 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2985 New functions.
2986 (syms_of_xsettings): Initialize current_font.
2987 defsubr Sfont_get_system_normal_font.
99852628
JD
2988
2989 * xsettings.h (Ffont_get_system_normal_font,
2990 xsettings_get_system_normal_font): Declare.
2991
2992 * xfns.c (extern xlwmenu_default_font): Remove.
2993 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2994 to xlwmenu.c.
2995
2996 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2997 menu items in UTF-8.
2998
2999 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3000 (apply_systemfont_to_menu): New function.
3001 (set_frame_menubar, create_and_show_popup_menu): Call
3002 apply_systemfont_to_menu.
3003
7fc874c4
J
30042010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3005
3006 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3007 FRAME_LINE_TO_PIXEL_Y.
3008
3009 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3010 pixelwidth/height.
3011
863bf481
DN
30122010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3013
5e5a3b92
DN
3014 Simplify code for HP machines.
3015 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3016 for GNU_LINUX, not needed.
3017 (UNEXEC, NEED_BSDTTY): Move definitions...
3018 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3019
863bf481
DN
3020 * m/iris4d.h (UNEXEC): Move definition ...
3021 * s/irix6-5.h (UNEXEC): ... here.
3022
3e6bec3b
JD
30232010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3024
3025 * xfns.c (set_machine_and_pid_properties): New function.
3026 (Fx_create_frame): Call set_machine_and_pid_properties.
3027
2912322b
SM
30282010-04-03 Eli Zaretskii <eliz@gnu.org>
3029
1502b819
EZ
3030 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3031 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3032 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3033
2912322b
SM
3034 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3035 in this function. (Bug#5703)
3036
30372010-04-03 Chong Yidong <cyd@stupidchicken.com>
3038
3039 * nsterm.h: Fix last change.
3040
c435b432
DN
30412010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3042
a568f507
DN
3043 * m/intel386.h (NO_REMAP): Move definition ...
3044 * s/msdos.h (NO_REMAP): ... here.
3045
4cd9f6c2
DN
3046 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3047
c435b432
DN
3048 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3049 used on those platforms.
3050
42a2c622
DN
30512010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3052
3053 Remove extern errno declarations.
3054 * xterm.c:
3055 * xrdb.c:
3056 * w32term.c:
3057 * unexec.c:
3058 * unexaix.c:
3059 * sysdep.c:
3060 * process.c:
3061 * lread.c:
3062 * keyboard.c:
3063 * floatfns.c:
3064 * filelock.c:
3065 * fileio.c:
3066 * emacs.c (main):
3067 * ecrt0.c:
3068 * dispnew.c:
3069 * callproc.c:
3070 * buffer.c: Remove errno extern declarations.
3071 * s/netbsd.h (NEED_ERRNO): Remove.
3072
8224f93d
DN
30732010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3074
3075 Remove all uses of LIBX11_SYSTEM.
3076 * Makefile.in (LIBX11_SYSTEM): Remove.
3077 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3078 instead.
3079
814062c7
EZ
30802010-04-01 Eli Zaretskii <eliz@gnu.org>
3081
ed68db4d
EZ
3082 Remove support for DJGPP v1.x (bug#5813).
3083
3084 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3085 * s/msdos.h:
3086 * unexec.c (make_hdr, copy_text_and_data):
3087 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3088 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3089 (IT_set_terminal_modes, __write, _rename, gethostname)
3090 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3091 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3092 the value of __DJGPP__.
ed68db4d
EZ
3093 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3094 compatibility code.
8224f93d
DN
3095 * lread.c:
3096 * gmalloc.c (memalign):
3097 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3098 * emacs.c (main):
3099 * dosfns.c (init_dosfns):
ed68db4d
EZ
3100 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3101
52f4d8d5
EZ
31022010-04-01 Eli Zaretskii <eliz@gnu.org>
3103
814062c7
EZ
3104 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3105 string with `cursor' property comes from an `after-string'
3106 overlay. (Bug#5816)
3107
0dc2e11d
GM
31082010-04-01 Glenn Morris <rgm@gnu.org>
3109
3110 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3111 Define as Makefile variables.
3112 (LIBX): Use above variables rather than directly using autoconf.
3113
1d29df59
DN
31142010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3115
3116 Clean up BSD_SYSTEM use.
3117 * xterm.c:
3118 * process.c:
3119 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3120 for including <sys/ioctl.h>.
3121 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3122 code is only used for MSDOS.
3123
1546c559
JL
31242010-03-31 Juri Linkov <juri@jurta.org>
3125
3126 * image.c: Add `Qextension_data'.
3127 (syms_of_image): Initialize and staticpro `Qextension_data'.
3128 (Fimage_metadata): Rename from `Fimage_extension_data'.
3129 (gif_load): Put GIF extension data to the property
3130 `Qextension_data'.
3131
6521c534
CY
31322010-03-31 Chong Yidong <cyd@stupidchicken.com>
3133
3134 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3135 * nsterm.h: Fix prototype.
3136
52c30783
EZ
31372010-03-31 Eli Zaretskii <eliz@gnu.org>
3138
3139 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3140 trailing whitespace in right-to-left rows.
3141
855a0da7
SM
31422010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3143
3144 Get rid of the direct_output optimizations.
3145 * keyboard.c (nonundocount): Remove extern declaration.
3146 (command_loop_1): Remove brittle optimisation for cheap and
3147 common operations.
3148 * xdisp.c (redisplay_internal): Don't bother checking
3149 redisplay_performed_directly_p any more.
3150 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3151 any more.
3152 * dispnew.c (redisplay_performed_directly_p)
3153 (direct_output_for_insert, direct_output_forward_char):
3154 * dispextern.h (redisplay_performed_directly_p)
3155 (direct_output_for_insert, direct_output_forward_char): Remove.
3156 * cmds.c (nonundocount): Make it static.
3157
85738751 31582010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3159
3160 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3161
85738751 31622010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3163
3164 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3165 invisible (Bug#5766).
3166
85738751 31672010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3168
855a0da7
SM
3169 * xdisp.c (x_consider_frame_title, update_window_cursor):
3170 Remove HAVE_NS conditionals.
194d44e7 3171 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3172
3173 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3174 filename for the title.
3175 (ns_set_doc_edited): Do nothing if the selected window is a
3176 minibuffer window.
3177
3178 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3179 ns_set_doc_edited.
3180
3181 * nsterm.m: Remove unneeded prototype.
3182
85738751 31832010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3184
3185 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3186 in the DOC file. (Bug#5336)
3187
85738751 31882010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3189
3190 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3191
75d1428c
SM
31922010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3193
3194 * window.c (keys_of_window): Remove redundant/overridden bindings.
3195
82043cfb
EZ
31962010-03-30 Eli Zaretskii <eliz@gnu.org>
3197
3198 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3199 Restore original behavior when the iterator is not bidi_p.
3200
b5dd0ae7
DN
32012010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3202
3203 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3204
bd924a5d
EZ
32052010-03-30 Eli Zaretskii <eliz@gnu.org>
3206
3207 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3208 are outside the range of cached character positions.
3209
3580374b
JB
32102010-03-30 Juanma Barranquero <lekktu@gmail.com>
3211
3212 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3213
a7b02820
EZ
32142010-03-30 Eli Zaretskii <eliz@gnu.org>
3215
3216 Initial support for bidirectional editing.
3217
3218 * Makefile.in (obj): Include bidi.o.
3219 (bidi.o): New target.
3220
3221 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3222 ($(BLD)/bidi.$(O)): New target.
3223
3224 * bidi.c: New file.
3225
3226 * buffer.h (struct buffer): New members bidi_display_reordering
3227 and bidi_paragraph_direction.
3228
3229 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3230 and bidi_paragraph_direction.
3231 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3232 and bidi-paragraph-direction.
3233 (Fbuffer_swap_text): Swap the values of
3234 bidi_display_reordering and bidi_paragraph_direction.
3235
3236 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3237 (bidi_type_t, bidi_dir_t): New types.
3238 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3239 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3240 prev_stop, base_level_stop, and eol_pos.
3241 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3242 (IT_STACK_SIZE): Enlarge to 5.
3243 (struct glyph_row): New member reversed_p.
3244 <string_buffer_position>: Update prototype.
3245 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3246 glyph_row if bidi_it.paragraph_dir == R2L.
3247 (struct glyph): New members resolved_level and bidi_type.
3248
3249 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3250 processing or buffer's direction is right-to-left.
3251 (prepare_desired_row): Preserve the reversed_p flag.
3252 (row_equal_p): Compare the reversed_p attributes as well.
3253
3254 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3255 bidi_init_it and set it->paragraph_embedding from the current
3256 buffer's value of bidi_paragraph_direction.
3257 (reseat_1): Initialize bidi_it.first_elt.
3258 (set_iterator_to_next, next_element_from_buffer): Use the value of
3259 paragraph_embedding to determine the paragraph direction.
3260 (set_iterator_to_next): Under bidi reordering, call
3261 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3262 new_paragraph flag is set in the bidi iterator.
3263 (next_element_from_buffer): If bidi_it.first_elt is set,
3264 initialize paragraph direction and find the first character to
3265 display in the visual order. If reseated to a middle of a line,
3266 prime the bidi iterator starting at the line's beginning. Handle
3267 the situation where we overstepped stop_charpos due to
3268 non-linearity of the bidi iteration. Likewise for when we back up
3269 beyond the previous stop_charpos. When moving across stop_charpos,
3270 record it in prev_stop.
3271 (display_line): Set row->end and it->start for the next row to the
3272 next character in logical order. Always extend reversed_p rows to
3273 the end of line, even if they end at ZV. Copy the reversed_p flag
3274 to the next glyph row. Keep calling set_cursor_from_row for
3275 bidi-reordered rows even if we already have a possible candidate
3276 for cursor position. Set row_end after all the row's glyphs have
3277 been produced, by looping over the glyphs. Record the position
3278 after EOL in it->eol_pos, and use it to set end_pos of the last
3279 row produced for a continued line.
3280 <Qright_to_left, Qleft_to_right>: New variables.
3281 (syms_of_xdisp): Initialize and staticpro them.
3282 (string_buffer_position_lim): New function.
3283 (string_buffer_position): Most of code moved to
3284 string_buffer_position_lim. Last argument and return value are
3285 now EMACS_INT; all callers changed.
3286 (set_cursor_from_row): Rewritten to support bidirectional text and
3287 reversed glyph rows.
3288 (text_outside_line_unchanged_p, try_window_id): Disable
3289 optimizations if we are reordering bidirectional text and the
3290 paragraph direction can be affected by the change.
3291 (append_glyph, append_composite_glyph)
3292 (produce_image_glyph, append_stretch_glyph): Set the
3293 resolved_level and bidi_type members of each glyph.
3294 (append_glyph): If the glyph row is reversed, prepend the glyph
3295 rather than appending it.
3296 (handle_stop_backwards): New function.
3297 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3298 (reseat): call handle_stop_backwards to recompute prev_stop and
3299 base_level_stop for the new position.
3300 (handle_invisible_prop): Under bidi iteration, skip invisible text
3301 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3302 paragraph direction. Update IT->prev_stop after skipping
3303 invisible text.
3304 (move_it_in_display_line_to): New variables prev_method
3305 and prev_pos. Compare for strict equality in
3306 BUFFER_POS_REACHED_P.
3307 (try_cursor_movement): Examine all the candidate rows that occlude
3308 point, to return the best match. If rows are bidi-reordered
3309 and point moved backwards, back up to the row that is not a
3310 continuation line, and start looking for a suitable row from
3311 there.
3312
3313 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3314 rather than appending, if the glyph_row's reversed_p flag is set.
3315 Set the resolved_level and bidi_type members of each glyph.
3316
3317 * .gdbinit (pbiditype): New command.
3318 (pgx): Use it to display bidi level and type of the glyph.
3319 (pitx): Display some bidi information about the iterator.
3320 (prowlims, pmtxrows): New commands.
3321
32a8894e
DN
33222010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3323
3324 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3325 * s/usg5-4.h (LIBS_DEBUG):
3326 * s/irix6-5.h (C_DEBUG_SWITCH):
3327 * s/gnu-linux.h (LIBS_DEBUG):
3328 * s/darwin.h (LIBS_DEBUG):
3329 * s/bsd-common.h (LIBS_DEBUG):
3330 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3331 * m/iris4d.h (LIBS_DEBUG):
3332 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3333
3334 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3335 (LIBS_DEBUG): Remove definition.
3336
649dbf36
CY
33372010-03-27 Chong Yidong <cyd@stupidchicken.com>
3338
3339 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3340 Windows.
3341
cad4261f
YM
33422010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3343
3344 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3345 `connect' (Bug#5723).
3346
cd591dbc
HE
33472010-03-25 Helmut Eller <eller.helmut@gmail.com>
3348
3349 * process.c (Fmake_network_process): Call `select' for interrupted
3350 `connect' rather than creating new socket (Bug#5173).
3351
e867cb5d 33522010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3353
3354 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3355
3356 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3357
3358 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3359
e867cb5d 33602010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3361
3362 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3363 XLoadQueryFont.
3364
e867cb5d 33652010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3366
3367 * coding.c (decode_coding_ccl): Fix previous change for the
3368 multibyte case.
fb608df3
KH
3369 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3370 case that the output buffer is fullfilled.
3371 (encode_coding): Setup ccl program here.
fbdc1721 3372
5845f0ed
DN
33732010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3374
814fb708
DN
3375 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3376
5845f0ed
DN
3377 Simplify LIBS_MACHINE definitions.
3378 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3379 * m/iris4d.h (LIBS_MACHINE): Likewise.
3380 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3381 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3382 * s/netbsd.h: Remove commented out code.
5845f0ed 3383
b7064064
DN
33842010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3385
df7734b2
DN
3386 Remove dead code dealing with POSIX_SIGNALS.
3387 * atimer.c (set_alarm): Remove dead code, all USG systems define
3388 POSIX_SIGNALS.
3389 * data.c (arith_error): Likewise.
3390 * keyboard.c (input_available_signal, handle_user_signal)
3391 (interrupt_signal): Likewise.
3392 * process.c (sigchld_handler): Likewise.
3393 (create_process): Remove if 0 code. Remove HPUX conditional when
3394 !defined (POSIX_SIGNALS), it cannot be true.
3395 * syssignal.h: Remove USG5_4 and USG conditionals when
3396 !POSIX_SIGNALS, they cannot be true.
3397
b7064064
DN
3398 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3399 NO_SOCK_SIGIO, not used anymore.
3400
55da5ee3
DN
34012010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3402
0be96e3a
DN
3403 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3404 support vax on BSDs.
3405
55da5ee3
DN
3406 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3407 * s/aix4-2.h (ORDINARY_LINK): ... here.
3408
c0282183
AS
34092010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3410
82c3d67a
AS
3411 * Makefile.in (abs_builddir): Define.
3412 (bootstrap_exe): Use it.
3413 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3414
3613edce
SM
34152010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3416
3417 * Makefile.in (bootstrap_exe): Use an absolute name.
3418
7f110ddc
DN
34192010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3420
22e87574
DN
3421 Remove support for old GNU/Linux using libc version 5.
3422 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3423 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3424
05a670e6
DN
3425 Consolidate redundant definitions in s/bsd-common.h.
3426 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3427 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3428 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3429 doing it in all files that include this one.
3430 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3431 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3432 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3433 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3434 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3435 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3436 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3437 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3438 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3439
2968f561
DN
3440 Consolidate redundant definitions.
3441 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3442 it's undefined in all files that include this one.
3443 (POSIX_SIGNALS): Define here instead of doing it in all files that
3444 include this one.
3445 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3446 (POSIX_SIGNALS): Do not define.
3447 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3448 (POSIX_SIGNALS): Do not define.
3449 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3450 (POSIX_SIGNALS): Do not define.
3451
15d25dc0
DN
3452 Remove support for old UNIX System V systems.
3453 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3454 * s/usg-5-4-2.h: Remove.
3455
07e339e4
DN
3456 Remove support for Solaris on PPC and for old versions.
3457 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3458 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3459 that cancel each other.
3460 * s/sol2-3.h:
3461 * s/sol2-4.h:
3462 * s/sol2-5.h: Remove.
3463 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3464 (NO_REMAP): Remove, unused.
3465 (UNEXEC): Move definition ...
3466 * s/aix4-2.h (UNEXEC): ... here.
3467
7f110ddc
DN
3468 * s/openbsd.h: Remove support for non-ELF and for systems that do
3469 not support shared libraries.
3470 * s/netbsd.h:
3471 * s/freebsd.h: Likewise.
3472
605f35cd
DN
34732010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3474
3475 Remove non-working support for lynxos 3.0.
3476 * s/lynxos.h: Remove file.
3477
3478 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3479 COFF_BSD_SYMBOLS, nothing defines it anymore.
3480
aed71cf4
DN
34812010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3482
3483 Remove obsolete uses of HAVE_SHM.
3484 * emacs.c (standard_args):
3485 (Fdump_emacs):
3486 (syms_of_emacs): Remove code depending on HAVE_SHM.
3487
3488 * alloc.c: Remove HAVE_SHM dependent definition.
3489
3490 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3491
aded53ff
GM
34922010-03-18 Glenn Morris <rgm@gnu.org>
3493
17284745
GM
3494 * emacs.c (USAGE4): Hard-code bug address.
3495 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3496 (bug_reporting_address): Remove.
3497 (main): Don't call bug_reporting_address.
3498
aded53ff
GM
3499 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3500 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3501
303500aa
CY
35022010-03-15 Chong Yidong <cyd@stupidchicken.com>
3503
3504 * xfns.c (Fx_create_frame):
3505 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3506 on left.
3507
cef3058f
CY
35082010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3509
3510 * editfns.c (Fformat): Account for string precision when computing
3511 field width (Bug#5710).
3512
a647d59d
CY
35132010-03-12 Chong Yidong <cyd@stupidchicken.com>
3514
4fa42018
CY
3515 * xfns.c (Fx_create_frame): Set default to Qright.
3516
a647d59d
CY
3517 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3518 all window systems.
3519
6da23aaa
EZ
35202010-03-12 Eli Zaretskii <eliz@gnu.org>
3521
a96f6398 3522 These changes remove termcap.c from the build on Posix platforms.
83d02def 3523 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3524 (MSDOS_OBJ): ...to here.
3525 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3526 now identical to when LIBS_TERMCAP is defined.
3527
3528 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3529
3530 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3531
a96f6398 3532 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3533
288f9fc0
CY
35342010-03-10 Chong Yidong <cyd@stupidchicken.com>
3535
3536 * Branch for 23.2.
3537
d48cd3f4
SM
35382010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3539
3540 Cleanup setup of gl_state in various parts of the code.
3541 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3542 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3543 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3544 (skip_chars):
3545 * regex.c (regex_compile): Use it.
3546 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3547 it's now set in regex_compile when/if we need it.
3548
618db430
SM
35492010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3550
c0335e02
SM
3551 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3552 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3553 (QUIT): Use it to consolidate code and remove redundancy.
3554 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3555
254c06a8
SM
3556 * regex.c (regex_compile): Setup gl_state as well.
3557
618db430
SM
3558 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3559 (in_classes): Use CONSP before XCAR/XCDR.
3560
233f0c9f
CY
35612010-03-03 Chong Yidong <cyd@stupidchicken.com>
3562
3563 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3564 definitions, so that keyboard macros are correctly handled
3565 (Bug#5481).
3566
75f80e63
EZ
35672010-03-02 Eli Zaretskii <eliz@gnu.org>
3568
3569 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3570 text that could be relocated inside the call to emacs_mule_char.
3571 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3572 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3573
dcfb9bc4
KH
35742010-03-02 Kenichi Handa <handa@m17n.org>
3575
fc9a17bc
KH
3576 * character.c (parse_str_as_multibyte): Fix handling of the
3577 multibyte form of raw-bytes.
3578 (str_as_multibyte): Likewise.
3579
dcfb9bc4
KH
3580 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3581 form of raw-bytes.
3582
412c01b6
CY
35832010-02-28 Chong Yidong <cyd@stupidchicken.com>
3584
3585 * charset.c (load_charset_map_from_file)
3586 (load_charset_map_from_vector): Zero out allocated
3587 charset_map_entries before using them.
3588
df7e1ea0
AS
35892010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3590
3591 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3592
fe69a722
CY
35932010-02-27 Chong Yidong <cyd@stupidchicken.com>
3594
4ed28cf4
CY
3595 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3596 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3597
7379cfce
KH
35982010-02-26 Kenichi Handa <handa@m17n.org>
3599
f88cc4d6
KH
3600 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3601
7379cfce
KH
3602 * xdisp.c (reseat_to_string): Fix previous change.
3603
cf2fdcfb
CY
36042010-02-26 David Reitter <david.reitter@gmail.com>
3605
3606 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3607 Lisp_Object (Bug#4736).
3608
cc6c7c75
KH
36092010-02-25 Kenichi Handa <handa@m17n.org>
3610
3611 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3612
32e737d7
JD
36132010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3614
3615 * xterm.c (XTflash): Move declarations before statements.
3616
3617 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3618 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3619 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3620 (xg_create_tool_bar): Remove unused variables.
3621 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3622 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3623
676cae9f
CY
36242010-02-21 Chong Yidong <cyd@stupidchicken.com>
3625
3626 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3627
886cc2b8
SM
36282010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3629
3630 * term.c (fatal): Add a final \n if needed (bug#5596).
3631
ddb2d8e2
CY
36322010-02-18 Chong Yidong <cyd@stupidchicken.com>
3633
3634 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3635
2a4f8d3d
GM
36362010-02-18 Glenn Morris <rgm@gnu.org>
3637
3638 * callint.c (Finteractive): Doc fix.
3639
ebaf11b6
KH
36402010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3641
886cc2b8
SM
3642 * coding.c (record_conversion_result):
3643 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3644 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3645 memory allocation error.
3646
d0396581
KH
36472010-02-17 Kenichi Handa <handa@m17n.org>
3648
886cc2b8
SM
3649 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3650 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3651 (decode_coding): Setup ccl program here. Keep looping when the
3652 decoder stopped because the output buffer is
3653 fullfilled (bug#5534).
3654
3655 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3656
98599f74
JD
36572010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3658
471e4f04 3659 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3660 bug #5571.
886cc2b8 3661 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3662 overdrawn.
98599f74 3663
182659ae
JD
36642010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3665
3666 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3667 doing_interact here.
3668 (ice_connection_closed): New function.
3669 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3670 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3671 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3672 returns I/O error.
3673 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3674 bug #5512.
3675
9be32c4e 36762010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3677
3678 * nsfont.m (nsfont_open): The system's value for the font descent
3679 is negative, so round it down to avoid clipping.
3680
a2f3eb19
CY
36812010-02-06 Chong Yidong <cyd@stupidchicken.com>
3682
3683 * charset.c (load_charset_map_from_file)
3684 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3685 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3686
3088147c
CY
36872010-02-05 Chong Yidong <cyd@stupidchicken.com>
3688
3689 * charset.c (load_charset_map_from_file): Allocate large
3690 charset_map_entries structure on the heap rather than the stack.
3691 (Bug#5526).
3692
b57d9029
KH
36932010-01-31 Kenichi Handa <handa@m17n.org>
3694
3695 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3696 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3697
c67d885b
CY
36982010-01-31 Chong Yidong <cyd@stupidchicken.com>
3699
3700 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3701 <deactivated@gmail.com> (Bug#3605).
3702
8fab2362
CY
37032010-01-31 David De La Harpe Golden <david@harpegolden.net>
3704
3705 * fileio.c (Frename_file): Correctly rename symlinks to
3706 directories (Bug#5496).
3707
cb2a62f2
CY
37082010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3709
3710 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3711
944c7a26
AS
37122010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3713
3714 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3715
c024ac08
CY
37162010-01-29 Chong Yidong <cyd@stupidchicken.com>
3717
3718 * frame.c (DEFAULT_ROWS): Change default to 35.
3719
3720 * xfns.c (x_default_font_parameter): Change default XFT font to
3721 monospace-10 (Bug#3643).
3722
af93af83
EZ
37232010-01-29 Eli Zaretskii <eliz@gnu.org>
3724
3725 * w32inevt.c (key_event): Remove unnecessary comparison of
3726 event->uChar.AsciiChar with 128.
3727
ca0eb708
CY
37282010-01-28 Chong Yidong <cyd@stupidchicken.com>
3729
b242dbfc
CY
3730 * fileio.c (Frename_file): Fix last change (Bug#5487).
3731
ca0eb708
CY
3732 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3733
3734 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3735
45d45af5
JD
37362010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3737
3738 * xfns.c (Fx_create_frame): Remove window size matching code from
3739 2010-01-15.
a73f9c9d 3740 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3741
7e233730
JR
37422010-01-27 Jason Rumney <jasonr@gnu.org>
3743
3744 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3745 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3746
86e893e3
KH
37472010-01-27 Kenichi Handa <handa@m17n.org>
3748
3749 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3750 pattern string (Bug#4209).
86e893e3 3751
8719abec
CY
37522010-01-27 David De La Harpe Golden <david@harpegolden.net>
3753
3754 * fileio.c (Frename_file): Call copy-directory and
3755 delete-directory for directories, in order to handle cross-device
3756 renaming (Bug#3353).
3757
844794c8
JD
37582010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3759
aa3e13b5 3760 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3761 sizes 24 and 10. Bug #3643.
844794c8 3762
bd4b5750
SM
37632010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3764
8dc1adf6 3765 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3766 * keymap.c (shadow_lookup): Add `remap' arg.
3767 (describe_map, describe_vector): Update calls to shadow_lookup.
3768 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3769 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3770 perform remapping during shadow_lookup check of remapped_sequences.
3771
285d07e2
CY
37722010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3773
3774 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3775 png_check_sig, which has been removed in libpng 1.4.
3776
c6d09b8d
CY
37772010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3778
3779 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3780 lacks this header file).
3781
3d782998
YM
37822010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3783
3784 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3785 as in Emacs 22.
3786
2aff7c53
YM
37872010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3788
3789 * lisp.h (make_pure_string): String pointer arg now points to const.
3790
3791 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3792 args now point to const.
3793
74327f7a
EZ
37942010-01-22 Eli Zaretskii <eliz@gnu.org>
3795
3796 * lread.c (Fload): Don't treat files without .elc extension as
3797 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3798 them. (bug#5303)
3799
4d1e6632
KH
38002010-01-20 Kenichi Handa <handa@m17n.org>
3801
3802 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3803 treat the source as actual byte sequence.
3804
1fdede8f
AM
38052010-01-19 Alan Mackenzie <acm@muc.de>
3806
3807 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3808 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3809 `signal_after_change_p' to `coherent_change_p', and make the
3810 invocation of `modify_region' conditional on it.
3811
67477f30
JD
38122010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3813
3814 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3815 for debug purpose.
3816 (syms_of_xsettings): Declare xft-settings.
3817
244b023e
CY
38182010-01-18 Chong Yidong <cyd@stupidchicken.com>
3819
3820 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3821
617364fe
CY
38222010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3823
3824 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3825
4fe22cdf
CY
38262010-01-16 Chong Yidong <cyd@stupidchicken.com>
3827
3828 * emacs.c (standard_args): Adjust arg priorities to reflect how
3829 they are processed in startup.el.
3830
e118d2be
AS
38312010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3832
3833 * Makefile.in (lisp, shortlisp): Update.
3834
523ae620
SM
38352010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3836
3837 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3838 code, link the new kboard into all_kboard before running Lisp code,
3839 and protect the new terminal with GCPRO (Bug#5365).
3840 (x_term_init): Remove unused var `atom'.
3841 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3842
f0d13888
JD
38432010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3844
3845 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3846 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3847 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3848 this. Bug #3643.
f0d13888 3849
cc320f07
KH
38502010-01-15 Kenichi Handa <handa@m17n.org>
3851
3852 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3853
7ffdf101
CY
38542010-01-15 Chong Yidong <cyd@stupidchicken.com>
3855
3856 * nsterm.m (Qnone): Define.
3857
3858 * nsfns.m (Qnone): Move definition to nsterm.m.
3859
d12bd917
KH
38602010-01-14 Kenichi Handa <handa@m17n.org>
3861
3862 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3863 systems.
3864
d9a7c140
KH
38652010-01-14 Kenichi Handa <handa@m17n.org>
3866
3867 Make auto-composition work on all buffers even if they are
3868 fundamental mode.
3869
3870 * composite.c (Vauto_composition_mode): New variable.
3871 (composition_compute_stop_pos): Check Vauto_composition_mode
3872 instead of Vauto_composition_function.
3873 (composition_adjust_point, Ffind_composition_internal): Likewise.
3874 (syms_of_composite): Declare Lisp variable
3875 "auto-composition-mode" here.
3876
63286bb2
CY
38772010-01-13 Chong Yidong <cyd@stupidchicken.com>
3878
3879 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3880 during call to vendor-specific-keysyms (Bug#5365).
3881
c2623ee7
YM
38822010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3883
3884 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3885 Call SIGNAL_THREAD_CHECK (Bug#5333).
3886
3887 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3888 Call SIGNAL_THREAD_CHECK.
3889
0b5397c2
SM
38902010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3891
3892 Try to fix bug#5314. This is probably not the final word, tho.
3893 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3894 recent-auto-save-p as a side-effect.
3895 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3896 * buffer.c (Fkill_buffer, reset_buffer):
3897 * editfns.c (Fsubst_char_in_region):
3898 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3899 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3900
dc954cb2
KH
39012010-01-13 Kenichi Handa <handa@m17n.org>
3902
3903 Display buffer name, etc. in mode line by composing correctly.
3904
3905 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3906 STRING is not nil.
0b5397c2 3907 (display_mode_element): Adjust for the change of
dc954cb2
KH
3908 decode_mode_spec and display_line.
3909 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3910 (display_string): Handle the case that STRING is non-null and
3911 LISP_STRING is not nil.
3912
0b5397c2
SM
3913 * xterm.c (x_draw_composite_glyph_string_foreground):
3914 Pay attention to s->face->overstrike.
dc954cb2
KH
3915
3916 * composite.c (composition_reseat_it): Don't check PT if STRING is
3917 non nil.
3918
4a00eaca
YM
39192010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3920
3921 * keyboard.c (read_char): Don't apply previous change when current
3922 buffer is unchanged by command execution.
3923
60abb287
JD
39242010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3925
3926 * keyboard.c (read_char): Return after executing from special map.
3927
893db5bc
GM
39282010-01-12 Glenn Morris <rgm@gnu.org>
3929
3930 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3931 bug-gnu-emacs rather than emacs-pretest-bug.
3932
4d03ece0
CY
39332010-01-11 Chong Yidong <cyd@stupidchicken.com>
3934
3935 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3936 initializing the Lisp variables that depend on them.
3937
1df47e38
YM
39382010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3939
3940 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3941 Clear areas that will not be updated after change of menu bar lines.
3942 Clear the menu bar window's current matrix when the window gets empty.
3943
2f1c6384
CY
39442010-01-09 Chong Yidong <cyd@stupidchicken.com>
3945
e398c61c
CY
3946 * intervals.h, textprop.c (extend_property_ranges): Return value
3947 and args changed. Discard properties that begin at or after the
3948 new end (Bug#5306).
3949
3950 * editfns.c (Fformat): Caller changed.
3951
e5a29a10
CY
3952 * nsterm.m (ns_set_default_prefs): Delete function.
3953 (syms_of_nsterm): Initialize ns_command_modifier,
3954 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3955 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3956
2f1c6384
CY
3957 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3958 position (Bug#4040).
3959
d427a9fa
EZ
39602010-01-09 Eli Zaretskii <eliz@gnu.org>
3961
3962 * editfns.c (Ffloat_time): Doc fix.
3963
21b9df2f
JD
39642010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3965
3966 * xfns.c (Fx_create_frame): Don't create frame larger than display
3967 by default bug#3643.
3968
4b00d3b1
YM
39692010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3970
3971 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3972 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3973 windows above internal border.
3974
3975 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3976 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3977 windows above internal border.
3978
3979 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3980 tool bar windows specially.
3981
3982 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3983
3984 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3985 specially.
3986 (XTflash): Take account of menu bar height.
3987
3988 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3989 specially.
3990
5075d853
JD
39912010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3992
ac146f82 3993 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3994 also be true before we can return early (bug #5339).
3995
474217c8
CY
39962010-01-06 David Reitter <david.reitter@gmail.com>
3997
3998 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3999 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4000 (Bug#3233).
4001
c0e6d47d
JD
40022010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4003
d0cf45b7
JD
4004 * font.c (font_open_entity): Enable chache and call cached_font_ok
4005 for the driver if defined.
4006 (QCuser_spec): New symbol.
4007 (font_spec_from_name): Save name as user-spec.
4008 (font_load_for_lface): Keep user-spec instead of name.
4009 (font_open_by_name): Save name as user-spec.
4010 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4011 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4012
4013 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4014 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4015 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4016
4017 * font.h (struct font_driver): Add cached_font_ok.
4018
c0e6d47d
JD
4019 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4020
7c583cd8
JD
40212010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4022
4023 * xterm.c (x_new_font): Move code for setting rows/cols before
4024 resizing ...
ac146f82 4025 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4026
4027 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4028 (xg_frame_resized, xg_frame_set_char_size):
4029 Call xg_clear_under_internal_border.
7c583cd8 4030 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4031
03f77f0a
CY
40322010-01-05 Chong Yidong <cyd@stupidchicken.com>
4033
4034 * keyboard.c (read_key_sequence): Catch keyboard switch after
4035 making a new tty frame (Bug#5095).
4036
2a1ef5be
KH
40372010-01-05 Kenichi Handa <handa@m17n.org>
4038
4039 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4040
e3eb1dae
SM
40412010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4042
4043 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4044 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4045 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4046
777013f2
MA
40472010-01-03 Michael Albinus <michael.albinus@gmx.de>
4048
4049 * dbusbind.c (xd_add_watch): Improve debug message.
4050 (xd_remove_watch): Improve debug message. If DATA is the session
4051 bus, unset D-Bus session environment.
4052 (Fdbus_init_bus): Pass the bus as argument to
4053 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4054
8932b1c2
CY
40552010-01-01 Chong Yidong <cyd@stupidchicken.com>
4056
87231e2c
CY
4057 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4058
4801c5fa
CY
4059 * lread.c (syms_of_lread): Make it clearer that these are the
4060 names of loaded files (Bug#5068).
4061
8932b1c2
CY
4062 * eval.c (run_hook_with_args): Handle the case where the global
4063 value has the obsolete single-function form (Bug#5026).
4064
11e3c684
CY
40652009-12-27 Chong Yidong <cyd@stupidchicken.com>
4066
4067 * minibuf.c (Fall_completions): Minor optimization.
4068
5b28ce35
EZ
40692009-12-26 Eli Zaretskii <eliz@gnu.org>
4070
5ce6e4f4
JB
4071 * .gdbinit (pgx): Fix display of composite glyphs.
4072 Display cmp.from and cmp.to as well.
4073 (pitx): Fix last change.
5b28ce35 4074
bcffff46
KH
40752009-12-25 Kenichi Handa <handa@m17n.org>
4076
4077 * composite.h (composition_adjust_point): Update prototype.
4078
4079 * composite.c (composition_reseat_it): Don't make a composition
4080 spanning over point.
4081 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4082 composable characters.
4083 (composition_adjust_point): New arg NEW_PT. Callers changed.
4084
4085 * keyboard.c (command_loop_1): Force redisplay if the last point
4086 was within a composition.
4087 (adjust_point_for_property): Don't adjust point for automatic
4088 composition when called after buffer modification.
4089
3f670e9a
EZ
40902009-12-19 Eli Zaretskii <eliz@gnu.org>
4091
5ce6e4f4
JB
4092 * .gdbinit (pitx): Don't use enum names, use their values.
4093 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4094 (pgx): Don't use enum names, use their values.
4095 (pitmethod): New helper command.
4096 (pitx): Use it to display iteration method.
4097 (pgrowit): New command.
4098
ad903955
EZ
4099 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4100
3f670e9a
EZ
4101 Update dependencies in Makefile.in.
4102
4103 * Makefile.in (alloc.o): Depend on termhooks.h.
4104 (atimer.o): Depend on blockinput.h.
4105 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4106 and frame.h.
4107 (callint.o): Depend on systime.h, coding.h, and composite.h.
4108 (callproc.o): Depend on buffer.h.
4109 (casefiddle.o): Don't depend on charset.h.
4110 (casetab.o): Depend on character.h.
4111 (ccl.o): Depend on composite.h.
4112 (chartab.o): Depend on ccl.h.
4113 (cm.o): Depend on dispextern.h.
4114 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4115 (coding.o): Don't depend on $(INTERVALS_H).
4116 (composite.o): Don't depend on dispextern.h explicitly (it's in
4117 $(INTERVALS_H)). Depend on ccl.h.
4118 (data.o): Depend on systime.h, coding.h, composite.h,
4119 dispextern.h, font.h, and ccl.h.
4120 (dired.o): Depend on composite.h.
4121 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4122 composite.h (it's in $(INTERVALS_H)).
4123 (doc.o): Depend on systime.h, coding.h, and composite.h.
4124 (editfns.o): Don't depend explicitly on dispextern.h.
4125 (emacs.o): Depend on frame.h and coding.h.
4126 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4127 (fileio.o): Depend on frame.h and commands.h. Don't depend
4128 explicitly on dispextern.h.
4129 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4130 composite.h.
4131 (fns.o): Don't depend on termhooks.h.
4132 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4133 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4134 coding.h, $(INTERVALS_H), window.h, xterm.h.
4135 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4136 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4137 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4138 fontset.h, ccl.h, and ftfont.h.
4139 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4140 (gtkutil.o): Depend on dispextern.h and composite.h.
4141 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4142 termhooks.h, and ccl.h.
4143 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4144 (intervals.o): Depend on systime.h and coding.h.
4145 (keyboard.o): Depend on composite.h and coding.h.
4146 (keymap.o): Depend on coding.h and frame.h.
4147 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4148 (macros.o): Depend on systime.h, coding.h, and composite.h.
4149 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4150 and atimer.h.
4151 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4152 dispextern.h explicitly.
0b5397c2
SM
4153 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4154 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4155 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4156 (regex.o): Don't depend on charset.h.
4157 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4158 (search.o): Don't depend explicitly on composite.h.
4159 (sound.o): Depend on atimer.h and systime.h.
4160 (syntax.o): Don't depend explicitly on composite.h.
4161 (sysdep.o): Depend on coding.h and composite.h.
4162 (term.o): Depend on xterm.h and buffer.h.
4163 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4164 (textprop.o): Don't depend on dispextern.h explicitly.
4165 (undo.o): Depend on dispextern.h.
4166 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4167 dispextern.h and composite.h explicitly.
4168 (xdisp.o): Depend on ccl.h.
4169 (xfaces.o): Depend on coding.h and ccl.h.
4170 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4171 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4172 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4173 ftfont.h.
4174 (xgselect.o): New dependency.
4175 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4176 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4177 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4178 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4179 (xsmfns.o): Depend on frame.h and dispextern.h.
4180 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4181 sysselect.h.
4182
7a6f7fea
AS
41832009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4184
4185 * font.c (Fclear_font_cache): Pass correct cache argument to
4186 font_clear_cache.
4187
f4c21026
AS
41882009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4189
4190 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4191 twice.
4192
f7ab0997
CY
41932009-12-15 Chong Yidong <cyd@stupidchicken.com>
4194
4195 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4196 calling file-remote-p. Reported by Jim Meyering.
4197
fa8e045a
MA
41982009-12-15 Michael Albinus <michael.albinus@gmx.de>
4199
4200 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4201 avoid compiler warnings. (Bug #5217)
fa8e045a 4202
a63dba42
KH
42032009-12-14 Kenichi Handa <handa@m17n.org>
4204
4205 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4206 in 8-bit encoding.
4207
5ce6e4f4 42082009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4209
4210 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4211 tooltip windows.
4212
223e5fc6
JD
42132009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4214
36acb2a7
JD
4215 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4216 Xatom_net_window_type.
4217
4218 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4219 Xatom_net_window_type.
4220
b8f00677
JD
4221 * xterm.c (my_log_handler): New function.
4222 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4223 so we can filter out buggy messages. (Bug #5120).
b8f00677 4224
e5f0bc9a
JD
4225 * xterm.c (xg_scroll_callback): Parameter list changed,
4226 use parameter GtkScrollType to determine scroll/line/page.
4227 Only allow dragging if a button < 4 is grabbed (bug #5177).
4228 (xg_end_scroll_callback): New function.
4229 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4230 xg_create_scroll_bar.
4231
4232 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4233 (scroll_end_callback): Remove.
4234 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4235 button-release-event. Replace value-changed event with change-value,
4236 bug #5177,
4237 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4238 bug #5177.
4239
4240 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4241 (xg_create_scroll_bar): Add GCallback end_callback.
4242
223e5fc6
JD
4243 * xftfont.c (QClcdfilter): New variable.
4244 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4245 (syms_of_xftfont): Initialize QClcdfilter.
4246
3c055b77
JD
42472009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4248
4249 * xsettings.c (struct xsettings): Add member seen.
4250 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4251 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4252 (apply_xft_settings): Only update Xft settings with what member seen
4253 indicates as new.
4254
05fe33ff
EZ
42552009-12-12 Eli Zaretskii <eliz@gnu.org>
4256
4257 * dispextern.h (struct text_pos): Use EMACS_INT;
4258 (struct glyph): Use EMACS_INT for charpos.
4259 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4260 region_beg_charpos, region_end_charpos,
4261 redisplay_end_trigger_charpos, and also for
4262 iterator_stack_entry.end_charpos and
4263 iterator_stack_entry.stop_charpos.
4264
e8d7886a
JD
42652009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4266
5ce6e4f4 4267 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4268 (xg_create_scroll_bar): Call scroll_end_callback on button release
4269 event (bug #5177).
4270 (xg_event_is_for_scrollbar): != replaced with ==.
4271
d0db2ec8
KH
42722009-12-12 Kenichi Handa <handa@m17n.org>
4273
4274 * ftfont.c (struct ftfont_info): New member matrix.
4275 (ftfont_open): Setup xftfont_info->matrix.
4276 (MFLTFontFT): New member matrix.
4277 (FLOOR, CEIL, ROUND): New macros.
4278 (ftfont_get_metrics): Handle matrix transformation.
4279 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4280
4281 * xftfont.c (struct xftfont_info): New member matrix.
4282 (xftfont_open): Setup xftfont_info->matrix.
4283
42842009-12-10 Kenichi Handa <handa@m17n.org>
4285
4286 * xdisp.c (append_space_for_newline): Consider face-remapping.
4287
2cc7b62f
AS
42882009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4289
b87dd913
AS
4290 * xsettings.c: Include "keyboard.h".
4291
eba5eb94
AS
4292 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4293
2cc7b62f
AS
4294 Fix implicit function declarations.
4295 * cmds.c: Include "frame.h".
4296 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4297 * frame.h: Move declaration of delete_frame outside of
4298 HAVE_WINDOW_SYSTEM.
4299
a4ef73c8
CY
43002009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4301
4302 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4303
4304 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4305 GTK builds.
4306
944a300c
AS
43072009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4308
4309 * unexelf.c (unexec): Don't search for .data twice.
4310
022eef62
CY
43112009-12-05 Chong Yidong <cyd@stupidchicken.com>
4312
426ac949
CY
4313 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4314 if push failed.
4315 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4316 of push_display_prop (Bug#5000).
4317
022eef62
CY
4318 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4319 value of font_list_entities (Bug#5085).
4320
be95bee9
JB
43212009-12-04 Juanma Barranquero <lekktu@gmail.com>
4322
4323 Fix `string-to-number' to deal consistently with integers and floats.
4324 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4325 trailing characters, not just whitespace.
4326 (read1): Pass new arg 0 to keep old behavior.
4327 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4328 trailing chars, as it is already done for integers. Doc fixes.
4329 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4330
24c2d7ce
EZ
43312009-12-04 Eli Zaretskii <eliz@gnu.org>
4332
0b5397c2
SM
4333 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4334 Delete unused enumeration value.
24c2d7ce 4335
7e694795
EZ
43362009-12-03 Eli Zaretskii <eliz@gnu.org>
4337
4338 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4339
84b31826
SM
43402009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4341
4342 * process.c (Fmake_network_process): Fix up the tests for
4343 "connectionless socket", so they DTRT for seqpacket sockets as well.
4344
f00c449b
SM
43452009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4346
4347 * process.c (Qseqpacket): New symbol.
4348 (HAVE_SEQPACKET): New macro.
4349 (Fmake_network_process): Accept new :type `seqpacket'.
4350 (init_process): Add `seqpacket' feature when applicable.
4351 (syms_of_process): Initialize Qseqpacket.
4352
8096a0ff
YM
43532009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4354
4355 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4356 if entity is Qnil.
4357
3e0de07f
SM
43582009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4359
4360 * print.c (print_preprocess): Preprocess the key_and_value table of
4361 hashtables, even tho they're "hidden" (bug#5082).
4362
abeafb2a
JD
43632009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4364
4365 * frame.c (frame_make_pointer_invisible)
4366 (frame_make_pointer_visible): Declare f before statements.
4367
4bf47195
EZ
43682009-11-28 Eli Zaretskii <eliz@gnu.org>
4369
4370 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4371 omitted dependencies on lisp.h.
4372
c525b3f2
JD
43732009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4374
ece2d4ed
JD
4375 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4376 is NULL.
4377
4378 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4379
4380 * frame.c (frame_make_pointer_invisible)
3e0de07f 4381 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4382 frame.
4383
c525b3f2
JD
4384 * search.c (simple_search): Remove warning by making *p const.
4385
2f00e299
DN
43862009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4387
4388 * xdisp.c (power_letter): Remove duplicate const.
4389
084b049b
JD
43902009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4391
a1fadc6f
JD
4392 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4393
5ce6e4f4 4394 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4395 defaults (bug #5025).
4396
28259cac
SM
43972009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4398
4399 * insdel.c (adjust_markers_for_delete): Move it in the
4400 right direction! (bug#4803)
4401
e8e14166
YM
44022009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4403
4404 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4405
4406 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4407
86677b58
GM
44082009-11-24 Glenn Morris <rgm@gnu.org>
4409
4410 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4411
581e51e8
JD
44122009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4413
cfc86c7a
JD
4414 * Makefile.in: Must create deps for ecrt0.o in its rule.
4415
581e51e8
JD
4416 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4417 because that is what Gtk+ font dialog understands.
4418
4419 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4420 of Fcopy_sequence.
4421 (font_open_by_name): Put name given into QCname for font-object returned.
4422
4423 * frame.c (x_set_font): Save original font name as frame parameter
4424 font-parameter.
4425
4426 * xsettings.c (set_default_xft_settings): New function.
4427 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4428 is found.
4429
8b264ecb
AS
44302009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4431
4432 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4433 searching backwards through multibyte buffer.
4434
872870b2
JD
44352009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4436
4437 * xterm.c: #include xgselect.h.
4438 (x_initialize): Call xgselect_initialize.
4439
4440 * xsettings.c (something_changedCB): C++ comments => C comments.
4441 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4442 does that now.
4443
4444 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4445 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4446 (scroll_bar_button_cb): Remove.
5ce6e4f4 4447 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4448 event.
4449 (xg_create_scroll_bar): Don't bind button-press-event and
4450 button-release-event.
4451
4452 * process.c: Include xgselect.h if defined (USE_GTK) ||
4453 defined (HAVE_GCONF).
4454 (wait_reading_process_output): Call xg_select for the same condition.
4455
4456 * xgselect.c (xg_select): New function to better integrate with
4457 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4458
4459 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4460
4461 * Makefile.in (XOBJ): Add xgselect.o.
4462
62a6e103
AS
44632009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4464
0b5397c2
SM
4465 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4466 Remove ignored second argument. All callers changed.
62a6e103
AS
4467 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4468 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4469 * xdisp.c (string_char_and_length): Likewise.
4470
b0ca0f33
DN
44712009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4472
4473 * xterm.c (x_new_font):
4474 * print.c (print_object):
4475 * cmds.c (Fself_insert_command): Move declarations before statements.
4476
dd5a6279
CY
44772009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4478
4479 * s/cygwin.h: Remove unneeded linker flags.
4480
4a8e097d
JD
44812009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4482
0d1d0d26
JD
4483 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4484
4485 * xsettings.h: Declare xsettings_get_system_font.
4486
4487 * xsettings.c (xsettings_get_system_font): New function.
4488 (init_gconf): No use initiating gconf unless we have Xft also.
4489 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4490 HAVE_GCONF.
4491
4a8e097d
JD
4492 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4493 add a blank entry so it doesn't collapse into nothing.
4494
8ab1650e
SM
44952009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4496
4497 * lread.c (Funintern): Comment out last change.
4498
82c602f0
RS
44992009-11-19 Richard Stallman <rms@gnu.org>
4500
4501 * lread.c (Funintern): Error if symbol is t or nil.
4502
87e32266
SM
45032009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4504
4505 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4506 representation of Lisp integers.
4507 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4508
1b9ac145
AS
45092009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4510
4511 * lisp.h: Remove declaration of Ffont_get_system_font.
4512 * xfns.c: Move include of "xsettings.h".
4513 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4514
dfb3c4c6
JD
45152009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4516
87e32266
SM
4517 * xsettings.c (something_changedCB, Ffont_get_system_font):
4518 Check use_system_font.
dfb3c4c6
JD
4519 (syms_of_xsettings): DEFVAR font-use-system-font.
4520
9370c1d8
AS
45212009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4522
25fe851a
AS
4523 * xfns.c (x_default_font_parameter): Remove dead assignment.
4524
9370c1d8
AS
4525 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4526
637fa988
JD
45272009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4528
87e32266 4529 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4530 not have FC_LCD_*. #define them if not there.
a6eb20d8 4531
87e32266 4532 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4533
637fa988
JD
4534 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4535
4536 * xterm.c (handle_one_xevent): Call xft_settings_event for
4537 ClientMessage, PropertyNotify and DestroyNotify.
4538 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4539 Call xsettings_initialize.
4540
4541 * xftfont.c (xftfont_fix_match): New function.
4542 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4543 Call xftfont_fix_match after XftFontMatch.
4544
4545 * xfont.c (xfont_driver): Initialize all members.
4546
87e32266
SM
4547 * xfns.c (x_default_font_parameter):
4548 Try font from Ffont_get_system_font.
637fa988
JD
4549 Do not get font from x_default_parameter if we got one from
4550 Ffont_get_system_font.
87e32266 4551 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4552
4553 * w32font.c (w32font_driver): Initialize all members.
4554
4555 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4556
4557 * lisp.h: Declare syms_of_xsettings.
4558
87e32266
SM
4559 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4560 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4561
4562 * ftfont.c (ftfont_filter_properties): New function.
4563
4564 * frame.c (x_set_font): Remove unused variable lval.
4565
87e32266 4566 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4567
4568 * font.c (font_put_extra): Don't return if val is nil, it means
4569 boolean option is off.
4570 (font_parse_fcname): Collect all extra properties in extra_props
4571 and call filter_properties for all drivers with extra_props and
4572 font as parameter.
87e32266
SM
4573 (font_open_entity): Do not use cache, it does not pick up new
4574 fontconfig settings like hinting.
637fa988
JD
4575 (font_load_for_lface): If spec had a name in it, store it in entity.
4576
a73f9c9d 4577 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4578
4579 * config.in: HAVE_GCONF is new.
4580
4581 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4582 xsettings.o is new.
4583
5a942932
KH
45842009-11-17 Kenichi Handa <handa@m17n.org>
4585
4586 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4587 back to the default font in case that no suitable font is found.
4588
b7c7a4d1
SM
45892009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4590
4591 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4592 Suggested by Chad Brown <yandros@mit.edu>.
4593 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4594
072f1e39
JD
45952009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4596
4597 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4598
5d1e70a2
AS
45992009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4600
87e32266 4601 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4602
a53cfbe5
JD
46032009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4604
473a99b7
JD
4605 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4606 has a parent.
4607
a53cfbe5 4608 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4609 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4610
4611 * config.in: Generated (AUTO_DEPEND).
4612
f04bb9b2
MA
46132009-11-13 Michael Albinus <michael.albinus@gmx.de>
4614
b7c7a4d1 4615 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4616 Vdbus_registered_functions_table, because it contains also
4617 properties. Fix docstring.
b7c7a4d1 4618 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4619
8f11f7ec
SM
46202009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4621
4622 * alloc.c (mark_object): Don't reprocess marked strings.
4623 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4624 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4625
8a605fe8
KH
46262009-11-13 Kenichi Handa <handa@m17n.org>
4627
8f11f7ec 4628 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4629 semantics of Vword_combining_categories.
4630 (Vword_combining_categories): Describe the slight change of the
4631 semantics.
4632
241c4680
EZ
46332009-11-13 Eli Zaretskii <eliz@gnu.org>
4634
4635 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4636
4637 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4638
5d58e44c
SM
46392009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4640
4641 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4642
5e13f9d3
JB
46432009-11-12 Juanma Barranquero <lekktu@gmail.com>
4644
4645 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4646
cf54c754
DR
46472009-11-11 David Reitter <david.reitter@gmail.com>
4648
4649 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4650 variables to fix 2009-11-09 change.
4651
a4ada374
DN
46522009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4653
91433552
DN
4654 * process.c (ifflag_def): Make flag_sym constant.
4655 (Fnetwork_interface_info): Use a constant pointer.
4656 (ifflag_table):
4657 * xfns.c (cursor_bits):
4658 * xdisp.c (power_letter):
4659 * termcap.c (speeds, esctab):
4660 * sysdep.c (baud_convert):
4661 * keyboard.c (lispy_accent_codes, modifier_names):
4662 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4663 (jpeg_format, tiff_format, gif_format, svg_format)
4664 (interlace_start, interlace_increment, gs_format):
4665 * gtkutil.c (separator_names):
4666 * fringe.c (swap_nibble):
4667 * fns.c (base64_value_to_char, base64_char_to_value):
4668 * fileio.c (make_temp_name_tbl):
4669 * coding.c (suffixes): Make constant.
4670
f4265f6c
DN
4671 * frame.c (make_initial_frame):
4672 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4673 build_string.
4674 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4675
04420943
DN
4676 * s/freebsd.h:
4677 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4678
0a5d24ae
DN
4679 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4680 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4681
a4ada374
DN
4682 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4683 * xterm.c (syms_of_xterm):
4684 * xfaces.c (syms_of_xfaces):
4685 * xdisp.c (syms_of_xdisp):
4686 * lread.c (syms_of_lread):
4687 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4688 build_string.
91433552 4689
a4ada374
DN
4690 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4691
af98fc7f
SM
46922009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4693
8ab1650e 4694 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4695
e90292a9
JD
46962009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4697
4698 * keyboard.h: Declare timer_check.
4699
4700 * keyboard.c (timer_check_2): New function that does what the old
4701 timer_check did.
4702 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4703 returned, i.e. don't return -1 with timers pending.
4704
4705 * process.c: Remove extern declaration of timer_check.
4706
4707 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4708 even if timer_check returned -1.
4709
af98fc7f
SM
4710 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4711 xg_dialog_data.
e90292a9
JD
4712 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4713 the event loop.
4714 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4715 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4716 Destroy the dialog after xg_dialog_run.
4717
045b83c0
SM
47182009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4719
4720 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4721
1fb99a3a
JD
47222009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4723
4724 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4725
04e452cb
JB
47262009-11-09 Juanma Barranquero <lekktu@gmail.com>
4727
4728 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4729
ef7417fd
SM
47302009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4731
4732 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4733 w32menu.c, and nsmenu.m.
4734 Simplify the obsolete case where position is nil.
4735 (cleanup_popup_menu): New function, moved from nsmenu.m.
4736 (struct skp): Remove slot `notreal'.
4737 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4738 adjust callers.
4739 (single_menu_item): Adjust call to parse_menu_item.
4740 (syms_of_menu): Defsubr x-popup-menu.
4741 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4742 (keymap_panes): Don't export any more.
4743 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4744 (xmenu_show): Declare.
4745 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4746 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4747 * keyboard.h (parse_menu_item): Update declaration.
4748 * xmenu.c (Fx_popup_menu): Remove.
4749 (syms_of_xmenu): Don't defsubr x-popup-menu.
4750 * w32menu.c (Fx_popup_menu): Remove.
4751 (syms_of_w32menu): Don't defsubr x-popup-menu.
4752 * nsmenu.m (cleanup_popup_menu): Remove.
4753 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4754 moved to menu.c's Fx_popup_menu.
4755 (Fx_popup_menu): Remove.
4756 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4757 menu_items (it's done in menu.c already).
4758
424d6179
SM
47592009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4760
4761 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4762 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4763
c0df13a6 47642009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4765
4766 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4767 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4768 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4769 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4770
2de9f71c
SM
47712009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4772
4773 Let integers use up 2 tags to give them one extra bit and thus double
4774 their range.
4775 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4776 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4777 New macros.
4778 (enum Lisp_Type): Use them. Give explicit values.
4779 (Lisp_Type_Limit): Remove.
4780 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4781 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4782 Pay attention to USE_2_TAGS_FOR_INTS.
4783 (INTEGERP): Use LISP_INT_TAG_P.
4784 * fns.c (internal_equal): Simplify the default case.
4785 (sxhash): Use case_Lisp_Int.
4786 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4787 any more.
4788 (Ftype_of): Use case_Lisp_Int.
4789 (store_symval_forwarding): Take into account the fact that Ints can
4790 now have more than one tag.
4791 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4792 buffer_slot_type_mismatch):
4793 * xfaces.c (face_attr_equal_p):
4794 * print.c (print_object):
4795 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4796 Use case_Lisp_Int.
4797
323637a2
EZ
47982009-11-06 Eli Zaretskii <eliz@gnu.org>
4799
7ac65b38
EZ
4800 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4801
323637a2
EZ
4802 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4803 warning.
4804
e511451f
JD
48052009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4806
4807 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4808
4809 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4810
4811 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4812 ButtonPressRelease and MotionNotify (bug#4870).
4813
5e2327cf
DN
48142009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4815
5adc433e
DN
4816 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4817
d67b4f80
DN
4818 * xterm.c (syms_of_xterm):
4819 * xselect.c (syms_of_xselect):
4820 * xmenu.c (syms_of_xmenu):
4821 * xfns.c (syms_of_xfns):
4822 * xfaces.c (syms_of_xfaces):
4823 * xdisp.c (syms_of_xdisp):
4824 * window.c (syms_of_window):
4825 * w32fns.c (syms_of_w32fns):
4826 * undo.c (syms_of_undo):
4827 * textprop.c (syms_of_textprop):
4828 * terminal.c (syms_of_terminal):
4829 * syntax.c (syms_of_syntax):
4830 * sound.c (syms_of_sound):
4831 * search.c (syms_of_search):
4832 * print.c (syms_of_print):
4833 * minibuf.c (syms_of_minibuf):
4834 * macros.c (syms_of_macros):
4835 * keymap.c (syms_of_keymap, initial_define_key)
4836 (initial_define_lispy_key):
4837 * keyboard.c (syms_of_keyboard):
4838 * insdel.c (syms_of_insdel):
4839 * image.c (syms_of_image):
4840 * fringe.c (syms_of_fringe):
4841 * frame.c (syms_of_frame):
4842 * fontset.c (syms_of_fontset):
4843 * fns.c (syms_of_fns):
4844 * fns.c (syms_of_fns):
4845 * fileio.c (syms_of_fileio):
4846 * fileio.c (syms_of_fileio):
4847 * eval.c (syms_of_eval):
4848 * doc.c (syms_of_doc):
4849 * dispnew.c (syms_of_display):
4850 * dired.c (syms_of_dired):
4851 * dbusbind.c (syms_of_dbusbind):
4852 * data.c (syms_of_data):
4853 * composite.c (syms_of_composite):
4854 * coding.c (syms_of_coding):
4855 * cmds.c (syms_of_cmds):
4856 * charset.c (define_charset_internal, syms_of_character):
4857 * ccl.c (syms_of_ccl):
4858 * category.c (syms_of_category, init_category_once):
4859 * casetab.c (syms_of_casetab):
4860 * casefiddle.c (syms_of_casefiddle):
4861 * callint.c (syms_of_callint):
4862 * bytecode.c (syms_of_bytecode):
4863 * buffer.c (keys_of_buffer, syms_of_buffer):
4864 * alloc.c (syms_of_alloc):
4865 * process.c (syms_of_process, init_process):
4866 * lread.c (syms_of_lread, init_obarray):
4867 * font.c (build_style_table):
4868 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4869 intern_c_string, calls to make_pure_string with
4870 make_pure_c_string. Use pure_cons instead of Fcons.
4871
5e2327cf
DN
4872 * process.c (socket_options): Make it const.
4873 (set_socket_option, init_process): Use a const pointer.
4874
4875 * lread.c (intern_c_string): New function.
4876 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4877 (defvar_int): Uset it. Make the name const char*.
4878
4879 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4880 (defvar_int): Update prototypes.
4881 (DEFUN, EXFUN): Support for prototypes is now required.
4882 (intern_c_string): New prototype.
4883 (struct Lisp_Subr): Make symbol_name constant.
4884
4885 * font.c (struct table_entry): Remove unused member. Make NAMES
4886 constant.
4887 (weight_table, slant_table, width_table): Make constant.
4888
4889 * emacs.c (struct standard_args): Make name and longname constant.
4890
4891 * character.h (DEFSYM): Use intern_c_string.
4892
a56eaaef
DN
48932009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4894
4895 * alloc.c (make_pure_c_string): New function.
4896
4897 * eval.c (Fautoload): Purecopy all arguments.
4898
f6a07420
KH
48992009-11-05 Kenichi Handa <handa@m17n.org>
4900
4901 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4902 the buffer in case of replace.
4903
5d28d4b1
DN
49042009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4905
4906 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4907
b349d111
SM
49082009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4909
d528b1ce
SM
4910 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4911 when applicable (bug#4851).
4912
b349d111
SM
4913 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4914 (P_): Support for prototypes is now required.
4915
c38eb027
CY
49162009-10-31 Chong Yidong <cyd@stupidchicken.com>
4917
4918 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4919 (Bug#4827).
4920
0405f8d9
EZ
49212009-10-30 Eli Zaretskii <eliz@gnu.org>
4922
d528b1ce 4923 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4924
ca0a881a
DN
49252009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4926
4927 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4928
d528b1ce
SM
4929 * lread.c (Fload): Purecopy the file name when building
4930 Vpreloaded_file_list.
ca0a881a 4931
47e0e0e4
JR
49322009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4933
4934 * w32fns.c (syms_of_w32fns): Change default value of
4935 w32-scroll-lock-modifier to nil. (Bug#2827)
4936
057bce6f
JB
49372009-10-26 Juanma Barranquero <lekktu@gmail.com>
4938
782a943e 4939 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4940
242bc74c
AS
49412009-10-26 Andreas Schwab <schwab@redhat.com>
4942
4943 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4944
522d013a
JB
49452009-10-26 Juanma Barranquero <lekktu@gmail.com>
4946
4947 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4948 For delta < 0, skip check that only makes sense when the mini-window
4949 is going to be enlarged. (Bug#4534)
4950
18060980
CY
49512009-10-25 Chong Yidong <cyd@stupidchicken.com>
4952
4953 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4954 string in menu maps (Bug#4471).
4955
fec8f0fe
CY
49562009-10-24 Chong Yidong <cyd@stupidchicken.com>
4957
4958 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4959 FRAME_NS_VIEW on terminal frames (Bug#4765).
4960
10d66ec0
AS
49612009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4962
1cae01f7
AS
4963 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4964 DBUS_TYPE_UINTnn separately to get proper sign extension.
4965
58a12889
AS
4966 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4967 can properly handle unsigned types.
d528b1ce 4968 (make_uid, make_gid): Remove.
58a12889 4969
987c9327
AS
4970 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4971 types again.
4972
522d013a 4973 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4974 (system_process_attributes): Likewise.
4975
905a9ed3
DN
49762009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4977
4978 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4979
4980 * eval.c (Fautoload): Purecopy the filename. Simplify.
4981
4982 * category.c (Fdefine_category): Purecopy docstring.
4983
a599b3e8
AS
49842009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4985
7b792fc9
AS
4986 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4987
a599b3e8
AS
4988 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4989
b35ac83e
CY
49902009-10-23 Chong Yidong <cyd@stupidchicken.com>
4991
4992 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4993 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4994 (Bug#4775).
4995
e8903e00
SM
49962009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4997
4998 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4999 (init_fileio_once):
5000 * lisp.h (init_fileio_once): Remove.
5001 * emacs.c (main): Don't call init_fileio_once.
5002
8f43cbf3
DN
50032009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5004
5005 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5006
26898943
AS
50072009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5008
5009 * doprnt.c (doprnt): Fix overflow check.
5010
5c646d5a
JD
50112009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5012
3132a7ea
JD
5013 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5014
5c646d5a
JD
5015 * xterm.h (x_wait_for_event): Declare it.
5016
5017 * xterm.c (pending_event_wait): New variable.
5018 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5019 see pending_event_wait.eventtype.
5020 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5021 (x_new_font): Call change_frame_size with new rows/columns before we
5022 try to resize the frame.
5c646d5a 5023 (x_wait_for_event): New function.
d528b1ce
SM
5024 (x_set_window_size_1): Don't change gravity unless change_gravity
5025 is set.
5c646d5a
JD
5026 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5027 don't change frame size, instead wait for the ConfigureNotify.
5028 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5029 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5030 (x_initialize): Initialize pending_event_wait.
5031
5032 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5033 size.
5034
5035 * widget.c (EmacsFrameSetValues): Add comment.
5036 (EmacsFrameSetCharSize): Just call x_set_window_size.
5037
5038 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5039 x_wait_for_event.
d528b1ce 5040 (flush_and_sync): Remove again.
5c646d5a
JD
5041 (xg_get_font_name): Suggest monospace if no previous font is known.
5042
e9c1637d
SM
50432009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5044
5045 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5046 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5047
5a72cccb
YM
50482009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5049
5050 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5051 processing pending events when event is filtered for input method.
ab04798f 5052 (Bug#3681)
5a72cccb 5053
2629aa37
JB
50542009-10-20 Juanma Barranquero <lekktu@gmail.com>
5055
5056 * fns.c: Add #endif accidentally removed in previous change.
5057
c3417a74
DN
50582009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5059
5060 * fns.c: Remove code for unsupported system: MAC_OS.
5061 * image.c: Likewise. Include setjmp.h.
5062
9685cef2
JD
50632009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5064
5065 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5066 pixel -1 (bug #4742).
5067
d7306fe6
DN
50682009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5069
019d2c4c
DN
5070 * process.c (create_pty): Remove conditionals for no longer
5071 supported systems: UNIPLUS and RTU.
5072
ee6bacd4
DN
5073 * xterm.c:
5074 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5075
d7306fe6
DN
5076 * alloc.c: Do not define struct catchtag.
5077 * eval.c: Move struct catchtag definition ...
5078 * lisp.h: ... here.
5079
5080 * image.c: Move png.h #include earlier to avoid warnings.
5081
5082 * xterm.c:
5083 * xsmfns.c:
5084 * xselect.c:
5085 * xrdb.c:
5086 * xmenu.c:
5087 * xftfont.c:
5088 * xfont.c:
5089 * xfns.c:
5090 * xfaces.c:
5091 * xdisp.c:
5092 * window.c:
5093 * widget.c:
5094 * w32xfns.c:
5095 * w32uniscribe.c:
5096 * w32term.c:
5097 * w32select.c:
5098 * w32reg.c:
5099 * w32proc.c:
5100 * w32menu.c:
5101 * w32inevt.c:
5102 * w32heap.c:
5103 * w32font.c:
5104 * w32fns.c:
5105 * w32console.c:
5106 * w32.c:
5107 * w16select.c:
5108 * vm-limit.c:
5109 * unexsol.c:
5110 * unexec.c:
5111 * unexcw.c:
5112 * unexaix.c:
5113 * undo.c:
5114 * tparam.c:
5115 * textprop.c:
5116 * terminfo.c:
5117 * terminal.c:
5118 * termcap.c:
5119 * term.c:
5120 * syntax.c:
5121 * sound.c:
5122 * sheap.c:
5123 * search.c:
5124 * scroll.c:
5125 * region-cache.c:
5126 * regex.c:
5127 * ralloc.c:
5128 * process.c:
5129 * print.c:
b024548b
DN
5130 * nsterm.m:
5131 * nsselect.m:
5132 * nsmenu.m:
5133 * nsimage.m:
5134 * nsfont.m:
5135 * nsfns.m:
d7306fe6
DN
5136 * msdos.c:
5137 * minibuf.c:
5138 * menu.c:
5139 * marker.c:
5140 * macros.c:
5141 * keymap.c:
5142 * keyboard.c:
5143 * intervals.c:
5144 * insdel.c:
5145 * indent.c:
5146 * gtkutil.c:
5147 * ftxfont.c:
5148 * ftfont.c:
5149 * fringe.c:
5150 * frame.c:
5151 * fontset.c:
5152 * font.c:
5153 * fns.c:
5154 * floatfns.c:
5155 * filelock.c:
5156 * fileio.c:
5157 * emacs.c:
5158 * editfns.c:
5159 * dosfns.c:
5160 * doprnt.c:
5161 * doc.c:
5162 * dispnew.c:
5163 * dired.c:
5164 * dbusbind.c:
5165 * data.c:
5166 * composite.c:
5167 * coding.c:
5168 * cmds.c:
5169 * cm.c:
5170 * chartab.c:
5171 * charset.c:
5172 * character.c:
5173 * ccl.c:
5174 * category.c:
5175 * casetab.c:
5176 * casefiddle.c:
5177 * callproc.c:
5178 * callint.c:
5179 * bytecode.c:
5180 * buffer.c:
5181 * atimer.c: Include setjmp.h. (Bug#4643)
5182
fd5f21e6
SM
51832009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5184
4c0354d7
SM
5185 Remove leftover table unibyte_to_multibyte_table.
5186 * character.c (unibyte_to_multibyte_table): Remove.
5187 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5188 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5189 * character.h (UNIBYTE_TO_CHAR): New macro.
5190 (MAKE_CHAR_MULTIBYTE): Use it.
5191 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5192 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5193 (message_dolog, set_message_1):
5194 * search.c (Freplace_match):
5195 * editfns.c (Fcompare_buffer_substrings):
5196 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5197 (concat):
5198 * insdel.c (copy_text, count_size_as_multibyte):
5199 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5200 * term.c (produce_glyphs):
5201 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5202 * regex.c (RE_CHAR_TO_MULTIBYTE):
5203 * cmds.c (internal_self_insert):
5204 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5205
fd5f21e6
SM
5206 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5207
4418646e
DN
52082009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5209
5210 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5211
35f5c1d2
JB
52122009-10-16 Juanma Barranquero <lekktu@gmail.com>
5213
5214 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5215
a0cd8f6b
AR
52162009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5217
5218 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5219 still needed under Tiger.
5220
5221 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5222
5223 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5224 __Apple__.
5225
5226 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5227
01a8d3fa
KH
52282009-10-15 Kenichi Handa <handa@m17n.org>
5229
5230 * print.c (print_object): Escape a symbol like "2E10" too.
5231
bf6c75c9 52322009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5233
5234 Cleanups and changes for 64-bit compile under Snow Leopard.
5235 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5236
5237 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5238
c5959062 5239 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5240 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5241 cast argument.
5242 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5243 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5244
5245 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5246
5247 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5248 where appropriate.
5249
5250 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5251 where appropriate.
6e4780c5
JB
5252 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5253 Use stringWithUTF8String.
bf6c75c9
AR
5254 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5255
6e4780c5
JB
5256 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5257 Add formal protocol mention to inheritance.
bf6c75c9
AR
5258 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5259
6e4780c5
JB
5260 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5261 Fix printf format.
bf6c75c9
AR
5262 (ns_query_color): Use CGFloat where appropriate.
5263 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5264 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5265 argument.
5266
3d87f118
AR
5267 * config.in (NS_HAVE_NSINTEGER): Drop.
5268
a95c8102
AR
5269 * dbusbind.c (dbus-method-return-internal)
5270 (dbus-method-error-internal): Use long format in printf, and cast
5271 argument.
5272
5273 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5274 in printf, and cast argument.
5275
6873acca 5276 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5277 cast argument.
5278
9ec6f100
GM
52792009-10-11 Glenn Morris <rgm@gnu.org>
5280
5281 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5282
5be883cd
JD
52832009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5284
5285 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5286 menu bar with a small width so it doesn't enlarge the frame.
5287
d7a39b51
JB
52882009-10-08 Juanma Barranquero <lekktu@gmail.com>
5289
5290 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5291
0c2b6f8e
GM
52922009-10-06 Glenn Morris <rgm@gnu.org>
5293
5294 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5295 SOME_MACHINE_LISP (this enters indirectly via DOC).
5296
e02131a2
EZ
52972009-10-05 Eli Zaretskii <eliz@gnu.org>
5298
5299 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5300
b4744254
EZ
53012009-10-04 Eli Zaretskii <eliz@gnu.org>
5302
5303 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5304 Doc fix.
5305
dbf64827
JB
53062009-10-03 Martin Rudalics <rudalics@gmx.at>
5307
5308 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5309
e9a0aef8
MA
53102009-10-02 Michael Albinus <michael.albinus@gmx.de>
5311
d528b1ce 5312 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5313 used anymore outside fileio.c.
5314
5315 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5316
64eb2b56
JB
53172009-10-01 Juanma Barranquero <lekktu@gmail.com>
5318
5319 * lisp.h (Qdelete_directory_internal):
5320 Declare, instead of Qdelete_directory.
5321
5322 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5323
9d28c33e
SM
53242009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5325
5326 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5327
9d8f3bd9
MA
53282009-10-01 Michael Albinus <michael.albinus@gmx.de>
5329
9d28c33e 5330 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5331 Fdelete_directory. It is not a command anymore. It has no file
5332 name handler.
5333
9694740b
SM
53342009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5335
5336 * xdisp.c (get_next_display_element): Use an enum in last change.
5337
748e162f
KH
53382009-09-28 Kenichi Handa <handa@m17n.org>
5339
9694740b 5340 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5341 unibyte_display_via_language_environment in handling
5342 Vnobreak_char_display.
5343
17efd58d
AR
53442009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5345
5346 * nsterm.h (ns_app_name): New extern variable.
5347
5348 * nsterm.m (ns_app_name): New variable.
5349 (ns_term_init): Set and use it.
5350 (ns_term_shutdown): Use it.
5351
5352 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5353 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5354
5355 * nsfns.m (ns_set_name_iconic, ns_set_name)
5356 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5357 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5358
9694740b
SM
5359 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5360 Remove double-casting in client_data comparison.
31c2d412 5361
3208cb35
YM
53622009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5363
5364 * keyboard.c (make_lispy_event): Remember last wheel direction.
5365 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5366
b7d552d6
GM
53672009-09-26 Glenn Morris <rgm@gnu.org>
5368
5369 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5370 internal.elc. Add term/pc-win.elc.
5371 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5372 term/x-win.elc.
5373 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5374 term/w32-win.elc.
5375 (NS_SUPPORT): New.
5376 (lisp): Add NS_SUPPORT.
5377 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5378
4ff670a8
DR
53792009-09-25 David Reitter <david.reitter@gmail.com>
5380
5381 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5382 on Mac OS X 10.6+ (bug#4513).
5383
feabfb6c
JB
53842009-09-24 Juanma Barranquero <lekktu@gmail.com>
5385
5386 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5387 some parts of Emacs code (like font selection) don't grok them.
5388 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5389
de59072a
AS
53902009-09-24 Andreas Schwab <schwab@redhat.com>
5391
5392 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5393
a489517b
JB
53942009-09-24 Juanma Barranquero <lekktu@gmail.com>
5395
5396 * dired.c (Fdirectory_files): Fix typo in docstring.
5397
0592970c
AR
53982009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5399
5400 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5401 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5402 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5403 under GNUstep.
5404 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5405
5406 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5407 glyph advancement.
5408
48e8a88b
AR
54092009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5410
5411 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5412 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5413
5414 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5415 deleted (bug #4492).
5416
e14f0a78
AR
5417 * nsfont.m (Vns_reg_to_script): New lisp variable.
5418 (syms_of_nsfont): Declare it.
5419 (ns_registry_to_script): New function.
5420 (ns_get_req_script): Call it.
5421 (ns_findfonts): Don't give up on non-unicode registry.
5422
5423 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5424
5b650faa
SM
54252009-09-20 Tom Tromey <tromey@redhat.com>
5426
5427 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5428 batch mode (bug#4228).
5429
a489517b 54302009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5431
5432 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5433 carefully. (Bug #4339)
0bae4e09 5434
fcfe06f3
CY
54352009-09-18 Chong Yidong <cyd@stupidchicken.com>
5436
d798ba87 5437 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5438
31642728
AR
54392009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5440
5441 * emacs.c (inhibit_x_resources): Update doc string for NS.
5442 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5443 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5444
5445 * nsterm.h (ns_no_defaults): Remove.
5446
5447 * nsterm.m (ns_no_defaults): Remove.
5448 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5449 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5450 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5451 don't update the NSWindow itself.
5452 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5453 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5454
5455 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5456 ns_use_qd_smoothing.
5457
5458 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5459 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5460 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5461 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5462
8686ac71
JB
54632009-09-17 Juanma Barranquero <lekktu@gmail.com>
5464
5465 * emacs.c (inhibit_x_resources): New variable.
5466 (main) [HAVE_NS]: Don't process --quick command line option.
5467 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5468
5469 * lisp.h (inhibit_x_resources): Declare it extern.
5470
5471 * w32reg.c (x_get_string_resource):
5472 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5473
e227ba05
EZ
54742009-09-17 Eli Zaretskii <eliz@gnu.org>
5475
362654a6
JB
5476 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5477 Add lisp/term/internal.elc.
e227ba05 5478
742d40e8
SM
54792009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5480
5481 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5482 (bug#4461).
5483
005bd5a2
DN
54842009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5485
5486 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5487
5488 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5489 (OBJECTS_MACHINE): Remove, unused.
5490
f9af9719
SM
54912009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5492
5493 * frame.c (x_get_resource_string): Remove unused.
5494
0307c7d2
JD
54952009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5496
5497 * xterm.c (x_new_font): Call change_frame_size before calling
5498 x_set_window_size, in case frame size won't change.
5499
5500 * frame.c (x_set_font): Remove dead code.
5501
428b13d6
SM
55022009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5503
5504 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5505
5766c380
SM
55062009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5507
5508 * lread.c (Fload): Don't output a message after loading an obsolete
5509 package any more (done in Lisp now).
5510
2fd0161b
CY
55112009-09-12 Chong Yidong <cyd@stupidchicken.com>
5512
5513 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5514
bc5e75b6
SM
55152009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5516
5517 * keymap.c (Fwhere_is_internal): Use nconc2.
5518
c31c985e
AM
55192009-09-11 Alan Mackenzie <acm@muc.de>
5520
5521 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5522 batch mode.
5523
78012bd2
AS
55242009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5525
5526 * xdisp.c (display_mode_element): Detect cycles.
5527
9d889332
SM
55282009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5529
5530 * keymap.c (where_is_internal): Don't erroneously return nil right after
5531 filling the cache.
5532 (where_is_internal_1): Fix up typo.
5533
7ab5d780
GM
55342009-09-11 Glenn Morris <rgm@gnu.org>
5535
5536 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5537 share a common doc-string.
5538
5238a749
SM
55392009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5540
66d77eda
SM
5541 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5542 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5543
5238a749
SM
5544 * keymap.c (QCadvertised_binding): New constant.
5545 (syms_of_keymap): Initialize it.
5546 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5547 if applicable.
5548
19f48442
SM
55492009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5550
50d4ba39
SM
5551 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5552 (parse_menu_item): Streamline since bindings are recomputed all the
5553 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5554 more and don't support lmenu's menu-alias any more either.
5555
a88a5372
SM
5556 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5557 (where_is_internal): Strip it down to only traverse the keymaps.
5558 Move the cache handling from Fwhere_is_internal to here.
5559 (Fwhere_is_internal): Move the handling of remapping and the choice of
5560 the best binding from where_is_internal to here.
5561 Unify the cached/noncached paths, so remapping is also handled
5562 correctly when the cache is used, and so the cache can be used to
5563 speed up remap-handling when applicable.
5564 Give preference to non-remapped bindings.
5565 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5566 non-remapped bindings.
5567 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5568 command remapping.
5569
19f48442
SM
5570 * xdisp.c (display_mode_element): Move list length limit from 50 to
5571 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5572
599498c3 55732009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5574
5575 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5576
f9b7b5ac
SM
55772009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5578
a53af587
JB
5579 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5580 (Bug#4334)
5581
f9b7b5ac
SM
5582 * keymap.c (where_is_internal): Filter out shadowed remappings.
5583 Assume that where_is_internal returns unshadowed bindings to simplify
5584 the code and get rid of the gotos. Use ASIZE.
5585
04f4b72d
JD
55862009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5587
4da146f2
JD
5588 * xterm.c (x_focus_changed): If we get a focusout and pointer
5589 is invisible, make it visible.
5590
04f4b72d
JD
5591 * xterm.h: Remove condition for declaration of
5592 x_*_window_to_frame.
5593
7cef7ce3
SM
55942009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5595
5596 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5597 initial terminal as well.
5598
a54fa5b7
JD
55992009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5600
5601 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5602 x_menubar_window_to_frame.
a54fa5b7 5603
50426a04 5604 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5605 (XTmouse_position): Do not return valid positions
5606 for clicks in the menubar and the toolbar for Gtk+.
5607
5608 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5609 if the widget for the event has the same top level as a frame,
5610 return the frame.
5611 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5612 internal windows, bug #4122.
5613 (x_non_menubar_window_to_frame): Remove.
5614
5a021dd0
GM
56152009-09-02 Glenn Morris <rgm@gnu.org>
5616
5617 * buffer.c (default-major-mode): Move most of the doc from here...
5618 (major-mode): ... to here.
5619
548fe2f3
NR
56202009-08-30 Nick Roberts <nickrob@snap.net.nz>
5621
5622 * process.c (wait_reading_process_output): Keep the descriptor
5623 when pty is used by a non-child process, e.g., in I/O buffer of
5624 GDB this allows inferior to be restarted.
5625
e0840eef
EZ
56262009-08-29 Eli Zaretskii <eliz@gnu.org>
5627
5628 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5629 both branches into one.
5630
82e98df4
SM
56312009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5632
5633 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5634 (main): Use enable-multibyte-characters rather than
5635 default-enable-multibyte-characters. Output a warning message when
5636 running a unibyte session.
5637
890617cb
YM
56382009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5639
5640 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5641 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5642 (copy_data_segment): Also copy __program_vars section.
5643 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5644 (dump_it) [LC_DYLD_INFO]: Use it.
5645
5646 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5647
e7adeadc
EZ
56482009-08-28 Eli Zaretskii <eliz@gnu.org>
5649
5650 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5651 $(SRC)/buildobj.h.
5652 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5653 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5654 $(SRC)/buildobj.h.
5655 (clean): Add buildobj.h.
5656
3ed8bbdc
TZ
56572009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5658
5659 * print.c (print_object): Set escapeflag to 1 when printing
5660 hashtable keys and values.
5661
155a6764
SM
56622009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5663
5664 * lread.c (read_integer): Use doubles (and potentially return a float
5665 number) as we do in string-to-number.
5666 (read1): Use strtol to read integers, signal errors on strtol's
5667 overflow and use floats if strtol's output is too large for
5668 Elisp integers.
5669
877610de
EZ
56702009-08-27 Eli Zaretskii <eliz@gnu.org>
5671
5672 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5673 (make-buildobj-SH): Fix last change.
5674 (SRC): Move to before where it's first used.
5675
ef73e7be
KH
56762009-08-27 Kenichi Handa <handa@m17n.org>
5677
550c8289
KH
5678 * process.c (send_process): Use encode_coding_object instead of
5679 encode_coding_string to perform eol-conversion even if the string
5680 is unibyte.
5681
60afa08d
KH
5682 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5683 character.
5684
ef73e7be 5685 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5686 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5687
7b3a82d7
DN
56882009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5689
5654bf63
DN
5690 * callproc.c (Fcall_process): Remove always true #if.
5691
7b3a82d7
DN
5692 * lisp.h: Replace #if 0 code for checking with text pointing to
5693 the --enable-checking configure flag.
5694
5695 * emacs.c (main): Mention the --enable-profiling configure flag
5696 instead of using CFLAGS.
5697
878bde49
KR
56982009-08-26 Ken Raeburn <raeburn@raeburn.org>
5699
5700 * Makefile.in (buildobj.h): New target.
5701 (doc.o): Depend on it.
5702 (temacs${EXEEXT}): Don't generate buildobj.lst.
5703 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5704 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5705 ($(BLD)/doc.$(O)): Depend on it.
5706 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5707 provided by Eli Zaretskii.)
5708 ($(TEMACS)): Don't generate buildobj.lst.
5709 * doc.c: Include buildobj.h.
5710 (buildobj): New static variable.
5711 (Fsnarf_documentation): Use it, instead of opening and reading
5712 buildobj.lst.
5713
1574224c
MA
57142009-08-25 Michael Albinus <michael.albinus@gmx.de>
5715
5716 * dbusbind.c (Fdbus_call_method)
5717 (Fdbus_call_method_asynchronously): Use English numeric format for
5718 timeout values in doc string.
5719
d9da2f45
KH
57202009-08-25 Kenichi Handa <handa@m17n.org>
5721
ef73e7be
KH
5722 * alloc.c (mark_char_table): New function.
5723 (mark_object): Use mark_char_table for a char-table.
5724
d9da2f45
KH
5725 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5726 (CHAR_TABLE_REF): Use it.
5727
c8edcc01
KR
57282009-08-23 Ken Raeburn <raeburn@raeburn.org>
5729
5730 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5731 before invoking the newly build emacs to check for load-path
5732 shadowing.
5733
7763401b
GM
57342009-08-22 Glenn Morris <rgm@gnu.org>
5735
5736 * Makefile.in (bootstrap_exe): New variable.
5737 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5738 Use ${bootstrap_exe}.
5739
729eadda
EZ
57402009-08-22 Eli Zaretskii <eliz@gnu.org>
5741
5742 * coding.h (encode_coding_string): Don't encode unibyte strings.
5743 (Bug#4047)
5744
eb4c6ace
MA
57452009-08-22 Michael Albinus <michael.albinus@gmx.de>
5746
5747 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5748
5749 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5750 intended as hotfix only.
5751 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5752
36e34d1b
AR
57532009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5754
5755 * nsterm.m (ns_get_color): Update documentation properly for last
5756 change, and clean up loose ends in the code left by it. Fix
5757 longstanding bug with 16-bit hex parsing, and add support for
5758 yet another X11 format (rgb:r/g/b) for compatibility.
5759 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5760 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5761
f983eb8a
SM
57622009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5763
5764 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5765
3f56d3c6
MA
57662009-08-20 Michael Albinus <michael.albinus@gmx.de>
5767
5768 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5769 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5770 (xd_initialize, xd_pending_messages): Check, whether
5771 $DBUS_SESSION_BUS_ADDRESS is set.
5772
fb641d68
YM
57732009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5774
5775 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5776
5777 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5778
cf59a374
GM
57792009-08-20 Glenn Morris <rgm@gnu.org>
5780
5781 * emacs.c (system-type): Doc fix.
5782
1373f3be
SM
57832009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5784
5785 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5786 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5787
058ed861
MA
57882009-08-18 Michael Albinus <michael.albinus@gmx.de>
5789
1373f3be
SM
5790 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5791 New functions.
058ed861
MA
5792 (xd_initialize): Revert change from 2009-08-16.
5793
563a866e 57942009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5795
5796 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5797 font-group vector, return nil.
5fc05db0 5798
e42bdf01
CY
57992009-08-17 Chong Yidong <cyd@stupidchicken.com>
5800
5801 * process.c (status_notify): Don't perform redisplay.
5802 (Fdelete_process, list_processes_1, process_send_signal):
5803 Expliticly perform redisplay.
5804 (wait_reading_process_output): Always check process status, but
5805 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5806
4230ab74
KR
58072009-08-17 Ken Raeburn <raeburn@raeburn.org>
5808
1373f3be 5809 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5810 (XFLOAT_INIT): New macro for storing a float value.
5811 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5812 * fns.c (sxhash): Copy out the value of a float in order to
5813 examine its bytes.
5814 * dbusbind.c (xd_append_arg): Likewise.
5815
4230ab74
KR
5816 * emacs.c (main): Don't call syms_of_data twice.
5817
a0645cdd
MA
58182009-08-16 Michael Albinus <michael.albinus@gmx.de>
5819
5820 * dbusbind.c (xd_initialize): Add connection file descriptor to
5821 input_wait_mask, in order to let select() detect, whether a new
5822 message has been arrived.
ca4f31ea 5823 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5824
485db0ba
MA
58252009-08-15 Michael Albinus <michael.albinus@gmx.de>
5826
1373f3be
SM
5827 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5828 New functions.
485db0ba
MA
5829
5830 * lisp.h (xd_pending_messages): Declare.
5831
5832 * keyboard.c (readable_events): Call xd_pending_messages.
5833
b5b98ff4
CY
58342009-08-15 Chong Yidong <cyd@stupidchicken.com>
5835
1373f3be 5836 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5837
f8354c6e
CY
5838 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5839
b5b98ff4
CY
5840 * buffer.c (set_buffer_internal_1)
5841 (swap_out_buffer_local_variables): Check for unbound local
5842 variables (Bug#4138).
5843
8b9fc636
EZ
58442009-08-14 Eli Zaretskii <eliz@gnu.org>
5845
5846 * process.c (create_pty): Fix last change.
5847
ce959360
CY
58482009-08-13 Chong Yidong <cyd@stupidchicken.com>
5849
5850 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5851 (xbm_load_image): Caller changed.
64b807c9 5852 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5853
c7baf7e9
NR
58542009-08-13 Nick Roberts <nickrob@snap.net.nz>
5855
5856 * process.c (create_pty): New function.
5857 (Fstart_process): Use it to allow Emacs to just associate a pty
5858 with the buffer. See associated change in gdb-mi.el.
5859 (list_processes_1): Deal with no program name.
5860 (start_process_unwind): Use pid == -2 to mean no process.
5861
1ac9108a
SM
58622009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5863
5864 * cmds.c (nonundocount): New global variable.
5865 (keys_of_cmds): Initialize it.
5866 (Fself_insert_command): Use it to combine upto 20 sequential chars
5867 into a single undo entry, just like the Qself_insert_command code in
5868 keyboard.c does.
5869 Call frame_make_pointer_invisible, also like the Qself_insert_command
5870 code in keyboard.c does.
5871 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5872 than its own local replacement for it.
5873
e267324c
KR
58742009-08-10 Ken Raeburn <raeburn@raeburn.org>
5875
1ac9108a 5876 * fns.c (concat): Don't re-set string length to its current value.
77437343 5877
1ac9108a
SM
5878 * coding.h (decode_coding_string, encode_coding_string):
5879 Use SBYTES macro.
f0bed503 5880
1ac9108a 5881 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5882 (doprnt): Merge with doprnt1, discarding lispstrings code.
5883 * lisp.h (doprnt_lisp): Don't declare.
5884
416e006d
JL
58852009-08-07 Juri Linkov <juri@jurta.org>
5886
5887 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5888
6f7d5780
DN
58892009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5890
5891 * print.c (syms_of_print): Undo previous change.
5892
f19a0f5b
TZ
58932009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5894
5895 * lread.c (read1, syms_of_lread): Read hashtables back from the
5896 readable format.
5897
5898 * print.c (print_preprocess, print_object): Print hashtables fully
5899 and readably.
5900 (syms_of_print): Provide 'hashtable-print-readable.
5901
b9173dc2
AR
59022009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5903
5904 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5905 no family set.
5906 (nsfont_open): Handle case when entity has no family.
5907
1586503c
AR
59082009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5909
5910 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5911 element, not a list, for match case.
5912
087048cd
KH
59132009-07-28 Kenichi Handa <handa@m17n.org>
5914
5915 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5916 rigidly.
5917
5918 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5919 font_parse_xlfd. Check font properties more rigidly.
5920
780c2506
DN
59212009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5922
31fd7c5c
JB
5923 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5924 bsd-common.h.
780c2506 5925
a8c0cc18
KH
59262009-07-27 Kenichi Handa <handa@m17n.org>
5927
5928 * xfaces.c (face_with_height): Call font_clear_prop.
5929
4fbe2306
CY
59302009-07-26 Chong Yidong <cyd@stupidchicken.com>
5931
111d9af3
CY
5932 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5933
5934 * xterm.c (x_term_init): Use Qx.
5935
4fbe2306
CY
5936 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5937
1ac9108a 5938 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5939 (ns_get_color): Revert 2009-07-16 change.
5940
beb0b7f9
EZ
59412009-07-25 Eli Zaretskii <eliz@gnu.org>
5942
5943 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5944 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5945
2baf5e76
KR
59462009-07-25 Ken Raeburn <raeburn@raeburn.org>
5947
1ac9108a
SM
5948 * coding.h (decode_coding_string, encode_coding_string):
5949 Use SCHARS macro.
8890e5f5 5950
2baf5e76 5951 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5952 (load_depth): Delete.
2baf5e76
KR
5953 (Qload_in_progress): New variable.
5954 (load_unwind): Don't reference load_depth or load_in_progress.
5955 (Fload): Likewise; specbind Qload_in_progress instead.
5956 (init_lread): Don't initialize load_depth.
5957 (syms_of_lread): Initialize and protect Qload_in_progress.
5958
1395c6f5
AR
59592009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5960
5961 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5962
4e2f36cf
AR
59632009-07-23 Yavor Doganov <yavor@gnu.org>
5964
5965 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5966
5dd9a6f7
AR
59672009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5968
5969 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5970 Bugs 3792, 3720, 2402.
5971 (ns_lookup_indexed_color): Check for bad index.
5972 (ns_index_color): Init unused slot to 0.
5973 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5974 Bug 3714, possibly 3082.
5dd9a6f7 5975
c902b920
JR
59762009-07-22 Jason Rumney <jasonr@gnu.org>
5977
1ac9108a
SM
5978 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5979 Position IME window at cursor (Bug#2570).
c902b920
JR
5980 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5981 (globals_of_w32fns): Dynamically load functions required above.
5982
5983 * w32term.c (w32_draw_window_cursor): Send message to reposition
5984 any IME window.
5985
090101cf
CY
59862009-07-21 Chong Yidong <cyd@stupidchicken.com>
5987
5988 * fileio.c: Revert 2009-07-16 changes.
5989 (Vauto_save_include_big_deletions): New variable.
5990 (Fdo_auto_save): Disable auto-save only if
5991 auto-save-include-big-deletions is nil.
5992
e6583e3d
CY
59932009-07-21 Chong Yidong <cyd@stupidchicken.com>
5994
5995 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5996 the overflowed pixels into account (Bug#3879).
5997
ece435a5
KR
59982009-07-21 Ken Raeburn <raeburn@raeburn.org>
5999
6000 * lread.c (load_depth): New variable.
6001 (Fload, load_unwind, init_lread): Set it to the load recursion
6002 depth; set load_in_progress as a simple boolean based on the
6003 current load_depth. (Bug#3892)
6004
40b2d973
AR
60052009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6006
6007 * nsfont.m (ns_has_attribute): Remove.
6008 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6009
10be7e0d
JL
60102009-07-18 Juri Linkov <juri@jurta.org>
6011
6012 * process.c (Fset_process_query_on_exit_flag): Mention killing
6013 a buffer in docstring.
6014
fa055055
KH
60152009-07-17 Kenichi Handa <handa@m17n.org>
6016
6017 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6018
042f7b69
YM
60192009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6020
6021 * nsfns.m (Fns_set_alpha): Remove function.
6022 (syms_of_nsfns): Don't defsubr it.
6023
6024 * nsterm.m (ns_get_color): Remove incompatible color formats.
6025 (ns_color_to_lisp): Generate #rrggbb color format string.
6026
4be941e3
RS
60272009-07-16 Richard Stallman <rms@gnu.org>
6028
6029 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6030 (Fset_buffer_auto_saved): Handle save_length = -2.
6031
4e6b227d
CY
60322009-07-16 Chong Yidong <cyd@stupidchicken.com>
6033
6034 * xterm.c (Qx_gtk_map_stock): New var.
6035
6036 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6037 of calling intern each time.
6038
a1856973
YM
60392009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6040
6041 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6042 does tiling.
6043
6044 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6045
497e54d8
KH
60462009-07-14 Kenichi Handa <handa@m17n.org>
6047
72d36834
KH
6048 * font.c (font_vconcat_entity_vectors): New function.
6049 (struct font_sort_data): New member font_driver_preference.
6050 (font_compare): Check font_driver_preference.
6051 (font_sort_entities): The format of the first argument changed.
6052 (font_delete_unmatched): Likewise.
6053 (font_list_entities): The return type changed.
6054 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6055 (font_find_for_lface): Adjuste for the above changes.
6056 Don't suppress the checking of C even if the repertory supports it.
6057 (Flist_fonts): Adjust for the above changes.
72d36834 6058
1ac9108a
SM
6059 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6060 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6061 Reject a font who has adstyle property that is different from a
6062 langname derived from registry property.
1ac9108a 6063 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6064
b6046155
EZ
60652009-07-13 Eli Zaretskii <eliz@gnu.org>
6066
6067 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6068 local copy of dirfilename.
6069
fb6b6049
KH
60702009-07-13 Kenichi Handa <handa@m17n.org>
6071
e2402a5e
KH
6072 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6073 against max_char.
6074
fb6b6049
KH
6075 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6076 calling XSYMBOL (sym).
6077
65156807
EZ
60782009-07-11 Eli Zaretskii <eliz@gnu.org>
6079
1ac9108a
SM
6080 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6081 New function.
6082 (directory_files_internal) [WINDOWSNT]:
6083 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6084 the filesystem of the directory is fast or slow.
6085
6086 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6087 file name.
6088 (is_slow_fs): New function.
6089 (stat): Use it to determine whether to issue more system calls to
6090 get accurate file attributes, when w32-get-true-file-attributes is
6091 `local'.
6092
e0ab5fcf
JD
60932009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6094
6095 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6096 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6097 parameter font-parameter as default to the font dialog.
6098
784ceded
KH
60992009-07-10 Kenichi Handa <handa@m17n.org>
6100
6101 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6102
fb8edc0b
EZ
61032009-07-09 Eli Zaretskii <eliz@gnu.org>
6104
1ac9108a 6105 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6106
fb8edc0b
EZ
6107 * w32.c (stat): Treat UNC file names as residing on remote
6108 drives. (Bug#3542)
6109
635c75b1
KH
61102009-07-09 Kenichi Handa <handa@m17n.org>
6111
6112 * fontset.c (fontset_find_font): Fix previous change.
6113
c1d5ce94
MA
61142009-07-08 Michael Albinus <michael.albinus@gmx.de>
6115
6116 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6117 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6118 error flag.
6119
edb61b39
KH
61202009-07-08 Kenichi Handa <handa@m17n.org>
6121
374bf7e4
KH
6122 * fontset.c (fontset_find_font): Fix the logic of handling
6123 charset_matched.
6124 (font_for_char): Delete unused var.
6125 (generate_ascii_font_name): Delete it.
6126
edb61b39
KH
6127 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6128
6129 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6130 (encode_coding_sjis): Fix the code range check.
6131
0f3f018c
CY
61322009-07-07 Chong Yidong <cyd@stupidchicken.com>
6133
6134 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6135 (Fexpand_file_name): Copy string data properly (Bug#3772).
6136
fcaf6f3a
JD
61372009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6138
6139 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6140 first MapNotify.
6141
6809ca75
KH
61422009-07-07 Kenichi Handa <handa@m17n.org>
6143
6144 * character.h (unibyte_has_multibyte_table): Delete extern.
6145 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6146
6147 * charset.c (Fset_charset_priority): Update charset_unibyte.
6148 (syms_of_charset): Initialize charset_unibyte.
6149
6150 * character.c (unibyte_has_multibyte_table): Delete it.
6151 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6152 charset_unibyte.
6153 (multibyte_char_to_unibyte_safe): Likewise.
6154 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6155
1ac9108a 6156 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6157 (x_produce_glyphs): Likewise.
6158
6159 * .gdbinit (xcharset): Fix the treating $arg0.
6160
ad9e2d54
EZ
61612009-07-04 Eli Zaretskii <eliz@gnu.org>
6162
6163 Emulation of `getloadavg' on MS-Windows.
50426a04 6164 * w32.c: Include float.h.
ad9e2d54
EZ
6165 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6166 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6167 (get_native_system_info, get_system_times): New functions.
6168 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6169 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6170 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6171 g_b_init_get_system_times, and num_of_processors.
6172
0a3472c7
JR
61732009-07-03 Jason Rumney <jasonr@gnu.org>
6174
6175 * w32term.c (w32_initialize): Use standard types.
6176
80904120
EZ
61772009-07-03 Eli Zaretskii <eliz@gnu.org>
6178
6179 * dired.c (Ffile_attributes): Decode user and group names by the
6180 locale's encoding. (Bug#3443)
6181
6978862d
DN
61822009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6183
f8d23104
DN
6184 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6185 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6186
6187 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6188
6189 * term.c (init_tty): Remove spurious #ifdef.
6190
6978862d
DN
6191 * m/mips.h: Mention this file is also used for netbsd.
6192 * m/pmax.h: Remove file.
6193
e044e4fc
JD
61942009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6195
6196 * xterm.h (struct x_display_info): Add invisible_cursor.
6197 (struct x_output): Add current_cursor.
6198
6199 * xterm.c (XTtoggle_invisible_pointer): New function.
6200 (x_define_frame_cursor): Don't define cursor if invisible or the
6201 same as before. Set current_cursor.
6202 (x_create_terminal): Set toggle_invisible_pointer_hook.
6203
6204 * xfns.c (make_invisible_cursor): New function.
6205 (x_set_mouse_color): Call make_invisible_cursor.
6206 Set current_cursor.
6207 (x_window): Set current_cursor.
6208
6209 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6210
6211 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6212 inserting a character.
6213 (read_avail_input): Call frame_make_pointer_visible.
6214
6215 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6216 (frame_make_pointer_invisible, frame_make_pointer_visible):
6217 New functions.
e044e4fc
JD
6218 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6219
6220 * frame.h: Declare frame_make_pointer_invisible and
6221 frame_make_pointer_visible.
6222 (struct frame): Add pointer_invisible.
6223
574c8efa
JD
62242009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6225
7b507248
JD
6226 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6227 frame isn't visible.
6228 (xg_frame_resized): If width/height is -1, get size of window
6229 from X server.
6230
6231 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6232 for MapNotify.
6233
835bdaa7 6234 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6235 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6236 (flush_and_sync): Reintroduce.
574c8efa 6237
3f1c6666 62382009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6239
31fd7c5c 6240 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6241
6242 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6243 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6244
6245 * frame.h: Declare Qsticky.
6246
cad9ef74
JD
6247 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6248
6249 * nsfns.m (ns_frame_parm_handlers): Ditto.
6250
6251 * frame.c: Declare Qsticky.
6252 (frame_parms): Add sticky.
6253
6254 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6255
6256 * xterm.h: Declare x_set_sticky.
6257
6258 * xterm.c (x_set_sticky): New function.
6259
69b16610
JD
6260 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6261 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6262 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6263
6264 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6265
6266 * frame.c: Qmaximized is new.
6267 (x_set_frame_parameters): Do not handle fullscreen specially.
6268 Only set width and height if explicitly set.
6269 (x_set_fullscreen): Handle Qmaximized.
6270 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6271 (syms_of_frame): Initialize Qmaximized.
6272
1ac9108a
SM
6273 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6274 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6275
6276 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6277 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6278 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6279 set gravity to NorthWestGravity when USE_GTK.
6280 (set_wm_state): New function.
31fd7c5c 6281 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6282 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6283 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6284 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6285 to x_real_positions and x_fullscreen_adjust.
6286
6287 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6288 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6289 flush_and_sync.
6290 (xg_height_changed): New function.
6291 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6292 and gtk_window_set_policy. Set frame gravity after parsing the
6293 geometry string.
3f1c6666
JD
6294 (xg_update_frame_menubar, free_frame_menubar)
6295 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6296 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6297 Remove calls to xg_frame_set_char_size.
6298
fd503d99
KH
62992009-07-01 Kenichi Handa <handa@m17n.org>
6300
6301 * keyboard.c (decode_keyboard_code): New function.
6302 (tty_read_avail_input): Decode the input bytes if necessary.
6303
1ac9108a
SM
6304 * coding.c (setup_coding_system):
6305 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6306 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6307 use Qno_conversion.
6308
24ed93fb
YM
63092009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6310
6311 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6312
99061dfc
CY
63132009-06-30 Chong Yidong <cyd@stupidchicken.com>
6314
1ac9108a 6315 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6316
ff90fbde
JR
63172009-06-30 Jason Rumney <jasonr@gnu.org>
6318
6319 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6320 is already loaded.
6321 Set user model ID if supported (bug#1849).
6322
5f445726
JM
63232009-06-29 Jim Meyering <meyering@redhat.com>
6324
6325 Remove useless if-before-xfree test.
6326 * nsfont.m (nsfont_close): Remove useless test.
6327 * term.c (delete_tty): Likewise.
6328 * w32.c (system_process_attributes): Likewise.
6329 * w32font.c (w32font_close): Likewise.
6330 * xfaces.c (x_free_gc): Likewise.
6331 * xselect.c (buffer): Likewise.
6332
b9607587
AS
63332009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6334
6335 * process.c (send_process): Keep decoded string in a local
6336 variable and protect it from GC. (Bug#3521)
6337
89ba96f4
EZ
63382009-06-28 Eli Zaretskii <eliz@gnu.org>
6339
6340 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6341 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6342
098a1589
CY
63432009-06-28 Chong Yidong <cyd@stupidchicken.com>
6344
485422be
CY
6345 * xdisp.c (start_display, handle_face_prop)
6346 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6347 (redisplay_window, try_window_id, produce_image_glyph):
6348 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6349
098a1589
CY
6350 * xterm.c (x_update_window_begin, x_new_focus_frame)
6351 (x_scroll_bar_handle_click, handle_one_xevent)
6352 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6353 (x_make_frame_visible, x_make_frame_invisible)
6354 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6355 code chunks that are now obsolete.
6356
78c38319
MA
63572009-06-28 Michael Albinus <michael.albinus@gmx.de>
6358
6359 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6360 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6361 for hours, when optimzation is enabled.
6362 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6363 (xd_read_message): Make them static.
6364
4189ed40
CY
63652009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6366
6367 * term.c (turn_on_face): Allow simultaneously bold and dim
6368 terminal faces (Bug#3530).
6369
cd9b5e16
CY
63702009-06-27 Chong Yidong <cyd@stupidchicken.com>
6371
4e23bedb
CY
6372 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6373
cd9b5e16
CY
6374 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6375 truncation glyphs (Bug#3686).
6376
07cc3c35
GM
63772009-06-27 Glenn Morris <rgm@gnu.org>
6378
6379 * m/pmax.h: Restore file, with only netbsd portions.
6380
31fd7c5c 63812009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6382
cd9b5e16 6383 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6384
42d4a64f
KH
63852009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6386
6387 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6388 the arg FORCE_SYMBOL.
6389
930fe55b 63902009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6391
6392 * fontset.c (fontset_find_font): When a usable rfont_def is found
6393 in a fallback font-group, make it the first element of the group.
6394
57ebc3fd
CY
63952009-06-24 Chong Yidong <cyd@stupidchicken.com>
6396
6397 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6398
f084f942
KH
63992009-06-24 Kenichi Handa <handa@m17n.org>
6400
6401 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6402 set for C.
6403 (fontset_font): Record the availability of a font for C both in
6404 the realized fontsets of the current one and the default one.
6405
2f686c87
DN
64062009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6407
6408 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6409 conditional, it is always defined on AIX.
6410
666e158e
MB
64112009-06-23 Miles Bader <miles@gnu.org>
6412
6413 * window.c (Vrecenter_redisplay): New variable.
6414 (syms_of_window): Initialize it.
6415 (Qtty): New extern declaration.
6416 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6417
c6da7cd2
JM
64182009-06-23 Jim Meyering <meyering@redhat.com>
6419
1ac9108a
SM
6420 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6421 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6422 pointer dereferences are guaranteed to be valid.
c6da7cd2 6423
678dca3d
KH
64242009-06-23 Kenichi Handa <handa@m17n.org>
6425
74d75424
KH
6426 * emacs.c (main): Call init_font ().
6427
6428 * font.h (Vfont_log): Extern it.
6429 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6430
6431 * font.c (font_sort_entities, font_list_entities)
6432 (font_matching_entity, font_open_entity)
6433 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6434 (Vfont_log): Delete static.
6435 (font_log_env_checked): Delete this variable.
6436 (font_add_log): Don't check font_log_env_checked.
6437 (font_deferred_log): Check Vfont_log.
6438 (init_font): New function.
6439
678dca3d
KH
6440 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6441
6442 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6443
6444 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6445
6446 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6447
6448 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6449 (face_for_char): Don't call font_deferred_log here.
6450 (font_for_char): Likewise.
6451
8a668709
CY
64522009-06-22 Chong Yidong <cyd@stupidchicken.com>
6453
9a01ee33
CY
6454 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6455 rather than its background_width for drawing the overline and
6456 underline (Bug#489).
6457
6458 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6459 rather than its background_width for drawing the overline and
6460 underline (Bug#489).
ec7c9926
CY
6461 (xg_default_icon_file): New variable.
6462 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6463 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6464
8a668709
CY
6465 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6466 (load_overlay_strings): Remove externs.
6467 (fast_find_position): Function deleted.
6468 (mouse_face_from_buffer_pos): New function, based on
6469 fast_find_position. Correctly handle before-strings,
6470 display-strings, and after-strings (Bug#1220).
6471 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6472
4d4c02d8
CY
64732009-06-21 Chong Yidong <cyd@stupidchicken.com>
6474
1ac9108a 6475 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6476 (move_it_in_display_line_to, move_it_in_display_line_to)
6477 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6478
70243478
CY
64792009-06-21 Chong Yidong <cyd@stupidchicken.com>
6480
6481 * Branch for 23.1.
6482
13087e59
JR
64832009-06-21 Jason Rumney <jasonr@gnu.org>
6484
6485 * w32term.c (keyboard_codepage): New static variable.
6486 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6487 (w32_read_socket) [WM_CHAR]: Use it to decode character
6488 input (bug#3237).
6489 (w32_initialize): Initialize it.
6490 (codepage_for_locale): New function.
6491
4735b74e
KR
64922009-06-20 Ken Raeburn <raeburn@raeburn.org>
6493
6494 * process.c (status_message): Pass Faset index argument as a lisp
6495 object, so as to work with USE_LISP_UNION_TYPE.
6496
0e727afa
YM
64972009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6498
6499 * coding.c (Ffind_coding_systems_region_internal):
6500 Cache checked characters.
6501
cf299835
KH
65022009-06-18 Kenichi Handa <handa@m17n.org>
6503
1ac9108a 6504 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6505
90f20d94
AS
65062009-06-18 Andreas Schwab <aschwab@redhat.com>
6507
6508 * xdisp.c (redisplay_internal): Check that the frame is still
6509 live after redisplay of its windows.
6510 (redisplay_windows): Check that the window is still live.
6511
7f1faf1c
KH
65122009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6513
6514 * coding.c (detect_coding_utf_16): Fix previous change.
6515
cc13543e
KH
65162009-06-16 Kenichi Handa <handa@m17n.org>
6517
6518 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6519 UTF-16 by checking the dispersion of Eth and Oth bytes.
6520
977b85f4
AS
65212009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6522
6523 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6524
66bd43d1
KH
65252009-06-15 Kenichi Handa <handa@m17n.org>
6526
6527 * process.c (status_message): Fix previous change. Be sure to
6528 decode a localized string.
6529
cb5ca9c5
YM
65302009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6531
6532 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6533 add comment explaining why.
6534
ec7709ba 65352009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6536
ec7709ba 6537 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6538
4b7f335c
AR
65392009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6540
6541 * nsfont.m (ns_attribute_value): Remove.
6542 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6543 (ns_has_attribute): Shrink the normal range.
6544 (ns_findfonts): Don't worry about requested spec in determining
6545 need for synthItal.
e41820ee 6546 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6547
73b26103
SZ
65482009-06-14 Seiji Zenitani <zenitani@mac.com>
6549
6550 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6551
5753e4da
KH
65522009-06-11 Kenichi Handa <handa@m17n.org>
6553
6554 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6555 overhang for the static composition case.
6556
3561b671
KH
65572009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6558
5753e4da
KH
6559 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6560 overhang for the automatic composition case.
6561
3561b671
KH
6562 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6563 composition case.
6564
852bbd41
CY
65652009-06-10 Chong Yidong <cyd@stupidchicken.com>
6566
6567 * xdisp.c (get_next_display_element): When handling wrap-prefix
6568 and line-prefix, treat \n as a control character (bug#3502).
6569
9903d1e6
KH
65702009-06-10 Kenichi Handa <handa@m17n.org>
6571
6572 * font.c (font_parse_family_registry): Fix for one-char foundry.
6573 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6574
0bcbaaaa
CY
65752009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6576
6577 * process.c (status_message): Fix handling of multibyte signal
6578 string (Bug#3499).
6579
40aa3f13
JM
65802009-06-09 Jim Meyering <meyering@redhat.com>
6581
1f80c7e2
CY
6582 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6583 color name is missing.
40aa3f13 6584
72d51285
KH
65852009-06-09 Kenichi Handa <handa@m17n.org>
6586
6587 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6588 FROM-CODE and TO-CODE are codepoints of CHARSET.
6589
c1d04d84
AR
65902009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6591
6592 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6593
65942009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6595
6596 Changes to support :script/:lang/:otf in NS font driver.
6597 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6598 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6599 indicate not part of font driver interface, and change callers.
6600 (ns_get_family): Remove pointless null check.
6601 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6602 ns_spec_to_descriptor, ns_descriptor_to_entity.
6603 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6604 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6605 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6606 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6607 (ns_get_req_script, ns_accumulate_script_ranges)
6608 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6609 New functions.
6610 (nsfont_list, nsfont_match): Use ns_findfonts.
6611 (nsfont_open): Use font descriptor instead of traits.
6612 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6613 (dump_glyphstring): Rename to ns_dump_glyphstring.
6614
c7eb9816
AR
6615 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6616
c1d04d84
AR
6617 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6618
6619 * fontset.c (fontset_from_font): Remove NS-specific code.
6620
ec7709ba 66212009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6622
6623 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6624 nonactive windows.
6625
31fd7c5c 66262009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6627
1ac9108a 6628 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6629
68852c13 66302009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6631
6632 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6633
6756cd1d
CY
66342009-06-07 Chong Yidong <cyd@stupidchicken.com>
6635
6636 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6637 account for the overflowing of newlines into the last glyph on the
6638 display line (Bug#3482).
6639
28bf482a
DR
66402009-06-05 David Reitter <david.reitter@gmail.com>
6641
ec7709ba
JB
6642 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6643 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6644 Fns_selection_exists_p, Fns_selection_owner_p.
6645
fdb55376
JR
66462009-06-03 Jason Rumney <jasonr@gnu.org>
6647
6648 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6649 available. (Bug#3379)
6650
05129fbe
KH
66512009-05-29 Kenichi Handa <handa@m17n.org>
6652
1ac9108a
SM
6653 * coding.c (get_translation_table):
6654 Check Venable_character_translation.
05129fbe 6655
ec7709ba 66562009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6657
ec7709ba
JB
6658 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6659 (x_make_frame_visible): Move frame to front rather than calling
15891144 6660 ns_raise_frame().
ec7709ba 6661 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6662 isn't key window.
ec7709ba 6663 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6664 drawRect may be called by NSView even if the frame is hidden.
6665
ec7709ba
JB
6666 * nsfns.m (Fx_create_frame): Follow other ports in
6667 determining visibility; default to t. Ensure async_visible is set.
15891144 6668
21f73755
EZ
66692009-05-23 Eli Zaretskii <eliz@gnu.org>
6670
6671 * dired.c (Ffile_attributes): Doc fix.
6672
34001e41
CY
66732009-05-22 Chong Yidong <cyd@stupidchicken.com>
6674
6675 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6676
46306a17
SM
66772009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6678
6679 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6680 and xfont_scratch_props.
6681 (syms_of_xfont): Do it here instead.
6682 (xfont_find_ccl_program): Delete, unused.
6683 (xfont_open): Delete unused var `i'.
6684
ef6e0694
KH
66852009-05-21 Kenichi Handa <handa@m17n.org>
6686
6687 * fontset.c (Qlatin): Don't make it static.
6688
46306a17
SM
6689 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6690 New functions.
ef6e0694
KH
6691 (xfont_scripts_cache, xfont_scratch_props): New variables.
6692 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6693 (xfont_list_pattern): Argument changed. Callers changed.
6694 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6695 (xfont_list): Don't reject a font spec with :script property.
6696 (xfont_has_char): Fix setting of encoding.
6697 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6698 xfont_scratch_props.
6699
67002009-05-19 Kenichi Handa <handa@m17n.org>
6701
46306a17 6702 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6703 Callers changed.
6704
67052009-05-18 Kenichi Handa <handa@m17n.org>
6706
6707 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6708
ac71ced7
SM
67092009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6710
6711 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6712 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6713
1c6d1051
YM
67142009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6715
6716 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6717 (x_delete_terminal): Dissociate resource database from display and
6718 then call XrmDestroyDatabase before closing display.
6719
9b9b779c
AR
67202009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6721
6722 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6723 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6724 whether selected frame is viable before raising it (based on patch
6725 by David Reitter), and improve commentary.
6726 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6727
cccd42d5
KH
67282009-05-15 Kenichi Handa <handa@m17n.org>
6729
6730 * font.c (Ffont_spec): Check arguments.
6731
337fbd17
CY
67322009-05-14 Chong Yidong <cyd@stupidchicken.com>
6733
6734 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6735 weight when testing attributes (Bug#3282).
6736
47a6002f
JD
67372009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6738
6739 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6740 what we expect to get in the next ConfigureNotify event.
6741
9cb363db
YM
6742 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6743 before Xft one (Bug#1696).
6744
b9126609
CY
67452009-05-07 David Reitter <david.reitter@gmail.com>
6746
6747 * nsfns.m (Fx_display_planes): Compute bitplanes using
6748 NSBitsPerPixelFromDepth (Bug#3207).
6749
27a69fd9
CY
67502009-05-10 Chong Yidong <cyd@stupidchicken.com>
6751
6752 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6753
00f37552
TTN
67542009-05-10 Ulrich Mueller <ulm@gentoo.org>
6755
6756 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6757
2d82a920
DR
67582009-05-07 David Reitter <david.reitter@gmail.com>
6759
ec7709ba
JB
6760 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6761 Respect mouse face background.
2d82a920 6762
46b0d52d
DR
67632009-05-07 David Reitter <david.reitter@gmail.com>
6764
ec7709ba
JB
6765 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6766 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6767 in ns_update_begin and ns_update_end.
6768
ce1b23bb
SM
67692009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6770
5996e1b7
SM
6771 * nsfns.m (ns_get_screen): Rewrite.
6772 Don't presume selected-frame is of type `ns'.
6773
ba98e3a0
SM
6774 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6775 all drivers.
6776
ce1b23bb
SM
6777 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6778
bcda200f
YM
67792009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6780
6781 * keyboard.h (add_user_signal): Fix typo in extern.
6782
6783 * lisp.h (add_user_signal): Remove extern.
6784
6785 * unexelf.c (unexec): Consider a section to precede the .bss section
6786 if its addresses overlap that of .bss.
6787 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6788 instead of dumping process.
6789
864660a2
SM
67902009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6791
6792 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6793
50da4e56
SM
67942009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6795
6796 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6797
51520a1a
DN
67982009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6799
6800 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6801 any statements.
6802
409ea3a1
AS
68032009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6804
59c4c60f
AS
6805 * process.c (read_process_output): Make sure the current buffer is
6806 always restored.
6807
409ea3a1
AS
6808 * coding.c (record_conversion_result): Don't modify
6809 Vlast_code_conversion_error for successful result.
6810 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6811
56f00ed2
KH
68122009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6813
6814 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6815 (load_charset_map): Remove unnecessary code.
56f00ed2 6816
4491c9d2
DR
68172009-04-30 David Reitter <david.reitter@gmail.com>
6818
35f5b128 6819 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6820 through f24.
6821
6970f632
CY
68222009-04-30 Chong Yidong <cyd@stupidchicken.com>
6823
6824 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6825
6826 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6827 face_at_buffer_position.
6828 (face_before_or_after_it_pos, get_next_display_element)
6829 (note_mouse_highlight): Update face_at_buffer_position call.
6830
6831 * term.c (term_mouse_highlight):
6832 * msdos.c (IT_note_mouse_highlight):
6833 * fontset.c (Finternal_char_font):
35f5b128 6834 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6835
6836 * dispextern.h (face_at_buffer_position): Update prototype.
6837
0c616f63
KH
68382009-04-30 Kenichi Handa <handa@m17n.org>
6839
35f5b128 6840 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6841
ad3aaf33
AS
68422009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6843
6844 * callproc.c (Fcall_process): Fix GC protection. Make sure
6845 current buffer is always restored.
6846
c3c963a0
YM
68472009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6848
6849 * atimer.c (init_atimer): Also clear stopped_atimers.
6850
6851 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6852
7e3386cb
YM
6853 * process.c (create_process): Clean up merger residues of
6854 2008-07-17 change.
6855
91f68422
CY
68562009-04-29 Ulrich Mueller <ulm@gentoo.org>
6857
6858 * lread.c (Vread_circle): New variable.
6859 (read1): Disable recursive read if Vread_circle is nil.
6860
24b34550
KH
68612009-04-29 Kenichi Handa <handa@m17n.org>
6862
6863 * fontset.h (set_default_ascii_font): Delete extern.
6864
6865 * fontset.c (set_default_ascii_font): Delete this unused function.
6866
6867 * frame.c (x_set_font): When ARG is a font-object, check if the
6868 font-object matches with the ASCII font-spec of the frame's
9c358bda 6869 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6870
77bf07e1
AS
68712009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6872
6873 * fns.c (Flocale_info): Protect vector from GC during decoding.
6874
6875 * process.c (Fstart_process): Protect argv strings from GC during
6876 encoding.
6877
2c55aacf
AS
68782009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6879
6880 * sysdep.c: Include <ctype.h>.
6881
b892d3c9
DR
68822009-04-27 David Reitter <david.reitter@gmail.com>
6883
35f5b128 6884 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6885 Remove commented-out code.
6886
9d0644c4
JB
68872009-04-26 Johan Bockgård <bojohan@gnu.org>
6888
6889 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6890
b7053016
JR
68912009-04-25 Jason Rumney <jasonr@gnu.org>
6892
6893 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6894
4e8231f3
YM
68952009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6896
6897 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6898 Swap bytes in short integer if fringe bitmap width > 8.
6899
493dcf2c
KH
69002009-04-23 Kenichi Handa <handa@m17n.org>
6901
6902 * xfaces.c (Fx_list_fonts): If a font size is specified in
6903 PATTERN, set it in returned scalable fonts.
6904
401e9e57
CY
69052009-04-22 Chong Yidong <cyd@stupidchicken.com>
6906
708e05dc
CY
6907 * keyboard.c (Fset_input_meta_mode): Doc fix.
6908
6909 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6910
1ac9108a 6911 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6912
6913 * coding.c (Fterminal_coding_system): Doc fix.
6914
6915 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6916 (Fx_display_pixel_height, Fx_display_planes)
6917 (Fx_display_color_cells, Fx_server_max_request_size)
6918 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6919 (Fx_display_mm_height, Fx_display_mm_width)
6920 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6921 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6922 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6923 (check_x_display_info): Handle terminal objects instead of
6924 terminal ids.
6925
401e9e57
CY
6926 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6927 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6928 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6929 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6930
df80c7f0
KH
69312009-04-21 Kenichi Handa <handa@m17n.org>
6932
5a8f12af 6933 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6934 (font_score): Check AVGWIDTH too.
908567ef 6935
df80c7f0
KH
6936 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6937 worst case.
1ac9108a
SM
6938 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6939 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6940
705af33f
JR
69412009-04-19 Jason Rumney <jasonr@gnu.org>
6942
6943 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6944 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6945
6946 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6947 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6948 get_phys_cursor_geometry.
6949
b71ac3dd 6950 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6951 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6952 using get_phys_cursor_geometry.
6953
6954 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6955 correctly calculated.
6956
dc2933eb
JD
69572009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6958
1ac9108a
SM
6959 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6960 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6961 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6962 is deprecated.
6963
973e7849
AS
69642009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6965
6966 * font.c (font_put_frame_data): Use xfree instead of free.
6967
314d66f4
JB
69682009-04-17 Juanma Barranquero <lekktu@gmail.com>
6969
6970 * w32font.c (Qja, Qko): Remove declarations.
6971 (syms_of_w32font): Don't DEFSYM them.
6972
cf702558
CY
69732009-04-17 Chong Yidong <cyd@stupidchicken.com>
6974
6975 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6976
6977 * font.h (Qja, Qko): Extern them.
6978
6979 * ftfont.c (Qja, Qko): Remove declarations.
6980
6981 * xfont.c (Qja, Qko): Remove declarations.
6982
b50504f5
KH
69832009-04-17 Kenichi Handa <handa@m17n.org>
6984
bde25748
KH
6985 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6986 string from a vector to handle Latin-1 characters correctly.
6987
b50504f5
KH
6988 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6989 entity even if the cache hits.
6990
f4646fff
AS
69912009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6992
6993 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6994 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6995
e7deaab0
AS
6996 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6997 * lisp.h: Adjust prototypes.
6998
0a0e7d49
CY
69992009-04-16 Chong Yidong <cyd@stupidchicken.com>
7000
7001 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7002 change (Bug#3003).
7003
3c908a57
KH
70042009-04-16 Kenichi Handa <handa@m17n.org>
7005
1ac9108a 7006 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7007
7008 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7009 adstyle.
7010
7011 * ftfont.c (Qja, Qko): Don't make them static.
7012 (enum ftfont_cache_for): New enum.
7013 (fc_charset_table): Undo the previous change.
7014 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7015 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7016 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7017 non-scarable font, try to get AVERAGE_WIDTH.
7018 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7019 Change ft_face_cache from a list of a hash-table. Don't check
7020 `ja' and `ko' adstyle here.
7021 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7022 FTFONT_CACHE_FOR_CHARET.
7023 (ftfont_get_charset): Undo the previous change.
1ac9108a 7024 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7025 (ftfont_close): Likewise.
7026 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7027
7028 * font.c (font_sort_entites): Change the meaning of the arg
7029 BEST-ONLY. Don't optimize for VEC of lenght 1.
7030 (font_select_entity): Just return the value of font_sort_entites.
7031
7032 * xfaces.c (merge_face_vectors): Reflect font properties in
7033 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7034 font_clear_prop if a face attribute doesn't change.
7035
3c908a57
KH
7036 * charset.h (charset_ksc5601): Extern it.
7037
7038 * charset.c (charset_ksc5601): New variable.
7039 (Fdefine_charset_internal): Set charset_ksc5601.
7040 (init_charset_once): Initialize charset_ksc5601 to -1.
7041
d65859c3
DN
70422009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7043
7044 * fileio.c (history_delete_duplicates): Remove unused declaration.
7045
7046 * callint.c (history_delete_duplicates): New declaration.
7047 (Fcall_interactively): Remove command history duplicates when
7048 history_delete_duplicates is true.
7049
3ba010e5
EZ
70502009-04-14 Eli Zaretskii <eliz@gnu.org>
7051
7052 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7053
06f19b91
KH
70542009-04-14 Kenichi Handa <handa@m17n.org>
7055
7056 * font.c (Ffont_info): Fix docstring. Fix the second element of
7057 the returned value (bug#2949).
7058
2cce8bfc
CY
70592009-04-14 Chong Yidong <cyd@stupidchicken.com>
7060
7061 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7062
d156542d
KH
70632009-04-14 Kenichi Handa <handa@m17n.org>
7064
7065 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7066 encoding charset is ascii_compatible.
7067
7068 * charset.c (Fdefine_charset_internal): Make charset
7069 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7070 code_offset is 0, and covers all ASCII characters.
7071
86fa089e
SM
70722009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7073
7074 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7075 (ns_string_to_pasteboard_internal):
7076 * nsmenu.m (process_dialog):
7077 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7078 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7079 * lisp.h (Fx_load_color_file): Declare.
7080
a8a3728b
KH
70812009-04-13 Kenichi Handa <handa@m17n.org>
7082
1ac9108a 7083 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7084 (font_select_entity): Suppress the code to optimize for the same
7085 kind of fonts.
7086 (font_load_for_lface): Get a font that supports at least ASCII
7087 characters.
7088
7089 * ftfont.c (Qja, Qko): New variables.
7090 (fc_charset_table): Delete uniquifier data for iso8859-1.
7091 (ftfont_get_latin1_charset): New function.
7092 (get_adstyle_property): New function.
7093 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7094 bitmap fonts.
7095 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7096 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7097 `ko' or `ja'.
7098 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7099 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7100 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7101 property.
7102 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7103 (syms_of_ftfont): DEFSYM Qja and Qko.
7104
483670b5
KH
71052009-04-09 Kenichi Handa <handa@m17n.org>
7106
12b55765
KH
7107 * charset.c (map_charset_chars): For a charset of `superset'
7108 method, fix calculation of code range.
7109
483670b5
KH
7110 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7111 from the list of extra properties.
7112 (font_clear_prop): Be sure to delete `:name' font property.
7113
57d3b93b
KH
71142009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7115
b4b2c2ca
YM
7116 * dispnew.c (redraw_overlapping_rows): Fix detection of
7117 overlapping for topmost and bottommost rows.
7118
1ac9108a 7119 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7120
472c3609
JR
71212009-04-06 Jason Rumney <jasonr@gnu.org>
7122
7123 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7124
ab193662
KH
71252009-04-06 Kenichi Handa <handa@m17n.org>
7126
7127 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7128
7129 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7130
0c26f026
KH
71312009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7132
7133 * ftfont.c (ftfont_open): Fix checking of the return value of
7134 FT_Load_Char. Fix setting font->underline_thickness.
7135
e173bbce
CY
71362009-04-04 Chong Yidong <cyd@stupidchicken.com>
7137
7138 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7139 (Fterminal_parameters, Fterminal_parameter)
7140 (Fset_terminal_parameter): In doc string, refer to terminal
7141 objects rather than terminal ids.
7142
693a2698
EZ
71432009-04-04 Eli Zaretskii <eliz@gnu.org>
7144
7145 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7146 ret_lim_data. (Bug#2867)
7147
d5221487
CY
71482009-04-03 Chong Yidong <cyd@stupidchicken.com>
7149
7150 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7151 so they don't get wider than the window, matching 2006-01-23
7152 change to the partner function in xdisp.c (Bug#2800).
7153
223509a3
KH
71542009-04-03 Kenichi Handa <handa@m17n.org>
7155
7156 * print.c (print_object): Make each lowest sub_char_table start a
7157 new line (Bug#2866).
7158
74fcd0b1
KH
71592009-04-02 Kenichi Handa <handa@m17n.org>
7160
7161 * fontset.c (fontset_font): Record no-font when a fontset
7162 explicitly tells not to try another font-specs.
7163
c542407d
SM
71642009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7165
7166 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7167
e3869731
KH
71682009-03-30 Kenichi Handa <handa@m17n.org>
7169
d8d2f142
KH
7170 * fontset.c (fontset_from_font): Specify only registry in a
7171 font-spec for all characters supported by that registry.
7172
e3869731
KH
7173 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7174 even if HAVE_M17N_FLT is not defined.
7175
5da5f805
CY
71762009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7177
7178 * ftfont.c: Conditionalize prototyping and use of
7179 ftfont_variation_glyphs.
7180
ab226c50
SM
71812009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7182
9628fed7
SM
7183 * frame.c (delete_frame): Work around compiler bug.
7184
7185 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7186 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7187 Some more EMACS_INT.
7188 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7189
7190 * xdisp.c (dump_glyph): Fix typo.
7191
ae19ba7c
SM
7192 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7193 (adjust_markers_gap_motion, adjust_markers_for_delete)
7194 (adjust_markers_for_insert, adjust_point)
7195 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7196 (make_gap, copy_text, count_size_as_multibyte, insert)
7197 (insert_and_inherit, insert_before_markers)
7198 (insert_before_markers_and_inherit, insert_1)
7199 (count_combining_before, count_combining_after, insert_1_both)
7200 (insert_from_string, insert_from_string_before_markers)
7201 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7202 (insert_from_buffer_1, adjust_after_replace)
7203 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7204 (replace_range_2, del_range, del_range_1, del_range_byte)
7205 (del_range_both, del_range_2, modify_region)
7206 (prepare_to_modify_buffer, signal_before_change)
7207 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7208 for buffer positions and sizes.
7209 * lisp.h: Adjust prototypes accordingly.
7210
7211 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7212 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7213 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7214
ab226c50
SM
7215 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7216
46dfb8fb
JD
72172009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7218
7219 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7220 lines and columns so we keep the same pixel height and width.
7221
7222 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7223 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7224 (x_handle_net_wm_state): New function to update frame parameter
7225 fullscreen.
7226 (x_term_init): Initialize atoms for _NET_WM_STATE.
7227
7228 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7229
d347e494
SM
72302009-03-27 Kevin Ryde <user42@zip.com.au>
7231
7232 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7233 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7234 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7235 (Fgpm_mouse_stop): Pass that new parameter.
7236 * termhooks.h (close_gpm): Adjust prototype.
7237
84db11d6
SM
72382009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7239
c95a5008
SM
7240 * lisp.h (Fx_focus_frame): Declare.
7241
84db11d6
SM
7242 * callint.c (Fcall_interactively): For '^' just delegate the work to
7243 handle-shift-selection.
7244 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7245
0a1958d6
CY
72462009-03-24 Chong Yidong <cyd@stupidchicken.com>
7247
0bfdff23
CY
7248 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7249
0a1958d6
CY
7250 * data.c (Qinteractive_form): New variable.
7251 (Finteractive_form): Use it.
7252
7253 * eval.c (Fcommandp): Use Qinteractive_form.
7254
58aec0d6
JR
72552009-03-24 Jason Rumney <jasonr@gnu.org>
7256
7257 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7258 Calculate total size precisely. Decode environment variables
7259 before substituting. (Bug#38)
7260
553dd618
KH
72612009-03-24 Kenichi Handa <handa@m17n.org>
7262
7263 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7264 encoding (Bug#2722).
553dd618 7265
c39ea606
JD
72662009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7267
7268 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7269 that gdpy is set.
7270
bc9b2b5e
AM
72712009-03-22 Alan Mackenzie <acm@muc.de>
7272
7273 * callint.c (Finteractive): Clarify the doc string - even
7274 promptless elements need \n separators.
7275
9f995a76
JR
72762009-03-22 Jason Rumney <jasonr@gnu.org>
7277
7278 * w32term.c (syms_of_w32term): Doc fix for
7279 x-use-underline-position-properties.
7280
22749e9a
EZ
72812009-03-21 Eli Zaretskii <eliz@gnu.org>
7282
7283 * w32.c (getpwuid): Change argument type to unsigned.
7284 (struct w32_id): Change type of `rid' member to unsigned.
7285 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7286 argument ID to unsigned. All callers changed.
7287 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7288
e00553bf
EZ
72892009-03-20 Eli Zaretskii <eliz@gnu.org>
7290
7291 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7292 negative, produce a float value.
7293
7294 * dired.c (make_uid, make_gid): New functions.
7295 (Ffile_attributes): Use them to avoid negative UID and GID.
7296
f761d6b6
JB
72972009-03-20 Juanma Barranquero <lekktu@gmail.com>
7298
7299 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7300 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7301 Fix typos in docstrings.
7302
d507f8d7
KH
73032009-03-19 Kenichi Handa <handa@m17n.org>
7304
7305 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7306 changed, use font_load_for_lface to get a new font object.
7307 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7308
7309 * frame.c (x_set_font): Handle the case that ARG is a cons.
7310
c68845e0
GM
73112009-03-19 Glenn Morris <rgm@gnu.org>
7312
7313 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7314
bfa49dd1
CY
73152009-03-19 Chong Yidong <cyd@stupidchicken.com>
7316
7317 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7318
8458d4c1
KH
73192009-03-19 Kenichi Handa <handa@m17n.org>
7320
7321 * charset.c (load_charset_map_from_file): When a mapfile can't be
7322 loaded, signal an error.
7323
78e7d1fe
EZ
73242009-03-18 Eli Zaretskii <eliz@gnu.org>
7325
7326 * dired.c (Ffile_attributes): Make sure UID and GID are always
7327 positive, even if the value is too large for a positive EMACS_INT.
7328 Doc fix.
7329
7330 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7331
5da9fdfa
YM
73322009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7333
7334 * xmenu.c (xdialog_show): Move Fredisplay call ...
7335 (Fx_popup_dialog): ... here.
7336
7519c40d
SM
73372009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7338
7339 * dired.c (file_name_completion): Disable the first optimization just
7340 installed, since it is not implemented correctly.
7341
2cd298e2
SM
73422009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7343
7344 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7345 only if the entry can affect bestmatch.
2cd298e2
SM
7346 Stop the search early, as Ftry_completion already does.
7347
48d37adf
CY
73482009-03-17 Chong Yidong <cyd@stupidchicken.com>
7349
e10c9c93 7350 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7351
9286b16a
CY
73522009-03-15 Chong Yidong <cyd@stupidchicken.com>
7353
7354 * keyboard.c (parse_menu_item): Don't display remappings as menu
7355 equivalent bindings (Bug#788).
7356
f7b146dc
JR
73572009-03-15 Jason Rumney <jasonr@gnu.org>
7358
7359 * w32term.h (WM_EMACS_PAINT): New message.
7360 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7361 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7362 before passing to lisp thread. (Bug#950)
7363
f761d6b6 73642009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7365
d93f9575
CY
7366 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7367 variable as it was never reset.
7368 (ns_term_init): Remove initialization of Lisp-settable defaults
7369 and ns_expand_space.
7370 (-setPanelFromDefaultValues): Remove ns_expand_space.
7371 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7372 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7373 i.e. no additional spacing, similar to Carbon port.
7374
d93f9575
CY
7375 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7376 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7377
305018ec
JD
73782009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7379
7380 * sound.c (alsa_configure): Remove call to deprecated
7381 snd_pcm_sw_params_set_xfer_align.
7382
f761d6b6 73832009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7384
7385 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7386 after clicking in a detached tool bar.
7387 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7388
46e722a9
SM
73892009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7390
348db3dd
SM
7391 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7392 int/Lisp_Object mixup).
46e722a9 7393
a3d16f39
KH
73942009-03-13 Kenichi Handa <handa@m17n.org>
7395
7396 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7397 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7398 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7399 (set_fontset_font): Change ARG to a vector. Handle range_list in
7400 ARG correctly.
7401 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7402 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7403 the above change.
7404 (fontset_from_font): Fix previous change.
fe24f56a 7405 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7406 entry. If FONTSET is the default fontset, don't set the extra
7407 slot of the returning char-table.
7408
b066e6b6
JB
74092009-03-12 Juanma Barranquero <lekktu@gmail.com>
7410
7411 * nsfns.m (Fx_close_connection): Doc fix.
7412 (Fns_do_applescript): Reflow docstring.
7413 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7414 (Fx_display_pixel_width, Fx_display_pixel_height)
7415 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7416 Fix typos in docstrings.
7417 (Fns_set_alpha): Fix typos in error messages.
7418
d472514e 74192009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7420
d472514e 7421 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7422 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7423 were used for such events.
7424
d472514e
JB
7425 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7426 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7427
d472514e 7428 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7429 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7430
fb930676
KH
74312009-03-11 Kenichi Handa <handa@m17n.org>
7432
ff85581a
KH
7433 * font.h (font_open_by_spec): Extern it.
7434
c50b7e98
KH
7435 * font.c (font_open_by_spec): New function.
7436 (font_open_by_name): Use font_open_by_spec.
7437
fb930676
KH
7438 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7439 fontset of the frame.
7440
7441 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7442 modify the default font of frames that use this fontset.
7443 (num_auto_fontsets): New variable.
7444 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7445 name. Be sure to set FONTSET_ASCII to the correct font name.
7446 (update_auto_fontset_alist): New function.
7447
df4e8455
JB
74482009-03-11 Juanma Barranquero <lekktu@gmail.com>
7449
7450 * makefile.w32-in: Update dependencies.
7451
0a375797
AR
74522009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7453
7454 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7455
61313fa3
SM
74562009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7457
7458 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7459
b55103fb
CY
74602009-03-10 Chong Yidong <cyd@stupidchicken.com>
7461
7462 * lread.c (Feval_buffer): Doc fix.
7463
dde2559c
KH
74642009-03-09 Kenichi Handa <handa@m17n.org>
7465
7466 * charset.c (Qfile_name_handler_alist): Extern it.
7467 (load_charset_map_from_file): Temporarily bind
7468 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7469
df4e8455 74702009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7471
47f588bb
GM
7472 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7473 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7474
4ddf94bd
AR
74752009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7476
4c9bdfc2
AR
7477 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7478 (x_set_window_size): Change back to calculated method of setting
7479 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7480 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7481 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7482
fe41ae9e
AR
7483 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7484
4c9bdfc2
AR
7485 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7486 accelerator in parens under GNUstep.
7487
825d0875
KH
74882009-03-06 Kenichi Handa <handa@m17n.org>
7489
7490 These changes are to detect incorrect composition sequence without
f3b3be74 7491 looking ahead the source. (Bug#2370)
825d0875
KH
7492
7493 * coding.h: Include "composite.h".
7494 (enum compisition_state): New enum.
7495 (struct compisition_status): New struct.
7496 (struct iso_2022_spec): New member cmp_status.
7497 (struct emacs_mule_spec): New struct.
7498 (struct coding_system): New members ctext_extended_segment_len and
7499 embedded_utf_8. Change the union member
7500 spec.emacs_mule_full_support to spec.emacs_mule.
7501
7502 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7503 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7504 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7505 (ADD_COMPOSITION_DATA): New arg nbytes.
7506 (emacs_mule_char): New arg cmp_status.
7507 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7508 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7509 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7510 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7511 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7512 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7513 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7514 (EMACS_MULE_COMPOSITION_END): New macro.
7515 (emacs_mule_finish_composition): New function.
7516 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7517 (decode_coding_emacs_mule): Avoid long looking ahead while
7518 handling composition.
7519 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7520 (ENCODE_COMPOSITION_RULE): New macro.
7521 (finish_composition): New function.
7522 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7523 (DECODE_COMPOSITION_START): New implementation.
7524 (DECODE_COMPOSITION_END): Likewise.
7525 (STORE_COMPOSITION_RULE): New macro.
7526 (decode_coding_iso_2022): Avoid long looking ahead while handling
7527 composition, CTEXT extended segment, and embedded UTF-8.
7528 (setup_coding_system): For a coding of type iso-2022, reset
7529 CODING_ISO_EXTSEGMENT_LEN (coding) and
7530 CODING_ISO_EMBEDDED_UTF_8 (coding).
7531 (get_translation): Delete arguments last_block, from_nchars,
7532 to_nchars. Callers changed.
7533 (produce_chars): Don't modify charbuf. Adjusted for the change of
7534 get_translation.
98a326f7 7535 (produce_composition): Adjust for the new annotation sequence.
825d0875 7536 (handle_composition_annotation): Likewise.
98a326f7 7537 (consume_chars): Adjust for the change of get_translation.
825d0875 7538
ccbc4452
AR
75392009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7540
4ddf94bd 7541 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7542
988a7ddb
KH
75432009-03-05 Kenichi Handa <handa@m17n.org>
7544
7545 * font.c (font_select_entity): New function.
7546 (font_find_for_lface): Use font_select_entity to select a font.
7547
7548 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7549 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7550 font with C restriction.
7551
98a326f7 75522009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7553
be1bce46 7554 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7555
10ea2b82
JR
75562009-03-04 Jason Rumney <jasonr@gnu.org>
7557
2c93b248 7558 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7559 characters that have already been read. (Bug#2569)
2c93b248 7560
10ea2b82
JR
7561 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7562 Log an error message if check_image_size failed.
7563 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7564 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7565
71a0c011
EZ
75662009-03-02 Eli Zaretskii <eliz@gnu.org>
7567
7568 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7569 when decoding process output.
7570
2f63bba8
RS
75712009-03-01 Richard M Stallman <rms@gnu.org>
7572
7573 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7574
7575 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7576
0a9564cb
EZ
75772009-02-28 Eli Zaretskii <eliz@gnu.org>
7578
7579 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7580 (decode_coding_emacs_mule, decode_coding_iso_2022)
7581 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7582 (decode_coding_raw_text, decode_coding_charset)
7583 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7584 Honor inhibit-eol-conversion. (Bug #2186)
7585
449148b3
JR
75862009-02-28 Jason Rumney <jasonr@gnu.org>
7587
7588 * coding.c (detect_coding_charset): If not checking latin extra,
7589 fail on characters between 0x80 and 0xA0. (Bug#2354)
7590
a4aee864
EZ
75912009-02-28 Eli Zaretskii <eliz@gnu.org>
7592
7593 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7594 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7595
d88bee5a
GM
75962009-02-27 Glenn Morris <rgm@gnu.org>
7597
7598 * callint.c (Finteractive): Doc fix.
7599
a808f22d
KH
76002009-02-27 Kenichi Handa <handa@m17n.org>
7601
7602 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7603
caf8d60c
CY
76042009-02-27 Chong Yidong <cyd@stupidchicken.com>
7605
7606 * font.c (font_style_to_value): Set value for unknown symbols to
7607 100 instead of 255.
b61137ea
CY
7608 (weight_table, slant_table, width_table): Treat "unspecified" as
7609 the default value.
caf8d60c 7610
1a0de25c
JB
76112009-02-26 Juanma Barranquero <lekktu@gmail.com>
7612
7613 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7614
8fc45744
JB
76152009-02-25 Juanma Barranquero <lekktu@gmail.com>
7616
107bd7d1
JB
7617 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7618 error as soon as a recursive load is detected.
8fc45744 7619
f097e223
AR
76202009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7621
7622 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7623 before caching.
7624
8810a12f
KH
76252009-02-24 Kenichi Handa <handa@m17n.org>
7626
7627 * fontset.c (fontset_find_font): Fix the condition for checking
7628 unavailable font.
7629
2c7d1565
GM
76302009-02-24 Glenn Morris <rgm@gnu.org>
7631
7632 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7633 whitespace that confuses documentation.
7634
a20878b6
MB
76352009-02-23 Miles Bader <miles@gnu.org>
7636
7637 * process.c (Flist_system_processes, Fprocess_attributes)
7638 (syms_of_process): Rename `system-process-attributes' to
7639 `process-attributes'.
7640
b3b58c01
AS
76412009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7642
1b3b981b
AS
7643 * coding.h (struct coding_system): Make safe_charsets a pointer to
7644 unsigned char.
7645 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7646 being 255.
7647 (SAFE_CHARSET_P): Likewise.
7648 (setup_iso_safe_charsets): Properly setup safe_charsets.
7649 (Fdefine_coding_system_internal): Likewise.
7650 (setup_coding_system): Likewise. Remove unneeded casts.
7651 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7652 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7653 unneeded casts.
7654
b3b58c01
AS
7655 * insdel.c (del_range_2): Don't modify gap contents when called
7656 from decode_coding_object. (Bug#1809)
7657
0b6f228c
CY
76582009-02-21 Chong Yidong <cyd@stupidchicken.com>
7659
7660 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7661 Qfont_object.
7662 (Ftype_of): Recognize font objects.
7663
7664 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7665
7666 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7667 moved to data.c.
7668
52f8870b
AR
76692009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7670
7671 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7672 async_iconified. Based on a patch by Christian Lynbech
7673 <christian.lynbech@tieto.com>.
7674 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7675
7087d5e9
GM
76762009-02-20 Glenn Morris <rgm@gnu.org>
7677
7678 * syntax.c (Fskip_chars_forward): Fix doc typo.
7679
41d2ceef
CY
76802009-02-20 Chong Yidong <cyd@stupidchicken.com>
7681
7682 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7683
1a3b7ca6
CY
76842009-02-19 Chong Yidong <cyd@stupidchicken.com>
7685
7686 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7687
73cce38d
KH
76882009-02-19 Kenichi Handa <handa@m17n.org>
7689
7690 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7691 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7692
a51092ee
DN
76932009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7694
7695 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7696
c423ecca
KH
76972009-02-18 Kenichi Handa <handa@m17n.org>
7698
7699 * font.c (font_check_otf_features): Fix handling of `nil' element.
7700 (Ffont_spec): Describe :lang and :otf in the docstring.
7701
4c1958f4
AS
77022009-02-16 Andreas Schwab <schwab@suse.de>
7703
7704 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7705 string.
7706
5704f39a
KH
77072009-02-16 Kenichi Handa <handa@m17n.org>
7708
7709 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7710 (Bug#1723)
5704f39a 7711
8f0085aa
CY
77122009-02-14 Chong Yidong <cyd@stupidchicken.com>
7713
a057d86a 7714 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7715
7716 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7717 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7718
aff01dd9
EZ
77192009-02-14 Eli Zaretskii <eliz@gnu.org>
7720
7721 * msdos.c (MAX_SCREEN_BUF): New macro.
7722 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7723 Encode the entire run of glyphs sharing the same face, instead of
7724 doing that one glyph at a time (fixes a bug with displaying
7725 double-size characters).
7726
ba301db3
AR
77272009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7728
7729 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7730
7731 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7732 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7733 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7734
7735 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7736 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7737
51d861de
SM
77382009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7739
ac146f82 7740 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7741 invisible areas.
7742
7fed8996
JR
77432009-02-12 Jason Rumney <jasonr@gnu.org>
7744
631ea4fb
JR
7745 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7746 (add_font_entity_to_list): Call check_face_name even when family
7747 is unspecified.
7748
cb4a3e42
JR
7749 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7750 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7751 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7752
7fed8996 7753 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7754 raster fonts. (Bug#2219)
7fed8996 7755
895416e3
KH
77562009-02-12 Kenichi Handa <handa@m17n.org>
7757
7758 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7759 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7760 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7761 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7762 (find_automatic_composition): While looking forward and backward,
7763 check static composition. Fix where to stop looking forward.
7764 (composition_adjust_point): Fix checking of static composition.
7765 (Fcomposition_get_gstring): Pay attention to
1dacf998 7766 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7767
7768 * lisp.h (fast_looking_at): Extern it.
7769
7770 * search.c (fast_looking_at): New function.
7771
51d861de 7772 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7773 <struct glyph>.u.cmp.to.
7774 (append_composite_glyph): Likewise.
7775
51d861de 7776 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7777 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7778 composition.
51d861de 7779 (append_composite_glyph): Adjust for the change of
895416e3
KH
7780 <strcut glyph>.u.cmp.to.
7781
8510724d
JB
77822009-02-11 Juanma Barranquero <lekktu@gmail.com>
7783
7784 * casetab.c (init_casetab_once):
7785 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7786 * font.c (font_update_lface):
7787 * fontset.c (Fnew_fontset):
7788 * ftfont.c (ftfont_drive_otf):
7789 * xfont.c (xfont_open):
7790 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7791
294fa707
SM
77922009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7793
7794 * fileio.c (Fwrite_region): !NILP -> CONSP.
7795
b5bfebec
AS
77962009-02-10 Andreas Schwab <schwab@suse.de>
7797
7798 * process.c (send_process): Properly relocate pointer into data
adab88bd 7799 when using encoded data. (Bug#2272)
b5bfebec 7800
cb84a2be
KH
78012009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7802
7803 * coding.c (detect_coding_charset): Fix previous change.
7804
89e09428
JR
78052009-02-08 Jason Rumney <jasonr@gnu.org>
7806
7807 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7808 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7809
4470a277
AS
78102009-02-07 Andreas Schwab <schwab@suse.de>
7811
7812 * unexelf.c (unexec): Fix error message.
7813
3175b12a
AR
78142009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7815
7816 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7817 when modal window is active. (Bug #2152)
3175b12a
AR
7818 (applicationShouldTerminate:): Remove now-unneeded while loop
7819 around NSRunAlertPanel.
7820
7821 * nsmenu.m (popupSession): New file-global variable.
7822 (pop_down_menu): End the popupSession before closing dialog.
7823 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7824 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7825 don't query NSApp for events (just sleep instead).
7826
8434d0b8
EZ
78272009-02-07 Eli Zaretskii <eliz@gnu.org>
7828
51d861de
SM
7829 * coding.c (syms_of_coding) <translation-table-for-input>:
7830 Modify doc string to discourage use for character code unification.
8434d0b8 7831
aa82edfd
CY
78322009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7833
7834 * atimer.c (run_timers): Update pending_atimers.
7835
2d283c7c
CY
78362009-02-06 Chong Yidong <cyd@stupidchicken.com>
7837
eb306cab
CY
7838 * image.c (svg_load_image): Fix last change.
7839
2d283c7c
CY
7840 * xfns.c (Fx_create_frame): Signal an error if no font is
7841 found (Bug#2147).
7842
4d8e170e
JB
78432009-02-05 Juanma Barranquero <lekktu@gmail.com>
7844
7845 * character.c (syms_of_character) <script-representative-chars>:
7846 Fix typo in docstring.
7847
c96169a0
AR
78482009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7849
7850 * nsmenu.m (pop_down_menu): New function.
7851 (ns_popup_dialog): Call it on unwind.
7852 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7853 call timer_check() (Bug#2154).
7854 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7855 handling_signal is set.
7856 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7857
31fd7c5c 7858 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7859
7860 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7861
7862 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7863
51d861de
SM
7864 * keyboard.c (poll_for_input_1, handle_async_input):
7865 Set handling_signal under HAVE_NS.
c96169a0 7866
aacd8ba1
GM
78672009-02-04 Glenn Morris <rgm@gnu.org>
7868
7869 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7870
4cb75c4b
KH
78712009-02-04 Kenichi Handa <handa@m17n.org>
7872
7873 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7874
7875 * charset.c (Fchar_charset): New optional arg restriction.
7876
7877 * coding.h (coding_system_charset_list): Extern it.
7878
7879 * coding.c (coding_system_charset_list): New function.
7880
7881 * composite.c: Include coding.h and termhooks.h.
7882 (composition_gstring_p): Fix for the terminal case.
7883 (composition_gstring_width): Likewise.
7884 (fill_gstring_body): Likewise.
7885 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7886 the frame.
7887 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7888 is within a composition.
867d4bb3 7889 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7890
7891 * term.c (encode_terminal_code): Fix handling of composition.
7892 (produce_composite_glyph): For static composition, get pixel_width
7893 from struct composition.
7894
826ba17e
AS
78952009-02-02 Andreas Schwab <schwab@suse.de>
7896
7897 * unexelf.c (unexec): Handle unaligned bss offset.
7898
8ad093db
AR
78992009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7900
7901 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7902 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7903
8ad093db
AR
7904 * keyboard.c (handle_interrupt): Don't call
7905 quit_throw_to_read_char() under NS.
d0a76a6e 7906
8ad093db
AR
7907 * blockinput.h: Remove NS-specific code.
7908
4d18a7a2
DN
79092009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7910
db878925
DN
7911 * dispnew.c (window_change_signal): Don't try to get the size of a
7912 suspended tty frame.
7913 * term.c (Fresume_tty): Resize if the size has changed while the
7914 tty was suspended.
7915
4d18a7a2
DN
7916 * alloc.c (mark_stack): Properly conditionalize previous change.
7917
8984df7c
JB
79182009-01-30 Juanma Barranquero <lekktu@gmail.com>
7919
7920 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7921 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7922 Remove; this code is not used on Windows.
7923
75f4f1ac
EZ
79242009-01-30 Eli Zaretskii <eliz@gnu.org>
7925
7926 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7927 EOLs that also has stray ^M characters.
7928
07a1e794
JB
79292009-01-30 Juanma Barranquero <lekktu@gmail.com>
7930
7931 * atimer.c (run_timers, alarm_signal_handler):
7932 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7933 * w32inevt.c (w32_console_read_socket):
7934 * w32term.c (w32_read_socket):
7935 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7936
a8b11cc9
CY
79372009-01-30 Chong Yidong <cyd@stupidchicken.com>
7938
7939 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7940 Initialize it as a relative filename pattern.
7941 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7942 (Fcall_process_region): Simplify temp file creation using
7943 temporary-file-directory.
7944
c279587b
EZ
79452009-01-29 Eli Zaretskii <eliz@gnu.org>
7946
7947 * msdos.c: Rename pending_signals to msdos_pending_signals.
7948 (sig_suspender, sigprocmask): Adjust.
7949
a8fe3242
CY
79502009-01-29 Chong Yidong <cyd@stupidchicken.com>
7951
7952 * keyboard.c (pending_signals): New var.
7953 (poll_for_input, input_available_signal, init_keyboard): Set it.
7954 (process_pending_signals): New function.
7955
7956 * lisp.h (QUIT): Check pending_signals instead of
7957 interrupt_input_pending. Use process_pending_signals.
7958
51d861de 7959 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7960
51d861de 7961 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7962
7963 * sysdep.c (emacs_write): Use process_pending_signals.
7964
7965 * xterm.c (XTread_socket): Update pending_signals.
7966
7967 * w32term.c (w32_read_socket): Update pending_signals.
7968
7969 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7970
6570a1c4
KH
79712009-01-29 Kenichi Handa <handa@m17n.org>
7972
7973 * xftfont.c (xftfont_has_char): New function.
7974 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7975
d72a4afa
AR
79762009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7977
7978 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7979 under GNUstep.
7980 (ns_query_color): New declaration.
7981
7982 * nsterm.m (ns_confirm_quit): New variable.
7983 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7984 (EmacsApp-applicationShouldTerminate:): Use it.
7985 (EmacsPrefsController): Let user set it.
7986 (ns_query_color): New function.
7987 (ns_defined_color): Use it.
7988 (ns_initialize): Drop.
7989 (ns_term_init): Add two lines from ns_initialize(), and set
7990 input_interrupt_mode to nil.
7991
7992 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7993 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7994
9fe78804
KH
79952009-01-28 Kenichi Handa <handa@m17n.org>
7996
7997 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7998 (fontset_get_font_group): Remember that no font-group is specified
7999 for C.
9fe78804 8000
fa57de36
CY
80012009-01-27 Chong Yidong <cyd@stupidchicken.com>
8002
930600e9
CY
8003 * fns.c (concat): Check for string overflow (bug#1787).
8004
fa57de36
CY
8005 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8006 Quadruple undo limits (bug#1501).
8007
7179ce7b
KH
80082009-01-27 Kenichi Handa <handa@m17n.org>
8009
8010 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8011 directly use GT_Get_Char_index.
8012
8013 * xftfont.c (struct xftfont_info): New member `index'.
8014
8015 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8016 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8017
5be8fcc0
CY
80182009-01-26 Kenichi Handa <handa@m17n.org>
8019
8020 * fontset.c (fontset_find_font): Fix handling of non-cons return
8021 value of fontset_get_font_group.
8022 (fontset_font): Revert last change.
8023
19ae3e61
JR
80242009-01-26 Jason Rumney <jasonr@gnu.org>
8025
8026 * w32font.c (w32font_list_internal): Return quickly if registry is
8027 unknown. Simplify final return.
8028 (add_font_entity_to_list): Break complex logic down into more
8029 manageable chunks. Move unknown registry check to
8030 w32font_list_internal.
8031
8612b71a
AR
80322009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8033
8034 Changes to remove Feval calls from GUI under NS.
8035
d8038940
JB
8036 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8037 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8038 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8039
8040 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8041 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8042 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8043 instead of NON_ASCII_KEYSTROKE_EVENT.
8044 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8045 (EmacsApp-applicationShouldTerminate:): Query user.
8046 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8047 instead of Feval.
8048
8049 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8050
8051 * keyboard.c (kbd_buffer_get_event): Check for it.
8052 (keys_of_keyboard): Define lispy keys for
8053 ns-put/unput-working-text.
8054
8055 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8056 versions.
8057 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8058
6288ae55
CY
80592009-01-25 Chong Yidong <cyd@stupidchicken.com>
8060
8061 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8062 setting current_buffer directly. (Bug#2044)
6288ae55 8063
289e7f8f
CY
80642009-01-24 Chong Yidong <cyd@stupidchicken.com>
8065
5ce87308 8066 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8067 any work. (Bug#1952, bug#1990).
5ce87308 8068
64cc3cf6 8069 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8070
b3243e6f
AR
80712009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8072
8073 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8074 (ns_no_defaults): New declaration.
8075 (main): Use it.
e0d2e69a 8076
d900b2af 8077 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8078
d900b2af 8079 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8080
d900b2af
AR
8081 * nsterm.m (ns_no_defaults): New variable.
8082 (ns_initialize): Don't read defaults when ns_no_defaults.
8083 (EmacsView-readSelectionFromPasteboard:)
8084 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8085 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8086 (ns_dumpglyphs_stretch): New function.
8087 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8088 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8089
e0d2e69a
AR
8090 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8091
3ac71f5d
CY
80922009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8093
8094 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8095 call for Sparc64.
8096
3fe53a83
AR
80972009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8098
8099 * nsfns.m:
8100 * nsgui.h:
8101 * nsmenu.m:
8102 * nsselect.m:
8103 * nsterm.h:
8104 * nsterm.m: Remove '23' comments that indicated code added during
8105 update from emacs-20 -> emacs-23.
8106
10f87c6f 81072009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8108
8109 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8110 ns_alternate_modifier. (Bug#1217)
a3b53a85 8111
c7cef62d
AR
8112 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8113 Display all shortcuts, including those w/o super modifier.
8114
575fb8bd
AR
8115 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8116
918b848b
CY
81172009-01-22 Chong Yidong <cyd@stupidchicken.com>
8118
8119 * fileio.c (Vwrite_region_post_annotation_function)
8120 (Vwrite_region_annotation_buffers): New vars.
8121 (build_annotations_unwind): Just reset
8122 Vwrite_region_annotation_buffers.
8123 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8124 Call write-region-post-annotation-function.
8125 (build_annotations): Add to Vwrite_region_annotation_buffers if
8126 buffer changes.
8127
a39e2539
AR
81282009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8129
8130 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8131 Tiger.
51d861de
SM
8132 * nsfns.m (ns_do_applescript):
8133 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8134
35ed44db
AR
81352009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8136
8137 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8138
cbe0b5bf
AR
81392009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8140
8141 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8142
6049d3a0
AR
8143 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8144
8145 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8146 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8147 handle Ctrl-tab. (Bug#1841)
8148 (ns_get_color): Use unsigned long long for scanned hex string value.
8149 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8150 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8151 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8152 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8153 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8154 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8155 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8156
d3810c21 8157 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8158 DPI. (Bug#1316)
d3810c21
AR
8159 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8160 values in onTiger section.
4c7077c3 8161
e301e634
CY
81622009-01-19 Chong Yidong <cyd@stupidchicken.com>
8163
7f82490b
CY
8164 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8165 Check return value of font_spec_from_name.
64cc3cf6 8166 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8167
8168 * font.c (font_spec_from_name): Return Qnil if font name could not
8169 be parsed.
8170 (font_parse_name): Treat a `?' character as part of an XLFD.
8171
e301e634
CY
8172 * fns.c (Fsubstring): Doc fix.
8173
1c0db158
KH
81742009-01-19 Kenichi Handa <handa@m17n.org>
8175
51d861de 8176 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8177 (ftfont_list): Likewise.
8178
acf20901
JB
81792009-01-18 Juanma Barranquero <lekktu@gmail.com>
8180
fff4e459
JB
8181 * dbusbind.c (Fdbus_register_signal):
8182 * process.c (conv_sockaddr_to_lisp):
8183 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8184
acf20901
JB
8185 * callproc.c (Fgetenv_internal): Doc fix.
8186
e7abcdfb
CY
81872009-01-16 Chong Yidong <cyd@stupidchicken.com>
8188
8189 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8190 it is not even used.
8191
b60861e6
GM
81922009-01-16 Glenn Morris <rgm@gnu.org>
8193
8194 * font.c (Ffont_variation_glyphs): Silence compiler.
8195
8db52afe
JB
81962009-01-15 Juanma Barranquero <lekktu@gmail.com>
8197
8198 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8199 Reported by David Robinow <drobinow@gmail.com>.
8200
4cddb209
KH
82012009-01-15 Kenichi Handa <handa@m17n.org>
8202
51d861de 8203 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8204
f247f67b
JR
82052009-01-14 Jason Rumney <jasonr@gnu.org>
8206
8207 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8208 never a fontset. (Bug#1562)
f247f67b 8209
f56a4450
KH
82102009-01-14 Kenichi Handa <handa@m17n.org>
8211
8212 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8213 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8214
4e99855e
CY
82152009-01-13 Chong Yidong <cyd@stupidchicken.com>
8216
8217 * font.c (font_clear_prop): If clearing the family, clear the font
8218 width index too.
8219
fff4e459 8220 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8221
24f01470
JB
82222009-01-12 Juanma Barranquero <lekktu@gmail.com>
8223
8224 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8225 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8226 functions, use sizeof.
8227
a41240a3
MR
82282009-01-12 Martin Rudalics <rudalics@gmx.at>
8229
8230 * keyboard.c (read_char): Fix case where last_nonmenu_event
8231 returned a bad value with submenus. (Bug#447)
8232
944636b8
CY
82332009-01-12 Chong Yidong <cyd@stupidchicken.com>
8234
8235 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8236 family, clear the font width index too.
8237
0dad7c6f
JR
82382009-01-11 Jason Rumney <jasonr@gnu.org>
8239
8240 * keyboard.c (cmd_error_internal): Exit when errors occur before
8241 frame creation and not in daemon mode. (Bug#1836)
8242
7c2363af
CY
82432009-01-10 Chong Yidong <cyd@stupidchicken.com>
8244
8245 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8246 of a display vector, backtrack.
8247 (try_window_reusing_current_matrix): Check glyph type before
8248 referencing charpos member.
8249
97b1b294
EZ
82502009-01-10 Eli Zaretskii <eliz@gnu.org>
8251
8252 Fix Bug #876:
8253
8254 * coding.c (inhibit_null_byte_detection): New variable.
8255 (detect_coding, detect_coding_system): Don't pay attention to null
8256 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8257 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8258 <inhibit-iso-escape-detection>: Doc fix.
8259
4624b6e3
JR
82602009-01-09 Jason Rumney <jasonr@gnu.org>
8261
8262 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8263 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8264 Only report Unicode Plane 2 fonts as unicode-sip.
8265
323b840c
CY
82662009-01-09 Chong Yidong <cyd@stupidchicken.com>
8267
51d861de
SM
8268 * xfaces.c (Fx_font_family_list): Delete function.
8269 Move compatibility version to faces.el.
323b840c 8270
51d861de 8271 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8272
eba7400d
MR
82732009-01-09 Martin Rudalics <rudalics@gmx.at>
8274
8275 * frame.c (x_set_frame_parameters): Remember requested value for
8276 fullscreen before it's reset by the parameter handler.
8277
4b09796d
GM
82782009-01-09 Glenn Morris <rgm@gnu.org>
8279
8280 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8281 (last_command_event): ... and update all users.
4b09796d
GM
8282 (last_input_char): For clarity, rename to...
8283 (last_input_event): ... and update all users.
8284 (last-command-char, last-input-char): Move to subr.el as aliases.
8285 * cmds.c, commands.h: Update for last_command_char rename.
8286
14ccea62
CY
82872009-01-08 Chong Yidong <cyd@stupidchicken.com>
8288
51d861de 8289 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8290
5f004711
JR
82912009-01-08 Jason Rumney <jasonr@gnu.org>
8292
8293 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8294 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8295 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8296 Don't declare.
fff4e459 8297 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8298 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8299
b71f6f73
KH
83002009-01-07 Kenichi Handa <handa@m17n.org>
8301
50b06221 8302 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8303 remember the coding system used for decoding in
50b06221
KH
8304 coding_system (Bug#1039).
8305
b71f6f73 8306 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8307 breaking the loop. (Bug#870)
b71f6f73
KH
8308 (decode_coding_utf_16, decode_coding_emacs_mule)
8309 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8310 (decode_coding_charset): Likewise.
8311
56f668f7
MR
83122009-01-05 Martin Rudalics <rudalics@gmx.at>
8313
8314 * frame.c (x_set_frame_parameters): Make sure height (width) get
8315 applied when fullwidth (fullheight) is set. (Bug#1522)
8316
5da9424d
JB
83172009-01-04 Juanma Barranquero <lekktu@gmail.com>
8318
8319 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8320 (utc_base): Declare as ULONGLONG, not long double.
8321 (convert_time_raw): Delete.
8322 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8323 (initialize_utc_base): New function.
8324 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8325 (convert_from_time_t): Use initialize_utc_base; compute result with
8326 64-bit arithmetic.
8327 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8328
c4605e09
EZ
83292009-01-03 Eli Zaretskii <eliz@gnu.org>
8330
9acef61c 8331 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8332 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8333 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8334 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8335 [!subprocesses]: Define.
8336 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8337 (Flist_system_processes, Fsystem_process_attributes)
8338 [!subprocesses]: Call list_system_processes and
8339 system_process_attributes instead of returning Qnil.
8340
9acef61c
JB
8341 * dosfns.c (system_process_attributes, list_system_processes):
8342 New functions.
c4605e09
EZ
8343
8344 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8345
8346 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8347 Don't use the default (no-op) implementation.
8348
8b7d0a16
JR
83492009-01-03 Jason Rumney <jasonr@gnu.org>
8350
a6d46bc1
JR
8351 * keyboard.c (parse_modifiers_uncached): Wheel events are
8352 clicks (bug#687).
8353
8b7d0a16
JR
8354 * w32term.c (x_query_colors, x_query_color): New functions.
8355
8356 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8357 (svg_load_image): Cast returned pointers from dynamically loaded
8358 functions. Eliminate W32 specific code.
8359
bfe11752
DN
83602009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8361
89e2438a
DN
8362 * nsfns.m (x_set_foreground_color, x_set_background_color)
8363 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8364 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8365 x_ prefix instead of ns_. Update references.
8366 (syms_of_nsfns): Add a FIXME comment.
8367
8368 * nsterm.m (x_set_cursor_type): New prototype.
8369 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8370
bfe11752
DN
8371 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8372 for Solaris instead of incorrectly providing Qutime and Qcutime.
8373
031da700
EZ
83742009-01-02 Eli Zaretskii <eliz@gnu.org>
8375
8376 * w32.c (process_times): Compute sum of utime and stime.
8377 (system_process_attributes): Add Qtime to the alist.
8378
8379 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8380 and add them to the alist.
8381
8382 * process.c (top level) <Qtime, Qctime>: New variables.
8383 (syms_of_process): staticpro them.
8384 (Fsystem_process_attributes): Add their documentation to the doc
8385 string.
8386
8387 * process.h: Declare Qtime and Qctime.
8388
df23bf08
JR
83892009-01-02 Jason Rumney <jasonr@gnu.org>
8390
9acef61c 8391 * image.c (Qgobject): New symbol.
df23bf08
JR
8392 (syms_of_image): Initialize it.
8393 (init_svg_functions): Load some functions from gobject library.
8394
5bbdf7aa
DN
83952009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8396
8397 * frame.c (make_terminal_frame): Remove redundant code and useless
8398 block.
8399
63136da6
AS
84002009-01-01 Andreas Schwab <schwab@suse.de>
8401
8402 * process.c (conv_sockaddr_to_lisp): Add workaround for
8403 getsockname bug on BSD.
8404
9ef69046
CY
84052009-01-01 Chong Yidong <cyd@stupidchicken.com>
8406
d6fafbe0
CY
8407 * xfns.c (x_create_tip_frame): Set border width of the X window.
8408
51d861de 8409 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8410
f9c34147
JR
84112009-01-01 Jason Rumney <jasonr@gnu.org>
8412
9acef61c 8413 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8414 Don't block input, as per earlier xterm.c changes.
8415
f5497e45
AR
84162008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8417
8418 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8419 (ns_appkit_version_int): New function.
8420 (x-server-version): Use ns_appkit_version_int and follow 21+
8421 convention of returning 3 integers.
8422
c19cab20
KH
84232008-12-30 Kenichi Handa <handa@m17n.org>
8424
8425 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8426 (CHAR_SURROGATE_PAIR_P): New macro.
8427
8428 * font.h (struct font_driver): New member get_variation_glyphs.
8429
9acef61c 8430 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8431 (Ffont_variation_glyphs): New function.
8432 (syms_of_font): Defsubr it.
8433
8434 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8435 ftfont_variation_glyphs.
8436 (setup_otf_gstring): New function.
8437 (ftfont_drive_otf): Use it.
8438 (ftfont_shape_by_flt): Handle variation selector.
8439 (ftfont_variation_glyphs): New function.
8440
28cd591f
MR
84412008-12-30 Martin Rudalics <rudalics@gmx.at>
8442
8443 * frame.c (Vemacs_iconified): Remove.
8444
7f714baf
JR
84452008-12-30 Jason Rumney <jasonr@gnu.org>
8446
8447 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8448 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8449
9d2d22ab
CY
84502008-12-30 Chong Yidong <cyd@stupidchicken.com>
8451
8452 * indent.c (Fvertical_motion): Don't advance iterator if we have
8453 reseated to the desired position.
8454
8455 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8456 checking for pos match.
8457
545312c2
KH
84582008-12-30 Kenichi Handa <handa@m17n.org>
8459
1ede3eb6
KH
8460 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8461 just get the low 8-bit of the code.
8462
545312c2
KH
8463 * font.c (font_intern_prop): Validate str as multibyte.
8464
bd7bbf29
DN
84652008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8466
31e0750e
DN
8467 * dispextern.h (struct face): Move lface and hash from the middle
8468 of bitfields.
8469
bd7bbf29
DN
8470 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8471
b5672e7c
DN
84722008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8473
8474 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8475 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8476 instead of intervals.h.
8477
d704470f
AS
84782008-12-26 Andreas Schwab <schwab@suse.de>
8479
8480 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8481 cons.
8482
54b33868
MR
84832008-12-26 Martin Rudalics <rudalics@gmx.at>
8484
8485 * textprop.c (Qminibuffer_prompt): New variable.
8486 (syms_of_textprop): Initialize it.
8487 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8488 in minibuffer-prompt face. (Bug#1662)
8489
40b615d6
JR
84902008-12-25 Jason Rumney <jasonr@gnu.org>
8491
8492 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8493
baae5c2d
JR
84942008-12-24 Jason Rumney <jasonr@gnu.org>
8495
8496 * ralloc.c (r_alloc_reset_variable): New function.
8497
8498 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8499 record of what points where. (Bug#716)
baae5c2d 8500
a9051c88
DN
85012008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8502
8503 * minibuf.c (read_minibuf): Follow the non-interactive case when
8504 running as a daemon, before detaching.
8505
8b146312
AS
85062008-12-22 Andreas Schwab <schwab@suse.de>
8507
8508 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8509 * gtkutil.c (free_widget_value): Use xfree instead of free.
8510
56f2de10
MR
85112008-12-22 Martin Rudalics <rudalics@gmx.at>
8512
8513 * frame.c (delete_frame): New function derived from
8514 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8515 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8516 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8517 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8518 * frame.h: Extern delete_frame.
8519 * window.c (window_loop):
8520 * terminal.c (delete_terminal):
8521 * xterm.c (x_connection_closed):
8522 * xfns.c (Fx_hide_tip):
9acef61c 8523 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8524
1fc200d6
JR
85252008-12-21 Jason Rumney <jasonr@gnu.org>
8526
8527 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8528 when character maps to .notdef character.
8529
5e252df2
SM
85302008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8531
8532 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8533
99b72cc4
JR
85342008-12-20 Jason Rumney <jasonr@gnu.org>
8535
8536 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8537 a graphical frame on Windows. (Bug#1325)
99b72cc4 8538
acc49a52
JD
85392008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8540
8541 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8542
6ea15123
CY
85432008-12-20 Chong Yidong <cyd@stupidchicken.com>
8544
8545 * minibuf.c (Fread_buffer): Doc fix.
8546
b2dab6c8
JR
85472008-12-20 Jason Rumney <jasonr@gnu.org>
8548
54ea0c87 8549 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8550 server name in UNC paths. (Bug#719)
54ea0c87 8551
b2dab6c8 8552 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8553 charbuf. (Bug#1035)
b2dab6c8 8554
6d1921be
DN
85552008-12-19 Daniel Engeler <engeler@gmail.com>
8556
8557 * sysdep.c (serial_configure): Fix typo.
8558
53934c98
DN
85592008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8560
8561 * sysdep.c: Include alloca.h.
f4f634e8
DN
8562 (system_process_attributes): Add implementation for Solaris.
8563
8564 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8565
06e111a6
DN
85662008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8567
8568 Reorganize implementation of Flist_system_processes and
8569 Fsystem_process_attributes. No functional changes.
8570 * process.c: Don't #include pwd.h, grp.h and limits.h.
8571 (Flist_system_processes): Just call list_system_processes.
8572 (Fsystem_process_attributes): Just call system_process_attributes.
8573 (procfs_list_system_processes, time_from_jiffies)
8574 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8575 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8576
8577 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8578 (list_system_processes): Rename from
8579 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8580 Provide a do nothing implementation.
8581 (system_process_attributes): Rename from
8582 procfs_list_system_processes.
8583 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8584 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8585
8586 * w32.c (list_system_processes): Rename from
8587 w32_list_system_processes.
8588 (system_process_attributes): Rename from
8589 w32_system_process_attributes.
8590
8591 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8592
8593 * process.h (w32_list_system_processes)
8594 (w32_system_process_attributes): Remove.
362654a6
JB
8595 (list_system_processes, system_process_attributes):
8596 New prototypes.
06e111a6 8597
6a705b23
KH
85982008-12-19 Kenichi Handa <handa@m17n.org>
8599
8600 * xfont.c (xfont_decode_coding_xlfd): New function.
8601 (xfont_encode_coding_xlfd): New function.
8602 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8603 (xfont_list): Decode and encode XLFD by iso-8859-1.
8604 (xfont_match): Likewise.
8605 (xfont_list_family): Likewise.
8606 (xfont_open): Likewise.
8607
d66c0241 8608 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8609 names are utf-8.
8610
d66c0241 8611 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8612 names are utf-8.
8613
5a130941
JD
86142008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8615
8616 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8617 changed.
bfd20325
JD
8618 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8619 clicked on a detached tool bar button.
5a130941 8620
fd95644b
DN
86212008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8622
8623 * emacs.c (main): Print and error and exit when no data is read
8624 from the pipe.
8625
e6eee6ae
JR
86262008-12-17 Jason Rumney <jasonr@gnu.org>
8627
8628 * w32font.c (w32font_has_char): Always return -1.
8629
a35dd56b
KH
86302008-12-16 Kenichi Handa <handa@m17n.org>
8631
8632 * font.c (font_open_entity): Fix previous change.
8633
0e3635c2
DN
86342008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8635
8636 * process.c: Include <limits.h>.
8637
d4835507 86382008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8639
8640 * font.c (font_update_drivers): Fix mistake in reconstructing the
8641 driver list.
8642
86432008-12-16 Chong Yidong <cyd@stupidchicken.com>
8644
8645 * font.c (font_clear_cache): Fix format of font cache data.
8646
e2cbc401
CY
86472008-12-15 Chong Yidong <cyd@stupidchicken.com>
8648
8649 * xftfont.c (xftfont_open): Free Xft font pattern if
8650 XftFontOpenPattern fails.
8651
8652 * xterm.c (x_free_frame_resources): Remove extraneous call to
8653 free_frame_faces.
8654
b131d535
CY
86552008-12-13 Chong Yidong <cyd@stupidchicken.com>
8656
8657 * xterm.c (x_delete_display): Move xim_close_dpy call to
8658 x_delete_terminal.
8659 (x_delete_terminal): Call xim_close_dpy.
8660
e6df5336
JR
86612008-12-13 Jason Rumney <jasonr@gnu.org>
8662
8663 * w32font.c (intern_font_name): New function.
8664 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8665 (w32font_open_internal, Fx_select_font): Decode font name.
8666 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8667
8668 * w32font.h (intern_font_name): Declare new function.
8669
8670 * w32uniscribe.c (add_opentype_font_name_to_list):
8671 Use intern_font_name.
8672
20d68145
CY
86732008-12-13 Chong Yidong <cyd@stupidchicken.com>
8674
9f2554de
CY
8675 * frame.c (Fdelete_frame): Call free_font_driver_list.
8676
3d9bec9a
CY
8677 * font.c (free_font_driver_list): Implement missing function.
8678
20d68145
CY
8679 * w32term.c (w32_term_init): Don't initialize the image cache
8680 here; it will be done in init_frame_faces.
8681
8682 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8683 (struct x_display_info): Remove unused member null_pixel. New
8684 member xim_callback_data.
8685
8686 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8687 (xim_initialize): Save pointer to callback function data.
8688 (xim_close_dpy): Free callback function data. Call XCloseIM,
8689 reverting 2008-11-04 change by David Smith.
8690 (x_term_init): Don't initialize the image cache here; it will be
8691 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8692 (x_delete_display): Free x_dnd_atoms member.
8693
96f9306b
KH
86942008-12-13 Kenichi Handa <handa@m17n.org>
8695
6dec9044
JB
8696 * font.c (font_rescale_ratio): Moved from xfaces.c.
8697 Argument type changed. Handle a font-spec too.
96f9306b 8698 (font_score): Check Vface_font_rescale_alist.
6dec9044 8699 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8700
8701 * xfaces.c (font_rescale_ratio): Moved to font.c.
8702
8d5b4964
CY
87032008-12-13 Chong Yidong <cyd@stupidchicken.com>
8704
8705 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8706
e6df5336
JR
87072008-12-12 Jason Rumney <jasonr@gnu.org>
8708
8709 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8710 Vwindow_system_version to the real w32 major version.
8711
97c6058a
DN
87122008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8713
8714 * term.c (init_tty): Move setting the terminal name before the
8715 potential user: maybe_fatal.
8716
ec4e88d7
CY
87172008-12-11 Chong Yidong <cyd@stupidchicken.com>
8718
d4835507
JB
8719 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8720 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8721
b4233ec9
JR
87222008-12-11 Jason Rumney <jasonr@gnu.org>
8723
8ec71e23 8724 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8725 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8726
b4233ec9 8727 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8728 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8729
011a0143
JB
87302008-12-11 Juanma Barranquero <lekktu@gmail.com>
8731
8732 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8733
3c309f34
JB
87342008-12-11 Juanma Barranquero <lekktu@gmail.com>
8735
8736 * process.c (Fsystem_process_attributes, syms_of_process):
8737 Fix typo in name of Ssystem_process_attributes.
8738 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8739
fedc6ab5
JB
87402008-12-11 Juanma Barranquero <lekktu@gmail.com>
8741
8742 * syntax.c (Fmodify_syntax_entry): Doc fix.
8743
ba3de0e8
JB
87442008-12-10 Juanma Barranquero <lekktu@gmail.com>
8745
8746 * font.c (Ffont_spec): Move usage to end of docstring.
8747
174f1c74
JR
87482008-12-10 Jason Rumney <jasonr@gnu.org>
8749
8750 * w32font.c (Qcham): New symbol.
8751 (font_supported_scripts): Add cham, and comments for other new
8752 scripts in bitfield from OpenType spec.
9d32f818
JR
8753 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8754 contain characters beyond the bmp.
174f1c74 8755
7b649478
KH
87562008-12-10 Kenichi Handa <handa@m17n.org>
8757
8758 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8759 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8760 Qunicode_sip.
8761
2133e2d1
JB
87622008-12-10 Juanma Barranquero <lekktu@gmail.com>
8763
8764 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8765 (Fcoding_system_put): Use QCdefault_char.
8766 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8767
9af886ee
CY
87682008-12-09 Chong Yidong <cyd@stupidchicken.com>
8769
74d819eb
CY
8770 * xftfont.c (syms_of_xftfont): Fix typo.
8771
4ccfa1c0 8772 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8773
7c19d3ae
DN
87742008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8775
8776 * emacs.c (main): Close daemon_pipe on exec.
8777
567826bb
CY
87782008-12-08 Chong Yidong <cyd@stupidchicken.com>
8779
8780 * termchar.h (struct tty): New members termcap_term_buffer and
8781 termcap_strings_buffer.
8782
8783 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8784 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8785 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8786 All callers changed.
8787 (init_tty): Store termcap data and string buffers in new struct
8788 tty members termcap_term_buffer and termcap_strings_buffer.
8789 (delete_tty): Free them.
4ccfa1c0 8790 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8791
aa96c42b
SZ
87922008-12-07 Seiji Zenitani <zenitani@mac.com>
8793
8794 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8795 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8796
b7e1d896
CY
87972008-12-06 Chong Yidong <cyd@stupidchicken.com>
8798
8799 * coding.c (make_conversion_work_buffer): Disable buffer
8800 modification hooks in the work buffer.
8801
b5ec91a5
EZ
88022008-12-05 Eli Zaretskii <eliz@gnu.org>
8803
8804 * process.c (procfs_system_process_attributes): If `nread' has a
8805 negative value, assign zero to it.
8806
a5d2a52b
CY
88072008-12-05 Chong Yidong <cyd@stupidchicken.com>
8808
68c5540b 8809 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8810
7bf1bb21
KH
88112008-12-05 Kenichi Handa <handa@m17n.org>
8812
8813 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8814 second character is a combining character.
8815
2fdc7d00
EZ
88162008-12-05 Eli Zaretskii <eliz@gnu.org>
8817
8818 * process.c (procfs_system_process_attributes): Don't use cmd,
8819 cmdsize, and q without initializing them first.
8820
bf6bfba8
JR
88212008-12-04 Jason Rumney <jasonr@gnu.org>
8822
8823 * w32font.c (w32font_draw): Initialize orig_clip before getting
8824 it, and delete it when finished.
8825
a3b1a468
DN
88262008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8827
8828 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8829 case when running as a daemon before detaching.
8830
8b8be8eb
JB
88312008-12-03 Juanma Barranquero <lekktu@gmail.com>
8832
805f2638 8833 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8834
b1bde622
KH
88352008-12-03 Kenichi Handa <handa@m17n.org>
8836
e500c47d
KH
8837 * font.c (font_at): Set `multibyte' at first.
8838
ca516334
KH
8839 * coding.c (decode_coding_charset): Check type of an element of
8840 vector VALIDS.
7bf1bb21 8841 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8842
4ccfa1c0 8843 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8844 (font_for_char): Likewise.
8845
1e5ecd37
CY
88462008-12-03 Chong Yidong <cyd@stupidchicken.com>
8847
d5b01609 8848 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8849 (font_update_lface): Handle fonts with corrupted size specs,
8850 i.e. non-int and non-float.
d5b01609 8851
11e3a6e4 8852 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8853 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8854 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8855
ab06788b
CY
8856 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8857
1e5ecd37 8858 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8859 underline_minimum_offset for underline position.
1e5ecd37 8860
63c125ab
DN
88612008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8862
8863 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8864
8865 * character.c (c_string_width): Specify the type for LEN.
8866
3a8406e1
KH
88672008-12-03 Kenichi Handa <handa@m17n.org>
8868
4ccfa1c0 8869 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8870 (decode_coding_utf_8): Likewise.
4ccfa1c0 8871 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8872 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8873
651df7d9
CY
88742008-12-02 Chong Yidong <cyd@stupidchicken.com>
8875
8876 * keyboard.c (make_lispy_position): Only use PT if the selected
8877 window is current.
8878
1f625c6c
AS
88792008-12-02 Andreas Schwab <schwab@suse.de>
8880
f7741ce9
AS
8881 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8882
1f625c6c
AS
8883 * doprnt.c (doprnt1): Fix size of charbuf.
8884
92bc2678
CY
88852008-12-02 Chong Yidong <cyd@stupidchicken.com>
8886
8887 * keyboard.c (timer_check): Revert last change.
8888
93b9e8cc
JB
88892008-12-02 Juanma Barranquero <lekktu@gmail.com>
8890
8891 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8892
fd7a37d5
JB
88932008-12-01 Juanma Barranquero <lekktu@gmail.com>
8894
8895 * makefile.w32-in: Update dependencies.
8896 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8897
c115043b
AS
88982008-12-01 Andreas Schwab <schwab@suse.de>
8899
8900 * font.c (register_font_driver): Use xmalloc.
8901 (font_put_frame_data): Likewise.
8902
f5668d2a
CY
89032008-12-01 Chong Yidong <cyd@stupidchicken.com>
8904
860d96be
CY
8905 * xfaces.c (realize_x_face): Make abort condition clearer.
8906
f5668d2a
CY
8907 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8908
379c17e7
CY
89092008-11-30 Chong Yidong <cyd@stupidchicken.com>
8910
8911 * keyboard.c (timer_check): After a timer runs, ensure that the
8912 selected window's buffer is current.
8913
35f36d65
JB
89142008-11-30 Juanma Barranquero <lekktu@gmail.com>
8915
f952c61c
JB
8916 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8917 It was accidentally restored by the Unicode merge.
8918
35f36d65
JB
8919 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8920
b23077df
JB
89212008-11-29 Juanma Barranquero <lekktu@gmail.com>
8922
8923 * w32proc.c: Include "coding.h".
8924 (Fw32_short_file_name): Encode filename passed to Windows API.
8925 (Fw32_long_file_name): Encode filename passed to Windows API and
8926 decode back the result. (Bug#1433)
8927
b8ebe9dd
KH
89282008-11-29 Kenichi Handa <handa@m17n.org>
8929
8cc53f96
KH
8930 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8931 not before accessing it.
8932
b8ebe9dd
KH
8933 * charset.c (Fdefine_charset_internal): After calculating
8934 min_char, max_char, and fastmap, copy the charset structure again.
8935 (encode_char): Fix the previous change.
8936
59bc82c0
SZ
89372008-11-28 Seiji Zenitani <zenitani@mac.com>
8938
8939 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8940
8941 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8942
8943 * nsterm.m (x_set_frame_alpha): New function.
8944
32247e3d
EZ
89452008-11-27 Eli Zaretskii <eliz@gnu.org>
8946
8947 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8948
b003e5ff
JB
89492008-11-27 Juanma Barranquero <lekktu@gmail.com>
8950
8951 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8952 pointer to check_face_name.
8953
708550f5
KH
89542008-11-27 Kenichi Handa <handa@m17n.org>
8955
8956 * category.h (SET_CATEGORY_SET): Call set_category_set.
8957 (set_category_set): Extern it.
8958
8959 * category.c (hash_get_category_set): New function.
8960 (Fmodify_category_entry): Adjusted for the change of
8961 char_table_ref_and_range. Call hash_get_category_set to get a
8962 category set to store in the table.
8963
8964 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8965 Funify_charset.
8966
2ae37cf0 8967 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8968 (DECODE_CHAR): Check if the decoder vector is ready.
8969 (ENCODE_CHAR): Check if the encoder char-table is ready.
8970 (maybe_unify_char): Extern it.
8971
8972 * charset.c (Vchar_unified_charset_table): Delete it.
8973 (inhibit_load_charset_map): New variable.
8974 (temp_charset_work): New variable.
8975 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8976 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8977 New macros.
8978 (load_charset_map): Meaning of control_flag changed. If
8979 inhibit_load_charset_map is nonzero, setup a table in
8980 temp_charset_work.
8981 (load_charset): New argument control_flag.
8982 (map_charset_for_dump): New function.
8983 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8984 map_charset_for_dump.
8985 (Fdefine_charset_internal): If the charset method is MAP, load
8986 mapping tables by calling load_charset.
8987 (Funify_charset): Don't load a mapping table but directly set
8988 Vchar_unify_table.
8989 (maybe_unify_char): New function.
8990 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8991 Handle the case of inhibit_load_charset_map being nonzero.
8992 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8993 Handle the case of inhibit_load_charset_map being nonzero.
8994 (Fclear_charset_maps): Just free temp_charset_work.
8995 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8996 variable.
8997
8998 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8999 change of char_table_ref_and_range.
9000 (char_table_ref_and_range): Change the meaning of argument FROM
9001 and TO. Now the caller must provide initial values for *FROM
9002 and *TO.
9003
9004 * fontset.c (fontset_add): Adjusted for the change of
9005 char_table_ref_and_range.
9006 (fontset_get_font_group): Likewise.
9007 (Ffontset_info): Likewise.
9008
9009 * keymap.c (describe_vector): Adjusted for the change of
9010 char_table_ref_and_range. For char-table, put boundary between
9011 non-ASCII and 8-bit characters.
9012
9013 * print.c (print_object): For bool-vector, delete unnecessary
9014 check of ASCII_BYTE_P.
9015
9196133b
JR
90162008-11-26 Jason Rumney <jasonr@gnu.org>
9017
9018 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9019 leading in font height. (Bug#879)
9196133b 9020
9f688acf
GM
90212008-11-26 Glenn Morris <rgm@gnu.org>
9022
9023 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9024 redefinition with ifdef. (Bug#1383)
9025
90d19aff
AR
90262008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9027
9028 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9029
4ccfa1c0 90302008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9031
9032 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9033 New EmacsView methods.
9034 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9035 Fixes bug #1048,1357,1414.
9036
90372008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9038
9039 Fix bug #1362.
9040 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9041 is not an indexed color.
9042 * nsterm.m (free_indexed_color): Add argument checking.
9043 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9044
e7d5ecb3
CY
90452008-11-24 Chong Yidong <cyd@stupidchicken.com>
9046
9047 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9048 Document confirm-after-completion value for
9049 minibuffer-completion-confirm.
9050
c285743c
JR
90512008-11-24 Jason Rumney <jasonr@gnu.org>
9052
9053 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9054 warning.
9055
b0857706
JR
90562008-11-23 Jason Rumney <jasonr@gnu.org>
9057
9058 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9059 restored before returning.
9060
9061 * w32font.c (check_face_name): New function.
9062 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9063 fonts. (Bug#642)
b0857706 9064
ee50ff07
MR
90652008-11-22 Martin Rudalics <rudalics@gmx.at>
9066
9067 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9068 confirm-nonexistent-file-or-buffer in doc-string.
9069
b8ff72fa
SM
90702008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9071
9072 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9073 Fix copy/paste typo. Add checks.
9074
cee53ed4
KH
90752008-11-21 Kenichi Handa <handa@m17n.org>
9076
9077 * coding.c (detect_coding_iso_2022): Reject invalid composition
9078 sequence.
9079 (DECODE_COMPOSITION_START): If the current source is the last
9080 block, and the current composition doesn't end, regard this
9081 sequence as invalid.
9082 (decode_coding_iso_2022): Handle invalid composition sequence.
9083
f6ef1e65
MR
90842008-11-20 Martin Rudalics <rudalics@gmx.at>
9085
9086 * window.c (coordinates_in_window): Don't return
9087 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9088 line when the window is not the rightmost one. (Bug#1372)
9089
e08b1705
MR
90902008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9091
9092 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9093
ad98e89f
EZ
90942008-11-15 Eli Zaretskii <eliz@gnu.org>
9095
9096 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9097 and bright_bg if noninteractive is non-zero.
9098
fb098a4b
CY
90992008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9100
9101 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9102 x_draw_glyph_string_background.
9103
9104 * w32term.c (x_draw_glyph_string): Likewise.
9105
ce952b6e
CY
91062008-11-15 Chong Yidong <cyd@stupidchicken.com>
9107
9108 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9109 the next glyph string once past the overhang width.
9110
9111 * nsterm.m (ns_draw_glyph_string): Likewise.
9112
9113 * w32term.c (x_draw_glyph_string): Likewise.
9114
26ea7079
CY
91152008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9116
9117 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9118 double file close.
9119
1c33c906
MR
91202008-11-14 Martin Rudalics <rudalics@gmx.at>
9121
9122 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9123 dedicated status of window before attempting to display another
9124 buffer in it.
9125
8fc29035
JB
91262008-11-14 Juanma Barranquero <lekktu@gmail.com>
9127
9128 * msdos.c (Fmsdos_long_file_names):
9129 (syms_of_msdos) <dos-unsupported-char-glyph>:
9130 * dosfns.c (Fint86): Fix typos in docstrings.
9131
55fb4286
EZ
91322008-11-14 Eli Zaretskii <eliz@gnu.org>
9133
9134 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9135
3fda0315
KY
91362008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9137
9138 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9139
7e849c17
CY
91402008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9141
9142 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9143
9144 * frame.h: Negative alpha means "don't touch".
9145
9146 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9147
9148 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9149
b9fd67bd
DN
91502008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9151
9152 * hftctl.c:
9153 * chpdef.h:
9154 * acldef.h: Remove files used only for systems no longer supported.
9155
9156 * Makefile.in: Fix .o alphabetical ordering.
9157 (hftctl.o): Remove dependency, file removed.
9158 (keymap.o, print.o): Depend on charset.h.
9159
d5998e03
KH
91602008-11-10 Kenichi Handa <handa@m17n.org>
9161
2ae37cf0 9162 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9163
be70e183
CY
91642008-11-08 Chong Yidong <cyd@stupidchicken.com>
9165
9166 * dired.c (file_name_completion): If completion_ignore_case is
9167 enabled, ignore case when checking completion-regexp-list.
9168
7cf94eac
EZ
91692008-11-08 Eli Zaretskii <eliz@gnu.org>
9170
9171 * vm-limit.c (get_lim_data): Fix last change.
9172
ee107a89
KH
91732008-11-08 Kenichi Handa <handa@m17n.org>
9174
9175 * character.c (Fget_byte): New function.
9176 (syms_of_character): Defsubr Fget_byte.
9177
5fd15622
CY
91782008-11-07 Chong Yidong <cyd@stupidchicken.com>
9179
9180 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9181 cursor position is valid after scrolling.
9182
13d62fad
JB
91832008-11-06 Juanma Barranquero <lekktu@gmail.com>
9184
9185 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9186
a1dd2936
GM
91872008-11-06 Glenn Morris <rgm@gnu.org>
9188
9189 * xterm.c (handle_one_xevent): Don't let popup menus cause
9190 mouse-autoselect-window related window switching. (Bug#1261)
9191
860cd236
CY
91922008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9193
9194 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9195
653a3150
AS
91962008-11-04 Andreas Schwab <schwab@suse.de>
9197
9198 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9199
870f5cac
CY
92002008-11-03 Chong Yidong <cyd@stupidchicken.com>
9201
9202 * xfns.c (Fx_wm_set_size_hint): New function.
9203
1e02f3cb
MR
92042008-11-03 Martin Rudalics <rudalics@gmx.at>
9205
9206 * textprop.c (Fprevious_single_char_property_change): Return 0
9207 when there's no change in a string. (Bug#1301)
9208
e630dfc6
MR
92092008-11-02 Martin Rudalics <rudalics@gmx.at>
9210
9211 * frame.c (do_switch_frame): New argument NORECORD passed to
9212 Fselect_window.
9213 (Fselect_frame): New argument NORECORD passed to
9214 do_switch_frame.
9215 (Fset_frame_selected_window): New argument NORECORD passed to
9216 Fselect_frame.
9217 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9218 in call of do_switch_frame.
9219 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9220 Handle NORECORD argument in call of Fselect_frame.
9221 * lisp.h (do_switch_frame, Fselect_frame)
9222 (Fset_frame_selected_window): Adjust declarations.
9223 * window.c (select_frame_norecord): New function.
9224 (run_window_configuration_change_hook): Use it and call
9225 Fselect_frame with NORECORD set.
9226 (Fselect_window): Pass NORECORD to Fselect_frame.
9227 (Fset_window_configuration): Handle NORECORD argument in call of
9228 do_switch_frame.
9229 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9230 Fset_frame_selected_window.
9231 * keyboard.c (command_loop_1): Handle NORECORD in call of
9232 Fselect_frame (currently ifdefd).
9233
9020b223
GM
92342008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9235
9236 * emacs.c (USAGE2): Untabify.
9237
793ffee8
SM
92382008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9239
9240 * composite.c (fill_gstring_header): Fix copy/paste typo.
9241
ab6d1131
MR
92422008-10-31 Martin Rudalics <rudalics@gmx.at>
9243
9244 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9245 (Fother_window): Rename argument and rewrite doc-string.
9246 (select_window_norecord): Fix return value. (Bug#1276)
9247
601a9cf1
JB
92482008-10-30 Juanma Barranquero <lekktu@gmail.com>
9249
9250 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9251 new frames overriding foreground for tooltips. Based on similar patch
9252 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9253
813b0652
CY
92542008-10-29 Chong Yidong <cyd@stupidchicken.com>
9255
9256 * emacs.c (Fdaemon_initialized): Initialize nfd.
9257
4414f58f
MR
92582008-10-29 Martin Rudalics <rudalics@gmx.at>
9259
9260 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9261 (Fwindow_text_height): Clarify doc-strings.
9262 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9263 doc-string of window-scroll-functions.
9264
ecdcaa09
RS
92652008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9266
9267 * category.c (syms_of_category): Fix typo in docstring.
9268
23fe745a
JB
92692008-10-28 Juanma Barranquero <lekktu@gmail.com>
9270
9271 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9272 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9273 Fix typos in docstrings.
9274
ff808935
DN
92752008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9276
9277 * emacs.c (daemon_pipe): Make non-static.
9278 (IS_DAEMON): Move definition ...
9279 * lisp.h (IS_DAEMON): ... here.
9280 (daemon_pipe): Declare.
9281 (is_daemon): Remove.
9282 * dispnew.c (init_display): Use IS_DAEMON.
9283
fc012771
SM
92842008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9285
9286 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9287 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9288
9289 * emacs.c (is_daemon): Remove.
9290 (main): Don't set is_daemon.
9291 (IS_DAEMON): New macro.
9292 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9293 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9294 parent exits.
9295 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9296
d8bdbe6f
CY
92972008-10-27 Chong Yidong <cyd@stupidchicken.com>
9298
d1a072bf
CY
9299 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9300 over-sized glyph, draw it with the default glyph width.
9301
e2e325aa
CY
9302 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9303 glyph, draw it with the default glyph width.
9304
9305 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9306 glyph, draw it with the default glyph width.
9307
d8bdbe6f
CY
9308 * xdisp.c (try_scrolling): When computing the distance from the
9309 scroll margin to PT, try moving some distance past the window
9310 bottom before giving up.
9311
7bfac547
MR
93122008-10-27 Martin Rudalics <rudalics@gmx.at>
9313
9314 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9315 (Fset_window_buffer): Explain in doc-string that a window can be
9316 "strongly" dedicated to its buffer.
9317
4ff029f6
DN
93182008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9319
9320 * emacs.c (daemon_name): New variable.
9321 (main): Deal with --daemon=SERVER_NAME.
9322 (Fdaemonp): Return a name if one was passed to --daemon.
9323
5790ef40
DN
93242008-10-26 Romain Francoise <romain@orebokech.com>
9325
f9bd0df9 9326 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9327 (main): Create a pipe before forking, make the parent exit only after
9328 the child has closed its end of the pipe. Move closing the
9329 descriptors ...
9330 (Fdaemon_initialized): ... here. New function.
9331
f5385255
SM
93322008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9333
4d632321
SM
9334 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9335 the previous unoptimized table.
9336
f5385255
SM
9337 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9338 the distinction between non-nil and non-t value of `dedicated'.
9339
6c56a0f3
CY
93402008-10-25 Chong Yidong <cyd@stupidchicken.com>
9341
9342 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9343 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9344
fec89261
MR
93452008-10-25 Martin Rudalics <rudalics@gmx.at>
9346
9347 * window.c (Fget_buffer_window, Fdelete_windows_on)
9348 (Freplace_buffer_in_windows): Make buffer argument optional and
9349 rename to buffer_or_name.
9350
34fcddd0
CY
93512008-10-24 Chong Yidong <cyd@stupidchicken.com>
9352
f5385255
SM
9353 * xdisp.c (handle_single_display_spec, handle_display_prop):
9354 Undo 2005-05-16 change.
34fcddd0
CY
9355 (handle_stop): Pop iterator if it's loaded with an empty string.
9356 (get_overlay_strings_1): Don't save iterator if it's loaded with
9357 an empty string (bug#1201).
9358
064766f2
KH
93592008-10-24 Kenichi Handa <handa@m17n.org>
9360
9361 * ftfont.c (ftfont_otf_features): Fix previous change.
9362 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9363 calling ftfont_otf_features.
9364
f9bd0df9 93652008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9366
9367 * font.c (font_match_p): Fix for the case that a vector of
9368 characters is in script-representative-chars.
9369
1dae9197
MA
93702008-10-24 Michael Albinus <michael.albinus@gmx.de>
9371
9372 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9373 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9374 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9375 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9376 macro. (Bug#1186)
1dae9197 9377
f9bd0df9 93782008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9379
9380 * s/sol2-10.h: New file.
9381
878a4584
JB
93822008-10-23 Juanma Barranquero <lekktu@gmail.com>
9383
9384 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9385 poor beast has survived 9+ years and the jump from xterm.c!).
9386
cd265ca6
MR
93872008-10-23 Martin Rudalics <rudalics@gmx.at>
9388
9389 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9390 Reword doc-string.
f5385255 9391 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9392
472a4dc9
JB
93932008-10-23 Juanma Barranquero <lekktu@gmail.com>
9394
9395 * character.c (syms_of_character) <script-representative-chars>:
9396 <unicode-category-table>: Doc fixes.
9397
159bd5a2
NF
93982008-10-23 Noah Friedman <friedman@splode.com>
9399
9400 * coding.c (make_conversion_work_buffer): Check that
9401 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9402 Fget_buffer_create.
9403
49f9c344
KH
94042008-10-23 Kenichi Handa <handa@m17n.org>
9405
9406 * font.c (font_add_log): Check the values of extra properties.
9407
12bb3111
MR
94082008-10-22 Martin Rudalics <rudalics@gmx.at>
9409
9410 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9411 Reword doc-string.
9412 (Fset_window_parameter): Use NILP.
9413 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9414 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9415
bbeb4e99
JB
94162008-10-22 Juanma Barranquero <lekktu@gmail.com>
9417
9418 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9419
94202008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9421
9422 * nsfns.m (ns_appkit_version): New function.
9423 (x-server-version): Use it.
9424 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9425 (x-server-vendor): Don't check_ns().
9426
9427 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9428
a9b555d3
JB
94292008-10-22 Juanma Barranquero <lekktu@gmail.com>
9430
9431 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9432 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9433
4626499f
KH
94342008-10-22 Kenichi Handa <handa@m17n.org>
9435
e3681952
KH
9436 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9437 scripts.
9438
4626499f
KH
9439 * category.c (word_boundary_p): Check scripts instead of charset.
9440 Handle nil value in word-separating-categories and
9441 word-combining-categories.
9442 (syms_of_category): Fix docstrings of word-separating-categories
9443 and word-combining-categories.
9444
1560f91a
EZ
94452008-10-21 Eli Zaretskii <eliz@gnu.org>
9446
9447 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9448 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9449
f4668441
MR
94502008-10-21 Martin Rudalics <rudalics@gmx.at>
9451
9452 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9453 Rename arg "buffer" to "buffer_or_name".
9454 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9455 it optional.
9456 (no_switch_window): Remove since the return value is not used.
a9b555d3 9457 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9458 Consider window as dedicated when Fwindow_dedicated_p returns a
9459 non-nil value.
9460 * lisp.h: Remove prototype for no_switch_window.
9461
fd75ddb2
JD
94622008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9463
9464 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9465 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9466
07295713
KH
94672008-10-21 Kenichi Handa <handa@m17n.org>
9468
9469 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9470 check Vlatin_extra_code_table.
9471
712adc82
EZ
94722008-10-20 Eli Zaretskii <eliz@gnu.org>
9473
9474 * fileio.c (Fset_file_modes): Doc fix.
9475
f549eb0b
MA
94762008-10-19 Michael Albinus <michael.albinus@gmx.de>
9477
9478 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9479 in arrays.
9480
aac0c6e3
MR
94812008-10-19 Martin Rudalics <rudalics@gmx.at>
9482
9483 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9484 Mention kill-buffer in doc-string.
9485 (Fset_window_buffer): Reinsert tem check removed in last commit.
9486 (Fenlarge_window, Fshrink_window): Have argument names and
9487 doc-string follow Elisp manual more closely.
9488
94892008-10-18 Eli Zaretskii <eliz@gnu.org>
9490
9491 * fileio.c (Fset_file_modes): Doc fix.
9492
94932008-10-18 Martin Rudalics <rudalics@gmx.at>
9494
9495 * window.c (Fwindow_width, Fset_window_start)
9496 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9497 (Fdelete_windows_on, Freplace_buffer_in_windows):
9498 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9499 (Fwindow_dedicated_p): Make window argument optional.
9500 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9501 (Fset_window_buffer): Respect any non-nil dedicated value for
9502 window. Rename "buffer" argument to "buffer_or_name".
9503
95042008-10-18 Ulrich Mueller <ulm@gentoo.org>
9505
9506 * m/sh3.h: New file, machine description for SuperH.
9507
95082008-10-17 Martin Rudalics <rudalics@gmx.at>
9509
9510 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9511
95122008-10-17 Kenichi Handa <handa@m17n.org>
9513
9514 * ftfont.c (ftfont_otf_features): Fix indexing
9515 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9516
95172008-10-16 Magnus Henoch <mange@freemail.hu>
9518
9519 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9520 (Fdbus_call_method_asynchronously): Ditto.
9521 This change makes C-h f display the argument list.
9522
95232008-10-16 Chong Yidong <cyd@stupidchicken.com>
9524
9525 * fileio.c (Fexpand_file_name): Doc fix.
9526
9527 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9528 of :foreground and :background equivalent to unspecified (20.x
9529 compatibility).
9530
95312008-10-15 Eli Zaretskii <eliz@gnu.org>
9532
9533 * buffer.c (syms_of_buffer): Doc fix.
9534
95352008-10-14 Kenichi Handa <handa@m17n.org>
9536
9537 * font.c (font_clear_prop): When clearing font width, clear the
9538 average width field too.
9539
95402008-10-12 Andreas Schwab <schwab@suse.de>
9541
9542 * ftfont.c (ftfont_shape_by_flt): Make static.
9543 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9544
9545 * font.c: Don't include <m17n-flt.h>.
9546
95472008-10-10 Eli Zaretskii <eliz@gnu.org>
9548
9549 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9550
95512008-10-09 Eli Zaretskii <eliz@gnu.org>
9552
9553 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9554 away code.
9555
95562008-10-09 Chong Yidong <cyd@stupidchicken.com>
9557
9558 * dispnew.c (update_text_area): Avoid looping due to large glyph
9559 overhangs (bug#1070).
9560
95612008-10-09 Kenichi Handa <handa@m17n.org>
9562
9563 * fontset.c (face_for_char): If face->fontset is negative, just
9564 return ascii_face.
9565
f5385255
SM
9566 * font.c (font_delete_unmatched): Fix previous change.
9567 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9568
95692008-10-09 Martin Rudalics <rudalics@gmx.at>
9570
9571 * frame.c (Fraise_frame): On text-only terminals select frame in
9572 order to make it visible. (Bug#1061)
9573
95742008-10-08 Chong Yidong <cyd@stupidchicken.com>
9575
9576 * fontset.c (fontset_find_font): Check frame validity.
9577
95782008-10-07 Chong Yidong <cyd@stupidchicken.com>
9579
a9b555d3 9580 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9581 (xg_display_close): Allow Emacs to close all displays (bug#985).
9582
95832008-10-06 Andreas Schwab <schwab@suse.de>
9584
f5385255 9585 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9586
95872008-10-06 Chong Yidong <cyd@stupidchicken.com>
9588
f5385255 9589 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9590
a9b555d3 9591 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9592
9593 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9594 during initialization.
9595
95962008-10-04 Eli Zaretskii <eliz@gnu.org>
9597
9598 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9599 whole thing on MSDOS frames as well as on a TTY.
9600
9601 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9602 well as for TTY.
9603 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9604 well as on a TTY.
9605
9606 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9607 as well as for TTY.
9608
9609 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9610
9611 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9612 MSDOS frames as well.
9613
96142008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9615
9616 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9617 correct arguments.
b71ac3dd 9618 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9619
96202008-10-03 Glenn Morris <rgm@gnu.org>
9621
9622 * emacs.c (USAGE1): Add --daemon.
9623
96242008-10-02 Eli Zaretskii <eliz@gnu.org>
9625
9626 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9627 100, so it's in percents as advertised.
9628
96292008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9630
9631 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9632 (ns_output.current_cursor, ns_output.desired_cursor)
9633 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9634 (FRAME_NEW_CURSOR_COLOR): Remove.
9635
9636 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9637 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9638 enumeration (HOLLOW_BOX_CURSOR, etc.).
9639
9640 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9641 (draw_window_cursor): Simplify code.
f5385255
SM
9642 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9643 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9644 updates manually.
a9b555d3
JB
9645 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9646 Use core Emacs cursor types.
aac0c6e3 9647
b8ff72fa 9648 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9649
96502008-10-02 Martin Rudalics <rudalics@gmx.at>
9651
9652 * process.c (Faccept_process_output): Fix doc-string.
9653
96542008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9655
9656 * gmalloc.c (__sbrk): Also define for uClibc.
9657
9658 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9659 for uClibc.
9660
96612008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9662
9663 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9664 styles.
9665 (nsfont_open): Reenable the cache.
9666
96672008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9668
9669 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9670 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9671
96722008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9673
9674 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9675 a suspended terminal.
9676
96772008-09-30 Michael Albinus <michael.albinus@gmx.de>
9678
9679 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9680
96812008-09-30 Eli Zaretskii <eliz@gnu.org>
9682
9683 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9684
96852008-09-30 Chong Yidong <cyd@stupidchicken.com>
9686
9687 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9688 in a continued line coincides with a line beginning.
9689
96902008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9691
9692 * nsfont.m (nsfont_trait_distance): Fix bug.
9693 (nsfont_list): Return a list rather than a vector (syncs with Handa
9694 changes of 2008-05-14).
9695 (nsfont_open): Improve logging.
9696
96972008-09-29 Andreas Schwab <schwab@suse.de>
9698
9699 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9700
97012008-09-28 Martin Rudalics <rudalics@gmx.at>
9702
9703 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9704 name as char-resolve-modifiers.
9705 Reported by: Markus Triska <markus.triska@gmx.at>
9706
97072008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9708
9709 * dispnew.c (init_display): Return earlier when running as a daemon.
9710
97112008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9712
9713 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9714
97152008-09-27 Eli Zaretskii <eliz@gnu.org>
9716
9717 * composite.c (Fcomposition_get_gstring)
9718 (Fcompose_region_internal, Fcompose_string_internal)
9719 (Ffind_composition_internal): Doc fix.
9720 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9721 (syms_of_composite) <auto-composition-function>: Doc fix.
9722 (syms_of_composite) <composition-function-table>: Doc fix.
9723
97242008-09-25 Chong Yidong <cyd@stupidchicken.com>
9725
9726 * search.c (wordify): New argument for lax word-ends.
9727 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9728
97292008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9730
9731 * lisp.h (is_daemon): Declare.
9732 * dispnew.c (init_display): Do not try to initialize the terminal
9733 when running as a daemon.
9734
97352008-09-22 Chong Yidong <cyd@stupidchicken.com>
9736
9737 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9738 x_display_pixel_height.
9739
97402008-09-22 Martin Rudalics <rudalics@gmx.at>
9741
9742 * undo.c (record_point): Don't call Fundo_boundary for first
9743 change. (Bug#731)
9744
97452008-09-22 Juanma Barranquero <lekktu@gmail.com>
9746
9747 * emacs.c (Fdaemonp): Doc fix.
9748
97492008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9750
9751 * emacs.c (main): Place #ifdef in the proper place.
9752
97532008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9754
9755 * emacs.c (standard_args): Add --daemon.
9756 (main): Disconnect from the terminal when --daemon is passed.
9757 (is_daemon): New variable.
9758 (Fdaemonp): New function.
9759 (syms_of_emacs): Defsubr it.
9760
97612008-09-20 Chong Yidong <cyd@stupidchicken.com>
9762
9763 * xdisp.c (get_next_display_element): Handle string display
9764 correctly when checking for the end of a box run.
9765
97662008-09-20 Glenn Morris <rgm@gnu.org>
9767
9768 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9769 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9770 (Frename_file): Avoid copying to trash if a rename involves
9771 a delete. (Bug#964).
9772
97732008-09-20 Eli Zaretskii <eliz@gnu.org>
9774
9775 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9776 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9777 frames as well as termcap frames.
9778 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9779 get_named_tty.
9780
97812008-09-19 Eli Zaretskii <eliz@gnu.org>
9782
9783 * process.c (procfs_system_process_attributes): Fix cmdline in
9784 case /proc/PID/cmdline is empty.
9785
9786 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9787 x_display_pixel_height.
9788
97892008-09-19 Juanma Barranquero <lekktu@gmail.com>
9790
9791 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9792
9793 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9794 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9795
97962008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9797
9798 * dispextern.h (struct it): Move line_wrap away from the middle of
9799 bitfields. Move voffset in struct iterator_stack_entry after the
9800 bitfields. Move tab_width near after another short.
9801
98022008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9803
9804 * frame.h (struct frame): Move alpha from the middle of bitfields.
9805
9806 * window.h (struct window): Move frozen_window_start_p after the
9807 rest of the bitfields to reduce padding.
9808
98092008-09-18 Chong Yidong <cyd@stupidchicken.com>
9810
9811 * xterm.h (x_display_info): Remove `height' and `width' members.
9812
9813 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9814
9815 * w32term.h (w32_display_info): Remove `height', `width',
9816 `height_in', and `width_in' members.
9817
b8ff72fa
SM
9818 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9819 New functions.
aac0c6e3
MR
9820 (x_calc_absolute_position): Use them.
9821 (x_term_init): Omit removed `height' and `width' members.
9822
b8ff72fa
SM
9823 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9824 New functions.
aac0c6e3
MR
9825 (w32_read_socket, x_calc_absolute_position): Use them.
9826 (w32_initialize_display_info, w32_term_init): Omit removed members
9827 of w32_display_info.
9828
b8ff72fa
SM
9829 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9830 New functions.
9831 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9832
b8ff72fa
SM
9833 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9834 New functions.
aac0c6e3
MR
9835 (x_calc_absolute_position): Use them.
9836 (x_term_init): Omit removed `height' and `width' members.
9837
9838 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9839 (compute_tip_xy):
9840 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9841 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9842 x_display_pixel_width.
9843
98442008-09-18 Kenichi Handa <handa@m17n.org>
9845
9846 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9847 (composition_compute_stop_pos): Fix handling of static composition.
9848 (Fcomposition_get_gstring): Check FROM and TO at first.
9849
98502008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9851
46e722a9 9852 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9853 mixup (YAILOM).
9854
98552008-09-17 Chong Yidong <cyd@stupidchicken.com>
9856
9857 * indent.c (Fvertical_motion): Use position reported by iterator
9858 instead of PT for determining screen motion (bug#943).
9859
98602008-09-17 Romain Francoise <romain@orebokech.com>
9861
9862 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9863
98642008-09-17 Kenichi Handa <handa@m17n.org>
9865
9866 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9867
9868 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9869 if necessary.
9870
98712008-09-16 Kenichi Handa <handa@m17n.org>
9872
9873 * coding.c (make_conversion_work_buffer): Avoid calling
9874 Fget_buffer_create if it is not necessary.
9875
98762008-09-15 Martin Rudalics <rudalics@gmx.at>
9877
9878 * window.c (Fselect_window): Don't update window_select_count and
9879 use_time when norecord is not nil.
9880
98812008-09-14 Kenichi Handa <handa@m17n.org>
9882
9883 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9884 specpdl_ptr.
9885
98862008-09-12 Kenichi Handa <handa@m17n.org>
9887
9888 * indent.c (scan_for_column): Don't handle automatic composition
9889 if the current buffer is not associated with a window.
9890
9891 * composite.c (composition_reseat_it): If the current buffer is
9892 not associated with a window, ignore the automatic composition.
9893 (find_automatic_composition): Likewise.
9894
98952008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9896
9897 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9898 (Fgpm_mouse_stop): Use it.
9899 * termhooks.h (close_gpm): Declare.
9900 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9901 connection if Gpm_GetEvent fails.
9902
9903 * window.c (set_window_buffer): Always preserve current-buffer.
9904
99052008-09-12 Glenn Morris <rgm@gnu.org>
9906
9907 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9908
99092008-09-11 Glenn Morris <rgm@gnu.org>
9910
9911 * charset.c (charset-map-path): Doc fix.
9912
99132008-09-10 Kenichi Handa <handa@m17n.org>
9914
9915 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9916
9917 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9918 compose a grapheme cluster with the preceding base glyph.
9919
9920 * composite.c (composition_compute_stop_pos): Fix previous change.
9921 Reset cmp_it->id to -1 at first.
9922
99232008-09-10 Glenn Morris <rgm@gnu.org>
9924
9925 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9926
99272008-09-09 Chong Yidong <cyd@stupidchicken.com>
9928
9929 * keyboard.c (read_key_sequence): Reapply translation maps when
9930 switching keyboards.
9931
99322008-09-09 Kenichi Handa <handa@m17n.org>
9933
9934 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9935 characters.
9936
9937 * composite.c (FORWARD_CHAR): Fix calculation
9938 of (POSITION).pos_byte.
9939 (composition_compute_stop_pos): Limit the search of composition to
9940 at most 500 characters ahead. If we reach the limit or find a
9941 newline, set cmp_it->ch to -2 and return 0.
9942 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9943
99442008-09-08 Kenichi Handa <handa@m17n.org>
9945
9946 * indent.c (Fvertical_motion): Be sure to set
9947 it_overshoot_expected if it.cmp_it.id is non-negative.
9948
99492008-09-07 Andreas Schwab <schwab@suse.de>
9950
9951 * callproc.c (Fcall_process): Don't hold references to string data
9952 across garbage collection. Move initialisation of new_argv down
9953 to avoid compiler bug.
9954
99552008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9956
9957 * process.c (Fsystem_process_attributes): Doc fix.
9958
99592008-09-07 Chong Yidong <cyd@stupidchicken.com>
9960
9961 * callproc.c (Fcall_process): Canonicalize current directory name.
9962
9963 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9964 iterator advances to the next line if the current line ends in a
9965 continued tab.
9966
99672008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9968
9969 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9970 member to point to cmp_from.
9971
9972 * xdisp.c: Doc fix for references to gidx data member.
9973
99742008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9975
9976 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9977
99782008-09-07 Kenichi Handa <handa@m17n.org>
9979
9980 * composite.c (FORWARD_CHAR): Check STOP after
9981 incrementing (POSITION).pos.
9982
99832008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9984
9985 * process.c (Fsystem_process_attributes): Doc fix.
9986
99872008-09-06 Chong Yidong <cyd@stupidchicken.com>
9988
9989 * keyboard.c (Ftop_level): Doc fix.
9990
99912008-09-06 Eli Zaretskii <eliz@gnu.org>
9992
9993 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9994 minibuffer, don't let lower part of menu invade the echo area.
9995
9996 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9997 "char *q" to access menu text and advance through it. Revert the
9998 change that displayed ">" instead of ASCII character 0x10.
9999
100002008-09-05 Eli Zaretskii <eliz@gnu.org>
10001
10002 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10003 toggle boxes and radio buttons on MS-DOS as well.
10004
100052008-09-05 Kenichi Handa <handa@m17n.org>
10006
10007 * composite.c (autocmp_chars): Check lookback count.
10008 (composition_compute_stop_pos): Set cmp_it->lookback.
10009 (composition_reseat_it): Check lookback count.
10010 (struct position_record): New struct.
10011 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10012 (find_automatic_composition): New function.
10013 (composition_adjust_point): Use find_automatic_composition.
10014
10015 * dispextern.h (struct composition_it): New member lookback.
10016
100172008-09-02 Chong Yidong <cyd@stupidchicken.com>
10018
10019 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10020 if moving by a single line.
10021
100222008-09-02 Andreas Schwab <schwab@suse.de>
10023
10024 * xterm.c (x_delete_display): Fix merge error.
10025
10026 * fileio.c (Fexpand_file_name): Remove unused variables.
10027
100282008-09-02 Eli Zaretskii <eliz@gnu.org>
10029
10030 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10031 storage on all platforms, not just on DOS_NT.
10032
100332008-09-02 Jason Rumney <jasonr@gnu.org>
10034
b8ff72fa
SM
10035 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10036 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10037
100382008-09-01 Chong Yidong <cyd@stupidchicken.com>
10039
10040 * xfaces.c (Finternal_set_alternative_font_family_alist)
10041 (Finternal_set_alternative_font_registry_alist): Properly copy
10042 entire alist structure.
10043
100442008-09-01 Kenichi Handa <handa@m17n.org>
10045
d66c0241 10046 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10047 representative chars of the script is a vector.
d66c0241
JB
10048 (ftfont_list): Handle the case where the representative chars of
10049 the script is a vector.
aac0c6e3
MR
10050
10051 * character.c (syms_of_character): Docstring of
10052 script-representative-chars fixed.
10053
100542008-08-31 Eli Zaretskii <eliz@gnu.org>
10055
10056 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10057 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10058 the menu. Allocate larger buffer for `text', to account for
10059 possible ^C characters.
10060
100612008-08-31 Martin Rudalics <rudalics@gmx.at>
10062
10063 * xdisp.c (prepare_menu_bars): Don't call
10064 Vwindow_size_change_functions with arg Qt.
10065
100662008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10067
10068 * font.h (font_range):
10069 * fileio.c (report_file_error):
46e722a9
SM
10070 * composite.c (composition_update_it): Yet another int/Lisp_Object
10071 mixup (YAILOM).
aac0c6e3
MR
10072
100732008-08-30 Glenn Morris <rgm@gnu.org>
10074
10075 * data.c (Fmake_variable_frame_local): Doc fix.
10076
10077 * frame.c (Fmodify_frame_parameters): Doc fix.
10078
100792008-08-30 Eli Zaretskii <eliz@gnu.org>
10080
10081 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10082 needed by GetTokenInformation.
10083 (w32_system_process_attributes): Check return values of all system
10084 APIs.
10085
10086 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10087 only when the state changes.
10088 (IT_update_begin, IT_update_end): Add termscript trace.
10089
10090 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10091 clipboard is unavailable. Set dst to NULL if it doesn't point to
10092 malloc'ed data.
10093 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10094 passing random values to xfree.
10095
10096 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10097 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10098
100992008-08-29 Jason Rumney <jasonr@gnu.org>
10100
10101 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10102
101032008-08-29 Eli Zaretskii <eliz@gnu.org>
10104
10105 * composite.c (fill_gstring_body): Avoid compiler warnings.
10106
10107 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10108 LGLYPH_SET_CODE to avoid compiler warnings.
10109
2ae37cf0 10110 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10111
10112 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10113
10114 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10115 LGLYPH_SET_CODE.
10116
101172008-08-29 Kenichi Handa <handa@m17n.org>
10118
10119 * fileio.c (report_file_error): Don't downcase the first character
10120 of errstring if it is still unibyte.
10121
101222008-08-29 Kenichi Handa <handa@m17n.org>
10123
10124 These changes are to re-implement the automatic composition so
10125 that it doesn't use text properties.
10126
10127 * Makefile.in (ftfont.o): Depend on composite.h.
10128 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10129
10130 * character.h (Vunicode_category_table): Extern it.
10131
10132 * character.c (Vunicode_category_table): New variable.
10133 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10134
10135 * chartab.c (optimize_sub_char_table): Perform more greedy
10136 optimization.
10137
b8ff72fa
SM
10138 * composite.h (enum composition_method):
10139 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10140 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10141 (Vcomposition_function_table): Extern it.
10142 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10143 (composition_gstring_put_cache, composition_gstring_from_id)
10144 (composition_gstring_p, composition_gstring_width)
10145 (composition_compute_stop_pos, composition_reseat_it)
10146 (composition_update_it, composition_adjust_point): Extern them.
10147 (Fcomposition_get_gstring): EXFUN it.
10148
d66c0241 10149 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10150 (Vcomposition_function_table)
10151 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10152 (gstring_hash_table, gstring_work, gstring_work_headers):
10153 New variables.
aac0c6e3
MR
10154 (gstring_lookup_cache, composition_gstring_put_cache)
10155 (composition_gstring_from_id, composition_gstring_p)
10156 (composition_gstring_width, fill_gstring_header)
10157 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10158 (composition_reseat_it, composition_update_it)
b8ff72fa 10159 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10160 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10161 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10162 Defsubr composition_get_gstring.
aac0c6e3
MR
10163
10164 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10165 cmp_id.
10166 (struct glyph_string): Delete the member gidx. New members
10167 cmp_id, cmp_from, and cmp_to.
10168 (enum it_method): Delete GET_FROM_COMPOSITION.
10169 (struct composition_it): New struct.
10170 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10171 Delete c, len, cmp_id, cmp_len in u.comp.
10172
10173 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10174 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10175 (enum lglyph_indices): Likewise.
b8ff72fa 10176 (font_range): Adjust extern.
aac0c6e3
MR
10177 (font_fill_lglyph_metrics): Extern it.
10178
10179 * font.c (QCf): New variable.
10180 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10181 (font_prepare_composition): Delete this function.
10182 (font_range): Type and arguments changed.
10183 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10184 (font_fill_lglyph_metrics): New function.
b8ff72fa 10185 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10186 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10187 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10188 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10189
10190 * fontset.h (font_for_char): Extern it.
10191
10192 * fontset.c (font_for_char): New function.
10193
10194 * ftfont.c: Include composite.h.
10195 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10196 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10197
10198 * indent.c: Include composite.h and dispextern.h.
10199 (check_composition): Delete this function.
10200 (scan_for_column): Handle composition by
10201 composition_compute_stop_pos, composition_reseat_it, and
10202 composition_update_it.
10203 (compute_motion): Likewise.
10204 (Fvertical_motion): Fix checking of composition.
10205
10206 * keyboard.c (adjust_point_for_property): Check composition by
10207 composition_adjust_point.
10208
b8ff72fa 10209 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10210 struct glyph_string.
10211
b8ff72fa
SM
10212 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10213 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10214 struct glyph.
10215 (produce_composite_glyph): Likewise.
10216
b8ff72fa
SM
10217 * w32term.c (x_draw_composite_glyph_string_foreground):
10218 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10219 (x_draw_glyph_string): Likewise.
10220
10221 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10222 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10223
10224 * xdisp.c: Include font.h.
10225 (it_props): Delete the entry for Qauto_composed.
10226 (init_iterator): Initialize it->cmp_it.id to -1.
10227 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10228 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10229 (handle_auto_composed_prop): Delete it.
10230 (handle_composition_prop): Handle only static composition.
10231 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10232 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10233 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10234 (pop_it): Likewise.
10235 (get_next_element): Delete next_element_from_composition.
10236 (CHAR_COMPOSED_P): New macro.
10237 (get_next_display_element): For automatic composition, get a face
10238 from the font in the glyph-string.
10239 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10240 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10241 (next_element_from_string): Check if the character at the current
10242 position is composed by CHAR_COMPOSED_P.
10243 (next_element_from_buffer): Likewise.
d66c0241
JB
10244 (next_element_from_composition): Adjust for the change of struct it.
10245 Update it->cmp_it.
b8ff72fa
SM
10246 (dump_glyph): Adjust for the change of struct glyph.
10247 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10248 it and struct glyph. Don't handle automatic composition here.
10249 (fill_gstring_glyph_string): New function.
10250 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10251 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10252 (BUILD_GSTRING_GLYPH_STRING): New macro.
10253 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10254 automatic composition.
b8ff72fa 10255 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10256 struct glyph.
b8ff72fa 10257 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10258
b8ff72fa 10259 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10260 the change of struct glyph_string.
10261 (x_draw_glyph_string): Likewise.
10262
102632008-08-29 Glenn Morris <rgm@gnu.org>
10264
10265 * buffer.c (word-wrap): Doc fix.
10266 * xdisp.c (truncate-partial-width-windows): Doc fix.
10267 Increase default to 50.
10268
102692008-08-29 Chong Yidong <cyd@stupidchicken.com>
10270
10271 * xdisp.c (update_tool_bar_unwind): New function.
10272 (update_tool_bar): Temporarily set selected frame before building
10273 tool-bar items.
10274
102752008-08-28 Michael Albinus <michael.albinus@gmx.de>
10276
10277 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10278 snprintf, respectively.
10279 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10280
102812008-08-28 Chong Yidong <cyd@stupidchicken.com>
10282
10283 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10284 LDFLAGS to GNUstep CC invocation.
10285
102862008-08-27 Chong Yidong <cyd@stupidchicken.com>
10287
10288 * indent.c (Fvertical_motion): Revert last change. Handle the
10289 general case where we are moving forward, and PT spans multiple
10290 screen lines.
10291
10292 * eval.c (find_handler_clause): Temporarily increase
10293 max-lisp-eval-depth while printing the backtrace buffer, to
10294 guarantee that help-mode code can run.
10295
102962008-08-27 Eli Zaretskii <eliz@gnu.org>
10297
10298 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10299 colors under -rv.
10300 (IT_set_frame_parameters): Don't swap foreground and background
10301 colors if `(reverse . t)' is present in the frame properties.
10302 (internal_terminal_init): Call init_frame_faces only for the
10303 initial frame.
10304
103052008-08-27 Andreas Schwab <schwab@suse.de>
10306
10307 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10308
103092008-08-27 Andreas Schwab <schwab@suse.de>
10310
10311 * search.c (search_buffer): Set char_base to zero only at the end.
10312
103132008-08-27 Kenichi Handa <handa@m17n.org>
10314
b8ff72fa 10315 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10316
103172008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10318
10319 * xterm.c (x_term_init): Temporarily hide the partially
10320 initialized terminal while calling vendor-specific-keysyms.
10321
103222008-08-26 Eli Zaretskii <eliz@gnu.org>
10323
10324 * msdos.c (internal_terminal_init): Most initializations done only
10325 once, especially initial_screen_colors[] and termscript open.
10326
103272008-08-26 Chong Yidong <cyd@stupidchicken.com>
10328
10329 * eval.c (Fcondition_case): Doc fix.
10330
10331 * widgetprv.h (EmacsFramePart): Change font member to the new font
10332 struct.
10333
10334 * widget.c: Include character.h and font.h for XSETFONT.
10335 (setup_frame_gcs): Compute X font id from font struct, just once.
10336
103372008-08-26 Eli Zaretskii <eliz@gnu.org>
10338
10339 * term.c (get_named_tty): Fix last change.
10340
103412008-08-26 Chong Yidong <cyd@stupidchicken.com>
10342
10343 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10344 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10345
103462008-08-25 Eli Zaretskii <eliz@gnu.org>
10347
10348 * frame.c (do_switch_frame): Mark previously displayed frame as
10349 obscured for FRAME_MSDOS_P frames as well.
10350
103512008-08-24 Eli Zaretskii <eliz@gnu.org>
10352
10353 * frame.c (make_terminal_frame): Initialize f->terminal,
10354 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10355 Set the top frame to newly created frame.
10356 (Fmake_terminal_frame): Reuse the_only_display_info.
10357
10358 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10359 estimating available memory.
10360
b97439ce 103612008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10362
10363 * nsterm.m (ns_draw_window_cursor): Don't call
10364 NSDisableScreenUpdates and NSEnableScreenUpdates on
10365 non-NS_IMPL_COCOA systems.
10366
103672008-08-23 Andreas Schwab <schwab@suse.de>
10368
10369 * process.c (procfs_system_process_attributes): Fix use of
10370 uninitialized variables.
10371
103722008-08-23 Eli Zaretskii <eliz@gnu.org>
10373
10374 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10375
10376 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10377 calling tty-set-up-initial-frame-faces.
10378
b8ff72fa
SM
10379 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10380 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10381
10382 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10383 addition to output_termcap.
10384
10385 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10386
10387 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10388 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10389 highlight.
10390
10391 * process.c [!subprocesses]: Define QCname.
10392 (syms_of_process): Intern and staticpro it.
10393
10394 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10395 Adjust for changes in encoding/decoding routines.
10396 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10397 encode_coding and decode_coding.
10398
b8ff72fa 10399 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10400
10401 * dosfns.c: Include frame.h before termhooks.h.
10402 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10403 variable termscript.
10404
10405 * s/msdos.h (USER_FULL_NAME): Define.
10406 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10407
10408 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10409 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10410 pw->pw_gecos.
10411
10412 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10413 SELECTED_FRAME as additional (1st) argument.
10414 (tty_read_avail_input): Handle output_msdos_raw in
10415 addition to output_termcap.
10416
10417 * msdos.c: Include frame.h before termhooks.h.
10418 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10419 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10420 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10421 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10422 (IT_set_terminal_modes, IT_reset_terminal_modes)
10423 (IT_set_frame_parameters): Use tty->termscript instead of a global
10424 variable termscript.
10425 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10426 global variable terminal_coding. Don't refer to
10427 Vnonascii_translation_table.
10428 (internal_terminal_init): Set Vwindow_system in current_kboard.
10429 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10430 Announce date and time of session start, if termscript is open.
10431 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10432 term.c:init_tty). Open termscript only of not already open.
10433 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10434 here instead of dos_ttraw. Don't initialize display if this is an
10435 initial tty. Don't set FRAME_FONT.
10436 (Vwindow_system_version): Bump to 23.
10437 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10438 is available, set up mouse_position_hook.
10439 (dos_ttraw, IT_set_terminal_modes): If called with initial
10440 terminal, do nothing.
10441 (IT_set_frame_parameters): Handle the Qtty_type frame
10442 parameter by calling internal_terminal_init.
10443 (dos_set_window_size, show_mouse_face)
10444 (clear_mouse_face, IT_note_mode_line_highlight)
10445 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10446 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10447 (initialize_msdos_display): New function.
10448 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10449 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10450 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10451 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10452 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10453 (request_sigio, unrequest_sigio): Don't define, now defined on
10454 sysdep.c.
10455 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10456
10457 * term.c [MSDOS]: Include msdos.h.
10458 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10459 conditional to DOS_NT. Allow only one call to this function in a
10460 session. Don't allocate a new struct tty_display_info; instead,
10461 reuse the_only_display_info. Call get_tty_size to get screen
10462 dimensions. Call init_baud_rate to set bad_rate.
10463 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10464 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10465 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10466 (get_tty_terminal, get_named_tty, Ftty_type)
10467 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10468 output_termcap.
b8ff72fa
SM
10469 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10470 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10471 only when subprocesses are supported.
aac0c6e3
MR
10472
10473 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10474 f->output_data.x.
10475 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10476 terminal devices.
10477
5582fbc7 10478 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10479 x_output.
10480 (FRAME_FONT): Use output_data.tty.
10481 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10482 (struct x_display_info): Rename from display_info. Update all users in
10483 msdos.c.
aac0c6e3 10484 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10485 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10486 (dos_ttraw): Update prototype.
10487
10488 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10489 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10490
104912008-08-23 Jason Rumney <jasonr@gnu.org>
10492
10493 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10494 (fn_TIFFSetDirectory): New library function used.
10495 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10496 (tiff_load): Use :index to select among multiple images. Set count
10497 property when multiple images exist.
10498 (gif_format): Use :index, not :image.
10499
105002008-08-23 Chong Yidong <cyd@stupidchicken.com>
10501
10502 * xdisp.c (try_scrolling): Check INT_MAX instead of
10503 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10504 to obtain INT_MAX.
10505
105062008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10507
10508 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10509
105102008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10511
10512 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10513 GNUstep library location.
10514
105152008-08-21 Chong Yidong <cyd@stupidchicken.com>
10516
10517 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10518 before using it.
10519
10520 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10521
105222008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10523
10524 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10525 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10526 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10527 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10528 (EmacsApp-cursor_blink_handler): Remove declaration.
10529 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10530 match 01 Feb 2008 changes in xterm.c.
10531 (ns_read_socket): Add cast to avoid warning.
10532 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10533 GNUstep.
10534
105352008-08-20 Chong Yidong <cyd@stupidchicken.com>
10536
10537 * xselect.c (x_get_foreign_selection): Return nil if desired
10538 selection could not be obtained, instead of signalling an error.
10539
105402008-08-20 David Reitter <david.reitter@gmail.com>
10541
10542 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10543 * nsterm.m: Remove ns-specific code for cursor blinking.
10544 (ns_draw_window_cursor): Clear cursor properly rather than
10545 redrawing the area. Respect width of bar cursors.
10546 These changes enable the use of generic blink-cursor-mode and
10547 generic cursor types in NS and support smooth cursor movements (do
10548 not blink off after command).
10549 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10550 Nextstep, too.
10551
105522008-08-19 Kenichi Handa <handa@m17n.org>
10553
10554 * font.c (Vfont_log_deferred): New variable.
10555 (font_add_log): Check Vfont_log_deferred.
10556 (font_deferred_log): New function.
10557
10558 * font.h (font_deferred_log): Extern it.
10559
10560 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10561 for sorting.
10562 (face_for_char): Use deferred log.
10563
105642008-08-18 Kenichi Handa <handa@m17n.org>
10565
10566 * fontset.c (face_for_char): Add font log.
10567
10568 * font.c (font_add_log): Add the font properties :script, :lang,
10569 and :otf in the log.
10570
105712008-08-17 Chong Yidong <cyd@stupidchicken.com>
10572
10573 * xdisp.c: Remove dead code.
10574 (handle_invisible_prop, next_overlay_string): Defer call to
10575 setup_for_ellipsis.
10576 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10577
105782008-08-15 Chong Yidong <cyd@stupidchicken.com>
10579
10580 * xfaces.c (lookup_derived_face): Properly handle possible zero
10581 return value of get_lface_attributes.
10582 (merge_faces): Don't tell lookup_derived_face to signal an error
10583 if face is not found.
10584
10585 * dired.c (Fdirectory_files): Doc fix.
10586
10587 * process.c (make_process): Initialize kill_without_query struct
10588 member.
10589
105902008-08-15 Eli Zaretskii <eliz@gnu.org>
10591
10592 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10593 Alternative calculation of totphys for Visual Studio 6.
10594
10595 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10596
10597 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10598 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10599 All users changed.
10600 (stat): Only root directory passed to GetDriveType. Allow RAM
10601 disk as well as local fixed disk when w32-get-true-file-attributes
10602 is set to `local'.
10603 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10604 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10605 (w32_cached_id, w32_add_to_cache): New functions.
10606 (get_name_and_id): Look account names in the cache before calling
10607 lookup_account_sid.
10608 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10609 New initialization flags.
10610 (globals_of_w32): Initialize them to zero.
10611 (w32_system_process_attributes): Use w32_cached_id and
10612 w32_add_to_cache.
10613
106142008-08-14 Lawrence Mitchell <wence@gmx.li>
10615
10616 * lread.c (Fread_char, Fread_char_exclusive): If no character
10617 event is read before timeout is reached, return nil, rather than
10618 converting to a number.
10619
106202008-08-14 Chong Yidong <cyd@stupidchicken.com>
10621
10622 * fns.c (use_dialog_box): Doc fix.
10623
10624 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10625 on OS X.
10626
106272008-08-13 Chong Yidong <cyd@stupidchicken.com>
10628
10629 * frame.c (Qns_parse_geometry): New var.
10630 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10631
106322008-08-11 Chong Yidong <cyd@stupidchicken.com>
10633
10634 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10635 space character in calculating tabs.
10636
106372008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10638
10639 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10640
106412008-08-10 Glenn Morris <rgm@gnu.org>
10642
10643 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10644 silence gcc "limited range of data type" warnings in some
10645 make_fixnum_or_float calls.
10646
106472008-08-09 Eli Zaretskii <eliz@gnu.org>
10648
10649 * w32.c (w32_system_process_attributes): If the process does not
10650 exist, return nil.
10651
10652 * w32.c: Include thelp32.h, psapi.h and coding.h.
10653 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10654 declarations.
10655 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10656 (Process32Next_Proc): New typedefs.
10657 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10658 (g_b_init_process32_next, g_b_init_open_thread_token)
10659 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10660 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10661 (g_b_init_get_process_working_set_size)
10662 (g_b_init_global_memory_status_ex): New static variables.
10663 (globals_of_w32): Initialize them.
10664 (create_toolhelp32_snapshot, process32_first, process32_next)
10665 (open_thread_token, impersonate_self, revert_to_self)
10666 (get_process_memory_info, get_process_working_set_size)
10667 (global_memory_status, global_memory_status_ex): New wrapper
10668 functions.
10669 (w32_list_system_processes, w32_system_process_attributes)
10670 (enable_privilege, restore_privilege, ltime, process_times):
10671 New functions.
10672 (convert_time_raw): New function.
10673 (convert_time): Remove conversion of FILETIME into time in 100
10674 nsec units, call convert_time_raw instead.
10675
10676 * process.h (w32_list_system_processes, w32_system_process_attributes):
10677 Add prototypes.
10678 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10679 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10680 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10681 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10682
10683 * process.c (Fsystem_process_attributes): Doc fix.
10684
106852008-08-08 Chong Yidong <cyd@stupidchicken.com>
10686
10687 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10688 a continued multi-char glyph; if so, advance to the actual glyph.
10689
106902008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10691
10692 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10693
10694 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10695 (.m.o): Use it.
10696 * config.in: Regenerate.
10697
106982008-08-07 Chong Yidong <cyd@stupidchicken.com>
10699
10700 * xdisp.c (redisplay_window): Revert last change.
10701 (try_window): Check bottom scroll margin too.
10702
107032008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10704
10705 * config.in: Regenerate.
10706
10707 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10708 -list-load-path-shadows'.
10709 (nsgui.h): Reduce number of things depending on it.
10710
107112008-08-06 Chong Yidong <cyd@stupidchicken.com>
10712
10713 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10714 instead of window-end which does the wrong thing at eob.
10715 (try_cursor_movement): Minor optimization.
10716 (redisplay_window): If scroll margin is defined, don't assume
10717 window doesn't need scrolling.
10718
107192008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10720
10721 * config.in: Regenerate.
10722
10723 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10724 (mostlyclean): Don't delete *.d under NS.
10725
10726 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10727
107282008-08-06 Kenichi Handa <handa@m17n.org>
10729
10730 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10731
107322008-08-06 Andreas Schwab <schwab@suse.de>
10733
10734 * config.in: Regenerate.
10735
107362008-08-05 Chong Yidong <cyd@stupidchicken.com>
10737
10738 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10739 forcing a window start.
10740
10741 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10742 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10743
107442008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10745
10746 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10747 argument.
10748
107492008-08-05 Juanma Barranquero <lekktu@gmail.com>
10750
10751 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10752 <scroll-down-aggressively, before-change-functions>:
10753 <after-change-functions>: Reflow docstrings.
10754
107552008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10756 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10757
10758 Dock menu customization, based on a patch by Ken Raeburn, plus some
10759 other fixes.
10760 * nsmenu.m (dockMenu): New variable.
10761 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10762
10763 * nsterm.h (dockMenu): Declare.
10764
10765 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10766 (ns_term_init): Initialize dockMenu.
10767 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10768 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10769 left.
10770
10771 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10772
107732008-08-04 Chong Yidong <cyd@stupidchicken.com>
10774
10775 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10776
10777 * config.in: Regenerate.
10778
107792008-08-04 Seiji Zenitani <zenitani@mac.com>
10780
10781 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10782
107832008-08-04 Chong Yidong <cyd@stupidchicken.com>
10784
10785 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10786
107872008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10788
10789 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10790
10791 * keyboard.h: Comment an #endif.
10792
10793 * lisp.h (have_menus_p): Adjust comment.
10794
10795 * menu.c (find_and_return_menu_selection): Fix comparison with
10796 client_data.
10797
10798 * nsmenu.m (popup_activated_flag): New variable.
10799 (popup_activated): New function.
10800 (menu-or-popup-active-p): New exported lisp definition.
10801 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10802 when popup done.
10803 (ns_popup_dialog): Set popup_activated_flag.
10804
10805 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10806 version for GNUstep (handled by conditional typedef in nsterm.m).
10807 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10808 in rgb.txt).
10809
10810 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10811
10812 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10813
10814 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10815
10816 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10817 shortcircuit if popup_activated like GTK and X toolkit.
10818
10819 * m/inter386.h: Change DARWIN to DARWIN_OS.
10820
10821 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10822 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10823 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10824 comment on NO_SOCK_SIGIO.
10825
108262008-08-03 Chong Yidong <cyd@stupidchicken.com>
10827
10828 * nsterm.m (windowDidResize): Remove stopModal call.
10829
108302008-08-03 Andreas Schwab <schwab@suse.de>
10831
10832 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10833 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10834
108352008-08-02 Chong Yidong <cyd@stupidchicken.com>
10836
10837 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10838 Don't use uninitialized pointer variable when using getrlimit.
10839
108402008-08-02 Jason Rumney <jasonr@gnu.org>
10841
10842 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10843
108442008-08-02 Eli Zaretskii <eliz@gnu.org>
10845
10846 * alloc.c (NSTATICS): Bump to 0x640.
10847
10848 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10849
10850 * lisp.h: Add prototype for directory_files_internal.
10851
10852 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10853 New functions.
10854 (syms_of_process): Defsubr them. Add initializations for various
10855 Q* symbols used in procfs_system_process_attributes.
10856 (procfs_list_system_processes, procfs_system_process_attributes)
10857 [HAVE_PROCFS]: New functions.
10858 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10859 (procfs_get_total_memory): New functions.
10860
108612008-08-01 Juanma Barranquero <lekktu@gmail.com>
10862
10863 * xfaces.c (Fx_load_color_file): Fix previous change;
10864 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10865
108662008-08-01 Michael Albinus <michael.albinus@gmx.de>
10867
10868 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10869
108702008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10871
10872 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10873
108742008-08-01 Chong Yidong <cyd@stupidchicken.com>
10875
10876 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10877
10878 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10879 define NSApplicationDelegateReplySuccess.
10880 (EmacsView -converstationIdentifier): Use long instead of
10881 NSInteger for GNUstep, since it doesn't have NSInteger.
10882
10883 * xmenu.c: Revert last change.
10884
10885 * keyboard.h: Fix last change.
10886
108872008-08-01 Juanma Barranquero <lekktu@gmail.com>
10888
10889 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10890 on Windows.
10891
108922008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10893
10894 Warning clearing and clean-up in NS port.
10895 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10896 Add prototypes.
10897 * nsgui.h (FACE_DEFAULT): Remove, unused.
10898 (XGCValues): Change colors to unsigned long.
10899 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10900 nsterm.m.
10901 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10902 (ns_list_fonts): Remove, unused.
10903 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10904 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10905 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10906 (nsfont_draw): Compare face colors to 0, not nil.
10907 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10908 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10909 (-addSubmenuWithTitle:): Use NSMenuItem class.
10910 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10911 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10912 (ns_clip_to_row): Make gc arg a BOOL.
10913 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10914 ns_clip_to_row() call.
10915 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10916 used). Cast FRAME_FONT assignments.
10917 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10918 (ns_string_to_lispmod): Change arg to const char.
10919 (ns_term_init): Use NSMenuItem class.
10920 (EmacsApp -openFile:): Move to different section of file.
10921 (EmacsApp -application:openFiles:): Don't return a value, call
10922 -replyToOpenOrPrint:.
10923 (EmacsView -keyDown:): Fix up cast.
10924 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10925 (EmacsView -menuDown:): Cast tag in call to
10926 find_and_call_menu_selection().
10927 (ns_list_fonts): Remove, unused.
10928 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10929 (ns_fontname_to_xlfd): Make static.
10930 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10931 Remove prototypes (now in keyboard.h).
10932 (next_menubar_widget_id): Remove, unused.
10933 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10934 Remove prototypes (now in keyboard.h).
10935 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10936
109372008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10938
10939 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10940 (floatfns.o): Depend on syssignal.h.
10941 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10942
10943 * systty.h: Fix previous change that removed BSD_TERMIOS.
10944 Add comments to #ifdefs.
10945
109462008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10947
10948 * w32fns.c (w32-load-color-file): Remove.
10949 (x-open-connection): Use renamed Fx_load_color_file.
10950 * xfaces.c (x-load-color-file): Add.
10951 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10952 Emacs.clr.
10953 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10954
109552008-07-31 Michael Albinus <michael.albinus@gmx.de>
10956
10957 * dbusbind.c (Fdbus_call_method_asynchronously)
10958 (Fdbus_method_error_internal): New defuns.
10959 (xd_read_message): Handle also reply messages.
10960 (Vdbus_registered_functions_table): Extend docstring.
10961
109622008-07-31 Juanma Barranquero <lekktu@gmail.com>
10963
10964 * keyboard.c (gobble_input): Fix previous change.
10965
109662008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10967
10968 * bitmaps/README:
10969 * xfns.c:
10970 * termcap.c:
10971 * term.c:
10972 * syswait.h:
10973 * systty.h:
10974 * systime.h:
10975 * syssignal.h:
10976 * sysdep.c:
10977 * process.h:
10978 * process.c:
10979 * print.c:
10980 * ndir.h:
10981 * lread.c:
10982 * keyboard.c:
10983 * getpagesize.h:
10984 * floatfns.c:
10985 * fileio.c:
10986 * emacs.c:
10987 * doc.c:
10988 * dispnew.c:
10989 * dired.c:
10990 * data.c:
10991 * callproc.c:
10992 * buffer.c:
10993 * README:
10994 * Makefile.in:
10995 * s/template.h:
10996 * s/msdos.h:
10997 * m/vax.h: Remove VMS support.
10998 * s/vms.h:
10999 * vlimit.h:
11000 * uaf.h:
11001 * temacs.opt:
11002 * param.h:
11003 * ioctl.h: Remove file.
11004
110052008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11006
11007 * s/ms-w32.h (MULTI_KBOARD): Remove.
11008 * xterm.c:
11009 * xselect.c:
11010 * xfns.c:
11011 * window.c:
11012 * w32term.c:
11013 * w32fns.c:
11014 * terminal.c:
11015 * termhooks.h:
11016 * term.c:
11017 * sysdep.c:
11018 * keyboard.h:
11019 * keyboard.c:
11020 * frame.h:
11021 * frame.c:
11022 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11023 * config.in: Regenerate.
11024
110252008-07-30 Jason Rumney <jasonr@gnu.org>
11026
11027 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11028
11029 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11030 (w32font_open_internal): Get unicode version of textmetrics.
11031 Don't enable or disable glyph indices here.
11032 (w32font_open): Disable use of glyph indices.
11033
11034 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11035
110362008-07-30 Chong Yidong <cyd@stupidchicken.com>
11037
11038 * minibuf.c (Vread_buffer_function): Doc fix.
11039
110402008-07-30 John Paul Wallington <jpw@pobox.com>
11041
11042 * minibuf.c (read_buffer_completion_ignore_case): New var.
11043 (Fread_buffer): Use it.
11044
110452008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11046
11047 * systty.h (sensemode): Remove empty #if. Remove reference to
11048 BSD_TERMIOS, unused.
11049
11050 * sysdep.c: Remove reference to DGUX.
11051 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11052
11053 * config.in: Regenerate.
11054
110552008-07-30 Jason Rumney <jasonr@gnu.org>
11056
11057 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11058
110592008-07-29 Jason Rumney <jasonr@gnu.org>
11060
11061 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11062 is populated.
11063 (uniscribe_encode_char): Always use uniscribe.
11064 Avoid using context if cache is populated.
11065
110662008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11067
11068 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11069 open menu.
11070
11071 * gtkutil.c (menu_nav_ended): Remove.
11072 (create_menus): Remove signal connect for menu_nav_ended.
11073
110742008-07-28 Chong Yidong <cyd@stupidchicken.com>
11075
11076 * xdisp.c (redisplay_window): Check return value of
11077 compute_window_start_on_continuation_line before forcing a window
11078 start.
11079
110802008-07-28 Jason Rumney <jasonr@gnu.org>
11081
11082 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11083
11084 * w32term.c (w32_enable_unicode_output, cleartype_active):
11085 Remove obsolete display options.
11086 (x_draw_glyph_string_background): Don't use old cleartype_active
11087 workaround.
11088 (w32_initialize): Remove cleartype_active initialization.
11089 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11090
110912008-07-28 Andreas Schwab <schwab@suse.de>
11092
11093 * lisp.h (init_weak_hash_tables, syms_of_font)
11094 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11095 (remove_hash_entry): Don't declare.
11096 * eval.c (maybe_call_debugger): Make static and move before use.
11097 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11098 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11099 * xterm.h (x_set_frame_alpha): Declare.
11100
111012008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11102
11103 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11104 (create_menus): Connect selection-done to menu_nav_ended.
11105
111062008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11107
11108 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11109 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11110 parameter with read of 'alpha' one.
11111 (Qns_frame_parameter): Remove.
5582fbc7 11112 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11113 (next-selection-coding-system, Vselection_coding_system)
11114 (Vnext_selection_coding_system): Drop.
11115
111162008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11117
11118 * nsfns.m (do-applescript, do_applescript): Rename to
11119 ns-do-applescript, ns_do_applescript, and move within file.
11120
111212008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11122
11123 Remove support for Mac Carbon.
11124 * mactoolbox.c:
11125 * macterm.h:
11126 * macterm.c:
11127 * macselect.c:
11128 * macmenu.c:
11129 * macgui.h:
11130 * macfns.c:
11131 * mac.c: Remove file.
11132 * s/darwin.h:
11133 * m/intel386.h:
11134 * xfaces.c:
11135 * xdisp.c:
11136 * window.c:
11137 * tparam.c:
11138 * termhooks.h:
11139 * termcap.c:
11140 * term.c:
11141 * syssignal.h:
11142 * sysselect.h:
11143 * sysdep.c:
11144 * process.c:
11145 * lread.c:
11146 * lisp.h:
11147 * keyboard.c:
11148 * image.c:
11149 * fringe.c:
11150 * frame.h:
11151 * frame.c:
11152 * fontset.c:
11153 * font.h:
11154 * font.c:
11155 * fns.c:
11156 * fileio.c:
11157 * emacs.c:
11158 * dispnew.c:
11159 * dispextern.h:
11160 * config.in:
11161 * atimer.c:
2ae37cf0 11162 * Makefile.in: Remove code for Carbon.
aac0c6e3 11163
f0131492 111642008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11165
11166 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11167
111682008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11169
11170 * macterm.h (kCGBitmapByteOrder32Host): New define for
11171 non-universal SDKs.
11172
11173 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11174 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11175
11176 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11177 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11178
111792008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11180
11181 * w32inevt.c: Include dispextern.h.
11182
111832008-07-26 Andreas Schwab <schwab@suse.de>
11184
11185 * print.c (print_object): Fix off-by-one in last change.
11186
111872008-07-25 Juanma Barranquero <lekktu@gmail.com>
11188
11189 * term.c (syms_of_term): Don't initialize default_orig_pair,
11190 default_set_foreground and default_set_background on Windows.
11191
111922008-07-25 Jason Rumney <jasonr@gnu.org>
11193
11194 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11195 ScriptItemize. Clean up return value checking. Remove unused
11196 variables.
11197 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11198 shaping engine.
11199
11200 * w32font.c (w32font_has_char): Handle the case where we can't
11201 determine the script for a character.
11202
112032008-07-25 Chong Yidong <cyd@stupidchicken.com>
11204
11205 * term.c (syms_of_term): Initialize default_orig_pair,
11206 default_set_foreground, and default_set_background.
11207
11208 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11209 clash (bug#86).
11210 (getloadavg): Callers changed.
11211
11212 * image.c (svg_load_image): Fix last change.
11213 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11214 image size is valid. Use g_object_unref instead of deprecated
11215 rsvg_handle_free to free rsvg handle.
11216 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11217
112182008-07-25 Jason Rumney <jasonr@gnu.org>
11219
11220 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11221 surrogates before looking up glyph index.
11222 (w32font_text_extents): Encode as surrogates if falling back to
11223 functions that need UTF-16 wide chars.
11224
11225 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11226 BMP as surrogates before looking up glyph index.
11227
112282008-07-25 Chong Yidong <cyd@stupidchicken.com>
11229
11230 * image.c (svg_load_image): Check for failure in return value of
11231 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11232
112332008-07-25 Jason Rumney <jasonr@gnu.org>
11234
11235 * w32font.c (Fx_select_font): Reverse sense of second arg.
11236
112372008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11238
11239 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11240 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11241
11242 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11243 (PURESIZE): Use it.
11244
112452008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11246
11247 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11248 * m/alpha.h (TEXT_END):
11249 * m/ibmrs6000.h (TEXT_END):
11250 * m/macppc.h (TEXT_END):
11251 * s/darwin.h (TEXT_END):
11252 * s/msdos.h (TEXT_END): Remove, unused.
11253 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11254 * s/cygwin.h: Remove comment.
11255
11256 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11257 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11258 * m/intel386.h (DOT_GLOBAL_START):
11259 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11260 (USG): Remove, file not used on USG platforms.
11261
11262 * Makefile.in (HAVE_X11): Remove empty #else.
11263
112642008-07-24 Andreas Schwab <schwab@suse.de>
11265
11266 * fileio.c (Finsert_file_contents): Properly adjust undo list
11267 after format conversion.
11268
112692008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11270
11271 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11272 (menu_nav_ended): Remove.
11273 (create_menus): Remove signal connect for menu_nav_ended.
11274 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11275 create_menus.
11276 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11277
112782008-07-23 Jason Rumney <jasonr@gnu.org>
11279
11280 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11281 with opened font.
11282 (w32font_open): Set font type to gdi.
11283
11284 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11285
112862008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11287
11288 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11289 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11290 defines it.
11291 * unexec.c (ADDR_CORRECT): Define unconditionally.
11292
11293 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11294
11295 * unexec.c: Remove code depending on !COFF and USG, the file is
11296 not used for such systems.
11297
11298 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11299 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11300 (LD_SWITCH_SYSTEM_1): Remove, update users.
11301
11302 * s/darwin.h (DATA_END):
11303 * m/intel386.h (DATA_END):
11304 * m/ibmrs6000.h (DATA_END):
11305 * m/alpha.h (DATA_END): Remove, unused.
11306
11307 * config.in: Regenerate.
11308 * s/ms-w32.h (subprocesses): Define unconditionally.
11309 * s/template.h (subprocesses): Update comment.
11310 * s/vms.h (subprocesses):
11311 * s/usg5-4.h (subprocesses):
11312 * s/hpux10-20.h (subprocesses):
11313 * s/gnu-linux.h (subprocesses):
11314 * s/cygwin.h (subprocesses):
11315 * s/bsd-common.h (subprocesses):
11316 * s/aix4-2.h (subprocesses):
11317 * s/darwin.h (subprocesses): Do not define, defined by default now.
11318
11319 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11320 Remove all references.
11321 (temacs): Add GNUstep specific ld flags.
11322
11323 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11324 similarly to what X does.
11325
113262008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11327
11328 * nsfns.m (x-list-fonts): Remove.
11329 (syms_of_nsfns): Drop the x-list-fonts declaration.
11330 * nsterm.m: Get rid of remaining "//" comments.
11331
113322008-07-22 Chong Yidong <cyd@stupidchicken.com>
11333
11334 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11335
11336 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11337 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11338 (Fns_own_selection_internal, Fx_disown_selection_internal)
11339 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11340
11341 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11342 ... */' style of docstrings. Doc fixes.
11343
113442008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11345
11346 * terminfo.c (UP, BC, PC): Undo previous change.
11347
11348 * nsfns.m: Rename ns prefixed functions/variables to the
11349 corresponding x versions. Update references.
11350
113512008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11352
11353 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11354
113552008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11356
11357 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11358 Remove forwarding functions.
11359 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11360 non-static.
11361 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11362 non-static.
11363 (ns_frame_parm_handlers): Use the new names.
11364 (syms_of_nsfns): Move to the end of file.
11365
11366 * nsterm.m (syms_of_nsterm): Move to the end of file.
11367
11368 * dispnew.c (init_display): Remove code for X10.
11369
113702008-07-22 Jason Rumney <jasonr@gnu.org>
11371
11372 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11373 bare drive.
11374
113752008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11376
11377 * nsterm.m (syms_of_nsterm): Remove debugging println.
11378
113792008-07-22 David Reitter <david.reitter@gmail.com>
11380
11381 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11382 Carbon implementation of the same functionality: execute arbitrary
11383 AppleScript code.
11384
113852008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11386
11387 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11388 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11389 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11390 (Fx_display_mm_height, Fx_display_mm_width)
11391 (Fx_display_backing_store, Fx_display_visual_class)
11392 (Fx_display_save_under, Fx_open_connection)
11393 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11394 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11395 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11396 (Fx_display_pixel_width, Fx_display_pixel_height)
11397 (Fx_display_usable_bounds, Fx_display_planes)
11398 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11399 ... */' style of docstrings.
11400
114012008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11402
11403 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11404 on this platform.
11405 (mips):
11406 * m/iris4d.h (mips): Do not define.
11407 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11408
11409 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11410
11411 * image.c:
11412 * nsfns.m:
11413 * nsselect.m:
11414 * nsterm.h:
11415 * nsterm.m: Rename ns prefixed functions/variables to the
11416 corresponding x versions. Update references.
11417
11418 * m/ibms390x.h (NO_REMAP): Do not undefine.
11419
11420 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11421
114222008-07-21 Chong Yidong <cyd@stupidchicken.com>
11423
11424 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11425 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11426 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11427 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11428 (Fns_display_mm_height, Fns_display_mm_width)
11429 (Fns_display_backing_store, Fns_display_visual_class)
11430 (Fns_display_save_under, Fns_open_connection)
11431 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11432 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11433 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11434 (Fns_display_pixel_width, Fns_display_pixel_height)
11435 (Fns_display_usable_bounds, Fx_display_planes)
11436 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11437
114382008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11439
11440 * print.c (print_object): Check print_depth before searching for
11441 circularities.
11442
114432008-07-21 Michael Albinus <michael.albinus@gmx.de>
11444
11445 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11446 only sprintf.
11447
114482008-07-21 Kenichi Handa <handa@m17n.org>
11449
11450 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11451
114522008-07-20 Andreas Schwab <schwab@suse.de>
11453
11454 * syntax.c (find_start_pos, find_start_value)
11455 (find_start_value_byte, find_start_begv, find_defun_start)
11456 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11457
114582008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11459
11460 * s/sol2-3.h: Insert contents of s/sol2.h.
11461 (LD_SWITCH_SYSTEM): Remove redundant definition.
11462 * s/sol2.h: Remove, unused.
11463
114642008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11465
11466 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11467
114682008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11469
11470 * Makefile.in (ns_appdir): Fix typo in find command.
11471
114722008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11473
11474 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11475
11476 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11477 added not supported anymore.
11478
11479 * s/usg5-4-2.h (LIBS_SYSTEM):
11480 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11481
11482 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11483 * s/lynxos.h (GETPGRP_NO_ARG):
11484 * s/hpux10-20.h (NO_SIOCTL_H):
11485 * s/gnu.h (GETPGRP_NO_ARG):
11486 * s/gnu-linux.h (NO_SIOCTL_H):
11487 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11488 * s/cygwin.h (GETPGRP_NO_ARG):
11489 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11490 (C_DEBUG_SWITCH): Remove duplicate definition.
11491
11492 * m/ibms390.h: Remove boilerplate comments.
11493
11494 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11495
11496 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11497 (wait_reading_process_output): Remove code for SunOS, platform not
11498 supported anymore. Use SOLARIS2 instead of sun.
11499
115002008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11501
11502 * font.c (font_open_by_name): Under NS, default lface height to zero.
11503 (font_open_for_lface): Under NS, set size based on frame fontsize.
11504 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11505 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11506
115072008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11508
11509 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11510 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11511 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11512 YES/NO.
11513 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11514 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11515 * Makefile.in (clean): Clear out build destination dir.
11516
115172008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11518
11519 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11520 xterm, xselect.
11521 * lisp.h: Remove declaration of hash_remove.
11522 * nsgui.h: Remove redefinitions of hash_remove.
11523 * fns.c (hash_remove): Rename to hash_remove_from_table.
11524
115252008-07-19 Seiji Zenitani <zenitani@mac.com>
11526
11527 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11528 strdup() the family UTF8String before modifying it.
11529
115302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11531
11532 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11533 NS_FACE_BACKGROUND with 0 instead of nil.
11534 * nsfont.m (nsfont_draw): Same.
11535
115362008-07-19 Chong Yidong <cyd@stupidchicken.com>
11537
11538 * nsfns.m (ns_set_background_color): Fix crash.
11539
115402008-07-18 Chong Yidong <cyd@stupidchicken.com>
11541
11542 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11543
115442008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11545
11546 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11547
115482008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11549
11550 * gtkutil.c: Include <config.h> instead of "config.h".
11551
11552 * lisp.h (Foverlay_buffer): Add EXFUN.
11553
11554 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11555 child process to complete child_setup. Undo 2005-09-21 change.
11556
11557 * s/darwin.h: Mention setsid after vfork.
11558
115592008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11560
11561 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11562 Depend on macgui.h.
11563
11564 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11565 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11566
11567 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11568 and f19.
11569 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11570
11571 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11572 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11573 Remove enumerators.
11574
11575 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11576 Check if FACE_FROM_ID returns NULL.
11577
115782008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11579
11580 * w32inevt.c (change_frame_size): Remove extern declaration.
11581 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11582 change_frame_size.
11583
115842008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11585
11586 * getloadavg.c: Revert last change (2008-07-15).
11587
115882008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11589
11590 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11591 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11592 from configure.
11593
115942008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11595
11596 * s/sol2.h:
11597 * s/sol2-4.h: Reorganize conditionals.
11598
11599 * ecrt0.c: Remove code depending on m68000, not used anymore.
11600
11601 * fns.c (hash_remove): Make static.
11602 * lisp.h (hash_remove): Don't prototype.
11603
11604 * m/ibmrs6000.h:
11605 * m/ibms390x.h:
11606 * m/macppc.h: Remove boilerplate comments.
11607
11608 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11609 Solaris, which does not need them.
11610
11611 * m/vax.h: Remove comments about unsupported systems.
11612
11613 * s/darwin.h: Reorganize ifdefs.
11614
116152008-07-17 Andreas Schwab <schwab@suse.de>
11616
11617 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11618
116192008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11620
11621 Use SDATA. Follow coding convention of placing operators at
11622 beginning of next line rather than end of previous line, and placing
11623 spaces around infix operators.
11624
11625 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11626 in case it was defined already.
11627 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11628 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11629 ns_default.
11630 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11631 Lisp_Objects.
11632 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11633 (ns_defined_color, ns_color_to_lisp): Declare.
11634 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11635 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11636 it's accepted even with USE_LISP_UNION_TYPE.
11637 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11638 (update_frame_tool_bar): Remove apparently obsolete tests for
11639 non-integerness of f->tool_bar_lines.
11640 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11641 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11642 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11643 (nsfont_open): Don't confuse NULL for Qnil.
11644 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11645 * menu.h (find_and_call_menu_selection):
11646 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11647 (find_and_return_menu_selection): Always return something.
11648 * frame.h: Include dispextern.h for Display_Info.
11649 (display_x_get_resource): Declare.
11650
116512008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11652
11653 * syntax.c: Remove stdio.h include accidentally introduced in
11654 Emacs.app commit.
11655 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11656 NS_IMPL_COCOA.
11657 * keyboard.c (handle_async_input, input_available_signal): Remove
11658 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11659
116602008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11661
11662 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11663 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11664 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11665 Use SDATA.
11666
11667 * keymap.c: Remove all NS-specific code.
11668 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11669 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11670 where_is_preferred_modifier, return a different value depending on how
11671 preferred is the binding.
11672 (where_is_internal): Adjust accordingly.
11673 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11674 Adjust to new preferred_sequence_p.
11675 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11676 * keyboard.c (parse_solitary_modifier): Not static any more.
11677 * keyboard.h (parse_solitary_modifier): Declare.
11678
116792008-07-16 Andreas Schwab <schwab@suse.de>
11680
11681 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11682 of easymenu.
11683
116842008-07-16 Chong Yidong <cyd@stupidchicken.com>
11685
11686 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11687 that we don't move off the line.
11688
116892008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11690
11691 * keyboard.c (Qsuper): Remove.
11692 (parse_menu_item): Don't call where_is_internal specially for NS.
11693
116942008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11695
11696 * s/gnu-linux.h: Remove boilerplate comments.
11697
11698 * m/alpha.h (__ELF__): Consolidate conditions.
11699
11700 * m/m68k.h (linux): Use GNU_LINUX instead.
11701 Remove boilerplate comments.
11702
11703 * m/intel386.h: Undo refactoring from previous change.
11704 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11705 too, remove dead code.
11706 (linux): Use GNU_LINUX instead.
11707
117082008-07-16 Jason Rumney <jasonr@gnu.org>
11709
11710 * w32gui.h: Repeat 26 June changes lost by last change.
11711
117122008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11713
11714 * systty.h: Remove code for Aix on 386, unsupported platform.
11715
11716 * s/ms-w32.h: Remove boilerplate comments.
11717 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11718
11719 * s/gnu-linux.h (TERM): Remove support.
11720 (HAVE_SYSVIPC): Remove, unused.
11721 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11722 for this system.
11723
11724 * process.c: Remove support for IRIS, unused.
11725 Remove support for TERM, not relevant anymore.
11726
11727 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11728 used with the definition.
11729
11730 * s/aix4-2.h (static): Do not undef.
11731
11732 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11733 only used on Aix.
11734 (HAVE_SYSVIPC): Remove, unused.
11735
11736 * m/hp800.h (CANNOT_DUMP): Do not undef.
11737
11738 * m/alpha.h: Fix comment.
11739
11740 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11741 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11742 used by this configuration.
11743 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11744 * unexec.c: Remove code depending on HPUX and
11745 USG_SHARED_LIBRARIES, not used with this file. Remove code
11746 depending on IRIS, unused. Remove if 0-ed code.
11747
11748 * s/template.h: Remove comments about static.
11749
11750 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11751 Remove if 0-ed code.
11752 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11753 were the same as the default.
11754 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11755 Remove boilerplate comments.
11756 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11757 (HAVE_SYSVIPC): Remove, unused.
11758 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11759
11760 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11761 Remove boilerplate comments.
11762 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11763 Remove boilerplate comments.
11764 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11765 Remove boilerplate comments.
11766 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11767
11768 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11769 USG systems which do not use DATA_SEG_BITS.
11770 Refactor code. Remove boilerplate comments.
11771
11772 * m/ibms390.h:
11773 * m/m68k.h:
11774 * s/bsd-common.h:
11775 * s/cygwin.h:
11776 * s/darwin.h:
11777 * s/freebsd.h:
11778 * s/gnu.h:
11779 * s/msdos.h: Remove boilerplate comments.
11780
11781 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11782 do not use this file.
aac0c6e3
MR
11783 (IRIS_4D): Remove, unused.
11784
11785 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11786 do not use this file.
aac0c6e3
MR
11787 (SIGN_EXTEND_CHAR):
11788 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11789 * unexmips.c: Remove file, unused.
11790
11791 * editfns.c (Fuser_full_name): Replace the only use of
11792 USER_FULL_NAME with its value.
11793 * config.in: Regenerate.
11794
117952008-07-16 David Reitter <david.reitter@gmail.com>
11796
11797 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11798 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11799
118002008-07-16 Glenn Morris <rgm@gnu.org>
11801
11802 * emacs.c (system-type): Doc fix.
11803
118042008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11805
11806 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11807 If the cache doesn't work, let's fix it, rather than work around it.
11808
118092008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11810
11811 * Makefile.in: Correct additions for nsfont.o in last commit.
11812 * nsfont.m: New file (forgot last commit).
11813
118142008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11815
11816 * callproc.c (set_initial_environment): Initialize
11817 Vprocess_environment under CANNOT_DUMP (fixes crash when
11818 batch-compiling for bootstrap).
11819
118202008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11821 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11822
11823 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11824 fix crash due to different init order.
11825
118262008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11827
11828 Changes and additions for NeXTstep windowing system (Cocoa and
11829 GNUstep) support.
11830
11831 * Makefile.in:
11832 * config.in: Support defines and build commands for NS port.
11833 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11834 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11835 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11836 windowing.
11837 (struct face): Add synth_ital field.
11838 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11839 (init_display): Initialize Vinitial_window_system to "ns" when so
11840 compiled.
11841 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11842 (display_arg): Use under NS.
11843 (main): Under NS, allocate autorelease pool and handle command line
11844 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11845 (standard_args): Add NS-specific args.
11846 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11847 * font.c (DEFAULT_ENCODING): New variable.
11848 (font_find_for_lface): Use it.
11849 (syms_of_font): Load syms_of_nsfont under NS.
11850 * font.h: Declare nsfont_driver when compiled under NS.
11851 * fontset.c: When compiling under NS, include nsterm.h.
11852 (fontset_from_font): Autoconstruct fontset under NS.
11853 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11854 symbol, document and use it.
11855 (do_switch_frame): When for_deletion under Cocoa, add
11856 Fraise_frame(Qnil).
11857 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11858 (x_get_arg): Allow "yes" and "no" as boolean values.
11859 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11860 Qright under Cocoa.
11861 (focus-follows-mouse): Default to 0 under NS.
11862 * frame.h (enum output_method): Add output_ns.
11863 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11864 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11865 (FRAME_WINDOW_P): NS-specific definition.
11866 * fringe.c (max_used_fringe_bitmap): Make public.
11867 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11868 (getloadavg): Use NeXT code under descendant OS's.
11869 * image.c (includes and header section, x_create_bitmap_from_data)
11870 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11871 (image_background_transparent, x_clear_image_1)
11872 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11873 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11874 (x_to_xcolors, x_from_xcolors, x_disable_image)
11875 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11876 other GUIs, including XPM support using code originally written for
11877 Carbon GUI.
11878 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11879 using NS API.
11880 (image_ascent): Use font metrics macros instead of direct struct field
11881 access.
11882 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11883 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11884 Also, handle NS as GTK for menu bar purposes.
11885 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11886 toolkit where they differ.
11887 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11888 use cachelist, still needed under NS.
11889 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11890 (struct widget_value): Define it here for menu.c.
11891 * keymap.c (includes): Include modifier internals.
11892 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11893 NS.
11894 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11895 support for preferring sequences using certain modifiers, specified by
11896 the FIRSTONLY argument.
11897 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11898 under NS GNUstep implementation.
11899 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11900 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11901 * menu.c: Include nsterm.h under NS.
11902 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11903 (free_menubar_widget_tree_value, update_submenu_strings)
11904 (find_and_call_menu_selection): Treat NS as X and NT.
11905 (find_and_return_menu_selection): New function, used for popup menus.
11906 * nsgui.h:
11907 * nsterm.h:
11908 * nsfns.m:
11909 * nsimage.m:
11910 * nsmenu.m:
11911 * nsselect.m:
11912 * nsterm.m: New files.
11913 * process.c (wait_reading_process_output): Under NS, call ns_select()
11914 instead of plain select().
11915 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11916 beginning of buffer.
11917 * sysselect.h (init_process): Rename when compiling under Cocoa to
11918 avoid name conflict.
11919 * termhooks.h (display_info): Add ns_display_info to union.
11920 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11921 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11922 COCOA environment.
11923 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11924 unexec() signature. (Note, this will dump, but the resulting file
11925 crashes; unexosx is used instead; keeping around for reference and
11926 possible aid in getting dump working under GNUstep.)
11927 * w32gui.h (button_type, widget_value): Remove definitions (now in
11928 keyboard.h).
11929 * window.c: Include nsterm.h when compiling under NS.
11930 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11931 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11932 other GUI windowing systems.
11933 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11934 GTK.
11935 (x_consider_frame_title): Under NS, set icon type and frame
11936 modified-state indicator; use ns_set_name_as_filename() when using
11937 formatted title.
11938 (update_window_cursor): Make public when compiling under NS.
11939 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11940 (hourglass_atimer, Vhourglass_delay
11941 * xfaces.c (header section, init_frame_faces, clear_font_table)
11942 (defined_color, unload_color, x_face_list_fonts)
11943 (prepare_face_for_display): Add NS support parallel to other GUIs.
11944 Emulate GCs like other non-X GUIs.
11945 (split_font_name): Don't lowercase font name under NS.
11946 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11947 under NS.
11948 * s/darwin.h: Add support for compilation under NS.
11949
119502008-07-15 Jason Rumney <jasonr@gnu.org>
11951
11952 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11953 (w32_show_hourglass): Rename from show_hourglass.
11954 (w32_hide_hourglass): Rename from hide_hourglass.
11955 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11956 (Vhourglass_delay): Declare extern.
11957 (hourglass_started): Remove.
11958
11959 * xdisp.c (Vhourglass_delay): Remove static.
11960 (hourglass_started, start_hourglass, cancel_hourglass):
11961 Don't include these versions on WINDOWSNT.
11962
119632008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11964
11965 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11966 variables (formerly in xfns.c).
11967 (show_hourglass, hide_hourglass): New prototypes (same).
11968 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11969 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11970 in xfns.c).
11971 (syms_of_xdisp): Declare/initialize display-hourglass,
11972 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11973 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11974 formerly in xfns.c.
11975 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11976 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11977 (start_hourglass, cancel_hourglass): Remove.
11978 (show_hourglass, hide_hourglass): Remove prototypes and static
11979 modifiers.
11980 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11981 hourglass_atimer, hourglass_shown_p declaration/initialization.
11982 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11983 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11984 (start_hourglass, cancel_hourglass): Remove.
11985 (show_hourglass, hide_hourglass): Remove prototypes and static
11986 modifiers.
11987 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11988 hourglass_atimer, hourglass_shown_p declaration/initialization.
11989 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11990 (DEFAULT_HOURGLASS_DELAY): Remove.
11991 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11992 hourglass_shown_p declaration/initialization.
11993
119942008-07-14 Jason Rumney <jasonr@gnu.org>
11995
11996 * w32fns.c (w32_get_arg): Remove wrapper function.
11997 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11998 directly.
11999 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12000
120012008-07-14 Kenichi Handa <handa@m17n.org>
12002
12003 * xfont.c (xfont_open): Add workaround for X's bug.
12004
120052008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12006
12007 * fontset.c: Include <stdio.h> unconditionally.
12008
120092008-07-13 Michael Albinus <michael.albinus@gmx.de>
12010
12011 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12012 for filtering.
12013
120142008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12015
12016 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12017
12018 * m/macppc.h:
12019 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12020
12021 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
12022 (SPECIAL_EMACS_INT):
12023 * m/ia64.h (SPECIAL_EMACS_INT):
12024 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12025 * s/gnu.h (NLIST_STRUCT):
12026 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12027 * s/gnu-linux.h (LINUX):
12028 * s/msdos.h (HAVE_FACES):
12029 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12030
12031 * systty.h:
12032 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12033 anymore.
12034
120352008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12036
12037 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12038 always defined as int.
12039
12040 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12041 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12042 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12043 * s/freebsd.h (HAVE_WAIT_HEADER):
12044 * s/bsd-common.h (HAVE_UNION_WAIT):
12045 * s/aix4-2.h (HAVE_WAIT_HEADER):
12046 * m/mips.h (HAVE_UNION_WAIT):
12047 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12048 (COFF, static): Do not define, they are undefined later in the file.
12049
12050 * process.c (update_status): Don't use a union.
12051 (status_convert):
12052 (sigchld_handler): Use int instead of WAITTYPE.
12053
120542008-07-12 Chong Yidong <cyd@stupidchicken.com>
12055
12056 * indent.c (Fvertical_motion): Restore hscroll before moving to
12057 goal column.
12058
120592008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12060
12061 * lisp.h: Remove left over code.
12062
120632008-07-11 Andreas Schwab <schwab@suse.de>
12064
12065 * lisp.h: Fix logic in last change.
12066
12067 * menu.h: New file.
12068 * menu.c: Include it.
12069 * xmenu.c: Likewise.
12070 * Makefile.in: Update dependencies.
12071
120722008-07-11 Kenichi Handa <handa@m17n.org>
12073
12074 * fontset.c (fontset_from_font): Cancel the previous change.
12075
120762008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12077
12078 * lisp.h:
12079 * w32heap.c:
12080 * emacs.c:
12081 * alloc.c: Replace all references of NO_UNION_TYPE with
12082 USE_LISP_UNION_TYPE.
12083
12084 * m/xtensa.h (NO_UNION_TYPE):
12085 * m/vax.h (NO_UNION_TYPE):
12086 * m/template.h (NO_UNION_TYPE):
12087 * m/sparc.h (NO_UNION_TYPE):
12088 * m/mips.h (NO_UNION_TYPE):
12089 * m/macppc.h (NO_UNION_TYPE):
12090 * m/m68k.h (NO_UNION_TYPE):
12091 * m/iris4d.h (NO_UNION_TYPE):
12092 * m/intel386.h (NO_UNION_TYPE):
12093 * m/ibms390x.h (NO_UNION_TYPE):
12094 * m/ibms390.h (NO_UNION_TYPE):
12095 * m/ibmrs6000.h (NO_UNION_TYPE):
12096 * m/ia64.h (NO_UNION_TYPE):
12097 * m/hp800.h (NO_UNION_TYPE):
12098 * m/arm.h (NO_UNION_TYPE):
12099 * m/amdx86-64.h (NO_UNION_TYPE):
12100 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12101 defining it the same.
12102
121032008-07-10 Chong Yidong <cyd@stupidchicken.com>
12104
12105 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12106
121072008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12108
12109 * fileio.c:
50426a04 12110 * sysdep.c:
aac0c6e3
MR
12111 * systty.h:
12112 * m/ibmrs6000.h:
12113 * m/iris4d.h:
12114 * s/aix4-2.h:
12115 * s/freebsd.h:
12116 * s/gnu-linux.h:
12117 * s/hpux10-20.h:
12118 * s/hpux11.h:
12119 * s/netbsd.h:
12120 * s/sol2-3.h:
12121 * s/sol2-4.h:
12122 * s/sol2.h:
12123 * s/usg5-4.h:
12124 * s/vms.h: Remove references to unused variables.
12125
121262008-07-10 Andreas Schwab <schwab@suse.de>
12127
12128 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12129 pattern before matching the generic family.
12130
121312008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12132
12133 * unexec.c:
12134 * s/vms.h:
12135 * s/usg5-4-2.h:
12136 * s/sol2-5.h:
12137 * s/freebsd.h:
12138 * s/darwin.h: Remove dead code.
12139
12140 * m/template.h:
12141 * m/sparc.h:
12142 * m/mips.h:
12143 * m/m68k.h:
12144 * m/iris4d.h:
12145 * m/intel386.h:
12146 * m/ibms390x.h:
12147 * m/ibms390.h:
12148 * m/ia64.h:
12149 * m/hp800.h:
12150 * m/arm.h:
12151 * m/amdx86-64.h: Remove dead code and references to unused
12152 and compiler defined symbols.
12153
12154 * unexmips.c:
12155 * unexelf.c: Remove references to desupported systems.
12156
12157 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12158
12159 * m/powermac.h: Remove boilerplate comments.
12160 (NO_REMAP): Remove unused definition.
12161
12162 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12163 define them.
12164
121652008-07-10 Kenichi Handa <handa@m17n.org>
12166
12167 * xfont.c (xfont_open): Log the reason of failure.
12168
121692008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12170
12171 * fontset.c (fontset_get_font_group):
12172 * font.c (font_check_otf): Specify argument types.
12173
121742008-07-09 Kenichi Handa <handa@m17n.org>
12175
12176 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12177 non-ASCII char is found.
12178
12179 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12180 (reorder_font_vector): Change the arg preferred_family to font.
12181 Prefer the spec matching with font.
12182 (fontset_get_font_group): New function.
12183 (fontset_find_font): Change the format of an element of a realized
12184 fontset. Use fontset_get_font_group.
12185 (fontset_font): Try the current fontset, the default fontset, the
12186 fallbacks of the current fontset, and the fallbacks of the default
12187 fontset in this order.
12188 (face_for_char): Delete the shortcut to use the current font.
12189 (fontset_from_font): Don't set fonts for Latin in the fontset.
12190
12191 * font.h (font_make_object, font_match_p): Adjust prototypes.
12192
12193 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12194
12195 * font.c (font_make_object): New arg entity and pixelsize.
12196 (font_check_otf_features, font_check_otf): New functions.
12197 (font_match_p): Check :lang, :script, and :otf properties.
12198
12199 * xfont.c (xfont_open): Adjust it for the change of
12200 font_make_object.
12201 (xfont_text_extents): Fix initial setting of metrics.
12202
12203 * ftfont.c (struct ftfont_info): New member index, delete member
12204 fc_charset_idx. Make the member order compatible with struct
12205 xftfont_info.
12206 (fc_charset_table): Change charset names to registry names.
12207 (ftfont_pattern_entity): Delete the args registry and
12208 fc_charset_idx. Change the value of :font-entity property
12209 to (FONTNAME . INDEX). Always set :registry property to
12210 `iso10646-1'.
12211 (struct ftfont_cache_data): New struct.
12212 (ftfont_lookup_cache): New arg for_face.
12213 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12214 (ftfont_driver): Set the member otf_capability.
12215 (ftfont_get_charset): Adjust it for the change of
12216 fc_charset_table.
12217 (OTF_TAG_SYM): New macro.
12218 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12219 for the change of fc_charset_table.
12220 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12221 ftfont_pattern_entity. Add FC_INDEX to objset.
12222 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12223 and ftfont_pattern_entity.
12224 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12225 font_make_object, struct ftfont_info.
12226 (ftfont_has_char): Use ftfont_get_fc_charset.
12227 (ftfont_otf_features, ftfont_otf_capability): New functions.
12228 (ftfont_shape): Use ftfont_get_otf.
12229 (ftfont_text_extents): Fix initial setting of metrics.
12230
12231 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12232 member order compatible with struct ftfont_info.
12233 (xftfont_open): Add FC_CHARSET to the pattern. Set
12234 xftfont_info->ft_size. Don't unlock the face. Check BDF
12235 properties if appropriate.
12236 (xftfont_close): Unlock the face.
12237 (xftfont_anchor_point, xftfont_shape): Deleted.
12238 (syms_of_xftfont): Don't set members anchor_point and shape of
12239 xftfont_driver.
12240
12241 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12242 font_make_object.
12243
12244 * w32font.c (w32font_open): Adjust it for the change of
12245 font_make_object.
12246 (w32font_open_internal): Don't set properties of font_object here.
12247
122482008-07-08 Chong Yidong <cyd@stupidchicken.com>
12249
12250 * macfns.c (x_create_tip_frame):
12251 * w32fns.c (x_create_tip_frame):
12252 * xfns.c (x_create_tip_frame): Pass parameter argument to
12253 face-set-after-frame-default.
12254
12255 * xfaces.c (Finternal_merge_in_global_face): Save merged
12256 attributes for the default face back into the face vector.
12257
122582008-07-08 Andreas Schwab <schwab@suse.de>
12259
12260 * fontset.h: Declare fontset_from_font. Don't declare
12261 new_fontset_from_font and fontset_from_font_name.
12262 * xterm.c: Include "fontset.h".
12263 * Makefile.in (xterm.o): Update dependencies.
12264
122652008-07-08 Glenn Morris <rgm@gnu.org>
12266
12267 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12268 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12269
122702008-07-07 Chong Yidong <cyd@stupidchicken.com>
12271
12272 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12273 (x_set_frame_parameters): Don't bind it.
12274
122752008-07-07 Juanma Barranquero <lekktu@gmail.com>
12276
12277 * w32fns.c (map_w32_filename): Declare extern.
12278
122792008-07-07 Jason Rumney <jasonr@gnu.org>
12280
12281 * w32term.c (WS_EX_LAYERED): Define if not already.
12282
122832008-07-06 Chong Yidong <cyd@stupidchicken.com>
12284
12285 * xfaces.c (set_font_frame_param): Don't try to set the font
12286 parameter if it is still unspecified in the lface.
12287
122882008-07-05 Chong Yidong <cyd@stupidchicken.com>
12289
12290 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12291 face if it didn't already exist.
12292
12293 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12294
122952008-07-05 Andreas Schwab <schwab@suse.de>
12296
12297 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12298
122992008-07-05 Chong Yidong <cyd@stupidchicken.com>
12300
12301 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12302 word-wrapping.
12303 (IT_DISPLAYING_WHITESPACE): New macro.
12304 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12305 when word-wrapping. Simplify word-wrapping logic. Use correct
12306 pixel positions when saving copies of the iterator.
12307 (display_line): Use proper wrap point if the last character on a
12308 line was preceded by whitespace.
12309
123102008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12311
12312 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12313
123142008-07-04 Kenichi Handa <handa@m17n.org>
12315
12316 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12317
12318 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12319
123202008-07-02 Jason Rumney <jasonr@gnu.org>
12321
12322 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12323 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12324
12325 * xdisp.c (next_element_from_display_vector): Move assignment out
12326 of if statement.
12327
123282008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12329
12330 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12331
12332 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12333 (syms_of_fileio): Initialize and export them.
12334 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12335
12336 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12337 (Fsystem_move_file_to_trash): New function.
12338 (syms_of_w32fns): Export it to lisp.
12339
123402008-07-01 Jason Rumney <jasonr@gnu.org>
12341
12342 * w32font.c (w32font_text_extents): Don't count overhang as part
12343 of width.
12344
123452008-06-30 Miles Bader <miles@gnu.org>
12346
12347 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12348 Add `avoid_cursor_p' field.
12349
12350 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12351 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12352 (append_glyph, append_composite_glyph, produce_image_glyph)
12353 (append_stretch_glyph): Initialize avoid_cursor_p.
12354 (get_it_property): Rename from `get_line_height_property'.
12355 (x_produce_glyphs): Use get_it_property.
12356 (handle_line_prefix, push_display_prop): New functions.
12357 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12358 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12359 New variables.
12360 (syms_of_xdisp): Initialize them.
12361
123622008-06-30 Kenichi Handa <handa@m17n.org>
12363
12364 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12365 XftDefaultSubstitute (they are called in XftFontMatch).
12366 (xftfont_open): Fix args to ftfont_font_format.
12367
12368 * ftfont.c (fc_charset_table): New member lang.
12369 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12370 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12371 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12372 (ftfont_open): Fix args to ftfont_font_format.
12373 (ftfont_font_format): New arg filename.
12374
123752008-06-30 Chong Yidong <cyd@stupidchicken.com>
12376
12377 * xfaces.c (Finternal_merge_in_global_face): If default face was
12378 modified, realize it again. Update the font face attribute.
12379
123802008-06-29 Jason Rumney <jasonr@gnu.org>
12381
12382 * w32term.c (x_set_frame_alpha): Fix logic.
12383
123842008-06-29 Kenichi Handa <handa@m17n.org>
12385
12386 * fontset.c (Finternal_char_font): Return font-object instead of
12387 font-name.
12388
12389 * composite.c (get_composition_id): Fix the width calculation for TAB.
12390
123912008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12392
12393 * indent.c (Fvertical_motion): Properly handle float column arg.
12394
123952008-06-28 Jason Rumney <jasonr@gnu.org>
12396
12397 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12398 (pfnSetLayeredWindowAttributes): New function pointer.
12399 (w32_initialize): Initialize it when supported.
12400 (x_set_frame_alpha): New function.
12401
12402 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12403 (w32_frame_parm_handlers): Set alpha handler.
12404
12405 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12406
124072008-06-27 Jason Rumney <jasonr@gnu.org>
12408
12409 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12410 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12411 (w32_to_x_charset, x_to_w32_charset)
12412 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12413 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12414 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12415 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12416 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12417 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12418 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12419 (Qw32_charset_unicode): Remove.
12420 (syms_of_w32fns): Update for above changes.
12421
12422 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12423 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12424 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12425 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12426 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12427 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12428 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12429 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12430 (syms_of_w32font): Update for above changes.
12431
124322008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12433
12434 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12435 removed #if.
12436 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12437
124382008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12439 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12440
12441 * makefile.w32-in (LOCAL_FLAGS):
12442 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12443
12444 * sysdep.c (_spawnlp, _getpid):
12445 Declare with explicit _cdecl instead of _CRTAPI1.
12446
12447 * editfns.c (Fget_internal_run_time):
12448 Check for WINDOWSNT with #ifdef, not #if.
12449
124502008-06-26 Jason Rumney <jasonr@gnu.org>
12451
12452 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12453
12454 * w32term.c (x_draw_glyph_string_foreground)
12455 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12456 Use FONT_HANDLE macro.
12457 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12458
12459 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12460 (uniscribe_encode_char): Use FONT_HANDLE macro.
12461
12462 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12463 (w32font_text_extents): Use precast w32_font.
12464 (w32font_close): Free cached metrics.
12465 (w32font_open_internal): Allocate space for name on stack.
12466
124672008-06-26 Chong Yidong <cyd@stupidchicken.com>
12468
12469 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12470
124712008-06-26 Jason Rumney <jasonr@gnu.org>
12472
12473 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12474 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12475
124762008-06-26 Juanma Barranquero <lekktu@gmail.com>
12477
12478 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12479
124802008-06-26 Jason Rumney <jasonr@gnu.org>
12481
12482 * w32bdf.c, w32bdf.h: Remove obsolete files.
12483
12484 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12485
12486 * w32gui.h: Don't include w32bdf.h.
12487 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12488 Remove obsolete font support.
12489
12490 * w32font.h (struct w32font_info): Remove compat_w32_font.
12491 Add hfont member.
12492 (FONT_COMPAT): Remove obsolete macro.
12493
12494 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12495 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12496 (w32font_open_internal): Remove compat code. Set new hfont member.
12497 (Fx_select_font): Use new hfont member.
12498
12499 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12500 (uniscribe_encode_char): Use new hfont member.
12501
12502 * w32term.c (x_draw_glyph_string_foreground)
12503 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12504 (x_draw_glyph_string): Use metrics in w32font_info.
12505
125062008-06-26 Kenichi Handa <handa@m17n.org>
12507
12508 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12509
125102008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12511
12512 * unexnext.c:
12513 * m/ews4800.h:
12514 * m/hp9000s300.h:
12515 * m/ibm370aix.h:
12516 * m/mips-siemens.h:
12517 * m/ncr386.h:
12518 * m/next.h:
12519 * m/pmax.h:
12520 * m/powerpcle.h:
12521 * m/tandem-s2.h:
12522 * s/386bsd.h:
12523 * s/bsd386.h:
12524 * s/bsd4-1.h:
12525 * s/bsd4-2.h:
12526 * s/bsdos2-1.h:
12527 * s/bsdos2.h:
12528 * s/bsdos3.h:
12529 * s/bsdos4.h:
12530 * s/nextstep.h:
12531 * s/ultrix4-3.h:
12532 * s/usg5-0.h:
12533 * s/usg5-2-2.h:
12534 * s/usg5-2.h:
12535 * s/usg5-4-3.h:
12536 * s/ux4800.h:
12537 * s/uxpds.h:
12538 * s/uxpv.h: Remove support for obsolete systems.
12539 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12540 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12541 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12542 Remove, insert contents in s/aix4-2.h.
12543 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12544 * s/bsd4-3.h: Rename to ...
12545 * s/bsd-common.h: ... this.
12546 * data.c:
12547 * doc.c:
12548 * ecrt0.c:
12549 * emacs.c:
12550 * fileio.c:
12551 * floatfns.c:
12552 * keyboard.c:
12553 * mem-limits.h:
12554 * print.c:
12555 * process.c:
12556 * sysdep.c:
12557 * syssignal.h:
12558 * systty.h:
12559 * syswait.h:
12560 * term.c:
12561 * unexec.c:
12562 * unexelf.c:
12563 * unexhp9k800.c:
12564 * m/hp800.h:
12565 * m/ibmrs6000.h:
12566 * m/mips.h:
12567 * m/vax.h:
12568 * s/darwin.h:
12569 * s/freebsd.h:
12570 * s/gnu.h:
12571 * s/ms-w32.h:
12572 * s/msdos.h:
12573 * s/netbsd.h:
12574 * s/template.h: Remove references to obsolete variables.
12575
12576 * Makefile.in: Add dependencies for all unexec files.
12577 (admindir): Remove unused variable.
12578 (UNEXEC_SRC): Remove references.
12579
125802008-06-25 Chong Yidong <cyd@stupidchicken.com>
12581
12582 * xfns.c (x_default_font_parameter): If Xft is available, first
12583 try Monospace-12 for the default font.
12584
125852008-06-25 Jason Rumney <jasonr@gnu.org>
12586
12587 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12588
125892008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12590
12591 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12592
12593 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12594
125952008-06-25 Juanma Barranquero <lekktu@gmail.com>
12596
12597 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12598 <scroll-conservatively>: Fix typo in docstring.
12599
12600 * xselect.c (Fx_send_client_event): Doc fix.
12601
126022008-06-25 Kenichi Handa <handa@m17n.org>
12603
12604 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12605
12606 * font.c (font_parse_fcname): Remove unused variables.
12607 (font_sort_entites): Delete the arg SPEC. Caller changed.
12608 Fix for the case of ! best_only.
12609 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12610
12611 * lisp.h (Fstring_to_unibyte): EXFUN it.
12612
12613 * character.h (str_to_unibyte): Extern it.
12614
12615 * character.c (str_to_unibyte): New function.
12616
12617 * fns.c (Fstring_to_unibyte): New function.
12618 (syms_of_fns): Defsubr it.
12619
126202008-06-24 Kenichi Handa <handa@m17n.org>
12621
12622 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12623 DPI too.
12624 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12625
126262008-06-24 Andreas Schwab <schwab@suse.de>
12627
12628 * Makefile.in (${lispsource}loaddefs.el): Rename from
12629 ../lisp/loaddefs.el.
12630 (bootstrap-clean): Do what distclean does but don't remove
12631 Makefile.
12632 (distclean): Depend on bootstrap-clean and remove Makefile.
12633
126342008-06-24 Chong Yidong <cyd@stupidchicken.com>
12635
12636 * buffer.h (struct buffer): New member word_wrap.
12637
12638 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12639 word-wrap.
12640 (init_buffer_once): Initialize them.
12641
12642 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12643 line_wrap enum possessing three possible values.
12644
12645 * termopts.h: Replace truncate_partial_width_windows with
12646 Vtruncate_partial_width_windows.
12647
12648 * dispnew.c (direct_output_for_insert): Avoid direct output when
12649 inserting a space with word wrap on.
12650
12651 * indent.c (compute_motion): Obey integer values of
12652 truncate-partial-width-windows.
12653
12654 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12655 replacing truncate_partial_width_windows.
12656 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12657 truncate only if the window width is below that integer.
12658 (start_display, resize_mini_window, produce_stretch_glyph)
12659 (display_string, move_it_in_display_line_to): Use line_wrap.
12660 (back_to_previous_visible_line_start, reseat_1): Reset
12661 string_from_display_prop_p.
12662 (display_line): Extend default face to end of line when wrapping.
12663
126642008-06-24 Kim F. Storm <storm@cua.dk>
12665
12666 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12667 to wrap continued lines at word boundaries.
12668
126692008-06-24 Jason Rumney <jasonr@gnu.org>
12670
12671 * font.c (Ffont_face_attributes): Multiply pixel size before point
12672 conversion to avoid multiplying rounding error.
12673
126742008-06-23 Jason Rumney <jasonr@gnu.org>
12675
12676 * w32term.c (x_draw_glyph_string_background)
12677 (x_draw_glyph_string): Remove old bdf font code.
12678
12679 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12680
126812008-06-22 Kenichi Handa <handa@m17n.org>
12682
12683 * font.c (font_find_for_lface): Try the adstyle specified in
12684 the property of LFACE_FONT of LFACE (if any).
12685
126862008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12687 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12688
12689 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12690
126912008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12692
12693 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12694 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12695 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12696 (witness-emacs): Remove.
12697 (lisp, shortlisp): Move loaddefs.el earlier.
12698 (mostlyclean): Forget about witness-emacs.
12699
127002008-06-22 Glenn Morris <rgm@gnu.org>
12701
12702 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12703 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12704
127052008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12706
12707 * Makefile.in (PRECOMP): Remove.
12708 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12709 (witness-emacs): Run `compile-first'.
12710 (.el.elc): Use the new compile-onefile target.
12711
127122008-06-21 Kenichi Handa <handa@m17n.org>
12713
12714 * xftfont.c (xftfont_open): Handle QCembolden only when
12715 FC_EMBOLDEN is defined.
12716
127172008-06-21 Andreas Schwab <schwab@suse.de>
12718
12719 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12720 (.el.elc): Likewise.
12721
127222008-06-21 Miles Bader <miles@gnu.org>
12723
12724 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12725 build dir, not the lisp source dir.
12726
127272008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12728
12729 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12730 (bootstrapclean): Remove.
12731 (.el.elc): New rule.
12732 (PRECOMP): New var.
12733 (../lisp/subdirs.el): Remove.
12734 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12735 (witness-emacs): New target.
12736 (mostlyclean): Remove witness-emacs as well.
12737 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12738 Add witness-emacs dependency.
12739
127402008-06-20 Chong Yidong <cyd@stupidchicken.com>
12741
12742 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12743 defined by the font.
12744
127452008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12746
12747 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12748 (bootstrap-clean): New target that keeps TAGS around.
12749 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12750 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12751
127522008-06-20 Jason Rumney <jasonr@gnu.org>
12753
12754 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12755 Remove obsolete font code.
12756
12757 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12758 to determine language support.
12759
127602008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12761
12762 * sysdep.c (cfsetspeed): New fun extracted from the code.
12763 (cfmakeraw): Move before first use.
12764
127652008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12766
12767 * sysdep.c (cfmakeraw): Provide fallback implementation.
12768 (serial_configure): Provide fallback implementation of cfsetspeed.
12769
127702008-06-20 Kenichi Handa <handa@m17n.org>
12771
12772 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12773 the pattern.
12774
12775 * fontset.c (fontset_from_font): Copy font_spec before changing
12776 the elements.
12777
12778 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12779
127802008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12781
12782 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12783 for explicit `font' parameters.
12784
12785 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12786
127872008-06-19 Kenichi Handa <handa@m17n.org>
12788
12789 * frame.c: Include <ctype.h>.
12790 (x_set_font_backend): Allow spacing characters in the X resource
12791 for FontBackend.
12792
127932008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12794
12795 * w32fns.c, xfns.c (Qfont_param): New var.
12796 (syms_of_w32fns): Initialize it.
12797 (x_default_font_parameter): Record explicit `font' into
12798 `font-parameter'.
12799
128002008-06-18 Kenichi Handa <handa@m17n.org>
12801
12802 * font.c (font_parse_xlfd): Fix previous change.
12803 (font_parse_fcname): Don't use :fc-unknown-spec.
12804 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12805 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12806 (font_add_log): Prepend the driver name to the resulting fonts.
12807
12808 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12809 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12810 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12811
12812 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12813 (QCembolden): New variables.
12814 (syms_of_xftfont): DEFSYM them.
12815 (xftfont_open): Call XftFontMatch. Don't trust the result of
12816 XftTextExtents8 if the pixel_size is less than 5.
12817
128182008-06-18 Andreas Schwab <schwab@suse.de>
12819
12820 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12821 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12822
128232008-06-18 Jason Rumney <jasonr@gnu.org>
12824
12825 * w32font.c (w32font_list, w32font_match): Add logging.
12826
12827 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12828
128292008-06-17 Chong Yidong <cyd@stupidchicken.com>
12830
12831 * font.c (font_parse_fcname): Store divider characters for
12832 unknown-spec list. For known key symbols, intern using correct
12833 symbol name.
12834
128352008-06-17 Kenichi Handa <handa@m17n.org>
12836
12837 * xfaces.c (realize_default_face): If the frame is not on window
12838 system, set the fontset of face to nil.
12839
128402008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12841
12842 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12843
128442008-06-16 Juanma Barranquero <lekktu@gmail.com>
12845
12846 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12847 (build_font_name_from_vector): Delete externs.
12848
12849 * xfaces.c (struct font_name): Don't declare.
12850
128512008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12852
12853 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12854
128552008-06-16 Chong Yidong <cyd@stupidchicken.com>
12856
12857 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12858
128592008-06-16 Juanma Barranquero <lekktu@gmail.com>
12860
12861 * font.c (Ffont_spec): Fix usage in docstring.
12862 (Ffont_face_attributes): Doc fix.
12863
128642008-06-16 Andreas Schwab <schwab@suse.de>
12865
12866 * font.c (Ffont_face_attributes): Fix definition.
12867
128682008-06-16 Jason Rumney <jasonr@gnu.org>
12869
12870 * font.h (font_style_symbolic_from_value): Remove.
12871
12872 * font.c (font_style_symbolic_from_value): Remove.
12873 (font_style_symbolic): Revert to pre 2008-06-13 version.
12874
12875 * w32font.c (w32_to_fc_weight): New function.
12876 (w32font_full_name, logfont_to_fcname): Use it.
12877
128782008-06-16 Kenichi Handa <handa@m17n.org>
12879
12880 * font.c (font_check_object): Delete it.
12881 (font_clear_cache): Check if a font-object is alive.
12882 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12883 font-object to nil.
12884 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12885 (font_at): Don't call font_check_object.
12886 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12887
128882008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12889
12890 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12891
128922008-06-16 Chong Yidong <cyd@stupidchicken.com>
12893
12894 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12895
128962008-06-15 Chong Yidong <cyd@stupidchicken.com>
12897
12898 * font.c (font_parse_fcname): Only one decimal point.
12899 (font_unparse_fcname): Handle data in family and foundry indices
12900 as symbols, not strings.
12901 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12902
12903 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12904
12905 * font.h (font_unparse_gtkname): Add prototype.
12906
129072008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12908
12909 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12910
129112008-06-15 Andreas Schwab <schwab@suse.de>
12912
12913 * font.c (font_update_drivers): Fix crash when no drivers match.
12914
129152008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12916
12917 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12918 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12919
129202008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12921
12922 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12923
129242008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12925
12926 * process.c (Fserial_process_configure, Fprocess_send_eof):
12927 Use EQ to compare Lisp_Objects.
12928
129292008-06-13 Jason Rumney <jasonr@gnu.org>
12930
12931 * w32fns.c (Fw32_select_font): Remove old font API function.
12932
12933 * w32font.c (logfont_to_fcname): New function.
12934 (Fx_select_font): New font dialog function compatible with
12935 GTK/fontconfig version.
12936
12937 * font.c (font_style_symbolic_from_value): New function.
12938 (font_style_symbolic): Use it.
12939
12940 * font.h (font_style_symbolic_from_value): Declare new function.
12941
129422008-06-13 Juanma Barranquero <lekktu@gmail.com>
12943
12944 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12945 <font-width-table>: Fix typos in docstrings.
12946
129472008-06-13 Daniel Engeler <engeler@gmail.com>
12948
12949 These changes add serial port access.
12950 * process.c: Add HAVE_SERIAL.
12951 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12952 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12953 (list_processes_1, select_wrapper, Fstop_process)
12954 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12955 (status_notify): Modify to handle serial processes.
12956 [HAVE_SERIAL] (Fserial_process_configure)
12957 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12958 New functions.
12959 * process.h (struct Lisp_Process): Add `type'.
12960 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12961 New functions.
12962 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12963 serial ports.
b71ac3dd 12964 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12965 * w32.h: Add FILE_SERIAL.
12966 (struct _child_process): Add ovl_read, ovl_write.
12967
129682008-06-13 Kenichi Handa <handa@m17n.org>
12969
12970 * dispextern.h (enum lface_attribute_index): New member
12971 LFACE_FOUNDRY_INDEX.
12972
12973 * font.c (font_score): Delete arg alternate_families. Check only
12974 weight, slant, width, and size. Ignore the difference of alias
12975 style symbols.
12976 (font_sort_entites): Adjust for the above change. Reflect the
12977 order of font-driver to scores.
12978 (font_list_entities): Don't check alternate_familes here.
12979 (font_clear_prop): Handle foundry.
12980 (font_update_lface): Don't parse "foundry-family" form here.
12981 Handle FONT_FOUNDRY_INDEX.
12982 (font_find_for_lface): Likewise. Handle alternate families here.
12983 If registry is nil, try iso8859-1 and ascii-0.
12984 (font_open_for_lface): Pay attention to size in ENTITY.
12985 (font_open_by_name): Simplify by calling font_load_for_lface.
12986 (free_font_driver_list): Delete it.
12987 (font_update_drivers): Preserve the order of backends.
12988 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12989 of font_score and font_sort_entites.
12990 (font_update_sort_order): Likewise.
12991
12992 * xfaces.c (LFACE_FOUNDRY): New macro.
12993 (check_lface_attrs): Check foundry.
12994 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12995 (merge_face_vectors): Check foundry.
12996 (merge_face_ref): Likewise.
12997 (Finternal_set_lisp_face_attribute): Likewise.
12998 (x_update_menu_appearance): Likewise.
12999 (Finternal_get_lisp_face_attribute): Likewise.
13000 (lface_hash): Likewise.
13001 (lface_same_font_attributes_p): Likewise.
13002 (x_supports_face_attributes_p): Likewise.
13003 (tty_supports_face_attributes_p): Likewise.
13004 (Finternal_set_alternative_font_family_alist): Intern strings.
13005 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13006 (realize_default_face): Set LFACE_FOUNDRY (lface).
13007
13008 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13009 font-driver at first.
13010
13011 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13012
130132008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13014
13015 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13016
130172008-06-12 Jim Meyering <meyering@redhat.com>
13018
13019 Make unexec_free handle NULL the same way free does.
13020 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13021
130222008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13023
13024 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13025 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13026 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13027 (WEAK_ALIAS): Simplify.
13028 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13029 when searching a unibyte buffer.
13030
130312008-06-12 Chong Yidong <cyd@stupidchicken.com>
13032
13033 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13034
130352008-06-12 Juanma Barranquero <lekktu@gmail.com>
13036
13037 * w32font.c: Include ctype.h.
13038
130392008-06-11 Jason Rumney <jasonr@gnu.org>
13040
13041 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13042 misreported as space.
13043 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13044 as aliases for registry iso10646-1.
13045
130462008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13047
13048 * buffer.c (clone_per_buffer_values): Skip `name'.
13049
130502008-06-11 Chong Yidong <cyd@stupidchicken.com>
13051
13052 * font.c (font_parse_fcname): Fix last change; accept decimal
13053 points in font size.
13054
130552008-06-10 Jason Rumney <jasonr@gnu.org>
13056
13057 * w32uniscribe.c (add_opentype_font_name_to_list):
13058 Skip non unicode fonts.
13059
130602008-06-10 Chong Yidong <cyd@stupidchicken.com>
13061
13062 * xfns.c (Fx_font_dialog): New function.
13063
13064 * gtkutil.c (xg_dialog_response_cb): Rename from
13065 xg_file_response_callback.
13066 (pop_down_dialog): Rename from pop_down_file_dialog.
13067 (xg_get_file_name): Callers changed.
13068 (xg_get_font_name): New function.
13069
13070 * gtkutil.h (xg_get_font_name): Insert prototype.
13071
130722008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13073
13074 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13075 x_underline_minimum_display_offset.
13076 (syms_of_xdisp): Declare it here rather than in xterm.c.
13077 * dispextern.h (underline_minimum_offset): Declare it.
13078 * w32term.c (x_draw_glyph_string): Use it.
13079 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13080 (syms_of_xterm): Don't declare it any more.
13081 (x_draw_glyph_string): Adjust to the new name.
13082
8719abec 130832008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13084
13085 * xterm.c (x_underline_minimum_display_offset): New var.
13086 (x_draw_glyph_string): Use it.
13087 (syms_of_xterm): Declare it.
13088
130892008-06-10 Chong Yidong <cyd@stupidchicken.com>
13090
13091 * font.c (font_parse_fcname): Accept GTK-style font names too.
13092
130932008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13094
13095 * dired.c (file_name_completion): Don't return t if the match is exact
13096 but with different capitalization.
13097 * minibuf.c (Ftry_completion): Simplify.
13098
13099 * window.c (Vwindow_point_insertion_type): New var.
13100 (set_window_buffer): Use it.
13101 (syms_of_window): Init and export it to Lisp.
13102
131032008-06-10 Kenichi Handa <handa@m17n.org>
13104
13105 * font.h (font_intern_prop): Prototype adjusted.
13106
13107 * font.c (font_intern_prop): New arg force_symbol.
13108 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13109 Adjust for the change of font_intern_prop.
13110
13111 * ftfont.c (ftfont_pattern_entity):
13112 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13113 (w32_registry):
13114 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13115 the change of font_intern_prop.
13116
131172008-06-09 Juanma Barranquero <lekktu@gmail.com>
13118
13119 * w32menu.c (digest_single_submenu): Declare extern.
13120
131212008-06-09 Jason Rumney <jasonr@gnu.org>
13122
13123 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13124
13125 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13126 (parse_single_submenu): Remove.
13127 (digest_single_submenu): Remove.
13128 (syms_of_w32menu): Don't initialise variables that have moved
13129 to menu.c.
13130 (set_frame_menubar): Sync with version in xmenu.c.
13131 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13132
13133 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13134 Make static again.
13135
131362008-06-09 Jason Rumney <jasonr@gnu.org>
13137
13138 Changes to w32 files related to the move of common menu code
13139 to menu.c on 2008-06-08 by Chong Yidong.
13140
13141 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13142 defs to w32gui.h.
13143 (single_keymap_panes, push_menu_item, push_menu_pane):
13144 Make globally visible.
13145
13146 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13147 (local_free, malloc_widget_value, free_widget_value)
13148 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13149 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13150 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13151 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13152 (menu_items, menu_items_allocated, menu_items_used)
13153 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13154 (init_menu_items, finish_menu_items, discard_menu_items)
13155 (grow_menu_items, push_submenu_start, push_submenu_end)
13156 (push_left_right_boundary, push_menu_pane, push_menu_item)
13157 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13158 (free_menubar_widget_tree_value, parse_single_submenu)
13159 (update_submenu_strings): Remove functions.
13160 (xmalloc_widget_value): Remove and declare extern.
13161
13162 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13163 (OBJ1): Build it.
13164
13165 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13166 (local_heap, local_alloc, local_free, malloc_widget_value)
13167 (free_widget_value): Define here.
13168
131692008-06-09 Kenichi Handa <handa@m17n.org>
13170
13171 * font.h (Qascii_0): Extern it.
13172
13173 * font.c (Qascii_0): New variable.
13174 (syms_of_font): DEFSYM it.
13175 (font_open_by_name): If the registry "iso8859-1" fails, try also
13176 "ascii-0".
13177
13178 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13179
131802008-06-08 Kenichi Handa <handa@m17n.org>
13181
13182 * .gdbinit (xfont): New command.
13183
131842008-06-08 Andreas Schwab <schwab@suse.de>
13185
13186 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13187 * Makefile.in (menu.o): Update dependencies.
13188
13189 * Makefile.in (obj): Always add menu.o.
13190 * emacs.c (main): Always call syms_of_menu.
13191 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13192
131932008-06-08 Chong Yidong <cyd@stupidchicken.com>
13194
13195 * Makefile.in: Compile menu.c.
13196
13197 * lisp.h: Declare syms_of_menu.
13198
13199 * emacs.c (main): Call syms_of_menu.
13200
13201 * keyboard.h: Relocate platform-independent menu definitions from
13202 xmenu.c.
13203
13204 * menu.c: New file. Relocate platform-independent menu
13205 definitions from xmenu.c. Suggested by Adrian Robert.
13206
13207 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13208 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13209 (menu_items_used, menu_items_n_panes)
13210 (menu_items_submenu_depth): Move to keyboard.h.
13211 (init_menu_items, finish_menu_items, unuse_menu_items)
13212 (discard_menu_items, restore_menu_items, save_menu_items)
13213 (grow_menu_items, push_submenu_start, push_submenu_end)
13214 (push_left_right_boundary, push_menu_pane, push_menu_item)
13215 (keymap_panes, single_keymap_panes, single_menu_item)
13216 (list_of_panes, list_of_items, find_and_call_menu_selection)
13217 (xmalloc_widget_value, free_menubar_widget_value_tree)
13218 (parse_single_submenu, digest_single_submenu)
13219 (update_submenu_strings): Move to menu.c.
13220
132212008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13222
13223 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13224
132252008-06-06 Miles Bader <miles@gnu.org>
13226
13227 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13228 face, not frame default.
13229
132302008-06-05 Martin Rudalics <rudalics@gmx.at>
13231
13232 * window.c (pop_up_windows, pop_up_frames)
13233 (display_buffer_reuse_frames, Vpop_up_frame_function)
13234 (Vdisplay_buffer_function, Veven_window_heights)
13235 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13236 (Vspecial_display_function, Vsame_window_buffer_names)
13237 (Vsame_window_regexps, split_height_threshold)
13238 (Vsplit_window_preferred_function): Move those vars to window.el.
13239 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13240 (Fdisplay_buffer): Move those functions to window.el.
13241 (syms_of_window): Remove corresponding declarations.
13242 (display_buffer): New function.
13243 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13244 * dispnew.c (Flast_nonminibuf_frame): New function.
13245 * buffer.c (Fpop_to_buffer): Move to window.el.
13246
132472008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13248
13249 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13250
132512008-06-05 Kenichi Handa <handa@m17n.org>
13252
13253 * coding.c (detect_coding): Fix previous change.
13254 (detect_coding_system): Likewise.
13255
132562008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13257
13258 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13259
13260 * keymap.c (Vminibuffer_local_filename_must_match_map):
13261 Rename from Vminibuffer_local_must_match_filename_map.
13262 (syms_of_keymap):
13263 * minibuf.c (Fcompleting_read): Adjust accordingly.
13264 * commands.h: Rename declaration as well.
13265
132662008-06-05 Kenichi Handa <handa@m17n.org>
13267
13268 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13269 family name.
13270 (Ffont_put): Likewise.
13271
13272 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13273 current font-spec.
13274
13275 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13276 is unspecified.
13277
13278 * xfaces.c (realize_x_face): If the font-related face attributes
13279 are the same as those of default face, realize a new fontset from
13280 default->fontset.
13281 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13282
132832008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13284
13285 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13286 (move_it_in_display_line): New wrapper.
13287
13288 * window.c (window_scroll_pixel_based_preserve_x)
13289 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13290 (window_scroll_pixel_based, window_scroll_line_based):
13291 Use them to preserve column positions.
13292 (syms_of_window): Initialize them.
13293
13294 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13295 (HPOS . VPOS) pair.
13296
13297 * dispextern.h (move_it_in_display_line): Declare.
13298
132992008-06-05 Juanma Barranquero <lekktu@gmail.com>
13300
13301 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13302 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13303 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13304
133052008-06-04 Juanma Barranquero <lekktu@gmail.com>
13306
13307 * window.c (Fset_window_parameter): Doc fix.
13308 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13309
133102008-06-04 Joakim Verona <joakim@verona.se>
13311
13312 * window.h (struct window): Add new member window_parameters.
13313
13314 * window.c (Fwindow_parameters, Fwindow_parameter)
13315 (Fset_window_parameter): New defuns.
13316 (syms_of_window): Defsubr the new defuns.
13317 (make_window): Initialize window_parameters to nil.
13318
133192008-06-04 John Paul Wallington <jpw@pobox.com>
13320
13321 * eval.c (Fdefmacro): Doc fix.
13322
133232008-06-04 Kenichi Handa <handa@m17n.org>
13324
13325 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13326 Be sure to call setup_coding_system when we find a proper coding system.
13327 (detect_coding_system): Fix handling of coding->head_ascii.
13328
133292008-06-03 Andreas Schwab <schwab@suse.de>
13330
13331 * font.c (font_prop_validate_spacing): Fix last change.
13332
133332008-06-03 Kenichi Handa <handa@m17n.org>
13334
13335 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13336 (font_parse_fcname): Fix handling of unknown key.
13337
13338 * xfont.c (xfont_list): Try an alias.
13339
13340 * charset.c (char_charset): Return NULL if the arg charset_list is
13341 specified and C doesn't belong to any of them.
13342
133432008-06-02 Chip Coldwell <coldwell@redhat.com>
13344
13345 * font.c (font_pixel_size): Don't take cdr of an integer.
13346
133472008-06-02 Jim Meyering <meyering@redhat.com>
13348
13349 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13350 * alloc.c (xfree): Return right away for a NULL arg.
13351 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13352 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13353 * mac.c (create_apple_event_from_event_ref): Likewise.
13354 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13355 Likewise.
13356 * doprnt.c (doprnt1): Likewise.
13357 * frame.c (frame): Likewise.
13358 * keyboard.c (wipe_kboard): Likewise.
13359 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13360 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13361 * term.c (tty_default_color_capabilities, maybe_fatal)
13362 (delete_tty): Likewise.
13363 * w16select.c (string): Likewise.
13364 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13365 * w32bdf.c (w32_free_bdf_font): Likewise.
13366 * w32fns.c (w32_unload_font): Likewise.
13367 * w32font.c (w32font_close): Likewise.
13368 * window.c (size_window): Likewise.
13369 * xselect.c (receive_incremental_selection): Likewise.
13370 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13371 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13372 * w32.c (stat): Likewise.
13373
13374 Remove useless if-before-free tests.
13375 * editfns.c (Fset_time_zone_rule): Likewise.
13376 * lread.c (nosuffix): Likewise.
13377 * ralloc.c (get_bloc): Likewise.
13378 * regex.c (reg_free): Likewise.
13379 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13380 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13381 * xsmfns.c (smc_save_yourself_CB): Likewise.
13382
133832008-06-02 Kenichi Handa <handa@m17n.org>
13384
13385 * font.c (font_find_for_lface): Handle float font size.
13386 (font_open_for_lface): Likewise.
13387
13388 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13389 comparing the properties.
13390
133912008-06-01 Jason Rumney <jasonr@gnu.org>
13392
13393 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13394 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13395 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13396 Don't add empty script list.
13397 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13398
133992008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13400
13401 * Makefile.in (dot, dotdot): Remove, update users.
13402 ".." has been used elsewhere in the file for a long time.
13403 (LIBXT_STATIC): Remove conditional based on unused variable.
13404
134052008-06-01 Miles Bader <miles@gnu.org>
13406
13407 * xfaces.c (Vface_remapping_alist): New variable.
13408 (syms_of_xfaces): Initialize it.
13409 (enum named_merge_point_kind): New type.
13410 (struct named_merge_point): Add `named_merge_point_kind' field.
13411 (push_named_merge_point): Make cycle detection respect different
13412 named-merge-point kinds.
13413 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13414 Remove face-name alias resolution.
13415 (lface_from_face_name): New definition using
13416 `lface_from_face_name_no_resolve'.
13417 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13418 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13419 (get_lface_attributes): New definition that layers face-remapping on
13420 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13421 (lookup_basic_face): New function.
13422 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13423 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13424 `get_lface_attributes'.
13425 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13426 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13427 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13428
13429 * xdisp.c (init_iterator): Pass base_face_id through
13430 `lookup_basic_face' when we actually use it as a face-id.
13431 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13432 DEFAULT_FACE_ID.
13433
13434 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13435 lookup the initial face-id.
13436
13437 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13438
134392008-06-01 Juanma Barranquero <lekktu@gmail.com>
13440
13441 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13442 (Fremove_text_properties): Fix typos in docstrings.
13443
134442008-05-31 Kenichi Handa <handa@m17n.org>
13445
13446 * font.c (font_list_entities): Fix the car part of data to be
13447 stored in the cache.
13448
13449 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13450
134512008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13452
13453 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13454 Add a `test' argument so another predicate than `equal' can be used.
13455 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13456 (map_char_table): Remove unused vars `c' and `i'.
13457 * lisp.h (Foptimize_char_table): Adjust declaration.
13458 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13459
134602008-05-30 Kenichi Handa <handa@m17n.org>
13461
13462 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13463 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13464 defined.
13465
134662008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13467
13468 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13469 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13470 frame-local settings for the same variable.
13471
134722008-05-30 Kenichi Handa <handa@m17n.org>
13473
13474 * fontset.c (Ffont_info): Move to font.c.
13475 (syms_of_fontset): Delete defsubr of Sfont_info.
13476
13477 * font.c (font_style_to_value, font_score): Delete casting of the
13478 args to xstcasecmp.
13479 (register_font_driver): Increment num_font_drivers only when
13480 registering the driver globally.
13481 (Ffont_info): Move from fontset.c. Handle a font object too.
13482 (syms_of_font): Defsubr Sfont_info.
13483
134842008-05-29 Kenichi Handa <handa@m17n.org>
13485
13486 * coding.h (enum define_coding_utf8_arg_index): New enum.
13487 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13488 coding_attr_utf_bom.
13489 (enum utf_bom_type): Rename from utf_16_bom_type.
13490 (struct utf_16_spec): Adjust for the above change.
13491 (struct coding_system): Add utf_8_bom in `spec' union.
13492
13493 * coding.c (CODING_UTF_8_BOM): New macro.
13494 (enum coding_category): Delete coding_category_utf_8, add
13495 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13496 coding_category_utf_8_sig.
13497 (CATEGORY_MASK_UTF_8): Delete it.
13498 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13499 (CATEGORY_MASK_UTF_8_SIG): New macros.
13500 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13501 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13502 CATEGORY_MASK_UTF_8_SIG.
13503 (CATEGORY_MASK_UTF_8): New macro.
13504 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13505 (detect_coding_utf_8): Check BOM.
13506 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13507 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13508 (encode_coding_utf_16): Likewise.
13509 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13510 (detect_coding, detect_coding_system): Handle utf-8-auto.
13511 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13512 (syms_of_coding): Fix setting up of Vcoding_category_table.
13513
135142008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13515
13516 * process.c (Faccept_process_output): If `millisec' is non-nil,
13517 `seconds' default to 0.
13518 (wait_reading_process_output): Also return non-nil if we read output
13519 from a non-running process.
13520
135212008-05-29 Jason Rumney <jasonr@gnu.org>
13522
13523 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13524 `raster' specified.
13525 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13526 in the uniscribe backend, but disallow any font that has no
13527 unicode subrange support.
13528
135292008-05-29 Juanma Barranquero <lekktu@gmail.com>
13530
13531 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13532 Fix typos in docstrings.
13533
135342008-05-29 Kenichi Handa <handa@m17n.org>
13535
13536 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13537 (Fx_family_fonts): Set frame correctly.
13538
135392008-05-28 Jason Rumney <jasonr@gnu.org>
13540
13541 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13542
135432008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13544
13545 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13546 calling build_annotations.
13547
135482008-05-28 Juanma Barranquero <lekktu@gmail.com>
13549
13550 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13551 (Fencode_coding_string):
13552 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13553 <latin-extra-code-table>: Fix typos in docstrings.
13554 (syms_of_coding) <coding-system-alist>: Doc fix.
13555 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13556
135572008-05-28 Kenichi Handa <handa@m17n.org>
13558
13559 * fontset.c (Ffont_info): Don't call font_close_object.
13560
13561 * font.c (font_parse_family_registry): Use Ffont_put to validate
13562 foundry and family.
13563 (font_delete_unmatched): Don't check spacing.
13564 (font_list_entities): Add spacing to the spec to list fonts.
13565
13566 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13567 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13568
13569 * coding.c (encode_coding_raw_text): Fix previous change.
13570 (encode_coding_object): When the dst_object is a buffer and is
13571 different from src_object, move gap to PT.
13572
135732008-05-27 Chong Yidong <cyd@stupidchicken.com>
13574
13575 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13576
135772008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13578
13579 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13580 all branches. Compute it differently.
13581
13582 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13583
135842008-05-27 Juanma Barranquero <lekktu@gmail.com>
13585
13586 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13587 into "else if () ... else ...".
13588
135892008-05-27 Jason Rumney <jasonr@gnu.org>
13590
13591 * w32font.c (w32font_open_internal): Determine if glyph indices
13592 are likely to work here.
13593
135942008-05-27 Chong Yidong <cyd@stupidchicken.com>
13595
13596 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13597 draw overlap glyphs with appropriate highlighting.
13598
135992008-05-27 Kenichi Handa <handa@m17n.org>
13600
13601 * xfont.c (xfont_open): Fix calculation of font->average_width.
13602
136032008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13604
13605 * casefiddle.c (casify_object): Try to guess better whether the
13606 argument is a byte or a char.
13607
136082008-05-26 Andreas Schwab <schwab@suse.de>
13609
13610 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13611 Always send multiples of format size.
13612
13613 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13614
136152008-05-26 Jason Rumney <jasonr@gnu.org>
13616
13617 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13618 (compute_metrics): Don't set failure if we just cleared the cache.
13619 (w32_weight_table): Remove unused variable.
13620 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13621 backwards compatibility.
13622
136232008-05-25 Kenichi Handa <handa@m17n.org>
13624
13625 * w32term.c (x_draw_glyph_string):
13626 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13627
13628 * xfaces.c: Delete unused function prototypes.
13629 (xstrlwr, font_frame): Delete them.
13630 (clear_face_cache): Delete unused variable.
13631
13632 * xftfont.c (xftfont_open): Delete unused variable.
13633 If underline_thickness is not 1, adjust underline_position.
13634
13635 * ftxfont.c (ftxfont_open): Delete unused variable.
13636
13637 * fontset.c (face_for_char): Optimize for the case of no charset
13638 property.
13639
13640 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13641 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13642 (otf_open, font_otf_capability, generate_otf_features)
13643 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13644 Comment out by surrounding "#if 0" and "#endif" for the moment.
13645 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13646 (syms_of_font): Codes for accessing above commented out.
13647
136482008-05-24 Eli Zaretskii <eliz@gnu.org>
13649
13650 * w32proc.c: Include dispextern.h.
13651
13652 * w32.c: Include dispextern.h.
13653
136542008-05-23 Juanma Barranquero <lekktu@gmail.com>
13655
13656 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13657 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13658 Fix typos in docstrings.
13659
136602008-05-23 Jason Rumney <jasonr@gnu.org>
13661
13662 * xsmfns.c: Remove includes that are already included by config.h.
13663
136642008-05-23 Kenichi Handa <handa@m17n.org>
13665
13666 * charset.c (Qemacs, charset_emacs): New variables.
13667 (char_charset): Fix for non-Unicode characters.
13668 (syms_of_charset): Define charset_emacs.
13669
13670 * w32term.c (x_draw_glyph_string): Be sure to update
13671 s->underline_thickness and s->underline_position. Be sure to draw
13672 underline within the current line area.
13673
13674 * xterm.c (x_draw_glyph_string): Be sure to update
13675 s->underline_thickness and s->underline_position. Be sure to draw
13676 underline within the current line area.
13677
13678 * fontset.c: Delete unused variables and add casting for char *
13679 throughout the file.
13680 (fontset_font): Try the fallback fonts of the current fontset
13681 before consulting the default fontset.
13682
13683 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13684
13685 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13686
136872008-05-22 Jason Rumney <jasonr@gnu.org>
13688
13689 * font.c: Don't include strings.h.
13690
13691 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13692
13693 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13694 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13695 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13696 to call xstrcasecmp.
13697
13698 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13699
13700 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13701
13702 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13703
13704 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13705
137062008-05-22 Kenichi Handa <handa@m17n.org>
13707
13708 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13709
13710 * font.c (font_prop_validate_style): Adjust for the format
13711 change of font_style_table.
13712
13713 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13714 two args.
13715
13716 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13717 two args.
13718
137192008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13720
13721 * minibuf.c (keys_of_minibuf): Delete.
13722 * lisp.h (keys_of_minibuf): Delete.
13723 * emacs.c (main): Don't call keys_of_minibuf.
13724
137252008-05-22 Kenichi Handa <handa@m17n.org>
13726
13727 * ftfont.c (ftfont_resolve_generic_family): Rename from
13728 ftfont_list_generic_family. Return a single family for each
13729 generic family.
13730 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13731 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13732 Call font_add_log.
13733 (ftfont_match): Call font_add_log.
13734
13735 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13736 (FONT_DEBUG): Define it.
13737 (font_add_log): Extern it.
13738 (font_assert): Rename from xassert.
13739
13740 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13741 (xfont_list_family): Call font_add_log.
13742 (xfont_match): Likewise.
13743 (memq_no_quit): Delete.
13744
13745 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13746 call of Ffont_xlfd_name.
13747
13748 * xfaces.c (struct table_entry, slant_table, weight_table)
13749 (swidth_table): Move to font.c.
13750
13751 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13752 xassert are changed to font_assert. Delete many unused variables.
13753 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13754 New variables.
13755 (struct table_entry): Move from xfaces.c and modified.
13756 (weight_table, slant_table, width_table): Move from xfaces.c and
13757 contents adjusted for the change of struct table_entry.
13758 (font_style_to_value, font_style_symbolic): Adjust for the
13759 format change of font_style_table.
13760 (font_parse_family_registry): Don't overwrite existing foundry and
13761 family of font_spec.
13762 (font_score): Fix calculation of diff for sizes.
13763 (font_sort_entites): Call font_add_log.
13764 (font_delete_unmatched): Return a newly created list.
13765 (font_list_entities): Fix previous change. Call font_add_log.
13766 (font_matching_entity, font_open_entity, font_close_entity):
13767 Call font_add_log.
13768 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13769 (Finternal_set_font_style_table): Delete.
13770 (BUILD_STYLE_TABLE): New macro.
13771 (build_style_table): New function.
13772 (Vfont_log, font_log_env_checked): New variables.
13773 (font_add_log): New function.
13774 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13775 Declare Lisp variables "font-weight-table", "font-slant-table",
13776 "font-width-table", and "font-log". Initialize font_style_table.
13777
137782008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13779
13780 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13781
137822008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13783 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13784
13785 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13786 (Vframe_alpha_lower_limit): New variable.
13787 (x_set_alpha): New function.
13788
13789 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13790
13791 * xfns.c (x-create-frame, Qalpha):
13792 Initialize the frame parameter `alpha'.
13793 * xterm.c (OPAQUE, OPACITY): New.
13794 (x_set_frame_alpha): New function.
13795 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13796
13797 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13798 * w32fns.c (w32_frame_parm_handlers): Likewise.
13799
138002008-05-20 Jason Rumney <jasonr@gnu.org>
13801
13802 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13803 truetype fonts to opentype list.
13804
138052008-05-20 Juanma Barranquero <lekktu@gmail.com>
13806
13807 * fontset.c (Ffontset_info): Doc fix.
13808 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13809 <ignore-relative-composition>: Fix typos in docstrings.
13810
13811 * font.c (syms-of-font) <font-encoding-alist>:
13812 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13813 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13814 (Ffont_otf_alternates): Doc fixes.
13815
138162008-05-20 Kenichi Handa <handa@m17n.org>
13817
13818 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13819 font.h through out the file.
13820 (FONT_DRIVERS): Rename from FONTOBJ.
13821 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13822 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13823
13824 * emacs.c (main): Call syms_of_font unconditionally.
13825
13826 * font.h (find_font_encoding): Extern it.
13827
13828 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13829 fontset.c.
194d44e7 13830 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13831 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13832 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13833 only when HAVE_WINDOW_SYSTEM is defined.
13834 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13835 when HAVE_WINDOW_SYSTEM is defined.
13836
13837 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13838 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13839
13840 * xfaces.c: Include font.h unconditionally.
13841 (merge_face_ref, merge_face_vectors)
13842 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13843
138442008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13845
13846 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13847 indirect_variable.
13848 * eval.c (lisp_indirect_variable): New fun.
13849 (Fuser_variable_p): Use it.
13850
138512008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13852
13853 * lisp.h (indirect_variable):
13854 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13855 Use Lisp_Symbol pointers rather than Lisp_Object.
13856 Adjust callers.
13857 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13858 To this end, change calling-convention.
13859
13860 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13861 if some non-hidden buffers are selected by string&pred.
13862
138632008-05-19 Chong Yidong <cyd@stupidchicken.com>
13864
13865 * process.c (wait_reading_process_output): Always check status
13866 when in batch mode.
13867
138682008-05-19 Kenichi Handa <handa@m17n.org>
13869
13870 * font.c (font_list_entities): Fix handling of cache.
13871 (font_matching_entity): Likewise.
13872
13873 * ftfont.c (cs_iso8859_1): Delete.
13874 (ft_face_cache): New variable.
13875 (struct ftfont_info): New member fc_charset_idx.
13876 (ftfont_build_basic_charsets): Delete.
13877 (fc_charset_table): New variable.
13878 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13879 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13880 Callers changed.
13881 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13882 (ftfont_spec_pattern): New argument fc_charset_idx.
13883 Check registry more rigidly. Change callers.
13884 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13885 change of :font-entity property of the font.
13886
13887 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13888 property of the font.
13889
138902008-05-18 Juanma Barranquero <lekktu@gmail.com>
13891
13892 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13893 (Funencodable_char_position, Fcheck_coding_systems_region)
13894 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13895 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13896 (Ffind_operation_coding_system, Fset_coding_system_priority)
13897 (Fcoding_system_eol_type): Doc fixes.
13898
138992008-05-17 Glenn Morris <rgm@gnu.org>
13900
13901 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13902
139032008-05-16 Eli Zaretskii <eliz@gnu.org>
13904
13905 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13906 and st_gid.
13907
13908 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13909 HAVE_WINDOW_SYSTEM is not defined.
13910
13911 * xfaces.c (merge_face_ref, merge_face_vectors)
13912 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13913 HAVE_WINDOW_SYSTEM is defined.
13914 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13915
139162008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13917
13918 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13919
139202008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13921
13922 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13923
139242008-05-15 Kenichi Handa <handa@m17n.org>
13925
13926 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13927 preference.
13928
139292008-05-15 Glenn Morris <rgm@gnu.org>
13930
13931 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13932
139332008-05-15 Chong Yidong <cyd@stupidchicken.com>
13934
13935 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13936 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13937
13938 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13939
139402008-05-15 Kenichi Handa <handa@m17n.org>
13941
13942 * ftfont.c (ftfont_list): Downcase family name to check generic
13943 families.
13944
13945 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13946 font-spec for QCfont value.
13947
13948 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13949 buffer. Check the return value of it.
13950
139512008-05-14 Jason Rumney <jasonr@gnu.org>
13952
13953 * w32term.c (w32_get_glyph_overhangs): Remove.
13954 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13955
139562008-05-14 Kenichi Handa <handa@m17n.org>
13957
13958 * font.c (font_prop_validate): Make nil a valid value.
13959 (font_clear_cache): Check if the cached vector of entities is nil
13960 or not.
13961
139622008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13963
13964 * emacs.c (main_thread): Conditionalize on
13965 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13966 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13967
13968 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13969 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13970 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13971
139722008-05-14 Kenichi Handa <handa@m17n.org>
13973
13974 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13975 has no corresponding coding system.
13976
139772008-05-14 Jason Rumney <jasonr@gnu.org>
13978
13979 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13980
13981 * w32font.h (w32font_open_internal): Update declaration.
13982
13983 * w32font.c (w32font_open_internal): Change last argument from
13984 w32font_info struct to font object. Fill in font object from
13985 font_entity. Get Outline metrics if possible. Use them to
13986 calculate underline position and thickness. Use xlfd name as name
13987 property. Don't set codepage.
13988 (w32font_open): Pass font_object to w32font_open_internal. Don't
13989 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13990 (w32font_draw): Use s->font.
13991 (clear_cached_metrics): Don't clear non-existent blocks.
13992
13993 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13994 font was not found.
13995 (x_draw_glyph_string): Use underline position and thickness from font.
13996
13997 * w32uniscribe.c (uniscribe_open): Pass font_object to
13998 w32font_open_internal.
13999
140002008-05-14 Kenichi Handa <handa@m17n.org>
14001
14002 These changes are to delete all legacy font-handling codes, and
14003 make Emacs use only font-backends.
14004
14005 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14006 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14007
14008 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14009
14010 * charset.h (Vcharset_non_preferred_head)
14011 (Vcurrent_iso639_language): Extern them.
14012
14013 * charset.c (Vcharset_non_preferred_head): New variable.
14014 (Vcurrent_iso639_language): New variable.
14015 (syms_of_charset): Declare it as a Lisp variable.
14016 (char_charset): Don't check non preferred charsets. As a last
14017 resort, return charset_unicode.
14018 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14019
14020 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14021 conditionals. Don't check enable_font_backend. Delete all codes
14022 used only when USE_FONT_BACKEND is not defined.
14023
14024 * dispextern.h (struct glyph_string): Change type of `font' to
14025 `struct font *'.
14026 (struct glyph_string): New member underline_position and
14027 underline_thickness.
14028 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14029 (struct face): Change type of `font' to `struct font *'. Remove
14030 members `font_name', `font_info_id'.
14031 (per_char_metric, encode_char): Delete externs.
14032 (calc_pixel_width_or_height): Adjust the prototype.
14033
14034 * emacs.c (enable_font_backend): Delete extern.
14035 (main): Don't set enable_font_backend. Don't check the command
14036 line argument "-disable-font-backend".
14037
14038 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14039 (enum font_property_index): New members FONT_DPI_INDEX,
14040 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14041 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14042 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14043 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14044 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14045 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14046 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14047 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14048 (struct font_spec, struct font_entity): New structs.
14049 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14050 (struct font): Many members from old "struct font_info" moved to
14051 here. Members font and entity deleted.
14052 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14053 the new font-related objects.
14054 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14055 (CHECK_FONT_GET_OBJECT): Likewise.
14056 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14057 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14058 (struct font_driver): New members case_sensitive anc check. Type
14059 of the member list and open changed.
14060 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14061 (font_symbolic_width, font_find_object, font_get_spec)
14062 (font_set_lface_from_name): Delete extern.
14063 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14064
14065 * font.c: Include <strings.h>.
14066 (enable_font_backend): Delete it.
14067 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14068 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14069 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14070 (null_string): Delete it.
14071 (null_vector): Make it static.
14072 (font_family_alist): Delete it.
14073 (Qnormal): Extern it.
14074 (QCextra, QClanguage): Delete it.
14075 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14076 (font_make_spec, font_make_entity, font_make_object)
14077 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14078 the string. Callers changed.
14079 (font_pixel_size): Adjusted for the format change of font-related
14080 objects.
14081 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14082 (font_style_to_value, font_style_symbolic): New function.
14083 (build_font_family_alist): Delete it.
14084 (font_registry_charsets): Use Fassoc_string instead of
14085 assq_no_quit.
14086 (font_prop_validate_symbol): Don't return null_string.
14087 (font_prop_validate_style): Adjusted for the change of
14088 style-related values in a font vector.
14089 (font_property_table): Delete entries for QClanguage and
14090 QCantialias, add entries for QCavgwidth.
14091 (get_font_prop_index): Delete the 2nd argument FROM.
14092 (font_prop_validate): Arguments changed.
14093 (font_put_extra): Adjusted for the change of font-related objects.
14094 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14095 (font_parse_fcname, font_unparse_fcname)
14096 (font_prepare_composition): Likewise.
14097 (font_parse_family_registry): Renamed from font_merge_old_spec.
14098 (otf_open): Delete the 1st arg entity.
14099 (font_otf_capability): Adjusted for the above change.
14100 (font_score): New arg alternate_families. Adjusted for the change
14101 of font-related objects.
14102 (font_sort_entites): New arg best_only.
14103 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14104 Delete them.
14105 (font_match_p): Check alternate families.
14106 (font_find_object): Delete it.
14107 (font_check_object): New function.
14108 (font_clear_cache): Adjusted for the change of font-related objects.
14109 (font_delete_unmatched): New arg.
14110 (font_list_entities): Call font_driver->list with a spec that
14111 doesn't specify style-related properties.
14112 (font_matching_entity): Arguments changed. Caller changed.
14113 (font_open_entity): Adjusted for the change of font-related objects.
14114 (font_close_object, font_has_char, font_encode_char)
14115 (font_get_name, font_get_spec): Likewise.
14116 (font_spec_from_name, font_clear_prop, font_update_lface):
14117 New functions.
14118 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14119 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14120 (font_at): Adjusted for the change of font-related objects.
14121 (font_range): New function.
14122 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14123 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14124 (Fcopy_font_spec, Fmerge_font_spec): New function.
14125 (Ffont_family_list): Renamed from list-families.
14126 (Finternal_set_font_style_table): Arguments changed.
14127 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14128 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14129 change of font-related objects.
14130 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14131
14132 * fontset.h (struct font_info): Delete it. Most members go to
14133 struct font.
14134 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14135 (enum FONT_SPEC_INDEX): Delete it.
14136 (font_info, list_fonts_func, load_font_func, query_font_func)
14137 (set_frame_fontset_func, find_ccl_program_func)
14138 (get_font_repertory_func, new_fontset_from_font_name): Delete
14139 externs.
14140 (fontset_from_font_name): Extern it.
14141 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14142 (FONT_INFO_FROM_FACE): Deleted.
14143 (face_for_font): Adjust prototype.
14144
14145 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14146 conditionals. Don't check enable_font_backend. Delete all codes
14147 used only when USE_FONT_BACKEND is not defined.
14148 (get_font_info_func, list_font_func, load_font_func)
14149 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14150 (get_font_repertory_func): Delete them.
14151 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14152 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14153 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14154 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14155 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14156 (fontset_compare_rfontdef): New function.
14157 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14158 rfont-defs by qsort. Adjusted for the change of font-group vector.
14159 (load_font_get_repertory): Deleted.
14160 (fontset_find_font): Use new macros to ref/set elements of
14161 font-def and rfont-def.
14162 (fontset_font): Fix the timing of remembering that no font for C.
14163 (free_face_fontset): Do nothing if the face has no fontset.
14164 (face_suitable_for_char_p): Use new macros to ref/set elements of
14165 rfont-def.
14166 (face_for_char): Likewise. Call face_for_char with font_object.
14167 (fs_load_font): Delete. Delete #pragma surrounding it.
14168 (fs_query_fontset): Use strcasecmp instead of strcmp.
14169 (generate_ascii_font_name): Adjusted for the format change of
14170 font-spec.
14171 (Fset_fontset_font): Likewise. Use new macros to set elements of
14172 font-def.
14173 (Fnew_fontset): Use font_unparse_xlfd to generate
14174 FONTSET_ASCII (fontset).
14175 (new_fontset_from_font_name): Deleted.
14176 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14177 a fontset is already created for the font. FIx updating of
14178 Vfontset_alias_alist.
14179 (fontset_ascii_font): Deleted.
14180 (Ffont_info): Adjusted for the format change of font-spec.
14181 (Finternal_char_font): Likewise.
14182 (Ffontset_info): Likewise.
14183 (syms_of_fontset): Don't check load_font_func.
14184
14185 * fns.c (internal_equal): Handle PREV_FONT.
14186
14187 * frame.h: Delete USE_FONT_BACKEND conditional.
14188
14189 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14190 conditionals. Don't check enable_font_backend. Delete all codes
14191 used only when USE_FONT_BACKEND is not defined.
14192 (x_set_font): Call x_new_font, not x_new_fontset2.
14193 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14194 already set for the frame.
14195
14196 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14197 a font-entity by font_make_entity. Use font_intern_prop instead
14198 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14199 font property. If a font is scalable, set avgwidth property to 0.
14200 Set font-entity property by font_put_extra.
14201 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14202 (ffont_driver): Adjusted for the change of struct font_driver.
14203 (ftfont_spec_pattern): New function.
14204 (ftfont_list): Return a list, not vector.
14205 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14206 (ftfont_list_family): Don't downcase names.
14207 (ftfont_free_entity): Deleted.
14208 (ftfont_open): Return a font-object. Adjusted for the change of
14209 struct font. Get underline_thickness and underline_position from
14210 font property. Don't update dpyinfo->smallest_font_height and
14211 dpyinfo->smallest_char_width.
14212 (ftfont_close): Don't free `struct font'.
14213 (ftfont_has_char): Adjusted for the format change of font-entity.
14214 (ftfont_encode_char, ftfont_text_extents): Likewise.
14215
14216 * ftxfont.c (ftxfont_list): Return a list, not vector.
14217 (ftxfont_open): Return a font-object. Adjusted for the change of
14218 struct font. Get underline_thickness and underline_position from
14219 font property. Don't update dpyinfo->smallest_font_height and
14220 dpyinfo->smallest_char_width.
14221 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14222 (ftxfont_draw): Adjusted for the change of struct font.
14223
14224 * image.c (image_ascent): Don't include "charset.h". Include
14225 "character.h" and "font.h".
14226
14227 * lisp.h (enum pvec_type): New member PREV_FONT.
14228 (Fassoc_string): EXFUN it.
14229
14230 * print.c: Include font.h.
14231 (print_object): Handle font-related objects.
14232
14233 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14234 conditionals. Don't check enable_font_backend. Delete all codes
14235 used only when USE_FONT_BACKEND is not defined.
14236 (handle_auto_composed_prop): Do nothing if it->f is not on a
14237 window system. Check how many following characters can be
14238 displayed by the same font.
14239 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14240 'struct font *'.
14241 (get_char_face_and_encoding): Assign the whole encoding task to
14242 the `encode-char' method of a font driver.
14243 (fill_composite_glyph_string): Adjusted for the change of `struct
14244 face' and `struct glyph_string'.
14245 (fill_glyph_string): Likewise.
14246 (get_per_char_metric): Arguments changed.
14247 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14248 and `struct glyph_string'.
14249 (produce_stretch_glyph, calc_line_height_property)
14250 (x_produce_glyphs): Likewise.
14251
14252 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14253 conditionals. Don't check enable_font_backend. Delete all codes
14254 used only when USE_FONT_BACKEND is not defined. Use
14255 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14256 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14257 (Qp): Extern them.
14258 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14259 Deleted.
14260 (struct font_name): Deleted.
14261 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14262 (compare_fonts_by_sort_order): New function.
14263 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14264 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14265 Deleted.
14266 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14267 compare_fonts_by_sort_order.
14268 (Fx_font_family_list): Call Ffont_family_list.
14269 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14270 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14271 (face_symbolic_slant, face_symbolic_swidth)
14272 (split_font_name_into_vector, build_font_name_from_vector)
14273 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14274 (font_rescale_ratio, split_font_name, build_font_name)
14275 (free_font_names, sort_fonts, x_face_list_fonts)
14276 (face_font_available_p, sorted_font_list, cmp_font_names)
14277 (font_list_1, concat_font_list, font_list, remove_duplicates):
14278 Deleted.
14279 (Fx_list_fonts): Use Ffont_list.
14280 (LFACE_AVGWIDTH): Deleted.
14281 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14282 by FONTP.
14283 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14284 (set_lface_from_font_name): Delete it.
14285 (set_lface_from_font): Renamed from
14286 set_lface_from_font_and_fontset. Caller changed. Don't set
14287 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14288 for face.
14289 (merge_face_vectors): Copy font-spec if necessary.
14290 Clear properties of the font-spec if necessary.
14291 (merge_face_ref): Clear properties of the font-spec if necessary.
14292 (Finternal_set_lisp_face_attribute): Likewise.
14293 (set_font_frame_param): Use font_load_for_lface to load a
14294 font-object, and call Fmodify_frame_parameters with it.
14295 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14296 font name by Ffont_xlfd_name.
14297 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14298 QCslant, and QCwidth.
14299 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14300 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14301 Compare fonts by EQ.
14302 (lookup_non_ascii_face): Deleted.
14303 (face_for_font): The 2nd argument changed.
14304 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14305 Check atomic font properties by case insensitive.
14306 (realize_non_ascii_face): Set face->overstrike correctly.
14307 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14308 (dump_realized_face): Get font name from
14309 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14310
14311 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14312 conditionals. Don't check enable_font_backend. Delete all codes
14313 used only when USE_FONT_BACKEND is not defined.
14314 (xic_create_xfontset): Original code deleted and renamed from
14315 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14316 (x_make_gc): Don't set GCFont in GCs.
14317 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14318 opened by "fixed".
14319 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14320 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14321 get_font_repertory_func.
14322
14323 * xfont.c: Include <stdlib.h> and "ccl.h".
14324 (struct xfont_info): New structure.
14325 (xfont_query_font): Deleted.
14326 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14327 moved from xterm.c.
14328 (xfont_driver): Adjusted for the change of struct font_driver.
14329 (compare_font_names): New function.
14330 (xfont_list_pattern): Sort font names case insensitively. Make
14331 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14332 (xfont_list): Return a list, not vector.
14333 (xfont_match): If the font doesn't have QCname property, generate
14334 a name from the other font properties.
14335 (xfont_open): Return a font-object. Adjusted for the change of
14336 struct font. Get underline_thickness and underline_position from
14337 font property. Don't update dpyinfo->smallest_font_height and
14338 dpyinfo->smallest_char_width.
14339 (xfont_close): Don't free struct font.
14340 (xfont_prepare_face): Adjusted for the change of struct font.
14341 (xfont_done_face): Deleted.
14342 (xfont_has_char): Adjusted for the change of struct font.
14343 (xfont_encode_char, xfont_draw): Likewise.
14344 (xfont_check): New function.
14345
14346 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14347 callback function.
14348 (xftfont_match): Adjusted for the format change of font-entity.
14349 (xftfont_open): Adjusted for the format change of font-entity and
14350 font-object. Adjusted for the change of struct font. Return a
14351 font-object. Don't update dpyinfo->smallest_font_height and
14352 dpyinfo->smallest_char_width.
14353 (xftfont_close): Block input while calling XftFontClose.
14354 (xftfont_prepare_face): Don't block input while calling
14355 xftfont_get_colors. Adjusted for the change of struct font.
14356 (xftfont_shape): Return value of error case fixed.
14357
14358 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14359
14360 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14361 conditionals.
14362 (FONT_WIDTH): Return (f)->max_width.
14363 (struct x_display_info): Delete member `font'.
14364 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14365 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14366 (struct x_output): Change type of `font' to `struct font *'.
14367
14368 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14369 conditionals. Don't check enable_font_backend. Delete all codes
14370 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14371 (x_per_char_metric, x_encode_char): Deleted.
14372 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14373 (x_compute_glyph_string_overhangs): Adjusted for the change of
14374 `struct face'.
14375 (x_draw_glyph_string_foreground)
14376 (x_draw_composite_glyph_string_foreground): Likewise.
14377 (x_draw_glyph_string): Likewise. Use font->underline_position and
14378 font->underline_thickness.
14379 (x_new_font): Renamed from x_new_fontset2.
14380 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14381 (x_check_font): Call `check' method of a font driver.
14382 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14383 (x_query_font, x_get_font_repertory): Deleted.
14384 (x_find_ccl_program): Renamed and moved to xfont.c.
14385 (x_redisplay_interface): Adjusted for the change of `struct
14386 redisplay_interface'.
14387
14388 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14389 conditionals. Don't check enable_font_backend. Delete all codes
14390 used only when USE_FONT_BACKEND is not defined. Surround non-used
14391 code by "#ifdef OLD_FONT" and "endif".
14392 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14393
14394 * w32font.h (struct w32font_info): New member.
14395 (FONT_COMPAT): New macro.
14396 (w32font_open_internal): Prototype adjusted.
14397
14398 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14399 OLD_FONT" and "endif".
14400
14401 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14402 conditionals. Don't check enable_font_backend. Delete all codes
14403 used only when USE_FONT_BACKEND is not defined.
14404 (w32font_open): Return a font-object. Make a font-object by
14405 font_make_object. Adjusted for the change of struct w32font_info.
14406 (w32font_close): Don't free struct font. Adjusted for the change
14407 of struct w32font_info.
14408 (w32font_encode_char, w32font_text_extents, w32font_draw):
14409 Adjusted for the change of struct w32font_info.
14410 (w32font_draw): Likewise.
14411 (w32font_list_internal): Return a list, not vector.
14412 (w32font_open_internal): Change the 4th arg to font-object.
14413 Adjusted for the change of struct w32font_info and font-object format.
14414 (add_font_name_to_list): Don't downcase names.
14415 (w32_enumfont_pattern_entity): Make a font-entity by
14416 font_make_entity. Adjusted for the format change of font-entity.
14417 Use FONT_SET_STYLE to set a style-related font property. If a
14418 font is scalable, set avgwidth property to 0. Set font-entity
14419 property by font_put_extra.
14420 (font_matches_spec): Adjusted for the format change of font-entity.
14421 (w32_weight_table, w32_decode_weight): New variables.
14422 (w32_encode_weight): New function.
14423 (fill_in_logfont): Adjusted for the format change of font-spec.
14424 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14425 weight value.
14426 (w32font_driver): Adjusted for the change of struct font_driver.
14427
14428 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14429 conditionals. Don't check enable_font_backend. Surround non-used
14430 code by "#ifdef OLD_FONT" and "endif".
14431 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14432 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14433
14434 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14435 conditionals. Don't check enable_font_backend. Delete all codes
14436 used only when USE_FONT_BACKEND is not defined. Surround non-used
14437 code by "#ifdef OLD_FONT" and "endif".
14438
14439 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14440 (uniscribe_open): Return value changed to font-object.
14441 Adjusted for the format change of font-object.
14442 (uniscribe_otf_capability): Adjusted for the change of struct font.
14443 (add_opentype_font_name_to_list): Don't downcase names.
14444 (uniscribe_font_driver): Adjusted for the change of struct
14445 font_driver.
14446
144472008-05-13 Chong Yidong <cyd@stupidchicken.com>
14448
14449 * dispnew.c (update_frame_1): Check if tty output is still valid
14450 before flushing it.
14451
144522008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14453
14454 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14455 to Gtk+ menus.
14456
144572008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14458
14459 * dired.c (file_name_completion): Tweak the code so as to always do it
14460 in a single pass. Tighten the scope of some variables.
14461
14462 * dired.c (Qdefault_directory): New var.
14463 (file_name_completion): Use it instead of Fexpand_file_name.
14464 (syms_of_dired): Initialize it.
14465
144662008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14467
14468 * fileio.c (double_dollars): Remove dead code.
14469
144702008-05-10 Eli Zaretskii <eliz@gnu.org>
14471
14472 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14473 Mention w32-get-true-file-attributes in doc string.
14474
14475 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14476
144772008-05-09 Glenn Morris <rgm@gnu.org>
14478
14479 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14480 2008-04-23.
14481
144822008-05-09 Eli Zaretskii <eliz@gnu.org>
14483
14484 Support for reporting owner and group of each file on MS-Windows:
14485 * dired.c (stat_uname, stat_gname): New functions, with special
14486 implementation for w32.
14487 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14488
14489 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14490 (dflt_group_name): New static variable.
14491 (dflt_group): Rename from the_group.
14492 (init_user_info): Init dflt_group fields. Get user's group name
14493 from LookupAccountSid.
14494 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14495 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14496 New initialization states.
14497 (globals_of_w32): Initialize them to zero. Initialize the default
14498 group name to "None".
14499 (GetFileSecurity_Name): New global var, the name of the function
14500 to call for GetFileSecurity.
14501 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14502 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14503 (get_file_security, get_security_descriptor_owner)
14504 (get_security_descriptor_group, is_valid_sid)
14505 (get_file_security_desc, get_rid, get_name_and_id)
14506 (get_file_owner_and_group): New functions.
14507 (stat): Use get_file_security_desc and get_file_owner_and_group to
14508 report the owner and primary group of each file. Don't ignore the
14509 high 32 bits of file's size, now that st_size is 64-bit wide.
14510 Fix test when to get true file attributes.
14511 (init_user_info): Use get_rid instead of equivalent inline code.
14512 (fstat): Don't ignore the high 32 bits of file's size.
14513
145142008-05-09 Chong Yidong <cyd@stupidchicken.com>
14515
14516 * image.c (png_load): Use correct bit-depth for setting background
14517 color.
14518
145192008-05-08 Eli Zaretskii <eliz@gnu.org>
14520
14521 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14522 epa-hook.elc.
14523
145242008-05-08 Juanma Barranquero <lekktu@gmail.com>
14525
14526 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14527
145282008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14529
14530 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14531 because the original parameters are in pure storage now.
14532 (mac_window): Remove unused params. Update callers.
14533
145342008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14535
14536 * lread.c (substitute_object_recurse): Use lower-level primitives.
14537 Don't signal errors when traversing sub-char-tables.
14538 Don't loop over all the possible characters when traversing char-tables.
14539
14540 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14541 just like we do in print.c.
14542
145432008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14544
14545 * minibuf.c (Ftry_completion): Remove code left over from when we used
14546 scmp instead of Fcompare_strings.
14547
145482008-05-04 Juanma Barranquero <lekktu@gmail.com>
14549
14550 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14551
145522008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14553
14554 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14555 Create bitmap context in native byte order.
14556
14557 * macterm.c (XDrawLine)
14558 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14559 context in native byte order.
14560
145612008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14562
14563 * config.in: Regenerate.
14564
14565 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14566 New definitions for Image I/O support.
14567 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14568 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14569 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14570 (mac_data_provider_release_data, image_load_image_io)
14571 [USE_MAC_IMAGE_IO]: New functions.
14572 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14573 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14574 (init_image_func_pointer) [MAC_OSX]: Remove function.
14575 (image_load_quartz2d) [MAC_OSX]: Check availability of
14576 CGImageCreateWithPNGDataProvider at compile time.
14577 Use lowercase `false' for boolean constant.
14578 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14579 Use image_load_image_io.
14580 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14581 Don't check MyCGImageCreateWithPNGDataProvider.
14582 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14583 Don't call init_image_func_pointer.
14584
14585 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14586
14587 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14588 Make variable non-static.
14589 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14590 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14591
14592 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14593 (RED_FROM_ULONG): Mask off higher bits.
14594 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14595
14596 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14597 Include AvailabilityMacros.h.
14598 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14599 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14600
146012008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14602
14603 * chartab.c (Fset_char_table_range): If range is t, really set all
14604 chars to that value.
14605
146062008-05-03 Eli Zaretskii <eliz@gnu.org>
14607
14608 * dired.c (Ffile_attributes): Don't allow the device number become
14609 negative.
14610
146112008-05-02 Daiki Ueno <ueno@unixuser.org>
14612
14613 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14614
146152008-05-02 Juri Linkov <juri@jurta.org>
14616
14617 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14618 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14619 DEFAULT argument as a list of default values in docstrings.
14620
146212008-05-01 Chong Yidong <cyd@stupidchicken.com>
14622
14623 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14624
146252008-05-01 Martin Rudalics <rudalics@gmx.at>
14626
14627 * dispnew.c (change_frame_size_1): Preserve small windows when
14628 shrinking frames by calling set_window_height|width with third
14629 arg 2.
14630
14631 * window.h (struct window): Replace field too_small_ok by field
14632 resize_proportionally.
14633
14634 * window.c (make_window): Initialize resize_proportionally.
14635 (enlarge_window): Temporarily set resize_proportionally to make
14636 sure that shrink_windows does scale the window proportionally.
14637 (shrink_windows): When window has resize_proportionally set try
14638 to shrink it proportionally by stealing from other windows.
14639 (struct saved_window, Fset_window_configuration)
14640 (compare_window_configurations): Handle resize_proportionally.
14641 (WINDOW_TOTAL_SIZE): New macro.
14642 (window_min_size, shrink_windows, size_window): Use it.
14643 (check_min_window_sizes): Remove. Invalid values of
14644 window-min-height|width are handled by window_min_size_2 now.
14645 (size_window, Fsplit_window, enlarge_window)
14646 (adjust_window_trailing_edge, grow_mini_window): Don't call
14647 check_min_window_sizes.
14648 (window_min_size_2, window_min_size_1, window_min_size):
14649 New argument safe_p for retrieving "safe" minimum sizes.
14650 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14651 (adjust_window_trailing_edge, grow_mini_window):
14652 Adjust arguments of window_min_size... functions.
14653 (shrink_windows): Argument min_size removed. New argument
14654 safe_p allows shrinking windows to their safe minimum sizes.
14655 Calculate minimum size and decide whether a window shall be
14656 deleted for each window individually.
14657 (size_window): When nodelete_p equals 2, tell shrink_windows to
14658 delete windows only if their new minimum size is no more safe.
14659 (shrink_window_lowest_first): Call window_min_size_1 to make
14660 sure to preserve modeline of bottom-most window when resizing
14661 the minibuffer.
14662 (Fset_window_configuration, Fcurrent_window_configuration)
14663 (compare_window_configurations): Do not handle
14664 window-min-height|width any more.
14665 (syms_of_window): Clarify window-min-height|width doc-strings.
14666
146672008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14668
14669 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14670 some more. Copy some of the code from Ftry_completions.
14671 Remove special case code that dates back to initial revision when the
14672 slash was only added when necessary and that can't trigger nowadays.
14673
146742008-04-27 Kenichi Handa <handa@m17n.org>
14675
14676 * font.c (font_prop_validate): Signal `error' instead of `font'.
14677
146782008-04-29 Jason Rumney <jasonr@gnu.org>
14679
14680 * w32fns.c (Fw32_battery_status): New defun.
14681 (syms_of_w32fns): Defsubr it.
14682
146832008-04-28 Andreas Schwab <schwab@suse.de>
14684
14685 * dired.c (file_name_completion): Fix another mixing of encoded
14686 and decoded names.
14687
146882008-04-28 Juanma Barranquero <lekktu@gmail.com>
14689
14690 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14691
146922008-04-27 Juanma Barranquero <lekktu@gmail.com>
14693
14694 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14695
146962008-04-27 Andreas Schwab <schwab@suse.de>
14697
14698 * dired.c (file_name_completion): Fix inappropriate mixing of
14699 encoded and decoded names.
14700
14701 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14702
14703 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14704
147052008-04-26 Eli Zaretskii <eliz@gnu.org>
14706
14707 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14708 2008-03-31, it's not needed anymore with `struct stat' definition
14709 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14710 for the same reasons.
14711
147122008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14713
14714 * m/sparc.h: Additional redefinitions for GNU/Linux.
14715
147162008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14717
14718 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14719 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14720 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14721 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14722 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14723 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14724 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14725 Likewise.
14726
14727 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14728 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14729 (mac_ax_number_of_characters): Add externs.
14730 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14731 [USE_MAC_TSM]: Likewise.
14732 (mac_handle_text_input_event) [MAC_OSX]:
14733 Handle kEventTextInputOffsetToPos for no active input area case.
14734 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14735 (mac_handle_document_access_event)
14736 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14737 (install_application_handler) [MAC_OSX]: Register handlers for
14738 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14739 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14740 Register mac_handle_document_access_event.
14741
14742 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14743 Make functions non-static.
14744
147452008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14746
14747 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14748 (read_file_name_completion_ignore_case, insert_default_directory)
14749 (Qdefault_directory): Move to minibuffer.el.
14750 (Fread_file_name): Call the new `read-file-name' instead.
14751
147522008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14753
14754 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14755 Make function non-static.
14756 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14757 Remove function.
14758 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14759 Move to mactoolbox.c.
14760 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14761
14762 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14763 (mac_rect_make): New macro.
14764
14765 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14766 instead of float.
14767 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14768 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14769 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14770 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14771 CGRectMake.
14772 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14773 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14774 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14775 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14776 instead of WindowRef in argument type.
14777 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14778 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14779 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14780 instead of DISPLAY. All uses changed.
14781 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14782 (x_calc_absolute_position): Simplify so as not to use
14783 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14784
14785 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14786 instead of WindowRef in argument type.
14787 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14788 [TARGET_API_MAC_CARBON]: Remove externs.
14789 (create_apple_event, mac_event_parameters_to_lisp)
14790 [TARGET_API_MAC_CARBON]: Add externs.
14791
14792 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14793 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14794 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14795 is clicked.
14796 (x_activate_menubar): Remove extern for saved_menu_event_location.
14797 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14798 Move from mac.c.
14799
148002008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14801
14802 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14803 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14804
148052008-04-23 Jason Rumney <jasonr@gnu.org>
14806
14807 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14808 attributes only for local files.
14809
14810 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14811 default to Qlocal.
14812
148132008-04-22 Juri Linkov <juri@jurta.org>
14814
14815 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14816 read-buffer-to-switch instead of using the letter "B".
14817
148182008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14819
14820 * fileio.c (Qdefault_directory): New variable.
14821 (Fread_file_name): Use it to pass `dir' to the completion functions.
14822
148232008-04-20 Chong Yidong <cyd@stupidchicken.com>
14824
14825 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14826
148272008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14828
14829 * keyboard.c (Vpre_help_message): Remove.
14830 (show_help_echo): Remove default C code.
14831
14832 * dired.c (directory_files_internal, file_name_completion):
14833 Only call ENCODE_FILE if the string is indeed decoded.
14834
148352008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14836
14837 * Makefile.in (TOOLKIT_DEFINES): Remove.
14838 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14839
148402008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14841
14842 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14843 (mactoolbox.o): New target.
14844
14845 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14846 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14847
14848 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14849 Use mac_set_frame_window_background instead of XSetWindowBackground.
14850 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14851 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14852 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14853 instead of SetWindowTitleWithCFString.
14854 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14855 Move function to mactoolbox.c.
14856 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14857 Use mac_set_window_modified instead of SetWindowModified.
14858 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14859 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14860 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14861 FrontNonFloatingWindow. Use mac_activate_window instead of
14862 ActivateWindow. Use mac_active_non_floating_window instead of
14863 ActiveNonFloatingWindow.
14864 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14865 Use mac_show_hourglass and mac_hide_hourglass.
14866 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14867 instead of GetGlobalMouse.
14868 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14869 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14870 Use mac_bring_window_to_front instead of BringToFront.
14871 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14872 mactoolbox.c.
14873 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14874 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14875 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14876 mactoolbox.c.
14877
14878 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14879 (XtPointer): Move typedef from macmenu.c.
14880 (enum button_type): Move enum from macmenu.c.
14881 (widget_value): Move typedef from macmenu.c.
14882 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14883 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14884 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14885 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14886 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14887 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14888 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14889 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14890 (Selection): Move typedef from macselect.c.
14891 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14892 macterm.c.
14893 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14894 (mac_is_window_collapsed, mac_bring_window_to_front)
14895 (mac_send_window_behind, mac_hide_window, mac_show_window)
14896 (mac_collapse_window, mac_front_non_floating_window)
14897 (mac_active_non_floating_window, mac_activate_window)
14898 (mac_move_window_structure, mac_move_window, mac_size_window)
14899 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14900
14901 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14902 (enum mac_menu_kind): Move enum to mactoolbox.c.
14903 (min_menu_id): Move variable to mactoolbox.c.
14904 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14905 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14906 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14907 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14908 [TARGET_API_MAC_CARBON]: Likewise.
14909 (XtPointer): Move typedef to macgui.h.
14910 (enum button_type): Move enum to macgui.h.
14911 (widget_value): Move typedef to macgui.h.
14912 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14913 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14914 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14915 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14916 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14917 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14918 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14919 (popup_activated_flag): Make variable non-static.
14920 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14921 (add_menu_item, fill_menu, dispose_menus):
14922 Move functions to mactoolbox.c.
14923 (restore_show_help_function, menu_target_item_handler)
14924 (install_menu_target_item_handler, mac_handle_dialog_event)
14925 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14926 [TARGET_API_MAC_CARBON]: Likewise.
14927 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14928 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14929 (find_and_call_menu_selection, name_is_separator): Make function
14930 non-static.
14931 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14932 to mactoolbox.c.
14933 (set_frame_menubar): Don't call install_menu_quit_handler.
14934 (menu_item_selection): New variable.
14935 (mac_menu_show): Use create_and_show_popup_menu.
14936 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14937 selection but set variable menu_item_selection. All uses changed.
14938 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14939 Call install_menu_quit_handler. Move to mactoolbox.c.
14940
14941 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14942 (Selection): Move typedef to macgui.h.
14943 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14944 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14945 Make variables non-static.
14946 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14947 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14948 Make functions non-static.
14949 (Vmac_service_selection) [MAC_OSX]: Likewise.
14950 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14951 (mac_valid_selection_target_p, mac_clear_selection)
14952 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14953 (mac_put_selection_value, mac_selection_has_target_p)
14954 (mac_get_selection_value, mac_get_selection_target_list)
14955 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14956 Move functions to mactoolbox.c.
14957 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14958 Likewise.
14959 (copy_scrap_flavor_data, mac_handle_service_event)
14960 (install_service_handler) [MAC_OSX]: Likewise.
14961 (syms_of_macselect) <Vmac_dnd_known_types>:
14962 Use mac_dnd_default_known_types.
14963
14964 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14965 Move to mactoolbox.c.
14966 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14967 (Fx_selection_owner_p): Add EXFUN.
14968 (install_window_handler, remove_window_handler, XSetWindowBackground):
14969 Remove externs.
14970 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14971 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14972 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14973 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14974 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14975 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14976 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14977 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14978 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14979 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14980 (mac_valid_selection_target_p, mac_clear_selection)
14981 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14982 (mac_put_selection_value, mac_selection_has_target_p)
14983 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14984 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14985 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14986 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14987 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14988 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14989 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14990 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14991 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14992
14993 * mactoolbox.c: New file.
14994
149952008-04-18 Jason Rumney <jasonr@gnu.org>
14996
14997 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14998
149992008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15000
15001 * character.c (Fmultibyte_char_to_unibyte):
15002 Return latin1 chars unchanged.
15003
15004 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15005 relocated if it points to `name'.
15006
150072008-04-17 Kenichi Handa <handa@m17n.org>
15008
15009 * data.c (Faset): Allow setting a multibyte character in an
15010 ASCII-only unibyte string.
15011
15012 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15013
150142008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15015
15016 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15017 done in config.h.
15018
150192008-04-16 Juanma Barranquero <lekktu@gmail.com>
15020
15021 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15022 (Fchar_direction): Add usage in the docstring.
15023
150242008-04-15 Chong Yidong <cyd@stupidchicken.com>
15025
15026 * keyboard.c (read_key_sequence): Remove always-true checks.
15027
150282008-04-14 Jason Rumney <jasonr@gnu.org>
15029
15030 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15031 compatibility struct, for better underline positioning.
15032
150332008-04-13 David Hansen <david.hansen@gmx.net>
15034
15035 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15036 string.
15037
150382008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15039
15040 * m/hp800.h (XUINT, XSET): Remove.
15041
150422008-04-12 Juanma Barranquero <lekktu@gmail.com>
15043
15044 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15045 previous change.
15046
150472008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15048
15049 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15050 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15051
150522008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15053
15054 * keymap.h (map_keymap_canonical): Declare.
15055 * xmenu.c (single_keymap_panes): Use it.
15056
150572008-04-11 Glenn Morris <rgm@gnu.org>
15058
15059 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15060 set the target's value to that of the alias.
15061
150622008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15063
15064 * term.c (set_tty_color_mode): Left over typo.
15065
150662008-04-10 Michael Albinus <michael.albinus@gmx.de>
15067
15068 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15069 only after check for file name handler functions. Signal, when
15070 native functionality is not supported.
15071 (syms_of_fileio): Declare it unconditionally.
15072
150732008-04-10 Jason Rumney <jasonr@gnu.org>
15074
15075 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15076 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15077
15078 * w32.c (logon_network_drive): Also logon to remote drives that
15079 are mapped to drive letters.
15080
150812008-04-10 Glenn Morris <rgm@gnu.org>
15082
15083 * xdisp.c (truncate-partial-width-windows): Doc fix.
15084
150852008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15086
15087 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15088 Move functions to minibuffer.el.
15089 (syms_of_fileio): Don't declare them.
15090
150912008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15092
15093 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15094 (syms_of_minibuf): Remove its initialization.
15095
15096 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15097
150982008-04-09 Juanma Barranquero <lekktu@gmail.com>
15099
15100 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15101
151022008-04-09 Jason Rumney <jasonr@gnu.org>
15103
15104 * makefile.w32-in (distclean): Delete makefile too.
15105 (maintainer-clean): New target.
15106
15107 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15108
15109 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15110 for new font backend and composite cases.
15111
151122008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15113
15114 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15115 Most of the code moved to run_timers.
15116 (do_pending_atimers): Call run_timers.
15117 (run_timers): New function.
15118
15119 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15120 run atimers.
15121
15122 * process.c (wait_reading_process_output): The same as above.
15123
151242008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15125
15126 * minibuf.c (last_exact_completion): Remove variable.
15127 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15128 (complete_and_exit_1, complete_and_exit_2)
15129 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15130 (Fdisplay_completion_list, display_completion_list_1)
15131 (Fminibuffer_completion_help, Fself_insert_and_exit)
15132 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15133 minibuffer.el.
15134 (syms_of_minibuf): Remove corresponding initializations.
15135
15136 * keyboard.c (Qdeactivate_mark): New var.
15137 (command_loop_1): Use it to call `deactivate-mark'.
15138 (syms_of_keyboard): Initialize it.
15139
15140 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15141 to another frame.
15142 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15143 Don't call set_tty_color_mode.
15144 (store_frame_param): Reset previous_frame rather than call
15145 set_tty_color_mode.
15146 * term.c (set_tty_color_mode): Rewrite.
15147 * dispextern.h (set_tty_color_mode): New type.
15148 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15149
151502008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15151
15152 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15153 for generic chars, which do not exist any more in emacs-unicode.
15154
151552008-04-08 Michael Albinus <michael.albinus@gmx.de>
15156
15157 * coding.c (detect_coding_emacs_mule)
15158 (Ffind_operation_coding_system): Fix typo.
15159
151602008-04-08 Jason Rumney <jasonr@gnu.org>
15161
15162 * w32uniscribe.c (SNAME): Extract only symbol name.
15163
15164 * w32font.h (struct w32_metric_cache): New struct.
15165 (w32font_info): Use it.
15166 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15167 (CACHE_BLOCKSIZE): New constants.
15168
15169 * w32font.c (Qja, Qko, Qzh): New symbols.
15170 (syms_of_w32font): Initialise them.
15171 (font_matches_spec): Use them to filter by language.
15172 (recompute_cached_metrics): Remove function.
15173 (compute_metrics, clear_cached_metrics): New functions.
15174 (w32font_encode_char): Use them to manage metric cache.
15175 (w32font_text_extents): Cache metrics for all glyphs on demand.
15176 Delay converting glyph indices to WORD until needed.
15177 (w32font_open_internal): Initialize metric cache to empty.
15178 (registry_to_w32_charset): Charset should always be a symbol.
15179 (fill_in_logfont, list_all_matching_fonts): Family should
15180 always be a symbol.
15181
151822008-04-06 Jason Rumney <jasonr@gnu.org>
15183
15184 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15185 Give up if glyph indices not supported. Use uniscribe obtained
15186 ABC widths for individual metrics. Map glyph clusters back to
15187 characters using fClusterStart flag. Return number of glyphs
15188 produced, not chars processed.
15189 (uniscribe_shape): Map char at FROM to current glyph.
15190
151912008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15192
15193 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15194 Use SetMenuItemHierarchicalMenu.
15195
151962008-04-05 Jason Rumney <jasonr@gnu.org>
15197
15198 * image.c (pbm_load): Allow color values up to 65535.
15199 Throw an error if max_color_idx is outside the supported range.
15200 Report an error when image size is invalid.
15201 Read two bytes at a time when raw images have max_color_idx above 255.
15202
aac0c6e3
MR
152032008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15204
15205 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15206 append "CCL: Quitted" when the CCL program is quitted.
15207 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15208
15209 * ccl.h (struct ccl_program): New member quit_silently.
15210
152112008-04-05 Chong Yidong <cyd@stupidchicken.com>
15212
15213 * search.c (compile_pattern_1): Treat non-nil and non-string of
15214 search-spaces-regexp as nil.
15215
15216 * minibuf.c (Fassoc_string): Tweak docstring.
15217
152182008-04-05 Eli Zaretskii <eliz@gnu.org>
15219
15220 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15221 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15222 2008-03-14 to force inode be positive.
15223
15224 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15225 _S_* ones, since we now use our own sys/stat.h.
15226 (stat, fstat): Don't mangle the inode number.
15227 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15228
152292008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15230
15231 * frame.h (struct frame): Give one more bit to `visible' since we use
15232 values larger than 1 to indicate obscured frames on ttys.
15233
15234 * keymap.c (Qkeymap_canonicalize): New var.
15235 (Fmap_keymap_internal): New fun.
15236 (describe_map): Use keymap-canonicalize.
15237
15238 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15239 (Fundo_boundary): Set them.
15240 (syms_of_undo): Initialize them.
15241 (record_point): Use them instead of last_point_position*.
15242 (last_undo_buffer): Change type.
15243
152442008-04-04 Jason Rumney <jasonr@gnu.org>
15245
15246 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15247 (recompute_cached_metrics): Don't set ascent and descent per char.
15248
15249 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15250 (uniscribe_check_otf): Add GC protection before consing.
15251 Rearrange loop for counting features.
15252
152532008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15254
15255 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15256 buffer with byte-size of source buffer.
15257
152582008-04-03 Chong Yidong <cyd@stupidchicken.com>
15259
15260 * callint.c (Fcall_interactively): Handle temporary region even
15261 when shift-select-mode is off.
15262
152632008-04-03 Jason Rumney <jasonr@gnu.org>
15264
15265 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15266
152672008-04-03 Kenichi Handa <handa@m17n.org>
15268
15269 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15270 (CATEGORY_MASK_UTF_16): Likewise.
15271 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15272 binary file.
15273 (detect_coding): Add null-byte detection for a binary file.
15274 (detect_coding_system): Likewise.
15275
152762008-04-03 Jason Rumney <jasonr@gnu.org>
15277
15278 * w32uniscribe.c: New file.
15279
15280 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15281
15282 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15283
15284 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15285 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15286 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15287 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15288 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15289 (Qphonetic): New symbols.
15290 (syms_of_w32font): Initialize them.
15291 (font_supported_scripts): Use them.
15292 (w32font_list_family): List all charsets.
15293 (w32font_text_extents, recompute_cached_metrics): Fix metric
15294 calculations.
15295 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15296 Give opentype fonts their own format.
15297 (font_matches_spec): New arguments backend and logfont.
15298 Handle :otf spec for uniscribe backend.
15299 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15300 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15301
15302 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15303 font backend.
15304 (globals_of_w32fns): Initialize uniscribe font backend.
15305
15306 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15307 dependencies.
15308 (w32uniscribe.$(O)): New file to build.
15309 (FONT_OBJ): Include w32uniscribe.$(O).
15310 (LIBS): Add uniscribe libraries.
15311
15312 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15313
153142008-04-02 Chong Yidong <cyd@stupidchicken.com>
15315
15316 * callint.c (Vshift_select_mode): New var.
15317 (Finteractive): Document new ^ spec.
15318 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15319 is present.
15320
15321 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15322 (command_loop_1): Avoid running the direct display versions of
15323 forward-char and backward-char if shift-selection may occur.
15324 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15325 shift-translation takes place.
15326
15327 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15328 avoid clobbering by define-minor-mode.
15329
15330 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15331 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15332
15333 * syntax.c (Fforward_word): Add ^ interactive spec.
15334
15335 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15336 (Fscroll_right): Add ^ interactive spec.
15337
153382008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15339
15340 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15341
15342 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15343
15344 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15345
153462008-03-31 Juri Linkov <juri@jurta.org>
15347
15348 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15349
153502008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15351
15352 * gtkutil.c (xg_set_geometry): Fix indentation.
15353 (xg_resize_outer_widget): Remove.
15354 (x_wm_size_hint_off): Fix indentation.
15355 (xg_frame_set_char_size): Call flush_and_sync after
15356 gtk_window_resize.
15357 (x_wm_set_size_hint): Pass NULL as geometry window to
15358 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15359 Add menu bar and tool bar height to base height.
15360 (xg_update_frame_menubar, free_frame_menubar)
15361 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15362 (update_frame_tool_bar, free_frame_tool_bar):
15363 Change xg_resize_outer_widget to xg_frame_set_char_size.
15364
153652008-03-30 Michael Albinus <michael.albinus@gmx.de>
15366
15367 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15368 (Fdbus_call_method): New parameter TIMEOUT.
15369 (dbus-send-signal): Optimize UNGCPRO call.
15370
153712008-03-29 Juri Linkov <juri@jurta.org>
15372
15373 * window.c (Fdisplay_buffer): Move call to
15374 Vsplit_window_preferred_function out of conditions that check
15375 if window is eligible for vertical splitting.
15376 When Vsplit_window_preferred_function is non-nil, call it and use
15377 its non-nil return value as window. Otherwise, continue doing
15378 vertical splitting using Fsplit_window with arg horflag=nil.
15379 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15380 default value from `split-window' to nil.
15381
153822008-03-29 Juri Linkov <juri@jurta.org>
15383
15384 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15385 for interactive code letters 'b' and 'B'.
15386
153872008-03-29 Eli Zaretskii <eliz@gnu.org>
15388
15389 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15390 multibyte string.
15391
153922008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15393
15394 * keyboard.c (pending_funcalls): New var.
15395 (timer_check): Run it.
15396 (syms_of_keyboard): Initialize it.
15397 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15398 (Vdelete_terminal_functions): New vars.
15399 (syms_of_terminal): Initialize them.
15400 (Fdelete_terminal): Run delete-terminal-functions.
15401 * xdisp.c (safe_eval): Rewrite.
15402 (safe_call2): New fun.
15403 * frame.c (Qdelete_frame_functions): New var.
15404 (syms_of_frame): Initialize it.
15405 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15406 * lisp.h (safe_call2, pending_funcalls): Declare.
15407
154082008-03-28 Andreas Schwab <schwab@suse.de>
15409
15410 * indent.c (Fmove_to_column): Move declaration before statements.
15411
154122008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15413
15414 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15415 (struct frame): Use bit fields for boolean vars.
15416
15417 * process.c (server_accept_connection): Simplify naming.
15418 (emacs_get_tty_pgrp): Use SDATA.
15419
15420 * coding.c (decode_coding_object): Fix last change.
15421
154222008-03-27 Jason Rumney <jasonr@gnu.org>
15423
15424 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15425
154262008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15427
15428 * charset.c (Fdefine_charset_internal): Change the way of
15429 registering charsets in Vcharset_order_list.
15430 (syms_of_charset): Make the charset `eight-bit' supplementary.
15431
154322008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15433
15434 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15435 operations, to avoid having the difference between pointers
15436 overflow.
15437
154382008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15439
15440 * indent.c (check_display_width): New fun.
15441 (scan_for_column): Use it.
15442
15443 * data.c (syms_of_data): Mark most-positive-fixnum and
15444 most-negative-fixnum as constants.
15445
15446 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15447
15448 * indent.c (scan_for_column): Extract from current_column_1.
15449 Merge with the same code from Fmove_to_column.
15450 (current_column_1, Fmove_to_column): Use it.
15451
154522008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15453
15454 * keymap.c (map_keymap_internal): New fun.
15455 (map_keymap): Use it.
15456 (Fmap_keymap_internal): New fun.
15457 (Fmap_keymap): Remove left-out test from before make_save_value.
15458
15459 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15460
15461 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15462 Use XCAR/XCDR.
15463
15464 * process.h (struct Lisp_Process): Remove filter_multibyte.
15465 * process.c (QCfilter_multibyte): Remove.
15466 (setup_process_coding_systems): Don't use filter_multibyte.
15467 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15468 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15469 (Fset_process_filter_multibyte): Change the coding-system to
15470 approximate the previous behavior.
15471 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15472 coding-system.
15473
15474 * coding.c (decode_coding_object): When not decoding into a buffer,
15475 obey the coding system's preference of (uni|multi)byte.
15476
154772008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15478
15479 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15480 every char is changed and has a different byte-length.
15481 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15482 Fix int -> EMACS_INT.
15483
154842008-03-23 David Hansen <david.hansen@gmx.net>
15485
15486 * dbusbind.c (xd_read_message): Remove extra copying of message
15487 strings. Check for NULL `interface' or `member'.
15488
154892008-03-22 Eli Zaretskii <eliz@gnu.org>
15490
15491 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15492 cFileName a file name that includes `?' characters, use the 8+3
15493 alias in cAlternateFileName instead.
15494
154952008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15496
15497 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15498
154992008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15500
15501 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15502 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15503 work on current_buffer only instead (that was already the case
15504 for some of the code anyway).
15505 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15506 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15507 (SET_PT, SET_PT_BOTH): Adjust.
15508 * intervals.h (set_point, temp_set_point, set_point_both)
15509 (temp_set_point_both): Remove redundant declarations.
15510
155112008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15512
15513 * fileio.c (Finsert_file_contents):
15514 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15515 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15516 when buffer != current_buffer anyway.
15517
155182008-03-20 Andreas Schwab <schwab@suse.de>
15519
15520 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15521 as default.
15522
155232008-03-19 Jason Rumney <jasonr@gnu.org>
15524
15525 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15526 (syms_of_w32fns): Initialize them.
15527 (HOURGLASS_ID): New constant.
15528 (x_window_to_frame): Don't check hourglass_window.
15529 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15530 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15531 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15532 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15533 Only change the cursor if hourglass is not active.
15534 (Fx_create_frame): Initialize frame's current_cursor.
15535 (hourglass_atimer): Remove.
15536 (hourglass_started): New function.
15537 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15538 (show_hourglass): Adapt to w32, changing argument to frame.
15539
15540 * w32term.h (struct w32_output): Remove hourglass_window.
15541 Add current_cursor.
15542
15543 * eval.c (call_debugger, Fsignal):
15544 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15545 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15546 (Fexecute_extended_command, cancel_hourglass_unwind):
15547 * minibuf.c (read_minibuf):
15548 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15549
155502008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15551
15552 * window.c (run_funs): New fun.
15553 (run_window_configuration_change_hook): Use it to run the buffer-local
15554 and the global part of the hook.
15555
15556 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15557 (unwind_format_mode_line): Restore selected window.
15558 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15559
155602008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15561
15562 * editfns.c (Fchar_equal): Check they are valid characters.
15563
15564 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15565
155662008-03-17 Andreas Schwab <schwab@suse.de>
15567
15568 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15569 against a charset.
15570
15571 * lisp.h (Fbuffer_list): Declare.
15572
155732008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15574
aac0c6e3
MR
15575 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15576 handlebox_widget is != 0.
15577
155782008-03-16 Juri Linkov <juri@jurta.org>
15579
15580 * callint.c (Fcall_interactively): For interactive code letters
15581 'b' and 'B' put the buffer list into the list of default "future"
15582 values of the minibuffer.
15583
155842008-03-16 Andreas Schwab <schwab@suse.de>
15585
15586 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15587 modifiers.
15588
15589 * regex.c (re_match_2_internal): Correct matching of a charset
15590 against latin-1 characters.
15591
155922008-03-16 Kenichi Handa <handa@m17n.org>
15593
15594 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15595 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15596 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15597 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15598 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15599 CHAR_STRING_ADVANCE.
15600 (produce_chars): Fix for the case that the source and the
15601 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15602 instead of CHAR_STRING_ADVANCE.
15603 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15604 STRING_CHAR_ADVANCE.
15605
156062008-03-15 Andreas Schwab <schwab@suse.de>
15607
15608 * regex.c (re_match_2_internal): Correct matching of eight bit
15609 characters in unibyte strings.
15610
156112008-03-15 Martin Rudalics <rudalics@gmx.at>
15612
15613 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15614 at end of range when it coincides with the end of the buffer.
15615
156162008-03-14 Eli Zaretskii <eliz@gnu.org>
15617
15618 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15619
15620 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15621
156222008-03-14 Jason Rumney <jasonr@gnu.org>
15623
15624 * editfns.c (initial_tz): New variable.
15625 (syms_of_editfns): Initialize it.
15626 (Fset_time_zone_rule): Set it when first called.
15627 Use it when TZSTRING is nil.
15628
15629 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15630 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15631 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15632 (globals_of_w32fns): Initialize them.
15633 (compute_tip_xy): Use them to position tooltips.
15634
156352008-03-14 Glenn Morris <rgm@gnu.org>
15636
15637 * emacs.c (main): Revert previous change.
15638 (standard_args): Revert -internal-script back to -scriptload,
15639 and remove the long-option form.
15640
156412008-03-13 Glenn Morris <rgm@gnu.org>
15642
15643 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15644 Remove option -enable-font-backend.
15645
156462008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15647
15648 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15649
156502008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15651
15652 * xterm.c (x_connection_closed): For GTK: If this is the last
15653 terminal just exit without closing the display.
15654
156552008-03-11 Jason Rumney <jasonr@gnu.org>
15656
15657 * w32font.c (w32font_full_name): Use floor to round.
15658
f0131492 156592008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15660
15661 * sound.c (alsa_configure): Declare vol at beginning of block.
15662
15663 * fontset.c (Ffontset_info): Remove extra semicolon.
15664
156652008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15666
15667 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15668 size of resulting string.
15669
156702008-03-10 Jason Rumney <jasonr@gnu.org>
15671
15672 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15673
156742008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15675
15676 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15677 Don't pretend as if characters with display property haven't been
15678 consumed for string-replacing-string case.
15679
156802008-03-08 Kim F. Storm <storm@cua.dk>
15681
15682 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15683 (get_next_display_element, next_element_from_string)
15684 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15685
156862008-03-08 Andreas Schwab <schwab@suse.de>
15687
15688 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15689
156902008-03-06 Jason Rumney <jasonr@gnu.org>
15691
15692 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15693 when charset not specified. Only translate ANSI to unicode when
15694 font_type is truetype.
15695 (w32font_coverage_ok): New function.
15696 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15697
156982008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15699
15700 * lread.c (Fread_char): Resolve modifiers.
15701 (Fread_char_exclusive): Likewise.
15702
15703 * character.c (char_resolve_modifier_mask): New function.
15704 (char_string): Use char_resolve_modifier_mask.
15705 (Fchar_resolve_modifiers): New function.
15706 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15707 function.
15708
157092008-03-04 Jason Rumney <jasonr@gnu.org>
15710
15711 * makefile.w32-in: Always include w32font.c in the build.
15712 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15713
157142008-03-04 Andreas Schwab <schwab@suse.de>
15715
15716 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15717 (versionclean): Likewise.
15718
157192008-03-04 Juanma Barranquero <lekktu@gmail.com>
15720
15721 * .cvsignore: Add oo.
15722
157232008-03-03 Andreas Schwab <schwab@suse.de>
15724
15725 * coding.c (decode_coding_object): Inhibit gap shrinking while
15726 decoding in place.
15727
157282008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15729
15730 * w32term.c: Remove unused include "gnu.h".
15731 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15732
15733 * gnu.h: Rename to ...
15734 * emacs-icon.h: ... this.
15735 * xterm.c: Use emacs-icon.h instead of gnu.h.
15736 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15737
157382008-03-03 Juanma Barranquero <lekktu@gmail.com>
15739
15740 * w32font.c: Include math.h.
15741
157422008-03-03 Jason Rumney <jasonr@gnu.org>
15743
15744 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15745 Compute options separately.
15746 (w32font_open_internal): Set glyph_idx before caching metrics.
15747
15748 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15749 Define if system headers don't.
15750 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15751 (w32font_encode_char): Don't declare here.
15752
15753 * w32font.c (Quniscribe, QCformat): New symbols.
15754 (syms_of_w32font): Define them.
15755 (w32font_has_char): Indicate uncertainty.
15756 (w32font_encode_char): Encode as glyph point. Make static.
15757 (recompute_cached_metrics): New function.
15758 (w32font_open_internal): Use it. Set font to use glyph points
15759 initially. Set format based on type of font.
15760 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15761 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15762 on it. Set format based on information available here.
15763 (add_font_entity_to_list): Identify backend based on opentype_only.
15764
157652008-03-02 Andreas Schwab <schwab@suse.de>
15766
15767 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15768
15769 * coding.c (decode_coding_big5, produce_chars):
15770 Fix typos in last change.
15771
157722008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15773
15774 * gnu.h: New icon.
15775
157762008-03-02 Kenichi Handa <handa@m17n.org>
15777
15778 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15779 `dos', don't decode '\r' if that is the last in the source.
15780 (decode_coding_utf_16, decode_coding_emacs_mule)
15781 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15782 (decode_coding_raw_text, decode_coding_charset): Likewise.
15783 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15784
157852008-03-01 Jason Rumney <jasonr@gnu.org>
15786
15787 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15788
157892008-03-01 Kim F. Storm <storm@cua.dk>
15790
15791 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15792
157932008-03-01 Jason Rumney <jasonr@gnu.org>
15794
15795 * w32font.c (w32font_full_name): New function.
15796 (w32font_open_internal): Use it.
15797
157982008-03-01 Kim F. Storm <storm@cua.dk>
15799
15800 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15801
158022008-03-01 Jason Rumney <jasonr@gnu.org>
15803
15804 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15805
158062008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15807
15808 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15809 xg_frame_resized when the event is for the edit widget.
15810
15811 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15812
15813 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15814 set_char_size.
15815 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15816 operations on widgets here. Just set frame size if needed.
15817 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15818 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15819 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15820 the whole frame.
15821 (xg_create_tool_bar): Move attachment of the tool bar to
15822 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15823 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15824
158252008-03-01 Jason Rumney <jasonr@gnu.org>
15826
15827 * w32fns.c (w32_msg_pump): Disable debug code.
15828
158292008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15830
15831 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15832
158332008-02-29 Chong Yidong <cyd@stupidchicken.com>
15834
15835 * xdisp.c (next_overlay_string): Don't set
15836 overlay_strings_at_end_processed_p if we're currently reading from
15837 a display string.
15838
158392008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15840
15841 * xdisp.c (get_overlay_strings_1): Fix typo.
15842
158432008-02-29 Chong Yidong <cyd@stupidchicken.com>
15844
15845 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15846
158472008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15848
15849 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15850
15851 * xdisp.c (display_mode_element): Cancel the previous change.
15852 (decode_mode_spec): Likewise.
15853 (handle_auto_composed_prop): Don't make composition if it->string
15854 is a string.
15855
158562008-02-27 Kim F. Storm <storm@cua.dk>
15857
15858 * lisp.h (GLYPH): Change type from int to struct with separate char
15859 and face_id members.
15860 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15861 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15862 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15863 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15864 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15865 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15866 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15867 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15868 handle new Lisp glyph code encoding, either an integer or a cons.
15869
15870 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15871 (GLYPH_ALIAS): Delete.
15872 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15873 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15874 (GLYPH_FROM_CHAR): Replace macro by ...
15875 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15876
15877 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15878 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15879 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15880 (GLYPH_INVALID_P): New macro.
15881 (spec_glyph_lookup_face): Update prototype.
15882
15883 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15884 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15885 new glyph code encoding.
15886 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15887 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15888
15889 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15890 Adapt to new glyph type and new glyph code encoding.
15891
15892 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15893
15894 * indent.c (current_column, current_column_1, Fmove_to_column)
15895 (compute_motion): Adapt to new glyph code encoding.
15896
15897 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15898
158992008-02-27 Chong Yidong <cyd@stupidchicken.com>
15900
15901 * process.c (wait_reading_process_output): Check for window
15902 changes caused by timers.
15903 Suggested by Johan Bockgård.
15904
159052008-02-27 Glenn Morris <rgm@gnu.org>
15906
15907 * emacs.c (USAGE1): Add `--disable-font-backend'.
15908
159092008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15910
15911 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15912 is made to the buffer.
15913
159142008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15915
15916 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15917 (face_at_string_position):
15918 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15919 (face_at_string_position):
15920 * xdisp.c (display_string, next_overlay_change):
15921 * buffer.h (overlays_at):
15922 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15923 Update callers.
15924
159252008-02-26 Chong Yidong <cyd@stupidchicken.com>
15926
15927 * editfns.c (Fformat): Doc fix.
15928
159292008-02-26 Juanma Barranquero <lekktu@gmail.com>
15930
15931 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15932 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15933 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15934
159352008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15936
15937 * buffer.c (Fbuffer_swap_text): New function.
15938 (syms_of_buffer): Defsubr it.
15939
159402008-02-25 Chong Yidong <cyd@stupidchicken.com>
15941
15942 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15943
159442008-02-25 Jason Rumney <jasonr@gnu.org>
15945
15946 * w32font.c (w32font_draw): Draw one character at a time when padding.
15947
159482008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15949
15950 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15951 Handle a nil arg. Use run_window_configuration_change_hook.
15952 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15953 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15954 Use run_window_configuration_change_hook.
15955
159562008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15957
15958 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15959 1-pixel width.
15960
159612008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15962
15963 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15964 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15965 if the glyph in the font is zero pixel with.
15966
15967 * dispextern.h (struct glyph_string): New member padding_p.
15968
15969 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15970
15971 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15972
15973 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15974
15975 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15976
15977 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15978
159792008-02-25 Jason Rumney <jasonr@gnu.org>
15980
15981 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15982
159832008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15984
15985 Allow fine-grained image-cache flushing.
15986 * dispextern.h (struct image): Add `dependencies' field.
15987 (clear_image_caches): Change arg to Lisp_Object.
15988 * image.c (make_image): Initialize `dependencies' field.
15989 (clear_image_cache): Change arg to allow fine-grained flushing.
15990 Perform the flush even if image-cache-eviction-delay is nil.
15991 (clear_image_caches): Change arg to Lisp_Object.
15992 (Fclear_image_cache): Expand meaning of the argument.
15993 (mark_image): Mark `dependencies' field.
15994 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15995 (lface_hash): Use XHASH rather than XFASTINT.
15996 (face_at_buffer_position): Fix int -> EMACS_INT position.
15997 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15998 (select_frame_for_redisplay): Remove code duplication.
15999 (redisplay_internal): Adapt arg to call to clear_image_caches.
16000
160012008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16002
16003 * s/vms4-0.h:
16004 * s/vms4-2.h:
16005 * s/vms4-4.h:
16006 * s/vms5-5.h: Remove, unused.
16007
16008 * s/irix5-2.h:
16009 * s/irix6-0.h:
16010 * s/riscos5.h:
16011 * s/mach-bsd4-3.h:
16012 * m/mips4.h: Remove files for obsolete systems.
16013
16014 * Makefile.in:
16015 * filelock.c:
16016 * unexmips.c:
16017 * m/hp9000s300.h:
16018 * m/iris4d.h:
16019 * s/aix3-1.h:
16020 * s/hpux.h:
16021 * s/msdos.h:
16022 * s/usg5-0.h:
16023 * s/usg5-2-2.h:
16024 * s/usg5-2.h:
16025 * s/usg5-3.h: Remove references to obsolete variables.
16026
16027 * s/irix5-0.h: Remove, move all the contents ...
16028 * s/irix6-5.h: ... here. Simplify.
16029 * config.in: Regenerate.
16030
160312008-02-24 Jason Rumney <jasonr@gnu.org>
16032
16033 * w32term.c (x_draw_glyph_string_background): Clear the background
16034 manually when cleartype is in use.
16035 (x_draw_glyph_string_foreground): Draw text transparently when
16036 cleartype is in use.
16037
16038 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16039 a font into it unless we have to.
16040
160412008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16042
16043 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16044 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16045
aac0c6e3
MR
160462008-02-18 Jason Rumney <jasonr@gnu.org>
16047
16048 * w32fns.c (Fw32_shell_execute): Encode parameters.
16049
160502008-02-09 Eli Zaretskii <eliz@gnu.org>
16051
16052 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16053
160542008-02-05 Juanma Barranquero <lekktu@gmail.com>
16055
16056 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16057
160582008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16059
16060 * xterm.c (x_set_offset): Don't change the gravity if
16061 CHANGE_GRAVITY is -1.
16062
160632008-02-23 Chong Yidong <cyd@stupidchicken.com>
16064
16065 * fileio.c (auto_save_error_occurred): New var.
16066 (auto_save_error): Set it.
16067 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16068 error occurred.
16069
160702008-02-23 Eli Zaretskii <eliz@gnu.org>
16071
16072 * w32.c (globals_of_w32): Add initializations for
16073 g_b_init_get_sid_sub_authority and
16074 g_b_init_get_sid_sub_authority_count.
16075
160762008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16077
16078 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16079 (font_parse_xlfd): Use them for sanity check.
16080 (Finternal_set_font_style_table): Make sure the table is bijective.
16081
16082 Consolidate the image_cache to the terminal struct.
16083 * termhooks.h (P_): Remove redundant def.
16084 (struct terminal): New field `image_cache'.
16085 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16086 of FRAME_X_IMAGE_CACHE.
16087 * xterm.h (struct x_display_info): Remove image_cache field.
16088 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16089 * w32term.h (struct w32_display_info): Remove image_cache field.
16090 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16091 * macterm.h (struct mac_display_info): Remove image_cache field.
16092 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16093 * xterm.c (x_term_init):
16094 * w32term.c (w32_term_init):
16095 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16096 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16097 Remove declarations.
16098 (clear_image_caches, mark_image_cache): New declarations.
16099 * xfaces.c (clear_face_cache):
16100 * xdisp.c (redisplay_internal): Use clear_image_caches.
16101 * image.c (clear_image_cache): Don't check that a frame is on
16102 a window-system before checking if it shares the same cache.
16103 (clear_image_caches): New function.
16104 (Fclear_image_cache): Use it.
16105 (mark_image): Move from allo.c.
16106 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16107 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16108 (mark_object): Don't call mark_image_cache for frames.
16109 (mark_terminals): Call mark_image_cache.
16110
16111 * lisp.h (Fdelete_terminal): Declare.
16112
16113 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16114 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16115 wrong_type_argument.
16116
161172008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16118
16119 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16120 malayalam.el, and tamil.el. Add sinhala.el.
16121
161222008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16123
16124 * xterm.c (x_connection_closed): Consolidate identical tests.
16125 (x_delete_terminal): Don't crash if called via x_connection_closed.
16126
161272008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16128
16129 * xdisp.c (decode_mode_spec): New arg string.
16130 (display_mode_element): Adjust for the above change.
16131
161322008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16133
16134 * callint.c (Fcall_interactively): Use AREF.
16135
161362008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16137
16138 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16139
161402008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16141
16142 * xfns.c (Fx_show_tip): Set string to " " if empty.
16143
161442008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16145
16146 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16147 with Qt.
16148
161492008-02-17 Kenichi Handa <handa@m17n.org>
16150
16151 * ftfont.c (ftfont_shape): Return Lispy number.
16152
16153 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16154 for GCs.
16155 (Finternal_set_font_selection_order): Call font_update_sort_order
16156 only when enable_font_backend is set.
16157 (realize_x_face): Set face->font_info to that of default face only
16158 when enable_font_backend is set.
16159
16160 * xdisp.c (handle_composition_prop): Set it->c to the fist
16161 character of the composed region.
16162 (fill_composite_glyph_string): Set base_face->font_info to
16163 s->font_info. Get a face for ascii from base_face->ascii_face.
16164 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16165 with a face already decided.
16166 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16167 non-negative.
16168 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16169 call font_prepare_composition unconditionally.
16170
16171 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16172
16173 * xterm.h (struct x_display_info): New member font.
16174
16175 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16176 (x_set_mouse_face_gc, x_new_font): Likewise.
16177 (x_term_init): Setup display_info->font.
16178 (x_delete_terminal): Free display_info->font.
16179
16180 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16181
16182 * ftxfont.c (ftxfont_default_fid): Delete it.
16183 (ftxfont_open): Set xfont->fid to 0.
16184 (ftxfont_end_for_frame): Clear data specific to the frame and the
16185 font-driver.
16186
16187 * xftfont.c (xftfont_default_fid): Delete it.
16188 (xftfont_open): Set xfont->fid to 0.
16189
16190 * fontset.c (FONTSET_OBJLIST): New macro.
16191 (fontset_find_font): Update font-object list of the fontset.
16192 (free_realized_fontset): New function.
16193 (free_face_fontset): Call free_realized_fontset.
16194 (Ffont_info): Call font_close_object only when enable_font_backend
16195 is set.
16196
16197 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16198 [HAVE_NTGUI]: Include w32term.h.
16199 [MAC_OS]: Include macterm.ch.
16200 (font_otf_ValueRecord): Use make_number.
16201 (font_finish_cache): Fix handling of reference count.
16202 (font_clear_cache): Update num_fonts.
16203 (font_open_entity): Update smallest_char_width and
16204 smallest_font_height of the frame.
16205 (font_close_object): Update num_fonts.
16206 (Fclear_font_cache): Fix finding the target cache data.
16207
162082008-02-16 Glenn Morris <rgm@gnu.org>
16209
16210 * fontset.c (Finternal_char_font): Fix compilation warning.
16211
162122008-02-16 Eli Zaretskii <eliz@gnu.org>
16213
16214 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16215 instead of char arrays. Enlarge the size of array passed to
16216 get_token_information.
16217
16218 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16219 warnings.
16220
162212008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16222
16223 * .gdbinit: Don't set `args', it breaks gdb --args.
16224
162252008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16226
16227 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16228 within a narrowed buffer.
16229
162302008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16231
16232 * coding.c (decode_coding_object, encode_coding_object):
16233 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16234
162352008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16236
16237 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16238 hardcoding 1.
16239 (detect_coding_system):
16240 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16241 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16242 * insdel.c (insert_from_gap):
16243 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16244 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16245 (string_to_multibyte):
16246 * character.c (chars_in_text, multibyte_chars_in_text):
16247 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16248
16249 * character.h (FETCH_STRING_CHAR_ADVANCE)
16250 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16251 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16252 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16253
16254 * casefiddle.c (casify_region): Only call after-change and composition
16255 functions on the part of the region that was changed.
16256
16257 * keyboard.c (read_avail_input):
16258 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16259
162602008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16261
16262 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16263 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16264
162652008-02-11 Juanma Barranquero <lekktu@gmail.com>
16266
16267 * w32menu.c (push_submenu_start, push_submenu_end)
16268 (push_left_right_boundary, push_menu_pane, push_menu_item):
16269 * keyboard.c (read_key_sequence): Don't pass args with side effects
16270 to AREF, it fails when compiling with -DENABLE_CHECKING.
16271
162722008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16273
16274 * Makefile.in (${lispsource}international/charprop.el):
16275 Delete this target.
16276
16277 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16278 emacs-unicode-2.
16279
162802008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16281
16282 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16283
162842008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16285
16286 * frame.c (Qnoelisp): New symbol.
16287 (syms_of_frame): Initialize it.
16288 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16289 harmless Elisp code, from a strong `force' from x_connection_closed.
16290 * frame.h (Qnoelisp): Declare.
16291 * xterm.c (x_connection_closed): Pass `noelisp'.
16292
16293 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16294 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16295 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16296 rather than `int' for the type of `type'.
16297
162982008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16299
16300 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16301
16302 * Makefile.in (GNUC): Remove support for gcc-1.x.
16303
163042008-02-10 Richard Stallman <rms@gnu.org>
16305
16306 * lisp.h (ASET): Use AREF, not ASLOT.
16307
163082008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16309
16310 * lisp.h (ASET): Check bounds.
16311
163122008-02-10 Glenn Morris <rgm@gnu.org>
16313
16314 * buffer.c (mode-name): Doc fix.
16315
163162008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16317
16318 * Makefile.in:
16319 * emacs.c:
16320 * gmalloc.c:
16321 * keyboard.c:
16322 * lisp.h:
16323 * m/ibm370aix.h:
16324 * process.c:
16325 * regex.c:
16326 * s/hpux.h:
16327 * sysdep.c:
16328 * sysselect.h:
16329 * systty.h:
16330 * unexec.c:
16331 * w32term.c:
16332 * xsmfns.c:
16333 * xterm.c: Remove code that deals with obsolete variables.
16334
16335 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16336
16337 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16338 nothing else needs it anymore.
16339
163402008-02-09 Eli Zaretskii <eliz@gnu.org>
16341
16342 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16343 instead of unibyte_char_to_multibyte.
16344
163452008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16346
16347 * s/gnu-linux.h: Remove commented out code.
16348
16349 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16350
16351 * Makefile.in: Update what RMS says about using autoconf.
16352 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16353 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16354 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16355 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16356
163572008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16358
16359 * keymap.c (Fkey_description): Move side effect outside of macro call.
16360
16361 * xfaces.c (Finternal_make_lisp_face):
16362 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16363
16364 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16365 (syms_of_fontset): Use ASET.
16366
16367 * fns.c (concat): Move side effect outside of macro call.
16368 (hash_clear): Use ASET.
16369
163702008-02-08 Richard Stallman <rms@gnu.org>
16371
16372 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16373 If FORCE, and frame has a surrogate minibuffer for another frame,
16374 delete the other frame first.
16375
163762008-02-07 Timo Savola <timo.savola@iki.fi>
16377
16378 * xterm.c (x_detect_focus_change): Handle embed client message.
16379 (handle_one_xevent): Ditto.
16380 (handle_one_xevent): If embedded and we get a button press/release,
16381 request focus.
16382 (xembed_set_info, xembed_send_message): New functions.
16383 (x_make_frame_visible): Call xembed_set_info if embedded.
16384 (x_make_frame_invisible): Call xembed_set_info if embedded.
16385 (x_term_init): Initialize Xatom_XEMBED.
16386 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16387 (x_iconify_frame): Ditto.
16388
16389 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16390 (enum xembed_info, enum xembed_message, enum xembed_focus)
16391 (enum xembed_modifier, enum xembed_accelerator): New.
16392 (xembed_set_info, xembed_send_message): Declare.
16393 (FRAME_X_EMBEDDED_P): New.
16394
16395 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16396 gtk_plug_new.
16397
16398 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16399 window ID of a frame.
16400 (x_window): Reparent frame if embedded.
16401 (Fx_create_frame): Don't set border width if embedded.
16402
16403 * emacs.c (USAGE3): Add --parent-id.
16404 (standard_args): Ditto.
16405
164062008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16407
16408 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16409
164102008-02-07 Jim Meyering <meyering@redhat.com>
16411
16412 Use "do...while (0)", not "if (1)...else" in macro definitions.
16413 The latter provokes a warning from gcc about the empty else, when
16414 followed by ";". Also, without that trailing semicolon, it would
16415 silently swallow up any following statement.
16416 * syntax.h (SETUP_SYNTAX_TABLE)
16417 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16418 * buffer.h (DECODE_POSITION): Likewise.
16419 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16420 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16421 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16422 (FETCH_CHAR_ADVANCE): Likewise.
16423 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16424
164252008-02-07 Jim Meyering <meyering@redhat.com>
16426
16427 * lread.c [lint]: Don't include <sys/inode.h>.
16428
164292008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16430
16431 * xselect.c (x_handle_dnd_message):
16432 * xmenu.c (digest_single_submenu, xmenu_show):
16433 * xdisp.c (with_echo_area_buffer_unwind_data)
16434 (format_mode_line_unwind_data, unwind_format_mode_line)
16435 (display_menu_bar):
16436 * eval.c (Ffetch_bytecode):
16437 * doc.c (store_function_docstring):
16438 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16439 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16440 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16441
164422008-02-07 Kenichi Handa <handa@m17n.org>
16443
16444 * ftxfont.c (ftxfont_open): Don't set
16445 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16446
16447 * ftfont.c (ftfont_open): Fix previous change.
16448
164492008-02-06 Jason Rumney <jasonr@gnu.org>
16450
16451 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16452 Use cached metrics for ASCII characters.
16453 (w32font_open_internal): Don't set font's owning_frame.
16454 Cache metrics for ASCII characters.
16455
16456 * w32font.h (struct w32font_info): Add ascii_metrics.
16457 Remove owning_frame.
16458
164592008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16460
16461 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16462 to negative value.
16463
16464 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16465
16466 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16467
16468 * charset.c (syms_of_charset): Set QCtest and Qeq.
16469
164702008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16471
16472 * process.c (Fstart_process):
16473 * callproc.c (Fcall_process): Handle the case where
16474 Funhandled_file_name_directory returns nil.
16475
16476 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16477 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16478 * font.c (check_gstring): Use them and AREF to access the vector before
16479 we know it's really a gstring.
16480 (Ffont_shape_text): Fix typo.
46e722a9 16481 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16482
16483 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16484 Declare.
16485
16486 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16487
164882008-02-05 Jason Rumney <jasonr@gnu.org>
16489
16490 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16491 Set smallest_font_height and smallest_char_width in display info.
16492
164932008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16494
16495 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16496
164972008-02-05 Miles Bader <miles@gnu.org>
16498
16499 * xfaces.c (get_lface_attributes, merge_named_face)
16500 (lookup_named_face, lookup_derived_face, realize_named_face):
16501 Revert 2008-02-01 change by cyd@stupidchicken.com.
16502
165032008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16504
16505 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16506 fallback fonts.
16507 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16508
165092008-02-04 Jason Rumney <jasonr@gnu.org>
16510
16511 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16512 set full_name.
16513 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16514
165152008-02-03 Jason Rumney <jasonr@gnu.org>
16516
16517 * makefile.w32-in (OBJ1): Include font.o here.
16518 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16519
165202008-02-02 Jason Rumney <jasonr@gnu.org>
16521
16522 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16523
165242008-02-01 Jason Rumney <jasonr@gnu.org>
16525
16526 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16527
16528 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16529
165302008-02-01 Andreas Schwab <schwab@suse.de>
16531
16532 * Makefile.in (shortlisp, lisp): Update for rename of
16533 ../lisp/language/myanmar.el.
16534
165352008-02-01 Chong Yidong <cyd@stupidchicken.com>
16536
16537 * xfaces.c (get_lface_attributes): Delete function.
16538 (merge_named_face, lookup_named_face, lookup_derived_face)
16539 (realize_named_face): Call lface_from_face_name directly, and use
16540 the fact that merge_face_vectors does not alter its FROM argument.
16541
165422008-02-01 Jason Rumney <jasonr@gnu.org>
16543
16544 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16545 input in the default locale. Handle non-Unicode multibyte input.
16546
165472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16548
16549 * fontset.c (reorder_font_vector): Exclude nil elements from the
16550 font group. Don't try multiple fonts.
16551 (fontset_font): Adjust for the above change.
16552 (Finternal_char_font): Return nil if the found font doesn't
16553 contain the character ch.
16554
16555 * Makefile.in (lisp, shortlisp): Add cham.el.
16556
165572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16558
16559 * font.h (FONTP): Make it return 1 also for a font-object.
16560
16561 * .gdbinit (xfontset): New function.
16562
16563 * font.c (font_find_for_lface): Check if the character C is
16564 supported or not only for the first font.
16565
16566 * fontset.c (reorder_font_vector): Fix typo.
16567 (fontset_find_font): Don't add a font-spec specifying a script.
16568 Use 0 (not Qt) for the indication of empty font-group. Change the
16569 format of RFONT-DEF. Return Qt if no font in the font-group
16570 support the character.
16571 (fontset_font): Adjust for the above change. If no font was
16572 found the character, remember that.
16573 (face_for_char): Adjust for the change of RFONT-DEF.
16574 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16575 no font for the target.
16576 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16577
165782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16579
16580 * font.c (font_load_for_face): Handle the case that the font in
16581 face->lface is a string.
16582
165832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16584
16585 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16586
165872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16588
16589 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16590 Fix previous change. If the frame is not on a window system,
16591 signal an error.
16592
165932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16594
16595 * coding.c (decode_coding_object, encode_coding_object): Adjust
16596 marker positions after conversion.
16597
16598 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16599
166002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16601
16602 * font.c (font_find_for_lface): Fix the handling of the return
16603 value of font_has_char.
16604 (Ffont_shape_text): Fix previous change.
16605
16606 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16607 (fontset_ref_and_range): Delete it.
16608 (fontset_find_font): Call char_table_ref_and_range instead of
16609 FONTSET_REF_AND_RANGE.
16610 (make_fontset): Don't setup font groups of Latin here.
16611 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16612 (new_fontset_from_font): Make the specified font the default for
16613 all Latin characters.
16614
166152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16616
16617 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16618 is on a window system before accessing the fontset of the frame.
16619
166202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16621
16622 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16623
16624 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16625 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16626
16627 * font.c (Ffont_shape_text): If the font driver doesn't have a
16628 shaper function, make zero-width glyphs to have at least one-pixel
16629 width. Fix setting of `to' field of glyphs.
16630
166312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16632
16633 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16634 glyphs.
16635
16636 * font.h (struct font_driver): Improve docstring of member `shape'.
16637
166382008-02-01 Kenichi Handa <handa@m17n.org>
16639
16640 * composite.c (syms_of_composite): Fix docstring of
16641 auto-composition-function.
16642
16643 * font.h (LGLYPH_SIZE): New macro.
16644
16645 * font.c (Ffont_fill_gstring): Stop filling when a character not
16646 supported by the font is found.
16647 (Ffont_shape_text): When a shape callback function returns nil,
16648 try at most two more times with larger gstring.
16649 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16650
16651 * xdisp.c (handle_auto_composed_prop): Change the argument to
16652 auto-composition-function.
16653
16654 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16655 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16656 Lispy glyph and store it in the lgstring.
16657
16658 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16659
16660 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16661
166622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16663
16664 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16665
16666 * fontset.c (Vfont_encoding_charset_alist): New variable.
16667 (syms_of_fontset): DEFVAR it.
16668 (reorder_font_vector, fontset_find_font): Optimize for the case of
16669 no need of reordering.
16670 (face_for_char): Map the charset property by
16671 Vfont_encoding_charset_alist.
16672
166732008-02-01 Jason Rumney <jasonr@gnu.org>
16674
16675 * w32font.c (logfonts_match): Don't check adstyle here.
16676 (font_matches_spec): Check here against physical font instead.
16677 (add_font_entity_to_list): Avoid some substitutions.
16678
16679 * font.c (font_parse_fcname): Default weight and slant to normal.
16680 (font_score): Prefer normal fonts if weight or slant unspecified.
16681 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16682 match freetype scores.
16683
166842008-02-01 Jason Rumney <jasonr@gnu.org>
16685
16686 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16687 font, as it may have been deleted.
16688 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16689 most common hyphenless variation.
16690 (logfonts_match): Check generic family.
16691 (font_matches_spec): Don't check generic family here.
16692 (fill_in_logfont): Set generic family based on adstyle.
16693
16694 * w32font.h (w32font_get_cache): Update declaration.
16695
166962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16697
16698 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16699
16700 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16701 If none of the new drivers are available, call font_update_drivers
16702 with the old drivers.
16703
16704 * w32font.c (w32font_get_cache): Adjust the argument type.
16705
16706 * xfont.c (xfont_get_cache): Adjust the argument type.
16707
16708 * font.h (struct font_driver): Change argument type of get_cache.
16709
16710 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16711
16712 * font.c (Ffont_get): Fix arguments to Fassoc.
16713 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16714 (font_clear_cache): New function.
16715 (font_list_entities, font_matching_entity): Use font_get_cache.
16716 (font_update_drivers): Call font_clear_cache when finishing a driver.
16717
16718 * fontset.c (fontset_find_font): Fix previous change.
16719
167202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16721
16722 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16723 dpyinfo->font_table.
16724 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16725 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16726
16727 * font.c (font_at): Handle the case that the arg C is negative.
16728 Handle the unibyte case.
16729 (Ffont_at): Call font_at with the arg C -1.
16730
16731 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16732 the position here, and call font_at with the arg C -1.
16733 Don't check the range of the existing composition at the point.
16734
167352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16736
16737 * fontset.c (fontset_add): New args charset_id and family.
16738 Change caller.
16739 (load_font_get_repertory, fontset_find_font): Assume that
16740 font_spec is always a font-spec object.
16741 (Fset_fontset_font): Always store a font-spec object in a fontset.
16742
16743 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16744 instead of get_property_and_range.
16745
167462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16747
16748 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16749 (xftfont_open): Don't keep locking face.
16750 (xftfont_close): Don't unlock face.
16751 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16752
16753 * fontset.c (fontset_find_font): Don't prefer a font of
16754 supplementary charset.
16755
167562008-02-01 Kenichi Handa <handa@m17n.org>
16757
16758 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16759 script, langsys_tag to langsys, new member script.
16760 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16761 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16762 listing to the script specified in that property. Fix arg to
16763 OTF_check_features.
16764
167652008-02-01 Jason Rumney <jasonr@gnu.org>
16766
16767 * w32font.h: New file.
16768
16769 * w32font.c: Include it.
16770 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16771 (w32font_open): Set owning_frame.
16772 (w32font_text_extents): Use owning_frame.
16773 (struct font_callback_data): Add opentype_only field.
16774 (add_font_entity_to_list): Use it to filter fonts.
16775 Don't check against full name.
16776 (w32font_list_internal): New function.
16777 (w32font_list): Use it.
16778 (w32font_match_internal): New function.
16779 (w32font_match): Use it.
16780 (w32font_open_internal): New function.
16781 (w32font_open): Use it.
16782 (w32font_get_cache, w32font_close, w32font_has_char)
16783 (w32font_encode_char, w32font_text_extents, w32font_draw):
16784 Make non-static.
16785
16786 * makefile.w32-in (w32font.o): Depend on w32font.h.
16787
167882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16789
16790 * charset.c (Fdefine_charset_internal): Record a supplementary
16791 charset at the tail of Vcharset_order_list.
16792
16793 * font.c (Ffont_shape_text): Fix the return value.
16794
16795 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16796
16797 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16798
167992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16800
16801 * ftfont.c (struct OpenTypeSpec): New struct.
16802 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16803 (ftfont_get_open_type_spec): New function.
16804 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16805
16806 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16807
168082008-02-01 Jason Rumney <jasonr@gnu.org>
16809
16810 * w32font.c (add_font_entity_to_list): Compare only the beginning
16811 of full name.
16812
168132008-02-01 Kenichi Handa <handa@m17n.org>
16814
16815 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16816 Never return HANDLED_RECOMPUTE_PROPS.
16817
168182008-02-01 Kenichi Handa <handa@m17n.org>
16819
16820 * font.c (font_gstring_produce): Delete it.
16821
16822 * composite.h (COMPOSITION_METHOD):
16823 Handle COMPOSITION_WITH_GLYPH_STRING.
16824
168252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16826
16827 * xfont.c (Qx): Delete.
16828 (syms_of_xfont): Don't initialize Qx.
16829
16830 * composite.h (enum composition_method):
16831 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16832
168332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16834
16835 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16836 (choose_face_font): Accept new form of font-spec.
16837
16838 * frame.h (font_driver_list): Declare it unconditionally.
16839 (struct frame): Define members font_driver_list and font_data_list
16840 unconditionally.
16841
16842 * fontset.c: Include "font.h" unconditionally.
16843 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16844 (Fset_fontset_font): Accept a font-spec object.
16845
16846 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16847 PIXEL_SIZE part a wild card.
16848
16849 * dispextern.h (struct glyph_string): Define members clip and
16850 num_clips unconditionally.
16851 (struct face): Define members font_info and extra unconditionally.
16852
16853 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16854 ftfont_info only when HAVE_LIBOTF is defined.
16855
168562008-02-01 Andreas Schwab <schwab@suse.de>
16857
16858 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16859 and end.
16860
168612008-02-01 Jason Rumney <jasonr@gnu.org>
16862
16863 * w32font.c (w32font_driver): Add new fields.
16864
168652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16866
16867 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16868 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16869 (LIBES): Add @M17N_FLT_CFLAGS@.
16870
16871 * composite.c (compose_text): Don't treat the new style
16872 composition specially.
16873
16874 * emacs.c (main): Call syms_of_font unconditionally.
16875
16876 * font.h (FONT_ENTITY_NOT_LOADABLE)
16877 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16878 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16879 (struct font_driver): New member shape.
16880 (font_registry_charsets): Extern it.
16881 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16882 (font_otf_capability, font_drive_otf): Delete their externs.
16883
16884 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16885 (font_charset_alist, font_registry_charsets): Move from xfont.c
16886 and rename.
16887 (font_prop_validate_otf): New function.
16888 (font_property_table): Register it for QCotf.
16889 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16890 (font_drive_otf): Delete.
16891 (font_prepare_composition): New arg F. Adjust for the change of
16892 lispy gstring.
16893 (font_find_for_lface): New arg C.
16894 (font_load_for_face): Adjust for the change of font_find_for_lface.
16895 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16896 lispy gstring.
16897 (Ffont_shape_text): New function.
16898 (Fopen_font): If the font size is not given, use 12-pixel.
16899 (Ffont_at): New arg STRING.
16900 (syms_of_font): Initalize font_charset_alist.
16901 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16902 conditionally.
16903
16904 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16905 fonts of the same font-spec. Change the format of RFONT-DEF.
16906 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16907 Adjust for the change of RFONT-DEF.
16908 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16909
16910 * ftfont.h: New file.
16911
16912 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16913 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16914 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16915 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16916 font_otf_capability and font_drive_otf, set ftfont_shape.
16917 (ftfont_list): Adjust for the change of :otf property value.
16918 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16919 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16920 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16921 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16922 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16923 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16924
16925 * w32term.c (x_draw_composite_glyph_string_foreground):
16926 Adjust for the change of lispy gstring.
16927
16928 * xdisp.c (handle_composition_prop): Adjust for the change of
16929 lispy gstring. Call a function for auto-composition with the
16930 third arg it->window.
16931 (fill_composite_glyph_string): Adjust for the change of lispy string.
16932 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16933
16934 * xfaces.c (set_font_frame_param): Adjust for the change of
16935 font_find_for_lface.
16936
16937 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16938 (xfont_registry_charsets): Likewise. Change caller.
16939 (syms_of_xfont): Don't handle x_font_charset_alist.
16940
16941 * xftfont.c: Include "ftfont.h".
16942 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16943 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16944 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16945 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16946 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16947 Set xftfont_driver.shape to xftfont_shape.
16948
16949 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16950 the change of lispy gstring.
16951
169522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16953
16954 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16955
169562008-02-01 Jason Rumney <jasonr@gnu.org>
16957
16958 * w32font.c (w32font_draw): Fill background manually.
16959
169602008-02-01 Jason Rumney <jasonr@gnu.org>
16961
16962 * font.c (Qfontp): Remove unused symbol.
16963 (QCantialias): New symbol.
16964 (syms_of_font): Define it.
16965 (font_property_table): Set a validator for QCantialias.
16966
16967 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16968 Define if not already.
16969 (QCfamily): Share with xfaces.c.
16970 (Qstandard, Qsubpixel, Qnatural): New symbols.
16971 (syms_of_w32font): Define them. Don't define QCfamily here.
16972 (w32_antialias_type, lispy_antialias_type): New functions.
16973 (w32_enumfont_pattern_entity): New arg requested_font.
16974 Set antialias parameter if non-default was requested.
16975 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16976
169772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16978
16979 * lread.c (read1): Undo the previous change.
16980
169812008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16982
16983 * frame.c (Fdelete_frame): Call font_update_drivers only when
16984 USE_FONT_BACKEND is defined.
16985
169862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16987
16988 * font.h (struct font_bitmap): New member bits_per_pixel.
16989 (struct font_driver): New members start_for_frame and end_for_frame.
16990 (struct font_data_list): New struct.
16991 (font_put_frame_data, font_get_frame_data): Extern them.
16992
16993 * frame.h (struct frame): New member font_data_list.
16994
16995 * font.c (font_update_drivers): Call driver->start_for_frame and
16996 driver->end_for_frame at proper timings.
16997 (font_put_frame_data, font_get_frame_data): New functions.
16998 (Ffont_spec): Add usage in the docstring.
16999
17000 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17001 (Fdelete_frame): Call font_update_drivers.
17002
17003 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17004 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17005 (xftfont_get_xft_draw): New function.
17006 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17007 (xftfont_end_for_frame): New function.
17008 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17009
17010 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17011 Change argument. Cache GCs in the per-frame data.
17012 (struct ftxfont_frame_data): New struct.
17013 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17014 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17015 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17016 (ftxfont_end_for_frame): New function.
17017 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17018
17019 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17020
170212008-02-01 Kenichi Handa <handa@m17n.org>
17022
17023 * xselect.c (Vselection_coding_system)
17024 (Vnext_selection_coding_system): Delete them.
17025 (syms_of_xselect): Don't declare selection-coding-system and
17026 next-selection-coding-system. They are declared in select.el.
17027
170282008-02-01 Jason Rumney <jasonr@gnu.org>
17029
17030 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17031
17032 * w32fns.c: Include imm.h.
17033 (get_composition_string_fn, get_ime_context_fn): New optional
17034 system functions.
17035 (globals_of_w32fns): Load them from imm32.dll.
17036 (ignore_ime_char): New flag.
17037 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17038 WM_IME_ENDCOMPOSITION messages.
17039
17040 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17041 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17042
170432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17044
17045 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17046 (READCHAR_REPORT_MULTIBYTE): New macro.
17047 (readchar): New 2nd arg MULTIBYTE.
17048 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17049 Make symbol's name multibyte according to the multibyteness of the
17050 source.
17051
170522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17053
17054 * xfaces.c (face_for_overlay_string): Call lookup_face with
17055 correct arguments (fix of synching with the trunk).
17056
170572008-02-01 Kenichi Handa <handa@m17n.org>
17058
17059 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17060 (font_prop_validate_non_neg, font_prop_validate_spacing):
17061 Delete argument prop_index.
17062 (font_property_table): Change arguments to validater. Change Callers.
17063 (font_lispy_object): Delete.
17064 (font_at): Use font_find_object instead fo font_lispy_object.
17065
170662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17067
17068 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17069 and file names.
17070
170712008-02-01 Jason Rumney <jasonr@gnu.org>
17072
17073 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17074 (font_matches_spec): Remove debug output.
17075 (add_font_entity_to_list): Avoid using substituted fonts.
17076
170772008-02-01 Jason Rumney <jasonr@gnu.org>
17078
17079 * doc.c (Fsnarf_documentation):
17080 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17081
170822008-02-01 Miles Bader <miles@gnu.org>
17083
17084 * dispextern.h (struct glyph_row): Only define "clip" field if
17085 HAVE_WINDOW_SYSTEM is defined.
17086
170872008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17088
17089 Fix up multi-tty merge.
17090
17091 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17092 and indentation.
17093
17094 * xfaces.c (free_realized_face, clear_face_gcs):
17095 Include font_done_for_face in the input_blocked section, just in case.
17096
17097 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17098 (get_char_face_and_encoding): Undo last change and remove the *other*
17099 duplicate definition (i.e. keep the one that's better scoped and that
17100 includes code for the font-backend).
17101
17102 * terminal.c (create_terminal): Default keyboard_coding to
17103 `no-conversion' and terminal_coding to `undecided'.
17104
17105 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17106
17107 * fontset.c (free_realized_fontsets): Check that the table entry does
17108 contain a fontset before trying to compare it to `base'.
17109
17110 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17111 syms_of_charset, and syms_of_coding earlier because init_window_once
17112 now needs Vcoding_system_hash_table to be setup.
17113
17114 * coding.h (default_buffer_file_coding): Remove.
17115
17116 * coding.c (default_buffer_file_coding): Remove.
17117 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17118 than ->symbol, and use the terminal-local coding system.
17119 (syms_of_coding): Don't setup the coding-systems that are not
17120 terminal-local.
17121 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17122
17123 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17124 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17125
17126 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17127 in chartab.c and were re-added here by mistake.
17128 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17129
17130 * doc.c (Fsnarf_documentation):
17131 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17132 src to etc.
17133
17134 * ChangeLog.10: Add mistakenly removed entry.
17135
171362008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17137
17138 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17139
171402008-02-01 Miles Bader <miles@gnu.org>
17141
17142 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17143 Add extra args to FACE_FOR_CHAR.
17144
171452008-02-01 Kenichi Handa <handa@m17n.org>
17146
17147 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17148 in sequence.
17149
17150 * chartab.c (map_sub_char_table, map_char_table): If the range
17151 contains just one character, call the function with that character
17152 even if the depth is not 3.
17153
171542008-02-01 Jason Rumney <jasonr@gnu.org>
17155
17156 * w32font.c (w32font_text_extents): Calculate metrics for the
17157 whole string.
17158
171592008-02-01 Jason Rumney <jasonr@gnu.org>
17160
17161 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17162
171632008-02-01 Jason Rumney <jasonr@gnu.org>
17164
17165 * w32term.c (x_set_glyph_string_clipping): Use
17166 get_glyph_string_clip_rects.
17167 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17168 Adjust for the change of struct glyph_string.
17169
17170 * w32font.c (w32font_draw): Do clipping here.
17171
171722008-02-01 Kenichi Handa <handa@m17n.org>
17173
17174 * xftfont.c (xftfont_draw): Adjust for the change of struct
17175 glyph_string.
17176
17177 * xterm.c (x_set_glyph_string_clipping): Use
17178 get_glyph_string_clip_rects.
17179 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17180 Adjust for the change of struct glyph_string.
17181
17182 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17183 the resulting clip(s}.
17184 (expose_overlaps): Add arg r. Change callers. Set it to
17185 row->clip temporarily.
17186 (expose_window): Redraw rows overlapping the exposed area.
17187
17188 * dispextern.h (struct glyph_row): New member clip.
17189 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17190 clip_height, new member clip, and num_clips.
17191
171922008-02-01 Kenichi Handa <handa@m17n.org>
17193
17194 * data.c (Fchar_or_string_p): Fix docstring.
17195
171962008-02-01 Kenichi Handa <handa@m17n.org>
17197
17198 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17199 create a temporary XftDraw object.
17200
172012008-02-01 Kenichi Handa <handa@m17n.org>
17202
17203 * font.c (Ffontp): Fix docstring.
17204
17205 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17206 strong evidence of ISO-2022.
17207
172082008-02-01 Kenichi Handa <handa@m17n.org>
17209
17210 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17211 SYNTAX_ENTRY_FOLLOW_PARENT.
17212
172132008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17214
17215 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17216 its type.
17217 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17218 Update to the new type of weak_hash_tables and next_weak.
17219
17220 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17221 a plain C pointer to Lisp_Hash_Table.
17222
17223 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17224 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17225 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17226 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17227 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17228 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17229 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17230 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17231 (GC_EQ): Remove since they've been identical to their non-GC_
17232 alter-egos ever since the markbit was eradicated.
17233
17234 * alloc.c:
17235 * buffer.c:
17236 * buffer.h:
17237 * data.c:
17238 * fileio.c:
17239 * filelock.c:
17240 * fns.c:
17241 * frame.h:
17242 * lisp.h:
17243 * macterm.c:
17244 * print.c:
17245 * process.c:
17246 * w32fns.c:
17247 * w32menu.c:
17248 * w32term.c:
17249 * xfns.c:
17250 * xmenu.c:
17251 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17252
172532008-02-01 Kenichi Handa <handa@m17n.org>
17254
17255 * chartab.c (map_sub_char_table): Make it work for the top-level
17256 char-table. Fix handling of parent char-table.
17257 (map_char_table): Adjust for the above change.
17258
172592008-02-01 Jason Rumney <jasonr@gnu.org>
17260
17261 * w32font.c (Qgdi): Rename from Qw32.
17262
172632008-02-01 Jason Rumney <jasonr@gnu.org>
17264
17265 * w32bdf.c (get_quoted_string): Make function static.
17266
172672008-02-01 Kenichi Handa <handa@m17n.org>
17268
17269 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17270 bigger ascent and descent than those of the font, use them as
17271 font's ascent and descent.
17272
172732008-02-01 Kenichi Handa <handa@m17n.org>
17274
17275 * Makefile.in (${lispsource}international/charprop.el): Move this
17276 target within "#ifdef HAVE_UNIDATA" and "#endif".
17277
172782008-02-01 Kenichi Handa <handa@m17n.org>
17279
17280 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17281 (shortlisp): Add ../lisp/language/tai-viet.el.
17282
172832008-02-01 Ulrich Mueller <ulm@gentoo.org>
17284
17285 * Makefile.in (${lispsource}international/charprop.el): Depend on
17286 temacs${EXEEXT}.
17287
172882008-02-01 Jason Rumney <jasonr@gnu.org>
17289
17290 * w32font.c (w32font_close): Delete the GDI font object.
17291
17292 * w32menu.c: Include character.h.
17293
17294 * w32proc.c: Likewise.
17295
17296 * w32select.c: Likewise.
17297
17298 * makefile.w32-in (w32proc.o): Depend on character.h.
17299
173002008-02-01 Jason Rumney <jasonr@gnu.org>
17301
17302 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17303
17304 * w32menu.c (syms_of_w32menu): Likewise.
17305
17306 * w32proc.c (syms_of_ntproc): Likewise.
17307
17308 * w32select.c (syms_of_w32select): Likewise.
17309
17310 * w32term.c (syms_of_w32term): Likewise.
17311
173122008-02-01 Jason Rumney <jasonr@gnu.org>
17313
17314 * w32font.c (w32font_draw): Delete brush after using it.
17315
173162008-02-01 Jason Rumney <jasonr@gnu.org>
17317
17318 * w32font.c (w32font_open): Don't set font_idx.
17319 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17320 to font settings.
17321 (w32font_draw): Fill background explicitly.
17322
173232008-02-01 Jason Rumney <jasonr@gnu.org>
17324
17325 * w32term.c (w32_initialize): Don't call w32font_initialize.
17326
17327 * w32font.c (w32font_info): Remove subranges.
17328 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17329 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17330 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17331 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17332 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17333 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17334 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17335 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17336 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17337 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17338 New symbols.
17339 (font_callback_data): New struct.
17340 (w32font_list, w32font_match): Use it.
17341 (w32font_open): Don't populate subranges.
17342 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17343 (w32font_encode_char): Always return unicode code-point as-is.
17344 (w32font_text_extents): Supply a transformation matrix to
17345 GetGlyphOutline. Never look up by glyph index. Avoid looping
17346 twice. Use unicode version of GetTexExtentPoint32 instead of
17347 glyph index version.
17348 (set_fonts_frame): Remove.
17349 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17350 set frame parameter. Use backward compatible fake foundries.
17351 Save generic family in extra slot under QCfamily. Make width slot
17352 constant. Save QCspacing value. Save list of scripts instead of
17353 binary subranges.
17354 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17355 (add_font_entity_to_list): Use font_callback_data struct. Filter
17356 unwanted fonts.
17357 (add_one_font_entity_to_list): Use font_callback_data struct.
17358 (w32_registry): Default to iso10646_1.
17359 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17360 string font registries. Don't fill in font name if it is a generic
17361 family name, fill family instead. Use spacing, family and script
17362 extra info to fill pitch, family and charset fields.
17363 (list_all_matching_fonts): Use font_callback_data struct.
17364 (unicode_range_for_char): Remove.
17365 (font_supported_scripts): New function.
17366 (w32font_initialize): Remove.
17367 (syms_of_w32font): Update which symbols are defined.
17368
173692008-02-01 Jason Rumney <jasonr@gnu.org>
17370
17371 * font.c (font_pixel_size): Reverse assq_no_quit args.
17372
17373 * w32term.h (FONT_WIDTH): Report max width, not average.
17374 (FONT_MAX_WIDTH): Remove.
17375 (FONT_AVG_WIDTH): New macro.
17376
17377 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17378 redefinition of FONT_WIDTH.
17379
17380 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17381 (w32_cache_char_metrics): Use FONT_WIDTH.
17382
17383 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17384
173852008-02-01 Jason Rumney <jasonr@gnu.org>
17386
17387 * w32font.c (w32font_open): Make lfHeight negative.
17388
17389 * w32fns.c (x_default_font_parameter): Use new style font name.
17390 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17391
173922008-02-01 Jason Rumney <jasonr@gnu.org>
17393
17394 * w32font.c (QCsubranges): New symbol.
17395 (w32font_open, w32font_has_char): Get subranges from subproperty
17396 of extra.
17397 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17398 (syms_of_w32font): Define :subranges symbol.
17399
17400 * font.c (font_put_extra): Expose externally.
17401
17402 * font.h (font_put_extra): Move declaration from font.c.
17403
17404 * font.c (Ffont_get): Use font driver to determine otf capability.
17405 (adjust_anchor): Check if driver defines anchor_point before using.
17406
17407 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17408 (w32font_draw): Use options.
17409 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17410 Fix detection of truetype fonts.
17411 (registry_to_w32_charset): Handle charsets other than iso8859-1
17412 expressed as lisp symbols.
17413 (w32_registry): Express charset as lisp symbol.
17414 (fill_in_logfont): Reverse pixel and point height logic.
17415 Don't set width here. Set quality to default.
17416
17417 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17418 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17419
17420 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17421 Remove redundant loop and allocation.
17422
17423 * makefile.w32-in (font.o, w32font.o): New objects.
17424 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17425 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17426
17427 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17428 STORE_XCHARB a valid l-value.
17429
17430 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17431 calculations for non-Truetype fonts.
17432 (x_draw_glyph_string): Sync with xterm.c.
17433 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17434 Remove redundant code.
17435 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17436
17437 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17438 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17439
17440 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17441 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17442
17443 * w32font.c: New file for w32 font backend.
17444
174452008-02-01 Kenichi Handa <handa@m17n.org>
17446
17447 * term.c: Don't include "buffer.h" twice.
17448
174492008-02-01 Kenichi Handa <handa@m17n.org>
17450
17451 * character.c (Funibyte_string): New function.
17452 (syms_of_character): Defsubr it.
17453
174542008-02-01 Jason Rumney <jasonr@gnu.org>
17455
17456 * w32term.c [USE_FONT_BACKEND]:
17457 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17458 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17459 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17460 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17461 (x_free_frame_resources): Sync with xterm.c.
17462
174632008-02-01 Andreas Schwab <schwab@suse.de>
17464
17465 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17466 char-table size.
17467
174682008-02-01 Kenichi Handa <handa@m17n.org>
17469
17470 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17471
174722008-02-01 Kenichi Handa <handa@m17n.org>
17473
17474 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17475 font_otf_gpos, add font_drive_otf.
17476
17477 * fontset.c (fontset_find_font): Pay attention to font size
17478 specified for a font.
17479 (reorder_font_vector): Check contents of font_def.
17480
17481 * font.c (struct otf_list): Delete it.
17482 (otf_list): Make it a lisp variable.
17483 (otf_open): Use lispy otf_list.
17484 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17485 (check_otf_features): New function.
17486 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17487 New functions.
17488 (font_drive_otf): New function merging font_otf_gsub and
17489 font_otf_gpos.
17490 (font_open_for_lface): New arg spec. Change argument order.
17491 (font_load_for_face): Adjust for the change of font_open_for_lface.
17492 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17493 Ffont_otf_gpos.
17494 (syms_of_font): Staticpro otf_list. Delete defsubr of
17495 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17496
17497 * xfaces.c (set_font_frame_param): Adjust for the change of
17498 font_open_for_lface.
17499
17500 * font.h (font_open_for_lface): Adjust prototype.
17501 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17502 member otf_drive.
17503 (font_otf_gsub, font_otf_gpos): Delete externs.
17504 (font_drive_otf): Extern it.
17505
175062008-02-01 Kenichi Handa <handa@m17n.org>
17507
17508 * font.c (font_at): If the window W is not on a window system,
17509 return Qnil.
17510
17511 * coding.c (produce_chars, encode_coding): Don't call
17512 insert_from_gap if no characters to produce.
17513
175142008-02-01 Kenichi Handa <handa@m17n.org>
17515
17516 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17517 Fclear_face_cache.
17518
17519 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17520
175212008-02-01 Miles Bader <miles@gnu.org>
17522
17523 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17524 Parse "--disable-font-backend" option.
17525 (standard_args): Add "--disable-font-backend" option.
17526
175272008-02-01 Kenichi Handa <handa@m17n.org>
17528
17529 * fontset.c (fontset_find_font): New function.
17530 (fontset_font): Use fontset_find_font.
17531 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17532 Register the specified font for all Latin characters.
17533 (new_fontset_from_font): Register the specified font for all Latin
17534 characters.
17535 (dump_fontset): For a realized fontset, include the base fontset
17536 name in the returned vector.
17537
175382008-02-01 Kenichi Handa <handa@m17n.org>
17539
17540 * character.h (CHAR_STRING): Cast C to unsigned on calling
17541 char_string.
17542
17543 * character.c (char_string): Type of arg C changed to unsigned.
17544 Signal an error if C is an invalid character code.
17545
17546 * editfns.c (general_insert_function, Fchar_to_string):
17547 Use CHARACTERP, not INTEGERP.
17548
175492008-02-01 Kenichi Handa <handa@m17n.org>
17550
17551 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17552 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17553
17554 * regex.c (analyse_first): Fix for multibyte characters in "case
17555 charset:" and "case categoryspec:".
17556
175572008-02-01 Andreas Schwab <schwab@suse.de>
17558
17559 * Makefile.in (LIBES): Move standard libraries to the end.
17560
175612008-02-01 Kenichi Handa <handa@m17n.org>
17562
17563 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17564 nonzero, don't shrink the buffer nextb.
17565
17566 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17567
17568 * coding.c (coding_alloc_by_making_gap): New arg offset.
17569 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17570 offset.
17571 (decode_coding_iso_2022): Update coding->safe_charsets.
17572 (decode_coding_gap): Temporarily set
17573 current_buffer->text->inhibit_shrinking to 1.
17574
175752008-02-01 Kenichi Handa <handa@m17n.org>
17576
17577 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17578 indexing into elements of s->cmp and s->char2b.
17579
175802008-02-01 Juanma Barranquero <lekktu@gmail.com>
17581
17582 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17583
175842008-02-01 Kenichi Handa <handa@m17n.org>
17585
17586 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17587 target_multibyte instead of multibyte.
17588 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17589 (bcmp_translate): Change the argument name from multibyte to
17590 target_multibyte.
17591
175922008-02-01 Kenichi Handa <handa@m17n.org>
17593
17594 These changes are to compile a regexp into a pattern that can be
17595 used both for multibyte and unibyte targets.
17596
17597 * Makefile.in (search.o): Depend on charset.h.
17598
17599 * character.c (multibyte_char_to_unibyte_safe): New function.
17600
17601 * search.c: Include "charset.h".
17602 (compile_pattern_1): Delete argument multibyte. Don't set
17603 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17604 (compile_pattern): Don't compare cp->buf.target_multibyte.
17605 Compare cp->buf.charset_unibyte.
17606 (compile_pattern): Set cp->buf.target_multibyte.
17607
17608 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17609
17610 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17611
17612 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17613 multibyte. Change callers.
17614 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17615 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17616 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17617 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17618 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17619 (regex_compile): Make the compiled pattern usable both for
17620 multibyte and unibyte targets.
17621 (analyse_first): Make the fastmap usable both for multibyte and
17622 unibyte targets.
17623 (TRANSLATE_VIA_MULTIBYTE): Delete.
17624 (re_match_2_internal): Pay attention to the case that the
17625 multibyteness of bufp and target may be different.
17626
176272008-02-01 Kenichi Handa <handa@m17n.org>
17628
17629 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17630 empty box occupy at least one column width.
17631
176322008-02-01 Miles Bader <miles@gnu.org>
17633
17634 * Makefile.in: Remove redundant HAVE_XFT clause.
17635
176362008-02-01 Kenichi Handa <handa@m17n.org>
17637
17638 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17639
176402008-02-01 Kenichi Handa <handa@m17n.org>
17641
17642 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17643 being nil.
17644
176452008-02-01 Kenichi Handa <handa@m17n.org>
17646
17647 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17648
176492008-02-01 Kenichi Handa <handa@m17n.org>
17650
17651 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17652
176532008-02-01 Kenichi Handa <handa@m17n.org>
17654
17655 * search.c (simple_search): Fix previous change.
17656
176572008-02-01 Kenichi Handa <handa@m17n.org>
17658
17659 * xftfont.c (ftfont_font_format): Extern declaration.
17660
17661 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17662
17663 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17664 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17665
17666 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17667 (ftfont_font_format): Fix previous change.
17668
17669 * font.h (Ffont_xlfd_name): EXFUN it.
17670
17671 * font.c (font_parse_xlfd): Fix the array size of `f'.
17672 (register_font_driver): Use EQ to compare driver->type.
17673
17674 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17675 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17676 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17677
176782008-02-01 Kenichi Handa <handa@m17n.org>
17679
17680 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17681 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17682
176832008-02-01 Kenichi Handa <handa@m17n.org>
17684
17685 * xfont.c (xfont_open): Set font->format.
17686
17687 * xftfont.c (xftfont_open): Set font->format.
17688
17689 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17690 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17691 (ftfont_open): Set font->format.
17692 (ftfont_font_format): New function.
17693
17694 * font.h (struct font): New member format.
17695
17696 * font.c (Qopentype): New variable.
17697 (syms_of_font): Defsym it.
17698 (Fquery_font): Change the format of the last element of the return
17699 value.
17700
177012008-02-01 Kenichi Handa <handa@m17n.org>
17702
17703 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17704 last resort.
17705
177062008-02-01 Kenichi Handa <handa@m17n.org>
17707
17708 * coding.c (detect_coding_charset): Fix detection of multi-byte
17709 charset.
17710
177112008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17712
17713 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17714
177152008-02-01 Kenichi Handa <handa@m17n.org>
17716
17717 * xdisp.c (get_next_display_element): Set it->face_id for the
17718 first component of a composition.
17719 (x_produce_glyphs): Check if the font is changed or not for composition.
17720
177212008-02-01 Kenichi Handa <handa@m17n.org>
17722
17723 * fontset.c (Qlatin): New variable.
17724 (syms_of_fontset): Define it as a lisp symbol.
17725 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17726
177272008-02-01 Kenichi Handa <handa@m17n.org>
17728
17729 * font.c (font_unparse_fcname): Pay attention to the case that
17730 some of font property is a null string.
17731
177322008-02-01 Kenichi Handa <handa@m17n.org>
17733
17734 * term.c: Include "composite.h".
17735 (encode_terminal_code): Output all components of composition.
17736 Check the size of encode_terminal_src.
17737 (produce_glyphs): For composition, call produce_composite_glyph.
17738 (append_composite_glyph, produce_composite_glyph): New functions.
17739
17740 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17741 is not found, get font_info from the current ascii face.
17742
177432008-02-01 Kenichi Handa <handa@m17n.org>
17744
17745 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17746 buffer-file-name to Qnil before calling insert_from_buffer.
17747
17748 * font.c (font_unparse_fcname): Pay attention to the case that
17749 foundry is a null string.
17750
177512008-02-01 Kenichi Handa <handa@m17n.org>
17752
17753 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17754
17755 * font.c (Qunicode_sip): New variable.
17756 (syms_of_font): Declare it as a Lisp symbol.
17757
17758 * font.h (Qunicode_sip): Extern it.
17759
177602008-02-01 Kenichi Handa <handa@m17n.org>
17761
17762 * composite.c (get_composition_id): Pay attention to TAB component.
17763
17764 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17765 TAB. Adjust for the change of s->char2b which always points to
17766 the first element of allocated memory.
17767
17768 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17769
17770 * xdisp.c (handle_composition_prop): Set it->c to the first
17771 non-TAB component.
17772 (fill_composite_glyph_string): Change argument.
17773 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17774 (x_produce_glyphs): Fix handling of left/right padding.
17775
177762008-02-01 Kenichi Handa <handa@m17n.org>
17777
17778 * coding.c (detect_coding_system): Fix for handling off
17779 inhibit_iso_escape_detection. Fix for the case that no coding
17780 system is defined for a specific coding category.
17781
177822008-02-01 Kenichi Handa <handa@m17n.org>
17783
17784 * font.c (font_matching_entity): Delete unused local var.
17785
17786 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17787 opening a font.
17788
17789 * fileio.c (Finsert_file_contents): On recovering a file, assume
17790 Unix-like eol.
17791 (choose_write_coding_system): On auto-saving a file, force
17792 Unix-like eol.
17793
17794 * coding.c (setup_coding_system): Fix setting of
17795 coding->common_flags based on eol_type.
17796 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17797 inherit from it.
17798
177992008-02-01 Kenichi Handa <handa@m17n.org>
17800
17801 * alloc.c (NSTATICS): Increas to 0x600.
17802
178032008-02-01 Kenichi Handa <handa@m17n.org>
17804
17805 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17806 (ftfont_list): Don't check :name property.
17807 (ftfont_match): New function.
17808 (ftfont_pattern_entity): If the pattern doesn't contain
17809 FC_SPACING, don't assume FC_MONO.
17810
17811 * font.h (struct font_driver): New member `match'.
17812 (font_update_drivers): Adjust prototype.
17813
17814 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17815 property of FONT.
17816 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17817 them unconditionally.
17818 (font_matching_entity): New function.
17819 (font_open_by_name): Try font_matching_entity if exact match is
17820 not found.
17821 (font_update_drivers): Delete the arg FONT. Return a list of
17822 actually used backends. Don't free faces, font caches here.
17823 Don't store data in frame parameters. Don't call x_set_font.
17824 (Ffont_spec): Store :name property as is.
17825 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17826 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17827 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17828 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17829 Call font->driver->otf_gsub instead of font_otf_gsub.
17830
17831 * frame.c (x_set_font_backend): Do more works that were done in
17832 font_update_drivers before.
17833
17834 * xfont.c (xfont_match): New function.
17835 (xfont_driver): Set xfont_driver.match to xfont_match.
17836 (xfont_draw): Set font in GC if necessary.
17837
17838 * ftxfont.c (ftxfont_match): New function.
17839 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17840
17841 * xftfont.c (xftfont_match): New function.
17842 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17843
178442008-02-01 Kenichi Handa <handa@m17n.org>
17845
17846 * font.h (struct font): New member scalable.
17847 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17848 (font_otf_gsub): Adjust prototype.
17849
17850 * font.c (font_otf_capability): Fix handling of the default langsys.
17851 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17852 Check the contents of SPEC.
17853 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17854 (check_gstring): New function.
17855 (REPLACEMENT_CHARACTER): New macro.
17856 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17857 glyph codes of GSTRING.
17858 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17859 (font_prepare_composition): Set cmp->glyph_len.
17860 (font_open_entity): Set font->scalable.
17861 (Ffont_get): Handle :otf property.
17862 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17863 functions.
17864 (Fquery_font): Use font->font.full_name.
17865 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17866 Sfont_otf_alternates.
17867
17868 * ftfont.c (ftfont_open): Set font->font.full_name and
17869 font->font.name properly. Fix calculation of font->font.height
17870 and font->min_width.
17871
17872 * ftxfont.c (ftxfont_create_gcs): New function.
17873 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17874 (ftxfont_draw_backgrond): Fix filling region.
17875 (ftxfont_default_fid): New function.
17876 (ftxfont_open): Set xfont->fid to the return value of
17877 ftxfont_default_fid.
17878 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17879 (ftxfont_done_face): Free only GCs that are created by
17880 ftxfont_create_gcs.
17881 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17882
17883 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17884 Clip to src->width, etc (not src->clip_XXX).
17885
17886 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17887 FontBackend frame parameter.
17888
178892008-02-01 Kenichi Handa <handa@m17n.org>
17890
17891 * font.h (struct font_driver_list): New member `on'.
17892 (Fclear_font_cache): EXFUN it.
17893 (font_update_drivers): Extern it.
17894
17895 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17896 (font_list_entities): Check driver_list->on.
17897 (register_font_driver): Initalize `on' member to 0.
17898 (font_update_drivers): New function.
17899 (Fclear_font_cache): Check driver_list->on.
17900
17901 * frame.h (Qfont_backend): Extern it.
17902 (x_set_font_backend): Extern it.
17903
17904 * frame.c (Qfont_backend): New variable.
17905 (frame_parms): New element for font-backend.
17906 (x_set_font_backend): New function.
17907
17908 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17909 FontBackend frame parameter.
17910 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17911 x_set_font_backend.
17912
17913 * xfont.c (xfont_list): Don't try listing by :name property if the
17914 name is not for XLFD.
17915
179162008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17919 (LGLYPH_SET_TO): New macros.
17920 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17921 element of G is vector or not.
17922 (font_at): Extern it.
17923
17924 * font.c: Include window.h.
17925 (font_lispy_object): New function.
17926 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17927 end of valid glyph.
17928 (font_close_object): Fix getting (struct font *).
17929 (font_at): New function.
17930 (Ffont_get): If FONT is a font-object, get entity from it.
17931 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17932 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17933 range check.
17934 (Ffont_at): New function.
17935 (syms_of_font): Defsubr Sfont_at.
17936
17937 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17938 before the entry for Qcomposition.
17939 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17940 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17941 the font in gstring.
17942 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17943 LGLYPH_FORM (g) to detect the end of valid glyph.
17944 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17945 we are composing with gstring.
17946
17947 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17948 Check if adjustment is vector or not.
17949
17950 * Makefile.in (font.o): Make it depends on window.h.
17951
179522008-02-01 Kenichi Handa <handa@m17n.org>
17953
17954 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17955 adjustment is vector or not.
17956
179572008-02-01 Miles Bader <miles@gnu.org>
17958
17959 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17960
179612008-02-01 Kenichi Handa <handa@m17n.org>
17962
17963 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17964 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17965 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17966
17967 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17968 (DEVICE_DELTA): Fix typo.
17969 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17970 LGLYPH format.
17971
17972 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17973 the change of LGLYPH format.
17974
179752008-02-01 Kenichi Handa <handa@m17n.org>
17976
17977 * ftfont.c (ftfont_list): Fix typo.
17978 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17979
179802008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17981
17982 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17983
17984 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17985 xftface_info is non-NULL.
17986
179872008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17988
17989 * ftfont.c (ftfont_list): Move misplaced #endif.
17990
179912008-02-01 Kenichi Handa <handa@m17n.org>
17992
17993 * ftfont.c (ftfont_list): Pay attention to the case that
17994 FC_CAPABILITY is not defined.
17995
179962008-02-01 Kenichi Handa <handa@m17n.org>
17997
17998 * xftfont.c (xftfont_open): Set charset related members to -1.
17999
18000 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18001 QCname.
18002 (ftfont_open): Set charset related members to -1.
18003
18004 * fontset.c (Votf_script_alist): New variable.
18005 (syms_of_fontset): Initialize it.
18006 (fontset_font): Delete unused variable.
18007
18008 * fontset.h (Votf_script_alist): Extern it.
18009
18010 * font.c (font_find_for_lface): Optimize code.
18011
18012 * font.h (font_close_object, font_merge_old_spec): Extern them.
18013
180142008-02-01 Kenichi Handa <handa@m17n.org>
18015
18016 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18017 (syms_of_font): Initialize them.
18018 (font_pixel_size): Allow float value in dpi.
18019 (font_prop_validate_type): Delete.
18020 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18021 Change caller.
18022 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18023 (font_prop_validate_extra): Delete.
18024 (font_prop_validate_spacing): New function.
18025 (font_property_table): Add elements for all known properties.
18026 (get_font_prop_index): Rename from check_font_prop_name. New
18027 argument FROM. Change caller.
18028 (font_prop_validate): Validate all known properties.
18029 (font_put_extra): Delete argument force. Change caller.
18030 (font_expand_wildcards): Make it static. Fix the way of shrinking
18031 the possible range.
18032 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18033 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18034 Change caller.
18035 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18036 (font_parse_fcname): Delete argument merge. Fix parsing of point
18037 size. Don't validate properties values here. Change caller.
18038 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18039 (font_open_by_name): Delete unused variable.
18040 (Ffont_spec): Likewise. Validate property values.
18041 (Ffont_match_p): New function.
18042
18043 * font.h (QCscalable): Extern it.
18044 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18045
18046 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18047
18048 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18049 (xfont_list_pattern): New function.
18050 (xfont_list): Use xfont_list_pattern.
18051
180522008-02-01 Kenichi Handa <handa@m17n.org>
18053
18054 * font.h (Flist_fonts): EXFUN it.
18055
180562008-02-01 Jason Rumney <jasonr@gnu.org>
18057
18058 * w32term.c (w32_initialize): Add back smoothing_type and
18059 smoothing_enabled definitions.
18060
180612008-02-01 Kenichi Handa <handa@m17n.org>
18062
18063 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18064 s->face->font on determining underline position.
18065
180662008-02-01 Kenichi Handa <handa@m17n.org>
18067
18068 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18069 (font_has_char): Accept font-object too.
18070 (font_find_for_lface): Try at first with a size specified in face.
18071
180722008-02-01 Kenichi Handa <handa@m17n.org>
18073
18074 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18075 font_open_by_name.
18076
180772008-02-01 Kenichi Handa <handa@m17n.org>
18078
18079 * font.h (QCspacing, QCdpi): Extern them.
18080 (enum font_spacing): New enum.
18081 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18082
18083 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18084 (QCspacing, QCdpi): New variables.
18085 (syms_of_font): Initialize them.
18086 (font_pixel_size): New function.
18087 (font_put_extra): New function.
18088 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18089 in FONT_EXTRA.
18090 (font_parse_fcname): Handle enumerated values (e.g. bold).
18091 Fix handling font size. Add QCname property that contains only
18092 unknown properties.
18093 (font_score): Change argument. Change caller. Pay attention to
18094 FONT_PIXEL_SIZE_QUANTUM.
18095 (font_sort_entites, font_list_entities, font_find_for_lface)
18096 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18097 (Ffont_spec): Add QCname property that contains only unknown properties.
18098
18099 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18100 include weight in listing pattern, instead check weight of each
18101 listed font. Don't include scalable in pattern. Pay attention to
18102 FONT_PIXEL_SIZE_QUANTUM.
18103
181042008-02-01 Kenichi Handa <handa@m17n.org>
18105
18106 * font.c (font_parse_fcname): Fix parsing of point-size.
18107 (font_unparse_fcname): Produce symbolic names for style properties.
18108 (font_list_entities): Handle float size correctly.
18109 (font_open_by_name): Prefer `normal' property values if the name
18110 doesn't specify them.
18111
18112 * fontset.c (Finternal_char_font): Use font_get_name, not
18113 Ffont_xlfd_name.
18114
18115 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18116 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18117 pattern. Don't force scalable.
18118
18119 * xftfont.c (xftfont_open): For generating a name, start from
18120 96-byte buffer.
18121
181222008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18123
18124 * frame.h (x_new_fontset2): Fix prototype.
18125
181262008-02-01 Kenichi Handa <handa@m17n.org>
18127
18128 * font.h (struct font_driver): Delete member parse_name.
18129 (font_match_p, font_get_spec, font_parse_fcname)
18130 (font_unparse_fcname): Extern them.
18131 (font_get_name): Adjust prototype.
18132
18133 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18134 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18135 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18136 unnecessary checks for weight, slant, and swidth.
18137 (font_parse_fcname): New function.
18138 (font_unparse_fcname): New function.
18139 (font_parse_name): New function.
18140 (font_match_p): New function.
18141 (font_get_name): Change return value to Lisp string.
18142 (font_get_spec): New function.
18143 (Qunspecified, Qignore_defface): Don't extern them.
18144 (font_find_for_lface): Assume that LFACE is fully specified.
18145 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18146 object, use it for FACE.
18147 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18148 driver->parse_name.
18149 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18150
18151 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18152 prototype.
18153
18154 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18155 argument F. Don't call Fnew_fontset. Instead, directly call
18156 make_fontset.
18157
18158 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18159
18160 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18161 of x_new_fontset2.
18162
18163 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18164 (Qsans__serif): New variables.
18165 (ftfont_generic_family_list): New variable.
18166 (syms_of_ftfont): Initialize the above variables.
18167 (ftfont_pattern_entity): Delete argument NAME.
18168 (ftfont_list_generic_family): New function.
18169 (ftfont_parse_name): Delete this function.
18170 (ftfont_list): Try generic family only when FcFontList found no font.
18171 (ftfont_list_family): Fix args to FcObjectSetBuild.
18172
18173 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18174 object in attrs[LFACE_FONT_INDEX].
18175 (set_lface_from_font_name): Cancel all changes for font-backend.
18176 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18177 function.
18178 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18179 font object in QCfont attribute.
18180 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18181 (realize_default_face) [USE_FONT_BACKEND]: Call
18182 set_lface_from_font_and_fontset.
18183
18184 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18185 "fixed", and signal error here if no suitable font was found.
18186
18187 * xfont.c (xfont_parse_name): Delete this function.
18188
18189 * xftfont.c (xftfont_open): Change coding style of error
18190 handling. Generate fontconfig's fontname pattern.
18191
18192 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18193 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18194
18195 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18196 Both args FONTSET and FONT_OBJECT must be existing ones.
18197
181982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18199
18200 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18201
182022008-02-01 Kenichi Handa <handa@m17n.org>
18203
18204 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18205
18206 * font.h (struct font): Fix typo.
18207
18208 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18209 XLFD_XXX_INDEX.
18210 (enum xlfd_field_mask): New enum.
18211 (intern_font_field): Changed argument. Change caller. If digits
18212 are followed by non-digits, return a symbol.
18213 (font_expand_wildcards): New function.
18214 (font_parse_xlfd): Fix wildcard handling.
18215 (Ffont_spec): If :name is specified, reflect the info in the other
18216 properties.
18217
18218 * ftfont.c (ftfont_pattern_entity): Fix typo.
18219 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18220 locale.
18221
182222008-02-01 Kenichi Handa <handa@m17n.org>
18223
18224 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18225
18226 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18227 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18228 registry doesn't specify encoding part.
18229 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18230 (font_open_by_name): At first try parsing the name.
18231 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18232 as Lisp symbols.
18233
18234 * fontset.c (reorder_font_vector): Pay attention to the case that
18235 the 3rd element of font_def is nil.
18236 (fontset_font): For the default fontset, append one more fontset
18237 elements for a script-based font specification. Don't add script
18238 attribute on finding a font.
18239 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18240 font name.
18241 (fontset_ascii_font): If a font can't be opened, return nil.
18242
18243 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18244 (ftfont_pattern_entity): New function.
18245 (ftfont_get_cache): Assume that freetype_font_cache is already
18246 initialized.
18247 (ftfont_list): Handle the case that a file is specified in font
18248 name. Use ftfont_pattern_entity to generate entities.
18249 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18250 (syms_of_ftfont): Initialize freetype_font_cache.
18251
18252 * xftfont.c (xftfont_open): Make the font name fontconfig's
18253 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18254 (xftfont_close): Free font->font.name if not NULL.
18255
18256 * xfont.c (xfont_list): If script is specified for a font, return
18257 null_vector.
18258 (xfont_list_family): Declare argument type.
18259
18260 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18261 name, set LFACE_FONT (lface) to nil.
18262
18263 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18264 return Qnil.
18265
182662008-02-01 Kenichi Handa <handa@m17n.org>
18267
18268 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18269 (standard_args): Add "-enable-font-backend".
18270
182712008-02-01 Kenichi Handa <handa@m17n.org>
18272
18273 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18274 (struct xftdraw_list, xftdraw_list): Delete them.
18275 (register_xftdraw, check_xftdraw): Delete them.
18276 (xftfont_prepare_face): Don't call register_xftdraw.
18277 (xftfont_done_face): Don't call check_xftdraw.
18278 (xftfont_draw): Get background color only when with_background is
18279 nonzero.
18280
18281 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18282
182832008-02-01 Kenichi Handa <handa@m17n.org>
18284
18285 These changes are for the new font handling codes.
18286
18287 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18288 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18289 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18290 (FONTSRC, FONTOBJ): New variables.
18291 (obj): Add $(FONTOBJ).
18292 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18293 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18294 @LIBOTF_LIBS@.
18295 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18296 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18297
18298 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18299
18300 * character.h (Vscript_representative_chars): Extern it.
18301
18302 * character.c (Vscript_representative_chars): New variable.
18303 (syms_of_character): Declare it as a Lisp variable.
18304
18305 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18306 enable_font_backend is nonzero, accept the composition method
18307 COMPOSITION_WITH_GLYPH_STRING.
18308
18309 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18310 enumeration COMPOSITION_WITH_GLYPH_STRING.
18311
18312 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18313 members clip_x, clip_y, clip_width, and clip_height.
18314 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18315
18316 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18317 --enable-font-backend. Call syms_of_font.
18318
18319 * fns.c (assoc_no_quit): New function.
18320
18321 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18322 (face_for_font, new_fontset_from_font)
18323 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18324
18325 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18326 (fontset_font, fontset_ascii, face_for_char)
18327 (make_fontset_for_ascii_face, Ffont_info)
18328 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18329 is nonzero, use font-backend mechanism.
18330 (find_font_encoding): Make it non-static.
18331 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18332 New functions.
18333
18334 * frame.h (struct frame): New members resx and resy.
18335 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18336 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18337
18338 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18339 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18340
18341 * lisp.h (assoc_no_quit): Extern it.
18342
18343 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18344 Through out the file, use FONT_INFO_FROM_FACE instead of
18345 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18346 rif->per_char_metric.
18347 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18348 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18349 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18350 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18351 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18352 nonzero, use font-backend mechanism.
18353 (get_per_char_metric): New function.
18354
18355 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18356 (set_lface_from_font_name)
18357 (set_font_frame_param, free_realized_face)
18358 (prepare_face_for_display, clear_face_gcs)
18359 (Finternal_set_font_selection_order, realize_x_face)
18360 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18361 font-backend mechanism.
18362 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18363 (load_face_font) [USE_FONT_BACKEND]: Abort.
18364 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18365 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18366
18367 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18368 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18369 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18370 nonzero, register all available font drivers. Call
18371 x_default_font_parameter for deciding a font.
18372 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18373
18374 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18375 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18376 (x_set_glyph_string_clipping_exactly)
18377 (x_compute_glyph_string_overhangs)
18378 (x_draw_glyph_string_foreground)
18379 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18380 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18381 enable_font_backend is nonzero, use font-backend mechanism.
18382 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18383
183842008-02-01 Kenichi Handa <handa@m17n.org>
18385
18386 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18387 system_eol_type.
18388 (syms_of_coding): Initialize system_eol_type.
18389
18390 * process.c (Fset_process_coding_system): Inherit system's eol
18391 format if necessary.
18392
183932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18394
18395 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18396
183972008-02-01 Kenichi Handa <handa@m17n.org>
18398
18399 * coding.c (decode_eol): Pay attention to buffer relocation in
18400 del_range_2.
18401 (decode_coding): Call decode_eol before restoring undo_list.
18402
184032008-02-01 Kenichi Handa <handa@m17n.org>
18404
18405 * charset.c (Fdefine_charset_internal): Fix setting of
18406 emacs_mule_bytes.
18407
184082008-02-01 Kenichi Handa <handa@m17n.org>
18409
18410 * keyboard.c (read_char): Check if C is a character or not before
18411 looking up Vkeyboard_translate_table.
18412
184132008-02-01 Kenichi Handa <handa@m17n.org>
18414
18415 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18416 condition to terminate the loop.
18417
184182008-02-01 Kenichi Handa <handa@m17n.org>
18419
18420 * coding.c (produce_composition): Compare charbuf[i] instead of
18421 args[i] against 0.
18422 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18423
184242008-02-01 Kenichi Handa <handa@m17n.org>
18425
18426 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18427 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18428 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18429 detect_coding.
18430 (emacs_mule_char): Handle old style (Emacs 20) component character
18431 of a composition.
18432 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18433 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18434 composition rule.
18435 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18436
184372008-02-01 Kenichi Handa <handa@m17n.org>
18438
18439 * coding.c (encode_coding_ccl): Allocate destination dynamically
18440 when necessary.
18441
184422008-02-01 Kenichi Handa <handa@m17n.org>
18443
18444 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18445 the loop. When quitted, show a proper error message.
18446
184472008-02-01 Kenichi Handa <handa@m17n.org>
18448
18449 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18450 src->clip_head and src->clip_tail temporarily instead of src->hl.
18451
18452 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18453 character sequence.
18454 (Fccl_execute_on_string): Use ASET, not XSET.
18455
184562008-02-01 Kenichi Handa <handa@m17n.org>
18457
18458 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18459
184602008-02-01 Kenichi Handa <handa@m17n.org>
18461
18462 * coding.c (decode_coding): Fix the condition of terminating the
18463 decoding loop.
18464
184652008-02-01 Kenichi Handa <handa@m17n.org>
18466
18467 * data.c (Faset): On setting a character bigger than 255 in a
18468 unibyte string, signal an error instead of make the string multibyte.
18469
184702008-02-01 Kenichi Handa <handa@m17n.org>
18471
18472 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18473 made by a mapping table.
18474
184752008-02-01 Kenichi Handa <handa@m17n.org>
18476
18477 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18478 not.
18479 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18480 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18481
18482 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18483 s->face is NULL or not.
18484
184852008-02-01 Kenichi Handa <handa@m17n.org>
18486
18487 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18488 (x_draw_glyph_string): Fix drawing of right_overhang and
18489 left_overhang around/on cursor.
18490
18491 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18492
184932008-02-01 Kenichi Handa <handa@m17n.org>
18494
18495 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18496
184972008-02-01 Kenichi Handa <handa@m17n.org>
18498
18499 * coding.c (Fdefine_coding_system_internal)
18500 (Fdefine_coding_system_alias): Avoid a duplicated element in
18501 Vcoding_system_alist.
18502
185032008-02-01 Kenichi Handa <handa@m17n.org>
18504
18505 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18506
18507 * coding.c (Qcoding_system_define_form): New variable.
18508 (syms_of_coding): Intern and staticpro it.
18509 (Fcoding_system_p): Check Qcoding_system_define_form.
18510 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18511
18512 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18513 Fcoding_system_p.
18514 (CHECK_CODING_SYSTEM): If ID is not available, call
18515 Fcheck_coding_system.
18516 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18517 Try also Fcheck_coding_system.
18518
185192008-02-01 Kenichi Handa <handa@m17n.org>
18520
18521 * coding.c (code_conversion_restore): GCPRO arg.
18522
185232008-02-01 Kenichi Handa <handa@m17n.org>
18524
18525 * character.c (lisp_string_width): Check multibyteness of STRING.
18526
185272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18528
18529 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18530 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18531 (decode_mac_font_name): Use decode_coding_c_string instead of
18532 decode_coding.
18533 (x_load_font): Initialize fontp->fontset to -1. Set
18534 fontp->encoding_type.
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 * search.c (search_buffer): Give up BM search on case-fold-search
18539 if one of a target character has a case-equivalence of different
18540 byte length even if that target charcter is an ASCII.
18541 (simple_search): Fix calculation of byte length of matched text.
18542 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18543
185442008-02-01 Kenichi Handa <handa@m17n.org>
18545
18546 * coding.c (decode_coding): Fix handling of invalid bytes.
18547
185482008-02-01 Kenichi Handa <handa@m17n.org>
18549
18550 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18551 Unicode characters.
18552
185532008-02-01 Kenichi Handa <handa@m17n.org>
18554
18555 * coding.c (encode_coding_object): If a pre-write-conversion
18556 function makes a new buffer, kill it.
18557
185582008-02-01 Kenichi Handa <handa@m17n.org>
18559
18560 * coding.c (QCascii_compatible_p): New variable.
18561 (syms_of_coding): Initialize it.
18562 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18563 calling string_char.
18564 (record_conversion_result): Add `default:' case.
18565 (coding_charset_list): Delete unused variable `coding_type'.
18566 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18567 property in the plist of the coding system.
18568 (Fcoding_system_put): Check QCascii_compatible_p.
18569
185702008-02-01 Miles Bader <miles@gnu.org>
18571
18572 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18573 removed calculation of frame `f', as it's now used.
18574
185752008-02-01 Kenichi Handa <handa@m17n.org>
18576
18577 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18578 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18579 (UNIDATA): New variable.
18580 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18581 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18582 $(RUN_TEMACS) unconditionally.
18583
185842008-02-01 Kenichi Handa <handa@m17n.org>
18585
18586 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18587 (admindir): New variable.
18588 ($(lispsource)international/charprop.el): New target.
18589
185902008-02-01 Miles Bader <miles@gnu.org>
18591
18592 * character.c (chars-in-region): Remove obsolete function.
18593 (syms_of_character): Remove its initialization.
18594
185952008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18596
18597 * w32select.c (validate_coding_system)
18598 (setup_windows_coding_system): New functions.
18599 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18600 setup_windows_coding_system.
18601 (setup_config, Fw32_get_clipboard_data): Use
18602 validate_coding_system.
18603 (Fx_selection_exists): Move call to setup_config to a place
18604 where signals are allowed.
18605
18606 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18607 (Fcheck_coding_system): Add declarations.
18608
186092008-02-01 Kenichi Handa <handa@m17n.org>
18610
18611 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18612
186132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18614
18615 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18616 string as the second argument for x_new_fontset.
18617
186182008-02-01 Kenichi Handa <handa@m17n.org>
18619
18620 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18621 (encode_coding_object): Use safe_call instead of call2.
18622
186232008-02-01 Kenichi Handa <handa@m17n.org>
18624
18625 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18626
18627 * Makefile.in (lisp): Include charprop.el.
18628
186292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18630
18631 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18632 Not sure if it's unnecessary.
18633
186342008-02-01 Steven Tamm <steventamm@mac.com>
18635
18636 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18637 some possibly unnecessary fontset checking code that crashed
18638 when creating a new frame.
18639
186402008-02-01 Kenichi Handa <handa@m17n.org>
18641
18642 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18643 lookup_face.
18644
18645 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18646
18647 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18648
186492008-02-01 Kenichi Handa <handa@m17n.org>
18650
18651 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18652 (coding_charset_list): New function.
18653
18654 * coding.h (coding_charset_list): Extern it.
18655
186562008-02-01 Kenichi Handa <handa@m17n.org>
18657
18658 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18659 concatenation of family and registry.
18660
186612008-02-01 Kenichi Handa <handa@m17n.org>
18662
18663 * character.h (BYTE8_STRING): Fix typo.
18664
18665 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18666 string to multibyte (sync to HEAD).
18667
18668 * casefiddle.c (casify_region): Handle changes in byte-length
18669 using replace_range_2 (sync to HEAD).
18670
186712008-02-01 Andreas Schwab <schwab@suse.de>
18672
18673 * chartab.c (map_char_table): GCPRO table and arg.
18674
186752008-02-01 Kenichi Handa <handa@m17n.org>
18676
18677 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18678 already at limit.
18679
186802008-02-01 Kenichi Handa <handa@m17n.org>
18681
18682 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18683 instead of fast_c_string_match_ignore_case.
18684 (find_font_encoding): Change argument to Lisp_Object. Use
18685 fast_string_match_ignore_case instead of
18686 fast_c_string_match_ignore_case. Change caller.
18687
186882008-02-01 Kenichi Handa <handa@m17n.org>
18689
18690 * xdisp.c (get_next_display_element): In unibyte case, decide to
18691 display in octal form by checking a character by
18692 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18693
18694 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18695
18696 * character.c (unibyte_has_multibyte_table): New variable.
18697
18698 * character.h (unibyte_has_multibyte_table): Extern it.
18699 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18700
187012008-02-01 Kenichi Handa <handa@m17n.org>
18702
18703 * coding.c (encode_coding_iso_2022): Fix handling of charset
18704 annotation.
18705
187062008-02-01 Kenichi Handa <handa@m17n.org>
18707
18708 * coding.c (setup_coding_system): If coding_system is nil, use
18709 Qundecided.
18710 (Fterminal_coding_system): Return nil if terminal coding system is
18711 `undecided'.
18712 (syms_of_coding): Define coding-system `undecided' here. Setup
18713 terminal_coding as `undecided'.
18714
187152008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * xdisp.c (message_dolog, set_message_1): Call
18718 unibyte_char_to_multibyte with arg type int.
18719
18720 * lread.c (read1): Fix reading of a char-table.
18721
18722 * print.c (print_object): Include sub char-table in circularities
18723 detection.
18724
187252008-02-01 Kenichi Handa <handa@m17n.org>
18726
18727 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18728 Append the found sequences in car of ARGS instead of prepending.
18729
187302008-02-01 Kenichi Handa <handa@m17n.org>
18731
18732 * fileio.c (report_file_error): Make a unibyte string from
18733 strerror (errorno).
18734 (Fsubstitute_in_file_name): Fix the arg to
18735 unibyte_char_to_multibyte. It is evaluated twice.
18736
187372008-02-01 Kenichi Handa <handa@m17n.org>
18738
18739 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18740
187412008-02-01 Kenichi Handa <handa@m17n.org>
18742
18743 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18744 BOM is not found.
18745 (detect_coding, detect_coding_system): Optimization for ISO-2022
18746 when no 8-bit data is found.
18747
187482008-02-01 Jason Rumney <jasonr@gnu.org>
18749
18750 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18751
187522008-02-01 Kenichi Handa <handa@m17n.org>
18753
18754 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18755 CHARS.
18756
187572008-02-01 Steven Tamm <steventamm@mac.com>
18758
18759 * macterm.c (mac_encode_char): Add charset argument and update
18760 to use encoding_type.
18761 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18762 switch to pure fontset.
18763 (decode_mac_font_name): Temporarily remove decoding.
18764 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18765 (x_load_font): Temporarily remove encoding.
18766
187672008-02-01 Kenichi Handa <handa@m17n.org>
18768
18769 * xfaces.c (Fface_font): If frame is not on a window system,
18770 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18771 refer to face->font.
18772 (split_font_name_into_vector, build_font_name_from_vector)
18773 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18774 when HAVE_WINDOW_SYSTEM is defined.
18775
187762008-02-01 Kenichi Handa <handa@m17n.org>
18777
18778 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18779 (x_produce_glyphs): Fix setting of members of cmp in case
18780 cmp->glyph_len is zero.
18781
18782 * fontset.c (Fset_fontset_font): Fix docstring.
18783 (Ffontset_info): Make it backward compatible. New arg ALL.
18784
187852008-02-01 Kim F. Storm <storm@cua.dk>
18786
18787 * process.c (read_process_output): Grow decoding_buf when needed;
18788 this could cause a crash in allocate_string and compact_small_strings.
18789
187902008-02-01 Kenichi Handa <handa@m17n.org>
18791
18792 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18793
187942008-02-01 Kenichi Handa <handa@m17n.org>
18795
18796 * coding.c (setup_coding_system): Set coding->common_flags
18797 correctly for raw-text.
18798 (consume_chars): On encoding unibyte text by raw-text, don't check
18799 multibyte form.
18800 (encode_coding): On encoding by raw-text, never use translation tables.
18801
18802 * fileio.c (e_write): Short cut for the case of no encoding.
18803
188042008-02-01 Kenichi Handa <handa@m17n.org>
18805
18806 * coding.c (detect_coding, detect_coding_system): Delete unused
18807 variables.
18808
188092008-02-01 Kenichi Handa <handa@m17n.org>
18810
18811 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18812 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18813
188142008-02-01 Kenichi Handa <handa@m17n.org>
18815
18816 * coding.c (Ffind_coding_systems_region_internal): Include
18817 raw-text and no-conversion in the result.
18818
188192008-02-01 Kenichi Handa <handa@m17n.org>
18820
18821 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18822 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18823 FONT_DEF.
18824 (font_def_arg, add_arg, from_arg, to_arg): New args.
18825 (set_fontset_font): Change argument.
18826 (Fset_fontset_font): Fix for the case that TARGET is a script
18827 name and charset name.
18828 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18829
188302008-02-01 Kenichi Handa <handa@m17n.org>
18831
18832 * fontset.c (fontset_font): Rename from fontset_face. Change return
18833 value.
18834 (face_suitable_for_char_p, face_for_char): Adjust for the change
18835 of fontset_font.
18836 (make_fontset_for_ascii_face): Fix setting of the fontset element
18837 for ASCII.
18838 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18839 to get a font name.
18840 (Ffontset_info): Adjust for the change of fontset_font.
18841
18842 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18843
18844 * character.h (LEADING_CODE_LATIN_1_MIN)
18845 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18846
188472008-02-01 Kenichi Handa <handa@m17n.org>
18848
18849 * editfns.c (check_translation): New function.
18850 (Ftranslate_region_internal): Handle M:N mapping.
18851
188522008-02-01 Kenichi Handa <handa@m17n.org>
18853
18854 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18855
188562008-02-01 Kenichi Handa <handa@m17n.org>
18857
18858 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18859 goto invalid_code.
18860 (decode_coding_iso_2022): Fix handling of invalid designation.
18861
18862 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18863 after calling code_conversion_save.
18864
188652008-02-01 Kenichi Handa <handa@m17n.org>
18866
18867 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18868
18869 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18870
18871 * fontset.c: Include "intervals.h".
18872 (fontset_face): Fix comparing of Lisp_Objects.
18873 (free_face_fontset, new_fontset_from_font_name): Fix
18874 Lisp_Object/int mixup.
18875
18876 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18877
18878 * coding.c: Add many prototypes for static functions.
18879 (get_translation_table): Allow max_lookup to be NULL.
18880 (decode_coding, Ffind_coding_systems_region_internal)
18881 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18882 get_translation_table with max_lookup NULL.
18883
188842008-02-01 Kenichi Handa <handa@m17n.org>
18885
18886 * coding.c (get_translation_table): Declare it as Lisp_Object.
18887 (LOOKUP_TRANSLATION_TABLE): New macro.
18888 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18889 instead of CHAR_TABLE_REF.
18890
188912008-02-01 Kenichi Handa <handa@m17n.org>
18892
18893 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18894 annotation data format.
18895 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18896 Change arguments FROM and TO to single argument NCHARS. Change caller.
18897 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18898 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18899 (decode_coding_ccl, decode_coding_charset): Pay attention to
18900 coding->charbuf_used.
18901 (get_translation): New function.
18902 (produce_chars): New arguments translation_table and last_block.
18903 Translate characters here. Return number of carryover chars.
18904 Change caller.
18905 (produce_composition): New argument pos. Change caller.
18906 Adjust for the change of annotation data format.
18907 (produce_charset, produce_annotation): Likewise.
18908 (decode_coding, encode_coding): Don't call translate_chars.
18909 (consume_chars): New arg translation_table. Change caller.
18910 (translate_chars): Delete.
18911 (syms_of_coding): Make translation-table's number of extra slots 2.
18912
189132008-02-01 Kenichi Handa <handa@m17n.org>
18914
18915 * search.c (simple_search): Fix setting this_pos_byte in backward
18916 search.
18917
18918 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18919 byte sequence.
18920 (detect_coding_ccl): Fix setting of the variable valids.
18921
189222008-02-01 Kenichi Handa <handa@m17n.org>
18923
18924 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18925
18926 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18927
18928 * editfns.c (Ftranslate_region_internal): Rename from
18929 Ftranslate_region. Accept a char-table in TABLE.
18930 (syms_of_editfns): Defsubr Stranslate_region_internal.
18931
18932 * xfaces.c (set_lface_from_font_name): If a font is specified for
18933 a frame, generate a fontset from the font.
18934 (build_scalable_font_name): If the scalable font is requested for
18935 a specific size, don't change that size.
18936 (try_font_list): Try a scalable font also in the case that a
18937 pattern string is specified.
18938
189392008-02-01 Kenichi Handa <handa@m17n.org>
18940
18941 * xfaces.c (Fface_font): New optional arg CHARACTER.
18942
189432008-02-01 Kenichi Handa <handa@m17n.org>
18944
18945 * charset.h (CHARSET_OFFSET): New macro.
18946
189472008-02-01 Kenichi Handa <handa@m17n.org>
18948
18949 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18950
18951 * fontset.c (fontset_face): Handle the case that repertory is a
18952 char-table.
18953 (find_font_encoding): Return nil for unknown encoding.
18954 (Fset_fontset_font): Ignore a font of unknown encoding.
18955
189562008-02-01 Kenichi Handa <handa@m17n.org>
18957
18958 * keymap.c (describe_vector): Handle default value of a char table.
18959
18960 * fontset.c (fontset_face): Handle fallback fonts correctly.
18961 (Ffontset_info): Return infomation about fallback fonts.
18962
189632008-02-01 Kenichi Handa <handa@m17n.org>
18964
18965 * fontset.c (FONTSET_DEFAULT): New macro.
18966 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18967 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18968 the case that it is nil.
18969 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18970 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18971
18972 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18973 subset or superset.
18974
189752008-02-01 Kenichi Handa <handa@m17n.org>
18976
18977 * emacs.c (main): Call init_charset after syms_of_XXX.
18978
18979 * charset.c (Vcharset_map_directory): Delete.
18980 (Vcharset_map_path): New variable.
18981 (load_charset_map_from_file): Use Vcharset_map_path instead.
18982 (init_charset): Initialize Vcharset_map_path.
18983 (syms_of_charset): Delete declaration of "charset-map-directory",
18984 add declaration of "charset-map-path".
18985
189862008-02-01 Kenichi Handa <handa@m17n.org>
18987
18988 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18989 ASCII only string.
18990
18991 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18992
18993 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18994 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18995
189962008-02-01 Kenichi Handa <handa@m17n.org>
18997
18998 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18999
19000 * coding.c (QCmnemonic, QCdefalut_char)
19001 (QCdecode_translation_table, QCencode_translation_table)
19002 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19003 (get_translation_table): Return a list of translation tables if
19004 necessary.
19005 (decode_coding): Call get_translation_table with ENCODEP 0.
19006 (char_encodable_p): If translation_table is non-nil, always call
19007 translate_char.
19008 (Fdefine_coding_system_internal): Accept list of translation
19009 tables as :encode-translation-table and :decode-translation-table.
19010 (Fcoding_system_put): New function.
19011 (syms_of_coding): Declare new symbols. Defsubr
19012 Scoding_system_put.
19013 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19014 typically JISX0212.
19015
19016 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19017 when the charset is superset type.
19018
19019 * character.c (translate_char): Accept list of translation tables.
19020
190212008-02-01 Kenichi Handa <handa@m17n.org>
19022
19023 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19024 (CODING_ATTR_TRANS_TBL): New macro.
19025
19026 * coding.c (get_translation_table): New function.
19027 (translate_chars): Fix the bug of skipping annotation data.
19028 (decode_coding, encode_coding): Utilize get_translation_table.
19029 (char_encodable_p, Funencodable_char_position): Translate char if
19030 necessary.
19031 (Ffind_coding_systems_region_internal)
19032 (Fcheck_coding_systems_region): Setup translation table for encode
19033 in a coding system attribute vector in advance.
19034 (Fdefine_coding_system_internal): Allow a symbol as translation
19035 table. For shift-jis type coding system, allow 4th charset.
19036
190372008-02-01 Kenichi Handa <handa@m17n.org>
19038
19039 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19040
19041 * xdisp.c (get_next_display_element): Pass -1 as POS to
19042 FACE_FOR_CHAR if displaying a C-string.
19043
190442008-02-01 Kenichi Handa <handa@m17n.org>
19045
19046 * composite.c (get_composition_id): Handle xoff and yoff in a
19047 composition rule.
19048
19049 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19050 (struct composition): New member lbearing and rbearing.
19051
19052 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19053 (x_get_glyph_overhangs): Handle a composition glyph.
19054 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19055
19056 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19057 composition glyph.
19058
190592008-02-01 Kenichi Handa <handa@m17n.org>
19060
19061 * print.c: Include charset.h.
19062 (Vprint_charset_text_property): New variable.
19063 (Qdefault): Extern it.
19064 (PRINT_STRING_NON_CHARSET_FOUND)
19065 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19066 (print_check_string_result): New variable.
19067 (print_check_string_charset_prop): New function.
19068 (print_prune_charset_plist): New variable.
19069 (print_prune_string_charset): New function.
19070 (print_object): Call print_prune_string_charset if
19071 Vprint_charset_text_property is not t.
19072 (print_interval): Print nothing if interval->plist is nil.
19073 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19074 variable. Init and staticpro print_prune_charset_plist.
19075
190762008-02-01 Kenichi Handa <handa@m17n.org>
19077
19078 * fontset.c (new_fontset_from_font_name): Use the specified font
19079 for all characters in the new fontset.
19080
19081 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19082 OBJECT args.
19083
19084 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19085 OBJECT args for composition too.
19086
19087 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19088 OBJECT args.
19089
190902008-02-01 Kenichi Handa <handa@m17n.org>
19091
19092 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19093
19094 * fontset.c (reorder_font_vector): Adjust for the change of
19095 FONT_DEF format.
19096 (fontset_face): New arg id. Change caller.
19097 (face_for_char): New args pos and object.
19098 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19099 (fs_query_fontset): Check NAME by Fassoc too.
19100 (Fset_fontset_font): Allow non-XLFD font name.
19101 (Ffontset_info): Adjust for the change of FONT_DEF format.
19102
19103 * fontset.h (face_for_char): Adjust prototype.
19104
19105 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19106 (append_space, extend_face_to_end_of_line)
19107 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19108 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19109
19110 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19111 POS and OBJECT args.
19112
19113 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19114 POS and OBJECT args.
19115
191162008-02-01 Jason Rumney <jasonr@gnu.org>
19117
19118 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19119 of GlobalAlloc'ed memory.
19120
191212008-02-01 Kenichi Handa <handa@m17n.org>
19122
19123 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19124
19125 * charset.h (charset_table_used): Delete extern.
19126
19127 * charset.c (charset_table_used): Make it static.
19128 (map_charset_chars): Fix args to c_function with.
19129
19130 * chartab.c (map_sub_char_table_for_charset): Fix args to
19131 c_function with.
19132
19133 * coding.h (enum coding_result_code): Delete
19134 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19135
19136 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19137 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19138 (Vlast_code_conversion_error): New variables.
19139 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19140 (ONE_MORE_BYTE): Record error if any instead of signaling an
19141 error. If non-ASCII multibyte char is found, return the negative
19142 value of the code. All callers changed to check it.
19143 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19144 (record_conversion_result): New function. Change all codes setting
19145 coding->result to call this function.
19146 (detect_coding_utf_8, decode_coding_utf_8)
19147 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19148 Don't use the local variable incomplete.
19149 (emacs_mule_char): Change the second arg to `const'.
19150 (decode_coding): Fix of flushing out unprocessed data.
19151 (make_conversion_work_buffer): Fix making of a work buffer.
19152 (decode_coding_object): Return coding->dst_object.
19153
19154 * fontset.c (set_fontset_font): Fix args.
19155
19156 * lisp.h (CHARACTERBITS): Define as 22.
19157
19158 * process.c (send_process): Be sure to set coding->src_multibyte.
19159
19160 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19161
191622008-02-01 Kenichi Handa <handa@m17n.org>
19163
19164 * xdisp.c (handle_auto_composed_prop): Give limit to
19165 Fnext_single_char_property_change.
19166
191672008-02-01 Kenichi Handa <handa@m17n.org>
19168
19169 * composite.c (syms_of_composite): Don't make the composition hash
19170 table weak.
19171
19172 * fontset.c (Fset_fontset_font): Fix docstring.
19173
19174 * lisp.h (detect_coding_system): Adjust prototype.
19175
19176 * fileio.c (kill_workbuf_unwind): Delete this function.
19177 (Finsert_file_contents): Adjust the call of detect_coding_system.
19178 Get conversion_buffer by code_conversion_save. Use the macro
19179 CODING_MAY_REQUIRE_DECODING. After decoding, update
19180 coding_system.
19181
19182 * coding.h (make_conversion_work_buffer): Delete extern.
19183 (code_conversion_save): Extern it.
19184
19185 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19186 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19187 (decode_coding_utf_8): Don't do eol converion.
19188 (detect_coding_utf_16): Check coding->src_chars, not
19189 coding->src_bytes. Add heuristics for those that have no signature.
19190 (decode_coding_emacs_mule, decode_coding_iso_2022)
19191 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19192 Don't do eol converion.
19193 (adjust_coding_eol_type): Return a new coding system.
19194 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19195 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19196 each change.
19197 (decode_coding): Pay attention to undo_list. Do eol conversion for
19198 all types of coding-systems (if necessary).
19199 (Vcode_conversion_work_buf_list): Delete it.
19200 (Vcode_conversion_reused_workbuf): Rename from
19201 Vcode_conversion_reused_work_buf.
19202 (Vcode_conversion_workbuf_name): New variable.
19203 (reused_workbuf_in_use): New variable.
19204 (make_conversion_work_buffer): Delete the arg DEPTH.
19205 (code_conversion_restore): Change argument to cons.
19206 (code_conversion_save): Delete the argument BUFFER. Change callers.
19207 (detect_coding_system): New argument src_chars. Change callers.
19208 Fix for utf-16 detection.
19209 (init_coding_once): Don't use ISO_carriage_return.
19210 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19211 reused_workbuf_in_use.
19212
192132008-02-01 Kenichi Handa <handa@m17n.org>
19214
19215 * keymap.c (store_in_keymap): Pay attention to the case that idx
19216 is a cons specifying a character range.
19217
192182008-02-01 Kenichi Handa <handa@m17n.org>
19219
19220 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19221 HANDLED_RECOMPUTE_PROPS.
19222
19223 * coding.c (Fdefine_coding_system_internal): Fix checking of
19224 ascii compatibility.
19225
192262008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * charset.c (find_charsets_in_text): Delete unused locale variable.
19229 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19230
19231 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19232 Resync charset_list to Vemacs_mule_charset_list.
19233
19234 * keymap.c (store_in_keymap): Pay attention to the case that idx
19235 is a cons specifying a character range.
19236
192372008-02-01 Kenichi Handa <handa@m17n.org>
19238
19239 * composite.c (update_compositions): Bind inhibit-read-only, etc
19240 to t before calling remove-list-of-text-properties.
19241
19242 * print.c (print_object): Always print ASCII chars as is.
19243
192442008-02-01 Kenichi Handa <handa@m17n.org>
19245
19246 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19247
19248 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19249 is a char table.
19250
192512008-02-01 Kenichi Handa <handa@m17n.org>
19252
19253 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19254
192552008-02-01 Kenichi Handa <handa@m17n.org>
19256
19257 * xfaces.c (set_lface_from_font_name): Fix for the case that
19258 FONTNAME is not fontset name.
19259
192602008-02-01 Kenichi Handa <handa@m17n.org>
19261
19262 * fns.c (base64_encode_1): Fix previous change.
19263
192642008-02-01 Kenichi Handa <handa@m17n.org>
19265
19266 * fontset.c (set_fontset_font): New function.
19267 (Fset_fontset_font): If a font is specified for a charset, use
19268 map_charset_chars to store the font spec in a fontset.
19269
192702008-02-01 Kenichi Handa <handa@m17n.org>
19271
19272 * fontset.c (fontset_face): Create a fallback fontset on demand.
19273 (make_fontset): Don't create a fallback fontset here.
19274 (free_face_fontset): Free a fallback fontset (if any) too.
19275 (n_auto_fontsets): Delete this variable.
19276 (auto_fontset_alist): New variable.
19277 (new_fontset_from_font_name): Check auto_fontset_alist.
19278 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19279 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19280 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19281 Defsubr Sfontset_list_all.
19282
192832008-02-01 Kenichi Handa <handa@m17n.org>
19284
19285 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19286
192872008-02-01 Kenichi Handa <handa@m17n.org>
19288
19289 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19290
192912008-02-01 Kenichi Handa <handa@m17n.org>
19292
19293 * editfns.c (Fgoto_char): Fix docstring.
19294
192952008-02-01 Kenichi Handa <handa@m17n.org>
19296
19297 * insdel.c (insert_from_gap): Adjust intervals correctly.
19298
192992008-02-01 Jason Rumney <jasonr@gnu.org>
19300
19301 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19302 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19303 (w32_initialize): Try to load it.
19304 (x_get_font_repertory): Use it if available.
19305 (w32_encode_char): Add shortcut for unicode output.
19306
19307 * w32fns.c (w32_load_system_font): Default charset to -1.
19308 (x_to_w32_charset): Match all fonts for unicode.
19309 (w32_to_x_charset): New parameter matching. Don't return partial
19310 or wildcard charsets.
19311 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19312 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19313 (w32_to_x_font): Match charset to real charset.
19314 (enum_font_cb2): Always list unicode versions.
19315
19316 * makefile.w32-in (temacs): Increase EMHEAP.
19317
193182008-02-01 Jason Rumney <jasonr@gnu.org>
19319
19320 * w32term.c (w32_encode_char): New charset parameter.
19321 font_info.encoding becomes encoding_type.
19322 (x_get_font_repertory): New function. Warning: stub only!
19323 (x_new_font): Return quickly if font already set.
19324 (x_new_fontset): fontsetname parameter is Lisp_Object.
19325 Use new fs_query_fontset. Try new_fontset_from_font_name.
19326 Use fontset_name for return value.
19327
19328 * w32term.h: Declare x_get_font_repertory.
19329
19330 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19331 place of find_charset_in_text. Use encode_coding_object in place
19332 of encode_coding.
19333 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19334 decode_coding.
19335
19336 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19337 of x_new_fontset.
19338 (w32_load_system_font): Initialize charset as unicode.
19339 font_info.encoding becomes encoding_type.
19340 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19341 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19342 (syms_of_w32fns): Set get_font_repertory_func.
19343
19344 * w32console.c: Include character.h. Use terminal_encode_buffer
19345 from term.c.
19346 (write_glyphs): Use new version of encode_terminal_code. Use
19347 encode_coding_object in place of encode_coding.
19348
19349 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19350 encoding becomes encoding_type.
19351
19352 * term.c (terminal_encode_buffer): Make externally visible.
19353
19354 * makefile.w32-in: Add character.h dependancies.
19355 (character.o, chartab.o): New targets.
19356
193572008-02-01 Kenichi Handa <handa@m17n.org>
19358
19359 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19360 CODING_ID_EOL_TYPE.
19361
193622008-02-01 Andreas Schwab <schwab@suse.de>
19363
19364 * coding.c (produce_chars): Revert last change.
19365
193662008-02-01 Kenichi Handa <handa@m17n.org>
19367
19368 * charset.h (charset_unicode): Extern it.
19369
19370 * charset.c (string_xstring_p): Check by (C >= 0x100).
19371 (find_charsets_in_text): Change format of the arc CHARSETS. New
19372 arg MULTIBYTE.
19373 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19374 change of find_charsets_in_text.
19375 (Fsplit_char): Fix doc. Never return unknown.
19376
19377 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19378
19379 * coding.c (Fdefine_coding_system_alias): Update
19380 Vcoding_system_list.
19381
19382 * fontset.c (load_font_get_repertory): Pay attention to the case
19383 that ENCODING of a font is specified by a char-table.
19384
19385 * xterm.c (x_get_font_repertory): Handle the case that the
19386 encoding of font is other than Unicode.
19387
193882008-02-01 Kenichi Handa <handa@m17n.org>
19389
19390 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19391 if a character is encodable by the terminal coding system. If
19392 not, produces proper number of `?'s. Update
19393 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19394 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19395
193962008-02-01 Kenichi Handa <handa@m17n.org>
19397
19398 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19399 variables.
19400 (encode_terminal_code): Change argument. Encode multiple
19401 characters at once. Store the result of encoding in
19402 terminal_encode_buffer.
19403 (write_glyphs, insert_glyphs): Adjust for the change of
19404 encode_terminal_code.
19405 (term_init): Initialize terminal_encode_buffer and
19406 terminal_encode_buf_size.
19407
19408 * coding.c (consume_chars): If coding->src_object is nil, don't
19409 check annotation.
19410
194112008-02-01 Kenichi Handa <handa@m17n.org>
19412
19413 * character.c (char_string): Use ASCII_CHAR_P instead of
19414 SINGLE_BYTE_CHAR_P.
19415
194162008-02-01 Kenichi Handa <handa@m17n.org>
19417
19418 * xdisp.c (handle_auto_composed_prop): Check if the last
19419 characters of auto-composed region is newly composed with the
19420 following characters.
19421 (handle_composition_prop): Fix checking of point being inside
19422 composition.
19423
194242008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * fns.c (concat): Don't change multibyteness of the result by
19427 concatenating an 8-bit character.
19428
19429 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19430 multibyteness of the result when newelt is an 8-bit character.
19431
194322008-02-01 Dave Love <fx@gnu.org>
19433
19434 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19435 EMACS_INT.
19436
19437 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19438
19439 * xfaces.c (face_numeric_value): Declare dim size_t.
19440 (Finternal_lisp_face_equal_p): Remove unused f.
19441
19442 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19443 (MATRIX_ROW): Remove unused vars.
19444 (draw_glyphs, x_insert_glyphs, fast_find_position)
19445 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19446 byte/char counts.
19447
19448 * regex.c (regex_compile): Remove unused var.
19449
19450 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19451
19452 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19453 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19454
19455 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19456
19457 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19458
19459 * fileio.c (Fwrite_region): Remove unused var.
19460
19461 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19462 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19463
19464 * composite.c (Fremove_list_of_text_properties): Declare.
19465
19466 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19467 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19468 (coding_inherit_eol_type): Remove unused attrs.
19469 (detect_coding): Cast arg of detect_eol.
19470
19471 * charset.c (syms_of_charset): Remove unused var p.
19472 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19473 byte/char counts.
19474
19475 * casetab.c (set_case_table): Remove unused var.
19476
19477 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19478 unused vars.
19479
194802008-02-01 Dave Love <fx@gnu.org>
19481
19482 * xterm.c (x_bitmap_mask): Declare.
19483
194842008-02-01 Dave Love <fx@gnu.org>
19485
19486 * xterm.c (x_term_init): Fix type error.
19487
19488 * lisp.h: Add Funibyte_char_to_multibyte.
19489
19490 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19491 (Fset_coding_system_priority): Doc fix.
19492
19493 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19494
19495 * indent.c (check_composition): Make start and end EMACS_INT.
19496
19497 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19498
19499 * xdisp.c (handle_composition_prop, check_point_in_composition):
19500 Make buffer positions EMACS_INT.
19501
19502 * composite.c (find_composition, run_composition_function)
19503 (update_compositions, Ffind_composition_internal): Make buffer
19504 positions EMACS_INT.
19505
19506 * composite.h (find_composition, update_compositions): Make
19507 position args EMACS_INT.
19508
19509 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19510
19511 * intervals.c (get_property_and_range):
19512 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19513
19514 * unexalpha.c: Don't include varargs.h.
19515
195162008-02-01 Dave Love <fx@gnu.org>
19517
19518 * coding.h (ENCODE_UTF_8): New.
19519
19520 * Makefile.in (gtkutil.o): Depend on coding.h.
19521
19522 * coding.c (Fset_coding_system_priority): Doc fix.
19523
195242008-02-01 Kenichi Handa <handa@m17n.org>
19525
19526 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19527 the case of auto saving.
19528
195292008-02-01 Andreas Schwab <schwab@suse.de>
19530
19531 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19532 `range' from GC.
19533
195342008-02-01 Kenichi Handa <handa@m17n.org>
19535
19536 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19537
195382008-02-01 Kenichi Handa <handa@m17n.org>
19539
19540 * fileio.c (choose_write_coding_system): Return a decided coding system.
19541 (Fwrite_region): Set Vlast_coding_system_used to the return value
19542 of choose_write_coding_system.
19543
195442008-02-01 Kenichi Handa <handa@m17n.org>
19545
19546 * charset.c (Fset_charset_priority): Pay attention to duplicated
19547 arguments.
19548
19549 * coding.c (QCcategory): New variable.
19550 (syms_of_coding): Defsym it. Set all elements of
19551 Vcoding_category_table and their symbol values.
19552 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19553 coding-category-XXX, and coding-category-list.
19554 (Fdefine_coding_system_internal): Add category in the plist.
19555
195562008-02-01 Kenichi Handa <handa@m17n.org>
19557
19558 * callproc.c (Fcall_process): Handle carryover correctly.
19559
19560 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19561 (raw_text_coding_system): Check NILP (coding_system).
19562 (coding_inherit_eol_type): Check NILP (coding_system) and
19563 NILP (parent).
19564 (consume_chars): Fix for the case of raw-text.
19565
19566 * process.c (read_process_output): Handle carryover correctly.
19567
195682008-02-01 Dave Love <fx@gnu.org>
19569
19570 * regex.c (re_search_2): Fix last change.
19571
195722008-02-01 Kenichi Handa <handa@m17n.org>
19573
19574 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19575 target_multibyte. Even in a unibyte case, return a converted
19576 multibyte char.
19577 (GET_CHAR_AFTER): New macro.
19578 (PATFETCH): Translate via multibyte char.
19579 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19580 (SETUP_MULTIBYTE_RANGE): New macro.
19581 (regex_compile): Setup compiled code so that its multibyteness
19582 matches that of a target. Fix the handling of "[X-YZ]" using
19583 SETUP_MULTIBYTE_RANGE.
19584 (analyse_first) <charset>: For filling fastmap for all multibyte
19585 characters, don't check by BASE_LEADING_CODE_P.
19586 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19587 the same as RE_MULTIBYTE_P (bufp) now.
19588 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19589 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19590 (TRANSLATE_VIA_MULTIBYTE): New macro.
19591 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19592 It is the same as RE_MULTIBYTE_P (bufp) now.
19593 <exactn>: Translate via multibyte.
19594 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19595 translate it.
19596 <charset, charset_not>: Fetch a character by
19597 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19598 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19599 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19600 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19601 by GET_CHAR_AFTER.
19602 (bcmp_translate): Likewise.
19603
19604 * search.c (compile_pattern): Check the member target_multibyte,
19605 not the member multibyte of buf.
19606
19607 * lread.c (read1): While reading a string, set force_singlebyte
19608 and force_multibyte correctly.
19609
19610 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19611 up of unibyte_to_multibyte_table.
19612
196132008-02-01 Kenichi Handa <handa@m17n.org>
19614
19615 * coding.c (setup_coding_system): If coding has
19616 post-read-conversion or pre-write-conversion, set
19617 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19618 respectively.
19619 (decode_coding_gap): Run post-read-conversion if any.
19620
19621 * fileio.c (Finsert_file_contents): Even if we read into a
19622 unibyte buffer, check if we must decode the result or not.
19623
196242008-02-01 Kenichi Handa <handa@m17n.org>
19625
19626 * coding.c (make_conversion_work_buffer): Change the work buffer
19627 name to the same one as that of Emacs 21.
19628
196292008-02-01 Kenichi Handa <handa@m17n.org>
19630
19631 * coding.h (make_conversion_work_buffer): Adjust prototype.
19632 (code_conversion_restore): Don't extern it.
19633
19634 * coding.c (detected_mask): Delete unused variable.
19635 (decode_coding_iso_2022): Pay attention to the byte sequence of
19636 CTEXT extended segment, and retain those bytes as is.
19637 (decode_coding_ccl): Delete unused variable `valids'.
19638 (setup_coding_system): Delete unused variable `category'.
19639 (consume_chars): Delete unused variable `category'. Make it work
19640 for non-multibyte case.
19641 (make_conversion_work_buffer): Change argument.
19642 (saved_coding): Delete unused variable.
19643 (code_conversion_restore): Don't check saved_coding->destination.
19644 (code_conversion_save): New function.
19645 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19646 instead of record_unwind_protect.
19647 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19648 (detect_coding_system): Delete unused variable `mask'.
19649 (Fdefine_coding_system_internal): Delete unused variable id.
19650
19651 * fileio.c (kill_workbuf_unwind): New function.
19652 (Finsert_file_contents): On replacing, call
19653 make_conversion_work_buffer with correct args, and call
19654 record_unwind_protect with the first arg kill_workbuf_unwind.
19655
19656 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19657
196582008-02-01 Kenichi Handa <handa@m17n.org>
19659
19660 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19661 (fontset_add): Fix for the case that TO is less than TO1.
19662 (Ffontset_info): Don't use fallback fontset on checking the
19663 default fontset.
19664 (dump_fontset): New function for debugging.
19665
19666 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19667 coding_type is Qcharset.
19668
196692008-02-01 Kenichi Handa <handa@m17n.org>
19670
19671 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19672 (map_char_table): Don't inherit the value from the parent on
19673 initializing VAL. Adjust for the above change.
19674
196752008-02-01 Kenichi Handa <handa@m17n.org>
19676
19677 * coding.c (Qsignature, Qendian): Delete these variables.
19678 (syms_of_coding): Don't initialize them.
19679 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19680 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19681 detect_info->found.
19682 (decode_coding_utf_16): Don't detect BOM here.
19683 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19684 is NOT utf_16_without_bom.
19685 (setup_coding_system): For a coding system of type utf-16, check
19686 if the attribute :endian is Qbig or not (not nil or not), and set
19687 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19688 (detect_coding): If coding type is utf-16 and BOM detection is
19689 required, detect it.
19690 (Fdefine_coding_system_internal): For a coding system of type
19691 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19692
196932008-02-01 Kenichi Handa <handa@m17n.org>
19694
19695 * coding.c (coding_set_source): Fix for the case that the current
19696 buffer is different from coding->src_object.
19697 (decode_coding_object): Don't use the conversion work buffer if
19698 DST_OBJECT is a buffer.
19699
197002008-02-01 Dave Love <fx@gnu.org>
19701
19702 * lread.c (read_emacs_mule_char) [len==2]: Index
19703 emacs_mule_charset correctly.
19704
197052008-02-01 Dave Love <fx@gnu.org>
19706
19707 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19708 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19709 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19710 treated specially.)
19711 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19712 (detected_mask): Remove Big5 bits.
19713
197142008-02-01 Kenichi Handa <handa@m17n.org>
19715
19716 The following changes are to make the font rescaling facility
19717 compatible with Emacs 21.
19718
19719 * xfaces.c (Vface_font_rescale_alist): Rename from
19720 Vface_resizing_fonts.
19721 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19722 (font_rescale_ratio): Rename from font_resizing_ratio.
19723 (split_font_name): Set font->rescale_ratio.
19724 (better_font_p): Pay attention to font->rescale_ratio.
19725 (build_scalable_font_name): Likewise. Change RESX, and RESY
19726 fields.
19727 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19728
197292008-02-01 Kenichi Handa <handa@m17n.org>
19730
19731 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19732 (Qutf_16_le): Remove these variables.
19733 (syms_of_coding): Don't DEFSYM them.
19734 (decode_coding_utf_16): Fix handling of BOM.
19735 (encode_coding_utf_16): Fix handling of BOM.
19736
197372008-02-01 Kenichi Handa <handa@m17n.org>
19738
19739 * fileio.c (Finsert_file_contents): On replacing, before decoding
19740 the file into the work buffer, set point of the work buffer to the end.
19741
197422008-02-01 Dave Love <fx@gnu.org>
19743
19744 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19745
197462008-02-01 Dave Love <fx@gnu.org>
19747
19748 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19749 and fix C types.
19750
197512008-02-01 Kenichi Handa <handa@m17n.org>
19752
19753 * xdisp.c (SKIP_GLYPHS): New macro.
19754 (set_cursor_from_row): Pay attention to string display properties.
19755
19756 * category.c (copy_category_entry): Fix for the case that RANGE
19757 is an integer.
19758
19759 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19760
19761 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19762
197632008-02-01 Kenichi Handa <handa@m17n.org>
19764
19765 * charset.c (Fcharset_id_internal): New function.
19766 (syms_of_charset): Defsubr it.
19767
19768 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19769 with the last arg charset_list acquired from coding.
19770 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19771 the attribute coding_attr_ccl_valids.
19772
19773 * coding.h (enum define_coding_ccl_arg_index): Set the first
19774 member coding_arg_ccl_decoder to coding_arg_max.
19775
19776 * ccl.h (ccl_driver): Adjust prototype.
19777
19778 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19779 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19780 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19781 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19782 last arg Qnil.
19783
197842008-02-01 Kenichi Handa <handa@m17n.org>
19785
19786 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19787 call encode_char.
19788
19789 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19790
197912008-02-01 Dave Love <fx@gnu.org>
19792
19793 * composite.c (syms_of_composite): Make composition_hash_table weak.
19794
197952008-02-01 Kenichi Handa <handa@m17n.org>
19796
19797 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19798 (font_name_registry): Don't extern them.
19799 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19800
19801 * fontset.h (Qfontset): Don't extern it.
19802 (new_fontset_from_font_name): Extern it.
19803
19804 * fontset.c: Give 8 extra slots to fontset objects.
19805 (Qfontset_info): New variable.
19806 (syms_of_fontset): Defsym it.
19807 (FONTSET_FALLBACK): New macro.
19808 (fontset_face): Try also the default fontset.
19809 (make_fontset): Realize a fallback fontset from the default fontset.
19810 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19811 using split_font_name_into_vector and build_font_name_from_vector.
19812 (Fset_fontset_font): Access the elements of font_spec by enum
19813 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19814 name by using split_font_name_into_vector.
19815 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19816 generate a proper font name from the fontset name. Update
19817 Vfontset_alias_alist.
19818 (n_auto_fontsets): New variable.
19819 (new_fontset_from_font_name): New function.
19820 (Ffont_info): Store the information about fonts generated from the
19821 default fontset in the first extra slot of the returned char-table.
19822
19823 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19824 (font_name_registry): Delete function.
19825 (split_font_name_into_vector): New function.
19826 (build_font_name_from_vector): New function.
19827 (font_list): The argument REGISTRY is now a list of registry names.
19828 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19829 specifies an explicit font name, return the name as is. Make a
19830 list of registy names.
19831
19832 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19833 of x_new_fontset.
19834 (Fx_create_frame): Don't call x_new_fontset here. Just use
19835 x_list_fonts to check the existence of fonts.
19836
19837 * xterm.h (x_new_fontset): Adjust prototype.
19838
19839 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19840 string. Use new_fontset_from_font_name to create a fontset from a
19841 font name.
19842
198432008-02-01 Kenichi Handa <handa@m17n.org>
19844
19845 * syntax.c (Vfind_word_boundary_function_table): New name for
19846 Vnext_word_boundary_function_table.
19847 (find-word-boundary-function-table): New name for
19848 next-word-boundary-function-table.
19849
198502008-02-01 Dave Love <fx@gnu.org>
19851
19852 * Makefile.in: Fix some dependencies.
19853
19854 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19855 set it to nil before returning.
19856
19857 * composite.c (update_compositions): Fix type error.
19858
19859 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19860
198612008-02-01 Kenichi Handa <handa@m17n.org>
19862
19863 * xterm.c (x_new_font): Optimize for the case that the font is
19864 already set for the frame.
19865
198662008-02-01 Kenichi Handa <handa@m17n.org>
19867
19868 * chartab.c (char_table_ascii): Check if the char table contents
19869 is sub-char-table or not.
19870 (char_table_set, char_table_set_range): Fix argument to
19871 char_table_ascii.
19872
19873 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19874 (detect_coding_utf_8, detect_coding_utf_16)
19875 (detect_coding_emacs_mule, detect_coding_iso_2022)
19876 (detect_coding_sjis, detect_coding_big5)
19877 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19878 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19879 sequence is valid in this coding system. Change callers.
19880 (MAX_ANNOTATION_LENGTH): New macro.
19881 (ADD_ANNOTATION_DATA): New macro.
19882 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19883 ADD_ANNOTATION_DATA. Change the format of annotation data.
19884 (ADD_CHARSET_DATA): New macro.
19885 (emacs_mule_char): New argument ID. Change callers.
19886 (decode_coding_emacs_mule, decode_coding_iso_2022)
19887 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19888 Produce charset annotation data in coding->charbuf.
19889 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19890 to charset annotation data in coding->charbuf.
19891 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19892 coding->common_flags if the coding system is iso-2022 based and
19893 uses designation.
19894 (produce_composition): Adjust for the new annotation data format.
19895 (produce_charset): New function.
19896 (produce_annotation): Handle charset annotation.
19897 (handle_composition_annotation, handle_charset_annotation): New
19898 functions.
19899 (consume_chars): Handle charset annotation. Utilize the above two
19900 functions.
19901 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19902 buffer, get the deleted text as a string and set
19903 coding->src_object to that string.
19904 (detect_coding, detect_coding_system): Use the new struct
19905 coding_detection_info.
19906
19907 * coding.h (struct coding_detection_info): New structure.
19908 (struct coding_system): Adjust prototype of the member `detector'.
19909 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19910
199112008-02-01 Kenichi Handa <handa@m17n.org>
19912
19913 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19914
199152008-02-01 Dave Love <fx@gnu.org>
19916
19917 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19918 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19919 to new local and nullify apropos_accumulate before returning.
19920 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19921
199222008-02-01 Kenichi Handa <handa@m17n.org>
19923
19924 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19925 correctly.
e3eea1fc 19926
aac0c6e3
MR
199272008-02-01 Dave Love <fx@gnu.org>
19928
19929 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19930
199312008-02-01 Kenichi Handa <handa@m17n.org>
19932
19933 The following changes are to make character composition happen
19934 automatically on displaying.
19935
19936 * Makefile.in (lisp, shortlisp): Add composite.elc.
19937
19938 * composite.h (Qauto_composed, Vauto_composition_function)
19939 (Qauto_composition_function): Extern them.
19940
19941 * composite.c (Vcomposition_function_table)
19942 (Qcomposition_function_table): Delete variables.
19943 (Qauto_composed, Vauto_composition_function)
19944 (Qauto_composition_function): New variables.
19945 (run_composition_function): Don't call
19946 compose-chars-after-function.
19947 (update_compositions): Clear `auto-composed' text property.
19948 (compose_chars_in_text): Delete this function.
19949 (syms_of_composite): Staticpro Qauto_composed and
19950 Qauto_composition_function. Declare Vauto_composition_function as
19951 a Lisp variable.
19952
19953 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19954
19955 * xdisp.c (it_props): Add an entry for Qauto_composed.
19956 (handle_auto_composed_prop): New function.
19957
19958 * xselect.c (selection_data_to_lisp_data): Don't call
19959 compose_chars_in_text.
19960
199612008-02-01 Dave Love <fx@gnu.org>
19962
19963 * keyboard.c (read_char): Modify checking around use of
19964 Vkeyboard_translate_table.
19965
19966 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19967 and fix C types.
19968
199692008-02-01 Kenichi Handa <handa@m17n.org>
19970
19971 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19972 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19973 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19974 the case that the last byte is '\r' correctly.
19975 (decode_coding): Flush out the unprocessed data correctly.
19976 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19977
199782008-02-01 Dave Love <fx@gnu.org>
19979
19980 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19981 Add XK_ISO... case.
19982 (xaw_scroll_callback): Revert last change.
19983
199842008-02-01 Kenichi Handa <handa@m17n.org>
19985
19986 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19987
199882008-02-01 Kenichi Handa <handa@m17n.org>
19989
19990 * xfaces.c (Vface_resizing_fonts): New variable.
19991 (struct font_name): New member `resizing_ratio'.
19992 (font_resizing_ratio): New function.
19993 (split_font_name): Set font->resizing_ratio.
19994 (better_font_p): Pay attention to font->resizing_ratio.
19995 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19996 RESX, and RESY fields.
19997 (try_alternative_families): Try scalable fonts if
19998 Vscalable_fonts_allowed is not Qt.
19999 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20000
200012008-02-01 Dave Love <fx@gnu.org>
20002
20003 * xterm.c (xaw_scroll_callback): Cast correctly.
20004
200052008-02-01 Dave Love <fx@gnu.org>
20006
20007 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20008 (lispy_kana_keys): Comment out.
20009 (make_lispy_event) [XK_kana_A]: Comment out.
20010
20011 * xterm.c (xaw_scroll_callback): Cast call_data.
20012 (XTread_socket): Deal with ASCII keysyms.
20013 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20014
200152008-02-01 Dave Love <fx@gnu.org>
20016
20017 * xterm.c (Vx_keysym_table): New.
20018 (syms_of_xterm): Initialize it.
20019 (XTread_socket): Use it.
20020 From head: Eliminate incorrect optimization that tried to avoid
20021 decoding the output of X*LookupString.
20022 (x_get_font_repertory): Delete charset declaration.
20023
200242008-02-01 Kenichi Handa <handa@m17n.org>
20025
20026 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20027 return 0.
20028 (Fdefine_coding_system_internal): Setup
20029 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20030
200312008-02-01 Dave Love <fx@gnu.org>
20032
20033 * coding.c (Fcheck_coding_system): Doc fix.
20034
20035 * editfns.c (Finsert_byte): Return a proper value.
20036
200372008-02-01 Kenichi Handa <handa@m17n.org>
20038
20039 * coding.c (decode_coding): Fix args to translate_chars. Pay
20040 attention to Vstandard_translation_table_for_decode.
20041 (encode_coding): Fix args to translate_chars. Pay attention to
20042 Vstandard_translation_table_for_encode.
20043
20044 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20045 SINGLE_BYTE_CHAR_P.
20046
20047 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20048 not by SINGLE_BYTE_CHAR_P.
20049
20050 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20051 SINGLE_BYTE_CHAR_P.
20052
20053 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20054 SINGLE_BYTE_CHAR_P.
20055
20056 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20057 by SINGLE_BYTE_CHAR_P.
20058
20059 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20060 SINGLE_BYTE_CHAR_P.
20061
200622008-02-01 Dave Love <fx@gnu.org>
20063
20064 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20065
200662008-02-01 Dave Love <fx@gnu.org>
20067
20068 * fns.c (Flanginfo): Fix typo.
20069
20070 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20071
200722008-02-01 Kenichi Handa <handa@m17n.org>
20073
20074 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20075 (detect_coding_emacs_mule, detect_coding_iso_2022)
20076 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20077 incomplete byte sequence. Don't update *mask when correctly detected.
20078 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20079 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20080 (detect_coding, detect_coding_system): Adjust for the changes above.
20081
200822008-02-01 Kenichi Handa <handa@m17n.org>
20083
20084 * character.c (char_string): Rename from
20085 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20086 (string_char): Rename from string_char.
20087
20088 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20089 if C is greater than MAX_3_BYTE_CHAR.
20090 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20091 string_char instead of string_char_with_unification.
20092
200932008-02-01 Dave Love <fx@gnu.org>
20094
20095 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20096
200972008-02-01 Kenichi Handa <handa@m17n.org>
20098
20099 * keymap.c (push_key_description): Pay attention to force_multibyte.
20100
20101 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20102
201032008-02-01 Dave Love <fx@gnu.org>
20104
20105 * charset.c (define_charset_internal): Rename `supprementary'.
20106
20107 * Makefile.in (lisp, shortlisp): Remove latin-N.
20108
201092008-02-01 Dave Love <fx@gnu.org>
20110
20111 * xfns.c (x_window, x_window): Use use_xim.
20112
20113 * xterm.c (use_xim): Initialize.
20114 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20115 (x_term_init): Maybe set use_xim.
20116
20117 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20118
201192008-02-01 Kenichi Handa <handa@m17n.org>
20120
20121 * search.c (search_buffer): Fix case-fold-search of multibyte
20122 characters.
20123 (boyer_moore): Rename the last argument to char_high_bits.
20124
201252008-02-01 Kenichi Handa <handa@m17n.org>
20126
20127 * xdisp.c (display_string): Fix for the case of zero width glyph.
20128
20129 * xfns.c (x_set_font): Change the error message of the case that
20130 x_new_fontset returns Qt.
20131
20132 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20133 (Finternal_set_lisp_face_attribute): Use signal_error for the
20134 error of invalid fontset.
20135
20136 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20137 fontset, return Qt.
20138
201392008-02-01 Dave Love <fx@gnu.org>
20140
20141 * unexelf.c (unexec): Make .got handling not SGI-specific.
20142
20143 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20144
20145 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20146
20147 * keyboard.c (read_key_sequence): Fix type error.
20148
20149 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20150 type error.
20151
20152 * fontset.c (fontset_add): Return Lisp_Object.
20153
201542008-02-01 Dave Love <fx@gnu.org>
20155
20156 * charset.h (charset_ordered_list_tick): Declare extern.
20157
201582008-02-01 Kenichi Handa <handa@m17n.org>
20159
20160 The following changes (and some of 2008-02-01 changes of mine) are
20161 for handling syntax, category, and case conversion for unibyte
20162 characters by converting them to multibyte on the fly. With these
20163 changes, we don't have to setup syntax and case tables for unibyte
20164 characters in each language environment.
20165
20166 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20167 multibyte if necessary.
20168
20169 * bytecode.c (Fbyte_code): Likewise.
20170
20171 * character.h (LEADING_CODE_LATIN_1_MIN)
20172 (LEADING_CODE_LATIN_1_MAX): New macros.
20173 (unibyte_to_multibyte_table): Extern it.
20174 (unibyte_char_to_multibyte): New macro.
20175 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20176 (CHAR_LEADING_CODE): New macro.
20177 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20178
20179 * character.c (unibyte_to_multibyte_table): New variable.
20180 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20181 (multibyte_char_to_unibyte): If C is an eight-bit character,
20182 convert it to the corresponding byte value.
20183
20184 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20185 not 1, signals an error. Update the elements of
20186 unibyte_to_multibyte_table.
20187 (init_charset_once): Initialize unibyte_to_multibyte_table.
20188 (syms_of_charset): Define the charset `iso-8859-1'.
20189
20190 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20191 as is without converting it to unibyte. In a unibyte buffer,
20192 convert C to multibyte before checking the syntax.
20193
20194 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20195
20196 * minibuf.c (Fminibuffer_complete_word): Use the macro
20197 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20198
20199 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20200
20201 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20202 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20203 that is zero, convert an eight-bit char to multibyte.
20204 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20205 non-emacs case.
20206 (PATFETCH): Convert an eight-bit char to multibyte.
20207 (HANDLE_UNIBYTE_RANGE): New macro.
20208 (regex_compile): Setup the compiled pattern for multibyte chars
20209 even if the given regex string is unibyte. Use PATFETCH_RAW
20210 instead of PATFETCH in many places. To handle `charset'
20211 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20212 only for ASCII chars.
20213 (analyse_first) <exactn>: Simplify because the compiled pattern
20214 is multibyte.
20215 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20216 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20217 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20218 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20219 multibyte always 1.
20220 (re_search_2): In emacs, set the locale variable multibyte to 1,
20221 otherwise to 0. New local variable target_multibyte. Check it
20222 to decide the multibyteness of STR1 and STR2. If
20223 target_multibyte is zero, convert unibyte chars to multibyte
20224 before translating and checking fastmap.
20225 (TARGET_CHAR_AND_LENGTH): New macro.
20226 (re_match_2_internal): In emacs, set the locale variable multibyte
20227 to 1, otherwise to 0. New local variable target_multibyte. Check
20228 it to decide the multibyteness of STR1 and STR2. Use
20229 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20230 <charset, charset_not>: If multibyte is nonzero, check fastmap
20231 only for ASCII chars. Call bcmp_translate with
20232 target_multibyte, not with multibyte.
20233 <begline>: Declare the local variable C as `unsigned'.
20234 (bcmp_translate): Change the last arg name to target_multibyte.
20235
20236 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20237 the regexp pattern and the matching target. Set cp->buf.multibyte
20238 to the multibyteness of the regexp pattern. Set
20239 cp->but.target_multibyte to the multibyteness of the matching target.
20240 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20241 FETCH_STRING_CHAR_ADVANCE.
20242 (Freplace_match): Convert unibyte chars to multibyte.
20243
20244 * syntax.c (char_quoted, back_comment, scan_words)
20245 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20246 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20247 unibyte chars to multibyte.
20248 (skip_chars): Delete the arg syntaxp, and move the code for
20249 handling syntaxes to skip_syntaxes. Change callers.
20250 Fix the case that the multibyteness of STRING and the current
20251 buffer doesn't match.
20252 (skip_syntaxes): New function.
20253 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20254 SINGLE_BYTE_CHAR_P.
20255
202562008-02-01 Kenichi Handa <handa@m17n.org>
20257
20258 * xfaces.c (QCfontset): New variable.
20259 (LFACE_FONTSET): New macro.
20260 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20261 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20262 (Finternal_set_lisp_face_attribute)
20263 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20264 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20265 check also LFACE_FONTSET_INDEX.
20266 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20267 attrs[LFACE_FONT_INDEX].
20268 (syms_of_xfaces): Intern and staticpro QCfontset.
20269
20270 * dispextern.h (enum lface_attribute_index): New member
20271 LFACE_FONTSET_INDEX.
20272
20273 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20274
202752008-02-01 Kenichi Handa <handa@m17n.org>
20276
20277 * coding.c (coding_set_destination): Fix coding->destination for
20278 the case converting a region.
20279 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20280 (encode_coding_object): Fix coding->dst_pos and
20281 coding->dst_pos_byte for the case converting a region.
20282
20283 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20284
20285 * character.h (BYTE8_STRING): New macro.
20286
20287 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20288
202892008-02-01 Kenichi Handa <handa@m17n.org>
20290
20291 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20292 characters by octal form.
20293
20294 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20295
20296 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20297 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20298 _fetch_multibyte_char_len.
20299 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20300
20301 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20302
20303 * casefiddle.c (casify_object): Simplify. Handle the case that
20304 the case conversion change the byte length.
20305 (casify_region): Likewise.
20306
20307 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20308
20309 * character.c (_fetch_multibyte_char_len): Delete this variable.
20310 (syms_of_character): Setup Vprintable_chars.
20311
20312 * editfns.c (Fchar_equal): Fix for the unibyte case.
20313 (Finsert_byte): New function.
20314 (syms_of_editfns): Defsubr it.
20315
20316 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20317 of direct code 0x3ffff.
20318
20319 * search.c (Freplace_match): Fix for the unibyte case.
20320
203212008-02-01 Kenichi Handa <handa@m17n.org>
20322
20323 * lread.c (safe_to_load_p): Fix the logic.
20324
20325 * syntax.c (scan_words): Don't treat characters belonging to
20326 different scripts as constituting a word.
20327
20328 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20329
20330 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20331
20332 * emacs.c (main): In the case of --unibyte, instead of aborting on
20333 finding non-empty buffer, make it unibyte.
20334
203352008-02-01 Kenichi Handa <handa@m17n.org>
20336
20337 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20338 to create a fontset.
20339
203402008-02-01 Dave Love <fx@gnu.org>
20341
20342 * character.c (Funibyte_char_to_multibyte): Doc fix.
20343
20344 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20345
203462008-02-01 Kenichi Handa <handa@m17n.org>
20347
20348 * fontset.c (fontset_add): Make the type `int'.
20349 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20350
20351 * character.c (unibyte_char_to_multibyte)
20352 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20353 charset_unibyte, not charset_primary.
20354
20355 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20356
20357 * charset.c (charset_unibyte): Rename from charset_primary.
20358 (Funibyte_charset): Rename from Fprimary_charset.
20359 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20360 (syms_of_charset): Adjust for the above changes.
20361
20362 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20363 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20364 it->multibyte_p is zero.
20365
20366 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20367 Delete extern.
20368
203692008-02-01 Kenichi Handa <handa@m17n.org>
20370
20371 * coding.c (Fdefine_coding_system_internal): Fix category setting
20372 for a coding system of type iso-2022.
20373
203742008-02-01 Kenichi Handa <handa@m17n.org>
20375
20376 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20377
203782008-02-01 Kenichi Handa <handa@m17n.org>
20379
20380 * syntax.c (Vnext_word_boundary_function_table): New variable.
20381 (next-word-boundary-function-table): Declare it as a Lisp variable
20382 in syms_of_syntax.
20383 (scan_words): Call functions in Vnext_word_boundary_function_table
20384 if any.
20385
20386 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20387
20388 * fontset.c (fs_load_font): If fontp->charset is not negative,
20389 return fontp without setting its members.
20390
203912008-02-01 Dave Love <fx@gnu.org>
20392
20393 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20394
20395 * m/sparc.h (HAVE_ALLOCA): Delete.
20396
20397 * s/irix6-5.h: Don't include strings.h.
20398 (bcopy, bzero, bcmp): Don't undef.
20399
20400 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20401
20402 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20403 (TIOCSIGSEND): Don't test IRIX6.
20404 (bcopy, bzero, bcmp): Define conditionally.
20405
204062008-02-01 Kenichi Handa <handa@m17n.org>
20407
20408 * buffer.c (Qas, Qmake, Qto): New variables.
20409 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20410 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20411
20412 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20413 we are inserting a process output into a multibyte buffer.
20414
20415 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20416 multibyte_char_to_unibyte.
20417
20418 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20419 by the primary charset, make it eight-bit char.
20420 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20421
20422 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20423 (charset_8_bit__control, charset_8_bit_graphic)
20424 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20425 (define_charset_internal): New function.
20426 (syms_of_charset): Call define_charset_internal for pre-defined
20427 charsets.
20428
20429 * charset.h (charset_8_bit): Extern it.
20430
20431 * coding.c (make_conversion_work_buffer): Adjust for the change
20432 of Fset_buffer_multibyte.
20433 (encode_coding_raw_text): Increment p0 in the loop.
20434
20435 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20436
20437 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20438 for the change of Fset_buffer_multibyte.
20439
20440 * fns.c (Fstring_to_multibyte): New function.
20441 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20442
204432008-02-01 Dave Love <fx@gnu.org>
20444
20445 * xfns.c (x_put_x_image): Declare args.
20446
20447 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20448 (try_font_list): Declare an arg.
20449
20450 * xdisp.c (message2_nolog, set_message): Declare an arg.
20451
20452 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20453
20454 * syntax.c (scan_sexps_forward): Declare an arg.
20455
20456 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20457 Declare an arg.
20458
20459 * lisp.h (Fnew_fontset): Declare.
20460
20461 * keymap.c (push_key_description): Call CHARACTERP correctly.
20462
20463 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20464 (face_for_char): Delete unused vars.
20465 (Fset_fontset_font): Doc fix. Delete unused vars.
20466
20467 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20468
20469 * composite.c (update_compositions): Declare arg.
20470
20471 * cm.c (calccost, cmgoto): Declare args.
20472
20473 * charset.c: Remove `emacs' conditional. Doc fixes.
20474 (map_char_table_for_charset): Declare.
20475
20476 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20477
20478 * ccl.c: Remove `emacs' conditional.
20479
204802008-02-01 Kenichi Handa <handa@m17n.org>
20481
20482 The following changes are to allow specifying multiple font
20483 patterns for a character range (specified by script or charset).
20484
20485 * Makefile.in (abbrev.o): Depend on syntax.h.
20486 (xfaces.o): Depend on charset.h.
20487
20488 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20489 SINGLE_BYTE_CHAR_P.
20490
20491 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20492
20493 * character.h (Vchar_script_table): Extern it.
20494
20495 * character.c (Vscript_alist): Delete.
20496 (Vchar_script_table, Qchar_script_table): New variable.
20497 (syms_of_character): Declare Vchar_script_table as a lisp variable
20498 and initialize it.
20499
20500 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20501 have property char-table-extra-slots, make no extra slot.
20502
20503 * dispextern.h (struct face): Delete member `charset'.
20504 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20505 SINGLE_BYTE_CHAR_P.
20506 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20507 Add prototypes.
20508 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20509 (generate_ascii_font_name): Rename from generate_ascii_font.
20510
20511 * fontset.h (get_font_repertory_func): New prototype.
20512 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20513 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20514
20515 * fontset.c (Qprepend, Qappend): New variables.
20516 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20517 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20518 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20519 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20520 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20521 (load_font_get_repertory): New functions.
20522 (fontset_set): Delete.
20523 (fontset_face): New arg FACE. Return face ID, not face.
20524 Complete re-write to handle new fontset structure. Change caller.
20525 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20526 (face_for_char): Don't call lookup_face.
20527 (make_fontset_for_ascii_face): New arg FACE.
20528 (fs_load_font): New arg CHARSET_ID. Don't check
20529 Vfont_encoding_alist here.
20530 (find_font_encoding): New function.
20531 (list_fontsets): Use STRINGP, not ! NILP.
20532 (accumulate_script_ranges): New function.
20533 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20534 re-written to handle new fontset structure.
20535 (Ffontset_font): Return a copy of element.
20536 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20537 docstring of font-encoding-alist.
20538
20539 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20540 (Fset_fotset_font): Fix arguments to 5.
20541
20542 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20543
20544 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20545 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20546 (highlight_trailing_whitespace): Adjust for the change of
20547 lookup_named_face.
20548
20549 * xfaces.c: Include charset.h.
20550 (load_face_font): Delete argument C. Change caller.
20551 (generate_ascii_font_name): Rename from generate_ascii_font.
20552 (font_name_registry): New function.
20553 (cache_face): Store ascii faces before non-ascii faces in buckets.
20554 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20555 Lookup only ascii faces.
20556 (lookup_non_ascii_face): New function.
20557 (lookup_named_face): Delete argument C. Change caller.
20558 (lookup_derived_face): Delete argument C. Change caller.
20559 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20560 a string, just call font_list with it.
20561 (choose_face_font): Delete arguments FACE and C. New arg
20562 FONT_SPEC. Change caller.
20563 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20564 Change caller.
20565 (realize_non_ascii_face): New function.
20566 (realize_x_face): Call load_face_font here.
20567 (realize_tty_face): Delete argument C. Change caller.
20568 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20569 get a face ID.
20570 (dump_realized_face): Don't print charset of FACE.
20571
20572 * xfns.c (x_set_font): Always call x_new_fontset and
20573 store_frame_parameter.
20574 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20575 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20576
20577 * xterm.h (x_get_font_repertory): Extern it.
20578
20579 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20580 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20581 it->multibyte_p is zero.
20582 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20583 (x_new_fontset): If FONTSETNAME doesn't match any existing
20584 fontsets, create a new one.
20585 (x_get_font_repertory): New function.
20586
205872008-02-01 Kenichi Handa <handa@m17n.org>
20588
20589 * coding.c (Ffind_coding_systems_region_internal): Detect an
20590 ASCII only string correctly.
20591
20592 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20593 version is 0.
20594
205952008-02-01 Kenichi Handa <handa@m17n.org>
20596
20597 * lread.c: Include "coding.h".
20598 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20599 (load_each_byte, unread_char): New variables.
20600 (readchar_backlog): Delete.
20601 (readchar): Return a character unless load_each_byte is nonzero.
20602 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20603 cons. If unread_char is not -1, simply return it.
20604 (unreadchar): Handle the case that readcharfun is
20605 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20606 (read_multibyte): Delete.
20607 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20608 (read_emacs_mule_char): New functions.
20609 (Fload): Even if the file doesn't have the extension ".elc", if
20610 safe_to_load_p returns a positive version number, assume that the
20611 file contains bytecompiled code. If the version is less than 22,
20612 load the file while decoding multibyte sequences by emacs-mule.
20613 (readevalloop): Don't use readchar_backlog.
20614 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20615 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20616 (read_escape): Delete the arg BYTEREP.
20617 (read1): Set load_each_byte to 1 temporarily while handling
20618 #@NUMBER. Don't call read_multibyte.
20619 (read_vector): Call Fread with a cons. If readcharfun is
20620 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20621 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20622 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20623 and Qload_force_doc_strings.
20624
206252008-02-01 Kenichi Handa <handa@m17n.org>
20626
20627 * xdisp.c (face_before_or_after_it_pos): Call
20628 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20629
206302008-02-01 Kenichi Handa <handa@m17n.org>
20631
20632 * character.h (TRAILING_CODE_P): New macro.
20633 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20634 (string_char_with_unification): Fix prototype.
20635 (Vscript_alist): Extern it.
20636
20637 * character.c (Vscript_alist): New variable.
20638 (string_char_with_unification, str_as_unibyte)
20639 (string_escape_byte8): Add `const' to local variables.
20640 (syms_of_character): Declare script-alist as a Lisp variable.
20641
20642 * charset.h (Vcharset_ordered_list): Extern it.
20643 (charset_ordered_list_tick): Extern it.
20644 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20645 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20646 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20647 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20648 (Funify_charset): Adjust for the change of Funify_charset.
20649
20650 * charset.c (charset_ordered_list_tick): New variable.
20651 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20652 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20653 deunify intead of unify a charset.
20654 (string_xstring_p): Add `const' to local variables.
20655 (find_charsets_in_text): Add `const' to arguments and local variables.
20656 (encode_char): Adjust for the change of Funify_charset. Fix
20657 detecting of invalid code.
20658 (Fset_charset_priority): Increment charset_ordered_list_tick.
20659 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20660 and TO_CODE.
20661
20662 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20663 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20664 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20665 (decode_coding_ccl, consume_chars)
20666 (Ffind_coding_systems_region_internal)
20667 (Fcheck_coding_systems_region): Add `const' to local variables.
20668
20669 * print.c (print_object): Use octal form for printing the
20670 contents of a bool vector.
20671
206722008-02-01 Dave Love <fx@gnu.org>
20673
20674 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20675 <version == 20>: Refuse to load.
20676
206772008-02-01 Dave Love <fx@gnu.org>
20678
20679 * fns.c: Move coding.h.
20680 (Qcodeset, Qdays, Qmonths): New.
20681 (concat): Use CHARACTERP instead of INTEGERP.
20682 (Flocale_codeset): Delete.
20683 (Flanginfo): New function.
20684 (syms_of_fns): Change accordingly.
20685
20686 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20687
206882008-02-01 Dave Love <fx@gnu.org>
20689
20690 * casetab.c (init_casetab_once, init_casetab_once): Fix
20691 CHAR_TABLE_SET call.
20692
20693 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20694
20695 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20696
20697 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20698 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20699 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20700
20701 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20702
20703 * coding.c (ENCODE_DESIGNATION, decode_eol)
20704 (make_conversion_work_buffer, code_conversion_restore)
20705 (Fdefine_coding_system_internal): Convert Lisp types.
20706 (code_conversion_restore): Use EQ, not ==.
20707 (Fencode_coding_string): Fix code_convert_string call.
20708
20709 * coding.h (code_convert_region): Fix prototype.
20710
20711 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20712
20713 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20714 (Ffontset_info): Convert Lisp types.
20715
20716 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20717
20718 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20719
20720 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20721
20722 * chartab.c: Include "...h", not <...h> in some cases.
20723
20724 * callproc.c (Fcall_process): Remove unused variables.
20725
207262008-02-01 Dave Love <fx@gnu.org>
20727
20728 * coding.c (Fset_coding_system_priority): Allow null arg list.
20729
207302008-02-01 Dave Love <fx@gnu.org>
20731
20732 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20733 (Fself_insert_and_exit): Use CHARACTERP.
20734
20735 * callproc.c (Fcall_process): Remove unused vars.
20736
20737 * xterm.c (XTread_socket): Add extra dead keysyms.
20738
20739 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20740
20741 * dispextern.h: Remove prototypes for redraw_frame,
20742 redraw_garbaged_frames.
20743
20744 * cmds.c (Fself_insert_command): Use CHARACTERP.
20745
20746 * chartab.c (make_sub_char_table): Remove unused var.
20747 (Fset_char_table_default, Fmap_char_table): Doc fix.
20748
20749 * keymap.c (access_keymap): Remove generic char code.
20750 (push_key_description): Use CHARACTERP.
20751
207522008-02-01 Dave Love <fx@gnu.org>
20753
20754 * charset.c: Doc fixes.
20755 (Funify_charset): Extra checking.
20756
207572008-02-01 Dave Love <fx@gnu.org>
20758
20759 * lread.c: Remove some unused variables.
20760 (safe_to_load_p): If safe, return the magic number version byte.
20761 (Fload): Maybe use load-with-code-conversion.
20762
207632008-02-01 Kenichi Handa <handa@m17n.org>
20764
20765 * category.c (Fmodify_category_entry): Don't modify the contents
20766 of category_set for characters out of the range. Avoid
20767 unnecessary modification.
20768
20769 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20770 Vchar_unify_table. The default value of the table is now nil.
20771
20772 * character.c (syms_of_character): Setup Vchar_width_table for
20773 eight-bit-control and raw-byte chars.
20774
20775 * charset.h (enum define_charset_arg_index): Delete
20776 charset_arg_parents and add charset_arg_subset and
20777 charset_arg_superset.
20778 (enum charset_attr_index): Delete charset_parents and add
20779 charset_subset and charset_superset.
20780 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20781 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20782 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20783 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20784 (CHARSET_SUPERSET): New macros.
20785 (charset_work): Extern it.
20786 (ENCODE_CHAR): Use charset_work.
20787 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20788 (map_charset_chars): Extern it.
20789
20790 * charset.c (load_charset_map): Set the default value of encoder
20791 and deunifier char-tables to nil.
20792 (map_charset_chars): Change argument. Change callers. Use
20793 map_char_table_for_charset instead of map_char_table.
20794 (Fmap_charset_chars): New optional args from_code and to_code.
20795 (Fdefine_charset_internal): Adjust for the change of
20796 `define-charset' (:parents -> :subset or :superset).
20797 (charset_work): New variable.
20798 (encode_char, syms_of_charset): Adjust for the change of
20799 Fdefine_charset_internal.
20800 (Ffind_charset_string): Setup the vector `charsets' correctly.
20801
20802 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20803 the previous change.
20804 (char_table_ref_and_range): Adjust for the above change.
20805 (map_sub_char_table_for_charset): New function.
20806 (map_char_table_for_charset): New function.
20807
20808 * keymap.c (describe_vector): Handle a char-table directly here.
20809 (describe_char_table): Delete.
20810
20811 * lisp.h (map_charset_chars): Delete.
20812
208132008-02-01 Dave Love <fx@gnu.org>
20814
20815 * fns.c (count_combining): Comment out (unused).
20816 (Flocale_codeset): New.
20817 (syms_of_fns): Defsubr it.
20818
20819 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20820 (size_t): Remove.
20821
208222008-02-01 Dave Love <fx@gnu.org>
20823
20824 * Makefile.in (chartab.o): Depend on charset.h.
20825
208262008-02-01 Kenichi Handa <handa@m17n.org>
20827
20828 * character.c (syms_of_character): Set the default value of
20829 Vprintable_chars to Qnil.
20830
208312008-02-01 Dave Love <fx@gnu.org>
20832
20833 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20834
208352008-02-01 Kenichi Handa <handa@m17n.org>
20836
20837 * charset.c (load_charset_map): Handle the case that from < to
20838 correctly.
20839
20840 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20841 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20842 Pay attention to raw-8-bit chars.
20843
208442008-02-01 Kenichi Handa <handa@m17n.org>
20845
20846 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20847 It is not bytecompiled now.
20848
20849 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20850 (charset_jisx0208): New variables.
20851 (Fdefine_charset_internal): Setup them if appropriate.
20852 (init_charset_once): Initialize them to -1.
20853
20854 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20855 (charset_jisx0208): Extern them.
20856
20857 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20858 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20859 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20860 (setup_iso_safe_charsets): Fix arguments to Fassq.
20861 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20862 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20863 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20864 (encode_coding_iso_2022): Change the 1st arg to
20865 ENCODE_ISO_CHARACTER to a variable.
20866
208672008-02-01 Kenichi Handa <handa@m17n.org>
20868
20869 * charset.h (enum define_charset_arg_index): New enums
20870 charset_arg_min_code and charset_arg_max_code.
20871 (struct charset): New member char_index_offset.
20872
20873 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20874 Take charset->char_index_offset into account.
20875 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20876 args[charset_arg_max_code]. Setup charset.char_index_offset.
20877 (syms_of_charset): Fix args to Fdefine_charset_internal.
20878
208792008-02-01 Dave Love <fx@gnu.org>
20880
20881 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20882
208832008-02-01 Dave Love <fx@gnu.org>
20884
20885 * coding.c: Doc fixes.
20886 (Fcoding_system_aliases): Fix return value.
20887 (Qmac): Remove (duplicated) definition.
20888
208892008-02-01 Dave Love <fx@gnu.org>
20890
362654a6
JB
20891 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20892 New functions.
aac0c6e3
MR
20893
20894 * character.c (Fstring): Doc fix.
20895
20896 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20897
362654a6 20898 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20899 (font-encoding-alist): Doc fix.
20900
209012008-02-01 Dave Love <fx@gnu.org>
20902
20903 * term.c (costs_set): Declare static, non-initialized for pcc.
20904 (encode_terminal_code): Remove unused var.
20905
20906 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20907 for K&R.
20908
20909 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20910
20911 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20912 (suffixes): Move out of make_subsidiaries for K&R.
20913
20914 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20915
20916 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20917
209182008-02-01 Dave Love <fx@gnu.org>
20919
20920 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20921
20922 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20923
209242008-02-01 Yong Lu <lyongu@asia-infonet.com>
20925
20926 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20927
20928 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20929
209302008-02-01 Kenichi Handa <handa@m17n.org>
20931
20932 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20933 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20934
209352008-02-01 Kenichi Handa <handa@m17n.org>
20936
20937 * coding.c (decode_coding_charset): Adjust for the change of
20938 Fdefine_coding_system_internal.
20939 (Fdefine_coding_system_internal): For a coding system of
20940 `charset' type, store a list of charset IDs in
20941 `charset_attr_charset_valids' element of coding attributes.
20942
209432008-02-01 Kenichi Handa <handa@m17n.org>
20944
20945 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20946 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20947 caller. Handle 2-byte and 3-byte charsets correctly.
20948 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20949 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20950 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20951 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20952 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20953 sequence.
20954 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20955 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20956 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20957 and alt&rule composition.
20958 (decode_coding_iso_2022): Handle composition correctly.
20959 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20960
20961 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20962 re-defining a charset. If the charset has :emacs-mule-id, setup
20963 emacs_mule_bytes.
20964 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20965
209662008-02-01 Kenichi Handa <handa@m17n.org>
20967
20968 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20969 (encode_coding_big5, encode_coding_charset): If coding requires safe
20970 encoding, produce a character specified by
20971 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20972
209732008-02-01 Dave Love <fx@gnu.org>
20974
20975 * xterm.c (XSetIMValues): Declare.
20976
20977 * process.c: Conditionally include sys/wait.h, pty.h.
20978
20979 * print.c (print_object): Fix print format for 64-bit systems.
20980
20981 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20982
20983 * buffer.c (emacs_strerror): Declare.
20984
20985 * fontset.c (Fclear_face_cache): Declare.
20986 (accumulate_font_info): Comment-out (unused).
20987 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20988 variables.
20989
20990 * character.h (string_escape_byte8): Declare.
20991
20992 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20993 unused vars.
20994 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20995 (Fmap_charset_chars): Doc fix.
20996
20997 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20998 (Fset_coding_system_priority, Fset_coding_system_priority)
20999 (Fdefine_coding_system_internal): Doc fix.
21000
210012008-02-01 Dave Love <fx@gnu.org>
21002
21003 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21004
210052008-02-01 Kenichi Handa <handa@m17n.org>
21006
21007 * character.c (string_escape_byte8): Make multibyte string with
21008 correct size.
21009
21010 * charset.c (Fmake_char): Delete unnecessary code.
21011
210122008-02-01 Kenichi Handa <handa@m17n.org>
21013
21014 * xfns.c (x_encode_text): Allocate coding.destination here, and
21015 call encode_coding_object with dst_object Qnil.
21016
21017 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21018 multibyte form correctly.
21019
21020 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21021 against Vfont_encoding_alist.
21022
21023 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21024 handling of charset list.
21025 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21026 (decode_coding_object): Move point to coding->dst_pos before
21027 calling post-read-conversion function.
21028 (encode_coding_object): Give correct arguments to
21029 pre-write-conversion. Ignore the return value of
21030 pre-write-conversion function. Pay attention to the case that
21031 pre-write-conversion changes the current buffer. If dst_object is
21032 Qt, even if coding->src_bytes is zero, allocate at least one byte
21033 to coding->destination.
21034
21035 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21036
21037 * charset.c (Fmake_char): Make it more backward compatible.
21038 (Fmap_charset_chars): Fix docstring.
21039
210402008-02-01 Dave Love <fx@gnu.org>
21041
21042 * coding.c: Doc fixes.
21043 (Fdefine_coding_system_alias): Use names, not symbols, in
21044 coding-system-alist.
21045
210462008-02-01 Kenichi Handa <handa@m17n.org>
21047
21048 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21049 of calling free_realized_face.
21050
210512008-02-01 Yong Lu <lyongu@asia-infonet.com>
21052
21053 * charset.c (read_hex): Don't treat SPC as a comment starter.
21054 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21055 (Fdecode_char): Fix typo.
21056
210572008-02-01 Kenichi Handa <handa@m17n.org>
21058
21059 * charset.h (struct charset): New member `code_space_mask'.
21060
21061 * coding.c (coding_set_source): Delete the local variable beg_byte.
21062 (encode_coding_charset, Fdefine_coding_system_internal):
21063 Delete the local variable charset.
21064 (Fdefine_coding_system_internal): Setup
21065 attrs[coding_attr_charset_valids] correctly.
21066
21067 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21068 member to check if CODE is valid or not.
21069 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21070 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21071 is within the range of charset->min_code and carset->max_code.
21072
210732008-02-01 Dave Love <fx@gnu.org>
21074
21075 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21076
21077 * dispextern.h (generate_ascii_font): Fix return type.
21078
21079 * xfaces.c (generate_ascii_font): Fix arg declaration.
21080
21081 * coding.c (coding_inherit_eol_type)
21082 (Fset_terminal_coding_system_internal)
21083 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21084
210852008-02-01 Kenichi Handa <handa@m17n.org>
21086
21087 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21088 multiple charsets correctly.
21089
210902008-02-01 Kenichi Handa <handa@m17n.org>
21091
21092 * search.c (boyer_moore): Fix handling of multibyte character
21093 translation.
21094
21095 * xdisp.c (display_mode_element): When the variable `elt' is
21096 changed, update `this' and `lisp_string'.
21097
210982008-02-01 Kenichi Handa <handa@m17n.org>
21099
21100 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21101
21102 * callproc.c (Fcall_process): Be sure to give the current buffer
21103 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21104
21105 * charset.c (struct charset_map_entries): New struct.
21106 (load_charset_map): Rename from parse_charset_map. New args
21107 entries and n_entries. Change caller.
21108 (load_charset_map_from_file): Rename from load_charset_map.
21109 Change caller. New arg control_flag. Call load_charset_map at
21110 the tail.
21111 (load_charset_map_from_vector): New function.
21112 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21113 (encode_char): If the charset is compact, change a character index
21114 to a code point.
21115
21116 * coding.c (coding_alloc_by_making_gap): Check the case that the
21117 source and destination are the same correctly.
21118 (decode_coding_raw_text): Set coding->consumed_char and
21119 coding->consumed to 0.
21120 (produce_chars): If coding->chars_at_source is nonzero, update
21121 coding->consumed_char and coding->consumed before calling
21122 alloc_destination.
21123 (Fdefine_coding_system_alias): Register ALIAS in
21124 Vcoding_system_alist.
21125 (syms_of_coding): Define `no-conversion' coding system at the tail.
21126
21127 * fileio.c (Finsert_file_contents): Set coding_system instead of
21128 val. If the current buffer is multibyte, always call
21129 decode_coding_gap.
21130
21131 * xfaces.c (try_font_list): Give higher priority to fontset's
21132 family than face's family.
21133
211342008-02-01 Kenichi Handa <handa@m17n.org>
21135
21136 * callproc.c (Fcall_process): Be sure to give the current buffer
21137 to decode_coding_c_string.
21138
21139 * xfaces.c (try_font_list): Give a family specified in a fontset
21140 higher priority than a family specified in a face.
21141
211422008-02-01 Kenichi Handa <handa@m17n.org>
21143
21144 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21145 Fix arguments to insert_from_buffer.
21146
21147 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21148
211492008-02-01 Kenichi Handa <handa@m17n.org>
21150
21151 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21152 (decode_coding_gap): Set coding->dst_multibyte correctly.
21153
211542008-02-01 Kenichi Handa <handa@m17n.org>
21155
21156 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21157 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21158 (encode_coding_utf_16): Substitute coding->default_char for
21159 non-Unicode characters.
21160 (decode_coding): Don't call record_insert here.
21161 (setup_coding_system): Initialize `surrogate' of
21162 coding->spec.utf_16 to 0.
21163 (EMIT_ONE_BYTE): Fix for multibyte case.
21164
21165 * insdel.c (insert_from_gap): Call record_insert.
21166
211672008-02-01 Kenichi Handa <handa@m17n.org>
21168
21169 * casefiddle.c (casify_region): Fix multibyte case.
21170
21171 * character.c (c_string_width): Add return type `int'.
21172 (char_string_with_unification): Delete arg ADVANCED.
21173
21174 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21175 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21176 (CHAR_STRING_ADVANCE): Make it do-while statement.
21177
21178 * chartab.c (sub_char_table_set_range): Optimize for the case
21179 DEPTH == 3. Add workaround code for a GCC optimization bug.
21180
21181 * charset.c (parse_charset_map): Remove an unused variable.
21182
21183 * coding.c: Delete unused variables.
21184
21185 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21186 earlier. If inserted is zero and the coding system doesn't
21187 require flushing, don't call decode_coding_gap.
21188
21189 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21190
211912008-02-01 Kenichi Handa <handa@m17n.org>
21192
21193 The following changes are for using Unicode as an internal
21194 character model, and use UTF-8 format for buffer/string
21195 representation.
21196
21197 * .gdbinit (xchartable): Adjust for the change of char table structure.
21198 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21199
21200 * Makefile.in (obj): Add character.o and chartab.o.
21201 (lisp, shortlisp): Remove utf-8.elc.
21202 (*.o): For many files, change dependency on charset.h to
21203 character.h, and add dependency on character.h.
21204 (character.o, chartab.o): New targets.
21205
21206 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21207 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21208 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21209 of "charset.h".
21210
21211 * dired.c, filelock.c: Include "character.h".
21212
21213 * alloc.c: Include "character.h" instead of "charset.h".
21214 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21215 (syms_of_alloc): Remove defsubr for Smake_char_table.
21216
21217 * buffer.c: Include "character.h" instead of "charset.h", don't
21218 include "coding.h".
21219 (Fset_buffer_multibyte): Adjust for UTF-8.
21220
21221 * buffer.h: EXFUN Fbuffer_live_p.
21222
21223 * callproc.c: Include "character.h" instead of "charset.h".
21224 (Fcall_process): Big change for the new code-conversion APIs.
21225
21226 * casetab.c: Include "character.h" instead of "charset.h".
21227 (set_canon, set_identity, shuffle): Adjust for the new
21228 map_char_table spec.
21229 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21230 accessing the char table structure.
21231
21232 * chartab.c: New file that implements char table.
21233
21234 * category.c: Include "character.h".
21235 (copy_category_entry): New function.
21236 (copy_category_table): Call map_char_table and copy_category_entry.
21237 (Fmake_category_table): Initialize all top-level slots.
21238 (char_category_set): New function.
21239 (modify_lower_category_set): Delete.
21240 (Fmodify_category_entry): Call char_table_ref_and_range.
21241
21242 * category.h (CATEGORY_SET): Just call char_category_set.
21243
21244 * ccl.c: Include "character.h".
21245 (Qccl, Qcclp): New variables.
21246 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21247 it's less than 256.
21248 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21249 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21250 and DST type.
21251 (ccl_driver): Change types of argument, adjust code accordingly.
21252 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21253 ccl_driver.
21254 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21255
21256 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21257 New members src_multibyte, dst_multibyte, consumed, and produced.
21258 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21259 (CODING_SPEC_CCL_PROGRAM): New macro.
21260 (ccl_driver): Update prototype.
21261 (Qccl, Qcclp, Fccl_program_p): Extern them.
21262 (CHECK_CCL_PROGRAM): New macro.
21263
21264 * character.c, character.h, chartab.c: New files.
21265
21266 * charset.c: Mostly re-written. Move character and multibyte sequence
21267 handling codes to character.c.
21268
21269 * charset.h: Mostly re-written. Move character and multibyte sequence
21270 handling codes to character.h.
21271
21272 * coding.c, coding.h: Mostly re-written.
21273
21274 * composite.c: Include "character.h" instead of "charset.h".
21275 (CHAR_WIDTH): Move to character.h.
21276 (HASH_KEY, HASH_VALUE): Delete.
21277
21278 * composite.h (enum composition_method): Change order of enumeration
21279 symbols.
21280
21281 * data.c: Include "character.h" instead of "charset.h".
21282 (Faref): Call CHAR_TABLE_REF for a char table.
21283 (Faset): Call CHAR_TABLE_SET for a char table.
21284
21285 * dispextern.h (free_realized_face, check_face_attribytes)
21286 (generate_ascii_font): Extern them.
21287 (free_realized_multibyte_face): Delete extern.
21288
21289 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21290 table structure.
21291
21292 * editfns.c: Include "character.h" instead of "charset.h".
21293 (Fchar_to_string): Always call CHAR_STRING.
21294
21295 * emacs.c (main): Call init_charset_once, init_charset,
21296 syms_of_chartab, and syms_of_character.
21297
21298 * fileio.c: Include "character.h" instead of "charset.h".
21299 (Finsert_file_contents): Big change for the new code-conversion API.
21300 (choose_write_coding_system, Fwrite_region): Likewise.
21301 (build_annotations_2): Delete.
21302 (e_write): Big change for the new code-conversion API.
21303
21304 * fns.c: Include "character.h" instead of "charset.h".
21305 (copy_sub_char_table): Move to chartab.c.
21306 (Fcopy_sequence): Call copy_char_table for a char table.
21307 (concat): Delete codes calling count_multibyte.
21308 (string_char_to_byte, string_byte_to_char): Adjust for the new
21309 multibyte form.
21310 (internal_equal): Adjust for the change of char table structure.
21311 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21312 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21313 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21314 (char_table_translate, optimize_sub_char_table)
21315 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21316 chartab.c.
21317 (char_table_ref_and_index): Delete.
21318 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21319 (Fmd5): Call preferred_coding_system instead of accessing
21320 Vcoding_category_list. Adjust for the new code-conversion API.
21321 (syms_of_fns): Move defsubr for char table related functions to
21322 chartab.c.
21323
21324 * fontset.c: Mostly re-written.
21325
21326 * fontset.h (struct font_info): Change type of the member encoding_type.
21327 (enum FONT_SPEC_INDEX): New enum.
21328 (fontset_font_pattern, fs_load_font): Update prototype.
21329 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21330
21331 * indent.c: Include "character.h" instead of "charset.h".
21332 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21333
21334 * insdel.c: Include "character.h" instead of "charset.h".
21335 (copy_text): Don't refer to Vnonascii_translation_table.
21336 (insert_from_gap): New function.
21337
21338 * keyboard.c: Include "character.h" instead of "charset.h".
21339 (command_loop_1): Never call direct_output_forward_char before
21340 a non-ASCII character.
21341 (read_char): If Vkeyboard_translate_table is a char table, always
21342 translate a character.
21343
21344 * keymap.c: Include "character.h".
21345 (store_in_keymap): Handle the case that IDX is a cons.
21346 (Fdefine_key): Handle the case that KEY is a cons and the car part
21347 is also a cons (range).
21348 (push_key_description): Adjust for the new character code.
21349 (describe_vector): Call describe_char_table for a char table.
21350 (describe_char_table): New function.
21351
21352 * keymap.h (describe_char_table): Extern it.
21353
21354 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21355 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21356 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21357 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21358 Delete.
21359 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21360 structure.
21361 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21362 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21363 (CHARTAB_SIZE_BITS_3): New macros.
21364 (chartab_size): Extern it.
21365 (struct Lisp_Char_Table): Re-design.
21366 (struct Lisp_Sub_Char_Table): New structure.
21367 (HASH_KEY, HASH_VALUE): Move from fns.c.
21368 (CHARACTERBITS): Define as 22.
21369 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21370 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21371 (GC_SUB_CHAR_TABLE_P): New macro.
21372 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21373 (code_convert_string_norecord): Deleted extern.
21374 (init_character_once, syms_of_character, init_charset)
21375 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21376
21377 * lread.c: Include "character.h".
21378 (read_multibyte): New arg NBYTES.
21379 (read_escape): Change the meaning of returned *BYTEREP.
21380 (to_multibyte): Delete.
21381 (read1): Adjust the handling of char table and string.
21382
21383 * print.c: Include "character.h" instead of "charset.h".
21384 (print_string): Convert 8-bit raw bytes to octal form by
21385 string_escape_byte8.
21386 (print_object): Adjust for the new multibyte form. Print 8-bit
21387 raw bytes always in octal form. Handle sub char table correctly.
21388
21389 * process.c: Include "character.h" instead of "charset.h".
21390 (read_process_output, send_process): Adjust for the new
21391 code-conversion API.
21392
21393 * puresize.h (BASE_PURESIZE): Increase.
21394
21395 * regex.c: Include "character.h" instead of "charset.h".
21396 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21397 (regex_compile): Accept a range whose starting and ending
21398 character have different leading bytes.
21399 (analyse_first): Adjust for the above change.
21400
21401 * search.c: Include "character.h" instead of "charset.h".
21402 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21403 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21404
21405 * syntax.c: Include "character.h" instead of "charset.h".
21406 (syntax_parent_lookup): Delete.
21407 (Fmodify_syntax_entry): Accept a cons as CHAR.
21408 (skip_chars): Adjust for the new multibyte form.
21409 (init_syntax_once): Call char_table_set_range instead of directly
21410 accessing the structure of a char table.
21411
21412 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21413 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21414 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21415 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21416
21417 * term.c: Include "buffer.h" and "character.h".
21418 (encode_terminal_code, write_glyphs): Adjust for the new
21419 code-conversion API.
21420 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21421
21422 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21423
21424 * xdisp.c: Include "character.h".
21425 (get_next_display_element): Adjust for the new multibyte form.
21426 (disp_char_vector): Adjust for the new char table structure.
21427 (decode_mode_spec_coding): Adjust for the new structure of
21428 coding system.
21429 (decode_mode_spec): Adjust for the new code-conversion API.
21430
21431 * xfaces.c: Include "character.h" instead of "charset.h".
21432 (load_face_font): Adjust for the change of choose_face_font and
21433 FS_LOAD_FONT.
21434 (generate_ascii_font): New function.
21435 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21436 (set_font_frame_param): Adjust for the change of choose_face_font.
21437 (free_realized_face): Make it public.
21438 (free_realized_faces_for_fontset): Rename from
21439 free_realized_multibyte_face. Free also faces realized for ASCII.
21440 (choose_face_font): Change arguments. Adjust for the change of
21441 fontset_font_pattern and FS_LOAD_FONT.
21442
21443 * xfns.c: Include "character.h".
21444 (x_encode_text): Adjust for the new code-conversion API.
21445
21446 * xselect.c: Don't include "charset.h".
21447 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21448
21449 * xterm.c: Include "character.h".
21450 (x_encode_char): New argument CHARSET. Change caller.
21451 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21452 Call ENCODE_CHAR instead of SPLIT_CHAR.
21453 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21454 CHAR_WIDTH instead of CHARSET_WIDTH.
21455 (XTread_socket): Adjust for the new code-conversion API.
21456 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21457 (x_load_font): Adjust for the change of struct font.
21458
214592008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21460
21461 * xfaces.c (face_at_buffer_position): Remove unused vars.
21462
214632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21464
21465 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21466 Fix overflow checking.
21467
214682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21469
21470 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21471 Cancel previous change.
21472
214732008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21474
21475 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21476 ccl->eight_bit_control. Fix check for buffer overflow.
21477 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21478 (ccl_driver): Initialize extra_bytes to 0.
21479
214802008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21481
21482 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21483 return it ORed with ctrl_modifier.
21484
214852008-01-29 Miles Bader <miles@gnu.org>
21486
21487 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21488
214892008-01-28 Jason Rumney <jasonr@gnu.org>
21490
21491 * w32.c (stat): Don't double check for networked drive.
21492
214932008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21494
21495 * window.c (run_window_configuration_change_hook): New function.
21496 Code extracted from set_window_buffer. Set the selected frame.
21497 (set_window_buffer): Use it.
21498 * window.h (run_window_configuration_change_hook): Declare.
21499 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21500
21501 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21502
215032008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21504
21505 * Makefile.in: Remove references to unused macros.
21506
215072008-01-26 Eli Zaretskii <eliz@gnu.org>
21508
21509 * w32.c (g_b_init_get_sid_sub_authority)
21510 (g_b_init_get_sid_sub_authority_count): New static variables.
21511 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21512 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21513 (init_user_info): Use them to retrieve uid and gid.
21514 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21515 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21516 st_uid and st_gid of the file.
21517
215182008-01-26 Jason Rumney <jasonr@gnu.org>
21519
21520 * w32.c (logon_network_drive): New function.
21521 (stat): Use it.
21522
215232008-01-26 Chong Yidong <cyd@stupidchicken.com>
21524
21525 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21526 invisible text covered with an ellipsis.
21527
215282008-01-25 Richard Stallman <rms@gnu.org>
21529
21530 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21531 jump back to beginning. Move some other initializations after that.
21532 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21533 New variables.
21534 (syms_of_xdisp): Init them.
21535
21536 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21537
21538 * buffer.c (reset_buffer_local_variables):
21539 Implement `permanent-local-hook'.
21540 (Qpermanent_local_hook): New variable.
21541 (syms_of_buffer): Init and staticpro it.
21542
215432008-01-25 Michael Albinus <michael.albinus@gmx.de>
21544
21545 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21546
215472008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21548
21549 * fns.c (Fclrhash): Return TABLE.
21550
215512008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21552
21553 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21554 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21555 is set even without positional changes.
21556 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21557
21558 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21559
215602008-01-23 Jason Rumney <jasonr@gnu.org>
21561
21562 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21563
21564 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21565 the unicode range available in MULE by locale-coding-system.
21566 Improve dbcs lead byte detection. Set event timestamp and modifiers
21567 earlier.
21568
215692008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21570
21571 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21572 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21573 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21574 when used on child processes.
21575
215762008-01-21 Michael Albinus <michael.albinus@gmx.de>
21577
21578 * dbusbind.c (Fdbus_method_return_internal): Rename from
21579 Fdbus_method_return.
21580 (Fdbus_unregister_object): Move to dbus.el.
21581 (Fdbus_call_method, Fdbus_method_return_internal)
21582 (Fdbus_send_signal): Improve debug messages.
21583
215842008-01-20 Martin Rudalics <rudalics@gmx.at>
21585
21586 * undo.c (undo_inhibit_record_point): New variable.
21587 (syms_of_undo): Initialize it.
21588 (record_point): Don't record point when undo_inhibit_record_point
21589 is set.
21590
215912008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21592
21593 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21594
21595 * xdisp.c (Qauto_hscroll_mode): New var.
21596 (syms_of_xdisp): Initialize it.
21597 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21598 window's buffer.
21599 (hscroll_windows): Don't check automatic_hscrolling_p here.
21600
21601 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21602 vscroll if we're setting window-buffer to the value it already has.
21603
216042008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21605
21606 * m/intel386.h: Remove references to XENIX.
21607
216082008-01-17 Andreas Schwab <schwab@suse.de>
21609
21610 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21611 instead of HAVE_X86_64_LIB64_DIR.
21612 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21613
216142008-01-17 Glenn Morris <rgm@gnu.org>
21615
21616 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21617 to HAVE_X86_64_LIB64_DIR.
21618
216192008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21620
21621 * s/irix3-3.h:
21622 * s/irix4-0.h:
21623 * s/386-ix.h:
21624 * s/domain.h:
21625 * s/hpux9-x11r4.h:
21626 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21627
21628 * sysdep.c: Remove code containing references to symbols defined
21629 by unsupported systems.
21630
216312008-01-16 Glenn Morris <rgm@gnu.org>
21632
21633 * coding.c (select-safe-coding-system-function): Doc fix.
21634
216352008-01-15 Glenn Morris <rgm@gnu.org>
21636
21637 * config.in: Revert 2008-01-13 change: this is a generated file.
21638
216392008-01-13 Tom Tromey <tromey@redhat.com>
21640
21641 * lisp.h: Fix typo.
21642
216432008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21644
21645 * m/sequent-ptx.h:
21646 * m/sequent.h:
21647 * s/ptx.h:
21648 * s/ptx4-2.h:
21649 * s/ptx4.h: Remove files for systems no longer supported.
21650
21651 * callproc.c (Fcall_process): Fix previous change.
21652
216532008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21654
21655 * unexsunos4.c: Remove file, system not supported anymore.
21656
21657 * m/mips.h:
21658 * m/intel386.h:
21659 * callproc.c:
21660 * config.in:
21661 * ecrt0.c:
21662 * emacs.c:
21663 * fileio.c:
21664 * frame.c:
21665 * getpagesize.h:
21666 * keyboard.c:
21667 * lread.c:
21668 * process.c:
21669 * puresize.h:
21670 * sysdep.c:
21671 * systty.h:
21672 * syswait.h:
21673 * unexec.c:
21674 * xdisp.c:
21675 * alloc.c: Remove code containing references to symbols defined by
21676 unsupported systems.
21677
216782008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21679
21680 * coding.c (detect_coding_mask): Fix previous change.
21681
216822008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21683
21684 * coding.c (detect_coding_iso2022): New arg
21685 latin_extra_code_state. Allow Latin extra codes only
21686 when *latin_extra_code_state is nonzero.
21687 (detect_coding_mask): If there is a NULL byte, detect the encoding
21688 as UTF-16 or binary. If Latin extra codes exist, detect the
21689 encoding as ISO-2022 only when there's no other proper encoding is
21690 found.
21691
216922008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21693
21694 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21695 #ifdef MAC_OS.
21696
216972008-01-08 Richard Stallman <rms@gnu.org>
21698
21699 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21700
217012008-01-06 Nick Roberts <nickrob@snap.net.nz>
21702
21703 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21704 menu bar in parentheses.
21705
217062008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21707
21708 * m/7300.h:
21709 * m/acorn.h:
21710 * m/alliant-2800.h:
21711 * m/alliant.h:
21712 * m/alliant1.h:
21713 * m/alliant4.h:
21714 * m/altos.h:
21715 * m/amdahl.h:
21716 * m/apollo.h:
21717 * m/att3b.h:
21718 * m/aviion-intel.h:
21719 * m/aviion.h:
21720 * m/celerity.h:
21721 * m/clipper.h:
21722 * m/cnvrgnt.h:
21723 * m/convex.h:
21724 * m/cydra5.h:
21725 * m/delta88k.h:
21726 * m/dpx2.h:
21727 * m/dual.h:
21728 * m/elxsi.h:
21729 * m/f301.h:
21730 * m/gould-np1.h:
21731 * m/gould.h:
21732 * m/i860.h:
21733 * m/ibmps2-aix.h:
21734 * m/ibmrt-aix.h:
21735 * m/ibmrt.h:
21736 * m/irist.h:
21737 * m/is386.h:
21738 * m/isi-ov.h:
21739 * m/mega68.h:
21740 * m/mg1.h:
21741 * m/news-r6.h:
21742 * m/news-risc.h:
21743 * m/news.h:
21744 * m/nh3000.h:
21745 * m/nh4000.h:
21746 * m/ns16000.h:
21747 * m/ns32000.h:
21748 * m/nu.h:
21749 * m/orion.h:
21750 * m/orion105.h:
21751 * m/paragon.h:
21752 * m/pfa50.h:
21753 * m/plexus.h:
21754 * m/pyramid.h:
21755 * m/pyrmips.h:
21756 * m/sh3el.h:
21757 * m/sps7.h:
21758 * m/sr2k.h:
21759 * m/stride.h:
21760 * m/sun1.h:
21761 * m/sun2.h:
21762 * m/sun3-68881.h:
21763 * m/sun3-fpa.h:
21764 * m/sun3-soft.h:
21765 * m/sun3.h:
21766 * m/sun386.h:
21767 * m/symmetry.h:
21768 * m/tad68k.h:
21769 * m/tahoe.h:
21770 * m/targon31.h:
21771 * m/tek4300.h:
21772 * m/tekxd88.h:
21773 * m/tower32.h:
21774 * m/tower32v3.h:
21775 * m/ustation.h:
21776 * m/wicat.h:
21777 * m/xps100.h:
21778 * s/cxux.h:
21779 * s/cxux7.h:
21780 * s/dgux.h:
21781 * s/dgux4.h:
21782 * s/dgux5-4-3.h:
21783 * s/dgux5-4r2.h:
21784 * s/esix.h:
21785 * s/esix5r4.h:
21786 * s/hiuxmpp.h:
21787 * s/hiuxwe2.h:
21788 * s/iris3-5.h:
21789 * s/iris3-6.h:
21790 * s/isc2-2.h:
21791 * s/isc3-0.h:
21792 * s/isc4-0.h:
21793 * s/isc4-1.h:
21794 * s/newsos5.h:
21795 * s/newsos6.h:
21796 * s/osf1.h:
21797 * s/osf5-0.h:
21798 * s/riscix1-1.h:
21799 * s/riscix12.h:
21800 * s/sco4.h:
21801 * s/sco5.h:
21802 * s/sunos4-0.h:
21803 * s/sunos4-1.h:
21804 * s/sunos413.h:
21805 * s/sunos4shr.h:
21806 * s/umax.h:
21807 * s/unipl5-2.h:
21808 * s/xenix.h:
21809 * cxux-crt0.s:
21810 * unexapollo.c:
21811 * unexconvex.c:
21812 * unexenix.c:
21813 * unexsni.c: Remove files for systems no longer supported.
21814
21815 * m/intel386.h: Remove references to unsupported systems.
21816
21817 * w32.c (get_emacs_configuration): Remove reference to i860.
21818
21819 * sysdep.c: Remove dead code.
21820
218212008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21822
21823 * s/rtu.h:
21824 * m/masscomp.h: Remove files. Platform is obsolete.
21825
218262008-01-04 Michael Albinus <michael.albinus@gmx.de>
21827
21828 * dbusbind.c (Fdbus_method_return): New function.
21829 (xd_read_message): Add the serial number to the event.
21830 (Fdbus_register_method): Activate the function.
21831
218322008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21833
21834 * keyboard.c (read_key_sequence): Fix typo.
21835
218362008-01-03 Michael Albinus <michael.albinus@gmx.de>
21837
21838 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21839 (xd_signature, xd_append_arg): Handle element type detection for
21840 empty arrays.
21841 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21842 SDATA () calls; this must be solved more general.
21843 (Fdbus_register_signal): Use SBYTES instead of strlen.
21844
218452008-01-03 Magnus Henoch <magnus@zemdatav>
21846
21847 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21848 unsigned int for byte values (necessary for big-endian platform).
21849 (Fdbus_call_method): Handle the case of no returned arguments.
21850
218512007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21852
21853 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21854
218552007-12-31 Magnus Henoch <mange@freemail.hu>
21856
21857 * dbusbind.c (xd_signature): Signature of variant is just "v".
21858
218592007-12-30 Michael Albinus <michael.albinus@gmx.de>
21860
21861 * dbusbind.c: Fix several errors and compiler warnings.
21862 Reported by Tom Tromey <tromey@redhat.com>.
21863 (XD_ERROR, XD_DEBUG_MESSAGE)
21864 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21865 (xd_append_arg): Part for basic D-Bus types rewritten.
21866 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21867 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21868 appropriate.
21869 (xd_read_message): Return Qnil. Don't signal an error; it is not
21870 useful during event reading.
21871 (Fdbus_register_signal): Signal an error if the check for
21872 FUNCTIONP fails.
21873 (Fdbus_register_method): New function. The implementation is not
21874 complete, the call of the function signals an error therefore.
21875 (Fdbus_unregister_object): New function, renamed from
21876 Fdbus_unregister_signal. The initial check signals an error, if
21877 the object is not well formed.
21878
218792007-12-30 Richard Stallman <rms@gnu.org>
21880
21881 * textprop.c (get_char_property_and_overlay):
21882 Signal error if POSITION is out of range in a buffer.
21883
218842007-12-29 Martin Rudalics <rudalics@gmx.at>
21885
21886 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21887 because the original parameters are in pure storage now.
21888
218892007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21890
21891 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21892
218932007-12-22 Eli Zaretskii <eliz@gnu.org>
21894
21895 * callint.c (syms_of_callint) <command-history>: Add reference to
21896 history-length in the doc string.
21897
218982007-12-17 Jason Rumney <jasonr@gnu.org>
21899
21900 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21901 before passing as wParam.
21902
219032007-12-22 Michael Albinus <michael.albinus@gmx.de>
21904
21905 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21906 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21907 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21908 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21909 as number.
21910 (Fdbus_call_method): Fix docstring.
21911
219122007-12-21 Michael Albinus <michael.albinus@gmx.de>
21913
21914 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21915 New macros.
21916 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21917 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21918 Simplify.
21919 (xd_signature): New function.
21920 (xd_append_arg): Compute also signatures. Major rewrite.
21921 (xd_retrieve_arg): Make debug messages friendly.
21922 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21923 Check for signatures of arguments.
21924
219252007-12-19 Michael Albinus <michael.albinus@gmx.de>
21926
21927 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21928 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21929 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21930 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21931 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21932 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21933 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21934 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21935 (xd_retrieve_value): Remove. Functionality included in ...
21936 (xd_append_arg): New function.
21937 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21938
219392007-12-16 Michael Albinus <michael.albinus@gmx.de>
21940
21941 * dbusbind.c (top): Include <stdio.h>.
21942 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21943 dbus_message_new_method_call and dbus_message_new_signal.
21944 (Fdbus_register_signal): Rename unique_name to uname.
21945 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21946 non-existing unique name. Fix typos in matching rule. Return an
21947 object which is useful in Fdbus_unregister_signal.
21948 (Fdbus_unregister_signal): Reimplementation, in order to remove
21949 only the corresponding entry.
21950 (Vdbus_registered_functions_table): Change the order of entries.
21951 Apply these changes in xd_read_message and Fdbus_register_signal.
21952
219532007-12-16 Andreas Schwab <schwab@suse.de>
21954
21955 * fileio.c (Finsert_file_contents): Fix overflow check to not
21956 depend on undefined integer overflow.
21957
219582007-12-14 Jason Rumney <jasonr@gnu.org>
21959
21960 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21961 for characters above 127.
21962
219632007-12-13 Jason Rumney <jasonr@gnu.org>
21964
21965 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21966 before dereferencing array.
21967 (lookup_vk_code): Remove zero comparison.
21968
219692007-12-14 Michael Albinus <michael.albinus@gmx.de>
21970
21971 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21972 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21973 Use `unsigned int' instead of `uint'.
21974 (xd_read_message, Fdbus_register_signal): Split expressions into
21975 multiple lines before operators "&&" and "||", according to the
21976 GNU Coding Standards.
21977
219782007-12-14 Eli Zaretskii <eliz@gnu.org>
21979
21980 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21981
219822007-12-12 Juri Linkov <juri@jurta.org>
21983
21984 * buffer.c (Frename_buffer): In interactive spec replace
21985 `read-buffer' with `read-string' that uses `buffer-name-history'
21986 as history, and the current buffer's name as default.
21987
219882007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21989
21990 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21991 manipulating the backtrace manually.
21992 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21993 (struct backtrace, backtrace_list): Remove.
21994 (command_loop_1): Remove dead var `no_direct'.
21995
21996 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21997 preserve non-built-in buffer-local variables.
21998 (Fkill_all_local_variables): Don't re-create&re-set permanent
21999 buffer-local variables.
22000
220012007-12-09 Juri Linkov <juri@jurta.org>
22002
22003 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22004 Lisp code that uses `read-buffer' with current buffer as default.
22005
220062007-12-08 Michael Albinus <michael.albinus@gmx.de>
22007
22008 * dbusbind.c (xd_read_message): Generate an event for every
22009 registered handler. There might be several handlers registered
22010 for the same signal.
22011 (Fdbus_register_signal): Don't overwrite a registration for the
22012 same signal. Add a new registration if handlers are different.
22013 (Vdbus_registered_functions_table): Rework doc string.
22014
220152007-12-07 Michael Albinus <michael.albinus@gmx.de>
22016
22017 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22018 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22019 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22020 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22021 Unify argument lists.
22022 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22023 arguments and hash table keys. Use unique name for service.
22024 (Fdbus_unregister_signal): Remove checks.
22025 (Vdbus_registered_functions_table): Fix doc string.
22026
220272007-12-05 Magnus Henoch <mange@freemail.hu>
22028
22029 * process.c (make_process): Initialize pty_flag to 0.
22030
220312007-12-05 Jason Rumney <jasonr@gnu.org>
22032
22033 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22034 specified XBMs.
22035
220362007-12-05 Richard Stallman <rms@gnu.org>
22037
22038 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22039
220402007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22041
22042 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22043 New variable.
22044 (mac_try_close_socket) [MAC_OSX]: New function.
22045 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22046 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22047
22048 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22049 Use mac_try_close_socket.
22050
220512007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22052
22053 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22054 reloc_base.
22055 (copy_dysymtab): Compute relocation base here.
22056 (rebase_reloc_address) [__ppc64__]: New function.
22057 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22058 changed.
22059
220602007-12-05 Jason Rumney <jasonr@gnu.org>
22061
22062 * w32proc.c (sys_spawnve): Quote args with wildcards.
22063
220642007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22065
22066 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22067 __objc_* sections.
22068 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22069
220702007-12-05 Michael Albinus <michael.albinus@gmx.de>
22071
22072 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22073 Move check for Vdbus_registered_functions_table to
22074 xd_read_queued_messages.
22075 (xd_read_queued_messages): Protect xd_read_message calls by
22076 internal_condition_case_1.
22077
220782007-12-04 Michael Albinus <michael.albinus@gmx.de>
22079
22080 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22081 Qdbus_system_bus and Qdbus_session_bus, respectively.
22082 (Vdbus_intern_symbols): Remove.
22083 (Vdbus_registered_functions_table): New hash table.
22084 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22085 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22086 Rewrite in order to manage registered functions by hash table
22087 Vdbus_registered_functions_table.
22088
220892007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22090
22091 * xterm.c: Update URL to Window Manager Specification in comment.
22092
220932007-12-02 Michael Albinus <michael.albinus@gmx.de>
22094
22095 * config.in (HAVE_DBUS): Add.
22096
22097 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22098 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22099 (obj): Add $(DBUS_OBJ).
22100 (LIBES): Add $(DBUS_LIBS).
22101 (dbusbind.o): New target.
22102
22103 * dbusbind.c: New file.
22104
22105 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22106
22107 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22108 (Qdbus_event): New Lisp symbol.
22109 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22110 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22111 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22112
22113 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22114
221152007-12-01 Richard Stallman <rms@gnu.org>
22116
22117 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22118
221192007-11-30 Jason Rumney <jasonr@gnu.org>
22120
22121 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22122 (w32con_reset_terminal_modes): Clear screen buffer.
22123 (w32_face_attributes): Don't use color indexes that are out of range.
22124 Only reverse the default colors.
22125
22126 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22127 WINDOWSNT.
22128
22129 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22130
221312007-11-29 Jason Rumney <jasonr@gnu.org>
22132
22133 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22134 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22135 if the terminal colors are initialized.
22136 (unspecified_fg, unspecified_bg): Remove unused declarations.
22137
221382007-11-29 Andreas Schwab <schwab@suse.de>
22139
22140 * keyboard.c (apply_modifiers): Fix typo.
22141
221422007-11-29 Richard Stallman <rms@gnu.org>
22143
22144 * keymap.c (Fcurrent_local_map): Doc fix.
22145
221462007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22147
22148 * s/gnu-kfreebsd.h: New file.
22149
221502007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22151
22152 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22153 Don't cast redundantly.
22154
22155 * keyboard.c (KEY_TO_CHAR): New macro.
22156 (parse_modifiers, apply_modifiers): Accept integer arguments.
22157 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22158 for chars and symbol keys.
22159 After doing such remapping, apply function-key-map again.
22160
221612007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22162
22163 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22164 compiled anymore.
22165
221662007-11-26 Andreas Schwab <schwab@suse.de>
22167
22168 * process.c (list_processes_1): Fix indentation level of the
22169 command column.
22170
221712007-11-23 Andreas Schwab <schwab@suse.de>
22172
22173 * editfns.c (Fformat): Handle %c specially since it requires the
22174 argument to be of type int.
22175
221762007-11-23 Markus Triska <markus.triska@gmx.at>
22177
22178 * emacs.c (main): Call init_editfns before init_process, since
22179 init_process sets Vprocess_connection_type depending on OS release.
22180
221812007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22182
22183 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22184 (find_symbol_value): Use do_symval_forwarding.
22185
22186 * data.c (set_internal): Set the value in the `cons-cell' (for
22187 Buffer_Local_values) not only for frame-local variables.
22188
221892007-11-22 Andreas Schwab <schwab@suse.de>
22190
22191 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22192 values to sprintf.
22193 * keymap.c (Fsingle_key_description): Likewise.
22194 * print.c (print_object): Likewise.
22195
221962007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22197
22198 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22199 file for image is nil.
22200
222012007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22202
22203 * term.c: Include stdarg.h.
22204 (fatal): Implement using varargs.
22205 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22206
222072007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22208
22209 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22210 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22211 Update call to buffer_slot_type_mismatch.
22212 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22213 (buffer_slot_type_mismatch): Update.
22214 * buffer.c (buffer_local_types): Remove.
22215 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22216 (defvar_per_buffer): Set the type in the buffer_objfwd.
22217
222182007-11-21 Jason Rumney <jasonr@gnu.org>
22219
22220 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22221 CreateFileMapping returns NULL on failure.
22222
222232007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22224
22225 * search.c (Fset_match_data): Remove the `evaporate' feature.
22226 (unwind_set_match_data): Don't use the `evaporate' feature.
22227
222282007-11-21 Jason Rumney <jasonr@gnu.org>
22229
22230 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22231
22232 * w32console.c (w32con_write_glyphs): Remove unused variables.
22233
222342007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22235
22236 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22237
22238 * s/darwin.h (MULTI_KBOARD): Remove.
22239
22240 * macfns.c (x_create_tip_frame, Fx_create_frame)
22241 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22242
222432007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22244
22245 * buffer.c (Fbuffer_local_value): Remove redundant test.
22246 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22247 than in `current-buffer' to match the comment.
22248 Do the swap using swap_in_global_binding.
22249
22250 * data.c (store_symval_forwarding, set_internal):
22251 * eval.c (specbind): Remove dead code.
22252
22253 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22254 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22255 Since we do not want to see internal Lisp_*fwd objects here.
22256
222572007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22258
22259 * sysdep.c (init_system_name): Use getaddrinfo if available.
22260
22261 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22262 (x_scroll_bar_note_movement): start, end, with, height in struct
22263 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22264
222652007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22266
22267 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22268
222692007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22270
22271 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22272 This undoes Richard's change of 14-Oct-2002.
22273
22274 * alloc.c (allocate_other_vector):
22275 * lisp.h (allocate_other_vector): Remove.
22276
22277 * window.c (struct save_window_data): Move non-lisp data to the end
22278 and make it `int' rather than Lisp_Object.
22279 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22280 Done wrap/unwrap integer values.
22281 (Fset_window_configuration, compare_window_configurations):
22282 Update use of fields to their new types.
22283
22284 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22285 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22286 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22287 (SET_SCROLL_BAR_X_WINDOW): Remove.
22288 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22289 Access the new x_window field directly.
22290 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22291 Don't wrap/unwrap integers into Lisp_Objects.
22292 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22293 (x_scroll_bar_report_motion):
22294 Don't wrap/unwrap integers into Lisp_Objects.
22295 (x_term_init): Use SDATA.
22296 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22297 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22298 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22299 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22300 * xfns.c (x_set_background_color):
22301 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22302 Access the new x_window field directly.
22303
22304 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22305 (allocate_pseudovector): Make non-static.
22306
22307 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22308 (allocate_pseudovector): Declare.
22309 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22310
223112007-11-15 Andreas Schwab <schwab@suse.de>
22312
22313 * editfns.c (Fformat): Correctly format EMACS_INT values.
22314 Also take precision into account when formatting an integer.
22315
22316 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22317
223182007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22319
22320 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22321 (syms_of_keyboard): Defsubr it.
22322
22323 * data.c (swap_in_global_binding): Fix longstanding bug where
22324 store_symval_forwarding was not called with the right second argument,
22325 thus causing objfwd-ing from being dropped.
22326
223272007-11-14 Juanma Barranquero <lekktu@gmail.com>
22328
22329 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22330 (Fx_display_pixel_height, Fx_display_planes)
22331 (Fx_display_color_cells, Fx_server_max_request_size)
22332 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22333 (Fx_display_visual_class, Fx_display_save_under):
22334 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22335 (Fx_display_pixel_height, Fx_display_planes)
22336 (Fx_display_color_cells, Fx_server_max_request_size)
22337 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22338 (Fx_display_mm_height, Fx_display_mm_width)
22339 (Fx_display_backing_store, Fx_display_visual_class)
22340 (Fw32_select_font, Fx_display_save_under):
22341 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22342 (Fx_display_pixel_height, Fx_display_planes)
22343 (Fx_display_color_cells, Fx_server_max_request_size)
22344 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22345 (Fx_display_save_under): Fix typos in docstrings.
22346
223472007-11-14 Juanma Barranquero <lekktu@gmail.com>
22348
22349 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22350 corresponding to deleted entries; they are an implementation detail.
22351 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22352 Remove variables.
22353 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22354 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22355 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22356 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22357 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22358 (Fw32_define_rgb_color, Fw32_load_color_file)
22359 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22360 Fix typos in docstrings.
22361 (Fx_server_version): Reflow docstring.
22362 (Fw32_shell_execute): Doc fixes.
22363
223642007-11-13 Juanma Barranquero <lekktu@gmail.com>
22365
22366 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22367 if w32_parse_hot_key returned nil.
22368
223692007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22370
22371 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22372
223732007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22374
aac0c6e3
MR
22375 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22376
22377 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22378
22379 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22380 Remove W32_SCROLL_BAR_CLICK_EVENT.
22381
22382 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22383 Add MULTIMEDIA_KEY_EVENT.
22384
22385 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22386 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22387 (make_lispy_event) [WINDOWSNT]: Use it to translate
22388 MULTIMEDIA_KEY_EVENT.
22389
22390 * w32term.h (WM_APPCOMMAND): Define if not already.
22391 (GET_APPCOMMAND_LPARAM): Likewise.
22392
22393 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22394 WM_APPCOMMAND.
22395
22396 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22397 (syms_of_w32fns): Export and initialize it.
22398 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22399
224002007-11-09 Chong Yidong <cyd@stupidchicken.com>
22401
22402 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22403 twice.
22404
22405 * xdisp.c (handle_face_prop): Fix last change.
22406
224072007-11-09 Richard Stallman <rms@gnu.org>
22408
22409 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22410 not just for after-strings and before-strings.
22411 Call face_for_overlay_string and pass the overlay to it.
22412 (handle_display_prop): Determine whether property came from an overlay.
22413 Pass OVERLAY arg to handle_single_display_spec.
22414 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22415 (load_overlay_strings): Fill in it->string_overlays.
22416 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22417
22418 * xfaces.c (face_for_overlay_string): Function renamed from
22419 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22420
22421 * dispextern.h (struct it): New elt string_overlays.
22422 New elt from_overlay, also in stack.
22423 Rearrange a few elements.
22424 (face_for_overlay_string): Decl renamed from
22425 face_at_buffer_position_no_overlays, and add argument.
22426
224272007-11-09 Richard Stallman <rms@gnu.org>
22428
22429 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22430 to get the base face for an overlay string.
22431
22432 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22433
22434 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22435
22436 * xdisp.c (handle_stop): Move some code out of loop.
22437
224382007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22439
22440 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22441 Fix conversion from Lisp object to ATSUFontID.
22442
224432007-11-09 Jason Rumney <jasonr@gnu.org>
22444
22445 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22446
224472007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22448
22449 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22450 Don't assume regions are aligned to page boundary.
22451 (print_load_command_name): Add LC_UUID if defined.
22452
224532007-11-09 Richard Stallman <rms@gnu.org>
22454
22455 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22456
224572007-11-07 Jason Rumney <jasonr@gnu.org>
22458
22459 * s/windows95.h: Remove.
22460
224612007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22462
22463 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22464 abort with a message on unhandled store_type values.
22465
224662007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22467
22468 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22469 Remove HAVE_X11R5 and HAVE_X11R4.
22470
224712007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22472
22473 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22474
224752007-11-01 Johan Bockgård <bojohan@gnu.org>
22476
22477 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22478 Don't set s->stippled_p here, since it has already been set by
22479 x_set_glyph_string_gc from x_draw_glyph_string.
22480
224812007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22482
22483 * sunfns.c: Remove file.
22484
22485 * m/sun386.h:
22486 * m/sun2.h:
22487 * m/sparc.h: Remove Sun windows code.
22488
224892007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22490
22491 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22492 (init_keyboard): Set current_kboard's window-system to nil.
22493 (tty_read_avail_input): Typo.
22494 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22495
224962007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22497
22498 * s/usg5-4.h:
22499 * s/usg5-3.h:
22500 * s/ptx.h:
22501 * m/is386.h:
22502 * m/ibmps2-aix.h:
22503 * Makefile.in: Remove all mentions of X10.
22504
22505 * dispnew.c (syms_of_display): Don't mention version 10.
22506
225072007-10-28 Juanma Barranquero <lekktu@gmail.com>
22508
22509 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22510 ($(BLD)/abbrev.$(O)): Remove.
22511
225122007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22513
22514 Rewrite abbrev.c in Elisp.
22515 * image.c (Qcount): Don't declare as extern.
22516 (syms_of_image): Initialize and staticpro `Qcount'.
22517 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22518 * emacs.c (main): Don't call syms_of_abbrev.
22519 * Makefile.in (obj): Remove abbrev.o.
22520 (abbrev.o): Remove.
22521 * abbrev.c: Remove.
22522
225232007-10-26 Martin Rudalics <rudalics@gmx.at>
22524
22525 * window.c (window_min_size_2): Don't count header-line.
22526
225272007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22528
22529 * frame.h (struct frame): Move all bit fields after the first bit
22530 field to take advantage of the available space. Group all the
22531 chars together to reduce wasted space due to padding.
22532
225332007-10-26 Juanma Barranquero <lekktu@gmail.com>
22534
22535 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22536
22537 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22538 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22539 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22540 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22541 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22542 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22543 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22544 (last_marked, mark_object_loop_halt): Make static.
22545
22546 * frame.c (syms_of_frame) <delete-frame-functions>:
22547 Fix typo in docstring.
22548
225492007-10-25 Juanma Barranquero <lekktu@gmail.com>
22550
22551 * w32.c (init_environment): Fix tiny memory leak.
22552 (w32_get_resource): Remove unused variable `ok'.
22553
225542007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22555
22556 Make `window-system' into a keyboard-local variable (rather than
22557 frame-local as done originally by multi-tty).
22558
22559 * keyboard.h (struct kboard): Add Vwindow_system.
22560 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22561 (mark_kboards): Mark Vwindow_system.
22562
22563 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22564 (init_display): Don't set the obsolete `window-system' frame-param.
22565
22566 * xterm.c (x_term_init):
22567 * w32term.c (w32_create_terminal):
22568 * term.c (init_tty): Set Vwindow_system.
22569 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22570 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22571
22572 * xfns.c (Fx_create_frame, x_create_tip_frame):
22573 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22574 * macfns.c (Fx_create_frame):
22575 Don't set the obsolete `window-system' frame-param.
22576
22577 * frame.h (Qwindow_system): Remove.
22578 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22579 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22580
225812007-10-24 Richard Stallman <rms@gnu.org>
22582
22583 * frame.c (x_figure_window_size): For fullscreen case,
22584 set USPosition | PPosition without clobbering rest of window_prompting.
22585
22586 * keyboard.c (Fcurrent_idle_time): Doc fix.
22587
22588 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22589
225902007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22591
22592 * process.c (unwind_request_sigio): Only define if __ultrix__.
22593
22594 * callproc.c (child_setup): Remove spurious *.
22595
22596 * lisp.h (Fget_text_property): Declare.
22597 (have_menus_p): Declare it here rather than in sys-dep header files.
22598 * macterm.h (have_menus_p):
22599 * msdos.h (have_menus_p):
22600 * xterm.h (have_menus_p): Remove.
22601
22602 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22603 (Fmake_variable_frame_local): Just check the variable's const-ness
22604 rather than checking nil or t.
22605
226062007-10-22 Jason Rumney <jasonr@gnu.org>
22607
22608 * w32fns.c: Include math.h.
22609 (w32_abort): Declaration moved to nt/config.nt.
22610
22611 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22612 (abort): Redefinition moved to nt/config.nt.
22613
22614 * m/windowsnt.h: Remove.
22615
226162007-10-22 Juanma Barranquero <lekktu@gmail.com>
22617
22618 * emacs.c (Fdump_emacs): Fix typo in message.
22619 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22620 <installation-directory>: Reflow docstring.
22621
226222007-10-22 Juri Linkov <juri@jurta.org>
22623
22624 * minibuf.c: Allow minibuffer default to be a list of default values.
22625 With empty input use the first element of this list as returned default.
22626 (string_to_object)
22627 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22628 (read_minibuf): If defalt is cons, set histstring to its car.
22629 (Fread_string): If default_value is cons, set val to its car.
22630 (Fread_buffer): If def is cons, use its car.
22631 (Fcompleting_read): If defalt is cons, set val to its car.
22632
226332007-10-21 Michael Albinus <michael.albinus@gmx.de>
22634
22635 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22636
226372007-10-20 Juanma Barranquero <lekktu@gmail.com>
22638
22639 * doc.c (Fdocumentation): Check for advice in all cases.
22640
226412007-10-19 Chong Yidong <cyd@stupidchicken.com>
22642
22643 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22644
226452007-10-19 Richard Stallman <rms@gnu.org>
22646
22647 * doc.c (Fdocumentation): Check for and handle an advised function.
22648
226492007-10-19 Juanma Barranquero <lekktu@gmail.com>
22650
22651 * process.c (Fset_process_filter): Doc fix.
22652
226532007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22654
22655 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22656 which caused key-translation-map to applied repeatedly (thus breaking
22657 double-mode).
22658
226592007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22660
22661 * xselect.c (x_own_selection, x_handle_selection_clear)
22662 (x_clear_frame_selections):
22663 * w32menu.c (list_of_panes, list_of_items):
22664 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22665 * textprop.c (validate_plist, interval_has_all_properties)
22666 (interval_has_some_properties, interval_has_some_properties_list)
22667 (add_properties, text_property_list):
22668 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22669 * minibuf.c (Fassoc_string):
22670 * macselect.c (x_own_selection, x_clear_frame_selections)
22671 (Fx_disown_selection_internal):
22672 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22673 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22674
226752007-10-17 Chong Yidong <cyd@stupidchicken.com>
22676
22677 * process.c: Link to libs for calling res_init() if available.
22678 (Fmake_network_process): Call res_init() before getaddrinfo or
22679 gethostbyname, if possible.
22680
226812007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22682
22683 * lread.c (read1): Set pvectype for char_tables.
22684
22685 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22686 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22687 Add type checks.
22688 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22689
22690 * alloc.c (free_misc): Use XMISCTYPE.
22691 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22692
226932007-10-17 Glenn Morris <rgm@gnu.org>
22694
22695 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22696 (syms_of_minibuf): Add Qcompletion_ignore_case.
22697 * dired.c (Qcompletion_ignore_case): Change to external.
22698 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22699 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22700 (Fread_file_name): Use it rather than intern'ing.
22701
22702 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22703 (Fread_coding_system): Ignore case of user input.
22704
227052007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22706
22707 * xdisp.c (handle_display_prop): Ignore display specs after
22708 replacing one when string text is being replaced.
22709 (handle_single_display_spec): Pretend as if characters with display
22710 property haven't been consumed only when buffer text is being replaced.
22711
227122007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22713
22714 * xfns.c (Fx_create_frame, Fx_display_list):
22715 * window.c (window_fixed_size_p, enlarge_window)
22716 (shrink_window_lowest_first):
22717 * macterm.c (init_font_name_table):
22718 * macfns.c (Fx_create_frame, Fx_display_list):
22719 * lread.c (close_load_descs):
22720 * keyboard.c (read_char_x_menu_prompt):
22721 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22722 * coding.c (code_convert_region_unwind): Test the type of an object
22723 rather than just !NILP before extracting data from it.
22724
22725 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22726
22727 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22728 (XMISCANY): New macro.
22729 (XMISCTYPE): Use it.
22730 (struct Lisp_Misc_Any): New type.
22731 (union Lisp_Misc): Use it.
22732 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22733 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22734 (find_symbol_value, set_internal, default_value, Fset_default)
22735 (Fmake_variable_buffer_local, Fmake_local_variable)
22736 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22737 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22738 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22739 * alloc.c (allocate_buffer): Set the size and tag.
22740 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22741 Use XMISCANY.
22742 (die): Follow the GNU convention for error messages.
22743 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22744 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22745 tag any more.
22746 (set_buffer_internal_1):
22747 * frame.c (store_frame_param):
22748 * eval.c (specbind):
22749 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22750
22751 * doc.c (Fsnarf_documentation): Simplify.
22752
227532007-10-14 Juanma Barranquero <lekktu@gmail.com>
22754
22755 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22756 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22757
227582007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22759
22760 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22761
227622007-10-14 Juanma Barranquero <lekktu@gmail.com>
22763
22764 * eval.c (do_autoload): Don't save autoloads.
22765
22766 * data.c (Ffset): Save autoload of the function being set.
22767
227682007-10-07 John Paul Wallington <jpw@pobox.com>
22769
22770 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22771 parameter before setting up faces.
22772
227732007-10-13 Eli Zaretskii <eliz@gnu.org>
22774
22775 * ccl.c (Fregister_code_conversion_map):
22776 * keyboard.c (append_tool_bar_item): Reformat last change.
22777
22778 * lisp.h (eabs): Rename from `abs'. All callers changed.
22779
227802007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22781
22782 * buffer.c (add_overlay_mod_hooklist):
22783 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22784 * fontset.c (make_fontset):
22785 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22786 (append_tool_bar_item):
22787 * macmenu.c (grow_menu_items):
22788 * w32menu.c (grow_menu_items):
22789 * xmenu.c (grow_menu_items): Use larger_vector.
22790
227912007-10-13 Eli Zaretskii <eliz@gnu.org>
22792
22793 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22794 selected frame'' on MSDOS).
22795
227962007-10-12 Martin Rudalics <rudalics@gmx.at>
22797
22798 * frame.c (Qexplicit_name): New variable.
22799 (x_report_frame_params): Report it in parameter alist.
22800 (syms_of_frame): Intern and staticpro it.
22801
228022007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22803
22804 * macfns.c (x_create_tip_frame): Set terminal for frame.
22805
228062007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22807
22808 * frame.c (Qenvironment): Remove.
22809 (syms_of_frame) <Qenvironment>: Don't initialize.
22810 (Fdelete_frame): Don't treat the `environment' param specially.
22811 * frame.h (Qenvironment): Don't declare.
22812 * callproc.c (set_initial_environment): Don't set unused frame param.
22813
22814 * frame.c (Fframe_with_environment): Remove.
22815 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22816
22817 * lisp.h (Fframe_with_environment): Don't declare.
22818
228192007-10-10 Juanma Barranquero <lekktu@gmail.com>
22820
22821 * indent.c (indent_tabs_mode, last_known_column)
22822 (last_known_column_modified): Make static.
22823 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22824
228252007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22826
22827 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22828
228292007-10-09 Jason Rumney <jasonr@gnu.org>
22830
22831 * w32term.c (x_set_window_size): Disable code that attempts to tell
22832 Lisp code about a size change before it actually happens.
22833
228342007-10-09 Richard Stallman <rms@gnu.org>
22835
22836 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22837 return HANDLED_RETURN.
22838
228392007-10-08 Martin Rudalics <rudalics@gmx.at>
22840
22841 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22842 when there's an unread command event.
22843
22844 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22845 window autoselection act appropriately when leaving selected frame.
22846 (syms_of_frame): Initialize focus_follows_mouse.
22847 * frame.h (focus_follows_mouse): Extern it.
22848 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22849 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22850 * msdos.c (dos_rawgetc): Likewise.
22851 * w32term.c (w32_read_socket): Likewise.
22852 * xterm.c (handle_one_xevent): Likewise.
22853 * xdisp.c (syms_of_xdisp): In doc-string of
22854 mouse-autoselect-window mention focus-follows-mouse.
22855
228562007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22857
22858 * macterm.c (mac_load_query_font): Fix missing return value.
22859 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22860 Add BLOCK_INPUT.
22861
228622007-10-08 Richard Stallman <rms@gnu.org>
22863
22864 * xdisp.c (get_window_cursor_type): Implement documented behavior
22865 for cursor-in-non-selected-windows = t.
22866
228672007-10-08 Jason Rumney <jasonr@gnu.org>
22868
22869 * w32.c (w32_get_resource): Always close registry keys.
22870
228712007-10-08 Jason Rumney <jasonr@gnu.org>
22872
22873 * makefile.w32-in (LIBS): Add COMCTL32.
22874
22875 * w32fns.c (globals_of_w32fns): Init common controls.
22876
228772007-10-08 Richard Stallman <rms@gnu.org>
22878
22879 * image.c (our_memory_buffer): Rename from omfib_buffer.
22880
228812007-10-08 Richard Stallman <rms@gnu.org>
22882
22883 * buffer.c (Foverlays_at): Doc fix.
22884
228852007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22886
22887 * fns.c (Fplist_put): Preserve uneven tail data.
22888
228892007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22890
22891 * termhooks.h (enum event_kind): Remove trailing comma.
22892
22893 * frame.h (enum): Remove trailing comma.
22894
228952007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22896
22897 * w32proc.c (delete_child): Don't terminate threads of zombies.
22898
228992007-10-08 Martin Rudalics <rudalics@gmx.at>
22900
22901 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22902
22903 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22904 last-repeatable-command.
22905 (init_kboard): Initialize Vlast_repeatable_command.
22906 (command_loop_1): Set it to real_this_command unless that was
22907 bound to an input event.
22908 (mark_kboards): Mark it.
22909
229102007-10-08 Richard Stallman <rms@gnu.org>
22911
22912 * eval.c (condition-case): Doc fix.
22913
229142007-10-08 Masatake YAMATO <jet@gyve.org>
22915
22916 * xfaces.c (tty_supports_face_attributes_p): Fix code
22917 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22918 was copied and not edited.
22919
229202007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22921
22922 Add new `input-decode-map' keymap and use it for terminal
22923 escape sequences.
22924 * keyboard.h (struct kboard): Add Vinput_decode_map.
22925 Remove Vlocal_key_translation_map.
22926 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22927 (init_kboard): Init input-decode-map.
22928 Replace local-key-translation-map back with key-translation-map.
22929 (syms_of_keyboard): Declare input-decode-map.
22930 Remove local-key-translation-map. Update docstrings.
22931 (mark_kboards): Mark Vinput_decode_map.
22932 Don't mark Vlocal_key_translation_map.
22933 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22934 Replace local-key-translation-map back with key-translation-map.
22935 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22936 Bind in input-decode-map rather than function-key-map.
22937
22938 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22939 This was made redundant by the previous introduction of XSETPVECTYPE.
22940
229412007-10-09 Richard Stallman <rms@gnu.org>
22942
22943 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22944
229452007-09-29 Richard Stallman <rms@gnu.org>
22946
22947 * eval.c (internal_condition_case_2, internal_condition_case_1)
22948 (internal_condition_case): Reenable abort if x_catching_errors ()
22949 to see if that really happens and why.
22950
229512007-10-06 Andreas Schwab <schwab@suse.de>
22952
22953 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22954
229552007-10-04 Juanma Barranquero <lekktu@gmail.com>
22956
22957 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22958
229592007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22960
22961 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22962
229632007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22964
22965 * window.h (struct window):
22966 * window.c (struct save_window_data, struct saved_window):
22967 * termhooks.h (struct terminal):
22968 * process.h (struct Lisp_Process):
22969 * frame.h (struct frame):
22970 * buffer.h (struct buffer):
22971 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22972 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22973 The size field of (pseudo)vectors is now unsigned.
22974 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22975
22976 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22977 Turn `count' into an integer.
22978
22979 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22980 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22981 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22982 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22983 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22984
22985 * alloc.c (allocate_pseudovector): New fun.
22986 (ALLOCATE_PSEUDOVECTOR): New macro.
22987 (allocate_window, allocate_terminal, allocate_frame)
22988 (allocate_process): Use it.
22989 (mark_vectorlike): New function.
22990 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22991 (mark_terminals): Use it.
22992 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22993 (Fmake_byte_code): Use XSETPVECTYPE.
22994
22995 * frame.c (Fframe_parameters): Minor simplification.
22996
22997 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22998
22999 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23000
23001 * buffer.c (Fget_buffer_create, init_buffer_once):
23002 * lread.c (defsubr):
23003 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23004
23005 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23006 defined differently in the m/*.h files.
23007 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23008 (XSETPVECTYPE): New macro.
23009 (XSETPSEUDOVECTOR): Use it.
23010
23011 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23012 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23013
23014 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23015 * lread.c (defvar_per_buffer):
23016 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23017
23018 * window.c (candidate_window_p): Only consider as visible frames that
23019 are on the same terminal.
23020
23021 * m/ibms390x.h (MARKBIT): Remove unused macro.
23022
230232007-10-01 Juanma Barranquero <lekktu@gmail.com>
23024
23025 * lread.c (Fload): Fix typo in docstring.
23026
230272007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23028
23029 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23030 of a non-zero value can't yield zero.
23031
230322007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23033
23034 * term.c (term_clear_mouse_face, term_mouse_highlight)
23035 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23036
23037 * print.c (safe_debug_print): Use XHASH.
23038
23039 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23040 Lisp elements such as tags.
23041 (XHASH): New macro.
23042 (EQ): Use it.
23043 (SREF, SSET, STRING_COPYIN): Use SDATA.
23044 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23045
23046 * alloc.c (mark_terminal): Remove left-over declaration.
23047 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23048 (allocate_vectorlike): Remove type argument. Adjust callers.
23049 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23050 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23051
23052 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23053 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23054 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23055 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23056 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23057 Use them.
23058
23059 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23060 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23061 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23062
230632007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23064
23065 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23066 loaded by default.
23067
230682007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23069
23070 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23071 on this tty.
23072 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23073
23074 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23075 Update all users.
23076 (handle_one_term_event): Use Gpm_DrawPointer.
23077 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23078 Signal errors instead of returning nil. Always return nil.
23079 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23080 Make it a noop if gpm-mouse was not activated.
23081 (syms_of_term): Update names.
23082
230832007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23084
23085 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23086 (init_sys_modes): Check that gpm_tty is the current tty.
23087
23088 * alloc.c (allocate_terminal): Set the vector size to only count the
23089 lisp fields. Initialize those to nil.
23090 (mark_object): Don't treat terminals specially.
23091 (mark_terminal): Remove.
23092 (mark_terminals): Use mark_object instead.
23093
23094 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23095 the GC to the beginning.
23096
23097 * indent.h:
23098 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23099
23100 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23101
231022007-09-25 Jason Rumney <jasonr@gnu.org>
23103
23104 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23105
23106 * w32console.c (create_w32cons_output): Remove.
23107
23108 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23109
23110 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23111 (reset_sys_modes): Use reset_terminal_modes_hook.
23112
231132007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23114
23115 * eval.c (do_autoload): Don't output any message.
23116
231172007-09-24 Juri Linkov <juri@jurta.org>
23118
23119 * emacs.c (standard_args): Change priority of "--no-splash"
23120 from 40 to 3. Add "--no-desktop" with the same priority.
23121
231222007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23123
23124 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23125 and optimize the case where they are all 1.
23126
231272007-09-23 Johannes Weiner <hannes@saeurebad.de>
23128
23129 * lisp.h (abs): Define if not defined.
23130 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23131 Don't define `abs', since it's defined in lisp.h.
23132
231332007-09-22 Eli Zaretskii <eliz@gnu.org>
23134
23135 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23136 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23137 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23138 (init_tty): Use DEV_TTY instead of "/dev/tty".
23139 [WINDOWSNT]: No need to protect from NAME arg being null.
23140
231412007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23142
23143 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23144 up the tty state.
23145
231462007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23147
23148 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23149 (gpm_tty): Change its type.
23150 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23151 (gpm_tty): Change its type and initialize it.
23152 (Fterm_open_connection): Check the frame is indeed a tty.
23153 Use the new gpm_tty.
23154 (Fterm_close_connection): Use the new gpm_tty.
23155 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23156 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23157
231582007-09-21 Juanma Barranquero <lekktu@gmail.com>
23159
23160 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23161 underline_color, to draw strike-through.
23162
231632007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23164
23165 * lisp.h (allocate_terminal): Declare.
23166
23167 * window.c (candidate_window_p): Consider frames that are being placed
23168 by the user as somewhere between visible and iconified.
23169 (window_loop): Prefer windows on the current frame.
23170 (Fselect_window): Move the use of select-frame to the beginning so we
23171 can just delegate all the work (it'll call us back anyway).
23172
23173 * frame.c (Qdisplay_environment_variable):
23174 * frame.h (Qdisplay_environment_variable): Delete.
23175
23176 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23177 of the first arg, since that value may be a union.
23178
23179 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23180 parameter rather than Qdisplay_environment_variable. If all else
23181 fails, look for DISPLAY in initial-environment.
23182
231832007-09-21 Glenn Morris <rgm@gnu.org>
23184
23185 * Makefile.in (emacstool): Remove target.
23186 (lisp, shortlisp): Remove termdev.elc.
23187
231882007-09-21 Markus Triska <markus.triska@gmx.at>
23189
23190 * xterm.c (x_delete_display): Compile session management conditionally.
23191
231922007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23193
23194 * callproc.c (getenv_internal_1): New function.
23195 (getenv_internal): Use it.
23196 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23197
23198 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23199 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23200 (Fset_terminal_parameter): Work with dead terminals as well.
23201 (Fmodify_terminal_parameters): Remove.
23202
23203 * terminal.c (get_terminal): Handle terminals.
23204 Make sure the terminal returned is live.
23205 (create_terminal): Use allocate_terminal.
23206 (mark_terminals): Move to alloc.c.
23207 (delete_terminal): Use terminal->name as liveness status.
23208 NULL out fields after freeing their contents.
23209 Don't deallocate the object.
23210 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23211 rather than an int.
23212 (Fterminal_live_p): Accept non-integer arguments.
23213 (Fterminal_list): Return terminal objects rather than an ints.
23214
23215 * alloc.c (enum mem_type): New member for `terminal' objects.
23216 (allocate_terminal): New function.
23217 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23218 Handle terminals.
23219 (mark_terminal): New fun.
23220 (mark_terminals): Move from terminal.c.
23221
23222 * term.c (get_tty_terminal): Don't treat output_initial specially.
23223 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23224 (delete_tty): Use terminal->name as liveness status.
23225
23226 * termhooks.h (struct terminal): Make it into a pseudovector.
23227 Remove `deleted' replaced by checking `name's nullness.
23228
23229 * print.c (print_object): Handle terminals.
23230
23231 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23232 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23233
23234 * frame.c (make_terminal_frame):
23235 * keyboard.c (tty_read_avail_input):
23236 * w32term.c (x_delete_terminal):
23237 * xfns.c (Fx_create_frame, x_create_tip_frame):
23238 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23239
232402007-09-20 Glenn Morris <rgm@gnu.org>
23241
23242 * process.c (Fmake_network_process): Doc fix.
23243
232442007-09-19 Jason Rumney <jasonr@gnu.org>
23245
23246 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23247
232482007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23249
23250 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23251 Fix a C warning regarding variable constness.
23252
23253 * xterm.c (handle_one_xevent): Fix a C warning.
23254
232552007-09-18 Jason Rumney <jasonr@gnu.org>
23256
23257 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23258
232592007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23260
23261 * gtkutil.c (gdpy_def): New variable.
23262 (xg_initialize): Initialize gdpy_def.
23263 (xg_display_close): If no other display exists, set gdpy_def to a
23264 new connection.
23265
232662007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23267
23268 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23269 when we have no file name for the icon.
23270 (xg_tool_bar_expose_callback): Remove.
23271 (xg_create_tool_bar): Don't connect expose signal to
23272 xg_tool_bar_expose_callback.
23273 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23274
232752007-09-16 Andreas Schwab <schwab@suse.de>
23276
23277 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23278 values instead of zapping them.
23279
232802007-09-14 Glenn Morris <rgm@gnu.org>
23281
23282 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23283 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23284 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23285 scope and rename to omfib_buffer for clarity.
23286 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23287
232882007-09-14 Kenichi Handa <handa@m17n.org>
23289
23290 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23291
232922007-09-13 Jason Rumney <jasonr@gnu.org>
23293
23294 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23295
23296 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23297
23298 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23299 (mac_term_init): Call here instead, passing rif.
23300
233012007-09-13 Glenn Morris <rgm@gnu.org>
23302
23303 * s/hpux.h: No longer define `static' as nothing.
23304
233052007-09-13 Johan Bockgård <bojohan@gnu.org>
23306
23307 * callint.c (Fcall_interactively): Remove unused var `fun'.
23308
233092007-09-12 Romain Francoise <romain@orebokech.com>
23310
23311 * window.c (prefer_window_split_horizontally, display_buffer):
23312 Revert 2007-09-08 change.
23313
233142007-09-12 Glenn Morris <rgm@gnu.org>
23315
23316 * alloca.c: Remove file.
23317 * Makefile.in (alloca): Do not undef.
23318 (allocaobj, alloca.o): Remove.
23319 (otherobj): Remove allocaobj.
23320 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23321 * regex.c (C_ALLOCA): Remove all references and code that was only
23322 used when this was defined.
23323 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23324 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23325 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23326
23327 * Makefile.in (SOURCES, unlock, relock): Delete.
23328
23329 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23330 (menu_grab_callback): All uses changed.
23331
23332 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23333 (x_reply_selection_request): All uses changed.
23334
233352007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23336
23337 * lread.c (load_warn_old_style_backquotes): Change message to look
23338 better when it appears in the middle of byte-compiler messages.
23339
233402007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23341
23342 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23343
23344 * xterm.c (x_create_terminal): Add comment.
23345
23346 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23347
233482007-09-10 Richard Stallman <rms@gnu.org>
23349
23350 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23351
233522007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23353
23354 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23355 (DEFUN): Document `intspec', use it instead of `prompt'.
23356
23357 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23358
23359 * data.c (Finteractive_form): If the interactive specification starts
23360 with a `(', use it as a Lisp form.
23361
23362 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23363 name and file modes.
23364
23365 * callint.c (Fcall_interactively): Comment fixes.
23366
233672007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23368
23369 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23370 and compiled functions.
23371
233722007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23373
23374 * window.c (prefer_window_split_horizontally): New variable.
23375 (display_buffer): Consider splitting window horizontally depending
23376 on prefer_window_split_horizontally.
23377
233782007-09-08 Eli Zaretskii <eliz@gnu.org>
23379
23380 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23381
233822007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23383
23384 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23385
23386 * frame.c (x_set_frame_parameters): Check number is positive before
23387 using XFASTINT.
23388
23389 * window.c (freeze_window_start): Don't presume selected_window holds
23390 a window object.
23391 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23392
233932007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23394
23395 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23396
233972007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23398
23399 * window.c (Vsplit_window_preferred_function): New var.
23400 (Fdisplay_buffer): Use it.
23401 (syms_of_window): Export, and initialize it.
23402
234032007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23404
23405 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23406
234072007-09-06 Glenn Morris <rgm@gnu.org>
23408
23409 * gtkutil.c (menu_grab_callback) <cnt>:
23410 * xselect.c (x_reply_selection_request) <cnt>: Move static
23411 variable to file scope.
23412
234132007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23414
23415 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23416 consistent values of selected_frame and selected_window.
23417
234182007-09-04 Jason Rumney <jasonr@gnu.org>
23419
23420 * w32console.c (initialize_w32_display): Zero unused hooks.
23421
234222007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23423
23424 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23425 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23426
234272007-09-04 Jason Rumney <jasonr@gnu.org>
23428
23429 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23430 in w32console.c. Set up input. Remove XXX comments that have been
23431 confirmed as correct.
23432
23433 * s/ms-w32.h (MULTI_KBOARD): Define.
23434
23435 * w32console.c (one_and_only_w32cons): Remove.
23436 (initialize_w32_display): Take terminal argument.
23437
23438 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23439 initialize_w32_display.
23440 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23441
23442 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23443
23444 * keyboard.c (discard_mouse_events): Discard it.
23445 (make_lispy_event): Translate it to a lisp event.
23446 (lispy_wheel_names): Add wheel-left and right events.
23447 (syms_of_keyboard): Enlarge wheel_syms.
23448
23449 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23450 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23451
23452 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23453
23454 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23455 from WM_MOUSEHWHEEL.
23456 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23457
23458 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23459 terminal.
23460
23461 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23462 keyboard for the terminal.
23463
234642007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23465
23466 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23467 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23468 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23469 and resume-tty-function to resume-tty-hook.
23470 (Fsuspend_tty, Fresume_tty): Use new names.
23471
234722007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23473
23474 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23475 if it starts with "n:".
23476
234772007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23478
23479 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23480
234812007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23482
23483 * frame.h:
23484 * frame.c (Qterm_environment_variable): Remove.
23485 (syms_of_frame): Don't init and staticpro it.
23486
23487 * callproc.c (getenv_internal): Remove special case for $TERM.
23488
23489 * callproc.c (Vinitial_environment): New variable.
23490 (set_initial_environment): Initialize it.
23491 (syms_of_callproc): Declare it.
23492 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23493 TERM under which a process runs is never related to the TERM in which
23494 Emacs is running.
23495
234962007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23497
23498 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23499 * s/darwin.h: ... do it here.
23500
235012007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23502
23503 * lisp.h (set_initial_environment): Rename from set_global_environment.
23504
23505 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23506 removed by mistake on the multi-tty branch.
23507
23508 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23509 (Fmodify_frame_parameters): Return a value.
23510
23511 * image.c (png_load): Comment-out var only used in commented-out code.
23512
23513 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23514 before passing it to mark_object.
23515
23516 * xfaces.c (internal_resolve_face_name): Return a value.
23517 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23518
23519 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23520 (x_icon): Comment-out var only used in commented-out code.
23521
235222007-08-29 Romain Francoise <romain@orebokech.com>
23523
23524 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23525 QUIT hasn't been provided.
23526
235272007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23528
23529 * callproc.c (child_setup, getenv_internal): Use the
23530 display-environment-variable and term-environment-variable frame params.
23531 (set_initial_environment): Initialise Vprocess_environment.
23532
23533 * config.in: Disable multi-keyboard support on a mac.
23534
23535 * frame.c (Qterm_environment_variable)
23536 (Qdisplay_environment_variable): New variables.
23537 (syms_of_frame): Intern and staticpro them.
23538 (Fmake_terminal_frame): Disable output method test.
23539
23540 * frame.h: Declare them here.
23541
23542 * macfns.c (x_set_mouse_color): Get rif from the frame.
23543 (x_set_tool_bar_lines): Don't use updating_frame.
23544 (mac_window): Add 2 new parameters for consistency with other systems.
23545 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23546 frame parameters following what is done in X11 and w32. Don't use
23547 FRAME_MAC_DISPLAY_INFO.
23548 (Fx_open_connection, start_hourglass): Remove window-system check.
23549 (x_create_tip_frame): Get the keyboard from the terminal.
23550
23551 * macmenu.c: Reorder includes.
23552 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23553
23554 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23555 terminal parameter.
23556 (x_clear_frame): Add a frame parameter.
23557 (note_mouse_movement): Get rif from the frame.
23558 (mac_term_init): Initialize the terminal.
23559 (mac_initialize): Make static and move terminal initialization ...
23560 (mac_create_terminal): ... to this new function.
23561
23562 * macterm.h (struct mac_display_info): Add terminal.
23563 (mac_initialize): Delete declaration.
23564
23565 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23566
23567 * sysdep.c: Comment out text after #endif.
23568
23569 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23570 is defined. Better initialize ttys in windows. Use terminal
23571 specific mouse_position_hook.
23572
23573 * termhooks.h (union display_info): Add mac_display_info.
23574
23575 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23576 Set the default minibuffer frame, window_system and the rest of the
23577 frame parameters following what is done in X11.
23578
23579 * w32term.c (w32_initialize): Make static.
23580
23581 * xselect.c (x_handle_selection_clear): Only access
23582 terminal->kboard when MULTI_KBOARD is defined.
23583
23584 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23585 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23586
235872007-08-29 Jason Rumney <jasonr@gnu.org>
23588
23589 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23590 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23591
23592 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23593 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23594
23595 * keyboard.c (restore_kboard_configuration): Only define when
23596 MULTI_KBOARD defined.
23597
23598 * makefile.w32-in: Update dependancies from Makefile.in.
23599 (OBJ1): Add terminal.$(O)
23600
23601 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23602 Don't define function body.
23603 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23604
23605 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23606
23607 * w32.c (request_sigio, unrequest_sigio): Remove.
23608
23609 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23610 (w32con_clear_frame, w32con_clear_end_of_line)
23611 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23612 (w32con_delete_glyphs, w32con_set_terminal_window)
23613 (scroll_line, w32_sys_ring_bell): Add frame arg.
23614 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23615 Add terminal arg.
23616 (PICK_FRAME): Remove.
23617 (w32con_write_glyphs): Use frame specific terminal coding.
23618 (one_and_only_w32cons): New global variable.
23619 (initialize_w32_display): Use it for storing hooks.
23620 (create_w32cons_output): New function.
23621
23622 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23623 arg a frame.
23624
23625 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23626 Set window_system.
23627 (x_set_tool_bar_lines): Don't use updating_frame.
23628 (Fx_create_frame): Set terminal and ref count.
23629 (Fx_open_connection): Remove window-system check.
23630
23631 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23632
23633 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23634 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23635 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23636 Add frame arg.
23637 (x_delete_terminal, w32_create_terminal): New functions.
23638 (w32_term_init): Create a terminal.
23639 (w32_initialize): Move terminal specific initialization to
23640 w32_create_terminal.
23641
23642 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23643 (w32_clear_rect, w32_clear_area): Use background from frame.
23644 (w32_display_info): Add terminal.
23645 (w32_sys_ring_bell, x_delete_display): Declare here.
23646
23647 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23648
23649 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23650
236512007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23652
23653 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23654 Fix get_named_tty calls for the controlling tty.
23655
236562007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23657
194d44e7 23658 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23659
236602007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23661
23662 * term.c (tty_insert_glyphs): Add missing first parameter.
23663
236642007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23665
23666 * buffer.c (Fbuffer_list, Fbury_buffer):
23667 Take frame->buried_buffer_list into account.
23668
23669 * cm.c (current_tty): New variable, for cmputc().
23670 (cmputc): Use it.
23671 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23672 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23673 (cmgoto): Add tty parameter. Pass it on to calccost().
23674 Use emacs_tputs() instead of tputs().
23675
23676 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23677 tputs().
23678 (current_tty): New variable, for cmputc().
23679 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23680
23681 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23682 (internal_condition_case, internal_condition_case_1)
23683 (internal_condition_case_2): Don't abort when x_catching_errors.
23684
23685 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23686 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23687 prevent crashes caused by bogus longjmps in read_char.
23688
23689 * keymap.h (Fset_keymap_parent): Add EXFUN.
23690
23691 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23692 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23693 Remove redundant definition.
23694
23695 * macfns.c (x_set_mouse_color, x_make_gc):
23696 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23697
23698 * w32term.c (x_free_frame_resources):
23699 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23700 (w32_initialize): Use the accessor macros for terminal characteristics.
23701
23702 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23703 Use the accessor macros for terminal characteristics.
23704 * msdos.c (internal_terminal_init): Use the accessor macros for
23705 terminal characteristics.
23706 (ScreenVisualBell, internal_terminal_init):
23707 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23708
23709 * termopts.h (no_redraw_on_reenter): Declare.
23710
23711 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23712 (mark_terminals, mark_ttys): Declare.
23713 (Fgarbage_collect): Call them.
23714 (mark_object): Mark buried_buffer_list.
23715
23716 * prefix-args.c: Include stdlib.h for exit.
23717
23718 * syssignal.h: Add comment.
23719
23720 * indent.c: Include stdio.h.
23721
23722 * window.h (Vinitial_window_system): Declare.
23723 (Vwindow_system): Delete declaration.
23724
23725 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23726
23727 * image.c (lookup_image): Don't initialize `c' until the xasserts
23728 have been run.
23729
23730 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23731 FRAME_FOREGROUND_PIXEL.
23732
23733 * print.c (print_preprocess): Don't lose print_depth levels while
23734 iterating.
23735
23736 * widget.c (update_from_various_frame_slots):
23737 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23738
23739 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23740 frames.
23741 (window_internal_height): Remove bogus make_number call.
23742 (init_window_once): Call make_terminal_frame with two zero parameters.
23743
23744 * fileio.c (Fread_file_name): Update comment.
23745
23746 * callint.c (Fcall_interactively):
23747 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23748 Make sure it is correctly unwound.
23749
23750 * xsmfns.c (x_session_close): New function.
23751
23752 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23753 Delete declarations.
23754
23755 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23756 (x_output): Remove background_pixel and foreground_pixel fields.
23757 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23758 (x_delete_device, x_session_close): Declare.
23759
23760 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23761 (read_filtered_event): Call `read_char' with a local
23762 `wrong_kboard_jmpbuf'.
23763
23764 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23765 Don't call single_kboard_state. Use FRAME_RIF.
23766
23767 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23768 systems.
23769
23770 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23771 (Fframe_with_environment, Fset_input_meta_mode)
23772 (Fset_quit_char): EXFUN.
23773 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23774 (init_sys_modes, reset_sys_modes): Update prototypes.
23775 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23776
23777 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23778 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23779 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23780 Delete declarations.
23781 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23782 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23783 New declarations.
23784
23785 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23786 already does that during init_display(). Call syms_of_keymap
23787 before syms_of_keyboard. Call `syms_of_terminal'.
23788 Call set_initial_environment, not set_process_environment.
23789 (shut_down_emacs): Call reset_all_sys_modes() instead of
23790 reset_sys_modes().
23791
23792 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23793 (internal_resolve_face_name, resolve_face_name_error): New functions.
23794 (resolve_face_name): Protect against loops and errors thrown by Fget.
23795 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23796 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23797
23798 * scroll.c: Replace CURTTY() with local variables throughout the
23799 file (where applicable).
23800 (calculate_scrolling, calculate_direct_scrolling)
23801 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23802 characteristics.
23803
23804 * keymap.c (Vfunction_key_map): Remove.
23805 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23806 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23807 (Vkey_translation_map): Remove.
23808 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23809 (Fdescribe_buffer_bindings)
23810 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23811 Update for terminal-local key-translation-map.
23812
23813 * Makefile.in (callproc.o): Update dependencies.
23814 (lisp, shortlisp): Add termdev.elc.
23815 (obj): Add terminal.o.
23816 (terminal.o): Add dependencies.
23817 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23818 (data.o, fns.o): Add termhooks.h dependency.
23819 (SOME_MACHINE_LISP): Add dnd.elc.
23820 (minibuf.o): Fix typo.
23821 Update dependencies.
23822
23823 * data.c (do_symval_forwarding, store_symval_forwarding)
23824 (find_symbol_value): Use the selected frame's keyboard, not
23825 current_kboard.
23826
23827 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23828 Vwindow_system.
23829
23830 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23831 Fmenu_bar_open.
23832 (syms_of_xmenu): Update defsubr.
23833 (mouse_position_for_popup, Fx_popup_menu)
23834 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23835 (set_frame_menubar, free_frame_menubar)
b97439ce 23836 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23837 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23838 an X frame.
23839
23840 * xselect.c (x_own_selection): Abort if not an X frame.
23841 (some_frame_on_display): Check if it is an X frame.
23842 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23843
23844 * coding.c: Include frame.h and termhooks.h.
23845 (terminal_coding, keyboard_coding): Delete.
23846 (Fset_terminal_coding_system_internal)
23847 (Fset_keyboard_coding_system_internal)
23848 (Fkeyboard_coding_system)
23849 (Fterminal_coding_system): Add a terminal parameter.
23850 Get terminal_coding from the terminal.
23851 (init_coding_once): Don't call setup_coding_system here.
23852
23853 * dispextern.h (set_scroll_region, turn_off_insert)
23854 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23855 (tty_clear_end_of_line, tty_setup_colors)
23856 (delete_tty, updating_frame)
23857 (produce_special_glyphs, produce_glyphs, write_glyphs)
23858 (insert_glyphs): Remove.
23859 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23860 (tty_turn_off_highlight, get_tty_size): Add declaration.
23861 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23862
23863 * frame.h (enum output_method): Add output_initial.
23864 (struct x_output): Delete.
23865 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23866 Access foreground_pixel and background_pixel directly from the frame.
23867 (tty_display): Delete.
23868 (struct frame): Add buried_buffer_list, foreground_pixel,
23869 background_pixel and terminal. Delete kboard.
23870 (union output_data): Add tty.
23871 (FRAME_KBOARD): Get the kboard from the terminal.
23872 (FRAME_INITIAL_P): New macro.
23873 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23874 (Qterm_environment_variable, Qdisplay_environment_variable)
23875 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23876 New declarations.
23877
23878 * termchar.h (tty_output, tty_display_info): New structures.
23879 (tty_list): Declare.
23880 (FRAME_TTY, CURTTY): New macros.
23881 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23882 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23883 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23884 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23885
23886 * callproc.c: Include frame.h and termhooks.h, for terminal
23887 parameters.
23888 (add_env): New function.
23889 (child_setup): Use it.
23890 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23891 (getenv_internal): Fix get_terminal_param call.
23892 (Fgetenv_internal, egetenv): Update doc.
23893 (syms_of_callproc): Initialize Vprocess_environment to nil.
23894 Register and initialize them. Remove obsolete defvars. Update doc
23895 strings.
23896 (child_setup): Handle Vlocal_environment_variables.
23897 (getenv_internal): Add terminal parameter.
23898 Handle Vlocal_environment_variables.
23899 (Fgetenv_internal): Add terminal parameter.
23900 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23901 environment in a frame (not terminal) parameter. Update doc strings.
23902 (set_initial_environment): Rename from set_global_environment.
23903 Store Emacs environment in initial frame parameter.
23904
23905 * xdisp.c (redisplay_internal): Update references to
23906 `previous_terminal_frame'.
23907 (display_mode_line, Fformat_mode_line): Replace calls to
23908 `push_frame_kboard' with `push_kboard'.
23909 (get_glyph_string_clip_rects): Add extra parentheses and
23910 braces to prevent compiler warnings.
23911 (calc_pixel_width_or_height): Add xassert to check that the
23912 frame is alive. Don't call `lookup_image' on a termcap frame.
23913 (message2_nolog, message3_nolog, redisplay_internal)
23914 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23915 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23916 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23917 (Fx_display_pixel_width, Fx_display_pixel_height)
23918 (Fx_display_planes, Fx_display_color_cells)
23919 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23920 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23921 (Fx_display_backing_store, Fx_display_visual_class)
23922 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23923 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23924
23925 * xfns.c (x_set_foreground_color x_set_background_color)
23926 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23927 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23928 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23929 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23930 terminal that is being deleted.
23931 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23932 frame parameter, and make sure it overrides any user-supplied setting.
23933 (Fx_close_connection, Fx_synchronize): Unify argument names with
23934 the rest of the DEFUNs.
23935
23936 * dispnew.c (Fsend_string_to_terminal): Update call to
23937 `get_tty_terminal'.
23938 (Fredraw_frame, Fsend_string_to_terminal)
23939 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23940 FRAME_TERMCAP_P and FRAME_TTY.
23941 (window_change_signal): Don't believe width/height values that are
23942 impossibly small.
23943 (Vinitial_window_system): Rename from Vwindow_system.
23944 (termscript, Wcm, rif): Delete.
23945
23946 * termhooks.h (struct terminal): New struct containing the
23947 previously global text display hooks and new members NAME,
23948 DELETED and PARAM_ALIST.
23949 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23950 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23951 (FRAME_RIF): New macros.
23952 (get_terminal_param, get_device): New declarations.
23953 (termscript): Delete declaration.
23954
23955 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23956 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23957 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23958 FRAME_FOREGROUND_PIXEL.
23959 (x_fully_uncatch_errors): Disable definition.
23960 (x_scroll_bar_expose): Fix reference to foreground pixel.
23961 (XTread_socket): Disable loop on all X displays.
23962 (x_delete_terminal): Don't set terminal->deleted and let
23963 delete_terminal delete the frames on the terminal.
23964 (x_delete_display): Doc update to reflect changes in
23965 delete_terminal.
23966 (x_display_info) <terminal>: Move member earlier in the struct.
23967 (deleting_tty): Remove old variable.
23968 (Fsuspend_tty): Call clear_tty_hooks.
23969 (Fresume_tty, init_tty): Call set_tty_hooks.
23970 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23971 errors on X frames.
23972 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23973 (handle_one_xevent): Initialize `f' to NULL.
23974 (x_delete_terminal, x_create_terminal): New functions.
23975 (XTset_terminal_modes, XTreset_terminal_modes)
23976 (XTread_socket, x_connection_closed, x_term_init)
23977 (x_term_init, x_delete_display): Add terminal parameter.
23978 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23979 X connections.
23980
23981 * frame.c: Include termchar.h.
23982 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23983 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23984 (Qdisplay_environment_variable): New vars.
23985 (Fframep): Deal with output_initial.
23986 (Fframe-live-p): Doc fix.
23987 (Fwindow-system): New function.
23988 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23989 (make_terminal_frame): Don't create frames on a terminal that is
23990 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23991 (store_frame_param): Check for found_for_frame before calling XFRAME.
23992 (Fmake_terminal_frame): Handle NULL tty names correctly.
23993 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23994 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23995 frames to refer to a deleted frame in their 'environment parameter.
23996 (Fframe_with_environment): New function.
23997 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23998 (get_future_frame_param): New function.
23999 (Fmake_terminal_frame): Use it.
24000 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24001
24002 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24003 * sysdep.c (reset_sys_modes): Update for renames.
24004
24005 * keyboard.c (tty_read_avail_input): New function.
24006 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24007 (syms_of_keyboard): Defsubr them.
24008 (Fset_input_meta_mode, Fset_quit_char): New functions.
24009 (Fset_input_mode): Split to above functions.
24010 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24011 parameter. Use it in call to `read_char'.
24012 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24013 Set wrong_kboard_jmpbuf correctly in recursive calls.
24014 Use current_kboard to access Vkeyboard_translate_table.
24015 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24016 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24017 Update longjmp invocations. Remember the original current_kboard,
24018 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24019 changes it. Comment out unnecessary calls to
24020 `record_single_kboard_state' and `any_kboard_state'.
24021 Update recursive calls.
24022 (wrong_kboard_jmpbuf): Remove global variable.
24023 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24024 Handle deleted interrupted_kboards correctly; that is a legal
24025 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24026 and read_char calls. Abort if interrupted_kboard died in read_char.
24027 (any_kboard_state, single_kboard_state)
24028 (push_frame_kboard): Remove function.
24029 (pop_kboard): Switch out of single_kboard mode if the kboard has
24030 been deleted. Remove unused variable. Help debugging by not
24031 changing current_kboard unnecessarily. Set current_kboard to the
24032 kboard of the selected frame when the stored kboard object has
24033 been deleted before pop_kboard.
24034 (temporarily_switch_to_single_kboard): Change first parameter to a
24035 frame pointer. Throw an error when caller wants to change kboards
24036 while in single_kboard mode. Don't push_kboard if we weren't in
24037 single kboard state. Don't pop_kboard if we popped into any
24038 kboard state.
24039 (restore_kboard_configuration): Abort if pop_kboard changed the
24040 kboard in single_kboard mode. Call pop_kboard only after setting
24041 up single_kboard mode.
24042 (Frecursive_edit): Switch to single_kboard mode only in nested
24043 command loops.
24044 (cmd_error, command_loop, command_loop_1, timer_check):
24045 Comment out unnecessary call to `any_kboard_state' and
24046 `record_single_kboard_state'.
24047 (delete_kboard): Exit single_kboard mode if we have just deleted
24048 that kboard. Use FRAME_KBOARD.
24049 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24050 `fatal_error_signal'.
24051 (record_single_kboard_state): Don't push_kboard if we weren't in
24052 single kboard state. Don't pop_kboard if we popped into any
24053 kboard state.
24054 (push_frame_kboard): Rename to push_kboard.
24055 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24056 (read_avail_input): Read input from all terminals.
24057 (mark_kboards): Also mark Vkeyboard_translate_table.
24058 (kbd_buffer_store_event_hold): Simplify condition.
24059 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24060 (Vkeyboard_translate_table): Move to struct kboard.
24061 (init_kboard): Initialize Vkeyboard_translate_table.
24062 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24063 Vkeyboard_translate_table. Update doc strings. Update docs of
24064 local-function-key-map and function-key-map.
24065
24066 * terminal.c: New file.
24067
24068 * term.c: Include errno.h.
24069 (Vring_bell_function, device_list, initial_device)
24070 (next_device_id, ring_bell, update_begin, update_end)
24071 (set_terminal_window, cursor_to, raw_cursor_to)
24072 (clear_to_end, clear_frame, clear_end_of_line)
24073 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24074 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24075 (syms_of_term): Move their initialization to terminal.c.
24076 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24077 (Ftty_display_color_cells)
24078 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24079 (clear_tty_hooks, set_tty_hooks)
24080 (init_tty, maybe_fatal): New functions.
24081 (Ftty_type): Return nil if terminal is not on a tty instead of
24082 throwing an error. Doc update.
24083 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24084 Doc update. Initialize new subrs and variables.
24085 (delete_tty): Use terminal->deleted.
24086 (tty_set_terminal_modes): Rename from set_terminal_modes.
24087 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24088 (set_scroll_region): Rename to `tty_set_scroll_region'.
24089 (turn_on_insert): Rename to `tty_turn_on_insert'.
24090 (turn_off_insert): Rename to `tty_turn_off_insert'.
24091 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24092 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24093 (toggle_highligh): Rename to `tty_toggle_highlight'.
24094 (background_highlight): Rename to `tty_background_highlight'.
24095 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24096 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24097 (tty_set_scroll_region, tty_background_highlight)
24098 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24099 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24100 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24101 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24102 Add static modifier.
24103 (tty_reset_terminal_modes, tty_set_terminal_window)
24104 (tty_set_scroll_region, tty_background_highlight)
24105 (tty_highlight_if_desired, tty_cursor_to)
24106 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24107 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24108 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24109 renames.
24110
241112007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24112
24113 * keyboard.c: Qrtl is new.
24114 (parse_tool_bar_item): Handle :rtl keyword.
24115 (syms_of_keyboard): Intern :rtl keyword.
24116
24117 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24118
24119 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24120 so no Lisp code is executed.
24121 (file_for_image, find_rtl_image): New functions.
24122 (xg_get_image_for_pixmap): Use file_for_image.
24123 (update_frame_tool_bar): If direction is RTL, use RTL image if
24124 defined. Use Gtk stock images if defined.
24125
241262007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24127
24128 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24129 for nonexistent or zero-width glyph in composition glyph.
24130
241312007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24132
24133 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24134
24135 * xdisp.c (Finvisible_p): New function.
24136 (syms_of_xdisp): defsubr it.
24137
241382007-08-24 Juanma Barranquero <lekktu@gmail.com>
24139
24140 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24141 Doc fixes.
24142
241432007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24144
24145 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24146
241472007-08-24 Martin Rudalics <rudalics@gmx.at>
24148
24149 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24150 whether decoding has modified buffer contents.
24151
241522007-08-24 Jason Rumney <jasonr@gnu.org>
24153
24154 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24155 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24156 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24157 (init_svg_functions) [HAVE_NTGUI]: New function.
24158 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24159 (svg_load_image): Use them.
24160 (svg_load_image) [HAVE_NTGUI]: Implement background.
24161
241622007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24163
24164 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24165 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24166 (LIBX): Remove @RSVG_LIBS@.
24167 (LIBES): Add $(RSVG_LIBS).
24168
24169 * image.c (svg_load_image): Blend with specified background if exists.
24170 Use IMAGE_BACKGROUND. Add Mac OS Support.
24171
24172 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24173 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24174 Remove macros.
24175 [MAC_OSX] (socket_callback): Do nothing.
24176 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24177 ReceiveNextEvent.
24178 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24179 socket_callback.
24180 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24181
241822007-08-22 Glenn Morris <rgm@gnu.org>
24183
24184 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24185
241862007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24187
24188 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24189
24190 * image.c: Add support for SVG images. Some additional comments
24191 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24192 (svg_image_p): New function to test for SVG image.
24193 (svg_load): New function to load SVG image.
24194 (svg_load_image): New function, helper for svg_load.
24195 (Qsvg): New Lisp_object.
24196 (svg_keyword_index): New enum.
24197 (svg_format): New static `image_keyword' struct.
24198 (svg_type): New static `image_type' struct.
24199 (librsvg/rsvg.h): Include it.
24200
242012007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24202
24203 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24204
242052007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24206
24207 * lread.c (Qold_style_backquotes): New var.
24208 (syms_of_lread): Init and staticpro it.
24209 (load_warn_old_style_backquotes): New fun.
24210 (Fload): Use them to warn about old style backquotes.
24211 (end_of_file_error, Fload): Remove unused vars.
24212
24213 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24214
24215 * lread.c (Vold_style_backquotes): New var.
24216 (syms_of_lread): Init and export it to Elisp.
24217 (read1): Set it when we find an old-style (back)quote.
24218
242192007-08-22 Jason Rumney <jasonr@gnu.org>
24220
24221 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24222
242232007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24224
24225 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24226
242272007-08-19 Richard Stallman <rms@gnu.org>
24228
24229 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24230
242312007-08-19 Andreas Schwab <schwab@suse.de>
24232
24233 * alloc.c (pure): Round PURESIZE up.
24234
242352007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24236
24237 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24238 active frame.
24239
242402007-08-16 Richard Stallman <rms@gnu.org>
24241
24242 * eval.c (Fcommandp): Add parens to clarify.
24243
24244 * minibuf.c (Fall_completions): Use enum for type of table.
24245
24246 * emacs.c (USAGE2): Improve text.
24247
242482007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24249
24250 * term.c (tty_default_color_capabilities): Declare static
24251 variables in file scope, to avoid HPUX compiler problem.
24252
242532007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24254
24255 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24256 to gtk_toolbar_insert.
24257
242582007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24259
24260 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24261
24262 * insdel.c (reset_var_on_error): New fun.
24263 (signal_before_change, signal_after_change):
24264 Use it to reset (after|before)-change-functions to nil in case of error.
24265 Bind inhibit-modification-hooks to t.
24266 Don't bind (after|before)-change-functions to nil while they run.
24267
242682007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24269
24270 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24271 filling pixmap with stippled background.
24272
242732007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24274
24275 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24276 Don't use invisible frame as parent window for repositioning.
24277
242782007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24279
24280 * print.c (new_backquote_output): Rename from old_backquote_output.
24281 (print): Inverse its logic (according to its name) so as to match the
24282 behavior of new_backquote_flag in lread.c.
24283
242842007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24285
24286 * gmalloc.c (posix_memalign): New function.
24287
24288 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24289 ActivateControl/DeactivateControl here.
24290 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24291 frame-notice-user-settings is non-nil.
24292 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24293 for kEventParamFMFontStyle.
24294 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24295 mac_pass_command_to_system and mac_pass_control_to_system here.
24296 (XTread_socket): Call ActivateControl/DeactivateControl here.
24297 (XTread_socket) [TARGET_API_MAC_CARBON]:
24298 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24299 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24300 for window repositioning.
24301
243022007-08-08 Glenn Morris <rgm@gnu.org>
24303
24304 * Replace `iff' in doc-strings and comments.
24305
243062007-08-07 Chong Yidong <cyd@stupidchicken.com>
24307
24308 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24309
243102007-08-07 Martin Rudalics <rudalics@gmx.at>
24311
24312 * fileio.c (Finsert_file_contents): Run format-decode and
24313 after_insert_file_functions on entire buffer when REPLACE is
24314 non-nil and inhibit modification_hooks and point_motion_hooks.
24315 For consistency, run after_insert_file_functions iff something
24316 got inserted. Move signal_after_change and update_compositions
24317 after code running after_insert_file_functions. Make sure that
24318 undo_list doesn't record intermediate steps of the decoding process.
24319
243202007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24321
24322 * emacs.c (main)
24323 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24324 Call malloc_enable_thread on interactive startup.
24325
24326 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24327 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24328 [USE_PTHREAD]: Conditionalize with it.
24329 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24330 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24331 New functions.
24332
243332007-08-06 Chong Yidong <cyd@stupidchicken.com>
24334
24335 * xdisp.c (redisplay_window): When restoring original buffer
24336 position, make sure it is still valid.
24337
24338 * image.c (png_load): Ignore png-supplied background color.
24339
243402007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24341
24342 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24343 Use kCFAbsoluteTimeIntervalSince1970.
24344
24345 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24346 New variable.
24347 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24348 event loop should be quit.
24349 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24350 Quit dialog event loop if quit_dialog_event_loop is set.
24351
24352 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24353 (Selection): New typedef. Use instead of ScrapRef.
24354 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24355 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24356 (mac_clear_selection): Rename from clear_scrap.
24357 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24358 scrap_has_target_type. All uses changed.
24359 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24360 (mac_selection_has_target_p): New functions.
24361 (mac_put_selection_value): Rename from put_scrap_string.
24362 (mac_get_selection_value): Rename from get_scrap_string.
24363 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24364 (put_scrap_private_timestamp, scrap_has_target_type)
24365 (get_scrap_private_timestamp): Remove functions.
24366 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24367 (x_own_selection, x_get_local_selection):
24368 Use mac_valid_selection_value_p.
24369 (x_own_selection): Don't use put_scrap_private_timestamp.
24370 Record OWNERSHIP-INFO into Vselection_alist instead.
24371 (x_get_local_selection): Don't check type if request is local.
24372 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24373 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24374
243752007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24376
24377 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24378 add comment explaining why.
24379
243802007-08-03 Richard Stallman <rms@gnu.org>
24381
24382 * fileio.c (Fvisited_file_modtime): Use make_time.
24383
243842007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24385
24386 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24387 build.
24388
243892007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24390
24391 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24392
243932007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24394
24395 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24396
243972007-07-30 Richard Stallman <rms@gnu.org>
24398
24399 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24400
244012007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24402
24403 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24404
244052007-07-28 Nick Roberts <nickrob@snap.net.nz>
24406
24407 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24408 remote default-directory.
24409
24410 * buffer.c (mode-line-format): Update doc string.
24411
244122007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24413
24414 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24415 scroll bar gap.
24416 (x_scroll_bar_create): Set bar->fringe_extended_p.
24417 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24418 on frame edge. Check fringe background extension. Don't clear
24419 extended fringe background area.
24420
24421 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24422 (w32_fill_area): Enclose multiple statements with do ... while (0).
24423
24424 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24425 Extend fringe background to scroll bar gap.
24426 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24427 Set bar->fringe_extended_p.
24428 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24429 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24430 background extension. Don't clear extended fringe background area.
24431
24432 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24433 New member fringe_extended_p.
24434
244352007-07-25 Glenn Morris <rgm@gnu.org>
24436
24437 * Relicense all FSF files to GPLv3 or later.
24438
24439 * COPYING: Switch to GPLv3.
24440
244412007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24442
24443 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24444
24445 * data.c (Finteractive_form): Check for the presence of an
24446 `interactive-form' symbol property more thoroughly.
24447
24448 * data.c (Finteractive_form): Use an `interactive-form' property if
24449 present, analogous to the function-documentation property.
24450
244512007-07-24 Jason Rumney <jasonr@gnu.org>
24452
24453 * w32fns.c (x_real_positions): Get real position from OS instead of
24454 calculating it.
24455
244562007-07-23 Jason Rumney <jasonr@gnu.org>
24457
24458 * filelock.c (current_lock_owner): Allow for @ sign in username.
24459
244602007-07-22 Nick Roberts <nickrob@snap.net.nz>
24461
24462 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24463 remote default-directory.
24464
24465 * buffer.c (mode-line-format): Describe above case in doc string.
24466
244672007-07-20 Eli Zaretskii <eliz@gnu.org>
24468
24469 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24470 Define if not defined.
24471
244722007-07-18 Jason Rumney <jasonr@gnu.org>
24473
24474 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24475
244762007-07-18 Richard Stallman <rms@gnu.org>
24477
24478 * data.c (Fsetq_default): Doc fix.
24479
24480 * eval.c (Fsetq): Doc fix.
24481
244822007-07-18 Juanma Barranquero <lekktu@gmail.com>
24483
24484 * coding.c (Ffind_operation_coding_system):
24485 * eval.c (For, Fand): Doc fixes.
24486 Reported by Johan Bockgård.
24487
244882007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24489
24490 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24491
24492 * xterm.h: Declare x_ewmh_activate_frame.
24493
24494 * xterm.c (x_ewmh_activate_frame): New function.
24495 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24496
244972007-07-17 Martin Rudalics <rudalics@gmx.at>
24498
24499 * window.c (Fdisplay_buffer): If largest or LRU window is the
24500 only window, split it even if it is not eligible for splitting.
24501 This restores the original behavior broken by the 2007-07-15
24502 change.
24503
245042007-07-17 Glenn Morris <rgm@gnu.org>
24505
24506 * abbrev.c (abbrev_check_chars): New function.
24507 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24508 Call abbrev_check_chars to check abbrev characters are word
24509 constituents. Doc fix.
24510
245112007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24512
24513 * process.c (Fstart_process, Fmake_network_process)
24514 (read_process_output): Fix up last changes.
24515
245162007-07-16 Eli Zaretskii <eliz@gnu.org>
24517
24518 * makefile.w32-in (clean): Don't delete *~.
24519
245202007-07-16 Andreas Schwab <schwab@suse.de>
24521
24522 * window.c (Fdisplay_buffer): Use NILP.
24523 (Fset_window_scroll_bars): Likewise.
24524
245252007-07-15 Martin Rudalics <rudalics@gmx.at>
24526
24527 * window.c (window_min_size_2): New function.
24528 (window_min_size_1, size_window, Fdisplay_buffer)
24529 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24530 windows without mode- or header-lines when window-min-height is
24531 too small.
24532 (size_window): Reset nodelete_p after testing it, following an
24533 earlier note by Kim F. Storm.
24534 (display_buffer): Do not set split_height_threshold to twice the
24535 value of window_min_height to avoid changing the value of a
24536 customizable variable. Rather explicitly check whether the
24537 height of the window that shall be splitted is at least as large
24538 as split_height_threshold.
24539 (Fwindow_full_width_p): New defun.
24540 (syms_of_window): Defsubr it.
24541
24542 * window.h: Add EXFUN for Fwindow_full_width_p.
24543
245442007-07-14 Jason Rumney <jasonr@gnu.org>
24545
24546 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24547
245482007-07-14 Richard Stallman <rms@gnu.org>
24549
24550 * eval.c (maybe_call_debugger): New function.
24551 (find_handler_clause): Use maybe_call_debugger.
24552 Call it when the handler says `debug'.
24553 Eliminate DEBUGGER_VALUE_PTR.
24554 (Fsignal): Eliminate debugger_value.
24555 (Qdebug): New variable.
24556 (syms_of_eval): Initialize it.
24557
245582007-07-14 Juanma Barranquero <lekktu@gmail.com>
24559
24560 * eval.c (Fprogn):
24561 * keyboard.c (Ftrack_mouse):
24562 * print.c (Fwith_output_to_temp_buffer):
24563 * window.c (Fsave_window_excursion): Doc fix.
24564
245652007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24566
24567 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24568
245692007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24570
24571 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24572 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24573 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24574 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24575 Remove unused encoding_carryover.
24576 * process.c: Adjust all functions accordingly.
24577
245782007-07-12 Richard Stallman <rms@gnu.org>
24579
24580 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24581
245822007-07-11 Jason Rumney <jasonr@gnu.org>
24583
24584 * makefile.w32-in (LIBS): Include OLE32.
24585
24586 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24587 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24588
245892007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24590
24591 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24592 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24593 from a Lisp_Object into a bare pointer.
24594 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24595 Adjust the code correspondingly.
24596
24597 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24598
24599 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24600 (term_show_mouse_face): Remove unused var `j'.
24601 (handle_one_term_event): Remove unused vars `i' and `j'.
24602 Don't cast return value of ttyname since it's not necessary.
24603
246042007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24605
24606 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24607 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24608
24609 * fns.c (map_char_table): Use an array of int for `indices' rather than
24610 an array of Lisp_Objects (which are only ever integers anyway).
24611 (Fmap_char_table): Update caller.
24612 * lisp.h: Update prototype.
24613 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24614 * fontset.c (Ffontset_info):
24615 * casetab.c (set_case_table): Update callers.
24616
24617 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24618
24619 * keymap.c (struct accessible_keymaps_data)
24620 (struct where_is_internal_data): New structures.
24621 (accessible_keymaps_1, where_is_internal_1): Use them to change
24622 interface to adhere to the one used by map_keymap.
24623 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24624 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24625
24626 * keymap.h (map_keymap_function_t): More informative prototype.
24627
246282007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24629
24630 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24631 (looking_at_1): Don't change search_regs and last_thing_searched
24632 if `inhibit-changing-match-data' is non-nil.
24633 (string_match_1, search_buffer, set_search_regs): Likewise.
24634 (syms_of_search): Add Lisp level definition for
24635 `inhibit-changing-match-data' and set it to nil.
24636 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24637 start and end of the match, instead of using values in search_regs.
24638
246392007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24640
24641 * minibuf.c (Fcompleting_read): New value `confirm-only'
24642 for `require-match'.
24643
246442007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24645
24646 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24647 part of the 2007-06-27 change to syms_of_fileio.
24648
246492007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24650
24651 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24652 Check WINDOWP before using XWINDOW. Consolidate return statements.
24653
246542007-06-27 Richard Stallman <rms@gnu.org>
24655
24656 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24657
246582007-06-27 Juanma Barranquero <lekktu@gmail.com>
24659
24660 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24661
246622007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24663
24664 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24665 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24666 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24667 (_free_internal, memalign): Use them.
24668 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24669 Initialize to PTHREAD_MUTEX_INITIALIZER.
24670 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24671 (morecore_nolock): Rename from morecore. All uses changed.
24672 Use only nolock versions of internal allocation functions.
24673 (_malloc_internal_nolock, _realloc_internal_nolock)
24674 (_free_internal_nolock): New functions created from
24675 _malloc_internal, _realloc_internal, and _free_internal.
24676 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24677 Copy hook value to automatic variable before its use.
24678 (memalign): Copy hook value to automatic variable before its use.
24679
246802007-06-26 Kenichi Handa <handa@m17n.org>
24681
24682 * coding.c (Ffind_operation_coding_system): Docstring improved.
24683 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24684
246852007-06-25 David Kastrup <dak@gnu.org>
24686
24687 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24688 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24689 cater for additional parameter.
24690
24691 * keymap.h: Adjust number of parameters to `current-active-maps'.
24692
24693 * doc.c (Fsubstitute_command_keys): Adjust call of
24694 `current-active-maps'.
24695
246962007-06-25 David Kastrup <dak@gnu.org>
24697
24698 * callint.c (Fcall_interactively): Make the parsing of interactive
24699 specs somewhat more readable.
24700
247012007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24702
24703 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24704 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24705 if extended background has already been filled.
24706
247072007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24708
24709 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24710 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24711
24712 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24713 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24714 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24715 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24716 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24717 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24718 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24719 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24720 Run timers during dialog popup.
24721 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24722
247232007-06-21 Jason Rumney <jasonr@gnu.org>
24724
24725 * image.c (convert_mono_to_color_image): Swap fore and background.
24726
247272007-06-20 Jason Rumney <jasonr@gnu.org>
24728
24729 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24730 (w32_free_bdf_font): Unmap memory not handle.
24731
247322007-06-20 Sam Steingold <sds@gnu.org>
24733
24734 * gmalloc.c (__morecore): Fix the declaration to comply with the
24735 definition.
24736
247372007-06-20 Juanma Barranquero <lekktu@gmail.com>
24738
24739 * w32term.c (w32_delete_display): Remove leftover declaration.
24740 (w32_define_cursor, w32_initialize): Make static.
24741
24742 * w32.c (_wsa_errlist): Fix typo in error message.
24743 (init_environment): Ignore any environment variable from the
24744 registry having a null value.
24745
247462007-06-20 Glenn Morris <rgm@gnu.org>
24747
24748 * Makefile.in (LIBGIF): Default to -lgif.
24749
247502007-06-17 Jason Rumney <jasonr@gnu.org>
24751
24752 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24753 unicode strings.
24754
247552007-06-16 Juanma Barranquero <lekktu@gmail.com>
24756
24757 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24758 Fix typo in docstring.
24759
247602007-06-16 Eli Zaretskii <eliz@gnu.org>
24761
24762 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24763 and their keybindings.
24764
247652007-06-15 Chong Yidong <cyd@stupidchicken.com>
24766
24767 * composite.c (update_compositions): Fix last fix.
24768
247692007-06-14 Jason Rumney <jasonr@gnu.org>
24770
24771 * w32.c (get_process_times_fn): New function pointer.
24772 (globals_of_w32): Intialize it if present in kernel32.dll.
24773 (w32_get_internal_run_time): New function.
24774
24775 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24776
247772007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24778
24779 * composite.c (update_compositions): Check the validness of
24780 compositions.
24781
247822007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24783
24784 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24785 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24786
24787 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24788 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24789
24790 * macgui.h (USE_MAC_TOOLBAR): New define.
24791
24792 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24793 Return immediately unless popup is activated.
24794
24795 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24796 background to scroll bar gap.
24797 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24798 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24799 scroll bars on frame edge. Check fringe background extension.
24800 Don't clear extended fringe background area.
24801 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24802 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24803 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24804 [USE_MAC_TOOLBAR]: New macros.
24805 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24806 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24807 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24808 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24809 [USE_MAC_TOOLBAR]: New functions.
24810 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24811 manually if previous repositioning has failed.
24812 (mac_handle_keyboard_event): Use precomputed event kind.
24813 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24814 as tool bar item click. Handle mouse movement over tool bar items.
24815
24816 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24817 toolbar_win_gravity.
24818 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24819 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24820 Add externs.
24821
24822 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24823 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24824
248252007-06-14 Chong Yidong <cyd@stupidchicken.com>
24826
24827 * image.c (search_image_cache): Remove unused variable.
24828
248292007-06-13 Chong Yidong <cyd@stupidchicken.com>
24830
24831 * xfns.c, xmenu.c: Link to xaw3d if available.
24832
248332007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24834
24835 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24836 frame_foreground and frame_background.
24837
24838 * image.c (lookup_image): Save frame foreground and background colors.
24839 (search_image_cache): Check if saved and current frame colors match.
24840
248412007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24842
24843 * regex.c (regex_compile): Remove the `regnum' counter.
24844 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24845
248462007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24847
24848 * term.c: Include intervals.h to declare Fget_text_property.
24849
248502007-06-10 Jason Rumney <jasonr@gnu.org>
24851
24852 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24853
248542007-06-08 Juanma Barranquero <lekktu@gmail.com>
24855
24856 * callint.c (Fcall_interactively):
24857 * editfns.c (Fdelete_and_extract_region):
24858 * fileio.c (Fread_file_name):
24859 * fns.c (Fmapconcat):
24860 * keyboard.c (cmd_error_internal):
24861 * keymap.c (Fkey_description):
24862 * lread.c (openp):
24863 * minibuf.c (read_minibuf):
24864 * search.c (wordify):
24865 * sunfns.c (sel_read):
24866 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24867 * xfns.c (x_default_scroll_bar_color_parameter):
24868 * xmenu.c (menu_help_callback):
24869 * xselect.c (Fx_get_atom_name):
24870 * xterm.c (x_term_init): Use empty_unibyte_string.
24871
248722007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24873
24874 * alloc.c (init_strings): Initialize canonical empty strings.
24875 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24876 canonical empty string when the requested size is 0.
24877
24878 * emacs.c (empty_unibyte_string): Rename from empty_string.
24879 (empty_multibyte_string): New canonical empty string.
24880 (syms_of_emacs): Don't initialize empty_string.
24881
24882 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24883 string, if appropriate.
24884 (empty_unibyte_string, empty_multibyte_string): New externs.
24885 (empty_string): Remove extern.
24886
24887 * lread.c (syms_of_lread): Use empty_unibyte_string.
24888
248892007-06-07 Jason Rumney <jasonr@gnu.org>
24890
24891 * s/ms-w32.h: Don't define HAVE_TZNAME.
24892
24893 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24894
248952007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24896
24897 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24898
24899 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24900 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24901
24902 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24903 Don't call next handler.
24904 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24905 Remove argument. Install handler to application.
24906 (set_frame_menubar): Don't change deep_p.
24907 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24908 FRAME_OUTER_TO_INNER_DIFF_Y.
24909 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24910 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24911 [HAVE_DIALOGS]: New macros.
24912 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24913 Use them.
24914 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24915
24916 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24917 init_service_handler. All callers changed. Return OSStatus value.
24918
24919 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24920 All callers changed so as not to call SetPortWindowPort.
24921 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24922 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24923 mac_draw_string_common.
24924 (mac_draw_image_string_qd): Likewise.
24925 (mac_draw_string_common): Use them. Add INLINE.
24926 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24927 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24928 GetGlobalMouse.
24929 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24930 and FRAME_OUTER_TO_INNER_DIFF_Y.
24931 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24932 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24933 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24934 repositioning window to mac_handle_window_event.
24935 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24936 saving window location to mac_handle_window_event
24937 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24938 (install_menu_target_item_handler): Remove argument in extern.
24939 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24940 Also accept command events.
24941 (do_keystroke): New function created from XTread_socket.
24942 (init_command_handler): Remove functions.
24943 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24944 and save window location by kEventWindowShowing and kEventWindowHiding
24945 handlers here. Don't call next handler for window state change and
24946 focus events.
24947 (mac_handle_application_event, mac_handle_keyboard_event)
24948 [TARGET_API_MAC_CARBON]: New functions.
24949 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24950 kEventWindowShowing and kEventWindowHiding events. Move installation
24951 of mouse, font, text input and menu target item handlers to
24952 install_application_handler.
24953 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24954 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24955 New function.
24956 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24957 Register it.
24958 (XTread_socket) [TARGET_API_MAC_CARBON]:
24959 Consolidate SendEventToEventTarget calls.
24960 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24961 Move application activation handler to mac_handle_application_event.
24962 Move keyboard handler to mac_handle_keyboard_event.
24963 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24964 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24965 init_command_handler. Call install_application_handler.
24966
24967 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24968 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24969
249702007-06-07 Glenn Morris <rgm@gnu.org>
24971
24972 * emacs.c (main): Use `emacs-copyright' in --version output.
24973
249742007-06-06 Chong Yidong <cyd@stupidchicken.com>
24975
24976 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24977
249782007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24979
24980 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24981
24982 * macgui.h: Replace WindowPtr with WindowRef.
24983
24984 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24985 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24986 Replace ControlHandle with ControlRef.
24987 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24988
24989 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24990 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24991 Replace ControlHandle with ControlRef.
24992 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24993 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24994
24995 * macterm.h (struct scroll_bar): Rename member control_handle_low
24996 and control_handle_high to control_ref_low and control_ref_high.
24997 All uses changed.
24998 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24999 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25000 respectively. All uses changed.
25001 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25002 (install_window_handler, remove_window_handler): Replace WindowPtr
25003 with WindowRef in externs.
25004
250052007-06-05 Juanma Barranquero <lekktu@gmail.com>
25006
25007 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25008
250092007-06-03 Nick Roberts <nickrob@snap.net.nz>
25010
25011 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25012
25013 * frame.c (Fmouse_position, Fmouse_pixel_position):
25014 Condition on HAVE_GPM too.
25015
25016 * term.c (term_mouse_highlight): Remove unused variables.
25017 (Fterm_open_connection): Set gpm_zerobased to 1.
25018 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25019 Use zero based co-ordinates.
25020 (handle_one_term_event): Report a drag as mouse movement too.
25021
25022 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25023
250242007-06-03 Chong Yidong <cyd@stupidchicken.com>
25025
25026 * image.c (search_image_cache): New function. Require background
25027 color match if background color is unspecified in the image spec.
25028 (uncache_image, lookup_image): Use it.
25029
250302007-06-01 Juanma Barranquero <lekktu@gmail.com>
25031
25032 * window.c (Fshrink_window): Reflow docstring.
25033
250342007-06-02 Chong Yidong <cyd@stupidchicken.com>
25035
25036 * Version 22.1 released.
25037
250382007-06-01 Richard Stallman <rms@gnu.org>
25039
25040 * xfns.c (x_encode_text): Add GCPRO.
25041
250422007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25043
25044 * xfns.c (x_set_name_internal): Save encoded name before
25045 x_encode_text in case string data is relocated.
25046
250472007-05-31 Richard Stallman <rms@gnu.org>
25048
25049 * buffer.c (syms_of_buffer): Doc fix.
25050
250512007-05-30 Nick Roberts <nickrob@snap.net.nz>
25052
25053 * sysdep.c (init_sys_modes): Add rather than replace with
25054 O_NONBLOCK.
25055
25056 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25057 term_mouse_moveto.
25058
25059 * termhooks.h (term_mouse_moveto): New extern.
25060
25061 * term.c (mouse_face_window): Rename...
25062 (Qmouse_face_window): ...to this.
25063 (term_show_mouse_face, term_clear_mouse_face)
25064 (term_mouse_highlight): Use Qmouse_face_window.
25065 (term_mouse_moveto): New function.
25066 (term_mouse_position): Make it work.
25067 (syms_of_term): Uncomment assignment to mouse_position_hook.
25068 Staticpro Qmouse_face_window.
25069
250702007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25071
25072 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25073 around current_column call.
25074
250752007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25076
25077 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25078 * xdisp.c (next_element_from_buffer):
25079 * window.c (delete_window):
25080 * term.c (term_mouse_highlight):
25081 * msdos.c (getdefdir):
25082 * macterm.c (mac_create_bitmap_from_bitmap_data)
25083 (init_font_name_table):
25084 * fns.c (Fsxhash):
25085 * data.c (Fmake_local_variable):
25086 * ccl.c (ccl_driver): Likewise.
25087
250882007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25089
25090 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25091 Call mac_wakeup_from_rne on window size change.
25092
250932007-05-25 Chong Yidong <cyd@stupidchicken.com>
25094
25095 * image.c (uncache_image): Fix typo.
25096
250972007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25098
25099 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25100
251012007-05-22 Richard Stallman <rms@gnu.org>
25102
25103 * xterm.c (x_connection_closed): Remove NO_RETURN.
25104
251052007-05-22 Martin Rudalics <rudalics@gmx.at>
25106
25107 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25108
251092007-05-21 Chong Yidong <cyd@stupidchicken.com>
25110
25111 * image.c (uncache_image): New function.
25112 (Fimage_refresh): New function.
25113
251142007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25115
25116 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25117
251182007-05-20 Nick Roberts <nickrob@snap.net.nz>
25119
25120 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25121 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25122
251232007-05-20 Nick Roberts <nickrob@snap.net.nz>
25124
25125 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25126 conditional on [HAVE_GPM_H].
25127
251282007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25129
25130 * syntax.c (skip_chars): Update syntax-table only after we checked that
25131 the new location is valid.
25132
251332007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25134
25135 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25136 mac_get_window_bounds.
25137
251382007-05-20 Nick Roberts <nickrob@snap.net.nz>
25139
25140 * Makefile.in (LIBGPM): Allow it to be set from configure.
25141 If set then link Emacs with it.
25142
25143 * config.in: Regenerate.
25144
25145 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25146 New externs.
25147
25148 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25149 Include gpm.h.
25150 (handle_one_term_event, term_gpm): New externs.
25151
25152 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25153 and allow it to be interrupted by SIGIO.
25154
25155 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25156 (wait_reading_process_output): Wait on gpm_fd too.
25157 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25158 (add_gpm_wait_descriptor_called_flag): New variable.
25159 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25160
25161 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25162 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25163 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25164 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25165 (make_lispy_event): Add case GPM_CLICK_EVENT.
25166 (read_avail_input): Handle mouse input.
25167
25168 * term.c (write_glyphs_with_face): New function.
25169 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25170 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25171 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25172 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25173 (last_mouse_x, last_mouse_y): New variables.
25174 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25175 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25176 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25177 (Fterm_close_connection): New functions.
25178 (term_init): Initialise mouse_face_window.
25179
251802007-05-19 Chong Yidong <cyd@stupidchicken.com>
25181
25182 * xdisp.c (redisplay_window): If first window line is a
25183 continuation line, recompute the new window start instead of
25184 recentering.
25185
251862007-05-18 Glenn Morris <rgm@gnu.org>
25187
25188 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25189 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25190
251912007-05-17 Glenn Morris <rgm@gnu.org>
25192
25193 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25194
251952007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25196
25197 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25198 dead key repeat and up events.
25199
252002007-05-14 Chong Yidong <cyd@stupidchicken.com>
25201
25202 * image.c (pbm_load): Check image size for monochrome pbm.
25203
252042007-05-13 Chong Yidong <cyd@stupidchicken.com>
25205
25206 * xterm.c (XTread_socket): Revert last change.
25207
252082007-05-12 Chong Yidong <cyd@stupidchicken.com>
25209
25210 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25211
25212 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25213
252142007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25215
25216 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25217 mixup (YAILOM).
25218
252192007-05-07 Andreas Schwab <schwab@suse.de>
25220
25221 * keymap.c (Flookup_key): Fix typo in last change.
25222
252232007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25224
25225 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25226 mapping for unibyte strings.
25227
252282007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25229
25230 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25231 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25232
252332007-04-29 Richard Stallman <rms@gnu.org>
25234
25235 * insdel.c (replace_range): For undo, record insertion first.
25236
252372007-04-29 Andreas Schwab <schwab@suse.de>
25238
25239 * lisp.h (VECSIZE): Use OFFSETOF.
25240
252412007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25242
25243 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25244 disabled lines.
25245
252462007-04-28 Richard Stallman <rms@gnu.org>
25247
25248 * lread.c (read_escape): In a string, \s is always space.
25249
252502007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25251
25252 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25253
25254 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25255 submenu for menu bar items.
25256
25257See ChangeLog.10 for earlier changes.
25258
25259;; Local Variables:
25260;; coding: utf-8
25261;; add-log-time-zone-rule: t
aac0c6e3
MR
25262;; End:
25263
e3eb1dae 25264 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25265
25266 This file is part of GNU Emacs.
25267
25268 GNU Emacs is free software: you can redistribute it and/or modify
25269 it under the terms of the GNU General Public License as published by
25270 the Free Software Foundation, either version 3 of the License, or
25271 (at your option) any later version.
25272
25273 GNU Emacs is distributed in the hope that it will be useful,
25274 but WITHOUT ANY WARRANTY; without even the implied warranty of
25275 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25276 GNU General Public License for more details.
25277
25278 You should have received a copy of the GNU General Public License
25279 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25280
25281;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40